cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Roelofsen, Roman" <Roman.Roelof...@iona.com>
Subject RE: problems with JaxWsServerFactoryBean / WS and JAXB annotations
Date Fri, 15 Jun 2007 10:27:31 GMT

A fresh checkout didn't help. I created an issue in JIRA:

https://issues.apache.org/jira/browse/CXF-736

Cheers,

Roman


> -----Original Message-----
> From: Willem Jiang [mailto:ning.jiang@iona.com]
> Sent: 15 June 2007 03:22
> To: cxf-dev@incubator.apache.org
> Subject: Re: problems with JaxWsServerFactoryBean / WS and JAXB
> annotations
> 
> 
> Hi Roman,
> 
> It may relate to the change of revision 546954.
> 
> Changed usage of fictious 
> http://www.w3.org/2005/08/addressing/wsdl namespace to the 
> 2005/02 version that actually existed as a WS-A standard.
> 
> This change will affect the 
> org.apache.cxf.ws.addressing.wsdl.package-info.class
> 
> Please update you trunk, and do a clean build all, I think 
> the error will go way :)
> 
> 
> Cheers,
> Willem. 
> 
> 
> Roelofsen, Roman wrote:
> > Hi all,
> >
> > a simple example which I used for weeks now, doesn't work 
> with the latest SVN version of CXF.
> >
> > Any ideas?
> >
> > Best regards,
> >
> > Roman
> >
> >
> >
> > Service Interface
> > -----------------------
> > @WebService(serviceName = "HelloService")
> > public interface Hello {
> >     public DataBean sayHello(DataBean dataBean);
> > }
> >
> >
> > Implementation
> > -----------------------
> > @WebService(endpointInterface = "test.Hello")
> > public class HelloImpl implements Hello {
> >     public DataBean sayHello(DataBean dataBean) {
> >         DataBean db = new DataBean();
> >         db.setDataOne("One " + dataBean.getDataOne());
> >         db.setDataTwo("Two " + dataBean.getDataTwo());
> >         return db;
> >     }
> > }
> >
> >
> > DataBean
> > -----------------------
> > @XmlRootElement(name = "DataBean")
> > public class DataBean {
> > ...
> >  //only getter/setter for dataOne and dataTwo
> > ...
> > }
> >
> >
> > Start code
> > -----------------------
> > JaxWsServerFactoryBean factory = new JaxWsServerFactoryBean();
> > factory.setServiceClass(Hello.class);
> > factory.setAddress("http://localhost:8080/hello");
> > factory.setServiceBean(new HelloImpl());
> > Server server = factory.create();
> >
> >
> > Error message on start
> > -----------------------
> > Exception in thread "main" java.lang.ClassFormatError: 
> Illegal class modifiers in class 
> org/apache/cxf/ws/addressing/wsdl/package-info: 0x1600
> > 	at java.lang.ClassLoader.defineClass1(Native Method)
> > 	at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
> > 	at 
> java.security.SecureClassLoader.defineClass(SecureClassLoader.
> java:124)
> > 	at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
> > 	at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
> > 	at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
> > 	at java.security.AccessController.doPrivileged(Native Method)
> > 	at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> > 	at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> > 	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
> > 	at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> > 	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
> > 	at java.lang.Class.forName0(Native Method)
> > 	at java.lang.Class.forName(Class.java:242)
> > 	at java.lang.Package.getPackageInfo(Package.java:350)
> > 	at java.lang.Package.getAnnotation(Package.java:361)
> > 	at 
> com.sun.xml.bind.v2.model.annotation.RuntimeInlineAnnotationRe
> ader.getPackageAnnotation(RuntimeInlineAnnotationReader.java:85)
> > 	at 
> com.sun.xml.bind.v2.model.annotation.RuntimeInlineAnnotationRe
> ader.getPackageAnnotation(RuntimeInlineAnnotationReader.java:17)
> > 	at 
> com.sun.xml.bind.v2.model.impl.TypeInfoImpl.parseTypeName(Type
> InfoImpl.java:130)
> > 	at 
> com.sun.xml.bind.v2.model.impl.ClassInfoImpl.<init>(ClassInfoI
> mpl.java:132)
> > 	at 
> com.sun.xml.bind.v2.model.impl.RuntimeClassInfoImpl.<init>(Run
> timeClassInfoImpl.java:53)
> > 	at 
> com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.createClass
> Info(RuntimeModelBuilder.java:65)
> > 	at 
> com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.createClass
> Info(RuntimeModelBuilder.java:41)
> > 	at 
> com.sun.xml.bind.v2.model.impl.ModelBuilder.getClassInfo(Model
> Builder.java:130)
> > 	at 
> com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInf
> o(RuntimeModelBuilder.java:55)
> > 	at 
> com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInf
> o(RuntimeModelBuilder.java:41)
> > 	at 
> com.sun.xml.bind.v2.model.impl.ModelBuilder.getTypeInfo(ModelB
> uilder.java:196)
> > 	at 
> com.sun.xml.bind.v2.model.impl.ModelBuilder.getTypeInfo(ModelB
> uilder.java:211)
> > 	at 
> com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAX
> BContextImpl.java:383)
> > 	at 
> com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContext
> Impl.java:236)
> > 	at 
> com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactor
> y.java:76)
> > 	at 
> com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactor
> y.java:55)
> > 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > 	at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess
> orImpl.java:39)
> > 	at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth
> odAccessorImpl.java:25)
> > 	at java.lang.reflect.Method.invoke(Method.java:585)
> > 	at 
> javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:210)
> > 	at javax.xml.bind.ContextFinder.find(ContextFinder.java:366)
> > 	at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:574)
> > 	at 
> org.apache.cxf.jaxb.JAXBDataBinding.createJAXBContext(JAXBData
> Binding.java:410)
> > 	at 
> org.apache.cxf.jaxb.JAXBDataBinding.initialize(JAXBDataBinding
> .java:266)
> > 	at 
> org.apache.cxf.service.factory.ReflectionServiceFactoryBean.bu
> ildServiceFromClass(ReflectionServiceFactoryBean.java:220)
> > 	at 
> org.apache.cxf.service.factory.ReflectionServiceFactoryBean.in
> itializeServiceModel(ReflectionServiceFactoryBean.java:248)
> > 	at 
> org.apache.cxf.service.factory.ReflectionServiceFactoryBean.cr
> eate(ReflectionServiceFactoryBean.java:136)
> > 	at 
> org.apache.cxf.frontend.AbstractEndpointFactory.createEndpoint
> (AbstractEndpointFactory.java:83)
> > 	at 
> org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactory
> Bean.java:88)
> > 	at 
> org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServer
> FactoryBean.java:142)
> > 	at test.StartHelloService.main(StartHelloService.java:18)
> >
> >
> >   
> 

Mime
View raw message