You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Sam Zilverberg <sa...@gmail.com> on 2011/01/13 12:58:14 UTC
OT: app throws java.lang.NoClassDefFoundError sometimes, and
sometimes it doesnt
Hi,
I'm running a wicket app on tomcat 6.0.20.
Once in a while I need to redeploy it (after fixing some stuff, adding
features and so on).
This is how I redeploy:
1.Use tomcat manager to undeploy the running app.
2.Deploy the new app by copying the new WAR file to a library inside tomcat.
Everything seems fine but when I use the app I sometimes get a
java.lang.NoClassDefFoundError.
The class can be just about any class in the project and its libs.
Sometimes its a Hibernate related class, sometimes its a Wicket related
class and
sometimes its a class from my app.
Redeploying once (or a couple of times) solves the problem.
This is very inconsistent and bothering.
After deploying I never know if the app is going to be ok or if one of its
pages will keep throwing internal errors on account of the
NoClassDefFoundError.
Did any one ever encounter this kind of problem?
Do you have any ideas on what is causing this or what I can do to diagnose
this problem?
I'm clueless at the moment :(
Thanks
-Sam
Re: OT: app throws java.lang.NoClassDefFoundError sometimes, and
sometimes it doesnt
Posted by Sam Zilverberg <sa...@gmail.com>.
I've posted my problem on tomcat mailing list and got some answers.
For future reference and for anyone following this heres a link to post (on
nabble archive):
http://old.nabble.com/app-throws-java.lang.NoClassDefFoundError-sometimes%2C-and-sometimes-it-doesnt-to30662304.html
Re: OT: app throws java.lang.NoClassDefFoundError sometimes, and
sometimes it doesnt
Posted by Thomas Gier <th...@qleo.de>.
Am 13.01.11 12:58, schrieb Sam Zilverberg:
> Hi,
>
> I'm running a wicket app on tomcat 6.0.20.
> Once in a while I need to redeploy it (after fixing some stuff, adding
> features and so on).
> This is how I redeploy:
> 1.Use tomcat manager to undeploy the running app.
> 2.Deploy the new app by copying the new WAR file to a library inside tomcat.
>
> Everything seems fine but when I use the app I sometimes get a
> java.lang.NoClassDefFoundError.
> The class can be just about any class in the project and its libs.
> Sometimes its a Hibernate related class, sometimes its a Wicket related
> class and
> sometimes its a class from my app.
> Redeploying once (or a couple of times) solves the problem.
>
> This is very inconsistent and bothering.
> After deploying I never know if the app is going to be ok or if one of its
> pages will keep throwing internal errors on account of the
> NoClassDefFoundError.
>
> Did any one ever encounter this kind of problem?
> Do you have any ideas on what is causing this or what I can do to diagnose
> this problem?
> I'm clueless at the moment :(
>
> Thanks
> -Sam
Have you tried "antiResourceLocking=true" in tomcat's context container
($CATALINA_HOME/conf/context.xml)? There are some impacts when using
this (ref. to
http://tomcat.apache.org/tomcat-5.5-doc/config/context.html; search the
page for "antiResourceLocking") but it may be helpful.
--
Cheers
Tom
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: OT: app throws java.lang.NoClassDefFoundError sometimes, and
sometimes it doesnt
Posted by James Carman <ja...@carmanconsulting.com>.
Send this to the Tomcat list.
On Thu, Jan 13, 2011 at 6:58 AM, Sam Zilverberg <sa...@gmail.com> wrote:
> Hi,
>
> I'm running a wicket app on tomcat 6.0.20.
> Once in a while I need to redeploy it (after fixing some stuff, adding
> features and so on).
> This is how I redeploy:
> 1.Use tomcat manager to undeploy the running app.
> 2.Deploy the new app by copying the new WAR file to a library inside tomcat.
>
> Everything seems fine but when I use the app I sometimes get a
> java.lang.NoClassDefFoundError.
> The class can be just about any class in the project and its libs.
> Sometimes its a Hibernate related class, sometimes its a Wicket related
> class and
> sometimes its a class from my app.
> Redeploying once (or a couple of times) solves the problem.
>
> This is very inconsistent and bothering.
> After deploying I never know if the app is going to be ok or if one of its
> pages will keep throwing internal errors on account of the
> NoClassDefFoundError.
>
> Did any one ever encounter this kind of problem?
> Do you have any ideas on what is causing this or what I can do to diagnose
> this problem?
> I'm clueless at the moment :(
>
> Thanks
> -Sam
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org