Hi guys, I'm struggling with the following problem. I'm trying to migrate one
of my applications to Glassfish 3.1 from Glassfish 2.1. Most of the time it's
about fighting incompatibility issues between Toplink Essentias and
Eclipselink. But now I'm facing different problem. I got to the point when I
log into the application, after login some necessary data are loaded and then
the application is supposed to display its main page (dashboard). But instead
of that I get following exception.
<code>
[#|2011-04-16T21:16:09.366+0200|WARNING|glassfish3.1|javax.enterprise.system.container.web.com.sun.enterprise.web._vs.server|_ThreadID=238;_ThreadName=Thread-42;|StandardWrapperValve[jsp]:
PWC1406: Servlet.service() for servlet jsp threw exception
java.lang.RuntimeException: WEB5001: Exception during processing of event of
type AFTER_SERVICE_EVENT for web module
StandardEngine[glassfish-web].StandardHost[server].StandardContext[/portal-war]
at
com.sun.web.server.J2EEInstanceListener.handleAfterEvent(J2EEInstanceListener.java:344)
at
com.sun.web.server.J2EEInstanceListener.instanceEvent(J2EEInstanceListener.java:112)
at
org.apache.catalina.util.InstanceSupport.fireInstanceEvent(InstanceSupport.java:465)
at
org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1557)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:281)
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 com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:98)
at
com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:91)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:162)
at
org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:326)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:227)
at
com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:170)
at
com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:822)
at
com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:719)
at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1013)
at
com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)
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:619)
Caused by: org.glassfish.api.invocation.InvocationException
at
org.glassfish.api.invocation.InvocationManagerImpl.postInvoke(InvocationManagerImpl.java:190)
at
com.sun.web.server.J2EEInstanceListener.handleAfterEvent(J2EEInstanceListener.java:339)
... 27 more
</code>
The exact point when something goes wrong is this:
<code><jsp:forward page="/application"/></code>
Where in the web.xml there is this :
<code>
<servlet>
<servlet-name>ApplicationServlet</servlet-name>
<servlet-class>com.apl.framework.p13n.ApplicationServlet</servlet-class>
<init-param>
<param-name>portalTitle</param-name>
<param-value>PORTAL</param-value>
</init-param>
<run-as>
<role-name>PortalUsers</role-name>
</run-as>
</servlet>
<servlet-mapping>
<servlet-name>ApplicationServlet</servlet-name>
<url-pattern>/application</url-pattern>
</servlet-mapping>
</code>
Code execution never reaches the ApplicationServlet servlet.
Any ideas why this is happening ? Any help would be appreciated.
P.
--
[Message sent by forum member 'thecid']
View Post: http://forums.java.net/node/792728