Hi everyone..
I have a problem with my jsp's.
500 Internal Server Error
java.lang.NullPointerException at org.apache.struts.action.RequestProcessor.getServletContext(RequestProcessor.java:1136) at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1062) at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279) 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:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:824) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:285) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:126) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192) at java.lang.Thread.run(Thread.java:534)
I have 3 java projects project1, project2, project3. I am using oracle oc4j 10.1.2 container.
project2 and project3 use project1 as a jar file.
When I edit a jsp page in either project2 or project3 and do an ant build that copies project1 jar file to project2 and project3 and then when I refresh the page, i am getting the above error. I have to restart the server everytime I modify any jsp page.
Can anybody throw some light regarding this and suggest me how the page refresh will work without restarting the server?
project1 build.xml..
<target name="makejar" description="Create a jar for the project">
<jar jarfile="${jarbuild}/common.jar" basedir="${src}"/>
</target>
<target name="copyJar" depends="makejar">
<copy todir="${DestDir}">
<fileset dir="${jarbuild}"/>
</copy>
</target>
project2 build.xml
<property name="jspsrcdir" location="${basedir}/WebContent" />
<property name="jspdestdir" location="XXXXX" />
<target>
<copy todir="${jspdestdir}">
<fileset dir="${jspsrcdir}">
</copy>
</target