I tried it but this is not the case for me. Also why should the error be present only on Maven and not on Ant?
I do not really have a clue now... -----Original Message----- From: Arto Pastinen [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 25, 2004 11:05 AM To: Maven Users List Subject: RE: Classpath Problem Hi! Try to search that ConstructorAccessorImpl with google, and you see that it's quite commond problem. See this: http://66.102.9.104/search?q=cache:ErI27w5ibV4J:www.geocrawler.com/archives/3/8797/2002/6/0/8955802/+ConstructorAccessorImpl&hl=en Maby updating you JVM can helps.. Artsi On Tue, 2004-05-25 at 11:35, Amato Massimiliano (TLAB) wrote: > Yes, but i don't think this is the problem. > > MY first test was to have an ant script that worked perfectly with all the > dependancy in a lib directory, then I updated the script to use maven but i kept the > libs local not in the repository and it startet having problem > > I think this could be related to an xml parser, since in the ant execution it gives > me a warning about jaxp not able to invoce SAX, swtiching now to aelfred that under > maven is not printed > > Max > > -----Original Message----- > From: Dion Gillard [mailto:[EMAIL PROTECTED] > Sent: Tuesday, May 25, 2004 1:07 AM > To: Maven Users List > Subject: Re: Classpath Problem > > > Does it require tools.jar from the JDK on the classpath? > > On Mon, 24 May 2004 16:51:12 +0200, Amato Massimiliano (TLAB) > <[EMAIL PROTECTED]> wrote: > > > > Hello, > > > > I am trying to write a plugin for workzen. I built an ant script that works > > perfectly but when i tried to convert it into a plugin it failed. > > > > It looks like it is a classpath problem but i don't know exactly what to do.. > > > > Here's the output of my execution and the plugin.jelly file > > > > <?xml version="1.0"?> > > > > <project > > xmlns:j="jelly:core" > > xmlns:jelxml="jelly:xml" > > xmlns:jelant="jelly:ant" > > xmlns:maven="jelly:maven" > > xmlns:m="maven"> > > > > <goal name="test" description="Generate Delegator Classes"> > > > > <path id="classpath"> > > <path refid="maven.dependency.classpath"/> > > <pathelement path="${plugin.getDependencyPath('dom4j')}"/> > > <pathelement path="${plugin.getDependencyPath('log4j')}"/> > > <pathelement path="${plugin.getDependencyPath('workzen+xit')}"/> > > <pathelement path="${plugin.getDependencyPath('workzen+common')}"/> > > </path> > > > > <taskdef name="xml2bean" classname="workzen.xit.ant.Xml2BeanTask"> > > <classpath> > > <pathelement > > path="${plugin.getDependencyPath('workzen+xit')}"/> > > </classpath> > > </taskdef> > > > > <mkdir dir="./work/fred/output1"/> > > <xml2bean > > Template = "/${basedir}/src/conf/pojo/control.vm" > > InputUrl = "/${basedir}/src/conf/pojo/bean.xml" > > OutputDir = "./work/fred/output1"> > > <classpath refid="classpath"/> > > </xml2bean> > > </goal> > > > > </project> > > > > And here's the output > > __ __ > > | \/ |__ _Apache__ ___ > > | |\/| / _` \ V / -_) ' \ ~ intelligent projects ~ > > |_| |_\__,_|\_/\___|_||_| v. 1.0-rc1-SNAPSHOT > > > > 0 [main] INFO workzen.xit.Engine - input connector: > > workzen.xit.module.xml2bean.connector.Xml2BeanConnector > > 0 [main] INFO workzen.xit.connector.XmlConnector - input url: > > /D:/Projects/Misc/Generator/src/conf/pojo/bean.xml > > 16 [main] INFO workzen.xit.connector.XmlConnector - output url: null > > 328 [main] DEBUG workzen.xit.module.xml2bean.util.XmlLoader - > > package:com.workzen.xit.module.xml2bean.test > > 344 [main] DEBUG workzen.xit.module.xml2bean.util.XmlLoader - bean name:TypeBean > > 359 [main] DEBUG workzen.xit.module.xml2bean.util.XmlLoader - fit size: 15 > > 359 [main] DEBUG workzen.xit.module.xml2bean.util.XmlLoader - field name:pKey > > 359 [main] DEBUG workzen.xit.module.xml2bean.util.XmlLoader - isprimary:true > > testa: > > [xml2bean] [ERROR] java.lang.NoClassDefFoundError: > > sun/reflect/ConstructorAccessorImpl > > BUILD SUCCESSFUL > > Total time: 6 seconds > > Finished at: Mon May 24 16:43:17 CEST 2004 > > > > Any help would be great > > Max > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
