You are on page 1of 3

Tweet

0
App Development in a Mobile World: A CIO Handbook
Download Now
Home / FAQ / Java Tools / AppServer
How can I integrate Tomcat with JBoss?
Created May 4, 2012
Luigi Viggiano
Most of this information comes from the official JBoss site at http://www.jboss.org/business/jboss-
tomcat.html
First of all, JBoss has been tested with tomcat 3.2.1, newer version shall be configured in similar way
I think.
Tomcat libs must be in classpath; then edit JBOSS_HOME/conf/default/jboss.conf and un-comment
ClassPathExtension mbean for the tomcat lib directory to:
<MLET CODE = "org.jboss.util.ClassPathExtension" ARCHIVE="jboss.jar" CODEBASE="../../lib/ext/">
<ARG TYPE="java.lang.String" VALUE="TOMCAT_HOME/lib/">
<ARG TYPE="java.lang.String" VALUE="Tomcat">
</MLET>
edit JBOSS_HOME/conf/default/jboss.jcml and uncomment the EmbeddedTomcatService mbean.
Locate:
<mbean code="org.jboss.tomcat.EmbeddedTomcatService" name="DefaultDomain:service=EmbeddedTomcat" />
Always in jboss.jcml, check that J2eeDeployer is:
<mbean code="org.jboss.deployment.J2eeDeployer" name="J2EE:service=J2eeDeployer">
<attribute name="DeployerName">Default</attribute>
<attribute name="JarDeployerName">:service=ContainerFactory</attribute>
<attribute name="WarDeployerName">:service=EmbeddedTomcat</attribute>
<mbean>
Add the following lines to TOMCAT_HOME/conf/server.xml
<ContextInterceptor className="org.jboss.tomcat.ContextClassLoaderInterceptor" />
<ContextInterceptor className="org.jboss.tomcat.naming.JbossWebXmlReader" />
<RequestInterceptor className="org.apache.tomcat.request.Jdk12Interceptor" />
<RequestInterceptor className="org.jboss.tomcat.security.JbossRealm" />
To compile JSP files, add the JDK lib/tools.jar file to the classpath in run.sh/run.bat, or copy tools.jar
to the TOMCAT_HOME/lib directory.
Starting JBoss with run.sh/run.bat you should now see the following Tomcat related output in your
log messages:
Using configuration "default"
[Info] Java version: 1.3.0_01,Sun Microsystems Inc.
[Info] Java VM: Java HotSpot(TM) Server VM 1.3.0_01,Sun Microsystems Inc.
[Info] System: Linux 2.2.16-22,i386
...
[EmbeddedTomcat] Starting
[EmbeddedTomcat] Starting EmbeddedTomcat....
2001-02-20 05:01:23 - ContextManager: Adding context Ctx( /examples )
2001-02-20 05:01:23 - ContextManager: Adding context Ctx( /admin )
[EmbeddedTomcat] Starting tomcat. Check logs/tomcat.log for error messages
2001-02-20 05:01:23 - ContextManager: Adding context Ctx( )
2001-02-20 05:01:23 - ContextManager: Adding context Ctx( /test )
2001-02-20 05:01:25 - PoolTcpConnector: Starting HttpConnectionHandler on 8080
2001-02-20 05:01:25 - PoolTcpConnector: Starting Ajp12ConnectionHandler on 8007
[EmbeddedTomcat] OK
[EmbeddedTomcat] Started
...
The Java Game Development Tutorial
Files and Directories in Java
Load Testing your Applications with Apache
JMeter
Unit Testing Java Programs
Using SOAP with Java
0
Like Like
Most Popular jGuru Stories
Editor's Picks Most Popular
Search Home Articles FAQs Downloads Learn Forums Newsletter

How can I integrate Tomcat with JBoss? http://www.jguru.com/faq/view.jsp?EID=385411
1 of 3 07/18/2014 02:15:PM
About | Sitemap | Contact
Post a comment Email Article Print Article
Reply to this comment
Reply to this comment
[Default] JBoss PRE-2.1 Started in 0m:14s
That's all. Check the link given at the top for updated/more detailed infos.
2 Comments (click to add your comment)
By Viet JaMarch 13 2003
Hi, I want runing jboss and tomcat seperately to easy debug. How do I do to
integrate Jboss with Tomcat. I using jboss3.0.6, Tomcat4.1.18 please help me.
Viet Ja.
By Mark MartinMay 13 2003 14:01 PDT
This should get you started in the right direction, at least:
http://www.purposesolutions.com/Resources/EclipseJ2EE.html Good luck.
By yaakov dabushJuly 7 2002
ugins.LogInterceptor.invoke(LogInterceptor.java:170) at
org.jboss.ejb.MessageDrivenContainer.invoke(MessageDrivenContainer.java:281)
at
org.jboss.ejb.plugins.jms.JMSContainerInvoker.invoke(JMSContainerInvoker.java:584)
at
org.jboss.ejb.plugins.jms.JMSContainerInvoker$MessageListenerImpl.onMessage(JMSContainerInvoker.java:930)
at org.jboss.jms.asf.StdServerSession.onMessage(StdServerSession.java:233) at
org.jboss.mq.SpyMessageConsumer.sessionConsumerProcessMessage(SpyMessageConsumer.java:565)
at
org.jboss.mq.SpyMessageConsumer.addMessage(SpyMessageConsumer.java:376)
at org.jboss.mq.SpySession.run(SpySession.java:248) at
org.jboss.jms.asf.StdServerSession.run(StdServerSession.java:172) at
EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:728)
at java.lang.Thread.run(Thread.java:484)
By yaakov dabushJuly 07 2002 08:41 PDT
I forgot to mention My mail: kdabush@entopia.com
Comment and Contribute

Your name/nickname
Your email
WebSite
Subject
(Maximum characters: 1200). You have 1200 characters left.


Privacy & Terms
Share Articles
How can I integrate Tomcat with JBoss? http://www.jguru.com/faq/view.jsp?EID=385411
2 of 3 07/18/2014 02:15:PM
Property of Quinstreet Enterprise.
Terms of Service | Licensing & Reprints | About Us | Privacy Policy | Advertise
Copyright 2014 QuinStreet Inc. All Rights Reserved.
How can I integrate Tomcat with JBoss? http://www.jguru.com/faq/view.jsp?EID=385411
3 of 3 07/18/2014 02:15:PM

You might also like