You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Bryan Brouckaert (JIRA)" <ji...@apache.org> on 2006/05/04 17:05:22 UTC

[jira] Created: (AXIS2-668) AntCodegenTask throws exception

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


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


[jira] Commented: (AXIS2-668) AntCodegenTask throws exception

Posted by "Kent Tong (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-668?page=comments#action_12378201 ] 

Kent Tong commented on AXIS2-668:
---------------------------------

The verbose output from Ant shows the stack trace below:

BUILD FAILED
C:\Books\DWSAA\v20\workspace\FooService\build.xml:22: org.apache.axis2.wsdl.codegen.CodeGenerationException: org.apache.axis2.wsdl.codegen.CodeGenerationException: java.lang.RuntimeException: WSDL writing failed!
	at org.apache.axis2.tool.ant.AntCodegenTask.execute(AntCodegenTask.java:241)
	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
	at org.apache.tools.ant.Task.perform(Task.java:364)
	at org.apache.tools.ant.Target.execute(Target.java:341)
	at org.apache.tools.ant.Target.performTasks(Target.java:369)
	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
	at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
	at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
	at org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
	at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
	at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)
	at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)
Caused by: org.apache.axis2.wsdl.codegen.CodeGenerationException: org.apache.axis2.wsdl.codegen.CodeGenerationException: java.lang.RuntimeException: WSDL writing failed!
	at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:185)
	at org.apache.axis2.tool.ant.AntCodegenTask.execute(AntCodegenTask.java:239)
	... 11 more
Caused by: org.apache.axis2.wsdl.codegen.CodeGenerationException: java.lang.RuntimeException: WSDL writing failed!
	at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitSkeleton(AxisServiceBasedMultiLanguageEmitter.java:644)
	at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:168)
	... 12 more
Caused by: java.lang.RuntimeException: WSDL writing failed!
	at org.apache.axis2.wsdl.codegen.writer.WSDLWriter.writeWSDL(WSDLWriter.java:45)
	at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.writeWSDLFiles(AxisServiceBasedMultiLanguageEmitter.java:740)
	at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitSkeletonService(AxisServiceBasedMultiLanguageEmitter.java:706)
	at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitSkeleton(AxisServiceBasedMultiLanguageEmitter.java:642)
	... 13 more
Caused by: org.apache.axis2.AxisFault: com.ctc.wstx.stax.WstxInputFactory; nested exception is: 
	java.lang.ClassCastException: com.ctc.wstx.stax.WstxInputFactory
	at org.apache.axis2.description.AxisService.getWSDL(AxisService.java:556)
	at org.apache.axis2.description.AxisService.printWSDL(AxisService.java:544)
	at org.apache.axis2.wsdl.codegen.writer.WSDLWriter.writeWSDL(WSDLWriter.java:40)
	... 16 more
Caused by: java.lang.ClassCastException: com.ctc.wstx.stax.WstxInputFactory
	at javax.xml.stream.XMLInputFactory.newInstance(XMLInputFactory.java:136)
	at org.apache.axis2.description.AxisService2OM.generateOM(AxisService2OM.java:148)
	at org.apache.axis2.description.AxisService.getWSDL(AxisService.java:551)
	... 18 more
--- Nested Exception ---
org.apache.axis2.wsdl.codegen.CodeGenerationException: org.apache.axis2.wsdl.codegen.CodeGenerationException: java.lang.RuntimeException: WSDL writing failed!
	at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:185)
	at org.apache.axis2.tool.ant.AntCodegenTask.execute(AntCodegenTask.java:239)
	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
	at org.apache.tools.ant.Task.perform(Task.java:364)
	at org.apache.tools.ant.Target.execute(Target.java:341)
	at org.apache.tools.ant.Target.performTasks(Target.java:369)
	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
	at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
	at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
	at org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
	at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
	at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)
	at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)
Caused by: org.apache.axis2.wsdl.codegen.CodeGenerationException: java.lang.RuntimeException: WSDL writing failed!
	at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitSkeleton(AxisServiceBasedMultiLanguageEmitter.java:644)
	at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:168)
	... 12 more
Caused by: java.lang.RuntimeException: WSDL writing failed!
	at org.apache.axis2.wsdl.codegen.writer.WSDLWriter.writeWSDL(WSDLWriter.java:45)
	at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.writeWSDLFiles(AxisServiceBasedMultiLanguageEmitter.java:740)
	at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitSkeletonService(AxisServiceBasedMultiLanguageEmitter.java:706)
	at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitSkeleton(AxisServiceBasedMultiLanguageEmitter.java:642)
	... 13 more
Caused by: org.apache.axis2.AxisFault: com.ctc.wstx.stax.WstxInputFactory; nested exception is: 
	java.lang.ClassCastException: com.ctc.wstx.stax.WstxInputFactory
	at org.apache.axis2.description.AxisService.getWSDL(AxisService.java:556)
	at org.apache.axis2.description.AxisService.printWSDL(AxisService.java:544)
	at org.apache.axis2.wsdl.codegen.writer.WSDLWriter.writeWSDL(WSDLWriter.java:40)
	... 16 more
Caused by: java.lang.ClassCastException: com.ctc.wstx.stax.WstxInputFactory
	at javax.xml.stream.XMLInputFactory.newInstance(XMLInputFactory.java:136)
	at org.apache.axis2.description.AxisService2OM.generateOM(AxisService2OM.java:148)
	at org.apache.axis2.description.AxisService.getWSDL(AxisService.java:551)
	... 18 more

The offending line is in AxisService2OM:

                XMLInputFactory xmlInputFactory = XMLInputFactory.newInstance();

This is saying com.ctc.wstx.stax.WstxInputFactory is not an XMLInputFactory. Very weird! Sounds like classloader issues.


> 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
>
> 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


[jira] Commented: (AXIS2-668) AntCodegenTask throws exception

Posted by "Bryan Brouckaert (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-668?page=comments#action_12378377 ] 

Bryan Brouckaert commented on AXIS2-668:
----------------------------------------

The JARS included are the jars in the lib directory of AXIS2 (I re-tested with the release).

Here is the list:
annogen-0.1.0.jar
axiom-api-1.0.jar
axiom-dom-1.0.jar
axiom-impl-1.0.jar
axis2-adb-1.0.jar
axis2-codegen-1.0.jar
axis2-jibx-1.0.jar
axis2-kernel-1.0.jar
axis2-tools-1.0.jar
axis2-xmlbeans-1.0.jar
backport-util-concurrent-2.1.jar
commons-codec-1.3.jar
commons-fileupload-1.0.jar
commons-httpclient-3.0.jar
commons-logging-1.0.4.jar
geronimo-spec-activation-1.0.2-rc4.jar
geronimo-spec-javamail-1.3.1-rc5.jar
geronimo-spec-jms-1.1-rc4.jar
jars.txt
jaxen-1.1-beta-8.jar
jaxme2-0.5.1.jar
jaxmeapi-0.5.1.jar
jaxmejs-0.5.1.jar
jaxmexs-0.5.1.jar
log4j-1.2.13.jar
neethi-1.0.1.jar
servletapi-2.3.jar
stax-api-1.0.jar
stax-utils-20060501.jar
wsdl4j-1.5.2.jar
wstx-asl-2.9.3.jar
xbean-2.1.0.jar
XmlSchema-1.0.2.jar

> 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


[jira] Assigned: (AXIS2-668) AntCodegenTask throws exception

Posted by "Deepal Jayasinghe (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2-668?page=all ]

Deepal Jayasinghe reassigned AXIS2-668:
---------------------------------------

    Assign To: Ajith Harshana Ranabahu

> 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
>     Assignee: Ajith Harshana Ranabahu
>  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


[jira] Commented: (AXIS2-668) AntCodegenTask throws exception

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-668?page=comments#action_12377946 ] 

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

Could you please post a list of those jars? does it have wstx-asl-???.jar

> 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
>
> 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


[jira] Resolved: (AXIS2-668) AntCodegenTask throws exception

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2-668?page=all ]
     
Davanum Srinivas resolved AXIS2-668:
------------------------------------

    Resolution: Fixed

Fixed in 413082 2 days back

http://marc.theaimsgroup.com/?l=axis-cvs&m=114986900104751&w=2

thanks,
dims

> 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
>     Assignee: Ajith Harshana Ranabahu
>  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


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Commented: (AXIS2-668) AntCodegenTask throws exception

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-668?page=comments#action_12378448 ] 

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


On 5/6/06, Rob Henley <ro...@freeuk.com> 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


[jira] Commented: (AXIS2-668) AntCodegenTask throws exception

Posted by "Kent Tong (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-668?page=comments#action_12378289 ] 

Kent Tong commented on AXIS2-668:
---------------------------------

Solved the problem by copying stax-api.jar and wstx-asl.jar to the endorsed directory. Really don't understand why this is only required for Ant but not for the Axis client nor the Axis server.

> 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
>
> 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


[jira] Commented: (AXIS2-668) AntCodegenTask throws exception

Posted by "Christopher Blunck (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-668?page=comments#action_12415784 ] 

Christopher Blunck commented on AXIS2-668:
------------------------------------------

I wanted to post a follow-up comment to this bug.

This is my environment:
  - Eclipse 3.1
  - Ant 1.6.5 (part of Eclipse)
  - Axis2 v1.0
  - JSR 173 API JAR
  - JSR 173 Sun RI
  - Using the Codegen ant task

I, like everyone above, receive the "javax.xml.stream.FactoryConfigurationError: Provider com.bea.xml.stream.MXParserFactory not found" error message when running a WSDL to Java conversion.

I copied BOTH the sjsxp.jar AND jsr173_1.0_api.jar (PS - *LOVE* the name of that JAR) to the "endorsed" area of my Java install.  Since I'm under OSX this is:  /Library/Java/Home/lib/endorsed

It'd be great if I didn't need to make a modification to my JDK installation directory in order to run the Codegen task.


> 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
>     Assignee: Ajith Harshana Ranabahu
>  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


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Commented: (AXIS2-668) AntCodegenTask throws exception

Posted by "Kent Tong (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-668?page=comments#action_12378199 ] 

Kent Tong commented on AXIS2-668:
---------------------------------

Adding a <classpath> to <codegen> solves the problem:

		<codegen 
			wsdlfilename="FooService.wsdl"
			serverside="true"
			generateservicexml="true"
			output="out2">
			<classpath>
				<fileset dir="c:/axis2/lib">
					<include name="**/*.jar"/>
					<exclude name="commons-logging*.jar"/>
				</fileset>
			</classpath>
		</codegen>

However, now it prints an error of:

org.apache.axis2.wsdl.codegen.CodeGenerationException: org.apache.axis2.wsdl.codegen.CodeGenerationException: java.lang.RuntimeException: WSDL writing failed!


> 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
>
> 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


[jira] Updated: (AXIS2-668) AntCodegenTask throws exception

Posted by "Bryan Brouckaert (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2-668?page=all ]

Bryan Brouckaert updated AXIS2-668:
-----------------------------------

    Attachment: build-test.xml

Example of ant build file

> 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
>
> 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


[jira] Commented: (AXIS2-668) AntCodegenTask throws exception

Posted by "Christopher Blunck (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-668?page=comments#action_12415791 ] 

Christopher Blunck commented on AXIS2-668:
------------------------------------------

I found a semi-workable (well, nonoffensive) workaround for Eclipse users.

I removed the jsr173_1.0_api.jar and sjsxp.jar from the endorsed directory of my JDK (/Library/Java/Home/lib/endorsed).  I then set up a custom builder in Eclipse for my project by performing the following steps:

1.) Right click on your project name in the Navigator, and left click on Properties.
2.) Left click on Builders in the navigation panel on the left.
3.) Uncheck all the existing builders.  Ignore the warning dialog windows Eclipse raises.
4.) Click the "New" button to create a new builder.
5.) Click on the Ant icon to signfiy you want to create a builder based on an Ant file.
6.) Name the builder.  I chose "Axis2 Builder"
7.) In the Buildfile section, click on "Browse Workspace" and navigate to your build.xml
8.) Ignore the Base Directory property.
9.) Click the Refresh tab, and check the "Refresh resources upon completion" checkbox
10.) Click the Classpath tab, click on "User Entries," and click the "Add JARs..." button on the right.
11.) Navigate to the jsr173_1.0_api.jar and click Choose.  Do the same for sjsxp.jar.
12.) Click ok to create the builder and return to the Builders dialog window.  Make sure your new builder is selected.
13.) Click ok to dismiss the properties window, and click the Projects->Build menu.

Note: if you don't include the sjsxp.jar and jsr173_1.0_api.jar inside of your project you will want to click on the "Add External JARs..." button in step #11.

This appears to have the same effect as placing the two StAX related JARs in your endorsed directory.  When I run the codegen process in Ant via Eclipse the classes are generated properly.  When I run the codegen process in Ant OUTSIDE of Eclipse I puke with the com.bea.... message.

Hope this gets fixed sometime soon... 


-c 


> 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
>     Assignee: Ajith Harshana Ranabahu
>  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


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Updated: (AXIS2-668) AntCodegenTask throws exception

Posted by "Bryan Brouckaert (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2-668?page=all ]

Bryan Brouckaert updated AXIS2-668:
-----------------------------------

    Attachment: jars.txt

> 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


[jira] Commented: (AXIS2-668) AntCodegenTask throws exception

Posted by "Kent Tong (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-668?page=comments#action_12378198 ] 

Kent Tong commented on AXIS2-668:
---------------------------------

I am also having this problem (Axis2 1.0 RC4). This should have nothing to do with wstx.jar because com.bea.xml.stream.MXParserFactory is a class in the RI of STAX, not in the Woodstox open source implementation which is bundled with Axis2.

Another interesting point is that I can run the main() method in WSDL2Code just fine. It means there is some different between the WSDL2Code and the AntCodegenTask making the former use Woodstox but the latter use the RI implementation.

> 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
>
> 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