commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Nichols <nx10m...@yahoo.co.uk>
Subject Re: [jelly] maven tags:build error on jelly-tags-email
Date Fri, 14 Feb 2003 20:45:33 GMT
Wheee! Thanks, that works - so long as I rename the mail.jar I
downloaded to javamail-1.2.jar, and it also needs JAF activation.jar to
be renamed/symlinked to activation-1.0.2.jar in repository/jaf/jars. The
tags:build target still breaks - see stack trace below - but has built
the taglibs I need right now.

BTW, the activation-1.0.2.jar and javamail-1.2.jar names are hard-coded
in jelly-tags/email/project.xml (and build.xml, which I'm guessing is
generated from it) -- is there some documentation I've missed about
these non-redistributable jars?

Log shown below in case it proves useful. Whatever, my immediate problem
is resolved - thanks.

Best Regards,
Thomas.

maven tags:build failure
========================

...
+----------------------------------------
| Building tag commons-jelly-tags-swing
+----------------------------------------
Attempting to download commons-jelly-tags-define-SNAPSHOT.jar.
Attempting to download commons-jelly-tags-interaction-SNAPSHOT.jar.
....
.
Attempting to download commons-jelly-tags-junit-SNAPSHOT.jar.
Attempting to download commons-jelly-tags-log-SNAPSHOT.jar.
Attempting to download commons-cli-SNAPSHOT.jar.
Attempting to download commons-jelly-SNAPSHOT.jar.
java.lang.ClassNotFoundException: interaction
	at java.net.URLClassLoader$1.run(URLClassLoader.java:198)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
	at
org.apache.commons.jelly.parser.XMLParser.createTag(XMLParser.java:1039)
	at
org.apache.commons.jelly.parser.XMLParser.startElement(XMLParser.java:647)
	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)
	at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
	at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
	at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
	at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
	at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
	at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
	at org.apache.commons.jelly.parser.XMLParser.parse(XMLParser.java:320)
	at org.apache.maven.jelly.JellyUtils.compileScript(JellyUtils.java:207)
	at org.apache.maven.jelly.JellyUtils.compileScript(JellyUtils.java:174)
	at org.apache.maven.jelly.JellyUtils.runScript(JellyUtils.java:111)
	at org.apache.maven.jelly.JellyUtils.runScript(JellyUtils.java:139)
	at
org.apache.maven.plugin.PluginManager.loadJellyScript(PluginManager.java:426)
	at
org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:343)
	at org.apache.maven.MavenSession.attainGoals(MavenSession.java:372)
	at
org.apache.maven.jelly.tags.maven.ReactorTag.doTag(ReactorTag.java:368)
	at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
	at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
	at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233)
	at com.werken.werkz.jelly.GoalTag$1.performAction(GoalTag.java:116)
	at com.werken.werkz.Goal.fire(Goal.java:639)
	at com.werken.werkz.Goal.attain(Goal.java:575)
	at
org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:383)
	at org.apache.maven.MavenSession.attainGoals(MavenSession.java:360)
	at org.apache.maven.cli.App.doMain(App.java:518)
	at org.apache.maven.cli.App.main(App.java:1074)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:324)
	at com.werken.forehead.Forehead.run(Forehead.java:543)
	at com.werken.forehead.Forehead.main(Forehead.java:573)
java.lang.ClassNotFoundException: interaction
	at
org.apache.commons.jelly.parser.XMLParser.createSAXException(XMLParser.java:1225)
	at
org.apache.commons.jelly.parser.XMLParser.createTag(XMLParser.java:1044)
	at
org.apache.commons.jelly.parser.XMLParser.startElement(XMLParser.java:647)
	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)
	at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
	at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
	at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
	at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
	at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
	at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
	at org.apache.commons.jelly.parser.XMLParser.parse(XMLParser.java:320)
	at org.apache.maven.jelly.JellyUtils.compileScript(JellyUtils.java:207)
	at org.apache.maven.jelly.JellyUtils.compileScript(JellyUtils.java:174)
	at org.apache.maven.jelly.JellyUtils.runScript(JellyUtils.java:111)
	at org.apache.maven.jelly.JellyUtils.runScript(JellyUtils.java:139)
	at
org.apache.maven.plugin.PluginManager.loadJellyScript(PluginManager.java:426)
	at
org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:343)
	at org.apache.maven.MavenSession.attainGoals(MavenSession.java:372)
	at
org.apache.maven.jelly.tags.maven.ReactorTag.doTag(ReactorTag.java:368)
	at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
	at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
	at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233)
	at com.werken.werkz.jelly.GoalTag$1.performAction(GoalTag.java:116)
	at com.werken.werkz.Goal.fire(Goal.java:639)
	at com.werken.werkz.Goal.attain(Goal.java:575)
	at
org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:383)
	at org.apache.maven.MavenSession.attainGoals(MavenSession.java:360)
	at org.apache.maven.cli.App.doMain(App.java:518)
	at org.apache.maven.cli.App.main(App.java:1074)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:324)
	at com.werken.forehead.Forehead.run(Forehead.java:543)
	at com.werken.forehead.Forehead.main(Forehead.java:573)

BUILD FAILED
Error at (37, 90): Error at (37, 90): Could not load class: interaction
so taglib instantiation failed
Total time: 6 minutes 44 seconds

====



On Fri, 2003-02-14 at 13:20, Ben Walding wrote:
> javamail was removed from the maven repository due to licensing problems
> 
> You will need to download the correct version and add it to your 
> repository manually.
> 
> Get it from Sun then save it to
> $maven_home\repository\javamail\jars\javamail-1.2.jar
> 
> or 1.3 if you need that version
> 
> 
> Thomas Nichols wrote:
> 
> >Good day,
> >
> >Trying to build CVS HEAD of Maven (OK under JDK 1.4.1, bug recorded for
> >JDK 1.3.0) and now CVS HEAD of a fresh (not sandbox) checkout of jelly -
> >problems with Jelly.
> >
> > Sun JDK 1.4.1_01, Linux Mandrake 9.
> >
> >maven java:jar -- builds fine
> >
> >maven tags:build -- builds several taglibs fine, then breaks with
> >
> >...
> >+----------------------------------------
> >| Building tag commons-jelly-tags-email
> >+----------------------------------------
> >...
> >import javax.mail.Session;
> >                  ^
> >/home/thomasn/dev/jakarta-commons/jelly/jelly-tags/email/src/java/org/apache/commons/jelly/tags/email/EmailTag.java:71:
package javax.mail does not exist
> >
> >...
> >/home/thomasn/dev/jakarta-commons/jelly/jelly-tags/email/src/java/org/apache/commons/jelly/tags/email/EmailTag.java:307:
cannot resolve symbol
> >symbol  : class MessagingException 
> >location: class org.apache.commons.jelly.tags.email.EmailTag
> >        catch (MessagingException e) {
> >               ^
> >38 errors
> >
> >BUILD FAILED
> > 
> >
> >Where do I need to add mail.jar, or is this not the problem? I don't yet
> >understand Maven well enough to know how to plumb it in. Any docs on
> >this?
> >
> >Thanks,
> >Thomas.
> >



Mime
View raw message