You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Paulo Silveira <pa...@paulo.com.br> on 2003/03/14 13:35:08 UTC
cannot debug maven, java.lang.ClassNotFoundException: xml ??
I am just sending to the lsit because I ve already lost 1 night trying
to debug Maven in Eclipse.
My config:
-->main class:
com.werken.forehead.Forehead
--> virtual machine arguments:
"-Djavax.xml.parsers.DocumentBuilderFactory=org.apache.xerces.jaxp.Docum
entBuilderFactoryImpl"
"-Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFa
ctoryImpl" "-Dmaven.home=E:\java-programs\maven-1.0-beta-8"
"-Dtools.jar=C:\j2sdk1.4.1_01\lib\tools.jar"
"-Dforehead.conf.file=E:\java-programs\maven-1.0-beta-8\bin\forehead.con
f"
"-Djava.endorsed.dirs=C:\j2sdk1.4.1_01\lib\endorsed;E:\java-programs\mav
en-1.0-beta-8\lib\endorsed"
--> classpath
(the one generated by maven eclipse, plus the fix for junit-.jar)
And then I got this (full stack later)
--> java.lang.ClassNotFoundException: xml
xml? a class named xml? who is trying to load this? why does jelly has a
"xml", lowercase, not packaged, class name?
If any one could help me.... It seems like it is not reading some
configfile, or maybe not.
__ __
| \/ |__ Jakarta _ ___
| |\/| / _` \ V / -_) ' \ ~ intelligent projects ~
|_| |_\__,_|\_/\___|_||_| v. 1.0-beta-9-SNAPSHOT
java.lang.ClassNotFoundException: xml
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 sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)
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:64
7)
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$FragmentContentDis
patcher.dispatch(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkno
wn 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.loadPlugin(PluginManager.java:684)
at
org.apache.maven.plugin.PluginManager.prepDynamicTagLib(PluginManager.ja
va:571)
at
org.apache.maven.plugin.PluginManager.prepDynaTagLibs(PluginManager.java
:546)
at
org.apache.maven.plugin.PluginManager.loadPlugin(PluginManager.java:645)
at
org.apache.maven.plugin.PluginManager.prepDynamicTagLib(PluginManager.ja
va:571)
at
org.apache.maven.plugin.PluginManager.prepDynaTagLibs(PluginManager.java
:546)
at
org.apache.maven.plugin.PluginManager.loadPlugin(PluginManager.java:645)
at
org.apache.maven.plugin.PluginManager.prepForGoal(PluginManager.java:486
)
at
org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:375
)
at
org.apache.maven.MavenSession.attainGoals(MavenSession.java:357)
at org.apache.maven.cli.App.doMain(App.java:524)
at org.apache.maven.cli.App.main(App.java:1080)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.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)
------------------------
Paulo Silveira
http://www.paulo.com.br/
http://www.guj.com.br/
RE: cannot debug maven, java.lang.ClassNotFoundException: xml ??
Posted by Charles Chan <ch...@yahoo.com>.
Coincidently, I have the same problem today. I posted
a similar question to the dev list:
http://marc.theaimsgroup.com/?l=turbine-maven-dev&m=104766084121878&w=2
Charles
--- Paulo Silveira <pa...@paulo.com.br> wrote:
> Thanks a lot, it worked.
>
> But maven.bat/sh do not include these jars into the
> classpath when
> running maven. The only jar used in the classpath is
> forehead-xxx.jar
>
> Why do I have do include?
>
> ------------------------
> Paulo Silveira
> http://www.paulo.com.br/
> http://www.guj.com.br/
>
>
> > -----Original Message-----
> > From: Incze Lajos [mailto:incze@mail.matav.hu]
> > Sent: sexta-feira, 14 de mar�o de 2003 16:54
> > To: Turbine Maven Users List
> > Subject: Re: cannot debug maven,
> > java.lang.ClassNotFoundException: xml ??
> >
> >
> > On Fri, Mar 14, 2003 at 09:35:08AM -0300, Paulo
> Silveira wrote:
> > > I am just sending to the lsit because I ve
> already lost 1
> > night trying
> > > to debug Maven in Eclipse.
> > >
> > ...
> > > --> java.lang.ClassNotFoundException: xml
> > >
> > > xml? a class named xml? who is trying to load
> this? why
> > does jelly has
> > > a "xml", lowercase, not packaged, class name?
> > >
> > > If any one could help me.... It seems like it is
> not reading some
> > > configfile, or maybe not.
> >
> > You probably miss the commons-jelly-tags-xml
> dependency. The
> > exception is dropped when jelly tries to load the
> jelly:xml
> > taglib. At least I think so.
> >
> > incze
> >
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > turbine-maven-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail:
> > turbine-maven-user-help@jakarta.apache.org
> >
> >
>
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> turbine-maven-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> turbine-maven-user-help@jakarta.apache.org
>
__________________________________________________
Do you Yahoo!?
Yahoo! Web Hosting - establish your business online
http://webhosting.yahoo.com
RE: cannot debug maven, java.lang.ClassNotFoundException: xml ??
Posted by Paulo Silveira <pa...@paulo.com.br>.
Thanks a lot, it worked.
But maven.bat/sh do not include these jars into the classpath when
running maven. The only jar used in the classpath is forehead-xxx.jar
Why do I have do include?
------------------------
Paulo Silveira
http://www.paulo.com.br/
http://www.guj.com.br/
> -----Original Message-----
> From: Incze Lajos [mailto:incze@mail.matav.hu]
> Sent: sexta-feira, 14 de março de 2003 16:54
> To: Turbine Maven Users List
> Subject: Re: cannot debug maven,
> java.lang.ClassNotFoundException: xml ??
>
>
> On Fri, Mar 14, 2003 at 09:35:08AM -0300, Paulo Silveira wrote:
> > I am just sending to the lsit because I ve already lost 1
> night trying
> > to debug Maven in Eclipse.
> >
> ...
> > --> java.lang.ClassNotFoundException: xml
> >
> > xml? a class named xml? who is trying to load this? why
> does jelly has
> > a "xml", lowercase, not packaged, class name?
> >
> > If any one could help me.... It seems like it is not reading some
> > configfile, or maybe not.
>
> You probably miss the commons-jelly-tags-xml dependency. The
> exception is dropped when jelly tries to load the jelly:xml
> taglib. At least I think so.
>
> incze
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> turbine-maven-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> turbine-maven-user-help@jakarta.apache.org
>
>
Re: cannot debug maven, java.lang.ClassNotFoundException: xml ??
Posted by Incze Lajos <in...@mail.matav.hu>.
On Fri, Mar 14, 2003 at 09:35:08AM -0300, Paulo Silveira wrote:
> I am just sending to the lsit because I ve already lost 1 night trying
> to debug Maven in Eclipse.
>
...
> --> java.lang.ClassNotFoundException: xml
>
> xml? a class named xml? who is trying to load this? why does jelly has a
> "xml", lowercase, not packaged, class name?
>
> If any one could help me.... It seems like it is not reading some
> configfile, or maybe not.
You probably miss the commons-jelly-tags-xml dependency. The exception is
dropped when jelly tries to load the jelly:xml taglib. At least I think so.
incze