7 Replies Latest reply on May 29, 2006 12:32 AM by Emmanuel Bernard

    Malformed URL Exception trying to access EJB 3.0 remote inte

    kimbaltrue Newbie

      I'm having a strange problem in the middle of running a JSF client against EJB 3.0 beans. An initial call to the EJB interface works, but when I try to make the same call later in the application I get the following error:

      java.lang.RuntimeException: java.net.MalformedURLException: no protocol: Files/jboss-4.0.4.CR2/server/tagus/tmp/deploy/tmp46659tagus-teller.ear-contents/tagus-teller-exp.war/WEB-INF/classes/
      java.lang.RuntimeException: java.net.MalformedURLException: no protocol: Files/jboss-4.0.4.CR2/server/tagus/tmp/deploy/tmp46659tagus-teller.ear-contents/tagus-teller-exp.war/WEB-INF/classes/
       at org.jboss.aop.joinpoint.MethodInvocation.getArguments(MethodInvocation.java:223)
       at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:222)
       at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:55)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
       at org.jboss.ejb3.stateless.StatelessRemoteProxy.invoke(StatelessRemoteProxy.java:102)
       at $Proxy90.getBranchLog(Unknown Source)
       at org.ccf.tagus.teller.beans.BranchOpenBean.standardGetBranchLog(BranchOpenBean.java:158)
       at org.ccf.tagus.teller.beans.BranchOpenBean.actionOpen(BranchOpenBean.java:179)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:126)
       at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:72)
       at com.sun.rave.web.ui.appbase.faces.ActionListenerImpl.processAction(ActionListenerImpl.java:57)
       at javax.faces.component.UICommand.broadcast(UICommand.java:312)
       at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:267)
       at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:381)
       at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:75)
       at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:221)
       at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
       at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
       at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
       at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
       at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
       at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:54)
       at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:174)
       at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
       at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
       at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
       at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
       at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
       at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
       at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
       at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
       at java.lang.Thread.run(Thread.java:595)



      The code that fails is straight out of the book JNDI lookup code.

      InitialContext context = new InitialContext();
      BranchOffice branchOffice = context.lookup("Tagus/BranchOffice/remote");



      Again this works during a start up call, but mid application it stops working. It's like the system is in some odd state.


        • 1. Re: Malformed URL Exception trying to access EJB 3.0 remote
          Scott Stark Master

          Test against the current jboss-4.0.4.GA-Patch1-installer.jar

          • 2. Re: Malformed URL Exception trying to access EJB 3.0 remote
            kimbaltrue Newbie

            I switched to the 4.0.4.GA release and now I have a new problem. The persistence unit won't load.

            I'm getting a warning then the session beans that depend on the persistence unit won't load with an error.

            The warning

            07:41:30,171 WARN [ServiceController] Problem starting service persistence.units:ear=Tagus.ear,unitName=TagusModel
            org.hibernate.HibernateException: cannot simultaneously fetch multiple bags
             at org.hibernate.loader.BasicLoader.postInstantiate(BasicLoader.java:66)
             at org.hibernate.loader.entity.EntityLoader.<init>(EntityLoader.java:75)
             at org.hibernate.loader.entity.EntityLoader.<init>(EntityLoader.java:43)
             at org.hibernate.loader.entity.EntityLoader.<init>(EntityLoader.java:33)
             at org.hibernate.loader.entity.BatchingEntityLoader.createBatchingEntityLoader(BatchingEntityLoader.java:103)
             at org.hibernate.persister.entity.AbstractEntityPersister.createEntityLoader(AbstractEntityPersister.java:1666)
             at org.hibernate.persister.entity.AbstractEntityPersister.createEntityLoader(AbstractEntityPersister.java:1670)
             at org.hibernate.persister.entity.AbstractEntityPersister.createLoaders(AbstractEntityPersister.java:2767)
             at org.hibernate.persister.entity.AbstractEntityPersister.postInstantiate(AbstractEntityPersister.java:2760)
             at org.hibernate.persister.entity.SingleTableEntityPersister.postInstantiate(SingleTableEntityPersister.java:667)
             at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:287)
             at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1213)
             at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:631)
             at org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Configuration.java:760)
             at org.hibernate.ejb.Ejb3Configuration.createContainerEntityManagerFactory(Ejb3Configuration.java:350)
             at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:119)
             at org.jboss.ejb3.entity.PersistenceUnitDeployment.start(PersistenceUnitDeployment.java:264)
             at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
             at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
             at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
             at java.lang.reflect.Method.invoke(Method.java:585)
             at org.jboss.ejb3.ServiceDelegateWrapper.startService(ServiceDelegateWrapper.java:99)
             at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
             at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
             at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
             at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
             at java.lang.reflect.Method.invoke(Method.java:585)
             at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
             at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
             at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
             at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
             at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
             at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
             at $Proxy0.start(Unknown Source)
             at org.jboss.system.ServiceController.start(ServiceController.java:417)
             at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
             at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
             at java.lang.reflect.Method.invoke(Method.java:585)
             at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
             at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
             at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
             at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
             at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
             at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
             at $Proxy61.start(Unknown Source)
             at org.jboss.ejb3.JmxKernelAbstraction.install(JmxKernelAbstraction.java:82)
             at org.jboss.ejb3.Ejb3Deployment.startPersistenceUnits(Ejb3Deployment.java:626)
             at org.jboss.ejb3.Ejb3Deployment.start(Ejb3Deployment.java:475)
             at org.jboss.ejb3.Ejb3Module.startService(Ejb3Module.java:139)
             at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
             at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
             at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
             at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
             at java.lang.reflect.Method.invoke(Method.java:585)
             at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
             at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
             at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
             at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
             at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
             at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
             at $Proxy0.start(Unknown Source)
             at org.jboss.system.ServiceController.start(ServiceController.java:417)
             at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
             at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
             at java.lang.reflect.Method.invoke(Method.java:585)
             at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
             at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
             at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
             at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
             at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
             at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
             at $Proxy34.start(Unknown Source)
             at org.jboss.ejb3.EJB3Deployer.start(EJB3Deployer.java:449)
             at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
             at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
             at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
             at java.lang.reflect.Method.invoke(Method.java:585)
             at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
             at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
             at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
             at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
             at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
             at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
             at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
             at org.jboss.ws.server.WebServiceDeployer.start(WebServiceDeployer.java:117)
             at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
             at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
             at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
             at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
             at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
             at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
             at $Proxy35.start(Unknown Source)
             at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1007)
             at org.jboss.deployment.MainDeployer.start(MainDeployer.java:997)
             at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:808)
             at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
             at sun.reflect.GeneratedMethodAccessor14.invoke(Unknown Source)
             at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
             at java.lang.reflect.Method.invoke(Method.java:585)
             at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
             at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
             at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
             at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
             at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
             at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
             at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
             at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
             at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
             at $Proxy6.deploy(Unknown Source)
             at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
             at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
             at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
             at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
             at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
             at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
             at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
             at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
             at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
             at java.lang.reflect.Method.invoke(Method.java:585)
             at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
             at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
             at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
             at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
             at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
             at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
             at $Proxy0.start(Unknown Source)
             at org.jboss.system.ServiceController.start(ServiceController.java:417)
             at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
             at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
             at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
             at java.lang.reflect.Method.invoke(Method.java:585)
             at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
             at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
             at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
             at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
             at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
             at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
             at $Proxy4.start(Unknown Source)
             at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
             at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1007)
             at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:808)
             at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
             at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:755)
             at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
             at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
             at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
             at java.lang.reflect.Method.invoke(Method.java:585)
             at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
             at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
             at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
             at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
             at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
             at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
             at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
             at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
             at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
             at $Proxy5.deploy(Unknown Source)
             at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
             at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
             at org.jboss.Main.boot(Main.java:200)
             at org.jboss.Main$1.run(Main.java:464)
             at java.lang.Thread.run(Thread.java:595)
            



            The error:
            07:41:36,015 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
            
            --- MBeans waiting for other MBeans ---
            ObjectName: persistence.units:ear=Tagus.ear,unitName=TagusModel
             State: FAILED
             Reason: org.hibernate.HibernateException: cannot simultaneously fetch multiple bags
             I Depend On:
             jboss.jca:service=ManagedConnectionFactory,name=TagusDS
             Depends On Me:
             jboss.j2ee:ear=Tagus.ear,jar=TagusEJB.jar,name=BranchOffice,service=EJB3
             jboss.j2ee:ear=Tagus.ear,jar=TagusEJB.jar,name=InstitutionServices,service=EJB3
             jboss.j2ee:ear=Tagus.ear,jar=TagusEJB.jar,name=MonetaryServices,service=EJB3
            
            --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
            ObjectName: persistence.units:ear=Tagus.ear,unitName=TagusModel
             State: FAILED
             Reason: org.hibernate.HibernateException: cannot simultaneously fetch multiple bags
             I Depend On:
             jboss.jca:service=ManagedConnectionFactory,name=TagusDS
             Depends On Me:
             jboss.j2ee:ear=Tagus.ear,jar=TagusEJB.jar,name=BranchOffice,service=EJB3
             jboss.j2ee:ear=Tagus.ear,jar=TagusEJB.jar,name=InstitutionServices,service=EJB3
             jboss.j2ee:ear=Tagus.ear,jar=TagusEJB.jar,name=MonetaryServices,service=EJB3
            



            Any ideas out there on why this should work in CR1, but not in the GA? It's the same code.

            • 3. Re: Malformed URL Exception trying to access EJB 3.0 remote
              kimbaltrue Newbie

              I may have found my answer, but I'm not sure I like it. Apparently, you can't eagerly fetch OneToMany relationships. I had two such fetchs because I'm using disconnected entites, and had to make sure record sets were available.

              How do I eagerly fetch OneToMany relationships?

              • 4. Re: Malformed URL Exception trying to access EJB 3.0 remote
                kimbaltrue Newbie

                Okay never mind the side issues on getting it to run in the GA. I've got the EJB application running with adjustments. However, when I try to run the JSP client I get the same error as I did before, but on the first call rather than the second.

                Any idea why I'm getting a malformed URL exception on an internal RMI call?

                13:33:53,859 ERROR [ApplicationBean] java.lang.RuntimeException: java.net.MalformedURLException: no protocol: Files/jboss-4.0.4.GA/server/tagus/tmp/deploy/tmp57960tagus-teller.ear-contents/tagus-teller-exp.war/WEB-INF/classes/
                java.lang.RuntimeException: java.net.MalformedURLException: no protocol: Files/jboss-4.0.4.GA/server/tagus/tmp/deploy/tmp57960tagus-teller.ear-contents/tagus-teller-exp.war/WEB-INF/classes/
                 at org.jboss.aop.joinpoint.MethodInvocation.getArguments(MethodInvocation.java:272)
                 at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:222)
                 at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:55)
                 at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                 at org.jboss.ejb3.stateless.StatelessRemoteProxy.invoke(StatelessRemoteProxy.java:102)
                 at $Proxy173.getNode(Unknown Source)
                 at org.ccf.tagus.teller.beans.ApplicationBean.initNode(ApplicationBean.java:176)
                 at org.ccf.tagus.teller.beans.ApplicationBean.init(ApplicationBean.java:83)
                 at com.sun.rave.web.ui.appbase.servlet.LifecycleListener.attributeAdded(LifecycleListener.java:132)
                 at org.apache.catalina.core.ApplicationContext.setAttribute(ApplicationContext.java:796)
                 at org.apache.catalina.core.ApplicationContextFacade.setAttribute(ApplicationContextFacade.java:333)
                 at com.sun.faces.context.ApplicationMap.put(ExternalContextImpl.java:496)
                 at com.sun.faces.application.ApplicationAssociate.createAndMaybeStoreManagedBeans(ApplicationAssociate.java:287)
                 at com.sun.faces.el.VariableResolverImpl.resolveVariable(VariableResolverImpl.java:78)
                 at com.sun.rave.web.ui.appbase.faces.VariableResolverImpl.resolveVariable(VariableResolverImpl.java:96)
                 at com.sun.faces.el.impl.NamedValue.evaluate(NamedValue.java:125)
                 at com.sun.faces.el.impl.ComplexValue.evaluate(ComplexValue.java:146)
                 at com.sun.faces.el.impl.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:243)
                 at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:173)
                 at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:154)
                 at javax.faces.component.UIOutput.getValue(UIOutput.java:147)
                 at com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getValue(HtmlBasicInputRenderer.java:82)
                 at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.getCurrentValue(HtmlBasicRenderer.java:191)
                 at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeEnd(HtmlBasicRenderer.java:169)
                 at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:720)
                 at javax.faces.webapp.UIComponentTag.encodeEnd(UIComponentTag.java:623)
                 at javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:546)
                 at com.sun.faces.taglib.html_basic.OutputTextTag.doEndTag(OutputTextTag.java:173)
                 at org.apache.jsp.login.login_jsp._jspx_meth_html_outputText_0(login_jsp.java:192)
                 at org.apache.jsp.login.login_jsp._jspx_meth_core_view_0(login_jsp.java:130)
                 at org.apache.jsp.login.login_jsp._jspService(login_jsp.java:74)
                 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
                 at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
                 at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
                 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
                 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
                 at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                 at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
                 at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
                 at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
                 at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
                 at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
                 at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:130)
                 at com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.renderView(ViewHandlerImpl.java:311)
                 at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
                 at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:221)
                 at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
                 at javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                 at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
                 at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
                 at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
                 at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
                 at org.apache.catalina.authenticator.FormAuthenticator.forwardToLoginPage(FormAuthenticator.java:315)
                 at org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:243)
                 at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:490)
                 at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
                 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
                 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
                 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
                 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
                 at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
                 at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
                 at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
                 at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
                 at java.lang.Thread.run(Thread.java:595)
                Caused by: java.net.MalformedURLException: no protocol: Files/jboss-4.0.4.GA/server/tagus/tmp/deploy/tmp57960tagus-teller.ear-contents/tagus-teller-exp.war/WEB-INF/classes/
                 at java.net.URL.<init>(URL.java:567)
                 at java.net.URL.<init>(URL.java:464)
                 at java.net.URL.<init>(URL.java:413)
                 at sun.rmi.server.LoaderHandler.pathToURLs(LoaderHandler.java:747)
                 at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:147)
                 at java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:620)
                 at org.jboss.system.JBossRMIClassLoader.loadClass(JBossRMIClassLoader.java:91)
                 at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:247)
                 at sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:197)
                 at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1538)
                 at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1460)
                 at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1693)
                 at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
                 at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1628)
                 at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1293)
                 at java.io.ObjectInputStream.readObject(ObjectInputStream.java:339)
                 at java.rmi.MarshalledObject.get(MarshalledObject.java:135)
                 at org.jboss.aop.joinpoint.MethodInvocation.getArguments(MethodInvocation.java:267)
                 ... 68 more
                13:33:53,921 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception


                • 5. Re: Malformed URL Exception trying to access EJB 3.0 remote
                  kimbaltrue Newbie

                  Apparently, I'm not the only one having this problem. When JBoss deploys in Windows it places itself into the "Program Files" directory. This is a typical Windows path with spaces. The classloader is not able to deal with the spaces though and fails with a MalformedURLException with a URL that begins where the last space is;

                  Files/jboss-4.0.4.GA/server/....

                  This is obviously a malformed URL since a large chunck of it is missing.

                  For now I will redeploy JBoss into the Windows C:\ directory, but I would think this is a bug.

                  • 6. Re: Malformed URL Exception trying to access EJB 3.0 remote
                    John Doe Newbie

                    I am having the same problem as well. You can see http://www.jboss.com/index.html?module=bb&op=viewtopic&t=83573 I think that it could be fixed if RMI filled url spaces with '%20' code like c:\Program%20Files\jboss... Please let me know about any additional solution. Thanks, bye.

                    • 7. Re: Malformed URL Exception trying to access EJB 3.0 remote
                      Emmanuel Bernard Master

                       

                      "kimbaltrue" wrote:
                      I may have found my answer, but I'm not sure I like it. Apparently, you can't eagerly fetch OneToMany relationships. I had two such fetchs because I'm using disconnected entites, and had to make sure record sets were available.

                      How do I eagerly fetch OneToMany relationships?

                      use @Fetch(subselect)