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 "Alexander Davis (Jira)" <ji...@apache.org> on 2020/11/04 00:45:00 UTC
[jira] [Updated] (AXIS2-5987) Cannot compile proxy classes built by
wsdl2java
[ https://issues.apache.org/jira/browse/AXIS2-5987?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alexander Davis updated AXIS2-5987:
-----------------------------------
Description:
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:
__service cannot be resolved to a variable (in the generated stub.java file)_
__serviceClient cannot be resolved to a variable (in the generated stub.java file)_
_org.apache.axiom.soap.SOAP12Constants cannot be resolved to a variable (in the generated stub.java file)_
_org.apache.xmlbeans.impl.values.XmlObjectBase cannot be resolved to a variable AddDocumentImpl.java (in the generated *Impl.java files)_
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?
was:
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 classpath, but I still get tons of errors from the proxy classes, such as:
__service cannot be resolved to a variable (in the generated stub.java file)_
__serviceClient cannot be resolved to a variable (in the generated stub.java file)_
_org.apache.axiom.soap.SOAP12Constants cannot be resolved to a variable (in the generated stub.java file)_
_org.apache.xmlbeans.impl.values.XmlObjectBase cannot be resolved to a variable AddDocumentImpl.java (in the generated *Impl.java files)_
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?
> 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:
> __service cannot be resolved to a variable (in the generated stub.java file)_
> __serviceClient cannot be resolved to a variable (in the generated stub.java file)_
> _org.apache.axiom.soap.SOAP12Constants cannot be resolved to a variable (in the generated stub.java file)_
> _org.apache.xmlbeans.impl.values.XmlObjectBase cannot be resolved to a variable AddDocumentImpl.java (in the generated *Impl.java files)_
> 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: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org