1 message in com.mysql.lists.javaj2ee deployment: MySQL__pm not found| From | Sent On | Attachments |
|---|---|---|
| Teemu Hiltunen | 08 Mar 2001 03:25 |
| Subject: | j2ee deployment: MySQL__pm not found![]() |
|---|---|
| From: | Teemu Hiltunen (teem...@uta.fi) |
| Date: | 03/08/2001 03:25:03 AM |
| List: | com.mysql.lists.java |
Hello!
I'm trying to make a simple entity bean connecting to MySQL database (based on AccountEJB in j2ee documentation example). I'm using j2sdkee1.3, MySQL 3.23 and mm.mysql-2.0.4-bin.jar. I have set the J2EE_CLASSPATH in bin/userconfig.sh. I have following in my config/resource.properties: jdbcDataSource.5.name=jdbc/MyDB jdbcDataSource.5.url=jdbc:mysql://localhost:3306/test?user=xxx?password=yyy In the beans code there is a line like: private String dbName = "java:comp/env/jdbc/MyDB" In the deployment tool I have configured the resource reference JNDI-names for the bean as follows: Reference Name=jdbc/MyDB, JNDI Name=jdbc/MyDB
When trying to deploy the entity bean I get the following error message: Binding name:'java:comp/env/jdbc/MyDB' java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: java.rmi.RemoteException: Error connecting to database; nested exception is: javax.naming.NameNotFoundException: MySQL__pm not found java.rmi.RemoteException: Error connecting to database; nested exception is: javax.naming.NameNotFoundException: MySQL__pm not found javax.naming.NameNotFoundException: MySQL__pm not found <<no stack trace available>>
Any ideas what the cause of this might be and what the solution would be? The deployment tool's Verifier passes ok.
Thank you!
Teemu Hiltunen




