You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by ji...@codehaus.org on 2004/05/05 12:45:31 UTC

[jira] Reopened: (MAVEN-1216) NoClassDefFoundError for org/jaxen/JaxenException and org/saxpath/SAXPathException

Message:

   The following issue has been reopened.

---------------------------------------------------------------------
View the issue:
  http://jira.codehaus.org/secure/ViewIssue.jspa?key=MAVEN-1216

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: MAVEN-1216
    Summary: NoClassDefFoundError for org/jaxen/JaxenException  and org/saxpath/SAXPathException
       Type: Bug

     Status: Reopened
   Priority: Major

 Original Estimate: 1 hour
 Time Spent: Unknown
  Remaining: 1 hour

    Project: maven
 Components: 
             jelly/ant integration
   Fix Fors:
             1.0-rc3
   Versions:
             1.0-rc2

   Assignee: Brett Porter
   Reporter: Vladimir Kralik

    Created: Thu, 1 Apr 2004 9:51 AM
    Updated: Wed, 5 May 2004 6:44 AM
Environment: maven-1.0-rc2
jdk 1.4.2_03
M$ Windows 2000 SP 4
cygwin

Description:
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$(XMLTagLibrary.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$(XMLTagLibrary.java:82)
<<skipped>>

after "cp saxpath-1.0-FCS.jar $MAVEN_HOME/lib"

it works fine.

jaxen and saxpath are not listed as dependecies in my plugin.
I use very simple Hello World plugin ( see below )

I thing that problem is in jelly-integration, because jelly (org.apache.commons.jelly.tags.xml.ForEachTag) requires org.jaxen.JaxenException and dom4j (org.dom4j.xpath.XPathPattern) requieres org.saxpath.SAXPathException.

=======================
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


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


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