- This topic has 7 replies, 2 voices, and was last updated 18 years ago by Riyad Kalla.
-
AuthorPosts
-
saifMemberbonjour tout le monde,
j’ai un probleme trés bizarre que je n’ai pa pu resoudre.
j’ai configuré l’xDoclet de mon projet ejb correctement.j’ai bien verifié que le nom specifié est celui que j’ai mis dans le fichier data source.le probleme est lors de deploiement de mon ejb. une exception que se leve toujours. voila son message :23:09:18,247 ERROR [EntityContainer] Starting failed jboss.j2ee:jndiName=ejb/Compte,service=EJB
org.jboss.deployment.DeploymentException: Error: can’t find data source: testDS; – nested throwable: (javax.naming.NameNotFoundException: testDS not bound)
at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCEntityBridge.init(JDBCEntityBridge.java:139)
at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.initStoreManager(JDBCStoreManager.java:420)
Riyad KallaMemberAt this time MYEclipse support is English-only. If possible, could you re-post your question here in English?
saifMemberi’m sorry,
i have a problem that i coudn’t find solution for.
i had configured the xDoclet of my ejb project corectly. i’m sure that the name of the datasource is the same as the one of my xml file of datasource. when i deployed my project i got the folowing excption23:09:18,247 ERROR [EntityContainer] Starting failed jboss.j2ee:jndiName=ejb/Compte,service=EJB
org.jboss.deployment.DeploymentException: Error: can’t find data source: testDS; – nested throwable: (javax.naming.NameNotFoundException: testDS not bound)
at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCEntityBridge.init(JDBCEntityBridge.java:139)
at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.initStoreManager(JDBCStoreManager.java:420)plz can you help me.
Riyad KallaMemberIt looks like your testDS datasource isn’t setup in your app server… did you make sure to set that data source up?
saifMemberi work with jBoss application server.i put the data source xml file under the folder : server/default/deploy. i’m sur also that jBoss read each time this file when i deploy my project. because i made a spelling mistake in my data source file to verify if jBoss is reading the file and he show an exeption relevant to this spelling mistake.
Riyad KallaMemberThat is strange, I’m not sure why it’s not picking up the datasource. Once JBoss is running, can you login to the adminstration console and see the datasource listed? Did you spell the name wrong possibly?
saifMemberthank you very much Mr, i found the probleme.
the name of datasource should be prefixed by java: . i changed it to java:testDS and it has worked.
thank you again.
Riyad KallaMemberThat is great, thank you for following up. I’m glad it’s working.
-
AuthorPosts