Re: System user accounts required to use manager in 4.1.12?

2002-11-13 Thread Luc Santeramo
maybe you already have the answer but here his mine:)


Specifically, I would like to know, for the scenario above, how I would fill
in the three text boxes on the page at
http://galeron.aas.com:8080/manager/html/list which are labeled Path,
Config URL, and WAR URL.  As it stands right now, I would think it would
be:

Path = /someApp
Config URL = I have no idea
WAR URL = C:\some\path\to\war\file\on\Win2K


Config URL should be something like 
file:/usr/local/jakarta-tomcat/webapps/myapp.xml  (unix system)

where myapp.xml file looks like manager.xml

hope it helps

Luc


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org



Re: System user accounts required to use manager in 4.1.12?

2002-11-08 Thread billfly3
John,
The manager install and reload finctions work fine on 4.0.4 running on an 
AS/400 with a windows client.  Your URL format looks correct and like the one I 
used.  It took me a few trial and errors to get the format correct.
Bill
 
 Hello -
 
 I've setup 4.1.12 on Solaris 8.  
 
 I've given access to the manager app to my users.  They are all using the
 same user account and password in tomcat-users.xml for now, though that will
 change once I get more experience using the security roles system.
 
 Do my users need system-level user accounts in order to use the Tomcat
 manager app?  Do WAR files need to be copied to the server prior to trying
 to deploy them using the Manager app?I'm trying to use a Manager URL
 like this to install a WAR file:
 
 http://galeron.aas.com:8080/manager/install?path=/myAppwar=file:C:/path/to/
 myApp.war
 
 This returns an error message that says:
 
 FAIL - Encountered exception java.io.IOException:
 java.lang.IllegalArgumentException: Doc base must point to a WAR file
 
 I've got a whole bunch of Microsoft VB coders learning JSP and Java, and I'd
 really like to avoid having to set all of them up as users on my server, and
 teach them about command lines, FTP, etc.  It was my understanding that they
 would be able to use the Manager app to deploy their WAR files as needed via
 a web browser.  Is this not the case?
 
 Assume this scenario:
 
 - they should be able to access their apps on
 http://some.server.name/someApp
 - they should be able to use the Manager app to deploy as needed
 - their application WAR files exist on Windows 2000 Pro machines
 
 That said, can someone provide me with an example of how to deploy
 someApp.war from a Windows 2000 machine to a Tomcat server using only the
 Manager app?  Can this even be done?
 
 Specifically, I would like to know, for the scenario above, how I would fill
 in the three text boxes on the page at
 http://galeron.aas.com:8080/manager/html/list which are labeled Path,
 Config URL, and WAR URL.  As it stands right now, I would think it would
 be:
 
 Path = /someApp
 Config URL = I have no idea
 WAR URL = C:\some\path\to\war\file\on\Win2K
 
 Any help is appreciated...and I guarantee the docs will get updated once I
 figure this out, as they haven't helped me any so far!
 
 - John
 
 
 John Turner
 [EMAIL PROTECTED] | 248-488-3466
 Advertising Audit Service
 http://www.aas.com
 
 
 --
 To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
 

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: System user accounts required to use manager in 4.1.12?

2002-11-08 Thread Tom Oinn
I find it unlikely that a path like that ever worked on any system. 
You're sending parameters to a server, so the code that needs to read 
the .war file is running remotely. There is no way that the remote 
server will understand your 'C:/path/.../foo.war', it simply doesn't 
exist there. You need to put the war files onto an HTTP server 
somewhere, quite possible using IIS or Apache on your win2k machines, 
have the users copy the war files into their web space and then access 
them by HTTP from the manager application (i.e. use the 
http://my.workstation/~me/mywebapp.war rather than a local file path).

Cheers,

Tom

[EMAIL PROTECTED] wrote:
John,
The manager install and reload finctions work fine on 4.0.4 running on an 
AS/400 with a windows client.  Your URL format looks correct and like the one I 
used.  It took me a few trial and errors to get the format correct.
Bill

Hello -

I've setup 4.1.12 on Solaris 8.  

I've given access to the manager app to my users.  They are all using the
same user account and password in tomcat-users.xml for now, though that will
change once I get more experience using the security roles system.

Do my users need system-level user accounts in order to use the Tomcat
manager app?  Do WAR files need to be copied to the server prior to trying
to deploy them using the Manager app?I'm trying to use a Manager URL
like this to install a WAR file:

http://galeron.aas.com:8080/manager/install?path=/myAppwar=file:C:/path/to/
myApp.war

This returns an error message that says:

FAIL - Encountered exception java.io.IOException:
java.lang.IllegalArgumentException: Doc base must point to a WAR file

I've got a whole bunch of Microsoft VB coders learning JSP and Java, and I'd
really like to avoid having to set all of them up as users on my server, and
teach them about command lines, FTP, etc.  It was my understanding that they
would be able to use the Manager app to deploy their WAR files as needed via
a web browser.  Is this not the case?

Assume this scenario:

- they should be able to access their apps on
http://some.server.name/someApp
- they should be able to use the Manager app to deploy as needed
- their application WAR files exist on Windows 2000 Pro machines

That said, can someone provide me with an example of how to deploy
someApp.war from a Windows 2000 machine to a Tomcat server using only the
Manager app?  Can this even be done?

Specifically, I would like to know, for the scenario above, how I would fill
in the three text boxes on the page at
http://galeron.aas.com:8080/manager/html/list which are labeled Path,
Config URL, and WAR URL.  As it stands right now, I would think it would
be:

Path = /someApp
Config URL = I have no idea
WAR URL = C:\some\path\to\war\file\on\Win2K

Any help is appreciated...and I guarantee the docs will get updated once I
figure this out, as they haven't helped me any so far!

- John


John Turner
[EMAIL PROTECTED] | 248-488-3466
Advertising Audit Service
http://www.aas.com


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org





--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: System user accounts required to use manager in 4.1.12?

2002-11-08 Thread Turner, John

That's a shame.  Certainly doesn't make much sense, either.  What's the use
of the Manager app then?  Might as well just use the command line.  From the
docs:

The war parameter specifies a URL (including the file: scheme) for either a
directory or a web application archive (WAR) file. 

Actually, it looks like it does work, I just wasn't using jar.  Also from
the docs:

jar:file:/absolute/path/to/a/warfile.war!/ - The URL to a local web
application archive (WAR) file. You can use any syntax that is valid for the
JarURLConnection class for reference to an entire JAR file.

It's supposed to work via HTTP PUT.

John


 -Original Message-
 From: Tom Oinn [mailto:tmo;ebi.ac.uk]
 Sent: Friday, November 08, 2002 10:15 AM
 To: Tomcat Users List
 Subject: Re: System user accounts required to use manager in 4.1.12?
 
 
 I find it unlikely that a path like that ever worked on any system. 
 You're sending parameters to a server, so the code that needs to read 
 the .war file is running remotely. There is no way that the remote 
 server will understand your 'C:/path/.../foo.war', it simply doesn't 
 exist there. You need to put the war files onto an HTTP server 
 somewhere, quite possible using IIS or Apache on your win2k machines, 
 have the users copy the war files into their web space and 
 then access 
 them by HTTP from the manager application (i.e. use the 
 http://my.workstation/~me/mywebapp.war rather than a local file path).
 
 Cheers,
 
 Tom
 

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: System user accounts required to use manager in 4.1.12?

2002-11-08 Thread Turner, John

My point is that if I can upload a GIF file (a binary file) via a web page,
why on earth can't I upload a WAR file?  Seems to make perfect sense to me.

John


 -Original Message-
 From: Turner, John [mailto:JTurner;AAS.com]
 Sent: Friday, November 08, 2002 10:20 AM
 To: 'Tomcat Users List'
 Subject: RE: System user accounts required to use manager in 4.1.12?
 
 
 
 That's a shame.  Certainly doesn't make much sense, either.  
 What's the use
 of the Manager app then?  Might as well just use the command 
 line.  From the
 docs:
 
 The war parameter specifies a URL (including the file: 
 scheme) for either a
 directory or a web application archive (WAR) file. 
 
 Actually, it looks like it does work, I just wasn't using 
 jar.  Also from
 the docs:
 
 jar:file:/absolute/path/to/a/warfile.war!/ - The URL to a local web
 application archive (WAR) file. You can use any syntax that 
 is valid for the
 JarURLConnection class for reference to an entire JAR file.
 
 It's supposed to work via HTTP PUT.
 
 John
 
 
  -Original Message-
  From: Tom Oinn [mailto:tmo;ebi.ac.uk]
  Sent: Friday, November 08, 2002 10:15 AM
  To: Tomcat Users List
  Subject: Re: System user accounts required to use manager in 4.1.12?
  
  
  I find it unlikely that a path like that ever worked on any system. 
  You're sending parameters to a server, so the code that 
 needs to read 
  the .war file is running remotely. There is no way that the remote 
  server will understand your 'C:/path/.../foo.war', it 
 simply doesn't 
  exist there. You need to put the war files onto an HTTP server 
  somewhere, quite possible using IIS or Apache on your win2k 
 machines, 
  have the users copy the war files into their web space and 
  then access 
  them by HTTP from the manager application (i.e. use the 
  http://my.workstation/~me/mywebapp.war rather than a local 
 file path).
  
  Cheers,
  
  Tom
  
 
 --
 To unsubscribe, e-mail:   
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: System user accounts required to use manager in 4.1.12?

2002-11-08 Thread Turner, John

This URL doesn't work either:

http://some.domain.com:8080/manager/install?path=/myAppwar=jar:http://inter
nal.dev.box/myApp.war!/

It returns an error that says:

FAIL - Encountered exception java.lang.IllegalArgumentException: Invalid
URL for web application archive: http://internal.dev.box/myApp.war;

I've verified with wget that the WAR file is definitely available via HTTP
from the local development workstation using that URL.

Can anyone explain what's going on?

John


 -Original Message-
 From: Tom Oinn [mailto:tmo;ebi.ac.uk]
 Sent: Friday, November 08, 2002 10:15 AM
 To: Tomcat Users List
 Subject: Re: System user accounts required to use manager in 4.1.12?
 
 
 I find it unlikely that a path like that ever worked on any system. 
 You're sending parameters to a server, so the code that needs to read 
 the .war file is running remotely. There is no way that the remote 
 server will understand your 'C:/path/.../foo.war', it simply doesn't 
 exist there. You need to put the war files onto an HTTP server 
 somewhere, quite possible using IIS or Apache on your win2k machines, 
 have the users copy the war files into their web space and 
 then access 
 them by HTTP from the manager application (i.e. use the 
 http://my.workstation/~me/mywebapp.war rather than a local file path).
 
 Cheers,
 
 Tom
 
 [EMAIL PROTECTED] wrote:
  John,
  The manager install and reload finctions work fine on 
 4.0.4 running on an 
  AS/400 with a windows client.  Your URL format looks 
 correct and like the one I 
  used.  It took me a few trial and errors to get the format correct.
  Bill
  
 Hello -
 
 I've setup 4.1.12 on Solaris 8.  
 
 I've given access to the manager app to my users.  They are 
 all using the
 same user account and password in tomcat-users.xml for now, 
 though that will
 change once I get more experience using the security roles system.
 
 Do my users need system-level user accounts in order to use 
 the Tomcat
 manager app?  Do WAR files need to be copied to the server 
 prior to trying
 to deploy them using the Manager app?I'm trying to use 
 a Manager URL
 like this to install a WAR file:
 
 http://galeron.aas.com:8080/manager/install?path=/myAppwar=
 file:C:/path/to/
 myApp.war
 
 This returns an error message that says:
 
 FAIL - Encountered exception java.io.IOException:
 java.lang.IllegalArgumentException: Doc base must point to 
 a WAR file
 
 I've got a whole bunch of Microsoft VB coders learning JSP 
 and Java, and I'd
 really like to avoid having to set all of them up as users 
 on my server, and
 teach them about command lines, FTP, etc.  It was my 
 understanding that they
 would be able to use the Manager app to deploy their WAR 
 files as needed via
 a web browser.  Is this not the case?
 
 Assume this scenario:
 
 - they should be able to access their apps on
 http://some.server.name/someApp
 - they should be able to use the Manager app to deploy as needed
 - their application WAR files exist on Windows 2000 Pro machines
 
 That said, can someone provide me with an example of how to deploy
 someApp.war from a Windows 2000 machine to a Tomcat server 
 using only the
 Manager app?  Can this even be done?
 
 Specifically, I would like to know, for the scenario above, 
 how I would fill
 in the three text boxes on the page at
 http://galeron.aas.com:8080/manager/html/list which are 
 labeled Path,
 Config URL, and WAR URL.  As it stands right now, I 
 would think it would
 be:
 
 Path = /someApp
 Config URL = I have no idea
 WAR URL = C:\some\path\to\war\file\on\Win2K
 
 Any help is appreciated...and I guarantee the docs will get 
 updated once I
 figure this out, as they haven't helped me any so far!
 
 - John
 
 
 John Turner
 [EMAIL PROTECTED] | 248-488-3466
 Advertising Audit Service
 http://www.aas.com
 
 
 --
 To unsubscribe, e-mail:   
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org

 
 --
 To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org
 



--
To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: System user accounts required to use manager in 4.1.12?

2002-11-08 Thread Srinadh Karumuri
The input type for this entry field is text.
I think the input type should be file for a server to be able to accept it.

Otherwise, I feel, there is no privacy. I can access anything from user's 
hard drive.

Sri

At 10:35 AM 11/8/2002, Turner, John wrote:

My point is that if I can upload a GIF file (a binary file) via a web page,
why on earth can't I upload a WAR file?  Seems to make perfect sense to me.

John


 -Original Message-
 From: Turner, John [mailto:JTurner;AAS.com]
 Sent: Friday, November 08, 2002 10:20 AM
 To: 'Tomcat Users List'
 Subject: RE: System user accounts required to use manager in 4.1.12?



 That's a shame.  Certainly doesn't make much sense, either.
 What's the use
 of the Manager app then?  Might as well just use the command
 line.  From the
 docs:

 The war parameter specifies a URL (including the file:
 scheme) for either a
 directory or a web application archive (WAR) file. 

 Actually, it looks like it does work, I just wasn't using
 jar.  Also from
 the docs:

 jar:file:/absolute/path/to/a/warfile.war!/ - The URL to a local web
 application archive (WAR) file. You can use any syntax that
 is valid for the
 JarURLConnection class for reference to an entire JAR file.

 It's supposed to work via HTTP PUT.

 John


  -Original Message-
  From: Tom Oinn [mailto:tmo;ebi.ac.uk]
  Sent: Friday, November 08, 2002 10:15 AM
  To: Tomcat Users List
  Subject: Re: System user accounts required to use manager in 4.1.12?
 
 
  I find it unlikely that a path like that ever worked on any system.
  You're sending parameters to a server, so the code that
 needs to read
  the .war file is running remotely. There is no way that the remote
  server will understand your 'C:/path/.../foo.war', it
 simply doesn't
  exist there. You need to put the war files onto an HTTP server
  somewhere, quite possible using IIS or Apache on your win2k
 machines,
  have the users copy the war files into their web space and
  then access
  them by HTTP from the manager application (i.e. use the
  http://my.workstation/~me/mywebapp.war rather than a local
 file path).
 
  Cheers,
 
  Tom
 

 --
 To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org



--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: System user accounts required to use manager in 4.1.12?

2002-11-08 Thread Turner, John

Understood, my point was that the answer to my original question seems to be
you can only deploy WAR files that exist on the same machine as the Tomcat
server using the Tomcat Manager and that doesn't seem to be very
helpful...I can do that via the command line.  It would seem to me that the
advantage of a web-based management interface is that I can develop
somewhere else, and deploy somewhere else, and use the web page to do this.
So far, based on the error messages I am getting, this is not possible.  Or
I just have the URL screwed up, but I have verified that my WAR file is
available at the URL I give Manager.

John


 -Original Message-
 From: Srinadh Karumuri [mailto:skarumur;bbn.com]
 Sent: Friday, November 08, 2002 11:06 AM
 To: Tomcat Users List; 'Tomcat Users List'
 Subject: RE: System user accounts required to use manager in 4.1.12?
 
 
 The input type for this entry field is text.
 I think the input type should be file for a server to be 
 able to accept it.
 
 Otherwise, I feel, there is no privacy. I can access anything 
 from user's 
 hard drive.
 
 Sri
 

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: System user accounts required to use manager in 4.1.12?

2002-11-08 Thread Cox, Charlie
actually this should work. I have used install with a context(not a war).
you have to play around with the path to get it exactly right. I would
expect it to work with a war as well. I don't recall the exact syntax, but I
did get it working by referencing the manager howto.

I think Tom read it as your war is on your machine, not the server, where I
read it as you copied the war to your tomcat server and are just trying to
make it available. Is this assumption correct?

did you try 'jar:file:' in place of 'file:' for your path?

Charlie

 -Original Message-
 From: Turner, John [mailto:JTurner;AAS.com]
 Sent: Friday, November 08, 2002 10:20 AM
 To: 'Tomcat Users List'
 Subject: RE: System user accounts required to use manager in 4.1.12?
 
 
 
 That's a shame.  Certainly doesn't make much sense, either.  
 What's the use
 of the Manager app then?  Might as well just use the command 
 line.  From the
 docs:
 
 The war parameter specifies a URL (including the file: 
 scheme) for either a
 directory or a web application archive (WAR) file. 
 
 Actually, it looks like it does work, I just wasn't using 
 jar.  Also from
 the docs:
 
 jar:file:/absolute/path/to/a/warfile.war!/ - The URL to a local web
 application archive (WAR) file. You can use any syntax that 
 is valid for the
 JarURLConnection class for reference to an entire JAR file.
 
 It's supposed to work via HTTP PUT.
 
 John
 
 
  -Original Message-
  From: Tom Oinn [mailto:tmo;ebi.ac.uk]
  Sent: Friday, November 08, 2002 10:15 AM
  To: Tomcat Users List
  Subject: Re: System user accounts required to use manager in 4.1.12?
  
  
  I find it unlikely that a path like that ever worked on any system. 
  You're sending parameters to a server, so the code that 
 needs to read 
  the .war file is running remotely. There is no way that the remote 
  server will understand your 'C:/path/.../foo.war', it 
 simply doesn't 
  exist there. You need to put the war files onto an HTTP server 
  somewhere, quite possible using IIS or Apache on your win2k 
 machines, 
  have the users copy the war files into their web space and 
  then access 
  them by HTTP from the manager application (i.e. use the 
  http://my.workstation/~me/mywebapp.war rather than a local 
 file path).
  
  Cheers,
  
  Tom
  
 
 --
 To unsubscribe, e-mail:   
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: System user accounts required to use manager in 4.1.12?

2002-11-08 Thread Cox, Charlie
my apologies, saw your reply before your original post...

I haven't tried a remote war file

Charlie



 -Original Message-
 From: Cox, Charlie [mailto:ccox;cincom.com]
 Sent: Friday, November 08, 2002 11:13 AM
 To: 'Tomcat Users List'
 Subject: RE: System user accounts required to use manager in 4.1.12?
 
 
 actually this should work. I have used install with a 
 context(not a war).
 you have to play around with the path to get it exactly right. I would
 expect it to work with a war as well. I don't recall the 
 exact syntax, but I
 did get it working by referencing the manager howto.
 
 I think Tom read it as your war is on your machine, not the 
 server, where I
 read it as you copied the war to your tomcat server and are 
 just trying to
 make it available. Is this assumption correct?
 
 did you try 'jar:file:' in place of 'file:' for your path?
 
 Charlie
 
  -Original Message-
  From: Turner, John [mailto:JTurner;AAS.com]
  Sent: Friday, November 08, 2002 10:20 AM
  To: 'Tomcat Users List'
  Subject: RE: System user accounts required to use manager in 4.1.12?
  
  
  
  That's a shame.  Certainly doesn't make much sense, either.  
  What's the use
  of the Manager app then?  Might as well just use the command 
  line.  From the
  docs:
  
  The war parameter specifies a URL (including the file: 
  scheme) for either a
  directory or a web application archive (WAR) file. 
  
  Actually, it looks like it does work, I just wasn't using 
  jar.  Also from
  the docs:
  
  jar:file:/absolute/path/to/a/warfile.war!/ - The URL to a local web
  application archive (WAR) file. You can use any syntax that 
  is valid for the
  JarURLConnection class for reference to an entire JAR file.
  
  It's supposed to work via HTTP PUT.
  
  John
  
  
   -Original Message-
   From: Tom Oinn [mailto:tmo;ebi.ac.uk]
   Sent: Friday, November 08, 2002 10:15 AM
   To: Tomcat Users List
   Subject: Re: System user accounts required to use manager 
 in 4.1.12?
   
   
   I find it unlikely that a path like that ever worked on 
 any system. 
   You're sending parameters to a server, so the code that 
  needs to read 
   the .war file is running remotely. There is no way that 
 the remote 
   server will understand your 'C:/path/.../foo.war', it 
  simply doesn't 
   exist there. You need to put the war files onto an HTTP server 
   somewhere, quite possible using IIS or Apache on your win2k 
  machines, 
   have the users copy the war files into their web space and 
   then access 
   them by HTTP from the manager application (i.e. use the 
   http://my.workstation/~me/mywebapp.war rather than a local 
  file path).
   
   Cheers,
   
   Tom
   
  
  --
  To unsubscribe, e-mail:   
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:tomcat-user-help;jakarta.apache.org
 
 --
 To unsubscribe, e-mail:   
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: System user accounts required to use manager in 4.1.12?

2002-11-08 Thread Craig R. McClanahan


On Fri, 8 Nov 2002, Turner, John wrote:

 Date: Fri, 8 Nov 2002 10:20:18 -0500
 From: Turner, John [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Subject: RE: System user accounts required to use manager in 4.1.12?


 That's a shame.  Certainly doesn't make much sense, either.  What's the use
 of the Manager app then?  Might as well just use the command line.  From the
 docs:

 The war parameter specifies a URL (including the file: scheme) for either a
 directory or a web application archive (WAR) file. 

 Actually, it looks like it does work, I just wasn't using jar.  Also from
 the docs:

 jar:file:/absolute/path/to/a/warfile.war!/ - The URL to a local web
 application archive (WAR) file. You can use any syntax that is valid for the
 JarURLConnection class for reference to an entire JAR file.

 It's supposed to work via HTTP PUT.


The deploy command does indeed do a PUT, so it can upload a WAR to a
remote Tomcat instance.  You won't be able to directly do this with a
browser, through -- the most common mechanism is to use the custom Ant
task (so that you can easily script it) that is included with Tomcat 4.1.
See the Manager docs for more info:

  http://jakarta.apache.org/tomcat/tomcat-4.1-doc/manager-howto.html

Alternatively, front-end management tools (such as the deploytool GUI
included in the Java Web Services Developer Pack) can transparently use
this approach behind the scenes for you.

The install command does not copy the webapp -- it simply mounts it in
place, so the directory or WAR needs to be on the same filesystem as the
Tomcat instance.  This is a lot faster during development, which is why it
exists separately.  It also works directly from the browser.

 John



Craig


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: System user accounts required to use manager in 4.1.12?

2002-11-08 Thread Turner, John

OK, thanks for the clarification.  I will keep playing with it, and check
out the other tools you mentioned.

John

 -Original Message-
 From: Craig R. McClanahan [mailto:craigmcc;apache.org]
 Sent: Friday, November 08, 2002 12:53 PM
 To: Tomcat Users List
 Subject: RE: System user accounts required to use manager in 4.1.12?
 
 
 
 
 On Fri, 8 Nov 2002, Turner, John wrote:
 
  Date: Fri, 8 Nov 2002 10:20:18 -0500
  From: Turner, John [EMAIL PROTECTED]
  Reply-To: Tomcat Users List [EMAIL PROTECTED]
  To: 'Tomcat Users List' [EMAIL PROTECTED]
  Subject: RE: System user accounts required to use manager in 4.1.12?
 
 
  That's a shame.  Certainly doesn't make much sense, either. 
  What's the use
  of the Manager app then?  Might as well just use the 
 command line.  From the
  docs:
 
  The war parameter specifies a URL (including the file: 
 scheme) for either a
  directory or a web application archive (WAR) file. 
 
  Actually, it looks like it does work, I just wasn't using 
 jar.  Also from
  the docs:
 
  jar:file:/absolute/path/to/a/warfile.war!/ - The URL to a local web
  application archive (WAR) file. You can use any syntax that 
 is valid for the
  JarURLConnection class for reference to an entire JAR file.
 
  It's supposed to work via HTTP PUT.
 
 
 The deploy command does indeed do a PUT, so it can upload a WAR to a
 remote Tomcat instance.  You won't be able to directly do this with a
 browser, through -- the most common mechanism is to use the custom Ant
 task (so that you can easily script it) that is included with 
 Tomcat 4.1.
 See the Manager docs for more info:
 
   http://jakarta.apache.org/tomcat/tomcat-4.1-doc/manager-howto.html
 
 Alternatively, front-end management tools (such as the 
 deploytool GUI
 included in the Java Web Services Developer Pack) can 
 transparently use
 this approach behind the scenes for you.
 
 The install command does not copy the webapp -- it simply 
 mounts it in
 place, so the directory or WAR needs to be on the same 
 filesystem as the
 Tomcat instance.  This is a lot faster during development, 
 which is why it
 exists separately.  It also works directly from the browser.
 
  John

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: System user accounts required to use manager in 4.1.12?

2002-11-08 Thread Craig R. McClanahan


On Fri, 8 Nov 2002, Turner, John wrote:

 Date: Fri, 8 Nov 2002 13:01:25 -0500
 From: Turner, John [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Subject: RE: System user accounts required to use manager in 4.1.12?


 OK, thanks for the clarification.  I will keep playing with it, and check
 out the other tools you mentioned.


As a shortcut to using the Ant-based tasks, check out the Application
Developer's Guide shipped with 4.1 -- it includes a nice template
build.xml file that defines everything you need, including the
declarations of the custom tasks and examples of their use:

  http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/

For the Java Web Services Developer Pack release (based on Tomcat 4.1),
and the associated tutorial which includes information on using these
tasks as well as the deloytool GUI, start at:

  http://java.sun.com/webservices/

 John


Craig


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: System user accounts required to use manager in 4.1.12?

2002-11-08 Thread Turner, John

Sweet. Thanks.  Hope those VB coders are ready to get down and funky with
ant. :)

John


 -Original Message-
 From: Craig R. McClanahan [mailto:craigmcc;apache.org]
 Sent: Friday, November 08, 2002 1:13 PM
 To: Tomcat Users List
 Subject: RE: System user accounts required to use manager in 4.1.12?
 
 
 
 
 On Fri, 8 Nov 2002, Turner, John wrote:
 
  Date: Fri, 8 Nov 2002 13:01:25 -0500
  From: Turner, John [EMAIL PROTECTED]
  Reply-To: Tomcat Users List [EMAIL PROTECTED]
  To: 'Tomcat Users List' [EMAIL PROTECTED]
  Subject: RE: System user accounts required to use manager in 4.1.12?
 
 
  OK, thanks for the clarification.  I will keep playing with 
 it, and check
  out the other tools you mentioned.
 
 
 As a shortcut to using the Ant-based tasks, check out the Application
 Developer's Guide shipped with 4.1 -- it includes a nice template
 build.xml file that defines everything you need, including the
 declarations of the custom tasks and examples of their use:
 
   http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/
 
 For the Java Web Services Developer Pack release (based on 
 Tomcat 4.1),
 and the associated tutorial which includes information on using these
 tasks as well as the deloytool GUI, start at:
 
   http://java.sun.com/webservices/
 
  John
 
 
 Craig
 
 
 --
 To unsubscribe, e-mail:   
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: System user accounts required to use manager in 4.1.12?

2002-11-08 Thread Craig R. McClanahan


On Fri, 8 Nov 2002, Turner, John wrote:

 Date: Fri, 8 Nov 2002 14:07:13 -0500
 From: Turner, John [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Subject: RE: System user accounts required to use manager in 4.1.12?


 Sweet. Thanks.  Hope those VB coders are ready to get down and funky with
 ant. :)


Nah ... that's what GUI tools are for :-).

 John


Craig


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: System user accounts required to use manager in 4.1.12?

2002-11-08 Thread Turner, John

Is a form-based method for uploading the WAR files worth exploring?  Or was
there a specific decision made at some point to skip that?  I was honestly
surprised that I couldn't just use a standard browse button to pick a WAR
file off my local drive and send it to the server for deployment, security
issues aside.

John


 -Original Message-
 From: Craig R. McClanahan [mailto:craigmcc;apache.org]
 Sent: Friday, November 08, 2002 2:16 PM
 To: Tomcat Users List
 Subject: RE: System user accounts required to use manager in 4.1.12?
 
 
 
 
 On Fri, 8 Nov 2002, Turner, John wrote:
 
  Date: Fri, 8 Nov 2002 14:07:13 -0500
  From: Turner, John [EMAIL PROTECTED]
  Reply-To: Tomcat Users List [EMAIL PROTECTED]
  To: 'Tomcat Users List' [EMAIL PROTECTED]
  Subject: RE: System user accounts required to use manager in 4.1.12?
 
 
  Sweet. Thanks.  Hope those VB coders are ready to get down 
 and funky with
  ant. :)
 
 
 Nah ... that's what GUI tools are for :-).
 
  John
 
 
 Craig
 
 
 --
 To unsubscribe, e-mail:   
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail: 
 mailto:tomcat-user-help;jakarta.apache.org
 

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: System user accounts required to use manager in 4.1.12?

2002-11-08 Thread Craig R. McClanahan


On Fri, 8 Nov 2002, Turner, John wrote:

 Date: Fri, 8 Nov 2002 14:18:54 -0500
 From: Turner, John [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Subject: RE: System user accounts required to use manager in 4.1.12?


 Is a form-based method for uploading the WAR files worth exploring?  Or was
 there a specific decision made at some point to skip that?  I was honestly
 surprised that I couldn't just use a standard browse button to pick a WAR
 file off my local drive and send it to the server for deployment, security
 issues aside.


The deploy option was designed the way it was to make tool integration
easy, not to be used directly by users.  The same basic philosophy was
followed for all the other commands -- they were intended to be interacted
with by programs, not people.

That being said, a file upload based remote deployment mechanism is
certainly feasible, as long as you have the appropriate server-side logic
to decode the data out of the request (like the library included with
Struts).  I just think this functionality would belong in something like
the admin webapp, rather than manager -- putting a human UI on the manager
webapp is misguided, IMHO.

 John

Craig


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: System user accounts required to use manager in 4.1.12?

2002-11-08 Thread Turner, John

Understood.  Thanks.

John


 -Original Message-
 From: Craig R. McClanahan [mailto:craigmcc;apache.org]
 Sent: Friday, November 08, 2002 3:04 PM
 To: Tomcat Users List
 Subject: RE: System user accounts required to use manager in 4.1.12?
 
 
 
 
 On Fri, 8 Nov 2002, Turner, John wrote:
 
  Date: Fri, 8 Nov 2002 14:18:54 -0500
  From: Turner, John [EMAIL PROTECTED]
  Reply-To: Tomcat Users List [EMAIL PROTECTED]
  To: 'Tomcat Users List' [EMAIL PROTECTED]
  Subject: RE: System user accounts required to use manager in 4.1.12?
 
 
  Is a form-based method for uploading the WAR files worth 
 exploring?  Or was
  there a specific decision made at some point to skip that?  
 I was honestly
  surprised that I couldn't just use a standard browse 
 button to pick a WAR
  file off my local drive and send it to the server for 
 deployment, security
  issues aside.
 
 
 The deploy option was designed the way it was to make tool 
 integration
 easy, not to be used directly by users.  The same basic philosophy was
 followed for all the other commands -- they were intended to 
 be interacted
 with by programs, not people.
 
 That being said, a file upload based remote deployment mechanism is
 certainly feasible, as long as you have the appropriate 
 server-side logic
 to decode the data out of the request (like the library included with
 Struts).  I just think this functionality would belong in 
 something like
 the admin webapp, rather than manager -- putting a human UI 
 on the manager
 webapp is misguided, IMHO.
 
  John
 
 Craig
 
 
 --
 To unsubscribe, e-mail:   
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org