8 Replies Latest reply on Oct 14, 2011 6:22 AM by tong tong

    error when migrate from jboss 4.0.3 to 4.2.0

    tong tong Newbie

      the error message in E:\IBM\WebSphere\AppServer\profiles\AppSrv01\logs\server1\systemout.log is as follows

       

      [10/14/11 14:38:47:472 CST] 00000032 SystemOut O [2011-10-14 14:38:47,425] WebContainer : 0 td.es.common.external.utils.RequestMocker ERROR - Exception raised in receiveOnlineRequest()

      hk.gov.ogcio.egis.rm.common.exception.ServiceException

      at hk.gov.ogcio.egis.rm.common.utils.ServiceLocator.getRemoteHome(ServiceLocator.java:270)
      at hk.gov.ogcio.egis.rm.onlinerequest.utils.EJBLocator.getEJBRemote(EJBLocator.java:92)
      at td.es.common.external.utils.RequestMocker.getOnlineRequestBusinessManagerEJB(RequestMocker.java:258)
      at td.es.common.external.utils.RequestMocker.send(RequestMocker.java:140)
      at td.es.common.external.struts.action.GenericAction.send(GenericAction.java:70)
      at td.es.common.external.struts.action.GenericCheckClientConfigAction.execute(GenericCheckClientConfigAction.java:193)
      at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419)
      at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)
      at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
      at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
      at td.es.common.external.servlet.PreprocessServlet.doPost(PreprocessServlet.java:43)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
      at td.es.common.external.servlet.PreprocessServlet.service(PreprocessServlet.java:69)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
      at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:966)
      at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:907)
      at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:145)
      at td.es.common.external.RequestEncodingFilter.doFilter(RequestEncodingFilter.java:47)
      at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)
      at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)
      at td.es.common.external.CheckSessionFilter.doFilter(CheckSessionFilter.java:117)
      at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)
      at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)
      at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:87)
      at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:696)
      at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:641)
      at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:475)
      at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:463)
      at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3107)
      at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:238)
      at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:811)
      at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1425)
      at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:92)
      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:465)
      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:394)
      at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:102)
      at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:152)
      at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:213)
      at com.ibm.io.async.AbstractAsyncFuture.fireCompletionActions(AbstractAsyncFuture.java:195)
      at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
      at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:193)
      at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:725)
      at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:847)
      at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1498)

      Caused by:

      javax.naming.CommunicationException [Root exception is java.lang.ClassNotFoundException: org.jboss.invocation.unified.interfaces.UnifiedInvokerProxy (no security manager: RMI class loader disabled)]

      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:713)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:572)
      at javax.naming.InitialContext.lookup(InitialContext.java:363)
      at hk.gov.ogcio.egis.rm.common.utils.ServiceLocator.getRemoteHome(ServiceLocator.java:267)
      ... 43 more

      Caused by:

      java.lang.ClassNotFoundException: org.jboss.invocation.unified.interfaces.UnifiedInvokerProxy (no security manager: RMI class loader disabled)

      at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:386)
      at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:180)
      at java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:632)
      at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:259)
      at sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:212)
      at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1553)
      at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1475)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1708)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1314)
      at java.io.ObjectInputStream.readObject(ObjectInputStream.java:354)
      at java.util.HashMap.readObject(HashMap.java:1068)
      at sun.reflect.GeneratedMethodAccessor124.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:615)
      at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1001)
      at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1828)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1728)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1314)
      at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1927)
      at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1851)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1728)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1314)
      at java.io.ObjectInputStream.readObject(ObjectInputStream.java:354)
      at org.jboss.proxy.ClientContainer.readExternal(ClientContainer.java:143)
      at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1768)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1726)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1314)
      at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1927)
      at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1851)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1728)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1314)
      at java.io.ObjectInputStream.readObject(ObjectInputStream.java:354)
      at java.rmi.MarshalledObject.get(MarshalledObject.java:163)
      at org.jnp.interfaces.MarshalledValuePair.get(MarshalledValuePair.java:57)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:637)
      ... 46 more

       

      I think the main problem is

       

      java.lang.ClassNotFoundException: org.jboss.invocation.unified.interfaces.UnifiedInvokerProxy (no security manager: RMI class loader disabled)

       

      I google and see many people face the same error when migrate from 4.0.3 to jboss 4.2, but no one post a clear solution. Some just mention jbossall-client.jar is not in the client classpath, some said the invocagtion method is different, so what is the final answer? is it need to change code?