Results 1 to 6 of 6
  1. #1
    Zookey is offline Member
    Join Date
    Jan 2011
    Posts
    6
    Rep Power
    0

    Default 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.

  2. #2
    roots's Avatar
    roots is offline Moderator
    Join Date
    Jan 2008
    Location
    Dallas
    Posts
    293
    Rep Power
    7

    Default

    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.

  3. #3
    Zookey is offline Member
    Join Date
    Jan 2011
    Posts
    6
    Rep Power
    0

    Default

    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.

  4. #4
    tegi is offline Member
    Join Date
    Feb 2011
    Posts
    2
    Rep Power
    0

    Default

    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

  5. #5
    j2me64's Avatar
    j2me64 is offline Senior Member
    Join Date
    Sep 2009
    Location
    Zurich, Switzerland
    Posts
    962
    Rep Power
    6

    Default

    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.

  6. #6
    Zookey is offline Member
    Join Date
    Jan 2011
    Posts
    6
    Rep Power
    0

    Default

    I solved this problem. I just created system variable to my JDK in My computer -> Properties -> -> Advaned -> Environment Variables.

    Anyway I have new problem. When I start eclipse, and I go to File -> New Project, I dont have Web option to chose.

    Here it is:


Similar Threads

  1. Tomcat
    By ksatty in forum Java Servlet
    Replies: 5
    Last Post: 02-19-2010, 01:59 PM
  2. Help with TOMCAT
    By necroninja in forum Advanced Java
    Replies: 0
    Last Post: 08-04-2009, 09:52 PM
  3. About Tomcat
    By sindhuri in forum JavaServer Pages (JSP) and JSTL
    Replies: 21
    Last Post: 04-25-2008, 10:13 AM
  4. Tomcat In Eclipse - Sysdeo Tomcat Plug-in
    By JavaForums in forum Eclipse
    Replies: 1
    Last Post: 02-13-2008, 10:33 AM
  5. tomcat xml
    By Ed in forum XML
    Replies: 2
    Last Post: 07-04-2007, 05:39 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •