So I'm trying to use the JAXB included in 1.6, but I get this error:
Caused by: javax.xml.bind.JAXBException: Provider
com.sun.xml.bind.v2.ContextFactory not found
- with linked exception:
[java.lang.ClassNotFoundException: com.sun.xml.bind.v2.ContextFactory]
at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:151)
at javax.xml.bind.ContextFinder.find(ContextFinder.java:298)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:372)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:337)
at com.xerox.amazonws.common.JAXBuddy.getUnmarshaller(JAXBuddy.java:
63)
at
com.xerox.amazonws.common.JAXBuddy.deserializeXMLStream(JAXBuddy.java:
49)
at
com.xerox.amazonws.sqs.QueueService.listMessageQueues(QueueService.java:
147)
Doesn't really make sense why since supposedly it should cleanly
upgrade unless there's some JAXB specific code in Typica, but I'm not
seeing it in JAXBuddy.java.
Any ideas?
David
typica works great with jdk1.6 but when compiling with that
version I got this error:
BUILD FAILED
/home/mo/typicasvn/build.xml:43: java.lang.LinkageError: JAXB 2.0 API
is being loaded from the bootstrap classloader, but this RI (from
jar:file:/home/mo/typicasvn/lib/jaxb-impl.jar!/com/sun/xml/bind/v2/
model/impl/ModelBuilder.class) needs 2.1 API. Use the endorsed
directory mechanism to place jaxb-api.jar in the bootstrap
classloader. (See http://java.sun.com/j2se/1.5.0/docs/guide/standards/)
I didn´t want to fuzz around with endorsed.dirs etc. so I compiled
with jdk1.5 - worked fine
It looks like JavaSE 6 uses a version of JAXB that is very close to
the 2.0 version that I've been using. I need to download JavaSE 6 and
do some testing.
David
On Jun 12, 8:38 pm, xnixnix <xnix...@gmail.com> wrote:
> Just for the record,
>
> typica works great with jdk1.6 but when compiling with that
> version I got this error:
>
> BUILD FAILED
> /home/mo/typicasvn/build.xml:43: java.lang.LinkageError: JAXB 2.0 API
> is being loaded from the bootstrap classloader, but this RI (from
> jar:file:/home/mo/typicasvn/lib/jaxb-impl.jar!/com/sun/xml/bind/v2/
> model/impl/ModelBuilder.class) needs 2.1 API. Use the endorsed
> directory mechanism to place jaxb-api.jar in the bootstrap
> classloader. (Seehttp://java.sun.com/j2se/1.5.0/docs/guide/standards/)
> > > > at javax.xml.bind.JAXBContext.newInstance (JAXBContext.java:337)
David
On Jun 13, 1:40 am, "Travis Reeder" <tree...@gmail.com> wrote:
> I had the same problem as xnixnix when trying to build the project with 1.6,
> and I tried putting the jaxb-api.jar in the jdk endorsed directory which
> helps getting it to build. But that caused other problems (can't remember
> what, I believe a different project??) so I had to remove the jar from the
> endorsed dir (lost a lot of hair that day trying to figure out that
> problem)... but then I couldn't build Typica again. So I started playing
> with the jars in /lib and deleted the jaxb ones, but then you get this
> problem:
>
> ...\build.xml:22: taskdef class com.sun.tools.xjc.XJCTask cannot be found
>
> It appears that this task isn't in the JDK 1.6 jaxb. Definitely some chicken
> and egg problems going on...
>
> Travis
>
> On 6/12/07, dkavan...@gmail.com <dkavan...@gmail.com> wrote:
>
>
>
> > I was just reading this over;
>
> >https://jaxb.dev.java.net/guide/Migrating_JAXB_2_0_applications_to_Ja...
David
David
OK, I got things compiling in JavaSE 6.
Download JAXB 2.1.3,
- remove all but the commons-logging.jar from the typica lib dir
- put the jaxb-xjc.jar in the typica lib dir
- put the activation.jar, jaxb-api.jar , jaxb-impl.jar and
It seems like JAXB was just becoming a pain for those who build the
library out of subversion. Why do people need to do that? Is there
something you are adding? Is there anything that I can add to typica
to avoid that? Are the releases frequent enough?
David
On Jun 19, 2:24 pm, "Travis Reeder" <tree...@gmail.com> wrote:
> What is JAXB used for anyways? Maybe you could just replace it with a
> simpler solution like XStream:http://xstream.codehaus.org/
>
> Travis
>
> On 6/19/07, dkavan...@gmail.com <dkavan...@gmail.com> wrote:
>
>
>
> > OK, I got things compiling in JavaSE 6.
> > Download JAXB 2.1.3,
> > - remove all but the commons-logging.jar from the typica lib dir
> > - put the jaxb-xjc.jar in the typica lib dir
> > - put the activation.jar, jaxb-api.jar, jaxb-impl.jar and
It seems like JAXB was just becoming a pain for those who build the
library out of subversion. Why do people need to do that? Is there
something you are adding? Is there anything that I can add to typica
to avoid that? Are the releases frequent enough?
David
On Jun 19, 2:24 pm, "Travis Reeder" < tree...@gmail.com> wrote:
> What is JAXB used for anyways? Maybe you could just replace it with a
> simpler solution like XStream:http://xstream.codehaus.org/
>
> Travis
>
> On 6/19/07, dkavan...@gmail.com <dkavan...@gmail.com> wrote:
>
>
>
> > OK, I got things compiling in JavaSE 6.
> > Download JAXB 2.1.3,
> > - remove all but the commons-logging.jar from the typica lib dir
> > - put the jaxb-xjc.jar in the typica lib dir
> > - put the activation.jar, jaxb-api.jar , jaxb-impl.jar and