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: