File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JBoss/WildFly and the fly likes How to integrate JBoss4 and Tomcat5? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "How to integrate JBoss4 and Tomcat5?" Watch "How to integrate JBoss4 and Tomcat5?" New topic

How to integrate JBoss4 and Tomcat5?

lyo Yashnoo
Ranch Hand

Joined: Sep 15, 2003
Posts: 50
Hi everyone:
I have several web application developed in Tomcat5.Now I need use EJB in it.But you know Tomcat don't support EJB so I must integrate Jboss with Tomcat5.
I don't want to use the the version jboss4.0-tomcat that in it has much different between Tomcat5 and Tomcat4.
Which file I must to set before I use JBoss in tomcat4?
I changed the file "tomcat41-service.xml":
<classpath codebase="../&catalina.home;/common/lib/" archives="*"/>
<classpath codebase="../&catalina.home;/server/lib/" archives="*"/>
<classpath codebase="../&catalina.home;/bin/" archives="*"/>
But I failed.Jboss report error and it says:"there is already has "env" in ................."
How to change the setting file?Thks!
lyo Yashnoo
Ranch Hand

Joined: Sep 15, 2003
Posts: 50
Any Idea?
AstroWoo Zhang

Joined: Jan 30, 2004
Posts: 14
I am a green hand,but I have built my own JBoss-3.2.3 with Tomcat 5 instance
And I think that jboss4.X has not be more different from Jboss3.X when it was integrated with Tomcat 5.
1.Get the distribution from sourceforge
2.Unzip your jboss distribution to a directory which we now call JBOSS_HOME
3.go to the JBOSS_HOME/docs/examples/tomcat directory a ant -buildfile docs/examples/tomcat/build-tc5-config.xml
and this is what you should see if your JBOSS_HOME would be c:\jboss-3.2.3 :
Buildfile: build-tc5-config.xml
[copy] Copying 124 files to C:\jboss-3.2.3\server\tomcat5
[copy] Copying 30 files to C:\jboss-3.2.3\server\tomcat5\deploy\jbossweb-tomcat50.sar
So now you have next to minimal, default and all a new server configuration called tomcat5 which you can launch using a run -c tomcat5
[ February 06, 2004: Message edited by: AstroWoo Chang ]

<a href="" target="_blank" rel="nofollow"></a>
I agree. Here's the link:
subject: How to integrate JBoss4 and Tomcat5?
It's not a secret anymore!