S
seppo
Hi,
I'm using the JAXB -libraries to creat XML -documents. My development
environment is Java 1.4.2_08, Java Web Services Development Kit 1.5 and
Eclipse 3.0. I can create an XML document without any problems if I run my
code in Eclipse environment. But when I pack my application to JAR -package
and try to run it by -jar option it gives an error while marshalling
Exception in thread "main" java.lang.NoClassDefFoundError:
com/sun/msv/datatype/xsd/DoubleType at
com.sun.xml.bind.DatatypeConverterImpl.printDouble(DatatypeConverterImpl.jav
a:304)
at
javax.xml.bind.DatatypeConverter.printDouble(DatatypeConverter.java:453)
at
prtpi.jaxb.impl.TRTDataImpl.serializeAttributes(TRTDataImpl.java:80)
at prtpi.jaxb.impl.TrtDataImpl.serializeBody(TrtDataImpl.java:41)
at
prtpi.jaxb.impl.runtime.SAXMarshaller.childAsBody(SAXMarshaller.java:391)
at
prtpi.jaxb.impl.runtime.MarshallerImpl.write(MarshallerImpl.java:171)
at
prtpi.jaxb.impl.runtime.MarshallerImpl.marshal(MarshallerImpl.java:144)
at
javax.xml.bind.helpers.AbstractMarshallerImpl.marshal(AbstractMarshallerImpl
..java:73)
at jaxb_testi.SchemaTesti.createBusAtDoc(SchemaTesti.java:135)
at jaxb_testi.SchemaTesti.main(SchemaTesti.java:37)
jaxb_testi.SchemaTesti is my own class and prtpi.jaxb packages are created
by jaxb -tools.
Any idea what is wrong in my environment?
I'm using the JAXB -libraries to creat XML -documents. My development
environment is Java 1.4.2_08, Java Web Services Development Kit 1.5 and
Eclipse 3.0. I can create an XML document without any problems if I run my
code in Eclipse environment. But when I pack my application to JAR -package
and try to run it by -jar option it gives an error while marshalling
Exception in thread "main" java.lang.NoClassDefFoundError:
com/sun/msv/datatype/xsd/DoubleType at
com.sun.xml.bind.DatatypeConverterImpl.printDouble(DatatypeConverterImpl.jav
a:304)
at
javax.xml.bind.DatatypeConverter.printDouble(DatatypeConverter.java:453)
at
prtpi.jaxb.impl.TRTDataImpl.serializeAttributes(TRTDataImpl.java:80)
at prtpi.jaxb.impl.TrtDataImpl.serializeBody(TrtDataImpl.java:41)
at
prtpi.jaxb.impl.runtime.SAXMarshaller.childAsBody(SAXMarshaller.java:391)
at
prtpi.jaxb.impl.runtime.MarshallerImpl.write(MarshallerImpl.java:171)
at
prtpi.jaxb.impl.runtime.MarshallerImpl.marshal(MarshallerImpl.java:144)
at
javax.xml.bind.helpers.AbstractMarshallerImpl.marshal(AbstractMarshallerImpl
..java:73)
at jaxb_testi.SchemaTesti.createBusAtDoc(SchemaTesti.java:135)
at jaxb_testi.SchemaTesti.main(SchemaTesti.java:37)
jaxb_testi.SchemaTesti is my own class and prtpi.jaxb packages are created
by jaxb -tools.
Any idea what is wrong in my environment?