ahinc711 opened a new issue, #62:
URL: https://github.com/apache/tomcat-jakartaee-migration/issues/62

   I'm using this tool with the `EE` profile to try converting some 
applications to Jakarta EE in the short term without uplifting all 
dependencies. I'm seeing runtime errors like the following, which suggest some 
properties aren't getting transformed:
   ```
   jakarta.xml.bind.JAXBException: property 
"com.sun.xml.bind.defaultNamespaceRemap" is not supported
   jakarta.xml.bind.JAXBException: property 
"com.sun.xml.internal.bind.defaultNamespaceRemap" is not supported
   ```
   
   The release notes of jaxb-ri indicate that the `com.sun.xml.bind` namespace 
was changed to `org.glassfish.jaxb`: 
https://eclipse-ee4j.github.io/jaxb-ri/4.0.5/docs/ch02.html#a-3-0-0
   
   So the `defaultNamespaceRemap` property name was changed:
   - 2.x: 
https://github.com/eclipse-ee4j/jaxb-ri/blob/2.3.9-RI/jaxb-ri/runtime/impl/src/main/java/com/sun/xml/bind/api/JAXBRIContext.java#L417
   - 4.x: 
https://github.com/eclipse-ee4j/jaxb-ri/blob/4.0.5-RI/jaxb-ri/runtime/impl/src/main/java/org/glassfish/jaxb/runtime/api/JAXBRIContext.java#L388
   
   Could the transformer be modified to transform references to that property?
   ```
   com.sun.xml.bind.defaultNamespaceRemap => 
org.glassfish.jaxb.defaultNamespaceRemap
   com.sun.xml.internal.bind.defaultNamespaceRemap => 
org.glassfish.jaxb.defaultNamespaceRemap
   ```
   
   And would it also make sense to account for other references in the 
`com.sun.xml.bind` namespace, such as 
`com.sun.xml.bind.v2.runtime.JAXBContextImpl`?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to