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:22:47 +0100

Hi,

 I cleaned the Tomcat lib directory and installed the jars again,
deleted the deployed app, rebuilt the project and deployed, buit I got
the same problem,

I have seen the same problem in other forums, but no solution was given there

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6401988
http://forums.java.net/jive/thread.jspa?messageID=116763
http://forums.java.net/jive/thread.jspa?forumID=46&threadID=15711&messageID=117911
http://forum.builder.cz/read.php?14,1599245,1601739

 I will try in another Tomcat

thanks for your help

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
>
>