[JBoss-user] [JBossWS] - Deploy Problem ArrayOf_xsd_string

2005-03-15 Thread y_zl
I have a problem when deploying my service on Jboss 4.0.0

The exception is as following:

17:20:11,549 INFO  [TomcatDeployer] deploy, ctxPath=/PhaseLC, 
warUrl=file:/Data2/jboss-4.0.0/server/default/tmp/deploy/tmp20531PhaseLC-exp.war/
17:20:12,455 INFO  [WSDLFilePublisher] WSDL published to: 
file:/Data2/jboss-4.0.0/server/default/data/wsdl/PhaseLC.war/PhaseLC_1.wsdl
17:20:12,950 ERROR [ServiceDeployer] Cannot startup webservice for: PhaseLC.war
org.jboss.deployment.DeploymentException: Cannot deploy webservice; - nested 
throwable: (RuntimeMBeanException: null Cause: 
java.lang.IllegalArgumentException:
Cannot find package type for: {http://wsdl.phaselc.org}ArrayOf_xsd_string)
at org.jboss.webservice.ServiceDeployer.deployWebservices(ServiceDeploye
r.java:342)

the corresponding wsdl is as following:

  wsdl:types  
  schema xmlns=http://www.w3.org/2001/XMLSchema; 
targetNamespace=http://wsdl.phaselc.org; 
import  namespace=http://schemas.xmlsoap.org/soap/encoding//
complexType name=ArrayOf_xsd_string
 complexContent
  restriction base=soapenc:Array
   attribute ref=soapenc:arrayType wsdl:arrayType=xsd:string[]/
  /restriction
 /complexContent
/complexType
   /schema
  /wsdl:types

This wsdl file is generated using java2WSDL

anybody could help me to identify the problem ?

Thanks a lot !

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3870162#3870162

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3870162


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossWS] - Re: Deploy Problem ArrayOf_xsd_string

2005-03-15 Thread y_zl
Thanks Jason.

I didn't try wscompile. I used option -uliteral in java2WSDL and deployed to 
JBoss 4.0.1 again, the problem remains same. 

the signature of the service  has the following format:

String [] method1( arg1, arg2);

I think the type of ArrayOf_xsd_string is generated to reflect return type 
String[] by java2WSDL.  Maybe this problem could be sovled by wrapping the 
String [] into a class. I really want to reuse the exisitng code. 

in the WSDL file the target namespace of ArrayOf_xsd_string is 
targetNamespace=http://wsdl.phaselc.org;. does it prevent Jboss from using 
java.lang.String? any setting in the mapping file or other descriptor files or 
configration files could help Jboss to deal with it correctly?

hope to get response again and thanks in advance!


View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3870310#3870310

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3870310


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user