users@glassfish.java.net

Re: SLSB that is also a WebService: annotation question

From: <glassfish_at_javadesktop.org>
Date: Thu, 09 Apr 2009 12:15:20 PDT

O...K, let's try a different approach.

I have a simple ear file that passes the validator and then Glassfish blows up with a WSGEN FAILED error.

The SayHello interface is as follows:
[code]
package net.foobar;
import javax.ejb.Remote;
import javax.jws.WebService;
@Remote
@WebService(targetNamespace = "http://foobar.net/wsdl")
public interface SayHello {
  public String sayHello();
}
[/code]
The SayHelloImpl implementation is as follows:
[code]
package net.foobar;
import javax.ejb.Stateless;
import javax.jws.WebMethod;
import javax.jws.WebService;
@Stateless(name="SayHello")
@WebService(portName = "SayHelloPort",
            serviceName = "SayHelloWsService",
            endpointInterface = "net.foobar.SayHello",
            targetNamespace="http://foobar.net/wsdl"
            )
public class SayHelloImpl implements SayHello {
  @WebMethod
  public String sayHello() {
    return "Hello!";
  }
}
[/code]
Packing this SLSB-cum-webservice into an .ear and attempting deployment results in:
[code]
[#|2009-04-09T15:09:15.625-0400|SEVERE|sun-appserver2.1|javax.enterprise.system.tools.deployment|_ThreadID=28;_ThreadName=Thread-913;_RequestID=c8dc8c9c-3f3b-42be-9933-9d7096e9fb02;|Exception occured in J2EEC Phase
com.sun.enterprise.deployment.backend.IASDeploymentException: WSGEN FAILED
        at com.sun.enterprise.webservice.WsUtil.genWSInfo(WsUtil.java:2256)
        at com.sun.enterprise.deployment.backend.AppDeployerBase.loadDescriptors(AppDeployerBase.java:360)
        at com.sun.enterprise.deployment.backend.AppDeployer.explodeArchive(AppDeployer.java:303)
        at com.sun.enterprise.deployment.backend.AppDeployer.deploy(AppDeployer.java:207)
        at com.sun.enterprise.deployment.backend.AppDeployer.doRequestFinish(AppDeployer.java:148)
        at com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:208)
        at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108)
        at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:966)
        at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:283)
        at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:835)
        at com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:187)
        at com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:225)
|#]
[/code]
What have I done wrong?

Best,
Laird
[Message sent by forum member 'ljnelson' (ljnelson)]

http://forums.java.net/jive/thread.jspa?messageID=341412