Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to integrate JBoss4 and Tomcat5?

 
lyo Yashnoo
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Any Idea?
 
AstroWoo Zhang
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic