[jboss-jira] [JBoss JIRA] Resolved: (EJBTHREE-1404) Wrong business interface detection
Andrew Lee Rubinger (JIRA)
jira-events at lists.jboss.org
Thu Jun 5 06:31:20 EDT 2008
[ http://jira.jboss.com/jira/browse/EJBTHREE-1404?page=all ]
Andrew Lee Rubinger resolved EJBTHREE-1404.
-------------------------------------------
Resolution: Rejected
Assignee: Richard Opalka
Not a bug.
> Wrong business interface detection
> ----------------------------------
>
> Key: EJBTHREE-1404
> URL: http://jira.jboss.com/jira/browse/EJBTHREE-1404
> Project: EJB 3.0
> Issue Type: Bug
> Affects Versions: AS 5.0.0.CR1
> Reporter: Richard Opalka
> Assigned To: Richard Opalka
> Fix For: AS 5.0.0.CR1
>
> Attachments: jaxws-jbws944.jar
>
>
> 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({EJB3RemoteBusinessInterface.class,EJB3RemoteInterface.class})
> @RemoteHome(EJB3RemoteHome.class)
> @Stateless(name = "FooBean01")
> public class EJB3Bean01 implements EJB3RemoteBusinessInterface
> {
> @WebMethod
> public String echo(String input)
> {
> return 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
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list