I think this might be the problem but I am not sure:
We are trying to migrate from weblogic and in there we had the client code bundled in with the EJBs in a single ear file.
From what I can see only the client code is throwing the above exception.
Any thoughts, advice from anybody?
I have similar problem with MYSQL
Depends On Me: org.jboss.deployment.DeploymentException: Error: can't find data
source: java:/MySqlDs; - nested throwable: (javax.naming.NameNotFoundException:
How to solve this ?
Look at your logfile. Probably the datasource is not deployed properly.
Use the jmx-console (jndi view) to determine if the datasource is registered.
If you are going to deploy the datasource with your .ear, put it into a .sar. It will be deployed before the ejb .jar files are deployed.
The DB pool is being created before the code deploys. From the JNDI-View my Connection pool is registered as java:/OracleDS. The EJBs compile fine too! It is only when the client code tries to do some DB interaction when it blows up.
Also, the place where it blows up, the code is not trying to access an EJB rather it is trying to make a database connection to run Stored Procedure.
Any help or advice would be appreciated.
I got it fixed!
what was the problem?
please note that it is good manners to supply your solution to both the people who may have helped, and to people in a similar situation :)
My apologies! The solution was actually a mistake on our part. Here is what we did wrong. We did not change the JNDI name of the datasource on the client side from the weblogic (OracleDS) to JBOSS compliant one (java:/OracleDS)
That change fixed our problems.