9 Replies Latest reply on Jul 22, 2011 3:04 AM by jaikiran

    how to deploy .war file in JBoss AS 7 ?

    priyankdhadhal

      Hello,

       

      i tried deploying my application on Jboss 7 , i have installed my application at jboss-as-web-7.0.0.Final\standalone\deployments\xxxxx.war

      and renamed it to xxxx.war.dodeploy

       

      i have started standalone.bat from jboss-as-web-7.0.0.Final\bin and jboss server started can be accessible at http://127.0.0.1:8080

       

      but i can not start my application , it says ""

       

      19:39:39,855 INFO  [org.jboss.as.deployment] (MSC service thread 1-2) Started FileSystemDeploymentService for direc

      tory D:\jboss-as-web-7.0.0.Final\jboss-as-web-7.0.0.Final\standalone\deployments

      19:39:39,858 WARN  [org.jboss.as.deployment] (DeploymentScanner-threads - 1) Deployment of 'xxxxxx.war' request

      ed, but the deployment is not present

      19:39:39,879 INFO  [org.jboss.as] (Controller Boot Thread) JBoss AS 7.0.0.Final "Lightning" started in 4873ms - Sta

      rted 92 of 147 services (55 services are passive or on-demand)

       

      i request you to please guide me for deploying .war file correctly on JBoss AS 7

       

      Thanks

       

      Priyank

        • 1. Re: how to deploy .war file in JBoss AS 7 ?
          jaikiran

          Post the listing of the standalone/deployments folder.

          • 2. Re: how to deploy .war file in JBoss AS 7 ?
            jaikiran

            By the way, if this is a zipped archive that you are deploying, then you don't need the .dodeploy marker file.

            • 3. Re: how to deploy .war file in JBoss AS 7 ?
              ssilvert

              The admin console also works nicely:

              http://localhost:9990/console/index.html

               

              Stan

              • 4. Re: how to deploy .war file in JBoss AS 7 ?
                gonne

                You must not rename your web archive to deploy it. Copy your web archive in the deployments folder. If it is a zipped Web archive it will be deployed when you start JBoss. For an exploded web archive you have to create an empty marker file with the name of your web archive and append the suffix ".dodeploy"

                e.g.   xxxxxx.war.dodeploy

                 

                Kind regards,

                Gonne

                • 5. Re: how to deploy .war file in JBoss AS 7 ?
                  jaikiran

                  Ah right! I didn't notice that Priyank had renamed the .war deployment to .war.dodeploy.

                  • 6. Re: how to deploy .war file in JBoss AS 7 ?
                    priyankdhadhal

                    Hello

                     

                    i have tried by ranmame , from xxxx.war  to xxxxx.war.dodeploy  now it says

                     

                    11:25:12,764 INFO  [org.jboss.modules] JBoss Modules version 1.0.1.GA

                    11:25:13,210 INFO  [org.jboss.msc] JBoss MSC version 1.0.0.GA

                    11:25:13,289 INFO  [org.jboss.as] JBoss AS 7.0.0.Final "Lightning" starting

                    11:25:14,635 INFO  [org.jboss.as] creating http management service using network interface (management) port (9990)

                    securePort (-1)

                    11:25:14,673 INFO  [org.jboss.as.logging] Removing bootstrap log handlers

                    11:25:14,694 INFO  [org.jboss.as.connector.subsystems.datasources] (Controller Boot Thread) Deploying JDBC-complian

                    t driver class org.h2.Driver (version 1.2)

                    11:25:14,709 INFO  [org.jboss.as.clustering.infinispan.subsystem] (Controller Boot Thread) Activating Infinispan su

                    bsystem.

                    11:25:14,882 INFO  [org.jboss.as.naming] (Controller Boot Thread) Activating Naming Subsystem

                    11:25:14,901 INFO  [org.jboss.as.naming] (MSC service thread 1-1) Starting Naming Service

                    11:25:14,909 INFO  [org.jboss.as.osgi] (Controller Boot Thread) Activating OSGi Subsystem

                    11:25:14,936 INFO  [org.jboss.as.security] (Controller Boot Thread) Activating Security Subsystem

                    11:25:14,956 INFO  [org.jboss.remoting] (MSC service thread 1-1) JBoss Remoting version 3.2.0.Beta2

                    11:25:14,989 INFO  [org.xnio] (MSC service thread 1-1) XNIO Version 3.0.0.Beta3

                    11:25:15,010 INFO  [org.xnio.nio] (MSC service thread 1-1) XNIO NIO Implementation Version 3.0.0.Beta3

                    11:25:15,375 INFO  [org.apache.catalina.core.AprLifecycleListener] (MSC service thread 1-3) The Apache Tomcat Nativ

                    e library which allows optimal performance in production environments was not found on the java.library.path: C:\Pr

                    ogram Files\Java\jdk1.6.0_05\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Windows\system32;C:\Wi

                    ndows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Bitvise Tunnelier;C:\Pr

                    ogram Files\Common Files\DivX Shared\;C:\Windows\system32\Wbem;C:\Program Files\Microsoft Network Monitor 3\;C:\Pro

                    gram Files\TortoiseSVN\bin;C:\Program Files\Common Files\Roxio Shared\9.0\DLLShared\;C:\Program Files\QuickTime\QTS

                    ystem\;

                    11:25:15,419 INFO  [org.jboss.as.ee] (Controller Boot Thread) Activating EE subsystem

                    11:25:15,638 INFO  [org.jboss.as.remoting] (MSC service thread 1-4) Listening on /127.0.0.1:9999

                    11:25:15,675 INFO  [org.jboss.as.jmx.JMXConnectorService] (MSC service thread 1-3) Starting remote JMX connector

                    11:25:16,074 INFO  [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-1) Starting Coyote HTTP/1.1 on h

                    ttp--127.0.0.1-8080

                    11:25:16,382 INFO  [org.jboss.as.connector] (MSC service thread 1-3) Starting JCA Subsystem (JBoss IronJacamar 1.0.

                    0.CR2)

                    11:25:16,488 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-2) Bound data source [java

                    :jboss/datasources/ExampleDS]

                    11:25:16,927 INFO  [org.jboss.as.deployment] (MSC service thread 1-2) Started FileSystemDeploymentService for direc

                    tory D:\jboss-as-web-7.0.0.Final\jboss-as-web-7.0.0.Final\standalone\deployments

                    11:25:16,930 WARN  [org.jboss.as.deployment] (DeploymentScanner-threads - 1) Deployment of 'xxxxxxx.war' request

                    ed, but the deployment is not present

                    11:25:16,952 INFO  [org.jboss.as] (Controller Boot Thread) JBoss AS 7.0.0.Final "Lightning" started in 4552ms - Sta

                    rted 92 of 147 services (55 services are passive or on-demand)

                    • 7. Re: how to deploy .war file in JBoss AS 7 ?
                      jaikiran

                      priyank dhadhal wrote:

                       

                      Hello

                       

                      i have tried by ranmame , from xxxx.war  to xxxxx.war.dodeploy  now it says

                       

                      Did you read our previous replies?

                      • 8. Re: how to deploy .war file in JBoss AS 7 ?
                        priyankdhadhal

                        1) the file i have is xxxx.war  and i 've also tried deploying  xxxx.war.zip to  /deployment folder but it doesnt appeared

                         

                        2) through jboss admin console , i went to manage deployment i've given path for zip file it generated key then finished the wizard and enabled deployment but no success..

                         

                        3) i 've also created xxxx.war.dodeploy file but still it did not appeared on URL .

                         

                        i got 404 error

                        type Status report

                        message /xxxxxxx

                        description The requested resource (/xxxxxxx) is not available.

                         

                        12:22:01,393 INFO  [org.jboss.as.ee] (Controller Boot Thread) Activating EE subsystem

                        12:22:01,638 INFO  [org.jboss.as.remoting] (MSC service thread 1-2) Listening on /127.0.0.1:9999

                        12:22:01,641 INFO  [org.jboss.as.jmx.JMXConnectorService] (MSC service thread 1-2) Starting remote JMX connector

                        12:22:01,904 INFO  [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-4) Starting Coyote HTTP/1.1 on h

                        ttp--127.0.0.1-8080

                        12:22:02,324 INFO  [org.jboss.as.connector] (MSC service thread 1-2) Starting JCA Subsystem (JBoss IronJacamar 1.0.

                        0.CR2)

                        12:22:02,386 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-4) Bound data source [java

                        :jboss/datasources/ExampleDS]

                        12:22:02,731 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) Starting deployment of "xxxxx.war

                        .zip"

                        12:22:02,737 INFO  [org.jboss.as.deployment] (MSC service thread 1-4) Started FileSystemDeploymentService for direc

                        tory D:\jboss-as-web-7.0.0.Final\jboss-as-web-7.0.0.Final\standalone\deployments

                        12:22:03,164 INFO  [org.jboss.as.server.controller] (Controller Boot Thread) Deployed "xxxxx.war.zip"

                        12:22:03,176 INFO  [org.jboss.as] (Controller Boot Thread) JBoss AS 7.0.0.Final "Lightning" started in 4788ms - Sta

                        rted 107 of 164 services (57 services are passive or on-demand)

                        12:22:10,856 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-4) Stopped deployment xxxxx.war.zip

                        in 39ms

                        12:22:10,903 INFO  [org.jboss.as.server.controller] (HttpManagementService-threads - 1) Undeployed "xxxxx.war.

                        zip"

                        12:22:32,432 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-4) Starting deployment of "xxxxx.war

                        .zip"

                        12:22:32,747 INFO  [org.jboss.as.server.controller] (HttpManagementService-threads - 1) Deployed "xxxxx.war.zi

                        p"

                        • 9. Re: how to deploy .war file in JBoss AS 7 ?
                          jaikiran

                          You are doing too many things at a time. Take a step back and follow this guide https://docs.jboss.org/author/display/AS7/Admin+Guide#AdminGuide-Applicationdeployment