[JBossWS] - Wierd error "Adding text to an XML document must not null"
by raags
Hi, I'm trying out JBoss 5.0 for the first time and my simple helloworld webservice when deployed gives this error:
16:55:24,425 INFO [TomcatDeployment] deploy, ctxPath=/, vfsUrl=ROOT.war
16:55:24,940 ERROR [ProfileServiceBootstrap] Failed to load profile: Summary of
incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
*** CONTEXTS IN ERROR: Name -> Error
vfsfile:/C:/systestjboss/jboss-5.0.0.Beta3/server/default/deploy/helloworld5.jar
-> java.lang.IllegalArgumentException: Adding text to an XML document must not
be null
vfsfile:/C:/systestjboss/jboss-5.0.0.Beta3/server/default/deploy/hellowebservice
.jar -> java.lang.IllegalArgumentException: Adding text to an XML document must
not be null
16:55:25,003 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-127.0.0.1-8
080
16:55:25,081 INFO [AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009
16:55:25,081 INFO [ServerImpl] JBoss (Microcontainer) [5.0.0.Beta3 (build: SVNT
ag=JBoss_5_0_0_Beta3 date=200712210026)] Started in 1m:10s:296ms
How can I solve this?
Thanks!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4143590#4143590
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4143590
18 years
[JBossWS] - Re: Web services using common complex types
by rcarmichael
Just to update, I figured out that if I specify @XmlType(namespace="...") on my @Entitys that the web services are using, wsimport (if you don't use the -p option) would do what I want for me without having to specify JAXB customization files.
I still think that it would be neat if I could somehow annotate that I want specific classes to be packaged into an XSD and then referenced from the WSDL. Then multiple WSDLs share a common XSD. I'm sure this is possible if you're starting from WSDLs and generating java classes, but in my case I'm starting with POJO @Entities and @Webservices, JBoss is generating the WSDL, then I'm using wsimport to generate client stubs.
Anyway, what I mentioned is probably not a JBoss feature request, more of a JAXWS request. Thanks again for the replies. If anyone knows how to do this "common XSD" thing from simple annotations already, I'd love to know.
-Ryan
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4143463#4143463
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4143463
18 years