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 ? Thanks, Aju.
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.
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: C:\JBoss\server\default\deploy\tomcat4-service.xml. 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. HTH, Seetesh
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?