[jboss-jira] [JBoss JIRA] (AS7-4896) AS7 does not deploy @Stateless + @Webservice
Davide Consonni (JIRA)
jira-events at lists.jboss.org
Mon May 28 07:04:17 EDT 2012
[ https://issues.jboss.org/browse/AS7-4896?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12696462#comment-12696462 ]
Davide Consonni commented on AS7-4896:
--------------------------------------
I was wrong with stateful and jndi, you are right. Have a stateful && webservice may be a nonsense combination :)
anyway here my tests:
@Stateless
@WebService
//@LocalBean
public class RuleService { // * NO EJB, OK WEBSERVICE *
12:51:42,968 INFO [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-2) 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:
12:51:42,991 INFO [org.jboss.weld.deployer] (MSC service thread 1-8) JBAS016005: Starting Services for CDI deployment: profilesync-application-ear-2.0.ear
12:51:43,026 INFO [org.jboss.wsf.stack.cxf.metadata.MetadataBuilder] (MSC service thread 1-3) Add Service
id=RuleService
address=http://localhost:8080/profilesync-application-ejb-2.0/RuleService
implementor=com.amadeus.profilesync.ruleseditor.service.RuleService
invoker=org.jboss.wsf.stack.cxf.JBossWSInvoker
serviceName={http://service.ruleseditor.profilesync.amadeus.com/}RuleServiceService
portName={http://service.ruleseditor.profilesync.amadeus.com/}RuleServicePort
wsdlLocation=null
mtomEnabled=false
properties=[org.jboss.as.webservices.metadata.modelEjbComponentViewName -> service jboss.deployment.subunit."profilesync-application-ear-2.0.ear"."profilesync-application-ejb-2.0.jar".component.RuleService.VIEW."com.amadeus.profilesync.ruleseditor.service.RuleService".SERVICE_ENDPOINT]
---------8<-------------8<-------------
@Stateful
@WebService
//@LocalBean
public class RuleService { // * OK EJB, NO WEBSERVICE *
12:53:30,511 INFO [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-2) 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:
java:global/profilesync-application-ear-2.0/profilesync-application-ejb-2.0/RuleService!com.amadeus.profilesync.ruleseditor.service.RuleService
java:app/profilesync-application-ejb-2.0/RuleService!com.amadeus.profilesync.ruleseditor.service.RuleService
java:module/RuleService!com.amadeus.profilesync.ruleseditor.service.RuleService
java:global/profilesync-application-ear-2.0/profilesync-application-ejb-2.0/RuleService
java:app/profilesync-application-ejb-2.0/RuleService
java:module/RuleService
---------8<-------------8<-------------
@Stateless
@WebService
@LocalBean
public class RuleService { // * OK EJB, OK WEBSERVICE *
12:55:00,976 INFO [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-4) 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:
java:global/profilesync-application-ear-2.0/profilesync-application-ejb-2.0/RuleService!com.amadeus.profilesync.ruleseditor.service.RuleService
java:app/profilesync-application-ejb-2.0/RuleService!com.amadeus.profilesync.ruleseditor.service.RuleService
java:module/RuleService!com.amadeus.profilesync.ruleseditor.service.RuleService
12:55:00,975 INFO [org.jboss.weld.deployer] (MSC service thread 1-3) JBAS016002: Processing weld deployment profilesync-application-web-seneca-2.0.war
12:55:01,015 INFO [org.jboss.weld.deployer] (MSC service thread 1-8) JBAS016005: Starting Services for CDI deployment: profilesync-application-ear-2.0.ear
12:55:01,046 INFO [org.jboss.wsf.stack.cxf.metadata.MetadataBuilder] (MSC service thread 1-3) Add Service
id=RuleService
address=http://localhost:8080/profilesync-application-ejb-2.0/RuleService
implementor=com.amadeus.profilesync.ruleseditor.service.RuleService
invoker=org.jboss.wsf.stack.cxf.JBossWSInvoker
serviceName={http://service.ruleseditor.profilesync.amadeus.com/}RuleServiceService
portName={http://service.ruleseditor.profilesync.amadeus.com/}RuleServicePort
wsdlLocation=null
mtomEnabled=false
properties=[org.jboss.as.webservices.metadata.modelEjbComponentViewName -> service jboss.deployment.subunit."profilesync-application-ear-2.0.ear"."profilesync-application-ejb-2.0.jar".component.RuleService.VIEW."com.amadeus.profilesync.ruleseditor.service.RuleService".SERVICE_ENDPOINT]
---------8<-------------8<-------------
Thank you again
> 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: EJB
> Affects Versions: 7.1.1.Final
> Environment: any
> Reporter: Davide Consonni
> Assignee: jaikiran pai
> 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