users@jaxb.java.net

Re: Unmarshall not working after compilation via ant javac

From: Wolfgang Laun <wolfgang.laun_at_gmail.com>
Date: Tue, 16 Jun 2009 16:47:13 +0200

Are you generating Java classes from an XML schema? Any differences in the
generated sources?

There is also a good chance that you are using different jaxb runtime
libraries.

-W


On 6/16/09, Andrew Mansfield <AMansfie_at_globeop.com> wrote:
>
> Hi,
>
> I have an odd problem.
>
> I have a collection of objects that are loosely coupled using a TypeAdapter
> and an Interface. The collection can contain any type of object but they all
> must inherit from the super class that contains the TypeAdpater. I use
> xsi:type= etc. to define the actual implementation via the xml. All objects
> marshall and unmarshall perfectly apart from one type. This single object
> implementation is also a web service definition and contains the annotations
> for this i.e. @WebService, @WebMethod etc.
>
> The strange thing is when I marshal and unmarshall when running locally via
> my IDE it works fine. This is using the IDE compiled class files in my local
> bin directory. When I compile the same code via the ant Javac task and try
> and run the same example it cannot unmarshall the xml ???
>
> Has anyone come across this before?
>
> Regards,
> Andy
>
>
>
> ------------------------------
> This email with all information contained herein or attached hereto may
> contain confidential and/or privileged information intended for the
> addressee(s) only. If you have received this email in error, please contact
> the sender and immediately delete this email in its entirety and any
> attachments thereto.(y)
>
>