My point below was that, to start Tomcat, you usually run a startup
script, as root.
If you want to do that via a html page, then your html page must have
something behind it - on the server - that runs as root to start Tomcat.
That's not a good idea.
But basically this is besides the point.
Still no good. Some active code has to respond to a request to start
the server.
--David
paybackorfail wrote:
That's a good point, what if it was just an html page?
Mark Thomas-18 wrote:
paybackorfail wrote:
Hi, I have written a web application in netbeans using java and jsp, and
Your better off setting an application scope flag of some sort. Then
have a filter check the flag before letting the request through for
processing. If the flag is set, redirect to an unavailable page.
--David
paybackorfail wrote:
Hi, thanks for replying, my application will take some data
Instead of trying to stop and start tomcat, would it help if your app used a
more functional scheduling system? For example, Quartz?
http://www.opensymphony.com/quartz/wikidocs/FAQ.html
paybackorfail wrote:
Hi, thanks for replying, my application will take some data from a website
and insert
My earlier point was that you need to think about it in a slightly
different way.
Starting and stopping the server is something that is normally done
rarely and anyway, you can't start something that is not already started
by using it to start itself!
What you should do is to add a boolean f
Hi, thanks for replying, my application will take some data from a website
and insert this data into a database and i schedule the application to do
this every hour using contextlistener and timertask as a java servlet. At
the moment it starts updating the database as soon as i upload the
applicat
paybackorfail wrote:
That's a good point, what if it was just an html page?
Asking a question here is not really a substitute for thinking.
How are you starting Tomcat now ?
Mark Thomas-18 wrote:
paybackorfail wrote:
Hi, I have written a web application in netbeans using java and jsp, and
I think you need to rethink your use cases here...
Exactly WHY do you need to start and stop tomcat from a button on a web
page?
Or do you really need to enable/disable some kind of function?
Generally speaking servers don't expect to be started or stopped by
their clients - well, ok, sometim
That's a good point, what if it was just an html page?
Mark Thomas-18 wrote:
>
> paybackorfail wrote:
>> Hi, I have written a web application in netbeans using java and jsp, and
>> i am
>> hosting it on a server using tomcat, i need help on finding a way to
>> start
>> and stop the server by th
paybackorfail wrote:
> Hi, I have written a web application in netbeans using java and jsp, and i am
> hosting it on a server using tomcat, i need help on finding a way to start
> and stop the server by the user clicking a button on a jsp page, do i have
> to use the org.apache.catalina.ant.StartTa
Stephen Winnall wrote:
> Can anyone help me with this? I'm completely stuck!
>
> I have a Tomcat 6.0.18 installation with WebdavServlet enabled. If I use
> the following file, WebDAV works OK:
>
>
> type="javax.sql.DataSource"
> driverClassName="org.postgresql.Driver"
> ur
Hi, I have written a web application in netbeans using java and jsp, and i am
hosting it on a server using tomcat, i need help on finding a way to start
and stop the server by the user clicking a button on a jsp page, do i have
to use the org.apache.catalina.ant.StartTask of the tomcat api? can an
> From: Frank D. Greco [mailto:fgr...@crossroadstech.com]
> Subject: RE: accepting requests from outside the host?
>
> I had the port set to 8080
??? The port attribute in the element is the one Tomcat uses to listen
for shutdown requests on 127.0.0.1; it *must not* be the same as the
port.
Pete Helgren wrote:
[...]
Hi.
Maybe start at the beginning and let us know :
- which version of Tomcat you are running
- on what kind of "box" (the OS)
- with which version of Apache
Then,
- do you have any reason to be using an Apache front-end, other than
wanting to get rid of the ":8080" in y
14 matches
Mail list logo