1 Reply Latest reply on Oct 22, 2004 4:25 PM by keidav

    Multiple Virtualhosts -> Multiple classfiles?

    erikture

      Hello!

      I have just migrated to Jboss 3.2.6 and Tomcat from previously been using 3.2.4 with Jetty.

      My ear file contains one warfile. In jboss-web.xml I define more than one virtual host, for example www.domain1.com and www.domain2.com.

      Everything works fine except that in the work directory there is two directories created, www.domain1.com and www.domain2.com. In each directory a copy of the jsp->java->class files is created. No big deal but why does it have to be multiple instances of the classfiles, one for each domain, they will never be different? When using Jetty I did not recieve those multiple classfiles.

      When having multivple virtual hosts I am also receiving a lot of startup printouts, something about "Registration is already done -> stop".
      What is that? Can it be avoided or is it just how it shall be?

      /Erik

        • 1. Re: Multiple Virtualhosts -> Multiple classfiles?
          keidav

          I am also having the same problem with [Servlet] Registration is not done -> stop

          Everything appears to be working fine... why the messages?

          I have a single war that uses the spring framework and is deployed to two virtual hosts (JBoss 3.2.6) my WAR jboss-web.xml is as follows:

          <?xml version="1.0"?>
          <!DOCTYPE jboss-web PUBLIC "-//JBoss//DTD Web Application 2.3V2//EN" "http://www.jboss.org/j2ee/dtd/jboss-web_3_2.dtd">
          
          <jboss-web>
           <virtual-host>aberdeen</virtual-host>
           <virtual-host>rosebud</virtual-host>
          </jboss-web>