Showing results for 
Search instead for 
Did you mean: 

Java Mapping using JAXB

Former Member
0 Kudos

hi *, i am trying to implement a JavaMapping using JAXB.

during runtime i get a ClassNotFoundexception on javax.xml.bind.Element

i have tried adding the JAXB classes to my archive that i import - no success

i have tried referencing the JAXB classes in the MANIFEST.MF file like so:

Manifest-Version: 1.0
Class-Path: jaxb-api.jar  jaxb-impl.jar  jaxb-libs.jar  jax-qname.jar 
  namespace.jar  relaxngDatatype.jar  xsdlib.jar
Built-By: Daniel Koch

i would not like to import each JAXB archive individually.

please can someone assist me to solve my class-path problem.

Accepted Solutions (0)

Answers (1)

Answers (1)

Active Contributor
0 Kudos

Normally the importing of the .jar files in the Imported Archive does the trick. I am not sure why it doesn't work this way for you though.

If you do not want to maintain the .jar file in all name spaces then the simples solution is to create Software Component Dependencies. Create a Base SWCV and import the .jar file in the Imported Archive of this SWCV ( create a namespace as well).

In the SLD define a dependency for your other SWCV's on this Base SWCV. After doing this, import the SWCV's into the IR. ( the existing data will not be overwritten , just clear SLD cache and re import all SWCV's ). Now, you will see a BASIS object in your SWCV that will contain the Namespace and the IA from the Base SWCV . This way you need not manually import the .jar in every namespace but you are doing it at one SWCV