Discussion:
Tomcat 6.0.26 bundled with Netbeans 6.9.1
Ana Maria Teodorescu
2011-08-24 08:37:01 UTC
Permalink
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.

Please, help me!

Thank you,
Ana
André Warnier
2011-08-24 08:44:59 UTC
Permalink
Post by Ana Maria Teodorescu
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
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.
Pid
2011-08-24 09:12:41 UTC
Permalink
Post by André Warnier
Post by Ana Maria Teodorescu
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
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".
Packaging systems are available for Mac, but aren't shipped with it.
Post by André Warnier
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.
+1


p
Post by André Warnier
---------------------------------------------------------------------
Mark Eggers
2011-08-24 15:48:06 UTC
Permalink
----- Original Message -----
Sent: Wednesday, August 24, 2011 1:44 AM
Subject: Re: Tomcat 6.0.26 bundled with Netbeans 6.9.1
    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
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/
Ana Maria Teodorescu
2011-08-24 16:54:29 UTC
Permalink
This seems a reasonable solution to my problem.
I'll try this!

Thanks a lot,
Ana
Post by Mark Eggers
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/
---------------------------------------------------------------------
Loading...