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]

Reply via email to