Jump to content
 English      
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
     Forums advanced search
HP.com Home
IT Resource Center Forums > Management software and system tools > OV IT Service Mgmt and Service Desk

Tomcat and jsp issue

» 

IT Resource Center

» Login
» Register
» My profile
» Search knowledge base
» Forums
» Patch database
» Download drivers, software and firmware
» Warranty check
» Support Case Manager
» Software Update Manager
» Training and Education
» More maintenance and support options
» Online help
» Site map

Member icons
 
 HP moderator  HP moderator
 Expert in this area  Expert in this area
Member status
ITRC Pro ITRC Pro
250 points
ITRC Graduate ITRC Graduate
500 points
ITRC Wizard ITRC Wizard
1000 points
ITRC Royalty ITRC Royalty
2500 points
ITRC Pharaoh ITRC Pharaoh
7500 points
Olympian Olympian
20000 points
1-Star Olympian 1-Star Olympian
40000 points
2-Star Olympian 2-Star Olympian
80000 points
»  How to earn points
»  Support forums FAQs
Question status
Magical answer Magical answer
Message with a response that solved the author's question
Favorites status
Add to my favorites Add to my favorites
Delete from my favorites Delete from my favorites
This thread has been closed Thread closed
 

Content starts here
   Create a new message    Receive e-mail notification if a new reply is posted  Reply to this message
Author Subject: Tomcat and jsp issue      Add to my favorites
Jan Gunnar Helgaland
Aug 19, 2008 07:48:28 GMT   

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?
Note: If you are the author of this question and wish to assign points to any of the answers, please login first.For more information on assigning points ,click here


Sort Answers By: Date or Points
Jay Mistry This member has accumulated 500 or more points
Aug 19, 2008 10:04:15 GMT  5 pts

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 Helgaland
Aug 19, 2008 10:08:50 GMT    N/A: Question Author

We restart the service regularly, but I havent cleared the cache in ages. I'll give that a go :) thanks
Venkatesha This member has accumulated 500 or more points
Aug 19, 2008 13:14:55 GMT    Unassigned

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 Helgaland
Aug 19, 2008 13:44:42 GMT    N/A: Question Author

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 This member has accumulated 500 or more points
Aug 19, 2008 13:54:34 GMT    Unassigned

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 Helgaland
Aug 19, 2008 14:57:40 GMT    N/A: Question Author

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 This member has accumulated 500 or more points
Aug 19, 2008 15:04:04 GMT    Unassigned

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

Jay
Jan Gunnar Helgaland
Aug 19, 2008 15:49:36 GMT    N/A: Question Author

Yes
 
Create a new message    Receive e-mail notification if a new reply is posted   Reply to this message
 
 
Printable version
Privacy statement Using this site means you accept its terms
© 2010 Hewlett-Packard Development Company, L.P.