This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "How to integrate JBoss4 and Tomcat5?" Watch "How to integrate JBoss4 and Tomcat5?" New topic
Author

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 jboss.org.Because 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":
/////////////////////////////////////////////////////////
<server>
<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
Greenhorn

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 JBoss-3.2.3.zip 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
4.do 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
config:
[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
BUILD SUCCESSFUL
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="http://www.20six.co.uk/AstroWoo/" target="_blank" rel="nofollow">http://www.20six.co.uk/AstroWoo/</a>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to integrate JBoss4 and Tomcat5?
 
Similar Threads
Problem starting JBOSS 4.2.3
Include custom library in classpath
problem while starting jboss5.0
problem using Tomcat with Jboss
BMP, Jboss, and mysql configuring