----- Original Message ----- > From: André Warnier <a...@ice-sa.com> > To: Tomcat Users List <users@tomcat.apache.org> > Cc: > Sent: Wednesday, August 24, 2011 1:44 AM > Subject: Re: Tomcat 6.0.26 bundled with Netbeans 6.9.1 > > Ana Maria Teodorescu wrote: >> Dear Tomcat users and experts, >> >> I downloaded Netbeans 6.9.1 including Apache Tomcat on my Mac snow leopard. >> When I go to the page http://localhost:8080/ the message that I've > setup >> correctly Tomcat appears. But, if I click on the following links: >> 1)Tomcat documentation ( http://localhost:8080/docs ) >> 2) Servlet examples ( http://localhost:8080/examples/servlets/) >> 3) JSP examples ( http://localhost:8080/examples/jsp/ ) >> >> I get the error 404: *The requested resource (/examples/jsp/, etc) is not >> available* >> * >> * >> I've spent a whole day trying to understand how to fix the problem but > with >> no success. >> There are no other options I can choose from during the Netbeans >> installation. Tomcat >> is configured automatically and I don't know where to put my hands on. >> > The above probably means that whatever package "Netbeans 6.9.1 including > Apache Tomcat" you are using to install Tomcat, includes just the basic > Tomcat and does not include these additional "sample" applications. > Maybe consult your package manager software and look for the missing > Tomcat-related packages. > I do not know Mac at all, but under Linux Debian for example, there used to > be > one package named "Tomcat", another one named > "tomcat-examples", and another one named "tomcat-admin". > > Or else, depending on your circumstances, de-install this "Netbeans + > Tomcat" package, download and install a "real Tomcat" from the > Tomcat website, and then re-install a "Netbeans without Tomcat" > package from your package source.
Here are two solutions based on installing the "real Tomcat" from tomcat.apache.org. 1. Keep your current installation a. Keep your current NetBeans installation b. Download Tomcat 6.0.33 from tomcat.apache.org c. Install it d. Configure NetBeans with this additional server. 1. Add a new server in the Services panel under the Servers node 2. Call it Tomcat 6.0.33 3. Use this in all your projects 2. Uninstall your current installation a. Completely remove NetBeans b. Install the Java SE NetBeans version 1. This will not have Tomcat - install one from tomcat.apache.org 2. Add the web development tools under Tools->Plugins 3. Add the Tomcat server under Tools->Servers I personally use the second method. Under NetBeans 7.0.1 I have Tomcat 7.0.20, 6.0.33, and 5.5.33 (plus a bunch of other servers). All of the servers were installed from their respective original sources, not bundled with the IDE. Also note if you want to work with Tomcat 7.0.x, you will need NetBeans 7.0.1. NetBeans 6.x does not support Tomcat 7.0.x directly (although there are games you can play - ask on the NetBeans J2EE mailing list or forum). . . . . just my two cents. /mde/ --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org