You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Tom Cat <to...@gmail.com> on 2008/08/08 22:27:23 UTC
Problems with NoClassDefFound Error in tomcat 6
Hello,
I am trying to run my webapp in tomcat 6 but am having a problem. A
servlet I use imports org.w3c.tidy.Tidy and the code compiles fine.
When I try to run it in tomcat though, i get this error:
java.lang.NoClassDefFoundError: org/w3c/tidy/Tidy
I don't understand why it throws this error. Tidy is in my classpath
and the code compiles fine. If any more information is needed, I will
be happy to provide.
Thanks
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Problems with NoClassDefFound Error in tomcat 6
Posted by Tom Cat <to...@gmail.com>.
well that solves the noClassDef problem. Now the page just loads
infinitely with a blank screen. But maybe this isn't a tomcat problem,
but rather a code problem.
Thanks
On Fri, Aug 8, 2008 at 6:04 PM, Mark Thomas <ma...@apache.org> wrote:
> Tom Cat wrote:
>>
>> No, I didn't have Tidy.jar in the webapp's classpath. I moved it into
>> the WEB-INF/lib folder and am still getting a NoClassDefFound error.
>>
>> Any help?
>
> Did you reload your webapp?
>
> Mark
>
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Problems with NoClassDefFound Error in tomcat 6
Posted by Mark Thomas <ma...@apache.org>.
Tom Cat wrote:
> No, I didn't have Tidy.jar in the webapp's classpath. I moved it into
> the WEB-INF/lib folder and am still getting a NoClassDefFound error.
>
> Any help?
Did you reload your webapp?
Mark
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Problems with NoClassDefFound Error in tomcat 6
Posted by Tom Cat <to...@gmail.com>.
No, I didn't have Tidy.jar in the webapp's classpath. I moved it into
the WEB-INF/lib folder and am still getting a NoClassDefFound error.
Any help?
On Fri, Aug 8, 2008 at 4:30 PM, Hassan Schroeder
<ha...@gmail.com> wrote:
> On Fri, Aug 8, 2008 at 1:27 PM, Tom Cat <to...@gmail.com> wrote:
>
>> When I try to run it in tomcat though, i get this error:
>>
>> java.lang.NoClassDefFoundError: org/w3c/tidy/Tidy
>>
>> I don't understand why it throws this error. Tidy is in my classpath
>> and the code compiles fine.
>
> That's nice, but is it in the classpath of your webapp? :-)
>
> I'm gonna bet no...
>
> --
> Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Problems with NoClassDefFound Error in tomcat 6
Posted by Hassan Schroeder <ha...@gmail.com>.
On Fri, Aug 8, 2008 at 1:27 PM, Tom Cat <to...@gmail.com> wrote:
> When I try to run it in tomcat though, i get this error:
>
> java.lang.NoClassDefFoundError: org/w3c/tidy/Tidy
>
> I don't understand why it throws this error. Tidy is in my classpath
> and the code compiles fine.
That's nice, but is it in the classpath of your webapp? :-)
I'm gonna bet no...
--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Problems with NoClassDefFound Error in tomcat 6
Posted by Mark Thomas <ma...@apache.org>.
Tom Cat wrote:
> Hello,
>
> I am trying to run my webapp in tomcat 6 but am having a problem. A
> servlet I use imports org.w3c.tidy.Tidy and the code compiles fine.
> When I try to run it in tomcat though, i get this error:
>
> java.lang.NoClassDefFoundError: org/w3c/tidy/Tidy
>
>
> I don't understand why it throws this error. Tidy is in my classpath
> and the code compiles fine. If any more information is needed, I will
> be happy to provide.
You need to include that class in your webapp, probably as part of a JAR in
WEB-INF/lib
Mark
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org