WSDL to Java should not create package strucutre start with java.*
------------------------------------------------------------------
Key: CXF-2722
URL: https://issues.apache.org/jira/browse/CXF-2722
Project: CXF
Issue Type: Bug
Components: JAXB Databinding
Affects Versions: 2.2.6
Environment: Windows
Reporter: Balmiki
Hi,
I am trying to generated Java source code from wsdl path, But some of the
packages got created with java.* as starting folder. At Runtime, as per the
java class loader restriction, we can't have a java source code starts with
java.*. I got the following exception when trying to run the program.
java.lang.SecurityException: Prohibited package name: java.castle_ws
at java.lang.ClassLoader.preDefineClass(ClassLoader.java:479)
at java.lang.ClassLoader.defineClass(ClassLoader.java:614)
at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
is it abug in cxf or there is some way to avoid this ?
Regards
Balmiki
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.