users@jax-ws.java.net

Re: testing JAX-WS 2.0 mtom sample

From: Alberto Labarga <alberto.labarga_at_googlemail.com>
Date: Fri, 16 Jun 2006 09:27:17 +0100

Hi,

 I tried in another Tomcat installation and it works, so it is a
classpath problem, thanks very much for your help and sorry about the
bothering
 best regards
Alberto

On 15/06/06, Jitendra Kotamraju <Jitendra.Kotamraju_at_sun.com> wrote:
> Alberto Labarga wrote:
>
> > Hi,
> >
> > I generated the files using wsimport directly and with the ant goal,
> > and got the same files
> >
> > in the DefaultType.java I can see this anotation
> >
> > @XmlAccessorType(XmlAccessType.FIELD)
> > @XmlType(name = "DetailType", propOrder = {
> > "photo",
> > "image"
> > })
> >
> > which is probably the one generating the error, so maybe is the tomcat
> > which has not the corect libraries, I copied the jars in the
> > jaxws-ri/lib directory to the Tomcat shared/lib directory, should I
> > copy something else?
>
> That should be good enough. Once you remove the corresponding webapp and
> try redeploying it. I would also suggest removing all the jars from
> shared/lib and copy them again. Also make sure that tomcat is not
> picking up wrong jars.
>
> Jitu
>
> >
> > thank you very much for your help
> >
> > Alberto
> >
> > On 15/06/06, Jitendra Kotamraju <Jitendra.Kotamraju_at_sun.com> wrote:
> >
> >> I think XmlAccessorTyp.value is of type XmlAccessType not
> >> AccessType(earlier it used to be AccessType). I think there is some
> >> problem with classpath. Are you using JAX-WS 2.0 FCS ? You may need to
> >> generate the artifacts againg using wsimport/wsgen.
> >>
> >> https://jax-ws.dev.java.net/jax-ws-20-fcs/docs/mtom-swaref.html
> >>
> >> Jitu
> >>
> >> Alberto Labarga wrote:
> >>
> >> > Hi,
> >> >
> >> > I wanted to test the mtyom sample included with the JAX-WS 2.0 RI, I
> >> > run the and script, but when deploying in Tomcat (I copied the JAX-WS
> >> > libraries in the shared/lib as indicated) I got this error
> >> >
> >> > SEVERE: WSSERVLET11: failed to parse runtime descriptor:
> >> > java.lang.annotation.AnnotationTypeMismatchException: Incorrectly
> >> > typed data found for annotation element public abstract
> >> > javax.xml.bind.annotation.AccessType
> >> > javax.xml.bind.annotation.XmlAccessorType.value() (Found data of type
> >> > Ljavax/xml/bind/annotation/XmlAccessType;.FIELD)
> >> > java.lang.annotation.AnnotationTypeMismatchException: Incorrectly
> >> > typed data found for annotation element public abstract
> >> > javax.xml.bind.annotation.AccessType
> >> > javax.xml.bind.annotation.XmlAccessorType.value() (Found data of type
> >> > Ljavax/xml/bind/annotation/XmlAccessType;.FIELD)
> >> > at
> >> >
> >> sun.reflect.annotation.AnnotationTypeMismatchExceptionProxy.generateException(Unknown
> >>
> >> >
> >> > Source)
> >> >
> >> >
> >> > any idea? anywhere else where I can find more information on using
> >> > MTOM with JAX-WS? what I want is to be able to return a data handler
> >> > or input stream directly to the client
> >> >
> >> > Alberto
> >> >
> >> > ---------------------------------------------------------------------
> >> > To unsubscribe, e-mail: users-unsubscribe_at_jax-ws.dev.java.net
> >> > For additional commands, e-mail: users-help_at_jax-ws.dev.java.net
> >> >
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe_at_jax-ws.dev.java.net
> >> For additional commands, e-mail: users-help_at_jax-ws.dev.java.net
> >>
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe_at_jax-ws.dev.java.net
> > For additional commands, e-mail: users-help_at_jax-ws.dev.java.net
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jax-ws.dev.java.net
> For additional commands, e-mail: users-help_at_jax-ws.dev.java.net
>
>