Problem with Manager application

2004-11-23 Thread Dave Robbins
Hello All,

I've recently gotten a new machine and installed
linux Fedora Core 1
j2sdk1.4.2_03
jakarta-tomcat-5.0.19
netbeans3.6

I've played around with netbeans and tomcat in the past and have some web
apps that I've created and that run fine on an older machine.
On the new machine, when I try to use the manager application that comes
with tomcat to deploy one of my app, I get this exception.

type Exception report

message

description The server encountered an internal error () that prevented it
from fulfilling this request.

exception

javax.servlet.ServletException: Servlet execution threw an exception

root cause

java.lang.NoClassDefFoundError: javax/servlet/ServletInputStream

org.apache.catalina.manager.HTMLManagerServlet.doPost(HTMLManagerServlet.java:142)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

note The full stack trace of the root cause is available in the Apache
Tomcat/5.0.29 logs.

I used netbeans to create the simplest app I could and still got the same
error.

I looked thru the archives on this mailing list and the closest thing I
found was something that said that java.lang.NoClassDefFoundError is often
caused by having multiple instances of a jar file on the machine. I
searched around and found that javax/servlet/ServletInputStream is in
tomcat_install_dir/commons/lib/servlet-api.jar, so I searched my machine
for it and found two instances. One where it should be for tomcat and
another in my home directory where netbeans is installed. This looks ok to
me but just on a whim I deleted the netbaens install dir  and nothing
changed. So now I'm kinda stuck. On my older installation of tomcat
everything works great, anybody have a good idea how to track down my
problem??
Oh yea, when I start tomcat it echos

[EMAIL PROTECTED] root]# /usr/local/jakarta-tomcat-5.0.19/bin/startup.sh
Using CATALINA_BASE:   /usr/local/jakarta-tomcat-5.0.19
Using CATALINA_HOME:   /usr/local/jakarta-tomcat-5.0.19
Using CATALINA_TMPDIR: /usr/local/jakarta-tomcat-5.0.19/temp
Using JAVA_HOME:   /usr/local/j2sdk1.4.2_03

which looks correct to me
Ideas???

Oh yea, Oh yea
it I just place the war file for my app in the tomcat webapps directory
and stop and restart tomcat it deploys and runs fine

TIA
Dave




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Problem with Manager application

2004-11-23 Thread Shapira, Yoav

Hi,
There's probably an older servlet.jar (not servlet-api.jar, which is the
name for Servlet Spec 2.4) around somewhere on the NetBeans runtime
classpath.  Or possibly a bigger j2ee.jar containing servlet and other
J2EE APIs.  So you're on the right debugging path: multiple instances of
the servlet API jar (but with different names) are the most likely cause
for this error.

Yoav Shapira http://www.yoavshapira.com


-Original Message-
From: Dave Robbins [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 23, 2004 1:58 PM
To: [EMAIL PROTECTED]
Subject: Problem with Manager application

Hello All,

I've recently gotten a new machine and installed
linux Fedora Core 1
j2sdk1.4.2_03
jakarta-tomcat-5.0.19
netbeans3.6

I've played around with netbeans and tomcat in the past and have some
web
apps that I've created and that run fine on an older machine.
On the new machine, when I try to use the manager application that
comes
with tomcat to deploy one of my app, I get this exception.

type Exception report

message

description The server encountered an internal error () that prevented
it
from fulfilling this request.

exception

javax.servlet.ServletException: Servlet execution threw an exception

root cause

java.lang.NoClassDefFoundError: javax/servlet/ServletInputStream

org.apache.catalina.manager.HTMLManagerServlet.doPost(HTMLManagerServ
let.java:142)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

note The full stack trace of the root cause is available in the Apache
Tomcat/5.0.29 logs.

I used netbeans to create the simplest app I could and still got the
same
error.

I looked thru the archives on this mailing list and the closest thing I
found was something that said that java.lang.NoClassDefFoundError is
often
caused by having multiple instances of a jar file on the machine. I
searched around and found that javax/servlet/ServletInputStream is in
tomcat_install_dir/commons/lib/servlet-api.jar, so I searched my
machine
for it and found two instances. One where it should be for tomcat and
another in my home directory where netbeans is installed. This looks ok
to
me but just on a whim I deleted the netbaens install dir  and nothing
changed. So now I'm kinda stuck. On my older installation of tomcat
everything works great, anybody have a good idea how to track down my
problem??
Oh yea, when I start tomcat it echos

[EMAIL PROTECTED] root]# /usr/local/jakarta-tomcat-5.0.19/bin/startup.sh
Using CATALINA_BASE:   /usr/local/jakarta-tomcat-5.0.19
Using CATALINA_HOME:   /usr/local/jakarta-tomcat-5.0.19
Using CATALINA_TMPDIR: /usr/local/jakarta-tomcat-5.0.19/temp
Using JAVA_HOME:   /usr/local/j2sdk1.4.2_03

which looks correct to me
Ideas???

Oh yea, Oh yea
it I just place the war file for my app in the tomcat webapps directory
and stop and restart tomcat it deploys and runs fine

TIA
Dave




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business 
communication, and may contain information that is confidential, proprietary 
and/or privileged.  This e-mail is intended only for the individual(s) to whom 
it is addressed, and may not be saved, copied, printed, disclosed or used by 
anyone else.  If you are not the(an) intended recipient, please immediately 
delete this e-mail from your computer system and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]