0 Replies Latest reply on Oct 26, 2010 6:38 AM by hoedic

    JBOSS 5.1-GA War deployment and web resources

    hoedic

      Hello,

       

      I've a problem with a war archive deployed on Jboss 5.1 to provide access to some jnlp files.

      My war file looks like this :

       

      vif57webstart (contextRoot)

      --- css

          style.css

      --- images

          globe.gif

      --- jsp

          product.jsp

      --- META-INF

          jboss-classloading.xml

          jboss-structure.xml

          MANIFEST.MF

      --- vif57

          launch.jnlp

          launch_tactile.jnlp

      --- WEB-INF

          web.xml

          jboss-web.xml

          --- classes

              resources_en.properties

              resources_fr.properties

         --- lib

              jnlpfinder.jar

              jstl.jar

              jnlp-api.jar

          --- tld

              c.tld

              fmt.tld

              x.tld

       

      The jboss-structure.xml file is

      {code:xml}

      <?xml version="1.0" encoding="UTF-8"?>
      <structure>
           <context>
               <path name=""/>
               <metaDataPath>
                   <path name="WEB-INF"/>
               </metaDataPath>       
               <classpath>
                   <path name="WEB-INF/classes"/>
                   <path name="WEB-INF/lib" suffixes=".jar"/>
               </classpath>
           </context>
      </structure>

      {code}

       

      The jboss-classloading.xml file contains :

       

      {code:xml}
      <?xml version="1.0" encoding="UTF-8"?>
      <classloading xmlns="urn:jboss:classloading:1.0"
                    domain="VifVif57Webstart"
                    parent-domain="DefaultDomain"
                    export-all="NON_EMPTY"
                    import-all="true">
      </classloading>
      {code}

       

       

       

      My Jnlp files are placed into a folder (vif57) under the root path (not under the protected WEB-INF folder).

      But when i try to access these resources throw my url (http://localhost:8080/vif57webstart/vif57/launch.jnlp) i get a 404 error.

      I've tried several configurations, modifying both files jboss-structure and jboss-classloading, but i can't solve this damned problem.

       

      What am i missing ?

       

      PS : The same war (without jboss-structure and jboss-classloading) works fine under JBOSS 4.0.5. I can explore the content of the folders vif57, css, images and jsp as well.

       

      Many thanks for your help.