From dant at cdkkt.com Fri Jun 5 03:50:51 2015 Content-Type: multipart/mixed; boundary="===============1978827381469079684==" MIME-Version: 1.0 From: Dan Thurman To: java-devel at lists.fedoraproject.org Subject: [fedora-java] F9/10: Eclipse & Tomcat 6 Date: Tue, 23 Jun 2009 12:32:57 -0700 Message-ID: <4A412DE9.5010101@cdkkt.com> --===============1978827381469079684== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable I am having a bit of trouble with Eclipse & Tomcat 6... Initially, I could not get tomcat6 (provided via Fedora), to run because it was complaining that it could not find the servlet/jsp jars. so I fixed this by manually adding links in /usr/share/tomcat6/lib: 1) jsp-api.jar 2) servlet-api.jar and modifying file: 3) /etc/tomcat6/tomcat-users.xml I then tested to see if tomcat6 would run standalone, by: 4) service tomcat6 start 5) Opened Firefox, and URL: http:localhost:8080 Entered User: manager, password: foobar And tomcat displayed its colorful page. I was able to view the status information and navigate everywhere except for the following links, as they show blank pages: Servlets Examples JSP Examples Not sure if this is a problem but I proceeded to: 6) service tomcat stop Then I started up Eclipse, created a new Dynamic-Web application, added a new file: index.html, added very simple html code: Hello

Hello World

saved it, and then ran 'Run As...' server, added tomcat6 server, committed the configurations, and the internal browser fired up. Unfortunately, I get this: URL: http://localhost:8080/Hello/ =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D HTTP Status 404 - /Hello/ type Status report message /Hello/ description The requested resource (/Hello/) is not available. Apache Tomcat/6.0.18 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D I then changed the URL to: http://localhost:8080/ and I get the same 404 error but with / instead of /Hello/ Am I missing something? [FYI: I did go over the documentation, searched the Internet for help, but was not getting anywhere, hence this post. ] Thanks- Dan --===============1978827381469079684==--