users@jax-rpc.java.net

Error in Service Sepecific Exception during deployment with J2EE RI 1.4 Beta version

From: <chaganti_at_erols.com>
Date: Thu, 27 Feb 2003 10:59:46 -0500

Is there any known bug in the J2EE RI 1.4 beta for JAX-RPC Service Specific
Exceptions?

For the example hello Service I add HelloException
====
public interface HelloIF extends Remote {
    public String sayHello(String s) throws RemoteException, HelloException;
}
implemented like this.
===
public class HelloException extends Exception {

    public HelloException(String message){
      super(message);
    }
}
===
wsdl generation looks fine part of
MyHelloService.wsdl
.........
<message name="HelloIF_sayHello">
    <part name="String_1" type="xsd:string"/></message>
  <message name="HelloIF_sayHelloResponse">
    <part name="result" type="xsd:string"/></message>
  <message name="HelloException">
    <part name="HelloException" type="tns:HelloException"/></message>
  <portType name="HelloIF">
    <operation name="sayHello" parameterOrder="String_1">
      <input message="tns:HelloIF_sayHello"/>
      <output message="tns:HelloIF_sayHelloResponse"/>
      <fault name="HelloException"
message="tns:HelloException"/></operation></portType>
................
During deployment I get following error.
deploy:
     [echo] deploytool.bat -id hello-jaxrpc -deployModule hello-jaxrpc.ear
     [exec] Deploying the module in dist/hello-jaxrpc.ear on the server
localhos
t saving the client jar as null
     [exec] Note : module hello-jaxrpc is already installed. Redeploying...
     [exec] Sender object Deploy Tool : Deploying module hello-jaxrpc
     [exec] error: incorrect fault part name for fault "HelloException" of
opera
tion "sayHello": "HelloException"
     [exec] java.lang.Exception: could not invoke jaxrpc compile
     [exec] at
com.sun.ejb.codegen.J2EEGeneratorDriver.j2eeCompile(J2EEGener
atorDriver.java:1297)
     [exec] at
com.sun.ejb.codegen.J2EEGeneratorDriver.j2eeCompile(J2EEGener
atorDriver.java:1238)
     [exec] at
com.sun.enterprise.tools.deployment.main.DeployTool.deploy(De
ployTool.java:213)
     [exec] at
com.sun.enterprise.tools.deployment.main.Main.deployModule(Ma
in.java:559)
     [exec] at
com.sun.enterprise.tools.deployment.main.Main.internalMain(Ma
in.java:205)
     [exec] at
com.sun.enterprise.tools.deployment.main.Main.main(Main.java:
114)
     [exec] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
     [exec] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
sorImpl.java:39)
     [exec] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
hodAccessorImpl.java:25)
     [exec] at java.lang.reflect.Method.invoke(Method.java:324)
     [exec] at
org.apache.commons.launcher.ChildMain.run(ChildMain.java:280)

     [exec] Caused by: could not invoke jaxrpc compile
     [exec] at
com.sun.ejb.codegen.J2EEGeneratorDriver.jaxrpc(J2EEGeneratorD
river.java:377)
     [exec] at
com.sun.ejb.codegen.J2EEGeneratorDriver.jaxrpcWebService(J2EE
GeneratorDriver.java:391)
     [exec] at
com.sun.ejb.codegen.J2EEGeneratorDriver.jaxrpcWebServices(J2E
EGeneratorDriver.java:483)
     [exec] at
com.sun.ejb.codegen.J2EEGeneratorDriver.jaxrpcCompile(J2EEGen
eratorDriver.java:514)
     [exec] at
com.sun.ejb.codegen.J2EEGeneratorDriver.preDeploy(J2EEGenerat
orDriver.java:1035)
     [exec] at
com.sun.ejb.codegen.J2EEGeneratorDriver.j2eeCompile(J2EEGener
atorDriver.java:1293)
     [exec] ... 10 more
     [exec] Caused by: jaxrpc compilation exception
     [exec] at
com.sun.ejb.codegen.J2EEGeneratorDriver.jaxrpc(J2EEGeneratorD
river.java:374)
     [exec] ... 15 more
     [exec] Error occurred: java.lang.Exception: could not invoke jaxrpc
compile

     [exec] java.lang.Exception: could not invoke jaxrpc compile
     [exec] at
com.sun.ejb.codegen.J2EEGeneratorDriver.j2eeCompile(J2EEGener
atorDriver.java:1297)
     [exec] at
com.sun.ejb.codegen.J2EEGeneratorDriver.j2eeCompile(J2EEGener
atorDriver.java:1238)
     [exec] at
com.sun.enterprise.tools.deployment.main.DeployTool.deploy(De
ployTool.java:213)
     [exec] at
com.sun.enterprise.tools.deployment.main.Main.deployModule(Ma
in.java:559)
     [exec] at
com.sun.enterprise.tools.deployment.main.Main.internalMain(Ma
in.java:205)
     [exec] at
com.sun.enterprise.tools.deployment.main.Main.main(Main.java:
114)
     [exec] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
     [exec] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
sorImpl.java:39)
====================

I would appriciate if anyone has some clue what I am doing error.

Regards
Krishna



--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .