Hello, whilst trying to deploy my webapp to WAS v8.0, I'm running into an
issue where a component the webapp depends on uses CXF and has a few model
objects annotated with JAXWS annotations, I get the following error:

Caused by: com.ibm.jtc.jax.xml.bind.v2.runtime.IllegalAnnotationsException:
2 counts of IllegalAnnotationExceptions
@XmlAttribute/@XmlValue need to reference a Java type that maps to text in XML.
        this problem is related to the following location:
                at protected javax.xml.datatype.XMLGregorianCalendar
corp.iam.spml2.suspend.SuspendRequestType.effectiveDate


The model object itself looks like this:

package corp.iam.spml2.suspend;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.datatype.XMLGregorianCalendar;
//...

@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "SuspendRequestType", namespace =
"urn:oasis:names:tc:SPML:2:0:suspend", propOrder = {
    "psoID"
})
public class SuspendRequestType
    extends RequestType
{

    @XmlElement(namespace = "urn:oasis:names:tc:SPML:2:0:suspend",
required = true)
    protected PSOIdentifierType psoID;
    @XmlAttribute(name = "effectiveDate")
    @XmlSchemaType(name = "dateTime")
    protected XMLGregorianCalendar effectiveDate;

//Plain old getter/setters make-up the rest of the class
//...
}


Has anyone else run into the problem?

Again, running Webshpere v8.0 with the following JVM:

java version "1.6.0"
Java(TM) SE Runtime Environment (build pap6460_26fp1-20110419_01)
IBM J9 VM (build 2.6, JRE 1.6.0 AIX ppc64-64 20110418_80450 (JIT enabled,
AOT enabled)
J9VM - R26_Java626_GA_FP1_20110418_1915_B80450
JIT  - r11_20110215_18645ifx8
GC   - R26_Java626_GA_FP1_20110418_1915_B80450
J9CL - 20110418_80450)
JCL  - 20110401_01

I've gone through all the usual "convince WAS to let us use CXF" steps
(short of creating a shared library), but can't get past this error.  I've
even tried adding a "type=javax.xml.datatype.XMLGregorianCalendar.class" to
the "@XmlSchemaType" for the effectiveDate field, but to no avail.

I've attached a directory listing of my WEB-INF/lib folder as well.

Any help would be greatly appreciated.

Craig.

-- 
Craig Tataryn
site: http://www.basementcoders.com/
podcast:http://feeds.feedburner.com/TheBasementCoders
irc: ThaDon on freenode #basementcoders, ##wicket, #papernapkin
twitter: craiger
.
..
CorpEmailGateway-1.3.4.jar
CorpIamClientJar-1.2.16-SNAPSHOT.jar
CorpIamCommonJar-1.1.4.jar
CorpIdentityManagement-r1v2m0.jar
CorpJavaUtilsSecurity-3.0.4.jar
CorpLogger-3.0.4.jar
CorpServiceInterface-6.0.4.jar
CorpTools-1.0.7.jar
IgCavServiceStructures-0.0.6-SNAPSHOT.jar
IgCnMonetaryInstrumentJar-4.1.0.11-SNAPSHOT.jar
IgCnServiceJar-4.1.0.11-SNAPSHOT.jar
IgFsAuthenticatedCommonJar-4.1.0.11-SNAPSHOT.jar
IgFsCaCommonJar-4.1.0.11-SNAPSHOT.jar
IgFsCaServiceJar-4.1.0.11-SNAPSHOT.jar
IgFsSiJar-4.1.0.11-SNAPSHOT.jar
JavaUtils-2.0.7.jar
antlr-2.7.2.jar
aopalliance-1.0.jar
apache-log4j-extras-1.1.jar
api_ejb-4.5.1FP51.jar
asm-3.3.jar
cglib-nodep-2.1_3.jar
commons-beanutils-1.7.0.jar
commons-codec-1.4.jar
commons-collections-2.1.jar
commons-digester-1.6.jar
commons-fileupload-1.0.jar
commons-lang-2.1.jar
commons-logging-1.0.4.jar
commons-validator-1.1.4.jar
cxf-api-2.5.2.jar
cxf-common-utilities-2.5.2.jar
cxf-rt-bindings-soap-2.5.2.jar
cxf-rt-bindings-xml-2.5.2.jar
cxf-rt-core-2.5.2.jar
cxf-rt-databinding-jaxb-2.5.2.jar
cxf-rt-frontend-jaxws-2.5.2.jar
cxf-rt-frontend-simple-2.5.2.jar
cxf-rt-transports-common-2.5.2.jar
cxf-rt-transports-http-2.5.2.jar
cxf-rt-ws-addr-2.5.2.jar
cxf-tools-common-2.5.2.jar
dbbeans-2.0.1.v20090930_2251.jar
dom4j-1.6.1.jar
geronimo-javamail_1.4_spec-1.7.1.jar
geronimo-jaxws_2.2_spec-1.0.jar
geronimo-ws-metadata_2.0_spec-1.1.3.jar
hamcrest-core-1.1.jar
hamcrest-library-1.1.jar
hsqldb-1.8.0.10.jar
itext-1.4.2.jar
itim_api-4.5.1FP51.jar
jasypt-1.7.jar
jaxp-api-1.4.2.jar
jaxp-ri-1.4.2.jar
jdom-1.0.jar
jmock-2.5.1.jar
jmock-legacy-2.5.1.jar
junit-addons-1.4.jar
ldapjdk-4.5.1FP51.jar
libs.txt
log4j-1.2.16.jar
neethi-3.0.1.jar
objenesis-1.0.jar
oro-2.0.7.jar
shared-asn1-0.9.19.jar
shared-dsml-parser-0.9.19.jar
shared-i18n-0.9.19.jar
shared-ldap-0.9.19.jar
shared-ldap-constants-0.9.19.jar
shared-ldif-0.9.19.jar
slf4j-api-1.5.10.jar
slf4j-log4j12-1.5.10.jar
spring-aop-2.5.6.SEC02.jar
spring-beans-2.5.6.SEC02.jar
spring-context-2.5.6.SEC02.jar
spring-context-support-2.5.6.SEC02.jar
spring-core-2.5.6.SEC02.jar
spring-jdbc-2.5.6.SEC02.jar
spring-test-2.5.6.SEC02.jar
spring-tx-2.5.6.SEC02.jar
spring-web-2.5.6.SEC02.jar
spring-webmvc-2.5.6.SEC02.jar
spring-webmvc-struts-2.5.6.SEC02.jar
standard-1.1.2.jar
stax2-api-3.1.1.jar
struts-1.2.9.jar
woodstox-core-asl-4.1.1.jar
wsdl4j-1.6.2.jar
xalan-2.5.1.jar
xercesImpl-2.6.2.jar
xml-resolver-1.2.jar
xmlParserAPIs-2.6.2.jar
xmlschema-core-2.0.1.jar
xpp3_min-1.1.4c.jar

Reply via email to