JaxMe ObjectFactory and JDK 1.6.0

2007-05-16 Thread Thomas Vandahl

Hi folks,

I'm using JaxMe 0.5.2 for different XML schemas im my applications 
running under Java 1.4.2. When switching to JDK 1.6.0, I get 
ClassCastExceptions in the constructor of ObjectFactory, probably 
because the JAXBContext returned from JAXBContext.newInstance() is not 
the JaxMe implemenation but the JDK integrated one. Is there any way to 
configure this? I found JaxMe to be significantly faster than JDK 6.0 
and would like to continue using it.


Bye, Thomas.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: JaxMe ObjectFactory and JDK 1.6.0

2007-05-16 Thread Jochen Wiedmann

Hi, Thomas,

On 5/16/07, Thomas Vandahl [EMAIL PROTECTED] wrote:


I'm using JaxMe 0.5.2 for different XML schemas im my applications
running under Java 1.4.2. When switching to JDK 1.6.0, I get
ClassCastExceptions in the constructor of ObjectFactory, probably
because the JAXBContext returned from JAXBContext.newInstance() is not
the JaxMe implemenation but the JDK integrated one. Is there any way to
configure this? I found JaxMe to be significantly faster than JDK 6.0
and would like to continue using it.


In theory, the actual JAXBContext is derived from the abstract class
JAXBContext. In other words, there should not be a problem, if the
parent class adds additional methods. Could you provide more details?
In particular, a stack trace?

Jochen

--
My cats know that I am a loser who goes out for hunting every day
without ever returning as much as a single mouse. Fortunately, I've
got a wife who's a real champ: She leaves the house and returns within
half an hour, carrying whole bags full of meal.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: JaxMe ObjectFactory and JDK 1.6.0

2007-05-16 Thread Thomas Vandahl

Reply didn't work correctly, so here we go again:

Jochen Wiedmann wrote:

In theory, the actual JAXBContext is derived from the abstract class
JAXBContext. In other words, there should not be a problem, if the
parent class adds additional methods. Could you provide more details?
In particular, a stack trace?


The important part of the stack trace is this:
---8---
java.lang.ClassCastException:
com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl cannot be cast to
org.apache.ws.jaxme.impl.JAXBContextImpl
at
de.tewisoft.someproject.jaxme.ObjectFactory.init(ObjectFactory.java:160)
...
---8---

The relevant part of the generated source of the ObjectFactory:
---8---
  public ObjectFactory() throws javax.xml.bind.JAXBException {
jaxbContext = (org.apache.ws.jaxme.impl.JAXBContextImpl)
javax.xml.bind.JAXBContext.newInstance(de.tewisoft.someproject.jaxme);
  }
---8---

Bye, Thomas.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]