You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Arto Pastinen <ar...@ofw.fi> on 2004/03/31 11:13:07 UTC

RE: NoClassDefFoundError for org/jaxen/JaxenException and org/saxpath/SAXPathException

Hi

I think that you must at least jaxen to your project.xml. I don't know
that saxpath.
If your plugin doesn't need those, it is still possible, that some other
element in your plugin needs those. Like jelly, or and, or something
else.

On Wed, 2004-03-31 at 12:01, KRÁLIK Vladimír wrote:
> > -----Original Message-----
> > From: Brett Porter [mailto:bporter@f2network.com.au]
> > Sent: Wednesday, March 31, 2004 1:47 AM
> ...
> > Are jaxen and saxpath listed as dependencies in your 
> > project.xml?
> No, they aren't. I don't need that jars in my plugin.
> I reproduced this bug wih simple HelloWorld plugin without any dependencies.
> 
> > Can you send that section to the list if so?
> All three files from HelloWorld-plugin are below.
> 
> =======================
> project.xml
> =======================
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <project>
>   <pomVersion>3</pomVersion>
>   <id>maven-hello-plugin</id>
>   <name>Maven Hello World Plug-in</name>
>   <currentVersion>1.0.0-SNAPSHOT</currentVersion>
>   <dependencies />
>   <build>
>     <resources>
>       <resource>
>         <directory>${basedir}</directory>
>         <includes>
>           <include>plugin.jelly</include>
>           <include>plugin.properties</include>
>           <include>project.xml</include>
>         </includes>
>       </resource>
>     </resources>
>   </build>
> </project>
> =======================
> plugin.jelly
> =======================
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <project xmlns:ant="jelly:ant" >
>     <goal description="Hello World" name="hello:world">
>         <ant:echo>Hello, ${maven.hello.world}</ant:echo>
>     </goal>
> </project>
> =======================
> plugin.properties
> =======================
> maven.hello.world=World
> 
> 
> > 
> > Thanks,
> > Brett
> > 
> > > -----Original Message-----
> > > From: KRÁLIK Vladimír [mailto:Vladimir.KRALIK@assetsoft.sk] 
> > > Sent: Wednesday, 31 March 2004 2:59 AM
> > > To: Maven Users MailingList (E-mail)
> > > Subject: NoClassDefFoundError for org/jaxen/JaxenException 
> > > and org/saxpath/SAXPathException
> > > 
> > > 
> > > Hello all, 
> > > 
> > > 	i've problem with instalation of maven-1.0-rc2.
> > > I've installed maven into new directory structures ( empty 
> > > ${maven.home.local} ). Environment :
> > > 	maven-1.0-rc2
> > > 	jdk 1.4.2_03
> > > 	M$ Windows 2000 SP 4
> > > 	cygwin
> > > 
> > > When I try install my own plugin ( by using "maven 
> > > plugin:install" ),then I get : <<skipped>> Caused by: 
> > > java.lang.NoClassDefFoundError: org/jaxen/JaxenException
> > >         at java.lang.Class.forName0(Native Method)
> > >         at java.lang.Class.forName(Class.java:141)
> > >         at 
> > > org.apache.commons.jelly.tags.xml.XMLTagLibrary.class$(XMLTagL
> > > ibrary.java:82)
> > > <<skipped>>
> > > 
> > > after "cp jaxen-core-1.0-FCS.jar $MAVEN_HOME/lib" :
> > > 
> > > <<skipped>>
> > > Caused by: java.lang.NoClassDefFoundError: 
> > > org/saxpath/SAXPathException
> > > 	<<skipped java.lang>>>
> > >         at 
> > > org.apache.commons.jelly.tags.xml.XMLTagLibrary.class$(XMLTagL
> > > ibrary.java:82)
> > > <<skipped>>
> > > 
> > > after "cp saxpath-1.0-FCS.jar $MAVEN_HOME/lib"
> > > 
> > > it works fine.
> > > 
> > > Is this bug ?
> > > Should be saxpath.jar and jaxen.jar in maven distribution ?
> > > 
> > > 	thank's for answers.
> > > 
> > > 			vlk
> > > 
> > > 
> > > Vladimir Kralik
> > > ASSET Soft a.s.
> > > Banska Bystrica
> > > 
> > > 
> > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > For additional commands, e-mail: users-help@maven.apache.org
> > > 
> > 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org