From dant at cdkkt.com Fri Jun 5 03:50:51 2015 Content-Type: multipart/mixed; boundary="===============1522360922135152608==" 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> --===============1522360922135152608== 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 --===============1522360922135152608==-- From overholt at redhat.com Fri Jun 5 03:50:51 2015 Content-Type: multipart/mixed; boundary="===============7435205770018162356==" MIME-Version: 1.0 From: Andrew Overholt To: java-devel at lists.fedoraproject.org Subject: Re: [fedora-java] F9/10: Eclipse & Tomcat 6 Date: Tue, 23 Jun 2009 15:40:37 -0400 Message-ID: <20090623194037.GA1329@redhat.com> In-Reply-To: 4A412DE9.5010101@cdkkt.com --===============7435205770018162356== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable * Daniel B. Thurman [2009-06-23 15:33]: > I did go over the documentation, searched the Internet > for help, but was not getting anywhere, hence this post. Sorry, Dan, but I don't use Eclipse Web Tools so I don't know the answer to your question. If no one here can help, you'll probably get help on the WTP newsgroup but you _may_ have to verify with an upstream download. Good luck, Andrew --===============7435205770018162356==-- From dant at cdkkt.com Fri Jun 5 03:50:51 2015 Content-Type: multipart/mixed; boundary="===============2772585126967187978==" MIME-Version: 1.0 From: Dan Thurman To: java-devel at lists.fedoraproject.org Subject: Re: [fedora-java] F9/10: Eclipse & Tomcat 6 Date: Tue, 23 Jun 2009 17:31:47 -0700 Message-ID: <4A4173F3.6060402@cdkkt.com> In-Reply-To: 20090623194037.GA1329@redhat.com --===============2772585126967187978== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Andrew Overholt wrote: > * Daniel B. Thurman [2009-06-23 15:33]: > = >> I did go over the documentation, searched the Internet >> for help, but was not getting anywhere, hence this post. >> = > > Sorry, Dan, but I don't use Eclipse Web Tools so I don't know the answer > to your question. If no one here can help, you'll probably get help on > the WTP newsgroup but you _may_ have to verify with an upstream > download. > > Good luck, > > Andrew > = I guess, I had to remove and reinstall Tomcat6 and then move my index.jsp files up one level from WEB-INF and then it worked. I was not able to see very well exactly where my index file was placed, sigh. It all works now. Sorry for the bother. Dan --===============2772585126967187978==--