Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Tomcat - JSP/Servlet container
Struts - A MVC web framework
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
JSP - A mailing list about Java Server Pages specification and reference
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Oracle Connection Pooling in 3 2 2
Servlet : Session invalidate
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Tomcat and webapplication specific java library path
Running a Simple JMS Example
Mapping in workers2 properties
org apache jasper JasperException
Cannot find message resources under key org apache struts action
   MESSAGE
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
url string for connecting jboss to oracle
Value attribute of <html:checkbox
javax servlet ServletException: BeanUtils populate
HTTP Status 404 The requested resource is not available
5 0 18: Windows XP Pro vs Windows 2000
 
- 'uniqueness constraint violation ' when running wsconsum

- 'uniqueness constraint violation ' when running wsconsum

2007-06-12       - By Maffewl

 Back
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-schema-1 (See http://ema-1.ora-code.com)]::[key=sch-props
-correct.2]::Message=sch-props-correct.2: 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
__ ____ ____ ____ ____ ____ ____ ____ ____ ____
jboss-user mailing list
jboss-user@(protected)
https://lists.jboss.org/mailman/listinfo/jboss-user

©2008 junlu.com - Jax Systems, LLC, U.S.A.