A war file cannot contain anything but servlets. You need to use an ear to 
bundle a war with other deployment types like services and ejbs.

In terms of your example, your simply missing the trailing '/' in the 
TomcatSample-service.xml classpath. The following works fine for me:


  | <server>
  |    <classpath codebase="file:///C:/tmp/etc/"/>  
  |    
  |    <mbean code="org.jboss.security.auth.login.DynamicLoginConfig"
  |       name="jboss.security:applicational=SecurityConfig">
  |       <attribute name="AuthConfig">myloginconfig.xml</attribute>
  |       <depends optional-attribute-name="LoginConfigService">
  |          jboss.security:service=XMLLoginConfig
  |       </depends>
  |       <depends optional-attribute-name="SecurityManagerService">
  |          jboss.security:service=JaasSecurityManager
  |       </depends>
  |    </mbean>
  |  
  |    <mbean code="org.jboss.deployment.scanner.URLDeploymentScanner"
  |       name="jboss.deployment.tcsample:type=DeploymentScanner,flavor=URL">
  |       <depends 
optional-attribute-name="Deployer">jboss.system:service=MainDeployer</depends>
  |       <attribute 
name="URLComparator">org.jboss.deployment.DeploymentSorter</attribute>
  |       <attribute 
name="Filter">org.jboss.deployment.scanner.DeploymentFilter</attribute>
  |       <attribute name="ScanPeriod">5</attribute>
  |       <attribute name="URLs">
  |         file:///C:/tmp/TomcatSampleServlets_jboss/deploy/
  |       </attribute>
  |       <attribute name="RecursiveSearch">True</attribute>
  |    </mbean>
  | </server>
  | 

Note that we have not tested multiple deployments of the URLDeploymentScanner 
so there may be some multi-threaded issue with your war deployments. The URLs 
property accepts a comma seperated list so the second deploy directory can be 
specified in the conf/jboss-service.xml like:


  |    <mbean code="org.jboss.deployment.scanner.URLDeploymentScanner"
  | name="jboss.deployment:type=DeploymentScanner,flavor=URL">
  | ...
  |       <attribute name="URLs">
  |         deploy/,file:///C:/tmp/TomcatSampleServlets_jboss/deploy/
  |       </attribute>
  | ...
  | 


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

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


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to