maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Anderson <benanderson...@gmail.com>
Subject Re: javac ... -source 1.3
Date Mon, 15 Nov 2004 19:37:43 GMT
There could be something screwy w/ my installation, b/c I installed
1.0.1, then uninstalled it, then re-installed 1.0.  But anyways, heres
what happened.

w/ no dependencies specified.

$ maven plugin:install
 __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0

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:39)
        at org.apache.commons.jelly.tags.xml.XMLTagLibrary.<init>(XMLTagLibrary.java:44)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
        at java.lang.Class.newInstance0(Class.java:308)
        at java.lang.Class.newInstance(Class.java:261)
        at org.apache.commons.jelly.JellyContext.getTagLibrary(JellyContext.java:454)
        at org.apache.maven.jelly.MavenJellyContext.getTagLibrary(MavenJellyContext.java:171)
        at org.apache.commons.jelly.JellyContext.getTagLibrary(JellyContext.java:437)
        at org.apache.maven.jelly.MavenJellyContext.getTagLibrary(MavenJellyContext.java:171)
        at org.apache.commons.jelly.parser.XMLParser.createTag(XMLParser.java:979)
        at org.apache.commons.jelly.parser.XMLParser.startElement(XMLParser.java:593)
        at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown
Source)
        at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown
Source)
        at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown
Source)
...

w/ jaxen:
    <dependency>
      <groupId>jaxen</groupId>
      <artifactId>jaxen</artifactId>
      <jar>jaxen-1.0-FCS-full.jar</jar>
    </dependency>

$ maven plugin:install
 __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0

java.lang.NoClassDefFoundError: org/saxpath/SAXPathException
        at java.lang.ClassLoader.defineClass0(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
        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:39)
        at org.apache.commons.jelly.tags.xml.XMLTagLibrary.<init>(XMLTagLibrary.java:44)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
        at java.lang.Class.newInstance0(Class.java:308)


w/ jaxen/dom4j:
    <dependency>
      <groupId>jaxen</groupId>
      <artifactId>jaxen</artifactId>
      <jar>jaxen-1.0-FCS-full.jar</jar>
    </dependency>
    <dependency>
      <groupId>dom4j</groupId>
      <artifactId>dom4j</artifactId>
      <version>1.4</version>
    </dependency>

$ maven plugin:install
 __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0
....

BUILD SUCCESSFUL
Total time: 5 seconds
Finished at: Mon Nov 15 14:25:12 EST 2004


On Tue, 16 Nov 2004 06:18:16 +1100, Brett Porter <brett.porter@gmail.com> wrote:
> Ben,
> 
> These dependencies don't sound right, what error were you getting beforehand?
> 
> - Brett
> 
> On Mon, 15 Nov 2004 10:08:28 -0500, Ben Anderson
> 
> 
> <benanderson.us@gmail.com> wrote:
> > whoops, sent that to brett instead of the list... sorry.  I also
> > forgot to mention, that before I did the plugin:install under
> > maven-plugins/java, I had to add jaxen and dom4j as dependencies.
> >
> > On Mon, 15 Nov 2004 10:01:00 -0500, Ben Anderson
> >
> >
> > <benanderson.us@gmail.com> wrote:
> > > ah - plugin.properties - that makes sense.  Well, I'm learning about
> > > plugins...  I checked out maven-plugins from cvs and did a
> > > plugin:install.  That didn't work, but when I deleted the old jar from
> > > ${MAVEN_HOME}/plugins and copied in the new one, then it worked fine.
> > > Thanks,
> > > Ben
> > >
> > >
> > >
> > >
> > > On Sat, 13 Nov 2004 08:22:24 +1100, Brett Porter <brett.porter@gmail.com>
wrote:
> > > > You'll find it defined in plugin.properties which would also have worked.
> > > >
> > > > When the next java plugin is released, this has been fixed so you can
> > > > upgrade without fear of overwriting your change.
> > > >
> > > > (IF you'd like to check it out from CVS and run maven plugin:install
> > > > to verify - feel free)
> > > >
> > > > Cheers,
> > > > Brett
> > > >
> > > > On Fri, 12 Nov 2004 12:16:47 -0500, Ben Anderson
> > > >
> > > >
> > > > <benanderson.us@gmail.com> wrote:
> > > > > I got it working again.  I edited the plugin.jelly and commented
out
> > > > > the following lines:
> > > > >           <!--
> > > > >           <j:if test="${context.getVariable('maven.compile.source')
!= null}">
> > > > >             <ant:setProperty name="source" value="${maven.compile.source}"
/>
> > > > >           </j:if>
> > > > >           -->
> > > > >
> > > > > I understand this is needed if you wish to change the -source, but
I
> > > > > don't.  I'm not setting maven.compile.source anywhere, so I would
> > > > > expect is to be null, but for some reason it always got set to 1.3...
> > > > > who knows?  Also, I first worked on $HOME/.maven/plugins or
> > > > > $HOME/.maven/cache, but these did nothing.  What worked was when
I
> > > > > edited the plugin.jelly in $MAVEN_HOME/plugins/maven-java....jar
> > > > > What's the necessity for these various version?
> > > > >
> > > > > Bottom line - I got my problem fixed and I'm happy.
> > > > >
> > > > > Thanks,
> > > > > Ben
> > > > >
> > > > > On Fri, 12 Nov 2004 07:40:39 -0500, Ben Anderson
> > > > >
> > > > >
> > > > > <benanderson.us@gmail.com> wrote:
> > > > > > Thanks for the tip Brett, but it still adds -source as an argument:
> > > > > > $maven -X java:compile
> > > > > > ...
> > > > > > '-sourcepath'
> > > > > > 'D:\VSS3\MedAmerica_Working\src\java'
> > > > > > '-target'
> > > > > > '1.1'
> > > > > > '-g'
> > > > > > '-source'
> > > > > > ''
> > > > > > ...
> > > > > >
> > > > > > looks like I've got the maven-java-plugin1.4
> > > > > >
> > > > > > $ maven --info | grep java
> > > > > > Which.version=Which.java:($Revision: 1.2 $) WhichJar.java:($Revision:
1.2 $)
> > > > > > java.version=1.4.2_04
> > > > > > java.ext.dirs=c:\j2sdk1.4.2_04\jre\lib\ext
> > > > > > java.class.path=c:\Program Files\Apache Software Foundation\Maven
> > > > > > 1.0/lib/forehead-1.0-beta-5.jar
> > > > > > java.vendor=Sun Microsystems Inc.
> > > > > > java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition
> > > > > >   maven-java-plugin-1.4
> > > > > >   maven-javacc-plugin-1.1
> > > > > >   maven-javadoc-plugin-1.6.1
> > > > > >
> > > > > > Thanks,
> > > > > > Ben
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > On Fri, 12 Nov 2004 09:26:58 +1100, Brett Porter <brett.porter@gmail.com>
wrote:
> > > > > > > Sorry, my mistake. I was referring to a change made after
the last
> > > > > > > release, which was included with Maven 1.0.1.
> > > > > > >
> > > > > > > You will need to set:
> > > > > > > maven.compile.source=
> > > > > > >
> > > > > > > This should be added as an FAQ.
> > > > > > >
> > > > > > > Cheers,
> > > > > > > Brett
> > > > > > >
> > > > > > > On Fri, 12 Nov 2004 09:24:37 +1100, Brett Porter <brett.porter@gmail.com>
wrote:
> > > > > > > > That's stange, because the plugin no longer has .source
or .target set
> > > > > > > > by default.
> > > > > > > >
> > > > > > > > Can you please run maven --info to find the java plugin
version you
> > > > > > > > are using (there should only be one hopefully!), and
check your
> > > > > > > > ~/build.properties and any other properties files
in the project for
> > > > > > > > specification of maven.compile.source
> > > > > > > >
> > > > > > > > Thanks,
> > > > > > > > Brett
> > > > > > >
> > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > On Thu, 11 Nov 2004 21:49:19 +0100, Arnaud HERITIER
<aheritier@gmail.com> wrote:
> > > > > > > > > You must look at the plugin java :
> > > > > > > > > http://maven.apache.org/reference/plugins/java/
> > > > > > > > >
> > > > > > > > > Arnaud
> > > > > > > > >
> > > > > > > > > > -----Message d'origine-----
> > > > > > > > > > De : Ben Anderson [mailto:benanderson.us@gmail.com]
> > > > > > > > > > Envoyé : jeudi 11 novembre 2004 21:13
> > > > > > > > > > À : Maven Users List
> > > > > > > > > > Objet : javac ... -source 1.3
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > Hi,
> > > > > > > > > > I upgraded to maven1.0.1, but now my build
is broken.  The problem is
> > > > > > > > > > we're using the javac bundled with websphere3.5.7.
 This javac does
> > > > > > > > > > not have a -source option which maven is
adding.  I tried uninstalling
> > > > > > > > > > 1.0.1 and reinstalling 1.0, but this didn't
help.  I also grepped
> > > > > > > > > > through the plugins directories to find
where ant:javac is defined,
> > > > > > > > > > but I don't see it.  Does anyone know how
to either stop the javac
> > > > > > > > > > command from using the -source option, or
restore my existing 1.0
> > > > > > > > > > installation more completely?
> > > > > > > > > > Thanks,
> > > > > > > > > > Ben
> > > > > > > > > >
> > > > > > > > > > ---------------------------------------------------------------------
> > > > > > > > > > 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
> > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > > > ---------------------------------------------------------------------
> > > > > 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


Mime
View raw message