[ https://issues.apache.org/jira/browse/CXF-2722?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniel Kulp resolved CXF-2722. ------------------------------ Resolution: Won't Fix Fix Version/s: Invalid Unfortunately, this is completely per spec and if you run the reference implementation wsimport on it, it generates the same structure. The spec clearly maps out how the namespaces are mapped to package names and does not allow to map it in some other form without user interaction. When this occurs, you would need to either use a jaxws/jaxb customization file to remap the package name or use the -p parameter to map the namespace to a new package name. > 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 > Fix For: Invalid > > > 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.