Re: [jboss-user] [Beginner's Corner] - Error while booting Jboss 5.0.1. Can anybody help?
by Wolfgang Knauf
Wolfgang Knauf [http://community.jboss.org/people/WolfgangKnauf] replied to the discussion
"Error while booting Jboss 5.0.1. Can anybody help?"
To view the discussion, visit: http://community.jboss.org/message/559557#559557
--------------------------------------------------------------
Hi,
you have an ear file "1.ear", which contains a whole lot of EJB jars, one for each bean, I assume?
It seems you have some kind of dependency beetween the beans, but JBoss cannot detect the correct deploy order, because they are split beetween jar files.
Why this? You can place all EJBs in one single EJB jar file, and this will avoid this dependency problem.
If this is not possible, you might take a look at the JBoss specific "@Depends" annotation, but I fear this one will not work cyclic dependencies.
Best regards
Wolfgang
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/559557#559557]
Start a new discussion in Beginner's Corner at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 4 months
[EJB 3.0] - Exception while trying to locate proxy factory in JNDI
by venu gopal
venu gopal [http://community.jboss.org/people/venuwin] created the discussion
"Exception while trying to locate proxy factory in JNDI"
To view the discussion, visit: http://community.jboss.org/message/559518#559518
--------------------------------------------------------------
Hi,
Recently I tried to move our application to Jboss EAP. The version of the files that work nicely on Jboss 5.1.0GA are not working here.
This is my code which leads to Exception :
String rssURL = "stage.rssURL.com:1099";
System.out.println("DF URL is " + dfUrl);
// JNDI lookup
Properties props = new Properties();
props.setProperty("java.naming.factory.initial","org.jnp.interfaces.NamingContextFactory");
props.setProperty("java.naming.factory.url.pkgs", "org.jboss.naming");
props.setProperty("java.naming.provider.url", rssURL);
InitialContext ic;
ic = new InitialContext(props);
lookup = (RSSLookupBeanRemote) ic.lookup("rssURL-lookup/RSSLookupBean/remote");
The stack trace is :
04:48:15,676 ERROR [STDERR] javax.naming.NamingException: Could not dereference object [Root exception is java.lang.RuntimeException: Exception while trying to locate proxy factory in JNDI, at key ProxyFactory/30cm-lookup/RSSLookupBean/30cm-lookup/RSSLookupBean/remote]
04:48:15,676 ERROR [STDERR] at org.jnp.interfaces.NamingContext.getObjectInstanceWrapFailure(NamingContext.java:1504)
04:48:15,676 ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:822)
04:48:15,676 ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:686)
04:48:15,676 ERROR [STDERR] at javax.naming.InitialContext.lookup(InitialContext.java:392)
04:48:15,676 ERROR [STDERR] at net.tss.vendors.underTheHood.webservice.UnderTheHoodInventoryManager.initLookUp(UnderTheHoodInventoryManager.java:55)
04:48:15,676 ERROR [STDERR] at net.tss.vendors.underTheHood.webservice.UnderTheHoodInventoryManager.getAvailability(UnderTheHoodInventoryManager.java:72)
04:48:15,676 ERROR [STDERR] at net.tss.app.service.inventory.ejb.InventoryBeanImpl.getAvailability(InventoryBeanImpl.java:68)
04:48:15,676 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
04:48:15,676 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
04:48:15,676 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
04:48:15,676 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
04:48:15,676 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeTarget(MethodInvocation.java:122)
04:48:15,676 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:111)
04:48:15,676 ERROR [STDERR] at org.jboss.ejb3.EJBContainerInvocationWrapper.invokeNext(EJBContainerInvocationWrapper.java:69)
04:48:15,676 ERROR [STDERR] at org.jboss.ejb3.interceptors.aop.InterceptorSequencer.invoke(InterceptorSequencer.java:76)
04:48:15,676 ERROR [STDERR] at org.jboss.ejb3.interceptors.aop.InterceptorSequencer.aroundInvoke(InterceptorSequencer.java:62)
04:48:15,676 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
04:48:15,676 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
04:48:15,676 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
04:48:15,676 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
04:48:15,677 ERROR [STDERR] at org.jboss.aop.advice.PerJoinpointAdvice.invoke(PerJoinpointAdvice.java:174)
04:48:15,677 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
04:48:15,677 ERROR [STDERR] at org.jboss.ejb3.interceptors.aop.InvocationContextInterceptor.fillMethod(InvocationContextInterceptor.java:72)
04:48:15,677 ERROR [STDERR] at org.jboss.aop.advice.org.jboss.ejb3.interceptors.aop.InvocationContextInterceptor_z_fillMethod_772475121.invoke(InvocationContextInterceptor_z_fillMethod_772475121.java)
04:48:15,677 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
04:48:15,677 ERROR [STDERR] at org.jboss.ejb3.interceptors.aop.InvocationContextInterceptor.setup(InvocationContextInterceptor.java:88)
04:48:15,677 ERROR [STDERR] at org.jboss.aop.advice.org.jboss.ejb3.interceptors.aop.InvocationContextInterceptor_z_setup_772475121.invoke(InvocationContextInterceptor_z_setup_772475121.java)
04:48:15,677 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
04:48:15,677 ERROR [STDERR] at org.jboss.ejb3.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:62)
04:48:15,677 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
04:48:15,677 ERROR [STDERR] at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:56)
04:48:15,677 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
04:48:15,677 ERROR [STDERR] at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
04:48:15,677 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
04:48:15,677 ERROR [STDERR] at org.jboss.ejb3.tx.NullInterceptor.invoke(NullInterceptor.java:42)
04:48:15,677 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
04:48:15,677 ERROR [STDERR] at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:68)
04:48:15,677 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
04:48:15,677 ERROR [STDERR] at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
04:48:15,677 ERROR [STDERR] at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:190)
04:48:15,677 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
04:48:15,677 ERROR [STDERR] at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
04:48:15,677 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
04:48:15,677 ERROR [STDERR] at org.jboss.ejb3.tx.NullInterceptor.invoke(NullInterceptor.java:42)
04:48:15,677 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
04:48:15,677 ERROR [STDERR] at org.jboss.ejb3.security.Ejb3AuthenticationInterceptorv2.invoke(Ejb3AuthenticationInterceptorv2.java:186)
04:48:15,677 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
04:48:15,677 ERROR [STDERR] at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:41)
04:48:15,677 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
04:48:15,677 ERROR [STDERR] at org.jboss.ejb3.BlockContainerShutdownInterceptor.invoke(BlockContainerShutdownInterceptor.java:67)
04:48:15,677 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
04:48:15,677 ERROR [STDERR] at org.jboss.aspects.currentinvocation.CurrentInvocationInterceptor.invoke(CurrentInvocationInterceptor.java:67)
04:48:15,677 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
04:48:15,677 ERROR [STDERR] at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:438)
04:48:15,677 ERROR [STDERR] at org.jboss.ejb3.remoting.IsLocalInterceptor.invokeLocal(IsLocalInterceptor.java:85)
04:48:15,677 ERROR [STDERR] at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:72)
04:48:15,677 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
04:48:15,677 ERROR [STDERR] at org.jboss.aspects.remoting.PojiProxy.invoke(PojiProxy.java:62)
04:48:15,677 ERROR [STDERR] at $Proxy332.invoke(Unknown Source)
04:48:15,678 ERROR [STDERR] at org.jboss.ejb3.proxy.impl.handler.session.SessionProxyInvocationHandlerBase.invoke(SessionProxyInvocationHandlerBase.java:188)
04:48:15,678 ERROR [STDERR] at $Proxy333.getAvailability(Unknown Source)
04:48:15,678 ERROR [STDERR] at com.delightCustomer.web.catalog.helper.InventoryCheckHelper.getInventoryForItem(InventoryCheckHelper.java:103)
04:48:15,678 ERROR [STDERR] at com.delightCustomer.web.action.AddToCartAction.checkStockForItem(AddToCartAction.java:417)
04:48:15,678 ERROR [STDERR] at com.delightCustomer.web.action.AddToCartAction.getNextView(AddToCartAction.java:297)
04:48:15,678 ERROR [STDERR] at com.delightCustomer.web.action.AddToCartAction.doDefault(AddToCartAction.java:163)
04:48:15,678 ERROR [STDERR] at com.delightCustomer.web.action.AddToCartAction.doDisplay(AddToCartAction.java:479)
04:48:15,678 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
04:48:15,678 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
04:48:15,678 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
04:48:15,678 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
04:48:15,678 ERROR [STDERR] at com.delightCustomer.web.DelightCustomerFrontController.processRequest(DelightCustomerFrontController.java:313)
04:48:15,678 ERROR [STDERR] at com.delightCustomer.web.DelightCustomerFrontController.doPost(DelightCustomerFrontController.java:1309)
04:48:15,678 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
04:48:15,678 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
04:48:15,678 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
04:48:15,678 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
04:48:15,678 ERROR [STDERR] at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:738)
04:48:15,678 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
04:48:15,678 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
04:48:15,678 ERROR [STDERR] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
04:48:15,678 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
04:48:15,678 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
04:48:15,678 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
04:48:15,678 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
04:48:15,678 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
04:48:15,678 ERROR [STDERR] at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
04:48:15,678 ERROR [STDERR] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
04:48:15,678 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
04:48:15,678 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
04:48:15,678 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
04:48:15,678 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
04:48:15,678 ERROR [STDERR] at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
04:48:15,678 ERROR [STDERR] at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:567)
04:48:15,678 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
04:48:15,679 ERROR [STDERR] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
04:48:15,679 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
04:48:15,679 ERROR [STDERR] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
04:48:15,679 ERROR [STDERR] at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
04:48:15,679 ERROR [STDERR] at java.lang.Thread.run(Thread.java:619)
04:48:15,679 ERROR [STDERR] Caused by: java.lang.RuntimeException: Exception while trying to locate proxy factory in JNDI, at key ProxyFactory/30cm-lookup/RSSLookupBean/30cm-lookup/RSSLookupBean/remote
04:48:15,679 ERROR [STDERR] at org.jboss.ejb3.proxy.impl.objectfactory.ProxyObjectFactory.getProxyFactoryFromJNDI(ProxyObjectFactory.java:249)
04:48:15,679 ERROR [STDERR] at org.jboss.ejb3.proxy.impl.objectfactory.ProxyObjectFactory.getObjectInstance(ProxyObjectFactory.java:157)
04:48:15,679 ERROR [STDERR] at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
04:48:15,679 ERROR [STDERR] at org.jnp.interfaces.NamingContext.getObjectInstance(NamingContext.java:1479)
04:48:15,679 ERROR [STDERR] at org.jnp.interfaces.NamingContext.getObjectInstanceWrapFailure(NamingContext.java:1496)
04:48:15,679 ERROR [STDERR] ... 98 more
04:48:15,679 ERROR [STDERR] Caused by: javax.naming.NameNotFoundException: ProxyFactory not bound
04:48:15,679 ERROR [STDERR] at org.jnp.server.NamingServer.getBinding(NamingServer.java:771)
04:48:15,679 ERROR [STDERR] at org.jnp.server.NamingServer.getBinding(NamingServer.java:779)
04:48:15,679 ERROR [STDERR] at org.jnp.server.NamingServer.getObject(NamingServer.java:785)
04:48:15,679 ERROR [STDERR] at org.jnp.server.NamingServer.lookup(NamingServer.java:396)
04:48:15,679 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor646.invoke(Unknown Source)
04:48:15,679 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
04:48:15,679 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
04:48:15,679 ERROR [STDERR] at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:305)
04:48:15,679 ERROR [STDERR] at sun.rmi.transport.Transport$1.run(Transport.java:159)
04:48:15,680 ERROR [STDERR] at java.security.AccessController.doPrivileged(Native Method)
04:48:15,680 ERROR [STDERR] at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
04:48:15,680 ERROR [STDERR] at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
04:48:15,680 ERROR [STDERR] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
04:48:15,680 ERROR [STDERR] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
04:48:15,680 ERROR [STDERR] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
04:48:15,680 ERROR [STDERR] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
04:48:15,680 ERROR [STDERR] at java.lang.Thread.run(Thread.java:619)
04:48:15,680 ERROR [STDERR] at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:255)
04:48:15,680 ERROR [STDERR] at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:233)
04:48:15,680 ERROR [STDERR] at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:142)
04:48:15,680 ERROR [STDERR] at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
04:48:15,680 ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:726)
04:48:15,680 ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:686)
04:48:15,680 ERROR [STDERR] at org.jboss.ejb3.proxy.impl.objectfactory.ProxyObjectFactory.getProxyFactoryFromJNDI(ProxyObjectFactory.java:240)
04:48:15,680 ERROR [STDERR] ... 102 more
as given in http://community.jboss.org/thread/149330 http://community.jboss.org/thread/149330, I tried changing
lookup = (RSSLookupBeanRemote) ic.lookup("rssURL-lookup/RSSLookupBean/remote");
to
lookup = (RSSLookupBeanRemote) ic.lookup("rssURL-lookup/RSSLookupBean/remote-com.rss.feedmgr.ejb.stateless.beans.RSSLookupBean");
Even then the same error is thrown. It would be of help if someone can help.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/559518#559518]
Start a new discussion in EJB 3.0 at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 4 months