5 Replies Latest reply on Jul 13, 2012 9:08 AM by Dario Opacek

    Jboss 404 error, but the page exist on a given location!

    Dario Opacek Newbie

      Hi all,

      Let me start with what I was trying to do and where did I came to a halt.

      I'm working on linux using Apache / Jboss.

       

      I have this site lets say www.example.com, and wanted to create a new one www.some.example.com which will located in a first one's folder like this www.example.com.war/some/

      So I added a new folder within my existing application and added a page index.jsp in www.example.com.war/some/. Than I added new virtual-host to apache

       

      <VirtualHost *:80>

      ServerName www.some.example.com

      DocumentRoot /var/www/hosts/www.example.com.war/some/

      ExpiresActive On

      ExpiresByType image/gif A2592000

      ExpiresByType image/jpeg A2592000

      ExpiresByType image/png A2592000

      </VirtualHost>

       

      When trying to view the new site www.some.example.com i get the

      HTTP Status 404 - /index.jsp

      type Status report

      message /index.jsp

      description The requested resource (/index.jsp) is not available.

       

      But when I remove the index.jsp from the folder I get this

      Untitled.png

      So my question is, what am I doing wrong?

      Also I would like to note that Jboss is the owner of the /var/www/hosts/www.example.com.war/some/ folder.

      By googling I found out that I need to add a WEB-INF with

      jboss-web.xml:

       

      <jboss-web>

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

              <virtual-host>www.some.example.com</virtual-host>

      </jboss-web>

       

      and web.xml but by examining the web.xml from my www.example.com application I determined that there is almost nothing specific here, and I can't post that file here due to some security/privacy issues.

       

      As I am new to Jboss/Apache/Linux I would not know where to go next.