[ 
http://issues.apache.org/jira/browse/AXIS2-668?page=comments#action_12378448 ] 

Davanum Srinivas commented on AXIS2-668:
----------------------------------------


On 5/6/06, Rob Henley <[EMAIL PROTECTED]> wrote:

    My build.xml contains
     
        <target name="axis-init">
          <taskdef name="codegen"
                   classname="org.apache.axis2.tool.ant.AntCodegenTask"
                   classpath="${axis.dist.classpath}"/>
        </target>
     
        <target name="wsdl2java" depends="axis-init">
          <codegen wsdlfilename="my.wsdl"
                   language="java"
                   synconly="true"
                   serverside="true"
                   generateservicexml="true">
          </codegen>
        </target>
     
    where axis.dist.classpath contains all the jars in the axis2 lib directory.
     
    Running 'ant wsdl2java' I get an error 
"javax.xml.stream.FactoryConfigurationError: Provider 
com.bea.xml.stream.MXParserFactory not found".
     
    Via google I managed to find a couple of additional jars to supply missing 
classes: jsr173_1.0_ri.jar and jsr173_1.0_api.jar. Adding these to my global 
classpath fixes the problem.
     
    Question 1. Are the above jsr173 jars missing from the 1.0 distribution?
    Question 2. Is there a more ant-like way to control the classpath used when 
the codegen tool runs? I tried the following ...
     
          <codegen wsdlfilename="purchasing1.wsdl"
                   language="java"
                   synconly="true"
                   serverside="true"
                   generateservicexml="true">
             <classpath refid="axis.dist.classpath"/>
          </codegen>
    but that gives me a java.lang.ExceptionInInitializerError.
     
    Question 3. I'd like to be able to specify the xmlbeans data binding. What 
is the AntCodegenTask equivalent to the command line "--databinding-method 
xmlbeans"? This doesn't seem to be documented. I guessed it might be 
databindingname="xmlbeans", but when I add this to the codegen target I get the 
error "java.lang.RuntimeException: java.lang.reflect.InvocationTargetException".
     
    Many thanks
    Rob

> AntCodegenTask throws exception
> -------------------------------
>
>          Key: AXIS2-668
>          URL: http://issues.apache.org/jira/browse/AXIS2-668
>      Project: Apache Axis 2.0 (Axis2)
>         Type: Bug

>   Components: Tools
>     Versions: 1.0
>  Environment: axis2-1.0 svn 2005-05-04 (noon)
>     Reporter: Bryan Brouckaert
>  Attachments: build-test.xml, jars.txt
>
> The AntCodegenTask throws following error: 
> "javax.xml.stream.FactoryConfigurationError: Provider 
> com.bea.xml.stream.MXParserFactory not found"
> All jars of the Axis2 library are included in the class path.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to