Reshat Sabiq <crts <at> argushealth.com> writes:
> I tried running w/ externally-generated JAXB 1 classes, but getting an
> exception. If it tells you something, please let me know:
>
> [4/9/07 16:48:22:692 CDT] 00000033 XFireServlet E TRAS0014I: The
> following exception was logged
> org.springframework.beans.factory.BeanCreationException: Error
> creating bean with name 'org.codehaus.xfire.spring.ServiceBean'
> defined in class path resource [META-INF/xfire/services.xml]:
> Initialization of bean failed; nested exception is
> org.codehaus.xfire.XFireRuntimeException: error getting qname of
> jaxb type. Nested exception is java.lang.NullPointerException:
> null
This was because of i wasn't passing in a JAXBContext thru spring. Now i've done
that, i got thru instantiation of at least one mapping for a real request (saw
Response object mapped while debugging), but now getting the following:
[4/9/07 18:20:53:204 CDT] 00000031 XFireServletC E TRAS0014I:
The following exception was logged org.codehaus.xfire.XFireRuntimeException:
Couldn't create type for property IMyRequest on interface
com.argushealth.pharmacy.domain.claim.ws.ArrayOfIMyRequest:
Cannot create mapping for java.util.List,
unspecified component type for property IMyRequest
at org.codehaus.xfire.aegis.type.DefaultTypeCreator.
createCollectionType(DefaultTypeCreator.java:43)
at org.codehaus.xfire.aegis.type.XMLTypeCreator.
createCollectionType(XMLTypeCreator.java:141)
at org.codehaus.xfire.aegis.type.AbstractTypeCreator.
createTypeForClass(AbstractTypeCreator.java:113)
at org.codehaus.xfire.aegis.type.AbstractTypeCreator.
createType(AbstractTypeCreator.java:376)
at org.codehaus.xfire.jaxb.JaxbTypeCreator.
createType(JaxbTypeCreator.java:82)
...
Again, this when generating JAXB1 static objects using xjc directly. I'll need
to try an array in JAXB 1 w/o xfire, but i am sure it will work...
P.S. This is how it's declared in WSDL:
<xsd:complexType name="ArrayOfIHumanaDrugPricingRequest">
<xsd:sequence>
<xsd:element maxOccurs="unbounded" minOccurs="0"
name="IHumanaDrugPricingRequest" nillable="true"
type="ns1:IHumanaDrugPricingRequest" />
</xsd:sequence>
</xsd:complexType>
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email