maven-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@codehaus.org
Subject [jira] Updated: (MAVEN-1216) NoClassDefFoundError for org/jaxen/JaxenException and org/saxpath/SAXPathException
Date Sat, 03 Apr 2004 00:10:59 GMT
The following issue has been updated:

    Updater: Brett Porter (mailto:brett@codehaus.org)
       Date: Fri, 2 Apr 2004 7:09 PM
    Changes:
             Fix Version changed to 1.0-rc3
    ---------------------------------------------------------------------
For a full history of the issue, see:

  http://jira.codehaus.org/secure/ViewIssue.jspa?key=MAVEN-1216&page=history

---------------------------------------------------------------------
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: Unassigned
   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: 
   Reporter: Vladimir Kralik

    Created: Thu, 1 Apr 2004 9:51 AM
    Updated: Fri, 2 Apr 2004 7:09 PM
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


Mime
View raw message