Service Desk Practitioners Forum
cancel

Tomcat and jsp issue

Highlighted
Jan Gunnar Helg
Honored Contributor.

Tomcat and jsp issue

Hi

We are running our service pages on Tomcat. We also have some custom java scripts that we run.

The problem is

When I run http:\\server:8080\script.jsp I get a 404 page cannot be found even tho the path is correct.

However if I run http:\\server:8080\tomcat.gif it display fine. So there is no problem with the actual web service.

Is there are setting somewhere where I have to allow Tomcat to run scripts?
8 REPLIES
Jay Mistry
Outstanding Contributor.

Re: Tomcat and jsp issue

Hi Jan

Have you stopped and restarted Tomcat?

Also you may need to clear the Tomcat Cache, this is located in the Tomcat installation directory in the "work" folder.

Let me know if this resolves your problem

Jay
Jan Gunnar Helg
Honored Contributor.

Re: Tomcat and jsp issue

We restart the service regularly, but I havent cleared the cache in ages. I'll give that a go :) thanks
Venkatesha_1
Outstanding Contributor.

Re: Tomcat and jsp issue

Hi,

Please give the complete path of the file script.jsp in the server. I think the script.jsp is not placed in proper directory.

Also give the version of SD SP.

HTH
Venky
Jan Gunnar Helg
Honored Contributor.

Re: Tomcat and jsp issue

The script resides in C:\Program Files\Hewlett-Packard\OpenView\service desk 4.5\service pages\webapps\ROOT\duration_calc_pluss.jsp

Executed by webpage http:\\server:8080\duration_calc_pluss.jsp

Using sd-sp45
Venkatesha_1
Outstanding Contributor.

Re: Tomcat and jsp issue

Hi,

Place the file into this directory
C:\Program Files\Hewlett-Packard\OpenView\service desk 4.5\service pages\webapps\sd-sp45

This is the default directory.

And access the page using this URL

Make sure that you restart the tomcat service after placing the file into the mentioned directory.

http://server:8080/sd-sp45/duration_calc_pluss.jsp

HTH
Venky
Jan Gunnar Helg
Honored Contributor.

Re: Tomcat and jsp issue

I can reach it now but it now generates the following error:

Apache Tomcat/4.0.3 - HTTP Status 500 - Internal Server Error

--------------------------------------------------------------------------------

type Exception report

message Internal Server Error

description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request.

exception

java.lang.NullPointerException
at org.apache.jsp.duration_0005fcalc_0005fminus$jsp._jspService(duration_0005fcalc_0005fminus$jsp.java:67)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:202)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1012)
at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107)
at java.lang.Thread.run(Thread.java:534)



--------------------------------------------------------------------------------
Jay Mistry
Outstanding Contributor.

Re: Tomcat and jsp issue

Did you stop the Tomcat service and clear down the cache before restarting the service?

Jay
Jan Gunnar Helg
Honored Contributor.

Re: Tomcat and jsp issue

Yes