Skip to Content
author's profile photo Former Member
Former Member

Java Mapping using JAXB

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Sep 20, 2007 at 05:05 PM

    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



    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.