Re: NoClassDefFoundError: javax/servlet/http/HttpServlet

2006-05-02 Thread Marc Farrow
This seems like the classic "you are using a java JRE versus a java JDK". On 5/2/06, Edoardo Panfili <[EMAIL PROTECTED]> wrote: I did some search on google but seems that my situation is not the same I have a very simple webapp, (no lib directory in WEB-INF) in a fresh installation of Tomcat

Re: NoClassDefFoundError: javax/servlet/http/HttpServlet

2006-05-02 Thread Edoardo Panfili
Marc Farrow wrote: This seems like the classic "you are using a java JRE versus a java JDK". I am using jdk1.5.0_06 edoardo -- [EMAIL PROTECTED] AIM: edoardopn Jabber: [EMAIL PROTECTED] tel:075 9142766 - To unsubscribe, e-ma

Re: NoClassDefFoundError: javax/servlet/http/HttpServlet

2006-05-02 Thread Marc Farrow
I do not doubt that. However, depending on what O.S. you are using you need to check your JAVA_HOME environment entry or even windows registry. On 5/2/06, Edoardo Panfili <[EMAIL PROTECTED]> wrote: Marc Farrow wrote: > This seems like the classic "you are using a java JRE versus a java JDK". >

Re: NoClassDefFoundError: javax/servlet/http/HttpServlet

2006-05-02 Thread Edoardo Panfili
Marc Farrow wrote: I do not doubt that. However, depending on what O.S. you are using you need to check your JAVA_HOME environment entry or even windows registry. export JAVA_HOME=/opt/jdk/ (jdk is a simboilik link to the 1.5 jdk folder) Tomcat now says "no Class definition found" regarding

Re: NoClassDefFoundError: javax/servlet/http/HttpServlet

2006-05-02 Thread Marc Farrow
It looks like you found the next problems. On your ls command it is not showing the Ricerca class file. So you must be missing resources when you migrated over. On 5/2/06, Edoardo Panfili <[EMAIL PROTECTED]> wrote: Marc Farrow wrote: > I do not doubt that. However, depending on what O.S. you

Re: NoClassDefFoundError: javax/servlet/http/HttpServlet

2006-05-02 Thread Edoardo Panfili
Marc Farrow wrote: It looks like you found the next problems. On your ls command it is not showing the Ricerca class file. So you must be missing resources when you migrated over. On 5/2/06, Edoardo Panfili <[EMAIL PROTECTED]> wrote: Marc Farrow wrote: > I do not doubt that. However, depend

Re: NoClassDefFoundError: javax/servlet/http/HttpServlet

2006-05-02 Thread Edoardo Panfili
Edoardo Panfili wrote: Marc Farrow wrote: there is somethings wrog in my develope/deploy/me system. I'll begin from scratch. After a fresh installation the problem is still here (but not after all restarts). sometimes Tocat throws this exception java.lang.NoClassDefFoundError: javax/servlet/ht

Re: NoClassDefFoundError: javax/servlet/http/HttpServlet

2006-05-02 Thread Filip Hanik - Dev Lists
try running a different VM, like the Sun VM, this could be a bug in the VM you are running. Filip Edoardo Panfili wrote: Edoardo Panfili wrote: Marc Farrow wrote: there is somethings wrog in my develope/deploy/me system. I'll begin from scratch. After a fresh installation the problem is still

Re: NoClassDefFoundError: javax/servlet/http/HttpServlet

2006-05-02 Thread Edoardo Panfili
Filip Hanik - Dev Lists wrote: try running a different VM, like the Sun VM, this could be a bug in the VM you are running. I am runnig Sun JVM 1.5.0_06 I have removed libcgj at 16:18 I did a complere reboot at 16:20 at 16:48 I have a log of this error in localhost.2006-05-02.log Edoardo

Re: NoClassDefFoundError: javax/servlet/http/HttpServlet

2006-05-02 Thread Filip Hanik - Dev Lists
if you are running the Sun VM, why is this in your stack trace? at gnu.java.lang.MainThread.run() (/usr/lib/libgcj.so.6.0.0) my guess is that you forgot to do this export PATH=$JAVA_HOME/bin:$PATH in catalina.sh Filip Edoardo Panfili wrote: Filip Hanik - Dev Lists wrote: try running a diffe

Re: NoClassDefFoundError: javax/servlet/http/HttpServlet

2006-05-02 Thread Edoardo Panfili
Filip Hanik - Dev Lists wrote: if you are running the Sun VM, why is this in your stack trace? at gnu.java.lang.MainThread.run() (/usr/lib/libgcj.so.6.0.0) The stack is the one that Tomcat has print before the "remove" of gcj. But the error is still here also after the "remove". my guess is

Re: NoClassDefFoundError: javax/servlet/http/HttpServlet

2006-05-02 Thread Edoardo Panfili
Edoardo Panfili wrote: Filip Hanik - Dev Lists wrote: if you are running the Sun VM, why is this in your stack trace? at gnu.java.lang.MainThread.run() (/usr/lib/libgcj.so.6.0.0) The stack is the one that Tomcat has print before the "remove" of gcj. But the error is still here also after the

Re: NoClassDefFoundError: javax/servlet/http/HttpServlet

2006-05-02 Thread Filip Hanik - Dev Lists
it should work without that setting assuming that tomcat picks up the file setclasspath.sh correctly, the reason I mentioned it is cause the sunVM doesn't have a gnu.java.lang.MainThread class, so I would suspect that you are not running the VM you think you are running. Of course, I know very l

Re: NoClassDefFoundError: javax/servlet/http/HttpServlet

2007-09-03 Thread David Delbecq
Check you didn't add servlet-api to your webapp classpath. The servlet-api must *not* be present in WEB-INF/lib Ghodmode a écrit : I've had some problems loading servlets, so I tried a basic HelloWorld just to make sure everything was working. java.lang.NoClassDefFoundError: javax/servlet/http/

Re: NoClassDefFoundError: javax/servlet/http/HttpServlet

2007-09-03 Thread Ghodmode
Thanks for your reply David. For this servlet there's nothing in WEB-INF/lib. If it was a standalone Java app, I guess the CLASSPATH would definitely be the first thing to check. Is there a way to check the classpath that a servlet is using when it's executed by Tomcat's VM? Thank you, Vinc

Re: NoClassDefFoundError: javax/servlet/http/HttpServlet

2007-09-03 Thread Martin Gainty
Is servlet-api.jar in $CATALINA_HOME/common/lib M-- --- This e-mail message (including attachments, if any) is intended for the use of the individual or entity to which it is addressed and may contain information that is pr

Re: NoClassDefFoundError: javax/servlet/http/HttpServlet

2007-09-03 Thread Ghodmode
On 9/4/07, Martin Gainty <[EMAIL PROTECTED]> wrote: > > Is servlet-api.jar in $CATALINA_HOME/common/lib > I've see reference to it on some forums, but there's no "common" directory in my Tomcat installation. -- Vince

RE: NoClassDefFoundError: javax/servlet/http/HttpServlet

2007-09-03 Thread Caldarale, Charles R
> From: Martin Gainty [mailto:[EMAIL PROTECTED] > Subject: Re: NoClassDefFoundError: javax/servlet/http/HttpServlet > > Is servlet-api.jar in $CATALINA_HOME/common/lib As clearly stated by the OP, he's using Tomcat 6 and servlet-api.jar is in $CATALINA-HOME/lib, exactly where

Re: NoClassDefFoundError: javax/servlet/http/HttpServlet

2007-09-03 Thread David Delbecq
Check also it's neither in shared/lib and that there is no CLASSPATH defined (tomcat handles all by itself classpath). David Delbecq a écrit : Check you didn't add servlet-api to your webapp classpath. The servlet-api must *not* be present in WEB-INF/lib Ghodmode a écrit : I've had some proble

RE: NoClassDefFoundError: javax/servlet/http/HttpServlet

2007-09-03 Thread Caldarale, Charles R
> From: David Delbecq [mailto:[EMAIL PROTECTED] > Subject: Re: NoClassDefFoundError: javax/servlet/http/HttpServlet > > Check also it's neither in shared/lib and that there is no CLASSPATH > defined (tomcat handles all by itself classpath). There wouldn't be a shared/

Re: NoClassDefFoundError: javax/servlet/http/HttpServlet

2007-09-03 Thread Ghodmode
On 9/4/07, Caldarale, Charles R <[EMAIL PROTECTED]> wrote: > > ... David D already pointed out the likely cause of the problem. > > - Chuck > Unfortunately, David's idea wasn't a solution for me. There aren't any files in my WEB-INF/lib directory. I only created this HelloServlet to eliminate

RE: NoClassDefFoundError: javax/servlet/http/HttpServlet

2007-09-03 Thread Caldarale, Charles R
> From: Ghodmode [mailto:[EMAIL PROTECTED] > Subject: Re: NoClassDefFoundError: javax/servlet/http/HttpServlet > > I'm not using WAR files. I'm just putting all of the files > in the necessary locations already "exploded". Is this significant? Perhaps. E

Re: NoClassDefFoundError: javax/servlet/http/HttpServlet

2007-09-03 Thread Ghodmode
On 9/4/07, Caldarale, Charles R <[EMAIL PROTECTED]> wrote: > > > From: David Delbecq [mailto:[EMAIL PROTECTED] > > Subject: Re: NoClassDefFoundError: javax/servlet/http/HttpServlet > > > > Check also it's neither in shared/lib and that there is no CLASSP