[JBossWS] - Error installing JBossWS with Eclipse + Jboss 4.2
by carlosmot
I have this problem when I try to publish a POJO as web service without annontations:
NoClassDefFoundError: javax/xml/rpc/encoding/TypeMapping
My configuration is below:
Clean wmware image with Windows XP SP2, JDK 1.5.0_11, JWSDP 2.0 and Eclipse downloaded from your site file name: "JBossIDE-2.0.0.Beta2-Bundle-win32.zip" and JBossWS donwloaded from your site file name:"jbossws-1.2.1.GA.zip" and a JBoss server downloaded from your site, file name: "jboss-4.2.0.GA.zip" and Ant 1.70.
The system variables:
JAVA_HOME, JBOSS_HOME, JWSDP_HOME and ANT_HOME are all OK.
My Installation procedure are:
I decompress jboss-4.2.0.GA.zip into "c:\jboss-4.2.0.GA"
I decompress jbossws-1.2.1.GA.zip into "c:\jbossws"
I decompress JBossIDE-2.0.0.Beta2-Bundle-win32.zip into "c:\eclipse"
I put JWSDP into JWSDP 2.0 into C:\jwsdp-2.0
......................................................................................
Into c:\jbossws I rename ant.properties.example in "ant.properties"
I also modify "ant.properties" and uncomment the line below:
jboss42.home=c:/jboss-4.2.0.GA
I launch Ant from a console as below:
ant deploy-jboss42
All is ok and Ant says build succesfully------
I test the JBoss installation with "http://localhost:8080/jbossws" and the
page appears correctly.
....................................................................................
Well, now I launch Eclipse, and I set the properties from Preferences>JBoss Eclipse IDE>JBoss WS>Integrated tools>JBoss WS wstools to: C:\jboss-4.2.0.GA\bin
Preferences>JBoss Eclipse IDE>JBoss WS>Integrated tools>JAXB XJC to:
C:\jwsdp-2.0\jaxb
I leave the rest in blank.
-------------------------------------------------------------------
Now I create a Java Project whit 1 interface and 1 class with the code of your documentation: IHelloWorld & HelloWorld without changes.
When mouse's rigth button add a JBossws nature to the project and I accept the defualt values.
Selecting HelloWorld I clic under JBOSSWS>Publish as Web Service and Eclipse says:
Running JBossWS wstools for [ProyectoWS]
directory: C:\Documents and Settings\Administrador\workspace\ProyectoWS
command: cmd.exe /C C:\jboss-4.2.0.GA\bin\wstools.bat -cp /ProyectoWS -config C:\DOCUME~1\Alumno\CONFIG~1\Temp\wstools-config30423.xml -dest C:\Documents and Settings\Administrador\workspace\ProyectoWS\ProyectoWS
========================================================================="
.
WSTools Environment
.
JBOSS_HOME: C:\jboss-4.2.0.GA\bin\\..
.
JAVA: C:\Archivos de programa\Java\jdk1.5.0_11\bin\java
.
JAVA_OPTS:
.
========================================================================="
.
Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/rpc/encoding/TypeMapping
at org.jboss.ws.tools.WSTools.process(WSTools.java:130)
at org.jboss.ws.tools.WSTools.generate(WSTools.java:69)
at org.jboss.ws.tools.WSTools.generate(WSTools.java:119)
at org.jboss.ws.tools.WSTools.main(WSTools.java:58)
----------------------------------------------------------------------------
Thanks advanced for your patience and cooperation, sorry for my last post...
..Carlos..
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053646#4053646
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053646
17 years, 6 months
[JBossWS] - 'uniqueness constraint violation' when running wsconsume on
by Maffewl
Hi all, I've been able to deploy a webservice in JBossWS based on a WSDL that I had made running under jboss-net/axis. I used WSConsume and the Top-Down approach to arrive at this point. When i attepmt to use wsconsume on the deployed wsdl, I get errors talking about a uniqueness constraint violation
anonymous wrote :
| uniqueness constraint violation
| at org.jboss.com.sun.tools.ws.processor.modeler.wsdl.WSDLModeler.buildModel(WSDLModeler.java:213)
| at org.jboss.com.sun.tools.ws.processor.config.ModelInfo.buildModel(ModelInfo.java:88)
| at org.jboss.com.sun.tools.ws.processor.Processor.runModeler(Processor.java:82)
| at org.jboss.com.sun.tools.ws.wscompile.CompileTool.run(CompileTool.java:543)
| at org.jboss.com.sun.tools.ws.util.ToolBase.run(ToolBase.java:57)
| at org.jboss.ws.tools.jaxws.impl.WSContractConsumerImpl$1.run(WSContractConsumerImpl.java:163)
| at org.jboss.ws.tools.jaxws.impl.WSContractConsumerImpl.consume(WSContractConsumerImpl.java:166)
| at org.jboss.ws.tools.jaxws.command.wsconsume.importServices(wsconsume.java:193)
| at org.jboss.ws.tools.jaxws.command.wsconsume.main(wsconsume.java:76)
| Caused by: uniqueness constraint violation
| at org.jboss.com.sun.tools.ws.processor.model.java.JavaMethod.addParameter(JavaMethod.java:76)
| at org.jboss.com.sun.tools.ws.processor.modeler.wsdl.WSDLModeler.createJavaMethodForOperation(WSDLModeler.java:2411)
| at org.jboss.com.sun.tools.ws.processor.modeler.wsdl.WSDLModeler.createJavaInterfaceForPort(WSDLModeler.java:2244)
| at org.jboss.com.sun.tools.ws.processor.modeler.wsdl.WSDLModeler.processPort(WSDLModeler.java:536)
| at org.jboss.com.sun.tools.ws.processor.modeler.wsdl.WSDLModeler.processService(WSDLModeler.java:289)
| at org.jboss.com.sun.tools.ws.processor.modeler.wsdl.WSDLModeler.internalBuildModel(WSDLModeler.java:258)
| at org.jboss.com.sun.tools.ws.processor.modeler.wsdl.WSDLModeler.buildModel(WSDLModeler.java:181)
|
|
then i get a big list of errors that look like this
anonymous wrote : 17:03:27,104 ERROR [JBossXSErrorHandler] JBossWS_cls.chase.com_type17794.xsd[domain:http://www.w3.org/TR/xml-schem...: A schema cannot contain two global components with the same name; this schema contains two occurrences of 'http://cls.chase.com/type,rewardsProgramAttributes'.
|
it seems to be for most of my properties, can anyone tell me why this happens?
ive invluded a portion of the deployed wsdl that contains all the nodes that have the element in the example error message
| <definitions name='AccountService' targetNamespace='http://XXX.XXXXX.com/account' xmlns='http://schemas.xmlsoap.org/wsdl/' xmlns:ns1='http://XXX.XXXXX.com/type' xmlns:soap='http://schemas.xmlsoap.org/wsdl/soap/' xmlns:tns='http://XXX.XXXXX.com/account' xmlns:xsd='http://www.w3.org/2001/XMLSchema'>
| <types>
| <xs:schema elementFormDefault='qualified' targetNamespace='http://XXX.XXXXX.com/type' version='1.0' xmlns:tns='http://XXX.XXXXX.com/type' xmlns:xs='http://www.w3.org/2001/XMLSchema'>
|
| ...
|
| <xs:complexType name='rewardsProgramAttributes'>
| <xs:sequence>
| <xs:element name='programName' type='xs:string'/>
|
| <xs:element name='programDescription' type='xs:string'/>
| <xs:element name='rewardsCurrency' type='xs:string'/>
| <xs:element name='rewardsCurrencyDescription' type='xs:string'/>
| <xs:element name='rewardsProductCode' type='xs:string'/>
| <xs:element name='rewardsDisplayFormat' type='xs:string'/>
| </xs:sequence>
| </xs:complexType>
|
| ...
|
|
| <xs:complexType name='promotion'>
| <xs:sequence>
| <xs:element name='internalIdentifier' type='xs:long'/>
| <xs:element name='name' type='xs:string'/>
| <xs:element name='description' type='xs:string'/>
|
| <xs:element name='merchantInternalIdentifier' type='xs:long'/>
| <xs:element name='merchantName' type='xs:string'/>
| <xs:element name='merchantId' type='xs:string'/>
| <xs:element name='activationDate' type='xs:string'/>
| <xs:element name='expirationDate' type='xs:string'/>
| <xs:element name='terms' type='xs:string'/>
| <xs:element name='enrollmentOptions' type='tns:enrollmentOption_Array'/>
| <xs:element name='rewardsProgramAttributes' type='tns:rewardsProgramAttributes_Array'/>
| <xs:element name='excludeRewardsProgramAttributesInd' type='xs:boolean'/>
|
| <xs:element name='promotionStatusCode' type='xs:int'/>
| </xs:sequence>
| </xs:complexType>
|
| ...
|
| <xs:complexType name='rewardsProgramAttributes_Array'>
| <xs:sequence>
| <xs:element maxOccurs='unbounded' minOccurs='0' name='rewardsProgramAttributes' nillable='true' type='tns:rewardsProgramAttributes'/>
| </xs:sequence>
| </xs:complexType>
|
| ...
|
| </xs:schema>
| </types>
|
| ...
|
| </definitions>
|
thanks in advance
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053576#4053576
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053576
17 years, 6 months
[JBossWS] - Installing problems WS with JBoss 4.05 and EJB3
by o66183
13:08:35,796 ERROR [ServiceEndpointDeployer] Cannot create service endpoint
java.lang.ClassCastException: com.sun.xml.bind.v2.model.impl.RuntimeBuiltinLeafInfoImpl$5
at com.sun.xml.bind.v2.model.impl.ClassInfoImpl.getBaseClass(ClassInfoImpl.java:170)
at com.sun.xml.bind.v2.model.impl.RuntimeClassInfoImpl.getBaseClass(RuntimeClassInfoImpl.java:59)
at com.sun.xml.bind.v2.model.impl.RuntimeClassInfoImpl.getBaseClass(RuntimeClassInfoImpl.java:39)
at com.sun.xml.bind.v2.model.impl.ModelBuilder.getClassInfo(ModelBuilder.java:142)
at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:48)
at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:40)
at com.sun.xml.bind.v2.model.impl.ModelBuilder.getTypeInfo(ModelBuilder.java:189)
at com.sun.xml.bind.v2.model.impl.TypeRefImpl.calcRef(TypeRefImpl.java:56)
at com.sun.xml.bind.v2.model.impl.TypeRefImpl.getTarget(TypeRefImpl.java:33)
at com.sun.xml.bind.v2.model.impl.RuntimeTypeRefImpl.getTarget(RuntimeTypeRefImpl.java:22)
at com.sun.xml.bind.v2.model.impl.RuntimeTypeRefImpl.getTarget(RuntimeTypeRefImpl.java:15)
at com.sun.xml.bind.v2.model.impl.ElementPropertyInfoImpl$1.get(ElementPropertyInfoImpl.java:38)
at com.sun.xml.bind.v2.model.impl.ElementPropertyInfoImpl$1.get(ElementPropertyInfoImpl.java:41)
at java.util.AbstractList$Itr.next(Unknown Source)
at com.sun.xml.bind.v2.model.impl.ModelBuilder.getClassInfo(ModelBuilder.java:139)
at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:48)
at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:40)
at com.sun.xml.bind.v2.model.impl.ModelBuilder.getTypeInfo(ModelBuilder.java:189)
at com.sun.xml.bind.v2.model.impl.ModelBuilder.getTypeInfo(ModelBuilder.java:204)
at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:356)
at com.sun.xml.bind.v2.runtime.JAXBContextImpl.(JAXBContextImpl.java:217)
at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:76)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.sun.xml.bind.api.JAXBRIContext.newInstance(JAXBRIContext.java:76)
at org.jboss.ws.metadata.builder.jaxws.JAXWSMetaDataBuilder.createJAXBContext(JAXWSMetaDataBuilder.java:875)
at org.jboss.ws.metadata.builder.jaxws.JAXWSWebServiceMetaDataBuilder.buildWebServiceMetaData(JAXWSWebServiceMet
Builder.java:128)
at org.jboss.ws.metadata.builder.jaxws.JAXWSServerMetaDataBuilder.setupProviderOrWebService(JAXWSServerMetaDataB
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053480#4053480
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053480
17 years, 6 months