1 Reply Latest reply on Apr 25, 2011 10:59 AM by Peter Johnson

    When I deploy a war file with digital file name, ctxPath went wrong, WHY?

    anson an Newbie

      Hi,  all


      I am a newer about JBoss. And I used JBoss 4.2.3 GA


      I have deloy a war named 01.war application to $JBOSS_HOME/server/default/deploy/


      When I started JBoss, I found that the context path of 01.war turned to:


      [TomcatDeployer] deploy, ctxPath=/, warUrl=.../deploy/01.war/




      Then I have rename war filename to 01forum.war, and restarted JBoss, JBoss log showed:


      [TomcatDeployer] deploy, ctxPath=/forum, warUrl=.../deploy/01forum.war/


      Open my web browser, type URL: http://localhost/forum , the page could be showed correctly.

      But when change the URL to http://localhost/01forum , there was a 404 error.


      It seams that JBoss will cut the prefix digit in war file name, this is a BUG OR JBOSS SPEC?


      Could anyone told me the truth !!