This discussion is archived
2 Replies Latest reply: Sep 13, 2013 11:46 AM by e4de6a33-fe3e-4791-b8a9-72d5ddbaa714 RSS

How to use coherence-web with a struts form bean

791a2396-c577-4dbd-abc1-76c0f44b80c5 Newbie
Currently Being Moderated

We are trying to switch to Glassfish 3.1 but when we switch the persistence-type from "replicated" to "coherence-web" our struts applications start failing.  The first time we try the application the page loads.  But all calls from then on end in error.  The form bean is called FbCustomer.  Any help is greatly appreciated!!  Here is the error....

 

WARNING: StandardWrapperValve[action]: PWC1406: Servlet.service() for servlet action threw exception(Wrapped) java.io.IOException: readObject failed: java.lang.ClassNotFoundException: rav.einvoice.web.forms.FbCustomer

    at java.net.URLClassLoader$1.run(URLClassLoader.java:366)

    at java.net.URLClassLoader$1.run(URLClassLoader.java:355)

    at java.security.AccessController.doPrivileged(Native Method)

    at java.net.URLClassLoader.findClass(URLClassLoader.java:354)

    at java.lang.ClassLoader.loadClass(ClassLoader.java:424)

    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)

    at java.lang.Class.forName0(Native Method)

    at java.lang.Class.forName(Class.java:270)

    at java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:623)

    at com.tangosol.io.ResolvingObjectInputStream.resolveClass(ResolvingObjectInputStream.java:66)

    at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1610)

    at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1515)

    at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1769)

    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1348)

    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:370)

    at com.tangosol.util.ExternalizableHelper.readSerializable(ExternalizableHelper.java:2217)

    at com.tangosol.util.ExternalizableHelper.readObjectInternal(ExternalizableHelper.java:2348)

    at com.tangosol.util.ExternalizableHelper.deserializeInternal(ExternalizableHelper.java:2746)

    at com.tangosol.util.ExternalizableHelper.fromBinary(ExternalizableHelper.java:262)

    at com.tangosol.coherence.servlet.OptimizedHolder.deserializeValue(OptimizedHolder.java:233)

    at com.tangosol.coherence.servlet.OptimizedHolder.getValue(OptimizedHolder.java:64)

    at com.tangosol.coherence.servlet.SplittableHolder.getValue(SplittableHolder.java:56)

    at com.tangosol.coherence.servlet.AbstractHttpSessionModel.getAttribute(AbstractHttpSessionModel.java:130)

    at com.tangosol.coherence.servlet.api23.HttpSessionImpl.getAttribute(HttpSessionImpl.java:81)

    at com.tangosol.coherence.servlet.glassfish31.CoherenceWebSession.getAttribute(CoherenceWebSession.java:461)

    at com.tangosol.coherence.servlet.glassfish31.CoherenceWebSessionFacade.getAttribute(CoherenceWebSessionFacade.java:87)

    at org.apache.struts.util.RequestUtils.createActionForm(RequestUtils.java:777)

    at org.apache.struts.action.RequestProcessor.processActionForm(RequestProcessor.java:364)

    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:253)

    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)

    at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)

    at javax.servlet.http.HttpServlet.service(HttpServlet.java:668)

    at javax.servlet.http.HttpServlet.service(HttpServlet.java:770)

    at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1554)

    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:280)

    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)

    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)

    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)

    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)

    at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:331)

    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231)

    at com.sun.enterprise.v3.services.impl.ContainerMapper$AdapterCallable.call(ContainerMapper.java:317)

    at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195)

    at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:864)

    at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:761)

    at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1050)

    at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:231)

    at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)

    at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)

    at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)

    at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)

    at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)

    at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)

    at com.sun.grizzly.ContextTask.run(ContextTask.java:71)

    at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)

    at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)

    at java.lang.Thread.run(Thread.java:724)ClassLoader: java.net.URLClassLoader@695f18fe

    at com.tangosol.util.ExternalizableHelper.fromBinary(ExternalizableHelper.java:266)

    at com.tangosol.coherence.servlet.OptimizedHolder.deserializeValue(OptimizedHolder.java:233)

    at com.tangosol.coherence.servlet.OptimizedHolder.getValue(OptimizedHolder.java:64)

    at com.tangosol.coherence.servlet.SplittableHolder.getValue(SplittableHolder.java:56)

    at com.tangosol.coherence.servlet.AbstractHttpSessionModel.getAttribute(AbstractHttpSessionModel.java:130)

    at com.tangosol.coherence.servlet.api23.HttpSessionImpl.getAttribute(HttpSessionImpl.java:81)

    at com.tangosol.coherence.servlet.glassfish31.CoherenceWebSession.getAttribute(CoherenceWebSession.java:461)

    at com.tangosol.coherence.servlet.glassfish31.CoherenceWebSessionFacade.getAttribute(CoherenceWebSessionFacade.java:87)

    at org.apache.struts.util.RequestUtils.createActionForm(RequestUtils.java:777)

    at org.apache.struts.action.RequestProcessor.processActionForm(RequestProcessor.java:364)

    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:253)

    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)

    at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)

    at javax.servlet.http.HttpServlet.service(HttpServlet.java:668)

    at javax.servlet.http.HttpServlet.service(HttpServlet.java:770)

    at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1554)

    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:280)

    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)

    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)

    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)

    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)

    at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:331)

    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231)

    at com.sun.enterprise.v3.services.impl.ContainerMapper$AdapterCallable.call(ContainerMapper.java:317)

    at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195)

    at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:864)

    at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:761)

    at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1050)

    at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:231)

    at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)

    at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)

    at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)

    at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)

    at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)

    at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)

    at com.sun.grizzly.ContextTask.run(ContextTask.java:71)

    at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)

    at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)

    at java.lang.Thread.run(Thread.java:724)Caused by: java.io.IOException: readObject failed: java.lang.ClassNotFoundException: rav.einvoice.web.forms.FbCustomer

    at java.net.URLClassLoader$1.run(URLClassLoader.java:366)

    at java.net.URLClassLoader$1.run(URLClassLoader.java:355)

    at java.security.AccessController.doPrivileged(Native Method)

    at java.net.URLClassLoader.findClass(URLClassLoader.java:354)

    at java.lang.ClassLoader.loadClass(ClassLoader.java:424)

    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)

    at java.lang.Class.forName0(Native Method)

    at java.lang.Class.forName(Class.java:270)

    at java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:623)

    at com.tangosol.io.ResolvingObjectInputStream.resolveClass(ResolvingObjectInputStream.java:66)

    at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1610)

    at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1515)

    at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1769)

    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1348)

    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:370)

    at com.tangosol.util.ExternalizableHelper.readSerializable(ExternalizableHelper.java:2217)

    at com.tangosol.util.ExternalizableHelper.readObjectInternal(ExternalizableHelper.java:2348)

    at com.tangosol.util.ExternalizableHelper.deserializeInternal(ExternalizableHelper.java:2746)

    at com.tangosol.util.ExternalizableHelper.fromBinary(ExternalizableHelper.java:262)

    at com.tangosol.coherence.servlet.OptimizedHolder.deserializeValue(OptimizedHolder.java:233)

    at com.tangosol.coherence.servlet.OptimizedHolder.getValue(OptimizedHolder.java:64)

    at com.tangosol.coherence.servlet.SplittableHolder.getValue(SplittableHolder.java:56)

    at com.tangosol.coherence.servlet.AbstractHttpSessionModel.getAttribute(AbstractHttpSessionModel.java:130)

    at com.tangosol.coherence.servlet.api23.HttpSessionImpl.getAttribute(HttpSessionImpl.java:81)

    at com.tangosol.coherence.servlet.glassfish31.CoherenceWebSession.getAttribute(CoherenceWebSession.java:461)

    at com.tangosol.coherence.servlet.glassfish31.CoherenceWebSessionFacade.getAttribute(CoherenceWebSessionFacade.java:87)

    at org.apache.struts.util.RequestUtils.createActionForm(RequestUtils.java:777)

    at org.apache.struts.action.RequestProcessor.processActionForm(RequestProcessor.java:364)

    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:253)

    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)

    at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)

    at javax.servlet.http.HttpServlet.service(HttpServlet.java:668)

    at javax.servlet.http.HttpServlet.service(HttpServlet.java:770)

    at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1554)

    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:280)

    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)

    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)

    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)

    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)

    at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:331)

    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231)

    at com.sun.enterprise.v3.services.impl.ContainerMapper$AdapterCallable.call(ContainerMapper.java:317)

    at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195)

    at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:864)

    at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:761)

    at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1050)

    at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:231)

    at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)

    at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)

    at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)

    at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)

    at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)

    at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)

    at com.sun.grizzly.ContextTask.run(ContextTask.java:71)

    at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)

    at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)

    at java.lang.Thread.run(Thread.java:724)ClassLoader: java.net.URLClassLoader@695f18fe

    at com.tangosol.util.ExternalizableHelper.readSerializable(ExternalizableHelper.java:2225)

    at com.tangosol.util.ExternalizableHelper.readObjectInternal(ExternalizableHelper.java:2348)

    at com.tangosol.util.ExternalizableHelper.deserializeInternal(ExternalizableHelper.java:2746)

    at com.tangosol.util.ExternalizableHelper.fromBinary(ExternalizableHelper.java:262)    ... 38 more

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points