[jboss-dev-forums] [Deployers on JBoss (Deployers/JBoss)] - Re: Is META-INF in the classpath?

scott.stark@jboss.org do-not-reply at jboss.com
Thu May 29 14:01:51 EDT 2008


No, not generally. If its needed you would have to use a META-INF/jboss-structure.xml to instruct the structure deployers to add it. You then have to specify the complete classpath though. Don't know if the latest classloading deployers have a simpler syntax for this.


  | <structure>
  |     <context>
  |         <path name=""/>
  |         <metaDataPath>
  |             <path name="META-INF"/>
  |         </metaDataPath>
  |         <classpath>
  |             <path name=""/>
  |             <path name="lib" suffixes=".jar"/>
  |         </classpath>
  |     </context>
  |     <context>
  |         <path name="jbosstest-web.war" />
  |         <metaDataPath>
  |             <path name="WEB-INF"/>
  |         </metaDataPath>
  |         <classpath>
  |             <path name="jbosstest-web.war/WEB-INF/classes"/>
  |             <path name="jbosstest-web.war/WEB-INF/lib" suffixes=".jar"/>
  |         </classpath>
  |     </context>
  |     <context>
  |         <path name="wars/notjbosstest-web.war" />
  |         <metaDataPath>
  |             <path name="WEB-INF"/>
  |         </metaDataPath>
  |         <classpath>
  |             <path name="wars/notjbosstest-web.war/WEB-INF/classes"/>
  |         </classpath>
  |     </context>
  |     <context>
  |         <path name="jbosstest-web-ejbs.jar" />
  |         <metaDataPath>
  |             <path name="META-INF"/>
  |         </metaDataPath>
  |         <classpath>
  |             <path name="jbosstest-web-ejbs.jar"/>
  |         </classpath>
  |     </context>
  |     <context>
  |         <path name="cts.jar" />
  |         <metaDataPath>
  |             <path name="META-INF"/>
  |         </metaDataPath>
  |         <classpath>
  |             <path name="cts.jar"/>
  |         </classpath>
  |     </context>
  |     <context>
  |         <path name="websubdir/relative.jar" />
  |         <metaDataPath>
  |             <path name="META-INF"/>
  |         </metaDataPath>
  |         <classpath>
  |             <path name="websubdir/relative.jar"/>
  |         </classpath>
  |     </context>
  |     <context>
  |         <path name="scripts/security-config-service.xml" />
  |     </context>
  | </structure>
  | 


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4154418#4154418

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4154418



More information about the jboss-dev-forums mailing list