Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

nested exception in Persistent Name Server

 
Kathy OConnell
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am developing my first EJB in VisualAge for Java version 4. When I try to start the Persistent Name Server, I get the following message:
An exception has occurred while starting the Persistent Name Server. com.ibm.ejs.EJSException:; nested exception is:
I have deployed the EJB (Account). However, not all the classes/interfaces expected have been generated – 3 are missing: AccountTransfer, AccountTransferBean, AccountTransferHome.
I am pointing to an Access database using jdbc.
Do you have any suggestions on how to get around this?
 
Thomas Paul
mister krabs
Ranch Hand
Posts: 13974
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Kathy, I am moving this to the WebSphere forum.
 
Graeme Brown
Ranch Hand
Posts: 193
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Kathy
If you tell us what the nested exception is, it will give us more of a clue about what the problem is.
If your account bean is CMP, I don't think that will work if you are using ODBC to connect to Access.
[ January 26, 2002: Message edited by: Graeme Brown ]
 
Kathy OConnell
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The actual exception is not given in the error message.
However, in the console the following is given:
Persistent Name Server cannot be started.
com.ibm.ejs.EJSException: ; nested exception is:
java.rmi.RemoteException: jta/ JNDI subcontext not available; nested exception is:
javax.naming.NameAlreadyBoundException
java.rmi.RemoteException: jta/ JNDI subcontext not available; nested exception is:
javax.naming.NameAlreadyBoundException
javax.naming.NameAlreadyBoundException
java.lang.Throwable()
java.lang.Exception()
javax.naming.NamingException()
javax.naming.NameAlreadyBoundException()
javax.naming.Context com.ibm.ejs.ns.jndi.CNContextImpl.doCreateSubcontext(org.omg.CosNaming.NameComponent [])
javax.naming.Context com.ibm.ejs.ns.jndi.CNContextImpl.createSubcontext(java.lang.String)
javax.naming.Context javax.naming.InitialContext.createSubcontext(java.lang.String)
void com.ibm.ejs.sm.server.ManagedServer.exportUserTx()
void com.ibm.ejs.server.EJServer.start()
void com.ibm.ivj.control.tools.internal.EJSServer.startEJS(java.lang.String [])
boolean com.ibm.ivj.control.node.NameServerRunner.startServer()
void com.ibm.ivj.control.node.NameServerRunner.main(java.lang.String [])
java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object [])
Following your suggestion, if you cannot use a CMP bean to connect to Access using ODBC from VisualAge, then what databases can you connect to? I tried installing DB2 from the CD given in the book, but was unsuccessful. I think that was because I have Windows 2000 and the version of DB2 I had could only be installed in Win 98 or Win NT.
Thanks
Kathy
 
Kyle Brown
author
Ranch Hand
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Kathy,
You can download a free version of DB2 from the IBM Website that will install on Windows 2000.
Kyle
 
Kathy OConnell
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I looked into downloading DB2 from internet, but was put off by size of download - over 500mb. But, if that is the only way I will do it
Thanks
Kathy
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic