users@jaxb.java.net

Re: Re: Unmarshall not working after compilation via ant javac

From: Wolfgang Laun <wolfgang.laun_at_gmail.com>
Date: Wed, 17 Jun 2009 08:59:18 +0200

Then please provide the sample code, suitably reduced, and the XML so that
one might reproduce the problem. Also, in what way does it not unmarshal?
-W


On 6/16/09, Andrew Mansfield <AMansfie_at_globeop.com> wrote:
>
> No, existing classes. Using xml / jaxb to configure my application.
> Using Java 1.6 so the runtime libraries s/b the same.
>
>
> ------------------------------
> *From:* Wolfgang Laun [mailto:wolfgang.laun_at_gmail.com]
> *Sent:* 16 June 2009 15:47
> *To:* users_at_jaxb.dev.java.net
> *Subject:* Re: Unmarshall not working after compilation via ant javac
>
>
> 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)
>>
>>
>
>
> ------------------------------
> 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)
>
>