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/HttpServlet
servlet-api.jar is in $CATALINA_HOME/lib just like it's supposed to be. All
of the example JSPs and servlets work fine.
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:
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,
le diffuser, de le distribuer ou de le reproduire.
- Original Message -
From: Ghodmode [EMAIL PROTECTED]
To: users@tomcat.apache.org
Sent: Monday, September 03, 2007 4:49 PM
Subject: NoClassDefFoundError: javax/servlet/http/HttpServlet
I've had some problems loading servlets, so I tried
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
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 it's supposed
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/lib, since this is Tomcat 6
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 other
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. Exactly what is your structure under webapps
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 CLASSPATH
defined (tomcat handles all by itself classpath
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 5.5.17. The only add from me is the postgres jdbc
driver postgresql-8.1-405.jdbc3.jar in the $tomcat/common/lib
My system is:
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
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,
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.
I am
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
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
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,
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:
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
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
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
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
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
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
I am using an Eclipse plugin for my development environment. Instead of
copying dependant classes and jars to WEB-INF after every change, the plugin
includes an optional DevLoader class that extends
org.apache.catalina.loader.WebappLoader, overrides start()., and adds the
appropriate
25 matches
Mail list logo