Hi all,

I have JBoss-3.0.5-Tomcat-4.1.18 bundle just running fine. I'm trying to associate more than one virtual host to a WAR I have. When I create a jboss-web.xml with this:

<?xml version='1.0' encoding='UTF-8'?>
<jboss-web>
        <context-root>/</context-root>
        <virtual-host>www.domain.com</virtual-host>
</jboss-web>

It works fine. But if I try to an additional host,

<?xml version='1.0' encoding='UTF-8'?>
<jboss-web>
        <context-root>/</context-root>
        <virtual-host>www.domain.com</virtual-host>

        <virtual-host>domain.com</virtual-host>

</jboss-web>

I have a NPE during deployment.

What's the right way to use virtual hosts with additional domains ? Should I have to duplicate my WAR ( and then ... what about sessions ? )

Thanks

Renato.



Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, and more

Reply via email to