0 Replies Latest reply on May 6, 2014 5:56 AM by Amarnath RC

    Accessing JDK classes in wildfly

    Amarnath RC Newbie

      As I use docx4j library, I would like to use JAX-B classes from Jre 7 lib (rt.jar). I've created the following jboss-deployment-structure.xml and placed under EAR/Meta-Inf folder as per WildFly docs to access JDK classes. But its not working.


      <jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.1"> 



                       <system export="true">      


                                     <path name="com/sun/xml/bind"/>     







      Please validate the following

      a) Placing under EAR project / Meta-inf

      b) Is this structure correct for accessing JDK classes? - XML validation error is thrown


      cvc-complex-type.2.4.b: The content of element 'deployment' is not complete. One of



      "urn:jboss:deployment-structure:1.2":exclusions, "urn:jboss:deployment-structure:1.2":resources,




      is expected.




      Any help appreciated...