[mod_cluster-issues] [JBoss JIRA] Commented: (MODCLUSTER-152) Redeploy EAR with @WebService annotated beans cause 404

Gábor Auth (JIRA) jira-events at lists.jboss.org
Fri May 7 16:02:05 EDT 2010


    [ https://jira.jboss.org/jira/browse/MODCLUSTER-152?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12529678#action_12529678 ] 

Gábor Auth commented on MODCLUSTER-152:
----------------------------------------

There is no mcmp command in the access_log (grep -i mcmp access_log does not print any lines)... :(

Only the general deploy messages is in the server.log:

2010-05-07 14:26:20,725 INFO  [org.jboss.ejb3.deployers.Ejb3DependenciesDeployer] (HDScanner) Encountered deployment AbstractVFSDeploymentContext at 1921551406{
vfszip:/opt/jboss-5.1.0.GA/server/esb/deploy/Test-1.0.0.jar/}
2010-05-07 14:26:20,725 INFO  [org.jboss.ejb3.deployers.Ejb3DependenciesDeployer] (HDScanner) Encountered deployment AbstractVFSDeploymentContext at 1921551406{
vfszip:/opt/jboss-5.1.0.GA/server/esb/deploy/Test-1.0.0.jar/}
2010-05-07 14:26:20,736 INFO  [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) Created KernelDeployment for: Test-1.0.0.jar
2010-05-07 14:26:20,736 INFO  [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) installing bean: jboss.j2ee:jar=Test-1.0.0.jar,name=TestBean,service=EJB3
2010-05-07 14:26:20,736 INFO  [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner)   with dependencies:
2010-05-07 14:26:20,736 INFO  [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner)   and demands:
2010-05-07 14:26:20,737 INFO  [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner)      jboss.ejb:service=EJBTimerService
2010-05-07 14:26:20,737 INFO  [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner)   and supplies:
2010-05-07 14:26:20,737 INFO  [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner)      jndi:TestBean/local-hu.javaforum.modcluster.webservice.test.service.T
est
2010-05-07 14:26:20,737 INFO  [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner)      jndi:hu.javaforum.modcluster.webservice.test.service.Test
2010-05-07 14:26:20,737 INFO  [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner)      Class:hu.javaforum.modcluster.webservice.test.service.Test
2010-05-07 14:26:20,737 INFO  [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner)      jndi:TestBean/local
2010-05-07 14:26:20,737 INFO  [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) Added bean(jboss.j2ee:jar=Test-1.0.0.jar,name=TestBean,service=EJB3) to Ke
rnelDeployment of: Test-1.0.0.jar
2010-05-07 14:26:20,739 INFO  [org.jboss.ejb3.endpoint.deployers.EJB3EndpointDeployer] (HDScanner) Deploy AbstractBeanMetaData at 7740862b{name=jboss.j2ee:jar=T
est-1.0.0.jar,name=TestBean,service=EJB3_endpoint bean=org.jboss.ejb3.endpoint.deployers.impl.EndpointImpl properties=[container] constructor=null autowireCa
ndidate=true}
2010-05-07 14:26:20,786 INFO  [org.jboss.ejb3.session.SessionSpecContainer] (HDScanner) Starting jboss.j2ee:jar=Test-1.0.0.jar,name=TestBean,service=EJB3
2010-05-07 14:26:20,787 INFO  [org.jboss.ejb3.EJBContainer] (HDScanner) STARTED EJB: hu.javaforum.modcluster.webservice.test.service.TestBean ejbName: TestBe
an
2010-05-07 14:26:20,801 INFO  [org.jboss.ejb3.proxy.impl.jndiregistrar.JndiSessionRegistrarBase] (HDScanner) Binding the following Entries in Global JNDI:

        hu.javaforum.modcluster.webservice.test.service.Test - EJB3.x Default Local Business Interface
        TestBean/local-hu.javaforum.modcluster.webservice.test.service.Test - EJB3.x Local Business Interface

2010-05-07 14:26:20,928 INFO  [org.jboss.wsf.stack.jbws.WSDLFilePublisher] (HDScanner) WSDL published to: file:/opt/jboss-5.1.0.GA/server/esb/data/wsdl/Test-
1.0.0.jar/TestBeanService7447294012737155269.wsdl
2010-05-07 14:26:20,936 INFO  [org.jboss.wsf.framework.management.DefaultEndpointRegistry] (HDScanner) register: jboss.ws:context=ModCluster-test,endpoint=TestBean
2010-05-07 14:26:20,965 INFO  [org.jboss.web.tomcat.service.deployers.TomcatDeployment] (HDScanner) deploy, ctxPath=/ModCluster-test
2010-05-07 14:26:21,003 WARNING [javax.enterprise.resource.webcontainer.jsf.config] (HDScanner) Unable to process deployment descriptor for context '/ModCluster-test'
2010-05-07 14:26:21,004 INFO  [javax.enterprise.resource.webcontainer.jsf.config] (HDScanner) Initializing Mojarra (1.2_12-b01-FCS) for context '/ModCluster-test'
2010-05-07 14:26:40,775 WARN  [org.jboss.ejb3.interceptors.aop.InterceptorsFactory] (ajp-10.8.27.6-8009-15) EJBTHREE-1246: Do not use InterceptorsFactory with a ManagedObjectAdvisor, InterceptorRegistry should be used via the bean container
2010-05-07 14:26:40,775 WARN  [org.jboss.ejb3.interceptors.aop.InterceptorsFactory] (ajp-10.8.27.6-8009-15) EJBTHREE-1246: Do not use InterceptorsFactory with a ManagedObjectAdvisor, InterceptorRegistry should be used via the bean container

> Redeploy EAR with @WebService annotated beans cause 404
> -------------------------------------------------------
>
>                 Key: MODCLUSTER-152
>                 URL: https://jira.jboss.org/jira/browse/MODCLUSTER-152
>             Project: mod_cluster
>          Issue Type: Bug
>    Affects Versions: 1.0.3.GA, 1.1.0.CR1
>         Environment: Linux hostname 2.6.18-194.el5xen #1 SMP Tue Mar 16 22:01:26 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux
> JBoss 5.1.0.GA
> ModCluster 1.3.0.GA
>            Reporter: Gábor Auth
>            Assignee: Jean-Frederic Clere
>         Attachments: Common-test.zip, Test-1.0.0.jar
>
>
> I've tested a ModCluster 1.0.3.GA with the load-demo.war, and it works; I've started a JMeter testcase with 200 threads, then I've stopped and started the one of the two AS node; I've undeployed in the node1 the load-demo.war, then I've deployed again the load-demo.war: not found any errors, it works, except some CacheManager NPE while the SessionCache is synchronizing:
> 14:16:28,261 ERROR [load-demo] Caught exception rolling back transaction
> java.lang.NullPointerException
>         at org.jboss.web.tomcat.service.session.JBossCacheManager.loadSession(JBossCacheManager.java:1857)
>         at org.jboss.web.tomcat.service.session.JBossCacheManager.findSession(JBossCacheManager.java:489) ).
> I've created a simple "echo" EJB with these annotations:
> @MTOM
> @Local
> @WebService
> @Stateless(mappedName = "hu.javaforum.modcluster.webservice.test.service.Test")
> @LocalBinding(jndiBinding = "hu.javaforum.modcluster.webservice.test.service.Test")
> @WebContext(contextRoot = "/ModCluster-test", urlPattern = "/service")
> @SOAPBinding(style = SOAPBinding.Style.DOCUMENT, parameterStyle = SOAPBinding.ParameterStyle.WRAPPED)
> public class TestBean implements Test
> {
>   @Override
>   @TransactionAttribute(TransactionAttributeType.SUPPORTS)
>   public String process(@WebParam(name = "request") String request)
>   {
>     return request;
>   }
> }
> I've created a JAR, and I've deployed it to the cluster nodes, it works, I've started a JMeter and soapUI tests, it works.
> Then I've undeployed this JAR in the node1, it works, all test passes.
> Then I've deployed again (or redeploy) this JAR in the node1, and I've seen some HTTP/404 error in the reply:
> HTTP Status 404 - /ModCluster-test/service
> [...]
> The requested resource (/ModCluster-test/service) is not available.
> I've seen it in the httpd's access_log:
> x.x.x.x - - [07/May/2010:14:26:20 +0200] "POST /ModCluster-test/service HTTP/1.1" 404 1056 "-" "Jakarta Commons-HttpClient/3.1"
> And I've seen it in the access.log in the node1:
> x.x.x.x - - [07/May/2010:14:26:20 +0200] "POST /ModCluster-test/service HTTP/1.1" 404 1056
> It is bug? :)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       



More information about the mod_cluster-issues mailing list