[jboss-jira] [JBoss JIRA] (AS7-4896) AS7 does not deploy @Stateless + @Webservice

jaikiran pai (JIRA) jira-events at lists.jboss.org
Mon May 28 02:27:18 EDT 2012


    [ https://issues.jboss.org/browse/AS7-4896?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12696361#comment-12696361 ] 

jaikiran pai commented on AS7-4896:
-----------------------------------

This looks more like the case where the EJB isn't being marked with an implicit no-interface view. I think I know why that would be the case. Can you in the meantime just mark RuleService bean with a @LocalBean:

{code}
@Stateless
@WebService
@LocalBean // exposes an explicit no-interface view
public class RuleService {
{code}

That should get you past this.

                
> AS7 does not deploy @Stateless + @Webservice
> --------------------------------------------
>
>                 Key: AS7-4896
>                 URL: https://issues.jboss.org/browse/AS7-4896
>             Project: Application Server 7
>          Issue Type: Bug
>          Components: CDI / Weld
>    Affects Versions: 7.1.1.Final
>         Environment: any
>            Reporter: Davide Consonni
>            Assignee: Stuart Douglas
>            Priority: Critical
>              Labels: stateless, webservice
>
> Classes marked with @stateless and @webservice are not deployed. (@Stateful+ at Webservice works)
> -----8<-----------8<-------
> @Stateless
> @WebService
> public class RuleService {
> -----8<-----------8<-------
> @Stateless
> //@WebService /*COMMENTED OUT*/
> public class CredentialService {
> -----8<-----------8<-------
> Here the logs, where you can see that CredentialService is corectly deploye as ejb, but RuleService not:
> 10:08:17,738 INFO  [org.jboss.weld.deployer] (MSC service thread 1-3) JBAS016002: Processing weld deployment profilesync-application-ejb-2.0.jar
> 10:08:17,741 INFO  [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-3) JNDI bindings for session bean named RuleService in deployment unit subdeployment "profilesync-application-ejb-2.0.jar" of deployment "profilesync-application-ear-2.0.ear" are as follows:
> 10:08:17,743 INFO  [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-3) JNDI bindings for session bean named CredentialService in deployment unit subdeployment "profilesync-application-ejb-2.0.jar" of deployment "profilesync-application-ear-2.0.ear" are as follows:
>         java:global/profilesync-application-ear-2.0/profilesync-application-ejb-2.0/CredentialService!com.amadeus.profilesync.ruleseditor.service.CredentialService
>         java:app/profilesync-application-ejb-2.0/CredentialService!com.amadeus.profilesync.ruleseditor.service.CredentialService
>         java:module/CredentialService!com.amadeus.profilesync.ruleseditor.service.CredentialService
>         java:global/profilesync-application-ear-2.0/profilesync-application-ejb-2.0/CredentialService
>         java:app/profilesync-application-ejb-2.0/CredentialService
>         java:module/CredentialService

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list