I will make a JIRA. The problem is a bean property on a public data
member. That is I have a class that is used as a parameter on the SEI
and it includes,
...
public int scheme;
public int getScheme() { return scheme; }
public void setScheme(int x) { scheme = x; }
Is this really two properties?
Aegis ignores the public field. Is Aegis right, wrong, or just
different?
It's just as well that this fails, since the WSDL I'd get would be quite
different from what Aegis normally comes up with for me.
For some reason I expect to be doc/literal with the following SEI
annotations:
@WebService(name="NameIndex",
targetNamespace="urn:com.basistech.rnm.index.ws")
public interface NameIndexService
@WebService(serviceName = "NameIndex", endpointInterface =
"com.basistech.rnm.index.ws.NameIndexService",
targetNamespace="urn:com.basistech.rnm.index.ws")
public class NameIndexServiceImpl extends NameIndexServiceCommon
implements NameIndexService {
> -----Original Message-----
> From: Freeman Fang [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, July 17, 2007 11:35 PM
> To: [email protected]
> Subject: Re: java2wsdl rejects class that is acceptable to the aegis
> universe
>
> Hi Benson,
> Would you please append your java class?
>
> From the exception, it seems your class method are bare mode so that
> java2wsdl load jaxb to process your method parameter type class, but
> unfortunately, this type class has two properties with same name,
which
> is illegal for jaxb.
> As you said, it is acceptable to the aegis, but tool now only work
with
> jaxb.
> To solve this problem, tool should work with specified databinding
> (jaxb, aegis), would you please add this feature request on jira?
>
> Best Regards
>
> Freeman
>
> Benson Margulies wrote:
> > Is there something special I have to do to run java2wsdl for an
aegis
> > environment? As it is, I get a very mysterious rejection letter
until I
> > ask for -verbose, and then I get the following...
> >
> > org.apache.cxf.bus.spring.BusApplicationContext getConfigResources
> > [java] INFO: Could not find the configuration file cxf.xml on
the
> > classpath.
> > [java] Jul 17, 2007 10:27:45 PM
> > org.apache.cxf.service.factory.ReflectionServiceFactoryBean
> > buildServiceFromC
> > lass
> > [java] INFO: Creating Service
> > {urn:com.basistech.rnm.index.ws}NameIndex from class
> > com.basistech.rnm.index.ws
> > .impl.NameIndexServiceImpl
> > [java] Error :
> > org.apache.cxf.service.factory.ServiceConstructionException
> > [java]
> > [java] java.lang.RuntimeException:
> > org.apache.cxf.service.factory.ServiceConstructionException
> > [java] at
> >
org.apache.cxf.frontend.AbstractServiceFactory.createService(AbstractSer
> > viceFactory.java:31)
> > [java] at
> >
org.apache.cxf.tools.java2wsdl.processor.JavaToProcessor.process(JavaToP
> > rocessor.java:87)
> > [java] at
> >
org.apache.cxf.tools.java2wsdl.JavaToWSDLContainer.execute(JavaToWSDLCon
> > tainer.java:59)
> > [java] at
> >
org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:
> > 84)
> > [java] at
> >
org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:
> > 52)
> > [java] at
> >
org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:
> > 39)
> > [java] at
> > org.apache.cxf.tools.java2wsdl.JavaToWSDL.run(JavaToWSDL.java:74)
> > [java] at
> > org.apache.cxf.tools.java2wsdl.JavaToWSDL.main(JavaToWSDL.java:42)
> > [java] Caused by:
> > org.apache.cxf.service.factory.ServiceConstructionException
> > [java] at
> >
org.apache.cxf.jaxb.JAXBDataBinding.initialize(JAXBDataBinding.java:269)
> > [java] at
> >
org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildService
> > FromClass(ReflectionSer
> > viceFactoryBean.java:220)
> > [java] at
> >
org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeSe
> > rviceModel(ReflectionSe
> > rviceFactoryBean.java:248)
> > [java] at
> >
org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(Refle
> > ctionServiceFactoryBean
> > .java:136)
> > [java] at
> >
org.apache.cxf.frontend.AbstractEndpointFactory.createEndpoint(AbstractE
> > ndpointFactory.java:83)
> > [java] at
> >
org.apache.cxf.frontend.AbstractServiceFactory.createService(AbstractSer
> > viceFactory.java:29)
> > [java] ... 7 more
> > [java] Caused by:
> > com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 7 counts of
> > IllegalAnnotationExcep
> > tions
> > [java] Class has two properties of the same name "scheme"
> > [java] this problem is related to the following location:
> > [java] at public int
> > com.basistech.rnm.Transliteration.getScheme()
> > [java] at com.basistech.rnm.Transliteration
> > [java] at public
com.basistech.rnm.Transliteration[]
> > com.basistech.rnm.Name.getTransliterations()
> > [java] at com.basistech.rnm.Name
> > [java] at public com.basistech.rnm.Name[]
> > com.basistech.rnm.Entity.getNames()
> > [java] at com.basistech.rnm.Entity
> > [java] this problem is related to the following location:
> > [java] at public int
> > com.basistech.rnm.Transliteration.scheme
> > [java] at com.basistech.rnm.Transliteration
> > [java] at public
com.basistech.rnm.Transliteration[]
> > com.basistech.rnm.Name.getTransliterations()
> > [java] at com.basistech.rnm.Name
> > [java] at public com.basistech.rnm.Name[]
> > com.basistech.rnm.Entity.getNames()
> > [java] at com.basistech.rnm.Entity
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >