javax.naming.NameNotFoundException: RuleEngineManager not bo
rakula Mar 17, 2009 2:32 PMHello,
Currently, my application is deployed on JBoss 4.x, I am in the process of migrating to Jboss 5.x. My application in suceesfully deployed in Jboss 5.0.1 GA using JDK 1.6 but i get the following error when the client is trying to lookup for an ejb. The client request is coming through a servlet.
09:28:59,606 ERROR [STDERR] javax.naming.NameNotFoundException: RuleEngineManage r not bound 09:28:59,606 ERROR [STDERR] at org.jnp.server.NamingServer.getBinding(Naming Server.java:771) 09:28:59,606 ERROR [STDERR] at org.jnp.server.NamingServer.getBinding(Naming Server.java:779) 09:28:59,606 ERROR [STDERR] at org.jnp.server.NamingServer.getObject(NamingS erver.java:785) 09:28:59,731 ERROR [STDERR] at org.jnp.server.NamingServer.lookup(NamingServ er.java:443) 09:28:59,731 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0( Native Method) 09:28:59,731 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(N ativeMethodAccessorImpl.java:39) 09:28:59,731 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invo ke(DelegatingMethodAccessorImpl.java:25) 09:28:59,731 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:5 97) 09:28:59,731 ERROR [STDERR] at sun.rmi.server.UnicastServerRef.dispatch(Unic astServerRef.java:305) 09:28:59,731 ERROR [STDERR] at sun.rmi.transport.Transport$1.run(Transport.j ava:159) 09:28:59,731 ERROR [STDERR] at java.security.AccessController.doPrivileged(N ative Method) 09:28:59,731 ERROR [STDERR] at sun.rmi.transport.Transport.serviceCall(Trans port.java:155) 09:28:59,731 ERROR [STDERR] at sun.rmi.transport.tcp.TCPTransport.handleMess ages(TCPTransport.java:535) 09:28:59,731 ERROR [STDERR] at sun.rmi.transport.tcp.TCPTransport$Connection Handler.run0(TCPTransport.java:790) 09:28:59,731 ERROR [STDERR] at sun.rmi.transport.tcp.TCPTransport$Connection Handler.run(TCPTransport.java:649) 09:28:59,731 ERROR [STDERR] at java.util.concurrent.ThreadPoolExecutor$Worke r.runTask(ThreadPoolExecutor.java:886) 09:28:59,731 ERROR [STDERR] at java.util.concurrent.ThreadPoolExecutor$Worke r.run(ThreadPoolExecutor.java:908) 09:28:59,731 ERROR [STDERR] at java.lang.Thread.run(Thread.java:619) 09:28:59,731 ERROR [STDERR] at sun.rmi.transport.StreamRemoteCall.exceptionR eceivedFromServer(StreamRemoteCall.java:255) 09:28:59,731 ERROR [STDERR] at sun.rmi.transport.StreamRemoteCall.executeCal l(StreamRemoteCall.java:233) 09:28:59,731 ERROR [STDERR] at sun.rmi.server.UnicastRef.invoke(UnicastRef.j ava:142) 09:28:59,747 INFO [ServerImpl] JBoss (Microcontainer) [5.0.1.GA (build: SVNTag= JBoss_5_0_1_GA date=200902231221)] Started in 3m:45s:522ms 09:28:59,747 ERROR [STDERR] at org.jnp.server.NamingServer_Stub.lookup(Unkno wn Source) 09:28:59,747 ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(Namin gContext.java:722) 09:28:59,747 ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(Namin gContext.java:682) 09:28:59,762 ERROR [STDERR] at javax.naming.InitialContext.lookup(InitialCon text.java:392) 09:28:59,762 ERROR [STDERR] at b2b.beans.EntityBeanLookup.getRuleEngineManag er(EntityBeanLookup.java:1941) 09:28:59,762 ERROR [STDERR] at b2b.beans.EntityBeanLookup.getRuleEngineManag er(EntityBeanLookup.java:1922) 09:28:59,762 ERROR [STDERR] at b2b.managers.system.EndOfDayMonitor.run(EndOf DayMonitor.java:78) 09:28:59,762 ERROR [STDERR] at java.util.TimerThread.mainLoop(Timer.java:512 ) 09:28:59,762 ERROR [STDERR] at java.util.TimerThread.run(Timer.java:462) 09:28:59,762 INFO [STDOUT] Got EJB context from JNDI javax.naming.InitialContex t@1d673d3
My application is deployed as .ear file. This .ear contains different .jar files for each of the ejb's and a .war for a web application. Servlet is deployed in the .war file. Also, utility classes are bundled in a jar within this .ear file.
.ear -META-INF -application.xmk -MANIFEST.mf -.jar for each of the ejbs -bean classes -META-INF -ejb-jar.xml -jboss.xml --MANIFEST.mf -.war -WEB-INF -servlet classes and other classes
So far i did these to resolve this issue but still getting the same error.
1) Removed some of the duplicate ejb classes loaded in .war
2) deployment sequence
Looks like ejb's are getting deployed before .war deployment.
This is order i set up in \server\default\conf\xmdesc\org.jboss.deployment.MainDeployer-xmbean.xml
<attribute access='read-write' setMethod='setEnhancedSuffixOrder' getMethod='getEnhancedSuffixOrder'> <description>Allows the override of the suffix order declared by subdeployers, using the syntax [order:]suffix </description> <name>EnhancedSuffixOrder</name> <type>[Ljava.lang.String;</type> <!-- Statically set one or more enhanced suffix orders, independent of the value proposed by subdeployers. Some deployers may also allow the suffixes/orders to be set locally, so that's preferable too. For reference, this is the list of enhanced suffixes likely to be set by deployers (it may not be completely up-to-date, or there can be user-defined deployers). 050:.deployer,050:-deployer.xml,100:.aop,100:-aop.xml,150:.sar,150:-service.xml,200:.beans,250:.rar,300:-ds.xml,350:.har,400:.jar,400:.ejb3,400:.par,500:.war,600:.wsr,650:.ear,700:.jar,750:.zip,800:.bsh,900:.last Until we resolve some startup issues, we'll setup some static enhanced suffix orders bellow and leave the rest of the suffixes contributed dynamically by registering deployers. --> <descriptors> <value value="250:.rar,300:-ds.xml,400:.jar,500:.ear,550:.jse,650:.jar,700:.war,800:.bsh"/> </descriptors> </attribute>
3) Some of the class loading configuration like "java2ClassLoadingCompliance", "java2ParentDelegation" set to true
Can somebody please help me to figure out the problem here? I am not sure if is a class loading issue or context issue or something else.
This package(.ear) perfectly works in Jboss 4.x. I am having issues only in Jboss 5.0.1 GA
Thanks,
Raj