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

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

    Daniel Sachse Newbie

      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 name="jenkins">

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


           <virtual-server name="foobar">

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




      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"


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





      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?