Results 1 to 6 of 6
Thread: Help with JSP and Tomcat
- 02-16-2011, 09:32 PM #1
Member
- Join Date
- Jan 2011
- Posts
- 6
- Rep Power
- 0
Help with JSP and Tomcat
Hello guys,
I am new to JSP, and I need some help. I downloaded latest Tomcat and configure it. I think that i configured it in good way, because when I open http://localhost:8080/ a get this screen:

I just wanted to test it, so I create some JSP file in Notepad. Beside that I created folder helloJSP with empty subfolder WEB-INF inside webapps folder.
At the end when i have tried to test it, i get this error.
- 02-16-2011, 10:02 PM #2
Look for webapps/ROOT
and place your test jsp to start with.
or, Put a dummy web.xml file inside WEB-INF that should do the trick.dont worry newbie, we got you covered.
- 02-16-2011, 10:40 PM #3
Member
- Join Date
- Jan 2011
- Posts
- 6
- Rep Power
- 0
I have moved it to ROOTS folder and rename it to index1.jsp, and i still get same error.
In folder /helloJSP/WEB-INF there are some files including web.xml, i assume that they are generated automatic by tomact or something like that.
- 02-17-2011, 01:36 PM #4
Member
- Join Date
- Feb 2011
- Posts
- 2
- Rep Power
- 0
Hi,Zookey
http://localhost:8080/docs/appdev/sample can give you a sample to test your tomcat.Download the sample,unzip and copy the unzipped sample into tomcat's webapps folder.Start tomcat then in the browser puthttp://localhost:8080/sample
- 02-17-2011, 08:51 PM #5
try to insert the tag welcom-file-list into your web.xml
Java Code:<welcome-file-list> <welcome-file>index.jsp</welcome-file> </welcome-file-list>
and make sure that in the folder webapps your project root the folder helloJSP exists and inside the folder helloJSP the file index.jsp exists. you should also make a call to the manager webapp inside tomcat to look if the application helloJSP is running, before you call the index.jsp.
if you want, you can send me your index.jsp and i will try it to run on my apache-tomcat-7.0.6.
- 02-23-2011, 03:52 PM #6
Member
- Join Date
- Jan 2011
- Posts
- 6
- Rep Power
- 0
Similar Threads
-
Tomcat
By ksatty in forum Java ServletReplies: 5Last Post: 02-19-2010, 01:59 PM -
Help with TOMCAT
By necroninja in forum Advanced JavaReplies: 0Last Post: 08-04-2009, 09:52 PM -
About Tomcat
By sindhuri in forum JavaServer Pages (JSP) and JSTLReplies: 21Last Post: 04-25-2008, 10:13 AM -
Tomcat In Eclipse - Sysdeo Tomcat Plug-in
By JavaForums in forum EclipseReplies: 1Last Post: 02-13-2008, 10:33 AM -
tomcat xml
By Ed in forum XMLReplies: 2Last Post: 07-04-2007, 05:39 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks