How to load embedded JBoss into Tomat

Source: Internet
Author: User
Tags jboss jboss application server server port tomcat

Recently prepared to study the seam framework, focusing on the content of the JBPM Integration section. Because seam is an jboss product, it is officially recommended that the JBoss application server be used. Personally think that thing too much more than 100 MB, lazy download! Looked at the next seam document, which said that you can use tomcat+ embedded JBoss, this is more cool, embedded JBoss is only 20MB. The configuration process is documented below. My machine environment

Software version OS Win7 Professional Edition JDK 1.6.0_18-b07 TOMCAT 6.0.24 embedded-jboss beta3. SP10 Seam Framework 2.2.1.CR1 ANT 1.7.1

The reason why my machine environment, because the configuration work and software This edition has a lot of relationship, I hope the peers try to avoid detours!

Embedded JBoss ++-→tomcat

Load embedded JBoss into tomcat:

Download the embedded JBoss, unzip the bootstrap and Lib directory all content, in addition to jndi.properties files, are copied to Tomcat's Lib directory. Removing Annotations-api.jar files from Tomcat's lib directory

Next, you need to update two profiles to increase the functionality that is unique to embedded JBoss.

Add the embedded JBoss listener to the conf/server.xml. It should be lined up behind all the other listener in the file.

<server port= "8005" shutdown= "shutdown" >
    <!--Comment These entries out to disable JMX Mbeans support fo R the Administration Web application-->
   <listener classname= " Org.apache.catalina.core.AprLifecycleListener "   />
   <listener classname=" Org.apache.catalina.mbeans.ServerLifecycleListener "   />
   <listener classname=" Org.apache.catalina.mbeans.GlobalResourcesLifecycleListener "   />
   <listener classname=" Org.apache.catalina.storeconfig.StoreConfigLifecycleListener "   />
   <!--add embedded JBoss listener-->
   <listener classname= "Org.jboss.embedded.tomcat.EmbeddedJBossBootstrapListener"   />

You should enable the war file scanning feature by adding a listener to the Conf/context.xml file.

<Context>
     <!--Default set of monitored resources-->
     <WatchedResource>WEB-INF/web.xml< /watchedresource>
      <!--Uncomment this to disable session persistence across Tomcat restarts-->
     <!--     <manager pathname= ""   />     -->
 <!--add embedded JBoss listener--> <listener
         " Org.jboss.embedded.tomcat.WebinfScanner "   /> </Context>

If you use JDK6, you need to set the java_opts=-dsun.lang.classloader.allowarraysyntax=true,win7 in the environment variable to set the following figure:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.