wood burning stoves 2.0*
The moose likes JSP and the fly likes rectify the errors while running jsp page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Reply locked New topic
Author

rectify the errors while running jsp page

al ok
Greenhorn

Joined: Oct 26, 2008
Posts: 6
Please help I am unable to run jsp pages from apache tomcat-5.5.27 using jdk1.5
I have downloded binary code for apache tomcat 5.5.27.I set environment

variable named JAVA_HOME, with value where my jdk1.5.0 was.I also set CLASSPATH

with value

.;C:\apache-tomcat-5.5.27\common\lib\servlet-api.jar;C:\apache-tomcat-5.5.27\co

mmon\lib\jsp-api.jar . I have changed port number from 8080 to 80 in the file

server.xml under folder conf.

I have uncommented these codes in web.xml file under conf folder.
<servlet-mapping>
<servlet-name>invoker</servlet-name>
<url-pattern>/servlet/*</url-pattern>
</servlet-mapping>I made
<servlet>



<servlet-name>invoker</servlet-name>
<servlet-class>
org.apache.catalina.servlets.InvokerServlet
</servlet-class>
<init-param>
<param-name>debug</param-name>
<param-value>0</param-value>
</init-param>
<load-on-startup>2</load-on-startup>
</servlet>a folder suppose name ak in folder webapps under

apache-tomcat-5.5.27. then in this folder i put jsp file as Hello.jsp and copy

WEB-INF file from root folder to folder name ak.after this I started apache

tomcat server.then I typed http:\\localhost\ak\Hello.jsp. Error required page

not found is coming.



I also made user name amit and add these code in file tomcat-users.xml file

under folder name conf
<user username="amit" password="amit" roles="admin,manager"/>
I again run apache server. and tyeped http:\\localhost\index.jsp
welcome page is opeing. I login in manager login window using name amit and

password amit
all applications are showing.my folder named ak also appears when I click it

again welcome page appears or error my jsp file Hello.jsp does not appear

please help me. I have tried much but I am not getting my jsp pages run.

Errors are
when run http:\\localhost\ak\Hello.jsp


HTTP Status 404 - /ak/Hello.jsp

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

-

type Status report

message /ak/Hello.jsp

description The requested resource (/ak/Hello.jsp) is not available.


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

-

Apache Tomcat/5.5.27




http:\\localhost\index.jsp
and login through manager and then clicked ak

HTTP Status 500 -

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

-

type Exception report

message

description The server encountered an internal error () that prevented it from

fulfilling this request.

exception

javax.servlet.ServletException: Wrapper cannot find servlet class

org.apache.jsp.index_jsp or a class it depends on


org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)


org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)


org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:875)


org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConn

ection(Http11BaseProtocol.java:665)


org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:5

28)


org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorke

rThread.java:81)


org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:6

89)
java.lang.Thread.run(Unknown Source)


root cause

java.lang.ClassNotFoundException: org.apache.jsp.index_jsp


org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1

386)


org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1

232)


org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)


org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)


org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:875)


org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConn

ection(Http11BaseProtocol.java:665)


org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:5

28)


org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorke

rThread.java:81)


org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:6

89)
java.lang.Thread.run(Unknown Source)


note The full stack trace of the root cause is available in the Apache

Tomcat/5.5.27 logs.


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

-

Apache Tomcat/5.5.27
[ October 26, 2008: Message edited by: Bear Bibeault ]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60752
    
  65

Please do not post the same question more than once.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
 
subject: rectify the errors while running jsp page
 
Similar Threads
Not able to run servlet-HTTP status404
java.lang.NoClassDefFoundError: javax/xml/crypto/dsig/XMLSignatureException
How to run jsp page using apache-tomcat-5.5.27 & jdk 1.5.0
Mission accomplished.. thanks everyone...
java.lang.NoClassDefFoundError: javax/xml/crypto/dsig/XMLSignatureException