You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by rajendra_sakpal <ra...@persistent.co.in> on 2008/01/10 13:33:14 UTC

Problem with application installation in Tomcat 5.5.

Hi Folks,

 

 

I am new to Tomcat & WEB applications deployment/development. I have been
facing some problems in getting the application up in Tomcat 5.5.  I am

using JDK 1.6.0_03.   Somehow, the WEB interface for the application doesn't

show up. NETSTAT -A does show that the server is listening on the port.

 

 

The appBase is outside of the default "webapps" directory.  Tomcat logs show
no exceptions.  The application is bundled as a jar & included in the
classpath.

 

 

Could you please provide pointers to resolve the issue?  

 

Thanks & regards,

 

Rajendra

 

 


DISCLAIMER
==========
This e-mail may contain privileged and confidential information which is the property of Persistent Systems Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Ltd. does not accept any liability for virus infected mails.

Re: Problem with application installation in Tomcat 5.5.

Posted by Gregor Schneider <rc...@googlemail.com>.
Seems as if you lack the basic knowledge of what a ServletContainer
(aka Tomcat) is about.

I got no idea why you want to deploy a jar-file within Tomcat - are
you trying something like Webstart?

What is you application, anyways.? Is it a Servlet / JSP? If so, then
the your deployment was already wrong using Tomcat 4.

Maybe you want to read this as a start:
http://tomcat.apache.org/tomcat-6.0-doc/appdev/index.html

Gregor
-- 
what's puzzlin' you, is the nature of my game
gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2
gpgp-key available @ http://pgpkeys.pca.dfn.de:11371

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Problem with application installation in Tomcat 5.5.

Posted by rajendra_sakpal <ra...@persistent.co.in>.
I suspect that there's a change in the way we should be deploying the
application in Tomcat 5.5.  What worked for Tomcat 4.X doesn't seem to work
with Tomcat 5.5.

Thanks & regards,
Rajendra


-----Original Message-----
From: rajendra_sakpal [mailto:rajendra_sakpal@persistent.co.in] 
Sent: Thursday, January 10, 2008 6:30 PM
To: users@tomcat.apache.org
Subject: RE: Problem with application installation in Tomcat 5.5.

Hi Charles,

Thanks for your reply.  

We have followed the same procedure to deploy the application in Tomcat 5.5
as we did in Tomcat 4.X.  The application worked properly in Tomcat 4.X i.e.
The application jar was in the classpath as set in the
TOMCAT/bin/setclasspath.sh.

Here's the entry in server.xml pointing to the appBase:

      <Host name="localhost"
appBase="/home/redhot/redhot1.25/redhotdata/web"
       unpackWARs="true" autoDeploy="true"
       xmlValidation="false" xmlNamespaceAware="false">


Also, I have added the jar in <TOMCAT_HOME>/bin/setclasspath.sh.  

What's the alternative way to deploy the application as a jar file in
Tomcat?


Thanks & regards,
Rajendra


-----Original Message-----
From: Caldarale, Charles R [mailto:Chuck.Caldarale@unisys.com] 
Sent: Thursday, January 10, 2008 6:17 PM
To: Tomcat Users List
Subject: RE: Problem with application installation in Tomcat 5.5.

> From: rajendra_sakpal [mailto:rajendra_sakpal@persistent.co.in] 
> Subject: Problem with application installation in Tomcat 5.5.
> 
> The appBase is outside of the default "webapps" directory.  

Not possible; appBase defines where the default webapps directory.  Do
you mean docBase?

> The application is bundled as a jar & included in the
> classpath.

A fatal error.  To repeat: never, never put things on Tomcat's
classpath.  Do not use the CLASSPATH variable under any circumstances,
and do not add webapp jars to the command line -cp parameter.

Tomcat has a well-defined and well-documented classloader mechanism; use
it:
http://tomcat.apache.org/tomcat-5.5-doc/class-loader-howto.html

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


DISCLAIMER
==========
This e-mail may contain privileged and confidential information which is the
property of Persistent Systems Ltd. It is intended only for the use of the
individual or entity to which it is addressed. If you are not the intended
recipient, you are not authorized to read, retain, copy, print, distribute
or use this message. If you have received this communication in error,
please notify the sender and delete all copies of this message. Persistent
Systems Ltd. does not accept any liability for virus infected mails.

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org



DISCLAIMER
==========
This e-mail may contain privileged and confidential information which is the property of Persistent Systems Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Ltd. does not accept any liability for virus infected mails.

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Problem with application installation in Tomcat 5.5.

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: rajendra_sakpal [mailto:rajendra_sakpal@persistent.co.in] 
> Subject: RE: Problem with application installation in Tomcat 5.5.
> 
> We have followed the same procedure to deploy the application 
> in Tomcat 5.5 as we did in Tomcat 4.X.

Configuration and deployment are somewhat different in 5.5; read the
docs.

> The application jar was in the classpath as set in the
> TOMCAT/bin/setclasspath.sh.

Do not ever, ever do that, even under Tomcat 4.  It was a bad idea then,
it's a worse one now.

> appBase="/home/redhot/redhot1.25/redhotdata/web"

The above is fine; it tells Tomcat to use the specified directory as
appBase, rather than the standard $CATALINA_BASE/webapps.

> Also, I have added the jar in <TOMCAT_HOME>/bin/setclasspath.sh.  

Repeat: don't ever do that.  Webapps should be packaged in a .war file
(or the expanded equivalent), and webapp jars should be placed in
WEB-INF/lib inside the webapp.  This is documented in the servlet spec,
which you should be familiar with.

> What's the alternative way to deploy the application as a jar file in
> Tomcat?

Follow the servlet spec and the procedures in the Tomcat 5.5 doc.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Problem with application installation in Tomcat 5.5.

Posted by rajendra_sakpal <ra...@persistent.co.in>.
Hi Charles,

Thanks for your reply.  

We have followed the same procedure to deploy the application in Tomcat 5.5
as we did in Tomcat 4.X.  The application worked properly in Tomcat 4.X i.e.
The application jar was in the classpath as set in the
TOMCAT/bin/setclasspath.sh.

Here's the entry in server.xml pointing to the appBase:

      <Host name="localhost"
appBase="/home/redhot/redhot1.25/redhotdata/web"
       unpackWARs="true" autoDeploy="true"
       xmlValidation="false" xmlNamespaceAware="false">


Also, I have added the jar in <TOMCAT_HOME>/bin/setclasspath.sh.  

What's the alternative way to deploy the application as a jar file in
Tomcat?


Thanks & regards,
Rajendra


-----Original Message-----
From: Caldarale, Charles R [mailto:Chuck.Caldarale@unisys.com] 
Sent: Thursday, January 10, 2008 6:17 PM
To: Tomcat Users List
Subject: RE: Problem with application installation in Tomcat 5.5.

> From: rajendra_sakpal [mailto:rajendra_sakpal@persistent.co.in] 
> Subject: Problem with application installation in Tomcat 5.5.
> 
> The appBase is outside of the default "webapps" directory.  

Not possible; appBase defines where the default webapps directory.  Do
you mean docBase?

> The application is bundled as a jar & included in the
> classpath.

A fatal error.  To repeat: never, never put things on Tomcat's
classpath.  Do not use the CLASSPATH variable under any circumstances,
and do not add webapp jars to the command line -cp parameter.

Tomcat has a well-defined and well-documented classloader mechanism; use
it:
http://tomcat.apache.org/tomcat-5.5-doc/class-loader-howto.html

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


DISCLAIMER
==========
This e-mail may contain privileged and confidential information which is the property of Persistent Systems Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Ltd. does not accept any liability for virus infected mails.

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Problem with application installation in Tomcat 5.5.

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: rajendra_sakpal [mailto:rajendra_sakpal@persistent.co.in] 
> Subject: Problem with application installation in Tomcat 5.5.
> 
> The appBase is outside of the default "webapps" directory.  

Not possible; appBase defines where the default webapps directory.  Do
you mean docBase?

> The application is bundled as a jar & included in the
> classpath.

A fatal error.  To repeat: never, never put things on Tomcat's
classpath.  Do not use the CLASSPATH variable under any circumstances,
and do not add webapp jars to the command line -cp parameter.

Tomcat has a well-defined and well-documented classloader mechanism; use
it:
http://tomcat.apache.org/tomcat-5.5-doc/class-loader-howto.html

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org