0 Replies Latest reply on Aug 16, 2012 3:21 AM by sachsedaniel

    JBoss-AS Maven plugin won't reinit virtual server configuration

    sachsedaniel

      Hey guys,

       

      first here is my setup:

       

      I have got a JBoss AS  7.1 running with the following virtual-server configuration in the standalone.xml:

       

      <subsystem xmlns="urn:jboss:domain:web:1.1" default-virtual-server="w0mb.at" native="false">

           <connector name="http" protocol="HTTP/1.1" scheme="http" socket-binding="http"/>

           <virtual-server name="w0mb.at" default-web-module="w0mb.at">

                <alias name="www.w0mb.at"/>

           </virtual-server>

           <virtual-server name="jenkins">

                <alias name="jenkins.w0mb.at"/>

           </virtual-server>

           <virtual-server name="foobar">

                <alias name="foobar.w0mb.at"/>

           </virtual-server>

      </subsystem>

       

      My jboss-web.xml of the foobar project:

      <?xml version="1.0" encoding="UTF-8"?>

      <jboss-web xmlns="http://www.jboss.com/xml/ns/javaee"

         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

         xsi:schemaLocation="http://www.jboss.com/xml/ns/javaee http://www.jboss.org/j2ee/schema/jboss-web_5_1.xsd">

         <context-root>/</context-root>

         <virtual-host>foobar</virtual-host>

      </jboss-web>

       

      I encountered the following issues with the jboss-as:deploy Maven goal:

       

      When I upload the generated war via the admin panel, everything works fine and I can access the application via the specified alias "http://foobar.w0mb.at". As soon as I instruct Jenkins to deploy to the JBoss AS via the jboss-as:deploy Maven goal, the application geht deployed, but I can't access it.

       

      Do you have any ideas how I can fix it?

       

      Regards,

       

      Daniel