You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by ramesh <ra...@transerainc.com> on 2004/06/30 03:39:28 UTC
Tomcat and JBoss
Hi,
I am using Tomcat 4.1 that comes packaged with JBoss 3.2.3. I am trying to
deploy my war which has two servlets. I am not able to connect to my
servlets by doing a http://localhost:8080/ccgIntf. I tried different
variations of the URL but with no luck. I looked at the jmx-console and
found that the Servlets are not getting deployed. The war itself seems to be
but the Servlet Names are not appearing.
Can anyone tell me what I am missing?
Thanks,
Ramesh.
The structure for the war is
Tam.war
|-- meta-inf
| |-- manifest.mf
|-- web-inf
| |-- web.xml
| |-- jboss-web.xml
| |-- classes
| | |-- my two servlet classes with directories.
The web.xml is:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application
2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<servlet>
<servlet-name>ccgIntf</servlet-name>
<servlet-class>com.transerainc.tam.servlet.TAMServlet</servlet-class>
</servlet>
<servlet>
<servlet-name>Statistics</servlet-name>
<servlet-class>com.transerainc.tam.servlet.StatisticsServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>ccgIntf</servlet-name>
<url-pattern>/ccgIntf</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>Statistics</servlet-name>
<url-pattern>/stats</url-pattern>
</servlet-mapping>
</web-app>
The Jboss-web.xml is:
<jboss-web>
<!-- An empty context root map the war to the root context,
e.g., http://localhost:8080/ -->
<context-root />
</jboss-web>
RE: Tomcat and JBoss
Posted by ramesh <ra...@transerainc.com>.
The context is mapped using the jboss-web.xml file. Either you can specify a
context or have the war map to the root context. The war file in my case is
named as tam.war. I tried what you suggested but it still does not work!
Ramesh.
-----Original Message-----
From: QM [mailto:qm300@brandxdev.net]
Sent: Tuesday, June 29, 2004 6:22 PM
To: Tomcat Users List
Subject: Re: Tomcat and JBoss
On Tue, Jun 29, 2004 at 06:39:28PM -0700, ramesh wrote:
: I am using Tomcat 4.1 that comes packaged with JBoss 3.2.3. I am trying to
: deploy my war which has two servlets. I am not able to connect to my
: servlets by doing a http://localhost:8080/ccgIntf. I tried different
: variations of the URL but with no luck.
How does JBoss map your WAR file to a context? Does it use Tomcat's
autodeploy? If so, for a WAR file named "some_app.war" try to access:
http://localhost:8080/some_app/ccgIntf
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Tomcat and JBoss
Posted by QM <qm...@brandxdev.net>.
On Tue, Jun 29, 2004 at 06:39:28PM -0700, ramesh wrote:
: I am using Tomcat 4.1 that comes packaged with JBoss 3.2.3. I am trying to
: deploy my war which has two servlets. I am not able to connect to my
: servlets by doing a http://localhost:8080/ccgIntf. I tried different
: variations of the URL but with no luck.
How does JBoss map your WAR file to a context? Does it use Tomcat's
autodeploy? If so, for a WAR file named "some_app.war" try to access:
http://localhost:8080/some_app/ccgIntf
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org