[jdom-interest] java.lang.NoClassDefFoundError:org/saxpath/SAXPathException

Johan Mörén Johan.Moren at staff.spray.se
Mon Jan 19 02:22:26 PST 2004


Thanks Per for pointing me in this direction. 

I managed to get my application running without the ugly-hack by using the <loader-repository>-thing in my jboss-app.xml.

/Johan 

> -----Original Message-----
> From: Per Norrman [mailto:pernorrman at telia.com] 
> Sent: den 16 januari 2004 21:07
> To: 'Gurunathan, Gurukeerthi'; Johan Mörén; jdom-interest at jdom.org
> Subject: SV: [jdom-interest] 
> java.lang.NoClassDefFoundError:org/saxpath/SAXPathException
> 
> Hi,
> I wonder if this problem is due to JBOSS using a 
> non-spec-compliant class loading scheme, per default. I've 
> seen some posts implying that it is possible to change this 
> behaviour, and configure isolated application class 
> repositories. This would be a more robust solution.
> 
> Specifically
>  
> http://www.servlets.com/archive/servlet/ReadMsg?msgId=431753&l
> istName=jd
> om-interest
> 
> 
> Have not tested myself, though.
> 
> /pmn
> 
> 
> > -----Ursprungligt meddelande-----
> > Från: jdom-interest-admin at jdom.org
> > [mailto:jdom-interest-admin at jdom.org] För Gurunathan, Gurukeerthi
> > Skickat: den 16 januari 2004 20:03
> > Till: 'Johan Mörén'; jdom-interest at jdom.org
> > Ämne: RE: [jdom-interest]
> > java.lang.NoClassDefFoundError:org/saxpath/SAXPathException
> > 
> > 
> > Great! It works now. Thank you very much Johan. I followed your 
> > suggestions.
> > 
> > Guru. 
> > 
> > -----Original Message-----
> > From: Johan Mörén [mailto:Johan.Moren at staff.spray.se]
> > Sent: Friday, January 16, 2004 2:29 AM
> > To: Gurukeerthi Gurunathan; jdom-interest at jdom.org
> > Subject: RE: [jdom-interest]
> > java.lang.NoClassDefFoundError:org/saxpath/SAXPathException
> > 
> > 
> > Hi!
> > 
> > I had similar problems. Check this thread for a soloution
> > 
> > http://www.servlets.com/archive/servlet/ReadMsg?msgId=446055&l
> > istName=jdom-i
> > nterest
> > 
> > 
> > regards,
> > Johan Mörén
> > 
> > > -----Original Message-----
> > > From: Gurukeerthi Gurunathan [mailto:gurug at intermapsystems.com]
> > > Sent: den 16 januari 2004 03:25
> > > To: jdom-interest at jdom.org
> > > Subject: [jdom-interest]
> > > java.lang.NoClassDefFoundError:org/saxpath/SAXPathException
> > > 
> > > Hello,
> > > 
> > > I am getting a
> > > java.lang.NoClassDefFoundError:org/saxpath/SAXPathException
> > > while trying to access a jsp, which in turn calls a bean, 
> in my web 
> > > application. I got the same during unit testing of my bean, but I 
> > > overcame it by adding different jars like jaxen-core, jaxen-jdom, 
> > > saxpath and jdom. But inspite of including these in my deploy ear 
> > > file, I am getting this exception. The code that I used is,
> > > 
> > > SAXBuilder builder = new SAXBuilder(); 
> > > builder.setIgnoringElementContentWhitespace(true);
> > > doc = builder.build(l_url);
> > > XPath channelPath = XPath.newInstance("//Channel[@id=\"" + chId + 
> > > "\"]/Link");
> > > 
> > > My app server is jboss with jetty. Please help me.
> > > 
> > > Thanks,
> > > Guru.
> > > 
> > > _______________________________________________
> > > To control your jdom-interest membership: 
> > > http://lists.denveronline.net/mailman/options/jdom-interest/yo
> > > uraddr at yourhost.com
> > > 
> > 
> > ---
> > Incoming mail is certified Virus Free.
> > Checked by AVG anti-virus system (http://www.grisoft.com).
> > Version: 6.0.551 / Virus Database: 343 - Release Date: 12/11/03
> >  
> > 
> > ---
> > Outgoing mail is certified Virus Free.
> > Checked by AVG anti-virus system (http://www.grisoft.com).
> > Version: 6.0.551 / Virus Database: 343 - Release Date: 12/11/03
> >  
> > _______________________________________________
> > To control your jdom-interest membership: 
> > http://lists.denveronline.net/mailman/options/jdom-interest/yo
> uraddr at yourhost.com
> 
> 



More information about the jdom-interest mailing list