You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@xmlbeans.apache.org by Mike Cassisa <MC...@cricketcommunications.com> on 2006/04/05 01:49:54 UTC
JAX-RPC and Enumerations
Hello,
we are in the process of converting a JBoss.Net web service over to
a JBossWS4EE web service (JAX-RPC) and are having problems with the
wscompile utility. We have some enumerations in our types and the
wscompile keeps getting stuck on them.
Tried this in xmlbeans 1 and xmlbeans2 and get different errors
respectively.
Here is the output from the xmlbeans 2.1.0 wscompile.
[wscompile] command line: wscompile
C:\SDK\j2sdk1.4.2_06\jre\bin\java.exe -classpath "C:\Documents and
Settings\mcassisa\.maven\repository\xmlbeans\jars\xbean-2.1.0.jar;C:\Doc
uments and
Settings\mcassisa\.maven\repository\xmlbeans\jars\xmlpublic-2.1.0.jar;C:
\Documents and
Settings\mcassisa\.maven\repository\xmlbeans\jars\jsr173_1.0_api.jar;C:\
Documents and
Settings\mcassisa\.maven\repository\jboss\jars\axis-ws4ee-4.0.3SP1.jar;C
:\Documents and
Settings\mcassisa\.maven\repository\jboss\jars\jboss-jaxrpc-4.0.3SP1.jar
;C:\Documents and
Settings\mcassisa\.maven\repository\jboss\jars\jboss-common-4.0.3SP1.jar
;C:\Documents and
Settings\mcassisa\.maven\repository\log4j\jars\log4j-1.2.8.jar;C:\Docume
nts and
Settings\mcassisa\.maven\repository\wsdl4j\jars\wsdl4j-1.4.jar;C:\Docume
nts and
Settings\mcassisa\.maven\repository\jwsdp\jars\jaxrpc-impl-1.6.jar;C:\Do
cuments and
Settings\mcassisa\.maven\repository\jwsdp\jars\jaxrpc-api-1.6.jar;C:\Doc
uments and
Settings\mcassisa\.maven\repository\jwsdp\jars\jaxrpc-spi-1.6.jar;C:\Doc
uments and
Settings\mcassisa\.maven\repository\j2ee\jars\jboss-saaj-1.4.jar;C:\Docu
ments and
Settings\mcassisa\.maven\repository\j2ee\jars\activation-1.4.jar;C:\Docu
ments and
Settings\mcassisa\.maven\repository\javamail\jars\javamail-1.3.2.jar;C:\
tmp\CSP-TEMPLATE-TESTS\scratch\websvc-types\target\classes;C:\SDK\j2sdk1
.4.2_06\lib\tools.jar" com.sun.xml.rpc.tools.wscompile.Main -d
C:\tmp\CSP-TEMPLATE-TESTS\scratch\websvc-types\tmp
-features:documentliteral,wsi -gen:server -keep -mapping
C:\tmp\CSP-TEMPLATE-TESTS\scratch\websvc-types\tmp\jaxrpc-mapping.xml -s
C:\tmp\CSP-TEMPLATE-TESTS\scratch\websvc-types\tmp -verbose
C:\tmp\CSP-TEMPLATE-TESTS\scratch\websvc-types\wscompile-config.xml
[wscompile] [creating model: ScratchService]
[wscompile] [creating service: ScratchService]
[wscompile] [creating port:
com.leapwireless.csp.adapter.scratch.websvc.ScratchWebServiceInterface]
[wscompile] java.lang.ExceptionInInitializerError
[wscompile] at java.lang.Class.forName0(Native Method)
[wscompile] at java.lang.Class.forName(Class.java:219)
[wscompile] at
com.sun.xml.rpc.processor.modeler.rmi.RmiType.getTypeClass(RmiType.java:
86)
[wscompile] at
com.sun.xml.rpc.processor.modeler.rmi.RmiTypeModeler.getHolderValueType(
RmiTypeModeler.java:603)
[wscompile] at
com.sun.xml.rpc.processor.modeler.rmi.RmiModeler.generateNameFromType(Rm
iModeler.java:1655)
[wscompile] at
com.sun.xml.rpc.processor.modeler.rmi.RmiModeler.nameParameters(RmiModel
er.java:1626)
And from xml beans 1...
[wscompile] command line: wscompile
C:\SDK\j2sdk1.4.2_06\jre\bin\java.exe -classpath "C:\Documents and
Settings\mcassisa\.maven\repository\xmlbeans\jars\xbean-1.0.4.jar;C:\Doc
uments and
Settings\mcassisa\.maven\repository\jboss\jars\axis-ws4ee-4.0.3SP1.jar;C
:\Documents and
Settings\mcassisa\.maven\repository\jboss\jars\jboss-jaxrpc-4.0.3SP1.jar
;C:\Documents and
Settings\mcassisa\.maven\repository\jboss\jars\jboss-common-4.0.3SP1.jar
;C:\Documents and
Settings\mcassisa\.maven\repository\log4j\jars\log4j-1.2.8.jar;C:\Docume
nts and
Settings\mcassisa\.maven\repository\wsdl4j\jars\wsdl4j-1.4.jar;C:\Docume
nts and
Settings\mcassisa\.maven\repository\jwsdp\jars\jaxrpc-impl-1.6.jar;C:\Do
cuments and
Settings\mcassisa\.maven\repository\jwsdp\jars\jaxrpc-api-1.6.jar;C:\Doc
uments and
Settings\mcassisa\.maven\repository\jwsdp\jars\jaxrpc-spi-1.6.jar;C:\Doc
uments and
Settings\mcassisa\.maven\repository\j2ee\jars\jboss-saaj-1.4.jar;C:\Docu
ments and
Settings\mcassisa\.maven\repository\j2ee\jars\activation-1.4.jar;C:\Docu
ments and
Settings\mcassisa\.maven\repository\javamail\jars\javamail-1.3.2.jar;C:\
tmp\CSP-TEMPLATE-TESTS\scratch\websvc-types\target\classes;C:\SDK\j2sdk1
.4.2_06\lib\tools.jar" com.sun.xml.rpc.tools.wscompile.Main -d
C:\tmp\CSP-TEMPLATE-TESTS\scratch\websvc-types\tmp
-features:documentliteral,wsi -gen:server -keep -mapping
C:\tmp\CSP-TEMPLATE-TESTS\scratch\websvc-types\tmp\jaxrpc-mapping.xml -s
C:\tmp\CSP-TEMPLATE-TESTS\scratch\websvc-types\tmp -verbose
C:\tmp\CSP-TEMPLATE-TESTS\scratch\websvc-types\wscompile-config.xml
[wscompile] [creating model: ScratchService]
[wscompile] [creating service: ScratchService]
[wscompile] [creating port:
com.leapwireless.csp.adapter.scratch.websvc.ScratchWebServiceInterface]
[wscompile] [creating operation: ping]
[wscompile] error: class
com.leapwireless.csp.adapter.scratch.websvc.ValueList$Enum does not have
a public accessible empty constructor
BUILD FAILED
wscompile failed
at com.sun.xml.rpc.tools.ant.Wscompile.execute(Wscompile.java:752)
at org.apache.tools.ant.Task.perform(Task.java:341)
Any help would be appreciates.
Thanks,
MC
Mike Cassisa
Engineering Manager
Cricket Communications
10307 Pacific Center Court
San Diego, CA 92121
858-882-6096 Office
"There are two ways of constructing a software design... one way is to
make it so simple there are obviously no deficiencies, the other way is
to make it so complicated that there are no obvious deficiencies.
The first method is far more difficult."
-Unknown