RE: Trouble with ant install command and ResourceLink

2003-03-30 Thread johannes . fiala
hi jacob,

thx for the input, now it works smoothly.
However, it would be great if the config-parameter gets mentioned in the 
manager app howto
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/manager-howto.html



  target name=install description=Install web application
  depends=compile
install url=${url} username=${username} password=${password}
path=${path} war=file://${build}/
  /target


thx alot
Johannes





Jacob Kjome [EMAIL PROTECTED] 
29.03.2003 20:16
Please respond to
Tomcat Users List [EMAIL PROTECTED]


To
Tomcat Users List [EMAIL PROTECTED]
cc

Subject
RE: Trouble with ant install command and ResourceLink







You need to look at the attributes provided for the install task...

target name=catalina-install depends=compile,manager.init
 description=Install application to servlet container 
 catalina-install
 url=${manager.url}
 username=${manager.username}
 password=${manager.password}
 config=${app.ccf}
 path=${app.path} /
 /target

Notice the config attribute.  At build time, that resolves to a file:/// 

URL pointing to where the context configuration file is.

Now look at the deploy task...


target name=catalina-deploy depends=war,manager.init
 description=Deploy web-app war 
 echo message=${app.war}/
 catalina-deploy
 url=${manager.url}
 username=${manager.username}
 password=${manager.password}
 path=${app.path}
 war=${app.war} /
 /target


There is no config attribute.  You might argue that there should be 
one.  File a bug on that if you think so.  However, the fact is, there 
isn't one now and the current mechanism here is the META-INF/context.xml 
file that Tomcat looks for.


Jake


At 05:55 PM 3/29/2003 +0100, you wrote:
p.s. if I do

ant undeploy
ant install - context info gets lost
ant remove
ant deploy - context info is here again!
== so with deploy the context is ok, with install not.

*) I put /build/context.xml and /build/myapp.xml into the 
build-directory,
but it still doesn't get the context inited.

*) wouldn't it make sense to read the context.xml for ant install out of
the same directory as ant deploy?
(e.g. /build/META-INF/context.xml)

thx
Johannes



SOLVED RE: Trouble with ant install command and ResourceLink

2003-03-30 Thread johannes . fiala
Hi Jacob,

My solution for the problem:

target name=install   description=Install application to servlet 
container

install url=${manager.url}
username=${manager.username}
password=${manager.password}
path=${app.path}
config=file:///${build.home}/META-INF/context.xml
 war=file:///${build.home}/

/target

== So I have the same context.xml for development (ant install) and for 
production (ant deploy)

thx alot for your great input!!!

Johannes

RE: Trouble with ant install command and ResourceLink

2003-03-29 Thread Jeff Jensen
I do not have an answer for your specific issue, but I found minor deploy
issues with install, so I only use deploy and undeploy tasks and do not have
any more issues.  Have you tried using deploy - did it have the same
problems?


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Friday, March 28, 2003 11:52 AM
 To: Tomcat Users List
 Subject: Trouble with ant install command and ResourceLink


 hi there,

 In my /webapps/myapp.xml I'm using a ResourceLink:
   ResourceLink name=jdbc/mydb global=MyDatabase/

 I'm using the manager app via ant to test my application.
 After calling
 ant remove
 ant install

 it tells me the context has been installed OK.
 However, it seems as if the ResourceLink has not been inited during
 install, so it seems Tomcat doesn't read the /webapps/myapp.xml file.

 Sidenote: this problem is somewhat related to my
 initparameter problem
 outlined earlier today, but cannot be overcome as easily.

 has anybody overcome this issue?
 is else using the ant manager task together with JNDI resourcelinks
 successfully?

 thx
 Johannes


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



RE: Trouble with ant install command and ResourceLink

2003-03-29 Thread johannes . fiala
Hi Jeff,

no, using the ant deploy task it worked smoothly.
I was just wondering what the install task is all about (if it's not 
working)

thx 
Johannes




Jeff Jensen [EMAIL PROTECTED] 
29.03.2003 15:02
Please respond to
Tomcat Users List [EMAIL PROTECTED]


To
'Tomcat Users List' [EMAIL PROTECTED]
cc

Subject
RE: Trouble with ant install command and ResourceLink






I do not have an answer for your specific issue, but I found minor deploy
issues with install, so I only use deploy and undeploy tasks and do not 
have
any more issues.  Have you tried using deploy - did it have the same
problems?


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Friday, March 28, 2003 11:52 AM
 To: Tomcat Users List
 Subject: Trouble with ant install command and ResourceLink


 hi there,

 In my /webapps/myapp.xml I'm using a ResourceLink:
   ResourceLink name=jdbc/mydb global=MyDatabase/

 I'm using the manager app via ant to test my application.
 After calling
 ant remove
 ant install

 it tells me the context has been installed OK.
 However, it seems as if the ResourceLink has not been inited during
 install, so it seems Tomcat doesn't read the /webapps/myapp.xml file.

 Sidenote: this problem is somewhat related to my
 initparameter problem
 outlined earlier today, but cannot be overcome as easily.

 has anybody overcome this issue?
 is else using the ant manager task together with JNDI resourcelinks
 successfully?

 thx
 Johannes


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




RE: Trouble with ant install command and ResourceLink

2003-03-29 Thread Jeff Jensen
Yes, me too.  Based on what the install process does compared to deploy, I
have not yet determined an applicable time to use install vs deploy!  I
haven't looked back since started using deploy... :-)


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Saturday, March 29, 2003 8:23 AM
 To: Tomcat Users List
 Subject: RE: Trouble with ant install command and ResourceLink


 Hi Jeff,

 no, using the ant deploy task it worked smoothly.
 I was just wondering what the install task is all about
 (if it's not
 working)

 thx
 Johannes




 Jeff Jensen [EMAIL PROTECTED]
 29.03.2003 15:02
 Please respond to
 Tomcat Users List [EMAIL PROTECTED]


 To
 'Tomcat Users List' [EMAIL PROTECTED]
 cc

 Subject
 RE: Trouble with ant install command and ResourceLink






 I do not have an answer for your specific issue, but I found
 minor deploy
 issues with install, so I only use deploy and undeploy tasks
 and do not
 have
 any more issues.  Have you tried using deploy - did it have the same
 problems?


  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
  Sent: Friday, March 28, 2003 11:52 AM
  To: Tomcat Users List
  Subject: Trouble with ant install command and ResourceLink
 
 
  hi there,
 
  In my /webapps/myapp.xml I'm using a ResourceLink:
ResourceLink name=jdbc/mydb global=MyDatabase/
 
  I'm using the manager app via ant to test my application.
  After calling
  ant remove
  ant install
 
  it tells me the context has been installed OK.
  However, it seems as if the ResourceLink has not been inited during
  install, so it seems Tomcat doesn't read the
 /webapps/myapp.xml file.
 
  Sidenote: this problem is somewhat related to my
  initparameter problem
  outlined earlier today, but cannot be overcome as easily.
 
  has anybody overcome this issue?
  is else using the ant manager task together with JNDI resourcelinks
  successfully?
 
  thx
  Johannes


 -
 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: Trouble with ant install command and ResourceLink

2003-03-29 Thread johannes . fiala
hi jeff,

ok. so I will stay with deploy as well.

Currently I do the following to redeploy:
ant remove
ant deploy

However, there is a small time where users will still get a 404 error (the 
small delay where the PUT command is issued by the deploy task). Do you 
know a way how to get around this issue to have 100% uptime of an 
application?

thx alot
Johannes





Jeff Jensen [EMAIL PROTECTED] 
29.03.2003 15:34
Please respond to
Tomcat Users List [EMAIL PROTECTED]


To
'Tomcat Users List' [EMAIL PROTECTED]
cc

Subject
RE: Trouble with ant install command and ResourceLink






Yes, me too.  Based on what the install process does compared to deploy, I
have not yet determined an applicable time to use install vs deploy!  I
haven't looked back since started using deploy... :-)


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Saturday, March 29, 2003 8:23 AM
 To: Tomcat Users List
 Subject: RE: Trouble with ant install command and ResourceLink


 Hi Jeff,

 no, using the ant deploy task it worked smoothly.
 I was just wondering what the install task is all about
 (if it's not
 working)

 thx
 Johannes




 Jeff Jensen [EMAIL PROTECTED]
 29.03.2003 15:02
 Please respond to
 Tomcat Users List [EMAIL PROTECTED]


 To
 'Tomcat Users List' [EMAIL PROTECTED]
 cc

 Subject
 RE: Trouble with ant install command and ResourceLink






 I do not have an answer for your specific issue, but I found
 minor deploy
 issues with install, so I only use deploy and undeploy tasks
 and do not
 have
 any more issues.  Have you tried using deploy - did it have the same
 problems?


  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
  Sent: Friday, March 28, 2003 11:52 AM
  To: Tomcat Users List
  Subject: Trouble with ant install command and ResourceLink
 
 
  hi there,
 
  In my /webapps/myapp.xml I'm using a ResourceLink:
ResourceLink name=jdbc/mydb global=MyDatabase/
 
  I'm using the manager app via ant to test my application.
  After calling
  ant remove
  ant install
 
  it tells me the context has been installed OK.
  However, it seems as if the ResourceLink has not been inited during
  install, so it seems Tomcat doesn't read the
 /webapps/myapp.xml file.
 
  Sidenote: this problem is somewhat related to my
  initparameter problem
  outlined earlier today, but cannot be overcome as easily.
 
  has anybody overcome this issue?
  is else using the ant manager task together with JNDI resourcelinks
  successfully?
 
  thx
  Johannes


 -
 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: Trouble with ant install command and ResourceLink

2003-03-29 Thread Jacob Kjome
If you use the deploy task to deploy the app, you should use the 
undeploy task to undeploy the app. The remove task is mated with the 
install task.  Mixing these will give you unexpected results.

Jake

At 03:56 PM 3/29/2003 +0100, you wrote:
hi jeff,

ok. so I will stay with deploy as well.

Currently I do the following to redeploy:
ant remove
ant deploy
However, there is a small time where users will still get a 404 error (the
small delay where the PUT command is issued by the deploy task). Do you
know a way how to get around this issue to have 100% uptime of an
application?
thx alot
Johannes




Jeff Jensen [EMAIL PROTECTED]
29.03.2003 15:34
Please respond to
Tomcat Users List [EMAIL PROTECTED]
To
'Tomcat Users List' [EMAIL PROTECTED]
cc
Subject
RE: Trouble with ant install command and ResourceLink




Yes, me too.  Based on what the install process does compared to deploy, I
have not yet determined an applicable time to use install vs deploy!  I
haven't looked back since started using deploy... :-)
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Saturday, March 29, 2003 8:23 AM
 To: Tomcat Users List
 Subject: RE: Trouble with ant install command and ResourceLink


 Hi Jeff,

 no, using the ant deploy task it worked smoothly.
 I was just wondering what the install task is all about
 (if it's not
 working)

 thx
 Johannes




 Jeff Jensen [EMAIL PROTECTED]
 29.03.2003 15:02
 Please respond to
 Tomcat Users List [EMAIL PROTECTED]


 To
 'Tomcat Users List' [EMAIL PROTECTED]
 cc

 Subject
 RE: Trouble with ant install command and ResourceLink






 I do not have an answer for your specific issue, but I found
 minor deploy
 issues with install, so I only use deploy and undeploy tasks
 and do not
 have
 any more issues.  Have you tried using deploy - did it have the same
 problems?


  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
  Sent: Friday, March 28, 2003 11:52 AM
  To: Tomcat Users List
  Subject: Trouble with ant install command and ResourceLink
 
 
  hi there,
 
  In my /webapps/myapp.xml I'm using a ResourceLink:
ResourceLink name=jdbc/mydb global=MyDatabase/
 
  I'm using the manager app via ant to test my application.
  After calling
  ant remove
  ant install
 
  it tells me the context has been installed OK.
  However, it seems as if the ResourceLink has not been inited during
  install, so it seems Tomcat doesn't read the
 /webapps/myapp.xml file.
 
  Sidenote: this problem is somewhat related to my
  initparameter problem
  outlined earlier today, but cannot be overcome as easily.
 
  has anybody overcome this issue?
  is else using the ant manager task together with JNDI resourcelinks
  successfully?
 
  thx
  Johannes


 -
 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: Trouble with ant install command and ResourceLink

2003-03-29 Thread johannes . fiala
Hi Jacob,

It seems as if I was wrong with ant install test.
I now undeployed and installed, but the Context information got lost.

Where do I have to put the context.xml in the /build/ directory? 
Would /build/myapp.xml ok? Would the install task accept any *.xml in 
/build/ as context configuration info?

I tried:
/build/context.xml
and 
ant install, but it didn't work.

Any suggestions??

thx
Johannes

RE: Trouble with ant install command and ResourceLink

2003-03-29 Thread johannes . fiala
p.s. if I do 

ant undeploy
ant install - context info gets lost
ant remove
ant deploy - context info is here again!
== so with deploy the context is ok, with install not.

*) I put /build/context.xml and /build/myapp.xml into the build-directory, 
but it still doesn't get the context inited.

*) wouldn't it make sense to read the context.xml for ant install out of 
the same directory as ant deploy?
(e.g. /build/META-INF/context.xml)

thx
Johannes

RE: Trouble with ant install command and ResourceLink

2003-03-29 Thread Jacob Kjome
You need to look at the attributes provided for the install task...

target name=catalina-install depends=compile,manager.init
description=Install application to servlet container 
catalina-install
url=${manager.url}
username=${manager.username}
password=${manager.password}
config=${app.ccf}
path=${app.path} /
/target
Notice the config attribute.  At build time, that resolves to a file:/// 
URL pointing to where the context configuration file is.

Now look at the deploy task...

target name=catalina-deploy depends=war,manager.init
description=Deploy web-app war 
echo message=${app.war}/
catalina-deploy
url=${manager.url}
username=${manager.username}
password=${manager.password}
path=${app.path}
war=${app.war} /
/target
There is no config attribute.  You might argue that there should be 
one.  File a bug on that if you think so.  However, the fact is, there 
isn't one now and the current mechanism here is the META-INF/context.xml 
file that Tomcat looks for.

Jake

At 05:55 PM 3/29/2003 +0100, you wrote:
p.s. if I do

ant undeploy
ant install - context info gets lost
ant remove
ant deploy - context info is here again!
== so with deploy the context is ok, with install not.
*) I put /build/context.xml and /build/myapp.xml into the build-directory,
but it still doesn't get the context inited.
*) wouldn't it make sense to read the context.xml for ant install out of
the same directory as ant deploy?
(e.g. /build/META-INF/context.xml)
thx
Johannes


Trouble with ant install command and ResourceLink

2003-03-28 Thread johannes . fiala
hi there,

In my /webapps/myapp.xml I'm using a ResourceLink:
  ResourceLink name=jdbc/mydb global=MyDatabase/

I'm using the manager app via ant to test my application.
After calling
ant remove
ant install

it tells me the context has been installed OK.
However, it seems as if the ResourceLink has not been inited during 
install, so it seems Tomcat doesn't read the /webapps/myapp.xml file. 

Sidenote: this problem is somewhat related to my initparameter problem 
outlined earlier today, but cannot be overcome as easily.

has anybody overcome this issue?
is else using the ant manager task together with JNDI resourcelinks 
successfully?

thx
Johannes