Ant "Build Failed" for uninstall target

2005-09-01 Thread Srinivas Ivaturi


 

Hi

I am facing a variety problem with ANT. I have written an ant Script
which Installs me a WAR file into Tomcat. I have one more Task to
uninstall also. When I use uninstall It is giving me some HTML dump on
my command line and at the end it is saying BUILD FAILED. But When I
check with Admin pages WAR files is uninstalled. What could be the
problem with Script. Here I am pasting the script I am using.














http://localhost:8080/manager/html";
username="admin"
password="admin"
path="/TestJ2EE"
/>




Tomcat.Properties:

deploy=org.apache.catalina.ant.DeployTask

undeploy=org.apache.catalina.ant.UndeployTask

remove=org.apache.catalina.ant.RemoveTask

reload=org.apache.catalina.ant.ReloadTask

start=org.apache.catalina.ant.StartTask

stop=org.apache.catalina.ant.StopTask

list=org.apache.catalina.ant.ListTask

Thanks
Srinivas Ivaturi.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Ant "Build Failed" for uninstall target

2005-08-31 Thread Srinivas Ivaturi


 

Hi

I am facing a variety problem with ANT. I have written an ant Script
which Installs me a WAR file into Tomcat. I have one more Task to
uninstall also. When I use uninstall It is giving me some HTML dump on
my command line and at the end it is saying BUILD FAILED. But When I
check with Admin pages WAR files is uninstalled. What could be the
problem with Script. Here I am pasting the script I am using.














http://localhost:8080/manager/html";
username="admin"
password="admin"
path="/TestJ2EE"
/>




Tomcat.Properties:

deploy=org.apache.catalina.ant.DeployTask

undeploy=org.apache.catalina.ant.UndeployTask

remove=org.apache.catalina.ant.RemoveTask

reload=org.apache.catalina.ant.ReloadTask

start=org.apache.catalina.ant.StartTask

stop=org.apache.catalina.ant.StopTask

list=org.apache.catalina.ant.ListTask

Thanks
Srinivas Ivaturi.



RE: Application Level Classpath Setting

2005-07-01 Thread Srinivas Ivaturi
I could able to do it. But it is working for the files under the Tomcat
Home Directory. Is it possible to put a directory outside the Tomcat and
give it here under common.loader. I mean I will put a directory in
c:\jars. I want this to be given for common.loader=c:/jars/*jar. It is
not working for me If I give like this. Any reason you know?

Thankas
Srinivas Ivaturi.


-Original Message-
From: Anoop kumar V [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 01, 2005 6:27 PM
To: Tomcat Users List
Subject: Re: Application Level Classpath Setting

AFAIK - Tomcat does not care about the system classpath. It picks up
its classpath from catalina.sh ->setclasspath.sh (TC 4.x)

In TC 5.x (this too FYI does not care abt the system classpath, but)
you can modify the following lines in catalina.properties file under
the conf dir ...


#
#
# List of comma-separated paths defining the contents of the "common" 
# classloader. Prefixes should be used to define what is the repository
type.
# Path may be relative to the CATALINA_HOME or CATALINA_BASE path or
absolute.
# If left as blank,the JVM system loader will be used as Catalina's
"common" 
# loader.
# Examples:
# "foo": Add this folder as a class repository
# "foo/*.jar": Add all the JARs of the specified folder as class 
#  repositories
# "foo/bar.jar": Add bar.jar as a class repository
common.loader=${catalina.home}/common/classes,${catalina.home}/common/i1
8n/*.jar,${catalina.home}/common/endorsed/*.jar,${catalina.home}/common/
lib/*.jar

#
# List of comma-separated paths defining the contents of the "server" 
# classloader. Prefixes should be used to define what is the repository
type.
# Path may be relative to the CATALINA_HOME or CATALINA_BASE path or
absolute.
# If left as blank, the "common" loader will be used as Catalina's
"server" 
# loader.
# Examples:
# "foo": Add this folder as a class repository
# "foo/*.jar": Add all the JARs of the specified folder as class 
#  repositories
# "foo/bar.jar": Add bar.jar as a class repository
server.loader=${catalina.home}/server/classes,${catalina.home}/server/li
b/*.jar

#
# List of comma-separated paths defining the contents of the "shared" 
# classloader. Prefixes should be used to define what is the repository
type.
# Path may be relative to the CATALINA_BASE path or absolute. If left as
blank,
# the "common" loader will be used as Catalina's "shared" loader.
# Examples:
# "foo": Add this folder as a class repository
# "foo/*.jar": Add all the JARs of the specified folder as class 
#  repositories
# "foo/bar.jar": Add bar.jar as a class repository 
shared.loader=${catalina.base}/shared/classes,${catalina.base}/shared/li
b/*.jar




HTH,
Anoop

On 7/1/05, Peter Crowther <[EMAIL PROTECTED]> wrote:
> > From: Srinivas Ivaturi [mailto:[EMAIL PROTECTED]
> > It is not that it wont work , It is by design.
> 
> OK.  So, to summarise:
> 
> - You have a set of jars that is too large to name on the classpath in
> Windows;
> 
> - The jars are required for one webapp only, not for the whole of
Tomcat
> (so one could argue that a classpath-based solution is a poor solution
> as it might interfere with other webapps deployed in the same
> container);
> 
> - The jars would work if placed in the webapp's lib directory.
> 
> You don't wish to place the jars into the webapp's lib directory "by
> design", which prevents a simple solution that would apparently work.
> If it doesn't work, I can't help much more unless you can give some
more
> information about why it doesn't work or why you'd prefer not to do
> this.
> 
> I'm not aware of another solution that would work without amending the
> Tomcat source and recompiling.  I don't think you can extend the
> classpath in conf/server.xml or in web.xml (although I could be wrong;
> this is from a fairly quick check).  So the only alternative I can
think
> of is to deploy an entire custom version of Tomcat.
> 
> Anyone else?
> 
> - Peter
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
Thanks and best regards,
Anoop

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Application Level Classpath Setting

2005-07-01 Thread Srinivas Ivaturi
It is not that it wont work , It is by design. 

-Original Message-
From: Peter Crowther [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 01, 2005 3:19 PM
To: Tomcat Users List
Subject: RE: Application Level Classpath Setting

> From: Srinivas Ivaturi [mailto:[EMAIL PROTECTED] 
> I forget to mention these are 3 rd party JARS which I cannot 
> put in the LIB. 

"Cannot" by licensing terms, because the app will no longer work if you
do, or what?

- Peter

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Application Level Classpath Setting

2005-07-01 Thread Srinivas Ivaturi
I forget to mention these are 3 rd party JARS which I cannot put in the
LIB. 

-Original Message-
From: Raghupathy,Gurumoorthy
[mailto:[EMAIL PROTECTED] 
Sent: Friday, July 01, 2005 3:12 PM
To: 'Tomcat Users List'
Subject: RE: Application Level Classpath Setting

Put it in WEB-INF/lib

-Original Message-----
From: Srinivas Ivaturi [mailto:[EMAIL PROTECTED] 
Sent: 01 July 2005 10:40
To: tomcat-user@jakarta.apache.org
Subject: Application Level Classpath Setting


Hi

I have a set of JAR files to be set into classpath. I cannot keep the
entire JARs into System classpath because of Windows OS restriction. Now
I want to put all the jars set to classpath only for that application
level for WAS. 

Thanks
Srinivas Ivaturi.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Application Level Classpath Setting

2005-07-01 Thread Srinivas Ivaturi
Hi

I have a set of JAR files to be set into classpath. I cannot keep the
entire JARs into System classpath because of Windows OS restriction. Now
I want to put all the jars set to classpath only for that application
level for WAS. 

Thanks
Srinivas Ivaturi.