Mantis - Resin
|
|||||
Viewing Issue Advanced Details | |||||
|
|||||
ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
1722 | minor | always | 04-30-07 19:51 | 05-25-07 15:51 | |
|
|||||
Reporter: | gzhu | Platform: | Dell | ||
Assigned To: | westrupp | OS: | Debian | ||
Priority: | normal | OS Version: | 2.6.7-1-686-smp | ||
Status: | closed | Product Version: | 3.1.1 | ||
Product Build: | alpha build | Resolution: | fixed | ||
Projection: | none | ||||
ETA: | none | Fixed in Version: | 3.1.1 | ||
|
|||||
Summary: | 0001722: EntityManager binding error | ||||
Description: |
I have a method traversing JNDI tree, and failed at node EntityManager. Here is the method to print JNDI tree: ======================================================= public static String listContext (Context ctx, String indent) { StringBuffer retBuf = new StringBuffer(); try { NamingEnumeration list = ctx.listBindings(""); while (list.hasMore()) { try { Binding item = (Binding) list.next(); String className = item.getClassName(); String name = item.getName(); retBuf.append(indent + name + " (" + className + ")\n"); Object o = item.getObject(); if (o instanceof javax.naming.Context) retBuf.append(listContext((Context) o, indent + "+ ")); } catch (NamingException nex) { LogEvent.error(nex, "Invalid binding:"); retBuf.append(indent + "***** Invalid Binding ******\n"); } } } catch (NamingException ex) { LogEvent.error(ex, "List errors "); } return retBuf.toString(); } =============================================== Here is the exception: -------------------------- localhost 2007/04/30 19:36:19.824 ERROR [5]listContext(JNDIManager.java:98) Invalid binding: localhost ===> exception message: EntityManager localhost 2007/04/30 19:36:19.824 DEBUG [5]>>> javax.naming.NameNotFoundException: EntityManager localhost 2007/04/30 19:36:19.824 DEBUG [5]>>> at com.caucho.naming.ContextImpl.lookup(ContextImpl.java:163) localhost 2007/04/30 19:36:19.824 DEBUG [5]>>> at com.caucho.naming.QBindingEnumeration.next(QBindingEnumeration.java:68) localhost 2007/04/30 19:36:19.824 DEBUG [5]>>> at com.caucho.naming.QBindingEnumeration.next(QBindingEnumeration.java:44) localhost 2007/04/30 19:36:19.824 DEBUG [5]>>> at com.ironplanet.util.JNDIManager.listContext(JNDIManager.java:88) localhost 2007/04/30 19:36:19.824 DEBUG [5]>>> at com.ironplanet.util.JNDIManager.listContext(JNDIManager.java:94) --------------------------------------------------- the output JNDI string is like this (look for Invalid Binding): localhost java: (com.caucho.naming.ContextImpl) localhost java:comp (com.caucho.naming.ContextImpl) localhost + env (com.caucho.naming.ContextImpl) localhost + + jmx (com.caucho.naming.ContextImpl) localhost + + + GlobalMBeanServer (com.caucho.jmx.GlobalMBeanServer) localhost + + + MBeanServer (com.caucho.jmx.EnvironmentMBeanServer) localhost + + cmp (com.caucho.naming.ContextImpl) .......... a lot of my EJBs ........... localhost + + persistence (com.caucho.naming.ContextImpl) localhost + + + resin-ejb (com.caucho.amber.manager.EntityManagerProxy) localhost + + + _amber_PersistenceUnit (com.caucho.naming.ContextImpl) localhost + + + + resin-ejb (com.caucho.amber.manager.AmberEntityManagerFactory) localhost + + OracleDS (com.caucho.sql.DBPool) localhost + ***** Invalid Binding ****** localhost + ThreadPool (com.caucho.util.ResinThreadPoolExecutor) localhost + UserTransaction (com.caucho.jca.UserTransactionProxy) localhost + TransactionManager (com.caucho.transaction.TransactionManagerImpl) localhost + ORB (com.caucho.iiop.orb.ORBImpl) localhost |
||||
Steps To Reproduce: | |||||
Additional Information: | |||||
System Description: | Development environment | ||||
Relationships | |||||
Attached Files: |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|