aspose file tools*
The moose likes Tomcat and the fly likes Is it Possible to Start Tomcat Manager using command prompt? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Is it Possible to Start Tomcat Manager using command prompt?" Watch "Is it Possible to Start Tomcat Manager using command prompt?" New topic
Author

Is it Possible to Start Tomcat Manager using command prompt?

anish kumarv
Greenhorn

Joined: May 09, 2011
Posts: 7
Hi all,

Friends currently we are accessing tomcat manager using web page ]

http://localhost:8080 ,

is it possible to start the tomcat manager using command prompt!! please guide
me guys..
__________________
With Regards
Anish kumar.V
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12678
    
    5
The Tomcat Manager is a web application, it expects to get HTTP requests, create HTTP responses and have security provided by the server.

Normally this is done from a browser but you could certainly write a simple application using HTTPClient and/or standard java.net API for making a request and reading a response.

Exactly what is it that you need to accomplish?

Bill

Java Resources at www.wbrogden.com
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60055
    
  65

Or issue the request using curl or some other command line tool that generates HTTP requests.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
anish kumarv
Greenhorn

Joined: May 09, 2011
Posts: 7
Hi dude!!!




using this command i can able to stop , start , reload everything i can able to do once i start the tomcat , now i have some doubt guru.

1. Is this is a secure way using wget to start, stop, reload the application.??

2. or is there any options available to start the tomcat manager using terminal ??

Please guide me guys!! to solve this thread.
__________________
With Regards
Anish kumar.V
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15641
    
  15

You can use wget to make secure requests, but the basic authentication form has a problem in that if anyone can see your command line, they can see the userid/password.

There are other ways to remotely control Tomcat however. The JSR-88 interface is primarily about remote deployment, but it can also start and stop webapps. The Management EJB (MEJB) is worth looking into. As is JMX.

Ant has a Tomcat control plugin. I think it's acting as a JSR-88 client, but I'm not sure. Anyway, a lot of people use it.


Customer surveys are for companies who didn't pay proper attention to begin with.
anish kumarv
Greenhorn

Joined: May 09, 2011
Posts: 7
Hi Tim,

your point is very valuable point. , but i am totally new to java , i have some knowledge about only Apache-tomcat , please guide me to install JSR-88 , if you have any documents means please share.


Thanks and Regards
Anish Kumar.V
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15641
    
  15

JSR-88 is a spec, not a specific product, and like all JSR specs, it's hosted by the Java Community Process (http://www.jcp.org). However, you probably don't need to read the spec itself.

From the sound of it, I'd say you would probably do best by looking at the Ant Tomcat control task. You can find information on it at http://ant.apache.org.
anish kumarv
Greenhorn

Joined: May 09, 2011
Posts: 7
wget http://<username>:<password>@<hostname>:<port>/manager/list -O - -q

if i execute this command means...my cpu usage will be high that time!!!


:-( :-(
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Is it Possible to Start Tomcat Manager using command prompt?
 
Similar Threads
Error Strating Tomcat in Windows ME
System.out.println messages
startup.bat not working properly
Tomcat Shutdown problem
Mutiple Instances of a server