-
Bug
-
Resolution: Won't Do
-
Major
-
AS 5.0.0.CR1
-
None
-
None
I've got the following archive content:
jar -tvf jaxws-jbws944.jar
META-INF/
META-INF/MANIFEST.MF
org/
org/jboss/
org/jboss/test/
org/jboss/test/ws/
org/jboss/test/ws/jaxws/
org/jboss/test/ws/jaxws/jbws944/
org/jboss/test/ws/jaxws/jbws944/EJB3Bean01.class
org/jboss/test/ws/jaxws/jbws944/EJB3RemoteBusinessInterface.class
org/jboss/test/ws/jaxws/jbws944/EJB3RemoteHome.class
org/jboss/test/ws/jaxws/jbws944/EJB3RemoteInterface.class
And here are the source codes:
// EJB3RemoteInterface.java
public interface EJB3RemoteInterface extends EJBObject
{
String echo(String input);
}
// EJB3RemoteHome.java
public interface EJB3RemoteHome extends EJBHome
{
EJB3RemoteInterface create() throws RemoteException, CreateException;
}
// EJB3RemoteBusinessInterface.java
public interface EJB3RemoteBusinessInterface
{
String echo(String input);
}
// EJB3Bean01.java
package org.jboss.test.ws.jaxws.jbws944;
import javax.ejb.Remote;
import javax.ejb.RemoteHome;
import javax.ejb.Stateless;
import javax.jws.WebMethod;
import javax.jws.WebService;
import javax.jws.soap.SOAPBinding;
import org.jboss.wsf.spi.annotation.WebContext;
@WebService(name = "EJB3Bean", serviceName = "EJB3BeanService", targetNamespace = "http://org.jboss.ws/jbws944")
@WebContext(contextRoot = "/jaxws-jbws944", urlPattern = "/FooBean01")
@SOAPBinding(style = SOAPBinding.Style.RPC)
@Remote(
)
@RemoteHome(EJB3RemoteHome.class)
@Stateless(name = "FooBean01")
public class EJB3Bean01 implements EJB3RemoteBusinessInterface
{
@WebMethod
public String echo(String input)
}
And I'm getting the following exception on server side when I'll try to deploy this archive:
Caused by: java.lang.IllegalStateException: EJB 3.0 Core Specification Violation (4.6.6): The session bean's business interface interface org.jboss.test.ws.jaxws.jbws944.EJB3RemoteInterface must not extend the javax.ejb.EJBObject interface.
at org.jboss.metadata.annotation.creator.ejb.RemoteProcessor.addBusinessInterface(RemoteProcessor.java:55)
at org.jboss.metadata.annotation.creator.ejb.RemoteProcessor.process(RemoteProcessor.java:87)
at org.jboss.metadata.annotation.creator.ejb.RemoteProcessor.process(RemoteProcessor.java:42)
at org.jboss.metadata.annotation.creator.AbstractComponentProcessor.processClass(AbstractComponentProcessor.java:245)
at org.jboss.metadata.annotation.creator.AbstractComponentProcessor.processClass(AbstractComponentProcessor.java:213)
at org.jboss.metadata.annotation.creator.ejb.AbstractEnterpriseBeanProcessor.process(AbstractEnterpriseBeanProcessor.java:104)
at org.jboss.metadata.annotation.creator.ejb.AbstractEnterpriseBeanProcessor.process(AbstractEnterpriseBeanProcessor.java:51)
at org.jboss.metadata.annotation.creator.ejb.EjbJar30Creator.create(EjbJar30Creator.java:68)
at org.jboss.deployment.AnnotationMetaDataDeployer.processJBossMetaData(AnnotationMetaDataDeployer.java:231)
at org.jboss.deployment.AnnotationMetaDataDeployer.deploy(AnnotationMetaDataDeployer.java:200)
at org.jboss.deployment.AnnotationMetaDataDeployer.deploy(AnnotationMetaDataDeployer.java:93)
at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:174)
... 62 more