4 Replies Latest reply on May 17, 2011 12:52 PM by Jean Deruelle

    Deploy a Sip Servet WAR using Jboss 5.1 remote container support agains MSS

    Sri Narayanan Newbie

      I created a simple sip war , that accepts the invite and sends an OK .This war was successfully deployed and tested in MSS .

      Now I tried using the createFromZipFile to deploy the War from arquillian .

       

      public static WebArchive createTestArchive() {

       

            return ShrinkWrap.createFromZipFile(WebArchive.class, new File("G:/workspaces/arq/demo_ws/sip_failover/sip_failover/target/sip_failover.war"));

         }

       

      But I guess the deployment fails with the log

       

      java.lang.IllegalArgumentException: org.jboss.arquillian.protocol.servlet.v_2_5.ServletProtocolDeploymentPackager can not handle archive of type org.jboss.shrinkwrap.sip.impl.spec.ConvergedSipWebArchiveImpl

          at org.jboss.arquillian.protocol.servlet.v_2_5.ServletProtocolDeploymentPackager.generateDeployment(ServletProtocolDeploymentPackager.java:79)

          at

       

      The server log seems to show that the app is actually deployed

       

       

      13:18:10,661 INFO  [DeployHandler] Handle stream, deploymentTarget: names=[sip_f

      ailover.war], copyContent=true, description=file:/C:/Users/narayant/AppData/Loca

      l/Temp/arquillian6316202379303981542sip_failover.war/sip_failover.war

      13:18:10,857 INFO  [DeployHandler] End handle stream, repositoryName: vfszip:/G:

      /server/mss/server/default/deploy/sip_failover.war/

      13:18:10,887 INFO  [DeployHandler] Begin start, [sip_failover.war]

      13:18:11,805 INFO  [TomcatConvergedDeployment] deploy, ctxPath=/sip_failover

      13:18:11,807 INFO  [SipStandardContext] Initializing the sip context

      13:18:11,825 INFO  [SipStandardContext] sip context Initialized

      13:18:11,825 INFO  [SipStandardContext] Starting the sip context

      13:18:11,852 INFO  [SipStandardContext] Concurrency Control set to None for appl

      ication com.demo.arq.sipservlet.SimpleSipUAS

      13:18:11,852 INFO  [SipApplicationDispatcherImpl] No concurrency control mode fo

      r application com.demo.arq.sipservlet.SimpleSipUAS , defaulting to the container

      wide one : None

      13:18:11,853 INFO  [ProxyTimerServiceImpl] Started proxy timer service org.mobic

      ents.servlet.sip.core.timers.ProxyTimerServiceImpl@ecab30c

      13:18:11,854 INFO  [StandardSipApplicationSessionTimerService] Started timer ser

      vice org.mobicents.servlet.sip.core.timers.StandardSipApplicationSessionTimerSer

      vice@1db0e06a

      13:18:11,854 WARNING [SimpleSipUAS] !!!============Failed Injection=============

      ======= > sipFactory!!!!null

      13:18:11,855 WARNING [SimpleSipUAS] !!!============Failed Injection=============

      =======>sessionsUtil!!!!null

      13:18:11,855 INFO  [SipApplicationDispatcherImpl] the following sip servlet appl

      ication has been added : com.demo.arq.sipservlet.SimpleSipUAS

      13:18:11,855 INFO  [SipApplicationDispatcherImpl] It contains the following Sip

      Servlets :

      13:18:11,856 INFO  [SipApplicationDispatcherImpl] SipApplicationName : com.demo.

      arq.sipservlet.SimpleSipUAS/ServletName : SimpleSipUAS

      13:18:11,856 INFO  [SipStandardContext] sip application session timeout for this

      context is 3 minutes

      13:18:11,856 INFO  [SipStandardContext] http session timeout for this context is

      30 minutes

      13:18:11,856 INFO  [SipStandardContext] sip context started

      13:18:11,858 WARN  [TomcatConvergedDeployment] Failed to setup clustering, clust

      ering disabled. NoClassDefFoundError: org/jboss/cache/pojo/jmx/PojoCacheJmxWrapp

      erMBean

      13:18:11,859 INFO  [DeployHandler] End start, [vfszip:/G:/server/mss/server/defa

      ult/deploy/sip_failover.war/]

      13:18:12,100 WARN  [AbstractManagedObjectPopulator] Cannot create String name fr

      om non-Simple property: ManagedProperty{JNDIName,JNDIName,metaType=SimpleMetaTyp

      e:java.lang.String}, value=null

      13:18:12,108 WARN  [AbstractManagedObjectPopulator] Cannot create String name fr

      om non-Simple property: ManagedProperty{JNDIName,JNDIName,metaType=SimpleMetaTyp

      e:java.lang.String}, value=null

      13:18:13,664 INFO  [DeployHandler] Stop, [sip_failover.war]

      13:18:13,665 INFO  [TomcatDeployment] undeploy, ctxPath=/sip_failover

      13:18:13,667 INFO  [SipStandardContext] Stopping the sip context

      13:18:13,667 WARN  [SipStandardContext] number of active sip sessions : 0

      13:18:13,667 WARN  [SipStandardContext] number of active sip application session

      s : 0

      13:18:13,671 INFO  [SipApplicationDispatcherImpl] the following sip servlet appl

      ication has been removed : com.demo.arq.sipservlet.SimpleSipUAS

      13:18:13,671 INFO  [StandardSipApplicationSessionTimerService] Stopped timer ser

      vice org.mobicents.servlet.sip.core.timers.StandardSipApplicationSessionTimerSer

      vice@1db0e06a

      13:18:13,673 INFO  [TimerServiceImpl] Stopped timer service org.mobicents.servle

      t.sip.core.timers.TimerServiceImpl@65281828

      13:18:13,673 INFO  [ProxyTimerServiceImpl] Stopped proxy timer service org.mobic

      ents.servlet.sip.core.timers.ProxyTimerServiceImpl@ecab30c

      13:18:13,674 INFO  [SipStandardContext] sip context stopped

      13:18:13,724 INFO  [DeployHandler] End stop, [vfszip:/G:/server/mss/server/defau

      lt/deploy/sip_failover.war/]

      13:18:13,767 INFO  [DeployHandler] Remove, [sip_failover.war]

        • 2. Deploy a Sip Servet WAR using Jboss 5.1 remote container support agains MSS
          Aslak Knutsen Master

          There is currently no incontainer support for Sip servlets, if you define the @Deployment.testable=false Arquillian won't try to change the deployment.

          • 3. Deploy a Sip Servet WAR using Jboss 5.1 remote container support agains MSS
            Sri Narayanan Newbie

                @Deployment(testable = false)

                public static WebArchive createTestArchive() {

             

                    return ShrinkWrap

                            .createFromZipFile(

                                    WebArchive.class,

                                    new File(

                                            "G:/workspaces/arq/demo_ws/arq_demo/src/test/resources/sip_failover.war"));

                }

             

            After adding the testable=false ,still getting

            org.jboss.arquillian.spi.client.container.DeploymentException: Could not extract deployment metadata

                at org.jboss.arquillian.container.jbossas.remote_5_1.JBossASRemoteContainer.deploy(JBossASRemoteContainer.java:128)

                at org.jboss.arquillian.impl.client.container.ContainerDeployController$3.call(ContainerDeployController.java:141)

                at org.jboss.arquillian.impl.client.container.ContainerDeployController$3.call(ContainerDeployController.java:115)

                at org.jboss.arquillian.impl.client.container.ContainerDeployController.executeOperation(ContainerDeployController.java:226)

                at org.jboss.arquillian.impl.client.container.ContainerDeployController.deploy(ContainerDeployController.java:114)

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                at java.lang.reflect.Method.invoke(Method.java:597)

                at org.jboss.arquillian.impl.core.ObserverImpl.invoke(ObserverImpl.java:90)

                at org.jboss.arquillian.impl.core.EventContextImpl.invokeObservers(EventContextImpl.java:98)

                at org.jboss.arquillian.impl.core.EventContextImpl.proceed(EventContextImpl.java:80)

                at org.jboss.arquillian.impl.client.ContainerDeploymentContextHandler.createDeploymentContext(ContainerDeploymentContextHandler.java:100)

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                at java.lang.reflect.Method.invoke(Method.java:597)

                at org.jboss.arquillian.impl.core.ObserverImpl.invoke(ObserverImpl.java:90)

                at org.jboss.arquillian.impl.core.EventContextImpl.proceed(EventContextImpl.java:87)

                at org.jboss.arquillian.impl.client.ContainerDeploymentContextHandler.createContainerContext(ContainerDeploymentContextHandler.java:78)

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                at java.lang.reflect.Method.invoke(Method.java:597)

                at org.jboss.arquillian.impl.core.ObserverImpl.invoke(ObserverImpl.java:90)

                at org.jboss.arquillian.impl.core.EventContextImpl.proceed(EventContextImpl.java:87)

                at org.jboss.arquillian.impl.client.container.DeploymentExceptionHandler.verifyExpectedExceptionDuringDeploy(DeploymentExceptionHandler.java:51)

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                at java.lang.reflect.Method.invoke(Method.java:597)

                at org.jboss.arquillian.impl.core.ObserverImpl.invoke(ObserverImpl.java:90)

                at org.jboss.arquillian.impl.core.EventContextImpl.proceed(EventContextImpl.java:87)

                at org.jboss.arquillian.impl.core.ManagerImpl.fire(ManagerImpl.java:126)

                at org.jboss.arquillian.impl.core.ManagerImpl.fire(ManagerImpl.java:106)

                at org.jboss.arquillian.impl.core.EventImpl.fire(EventImpl.java:67)

                at org.jboss.arquillian.impl.client.container.ContainerDeployController$1.perform(ContainerDeployController.java:86)

                at org.jboss.arquillian.impl.client.container.ContainerDeployController$1.perform(ContainerDeployController.java:79)

                at org.jboss.arquillian.impl.client.container.ContainerDeployController.forEachManagedDeployment(ContainerDeployController.java:217)

                at org.jboss.arquillian.impl.client.container.ContainerDeployController.deployManaged(ContainerDeployController.java:78)

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                at java.lang.reflect.Method.invoke(Method.java:597)

                at org.jboss.arquillian.impl.core.ObserverImpl.invoke(ObserverImpl.java:90)

                at org.jboss.arquillian.impl.core.EventContextImpl.invokeObservers(EventContextImpl.java:98)

                at org.jboss.arquillian.impl.core.EventContextImpl.proceed(EventContextImpl.java:80)

                at org.jboss.arquillian.impl.core.ManagerImpl.fire(ManagerImpl.java:126)

                at org.jboss.arquillian.impl.core.ManagerImpl.fire(ManagerImpl.java:106)

                at org.jboss.arquillian.impl.core.EventImpl.fire(EventImpl.java:67)

                at org.jboss.arquillian.impl.client.ContainerEventController.execute(ContainerEventController.java:69)

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                at java.lang.reflect.Method.invoke(Method.java:597)

                at org.jboss.arquillian.impl.core.ObserverImpl.invoke(ObserverImpl.java:90)

                at org.jboss.arquillian.impl.core.EventContextImpl.invokeObservers(EventContextImpl.java:98)

                at org.jboss.arquillian.impl.core.EventContextImpl.proceed(EventContextImpl.java:80)

                at org.jboss.arquillian.impl.TestContextHandler.createClassContext(TestContextHandler.java:68)

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                at java.lang.reflect.Method.invoke(Method.java:597)

                at org.jboss.arquillian.impl.core.ObserverImpl.invoke(ObserverImpl.java:90)

                at org.jboss.arquillian.impl.core.EventContextImpl.proceed(EventContextImpl.java:87)

                at org.jboss.arquillian.impl.TestContextHandler.createSuiteContext(TestContextHandler.java:54)

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                at java.lang.reflect.Method.invoke(Method.java:597)

                at org.jboss.arquillian.impl.core.ObserverImpl.invoke(ObserverImpl.java:90)

                at org.jboss.arquillian.impl.core.EventContextImpl.proceed(EventContextImpl.java:87)

                at org.jboss.arquillian.impl.core.ManagerImpl.fire(ManagerImpl.java:126)

                at org.jboss.arquillian.impl.core.ManagerImpl.fire(ManagerImpl.java:106)

                at org.jboss.arquillian.impl.EventTestRunnerAdaptor.beforeClass(EventTestRunnerAdaptor.java:70)

                at org.jboss.arquillian.junit.Arquillian$2.evaluate(Arquillian.java:170)

                at org.jboss.arquillian.junit.Arquillian.multiExecute(Arquillian.java:303)

                at org.jboss.arquillian.junit.Arquillian.access$300(Arquillian.java:45)

                at org.jboss.arquillian.junit.Arquillian$3.evaluate(Arquillian.java:187)

                at org.junit.runners.ParentRunner.run(ParentRunner.java:236)

                at org.jboss.arquillian.junit.Arquillian.run(Arquillian.java:127)

                at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:49)

                at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)

                at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)

                at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)

                at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)

                at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)

            Caused by: java.lang.NullPointerException

                at org.jboss.arquillian.container.jbossas.remote_5_1.ManagementViewParser.scanWar(ManagementViewParser.java:99)

                at org.jboss.arquillian.container.jbossas.remote_5_1.ManagementViewParser.scanDeployment(ManagementViewParser.java:88)

                at org.jboss.arquillian.container.jbossas.remote_5_1.ManagementViewParser.parse(ManagementViewParser.java:56)

                at org.jboss.arquillian.container.jbossas.remote_5_1.JBossASRemoteContainer.deploy(JBossASRemoteContainer.java:124)

                ... 86 more

            • 4. Deploy a Sip Servet WAR using Jboss 5.1 remote container support agains MSS
              Jean Deruelle Newbie

              Aslak,

               

              If you need help on installing Mobicents Sip Servlets you can refer to http://hudson.jboss.org/hudson/view/Mobicents/job/MobicentsBooks/lastSuccessfulBuild/artifact/sip-servlets/index.html

               

              or ping me on freenode IRC #mobicents channel

               

              Jean