Hi Andreas,
Meenwhile I changed the tactic and I am generating the xsd from java and I
have also the jaxb.index file. I took the jar with datatypes I putted
everywhere in axis2\web-inf\lib in axis2\web-inf\classes hopping that it is a
classpath issue and I will fix it that way but no success. I am getting the
same exception.
Do you have some advice?
Thank you,
Virgil
----- Original Message ----
From: Andreas Veithen <[EMAIL PROTECTED]>
To: [email protected]
Sent: Saturday, January 12, 2008 4:57:01 PM
Subject: Re: Exception "doesnt contain ObjectFactory.class or jaxb.index"
Virgil,
You are right. Only the ObjectFactory class is generated in XSD->Java
mode. The file jaxb.index is only used when in Java->XSD mode and you
don't need it.
Andreas
On 10 Jan 2008, at 20:49, Trasca Virgil wrote:
> Hi Andreas,
>
> Thanks for help. I am generating jaxb2 code with XJC ant task.
> This is generating ObjectFactory.java but not jaxb.index file. Is
> this file from jaxb2 or it is from old jaxb1? If I am googling for
> this file I get so few references and no clear documentation for
> jaxb.index.
>
> I putted the generated classes including ObjectFactory.java as a jar
> in WEB-INF\lib folder of the Axis2 web-app in order to be in the
> classpath but still the same error. What do you think I am doing
> wrong?
>
> Thanks,
> Virgil
>
> ----- Original Message ----
> From: Andreas Veithen <[EMAIL PROTECTED]>
> To: [email protected]
> Sent: Thursday, January 10, 2008 8:53:46 PM
> Subject: Re: Exception "doesnt contain ObjectFactory.class or
> jaxb.index"
>
>
> Virgil,
>
> Both the ObjectFactory class and the jaxb.index file are generated by
> JAXB 2. They are required by JAXB to load the generated classes at
> runtime. So, the message basically tells you that the generated
> classes are not available in the classpath.
>
> Andreas
>
> On 10 Jan 2008, at 19:33, Trasca Virgil wrote:
>
>> Hello,
>>
>> I have a service which is exposing some classes which are mapped
>
>> to an external xml file with jaxb2. I want to use jaxb2 for getting/
>> writting values to my xml but when I send data on http for
>> webservice I want to use the axis2 adb binding. My method that is
>> exposing xml with jaxb2 is working outside axis2.
>>
>> But when I deploy this method as a web service and I call the web
>> service I get "javax.xml.bind.JAXBException:
>> "burster.generated.jaxb2" doesnt contain ObjectFactory.class or
>> jaxb.index".
>>
>> What is this exception? What is jaxb.index? I want to use ADB as
>> binding over the htpp.
>>
>> Thank you,
>> Virgil
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]