-
1. Re: NameNotFoundException
akirdat Jul 24, 2003 3:46 PM (in response to akirdat)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? -
2. Re: NameNotFoundException
sysuser1 Jul 24, 2003 8:13 PM (in response to akirdat)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 ? -
3. Re: NameNotFoundException
frito Jul 25, 2003 3:48 AM (in response to akirdat)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.
Greetings,
Frito -
4. Re: NameNotFoundException
akirdat Jul 25, 2003 7:51 AM (in response to akirdat)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. -
-
6. Re: NameNotFoundException
gavin9 Jul 27, 2003 11:26 PM (in response to akirdat)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 :) -
7. Re: NameNotFoundException
akirdat Jul 28, 2003 11:55 AM (in response to akirdat)gavin9,
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.