473,396 Members | 1,676 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

JAXB problem

1
I made a program with Eclipse that is using JAXB from JWSDP 2.0. Program runs ok in the Eclipse and builds jar package with all jsxb jars ok. Then I am trying to run the packet in dos-prompt it gives an error:

Starting to validate 120.xml
Exception in thread "main" java.lang.NoClassDefFoundError: javax/activation/Data
Source
at com.sun.xml.bind.v2.model.impl.RuntimeBuiltinLeafI nfoImpl.<clinit>(Ru
ntimeBuiltinLeafInfoImpl.java:172)
at com.sun.xml.bind.v2.model.impl.RuntimeTypeInfoSetI mpl.<init>(RuntimeT
ypeInfoSetImpl.java:25)
at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder .createTypeInfoSet(
RuntimeModelBuilder.java:78)
at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder .createTypeInfoSet(
RuntimeModelBuilder.java:41)
at com.sun.xml.bind.v2.model.impl.ModelBuilder.<init> (ModelBuilder.java:
97)
at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder .<init>(RuntimeMode
lBuilder.java:44)
at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTyp eInfoSet(JAXBContex
tImpl.java:320)
at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init> (JAXBContextImpl.ja
va:198)
at com.sun.xml.bind.v2.ContextFactory.createContext(C ontextFactory.java:
76)
at com.sun.xml.bind.v2.ContextFactory.createContext(C ontextFactory.java:
55)
at com.sun.xml.bind.v2.ContextFactory.createContext(C ontextFactory.java:
124)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknow n Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Un known Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at javax.xml.bind.ContextFinder.newInstance(ContextFi nder.java:132)
at javax.xml.bind.ContextFinder.find(ContextFinder.ja va:286)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext .java:358)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext .java:323)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext .java:244)
at Kissa.ValidateDocument(Kissa.java:18)
at Kala.main(Kala.java:7)


I am pretty sure that all jar's are in the jar-file.

If i try to compile the java-classes with javac in prompt i get an error that says that the version is wrong 48 / 49 blah blah, check the classpath and so on.

So, what i am doign wrong?
Oct 11 '07 #1
1 2807
JosAH
11,448 Expert 8TB
If i try to compile the java-classes with javac in prompt i get an error that says that the version is wrong 48 / 49 blah blah, check the classpath and so on.

So, what i am doign wrong?
Do what the compiler tells you to do: it definitely is a classpath and/or a path
problem: you're running a wrong version of the jvm and/or compiler.

kind regards,

Jos
Oct 11 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: jesper | last post by:
Hi I am currently following the tutorial from IBM (http://www-106.ibm.com/developerworks/xml/edu/x-dw-xjaxb-i.html) I have three problems at the moment. 1. It says else where that when the...
0
by: Mark | last post by:
I'm betting it me. Here is the simple schema I'm using: <?xml version="1.0"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"...
1
by: Sony Antony | last post by:
We have a situation wherin we should translate the incoming XML based on one schema to the outgoing XML that is based on another schema. Since both input and output are both XML, XSLT was the...
13
by: Christoph Brunner | last post by:
Hi, on the sun homepage i had submit to the bugparade a request for feature enhancement for the JAXB API. After a period of time sun called me to post my request to a newsgroup an get comments...
0
by: Brett Selleck | last post by:
We have an issue where the JAXB generated classes are creating an interface which references itself. The Schema is valid, and I have not seen this ran into before. The code is below. What is...
0
by: Mark | last post by:
I'm betting it me. Here is the simple schema I'm using: <?xml version="1.0"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"...
1
by: Sipayi | last post by:
'lo! Trying to use JAXB for my project. I did the following steps: a. Created xml/xsd/xjb, placed it under "com.foo.blah" b. xjc'd the xmls into "com.foo.blah.jaxb" c. Tried to unmarshal: --...
0
by: ciaran.mchale | last post by:
I used Google to find information about JAXB 2.0 and I ended up downloading a document called "The Java Architecture for XML Binding (JAXB) 2.0: Proposed Final Draft September 30, 2005". ...
0
by: mnsh | last post by:
Hello, I am new to JAXB. So I would like somebody to help me solve this problem. I have a class say Test which contains only a List which has some 6 to 7 user defined objects. I am able to...
0
by: malsh1358 | last post by:
Hi I need check required elements and attributes in JAXB java classes , if there are any value for them place it , otherwise place default value in xml file , because of it I upgrade JAXB2.0 to...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.