my dog learned polymorphism*
The moose likes Tomcat and the fly likes How to run jsp page using apache-tomcat-5.5.27 & jdk 1.5.0 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 » Products » Tomcat
Bookmark "How to run jsp page using apache-tomcat-5.5.27 & jdk 1.5.0" Watch "How to run jsp page using apache-tomcat-5.5.27 & jdk 1.5.0" New topic
Author

How to run jsp page using apache-tomcat-5.5.27 & jdk 1.5.0

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\common\lib\jsp-api.j

ar . 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.
[ October 26, 2008: Message edited by: Bear Bibeault ]
Steve Luke
Bartender

Joined: Jan 28, 2003
Posts: 4165
    
  21

What kind of error code are you getting. Is it generated by Tomcat or by your browser?

Check firewalls. Your computer may have a firewall installed. You will have to make sure that port 80 is opened.


Steve
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60774
    
  65

Please do not ask people to email you the answer. Please read this for more information.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
NeverGivUp TryHard
Greenhorn

Joined: Nov 30, 2009
Posts: 3
Here is Answer for running jsp page using apache-tomcat-5.5.27 & jdk 1.5.0" and can also be run in 1.6 :

Save your JSP file in path - C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\jsp-examples\jsp2
And then in browser type URL as :

http://localhost:8080/jsp-examples/jsp2/filename.jsp

You will surely see your o\p now...

See its so easy...just try it....

Bye...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to run jsp page using apache-tomcat-5.5.27 & jdk 1.5.0
 
Similar Threads
Cannot access the HelloWorldServlet
rectify the errors while running jsp page
web.xml, java.io.ByteArrayInputStream
Deploying with Tomcat5.5 and Eclipse3.0???
String class can't find split method: wrong java version?