eclipse-ee4j / jax-rpc-ri

JAX RPC Implementation (Eclipse Metro Project)
Other
2 stars 4 forks source link

User-Defined Exceptions don't compile to wsdl in rpcliteral style #19

Open Tomas-Kraus opened 19 years ago

Tomas-Kraus commented 19 years ago

We are using jax-rpc from the jwsdp 1.5 and want to generate wsdl and server/client from pojo java classes. Our internal webservice integration concept requires us to have IN/OUT parameters in the generated wsdl. We therefore use jaxrpc.holders. WSCOMPILE required us to swith to rpc/literal style for holder support. In this scenario wscompile apparently has a problem with user-defined exceptions. Our exceptions from the service-methods correctly inherit from java.lang.Exception. Wscompile complains now about the StackTraceElement Class contained in the throwable Interface. Without holders (and using document/literal style) user defined exceptions are no problem. Here the Stacktrace we get from wscompile (as ant task within ant run): [wscompile] [creating model: ComplexServices] [wscompile] [creating service: ComplexServices] [wscompile] [creating port: de.tmobile.services.virtual.test.services.complexservices.ComplexServicesWebServ ice] [wscompile] [creating operation: echoEnumeration] [wscompile] Klasse java.lang.StackTraceElement verf³gt nicht ³ber einen ÷ffentlich zugõnglichen leeren Konstruktor [wscompile] at com.sun.xml.rpc.processor.modeler.rmi.RmiStructure.initialize (RmiStructure.java:109) [wscompile] at com.sun.xml.rpc.processor.modeler.rmi.RmiStructure.forClass (RmiStructure.java:32) [wscompile] at com.sun.xml.rpc.processor.modeler.rmi.RmiStructure.modelTypeSOAP (RmiStructure.java:41) [wscompile] at com.sun.xml.rpc.processor.modeler.rmi.LiteralTypeModeler.modelTypeLiteral (LiteralTypeModeler.java:314) [wscompile] at com.sun.xml.rpc.processor.modeler.rmi.LiteralTypeModeler.modelTypeLiteral (LiteralTypeModeler.java:52) [wscompile] at com.sun.xml.rpc.processor.modeler.rmi.LiteralTypeModeler.modelTypeLiteral (LiteralTypeModeler.java:120) [wscompile] at com.sun.xml.rpc.processor.modeler.rmi.LiteralTypeModeler.modelTypeLiteral (LiteralTypeModeler.java:52) [wscompile] at com.sun.xml.rpc.processor.modeler.rmi.LiteralTypeModeler.fillInStructure (LiteralTypeModeler.java:623) [wscompile] at com.sun.xml.rpc.processor.modeler.rmi.LiteralTypeModeler.modelTypeLiteral (LiteralTypeModeler.java:349) [wscompile] at com.sun.xml.rpc.processor.modeler.rmi.LiteralTypeModeler.modelTypeLiteral (LiteralTypeModeler.java:52) [wscompile] at com.sun.xml.rpc.processor.modeler.rmi.LiteralExceptionModeler.createLiteralMembe r(LiteralExceptionModeler.java:209) [wscompile] at com.sun.xml.rpc.processor.modeler.rmi.LiteralExceptionModeler.addMessage (LiteralExceptionModeler.java:237) [wscompile] at com.sun.xml.rpc.processor.modeler.rmi.LiteralExceptionModeler.createFault (LiteralExceptionModeler.java:127) [wscompile] at com.sun.xml.rpc.processor.modeler.rmi.ExceptionModelerBase.modelException (ExceptionModelerBase.java:91) [wscompile] at com.sun.xml.rpc.processor.modeler.rmi.RmiModeler.processRpcLiteralMethod (RmiModeler.java:1542) [wscompile] at com.sun.xml.rpc.processor.modeler.rmi.RmiModeler.processMethod (RmiModeler.java:832) [wscompile] at com.sun.xml.rpc.processor.modeler.rmi.RmiModeler.processInterface (RmiModeler.java:748) [wscompile] at com.sun.xml.rpc.processor.modeler.rmi.RmiModeler.modelPort (RmiModeler.java:683) [wscompile] at com.sun.xml.rpc.processor.modeler.rmi.RmiModeler.buildLiteralModel (RmiModeler.java:603) [wscompile] at com.sun.xml.rpc.processor.modeler.rmi.RmiModeler.buildModel (RmiModeler.java:457) [wscompile] at com.sun.xml.rpc.processor.config.ModelInfo.buildModel (ModelInfo.java:88) [wscompile] at com.sun.xml.rpc.processor.Processor.runModeler (Processor.java:63) [wscompile] at com.sun.xml.rpc.tools.wscompile.CompileTool.run (CompileTool.java:714) [wscompile] at com.sun.xml.rpc.util.ToolBase.run(ToolBase.java:43) [wscompile] at com.sun.xml.rpc.tools.wscompile.Main.main(Main.java:22) [wscompile] Fehler: Klasse java.lang.StackTraceElement verf³gt nicht ³ber einen ÷ffentlich zugõnglichen leeren Konstruktor --> Error: Class java.lang.StackTraceElement has no public no argument constructor Here the wscompile statement we use: <wscompile define="true" nonClassDir="$

{ConfigWebService.xml.dir}" xPrintStackTrace="true" verbose="false" debug="true" model="${ConfigWebService.xml.dir}

/$

{webservice.model.file.name}

" features="rpcliteral" config="$

{each.ConfigWebService.xml.file}

" fork="true">

Environment

Operating System: Windows 2000 Platform: All

Affected Versions

[current]

Tomas-Kraus commented 6 years ago
Tomas-Kraus commented 19 years ago

@glassfishrobot Commented Reported by semmel

Tomas-Kraus commented 19 years ago

@glassfishrobot Commented kohlert said: Do you have the same problem with JWSDP 1.6? Can you include the exception class that is causing the problem?

Tomas-Kraus commented 19 years ago

@glassfishrobot Commented kohlert said: reassign

Tomas-Kraus commented 19 years ago

@glassfishrobot Commented Was assigned to kohlert

Tomas-Kraus commented 7 years ago

@glassfishrobot Commented This issue was imported from java.net JIRA JAX_RPC-19