are you using a framework that uses classloaders on top of the web app
classloaders??
this is a very very bad idea. especially with wicket or with clustering in
general..
you really shouldnt do that.

For wicket we have a solution please look at the:
org.apache.wicket.settings.IApplicationSettings#getClassResolver()

and implement your own classresolver (give them the Ofbiz classloaders)

johan


On Fri, Sep 12, 2008 at 11:55 PM, Ritesh Trivedi
<[EMAIL PROTECTED]>wrote:

>
> I am not - but I am using Apache Ofbiz inside tomcat, Wicket being used as
> a
> front end to Ofbiz component. Ofbiz has its ClassLoaders which it creates.
> May be thats an issue or may be it messes up in hot deploy mode when the
> webapp is reloaded due to recompilation.
>
> Does wicket print anywhere in the logs which classloader its using to load
> the class?
>
>
>
> igor.vaynberg wrote:
> >
> > are you using any interesting class reloading tools like javarebel, etc?
> >
> > -igor
> >
> > On Fri, Sep 12, 2008 at 2:31 PM, Ritesh Trivedi
> > <[EMAIL PROTECTED]> wrote:
> >>
> >> Every once in a while I get these classnotfoundexceptions for some odd
> >> reason
> >> which I cant figure out why. The class does exist (its a panel as you
> can
> >> tell from the classname) and is serializeable with one of the members
> >> IClusterable. It happens atleast few times a day and dont know why -
> >>
> >> Will appreciate any pointers or how to go about debugging these kind of
> >> issues...
> >>
> >> Here is the stacktrace.
> >>
> >> The URL that causes this
> >> http://localhost/search/bizfon 4000/true/
> >>
> >> THe resulting URL in the browser
> >>
> http://localhost/?wicket:interface=:16:bodyContentContainer:leftBarPanel:searchForm::IFormSubmitListener
> ::
> >>
> >> Exception report
> >>
> >> message
> >>
> >> description The server encountered an internal error () that prevented
> it
> >> from fulfilling this request.
> >>
> >> exception
> >>
> >> javax.servlet.ServletException: Filter execution threw an exception
> >>
> >> root cause
> >>
> >> java.lang.NoClassDefFoundError:
> >> com/neobits/web/panels/VerticalLinkItemListWithCountPanel
> >>    java.lang.Class.getDeclaredFields0(Native Method)
> >>    java.lang.Class.privateGetDeclaredFields(Class.java:2259)
> >>    java.lang.Class.getDeclaredField(Class.java:1852)
> >>
>  java.io.ObjectStreamClass.getDeclaredSUID(ObjectStreamClass.java:1582)
> >>    java.io.ObjectStreamClass.access$700(ObjectStreamClass.java:52)
> >>    java.io.ObjectStreamClass$2.run(ObjectStreamClass.java:408)
> >>    java.security.AccessController.doPrivileged(Native Method)
> >>    java.io.ObjectStreamClass.<init>(ObjectStreamClass.java:400)
> >>    java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:297)
> >>    java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:531)
> >>
> >> java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1552)
> >>    java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1466)
> >>
> >> java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1552)
> >>    java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1466)
> >>
> >>
> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1699)
> >>    java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
> >>    java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
> >>
> >> org.apache.wicket.util.lang.Objects.byteArrayToObject(Objects.java:393)
> >>
> >>
> org.apache.wicket.protocol.http.pagestore.AbstractPageStore.deserializePage(AbstractPageStore.java:228)
> >>
> >>
> org.apache.wicket.protocol.http.pagestore.DiskPageStore.getPage(DiskPageStore.java:706)
> >>
> >>
> org.apache.wicket.protocol.http.SecondLevelCacheSessionStore$SecondLevelCachePageMap.get(SecondLevelCacheSessionStore.java:311)
> >>    org.apache.wicket.Session.getPage(Session.java:751)
> >>
> >>
> org.apache.wicket.request.AbstractRequestCycleProcessor.resolveRenderedPage(AbstractRequestCycleProcessor.java:448)
> >>
> >>
> org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCyclePr
> >> --
> >> View this message in context:
> >>
> http://www.nabble.com/Mysterious-classnotfoundexceptions-tp19464494p19464494.html
> >> Sent from the Wicket - User mailing list archive at Nabble.com.
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Mysterious-classnotfoundexceptions-tp19464494p19464767.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to