yep, classloading in Weblogic is fun. ;)  Try this:  Put all JARs and
classes into the WAR file.  That way, Weblogic will load all classes
with the same classloader.

Let me know whether that works.

-Stefan




> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of Nathan Weddle
> Sent: Thursday, April 01, 2004 10:05 PM
> To: [EMAIL PROTECTED]
> Subject: RE: AW: [displaytag-user] 
> java.lang.NoClassDefFoundError: org.display 
> tag.decorator.TableDecorator
> 
> 
> Hmmm, interesting...
> 
> I have an EAR file with EJB JAR's and my WAR file.  My
> custom decorator class is in my WEB-INF/classes
> directory.  I have other classes that are used by my
> JSP's, but they are located in my EAR file.  My
> decorator does use an object that is located in a JAR
> file in my EAR.  I will try to move that class into my
> WEB-INF/classes and see if that works.
> 
> This has been a really tough problem.  I have tried
> the following to no avail...
> 1. Put the displaytag.jar in WEB-INF/lib
> 2. Put displaytag.jar in the root of the EAR and put
> it in the manifest.
> 3. Pointed directly at the JAR with my Weblogic
> startup script.
> 
> Weblogic classloaders are trouble makers... 
> 
> --- Stefan Kleineikenscheidt
> <[EMAIL PROTECTED]> wrote:
> > 
> > Hi Nathan,  in my experience the
> > NoClassDefFoundError in Weblogic is
> > usually a classloader related problem.  Have you
> > checked, that all
> > classes you use are the WAR-file (/lib-directory),
> > instead of having
> > some of them on the system classpath?
> > 
> > -Stefan
> > 
> > 
> > 
> > > -----Original Message-----
> > > From: [EMAIL PROTECTED] 
> > >
> > [mailto:[EMAIL PROTECTED]
> > On 
> > > Behalf Of Nathan Weddle
> > > Sent: Wednesday, March 31, 2004 5:35 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: Re: AW: [displaytag-user] 
> > > java.lang.NoClassDefFoundError: org.display 
> > > tag.decorator.TableDecorator
> > > 
> > > 
> > > Sorry, I should have included that, but I do have
> > the
> > > fully qualified class name in my code.
> > > 
> > > I am wondering why the TableDecorator cannot be
> > found
> > > if it is located in WEB-INF/lib?
> > > 
> > > 
> > > Thanks!
> > > 
> > > 
> > > --- Papick Garcia Taboada <[EMAIL PROTECTED]> wrote:
> > > > you should add the fully qualified name of the
> > > > class. 
> > > > 
> > > >
> > >
> >
> package.name.and.then.class.name.CommonLogEventDecorator
> > > > 
> > > > brgds,
> > > > 
> > > > papick
> > > > 
> > > > -----Urspr�ngliche Nachricht-----
> > > > Von: [EMAIL PROTECTED]
> > > >
> > [mailto:[EMAIL PROTECTED]
> > > > Im Auftrag von Paul
> > > > McCulloch
> > > > Gesendet: Mittwoch, 31. M�rz 2004 14:40
> > > > An: '[EMAIL PROTECTED]'
> > > > Betreff: RE: [displaytag-user]
> > > > java.lang.NoClassDefFoundError: org.display
> > > > tag.decorator.TableDecorator
> > > > 
> > > > 
> > > > Looks like it can't find your table decorator.
> > Try
> > > > removing that attribute
> > > > from the table tag.
> > > > 
> > > > Paul
> > > > 
> > > > > -----Original Message-----
> > > > > From: Nathan Weddle
> > [mailto:[EMAIL PROTECTED]
> > > > > Sent: 31 March 2004 00:16
> > > > > To: [EMAIL PROTECTED]
> > > > > Subject: [displaytag-user]
> > > > java.lang.NoClassDefFoundError: 
> > > > > org.displaytag.decorator.TableDecorator
> > > > > 
> > > > > 
> > > > > I am using 1.0-b2 displaytag on Weblogic 8.1.
> > > > > 
> > > > > I have the display tag jar in my WEB-INF/lib
> > and I
> > > > > have all the other stuff configured properly.
> > > > > 
> > > > > Funny thing is, I had this working, then I
> > > > configured
> > > > > the 1.0-b3 version. I couldn't get that to
> > work so
> > > > I
> > > > > switched back to the 1.0-b2 jar.  Now I can't
> > get
> > > > that
> > > > > to work.  I made sure that I was using the
> > proper
> > > > tld
> > > > > files.  I ensured that Weblogic is not caching
> > > > > anything.  I deleted all files from weblogic
> > and
> > > > > re-deployed, no luck.  I am using *11.tld
> > right
> > > > now.
> > > > > One of those days I guess...
> > > > > 
> > > > > <display:table name="cleTable" sort="page"
> > > > > defaultsort="2" id="cle"
> > > > > decorator="CommonLogEventDecorator">
> > > > > 
> > > > > Here's the stacktrace...
> > > > > Root cause of ServletException.
> > > > > java.lang.NoClassDefFoundError: 
> > > > > org.displaytag.decorator.TableDecorator
> > > > >       at
> > > >
> > >
> >
> java.lang.ClassLoader.loadClass(Ljava.lang.String;Z)Ljava.lang
> > > > > .Class;(Unknown
> > > > > Source)
> > > > >       at
> > > > >
> > > >
> > >
> >
> java.lang.ClassLoader.loadClass(Ljava.lang.String;Z)Ljava.lang
> > > > > .Class;(Unknown
> > > > > Source)
> > > > >       at
> > > > >
> > > >
> > >
> >
> java.lang.ClassLoader.loadClass(Ljava.lang.String;)Ljava.lang.
> > > > > Class;(Unknown
> > > > > Source)
> > > > >       at
> > > > >
> > > >
> > >
> >
> weblogic.utils.classloaders.GenericClassLoader.loadClass(Ljava
> > > > >
> > > >
> > >
> >
> .lang.String;)Ljava.lang.Class;(GenericClassLoader.java:223)
> > > > >       at
> > > > >
> > > >
> > >
> >
> weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(L
> > > > >
> > > >
> > >
> >
> java.lang.String;)Ljava.lang.Class;(ChangeAwareClassLoader.java:41)
> > > > >       at
> > > > >
> > > >
> > >
> >
> java.lang.ClassLoader.loadClassFromNative(II)I(Unknown
> > > > > Source)
> > > > >       at
> > > > >
> > > >
> > >
> >
> COM.jrockit.vm.Classes.forName0(Ljava.lang.String;ZI)I(Native
> > > > > Method)
> > > > >       at
> > > > >
> > > >
> > >
> >
> COM.jrockit.vm.Classes.forName(Ljava.lang.String;ZLjava.lang.C
> > > > > lassLoader;)Ljava.lang.Class;(Unknown
> > > > > Source)
> > > > >       at
> > > > >
> > > >
> > >
> >
> java.lang.Class.forName(Ljava.lang.String;I)Ljava.lang.Class;(Unknown
> > > > > Source)
> > > > >       at
> > > > >
> > > >
> > >
> >
> org.displaytag.decorator.DecoratorFactory.loadTableDecorator(L
> > > > >
> > > >
> > >
> >
> java.lang.String;)Lorg.displaytag.decorator.TableDecorator;(De
> > > > > coratorFactory.java:39)
> > > > >       at
> > > > >
> > > >
> > >
> >
> org.displaytag.tags.TableTag.doEndTag()I(TableTag.java:813)
> > > > >       at
> > > > >
> > > >
> > >
> >
> jsp_servlet.__searchresult._jspService(Ljavax.servlet.http.Htt
> > > > >
> > > >
> > >
> >
> pServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(__s
> > > > > earchresult.java:432)
> > 
> === message truncated ===
> 
> 
> __________________________________
> Do you Yahoo!?
> Yahoo! Small Business $15K Web Design Giveaway 
> http://promotions.yahoo.com/design_giveaway/
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by: IBM Linux Tutorials
> Free Linux tutorial presented by Daniel Robbins, President and CEO of
> GenToo technologies. Learn everything from fundamentals to system
> administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
> _______________________________________________
> displaytag-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/displaytag-user
> 



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click
_______________________________________________
displaytag-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to