[
https://issues.apache.org/jira/browse/AXIS2-5987?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17225774#comment-17225774
]
Alexander Davis commented on AXIS2-5987:
----------------------------------------
Well, it did not work. Tried to run and got boot errors due to the missing JARs
(the two I excluded). So I started removing JARs one by one which seemed like
it would take forever. So I removed them all and started adding them one by one
until I got no build errors. Ended up with:
_C:\Tools\axis2-1.7.8\lib\axis2-metadata-1.7.8.jar_
_C:\Tools\axis2-1.7.8\lib\xml-resolver-1.2.jar_
_C:\Tools\axis2-1.7.8\lib\axis2-jaxws-1.7.8.jar_
_C:\Tools\axis2-1.7.8\lib\axis2-kernel-1.7.8.jar_
_C:\Tools\axis2-1.7.8\lib\xmlbeans-2.6.0.jar_
_C:\Tools\axis2-1.7.8\lib\axiom-api-1.2.20.jar_
_C:\Tools\axis2-1.7.8\lib\axis2-xmlbeans-1.7.8.jar_
Now, when I run it, I get this error:
_Error occurred during initialization of boot layer_
_java.lang.module.ResolutionException: Module axis2.jaxws contains package
org.apache.axis2.jaxws, module axis2.metadata exports package
org.apache.axis2.jaxws to axis2.jaxws_
No idea what is missing. At this point, I am just wondering if the Axis2 is
just not compatible with JDK 11, in which case, I'd rather spend time looking
for alternatives. [~robertlazarski], any ideas?
> Cannot compile proxy classes built by wsdl2java
> -----------------------------------------------
>
> Key: AXIS2-5987
> URL: https://issues.apache.org/jira/browse/AXIS2-5987
> Project: Axis2
> Issue Type: Bug
> Components: wsdl
> Affects Versions: 1.7.8, 1.7.9
> Environment: Windows 10, Eclipse 2020-09 (4.17.0), Adopt OpenJDK
> 11.0.8.10
> Reporter: Alexander Davis
> Priority: Major
>
> I am following the instructions at
> [https://axis.apache.org/axis2/java/core/docs/userguide-creatingclients-xmlbeans.html]
> to build proxy classes from a WSDL file. When I run wsdl2java, I get this
> error:
> _WARNING: An illegal reflective access operation has occurred_
> _WARNING: Illegal reflective access by
> org.apache.ws.commons.schema.utils.DOMUtil
> ([file:/C:/Tools/axis2-1.7.8/lib/xmlschema-core-2.2.1.jar|file:///C:/Tools/axis2-1.7.8/lib/xmlschema-core-2.2.1.jar])
> to method
> com.sun.org.apache.xerces.internal.dom.CoreDocumentImpl.getXmlEncoding()_
> _WARNING: Please consider reporting this to the maintainers of
> org.apache.ws.commons.schema.utils.DOMUtil_
> _WARNING: Use --illegal-access=warn to enable warnings of further illegal
> reflective access operations_
> _WARNING: All illegal access operations will be denied in a future release_
> But the proxy classes get generated nonetheless. I add all JARs from the
> axis2-1.7.8/lib folder under the project's module path, tried to build and
> got tons of errors from the proxy classes, such as:
> _The method parse(String) in the type AddDocument.Factory is not applicable
> for the arguments (XMLStreamReader)_
> _The method parse(String) in the type AddResponseDocument.Factory is not
> applicable for the arguments (XMLStreamReader)_
> Tons of similar errors in every _parse_ call in the generated stub class.
> Also tons of errors like this one:
> _The package javax.xml.stream is accessible from more than one module:
> geronimo.stax.api.1.0.spec, java.xml_
> I must use Axis2 1.7.8 (for compatibility with a third-party app), but I
> tried 1.7.9 just in case and got the same problem.
> Is there something I'm missing?
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]