wood burning stoves 2.0*
The moose likes JBoss/WildFly and the fly likes problem using Tomcat with Jboss Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "problem using Tomcat with Jboss" Watch "problem using Tomcat with Jboss" New topic

problem using Tomcat with Jboss

Aju Josep

Joined: Feb 20, 2004
Posts: 17
hi.... i have installed jboss_3.2 (tomcat version) and also tomcat_4.1.29 (installed seperately). my problem is that when the jboss server is running, i cannot start the tomcat server (obviously bcoz the tomcat server of jboss would be running). but i want to run the the JSP pages in my tomcat web server (the seperate installation) and call the ejbs deployed in the jboss server from those web pages. Is there any setting in jboss where in i can specify that the web server bundled with the jboss dont run when i start jboss, so that i can use my seperate tomcat installation ? Alternatively , in the tomcat bundled with jboss, where do i deploy the JSPs ?
Aju Josep

Joined: Feb 20, 2004
Posts: 17
still waiting for some clue.... can any one help ???
Tonny Tssagovic
Ranch Hand

Joined: Dec 30, 2003
Posts: 226
Hi Aju,
Just put the war file under JBOSS_HOME/server/default/deploy. You can change default dir. to your own custom directory.
In case you don't want to create a war file, just create a directory under the deploy dir. for example MyWebClient.war and put your JSPs under that directory and your servlets under MyWebClient.war/WEB-INF/classes. You can not run 2 applications that both listen on the same port no. obviously and could change the jboss default port no. in the jboss-service.xml file just search for default port="8080" and change it. The file is under deploy/tomcatdir/META-INF.
Hope that helps.
Seetesh Hindlekar
Ranch Hand

Joined: Feb 13, 2004
Posts: 244
Hi Aju,
Would advice u to download the JBoss-tomcat installer. Anyways the following should help.
Configuring Tomcat with JBoss
To use Tomcat with JBoss, a minor configuration adjustment is needed. Tomcat must be able to find appropriate Jar files that provide the EJB classes by JBoss (ejb-client.jar and ejb.jar). There are number of ways to configure Tomcat to find JBoss�s Jar files. The easiest one that is adopted for this project is to copy these jar files form the client sub-directory
of JBoss home directory to the Tomcat lib directory. It should be noted that
some other versions of JBoss bundles the Tomcat Web server with its release distribution; that is, this configuration is not required.
To change web port of JBoss from 8080 to some other port?
If so edit this file:
Change the driver letter to the one where installed JBoss.
And in that file find the "Connector" element:
<!-- A HTTP Connector on port 8080 -->
<Connector className = "org.apache.catalina.connector.http.HttpConnector"
port = "8080" minProcessors = "3" maxProcessors = "10" enableLookups = "true" acceptCount = "10" debug = "0" connectionTimeout = "60000"/>
And change the port number to whatever you want.
Chris Mathews
Ranch Hand

Joined: Jul 18, 2001
Posts: 2712
Moving to the JBoss forum...
Lamas Lam

Joined: Nov 25, 2004
Posts: 1
I got the similar problem with Aju Josep.

Supposted that I use Jboss3 with Tomcat4.1.x. and Eclipse.
I will pack all the jars and war into ear, and Jboss will point to that ear and deploy it. while jars contains the class and ejb.

The problem is that, by use of Eclipse, during developing phase, i can hot code deploy the jave in the Jboss. but i can't do it on the jsp. (May be just because i don't know how to do that.) Jsp is known be able to hot deploy in Tomcat, so i desire to put all the .jsp in to Jboss3\tomcat-4.1.x\webapps and design to start up it with Jboss which pointing the all the jars at the sametime. Of-cource, i am fault to do that. when i start up Jboss, it return " MAPPING configuration error ". it seems that i have to some setting in Jboss.

First, can i do that to achieve hot code deploy in both?
are there any setting in Jboss?
are there any other solution to do hot code deploy on both jave and jsp?
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8903

Hot deployment in jboss is simple. Simply over write the existing webapp/ejb jar file.

I agree. Here's the link: http://aspose.com/file-tools
subject: problem using Tomcat with Jboss
Similar Threads
Unable to launch Tomcat from eclipse.
jboss+tomcat can not find tools.jar, how to solve it?
Configuration Problems with JBoss
Netbeans 6.7 with TomCat 6.0
http://localhost:8080 stopped responding