11 Replies Latest reply on Feb 22, 2009 10:18 PM by abhinav goel

    classpath in war, jboss5

    abhinav goel Newbie

      i hav a sar in deploy.last folder. there is a war in that sar. i hav to access a xsl file kept in web-inf/classes/com/portal/layout/tabColumn/file.xsl
      jboss is not able to find it.
      if i keep this xsl file in a jar n put that jar in default/lib folder then its able to pick that file.

      <bean name="WarClassLoaderDeployer" class="org.jboss.web.tomcat.service.deployers.WarClassLoaderDeployer">
       <property name="relativeOrder">-1</property>
      
       <property name="includeWebInfInClasspath">true</property>
       <property name="filteredPackages">javax.servlet,org.apache.commons.logging</property>
      
       </bean>


       <!-- Get the flag indicating if the normal Java2 parent first class
       loading model should be used over the servlet 2.3 web container first
       model.
       -->
       <property name="java2ClassLoadingCompliance">true</property>
       <!-- A flag indicating if the JBoss Loader should be used. This loader
       uses a unified class loader as the class loader rather than the tomcat
       specific class loader.
       The default is false to ensure that wars have isolated class loading
       for duplicate jars and jsp files.
       -->
       <property name="useJBossWebLoader">true</property>
       <!-- The list of package prefixes that should not be loaded without
       delegating to the parent class loader before trying the web app
       class loader. The packages listed here are those tha are used by
       the web container implementation and cannot be overriden. The format
       is a comma separated list of the package names. There cannot be any
       whitespace between the package prefixes.
       This setting only applies when UseJBossWebLoader=false.
       -->
       <property name="filteredPackages">javax.servlet,org.apache.commons.logging</property>


      i want jboss to pick it from my war only. is there any configuration required to do it?