Re: Fwd: Unable to start tomcat as a service.

2014-04-09 Thread akshay jain
Hey,

I just modified service.bat to set the JRE_HOME. It working really good
now.
Thanks for the help.

Akshay Jain


Re: Fwd: Unable to start tomcat as a service.

2014-04-08 Thread akshay jain
On Tue, Apr 8, 2014 at 3:35 PM, Christoph P.U. Kukulies
wrote:

> Am 08.04.2014 11:42, schrieb akshay jain:
>
>> Hi,
>>
>> I downloaded *apache-tomcat-7.0.52-windows-x64.zip* from the apache
>>
>> website.
>> I am running windows 7 64 bit operating system.
>>
>
>
> Are you planning to leave it installed under c:\tmp ?
>
No. It was for trial only. I am actually writing an installer for my web
application,
which takes the apache zip and extracts it to the "Programs" folder of
windows.
It also configures a couple of things of apache like port and all.

>
> Did you try to use service.bat install?
>
I am able to install it using " service.bat intall" command and the service
is running fine.
But I want apache to use a particular jre which my installer would be
copying to the system while installing. I found that setting JRE_HOME
variable
in setenv.bat doesn't work if service.bat install is used to install the
service.

>
> What does the System Eventlog say?
>
> --
> Christoph Kukulies
>
>
>
>> I have setup the file setenv.bat file and apache starts without any
>> problem
>> when started using startup.bat script.
>>
>> To run apache as a windows service I did the following steps:
>> 1. Extracted the zip to location C:\tmp
>> 2. Opened command line in the said folder and ran command :
>>   "tomcat7 //IS//"
>> 3. Then ran command :
>>
>>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


-- 
*Akshay Jain*
B-Tech. Computer (*College of Engineering, Pune*)


RE: Unable to start tomcat as a service.

2014-04-08 Thread Jeffrey Janner
> -Original Message-
> From: Konstantin Kolinko [mailto:knst.koli...@gmail.com]
> Sent: Tuesday, April 08, 2014 5:24 AM
> To: Tomcat Users List
> Subject: Re: Unable to start tomcat as a service.
> 
> 2014-04-08 13:42 GMT+04:00 akshay jain :
> > Hi,
> >
> > I downloaded *apache-tomcat-7.0.52-windows-x64.zip* from the apache
> > website.
> > I am running windows 7 64 bit operating system.
> >
> > I have setup the file setenv.bat file and apache starts without any
> > problem when started using startup.bat script.
> >
> > To run apache as a windows service I did the following steps:
> > 1. Extracted the zip to location C:\tmp 2. Opened command line in the
> > said folder and ran command :
> >  "tomcat7 //IS//"
> 
> That just installs procrun (the service wrapper executable), but DOES
> NOT configure it.
> Procrun with an empty configuration does not know what Java application
> it launches and with what settings. (It does not know that it belongs
> to Tomcat, etc.)
> 
> There is service.bat that both installs and configures it, but note
> that you either need to run the command prompt in "as administrator"
> mode, or use 7.0.53 or later due to
> http://issues.apache.org/bugzilla/show_bug.cgi?id=56143
> 
> 
> > 3. Then ran command :
> >   "sc start tomcat7"
> >
> > Following was the output :
> >
> > C:\tmp\apache-tomcat-7.0.52\bin>tomcat7.exe //IS//
> >
> > C:\tmp\apache-tomcat-7.0.52\bin>sc start tomcat7
> >
> > (...)
> >
> 
> Best regards,
> Konstantin Kolinko
> 
You know, it still baffles me why folks still go this route on Windows when 
there's a perfectly good installer package that will take care of all the 
fiddly-bits for you. The only reason I can think of is they are trying to 
install on the GUI-less version of the Server OS, for which the service.bat 
file is a necessity.
Jeff


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Unable to start tomcat as a service.

2014-04-08 Thread Konstantin Kolinko
2014-04-08 13:42 GMT+04:00 akshay jain :
> Hi,
>
> I downloaded *apache-tomcat-7.0.52-windows-x64.zip* from the apache
> website.
> I am running windows 7 64 bit operating system.
>
> I have setup the file setenv.bat file and apache starts without any problem
> when started using startup.bat script.
>
> To run apache as a windows service I did the following steps:
> 1. Extracted the zip to location C:\tmp
> 2. Opened command line in the said folder and ran command :
>  "tomcat7 //IS//"

That just installs procrun (the service wrapper executable), but DOES
NOT configure it.
Procrun with an empty configuration does not know what Java
application it launches and with what settings. (It does not know that
it belongs to Tomcat, etc.)

There is service.bat that both installs and configures it, but note
that you either need to run the command prompt in "as administrator"
mode, or use 7.0.53 or later due to
http://issues.apache.org/bugzilla/show_bug.cgi?id=56143


> 3. Then ran command :
>   "sc start tomcat7"
>
> Following was the output :
>
> C:\tmp\apache-tomcat-7.0.52\bin>tomcat7.exe //IS//
>
> C:\tmp\apache-tomcat-7.0.52\bin>sc start tomcat7
>
> (...)
>

Best regards,
Konstantin Kolinko

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Fwd: Unable to start tomcat as a service.

2014-04-08 Thread Christoph P.U. Kukulies

Am 08.04.2014 11:42, schrieb akshay jain:

Hi,

I downloaded *apache-tomcat-7.0.52-windows-x64.zip* from the apache
website.
I am running windows 7 64 bit operating system.



Are you planning to leave it installed under c:\tmp ?

Did you try to use service.bat install?

What does the System Eventlog say?

--
Christoph Kukulies



I have setup the file setenv.bat file and apache starts without any problem
when started using startup.bat script.

To run apache as a windows service I did the following steps:
1. Extracted the zip to location C:\tmp
2. Opened command line in the said folder and ran command :
  "tomcat7 //IS//"
3. Then ran command :
  



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Fwd: Unable to start tomcat as a service.

2014-04-08 Thread akshay jain
Hi,

I downloaded *apache-tomcat-7.0.52-windows-x64.zip* from the apache
website.
I am running windows 7 64 bit operating system.

I have setup the file setenv.bat file and apache starts without any problem
when started using startup.bat script.

To run apache as a windows service I did the following steps:
1. Extracted the zip to location C:\tmp
2. Opened command line in the said folder and ran command :
 "tomcat7 //IS//"
3. Then ran command :
  "sc start tomcat7"

Following was the output :

C:\tmp\apache-tomcat-7.0.52\bin>tomcat7.exe //IS//

C:\tmp\apache-tomcat-7.0.52\bin>sc start tomcat7

SERVICE_NAME: tomcat7
TYPE   : 10  WIN32_OWN_PROCESS
STATE  : 2  START_PENDING
(NOT_STOPPABLE, NOT_PAUSABLE,
IGNORES_SHUTDOWN)
WIN32_EXIT_CODE: 0  (0x0)
SERVICE_EXIT_CODE  : 0  (0x0)
CHECKPOINT : 0x0
WAIT_HINT  : 0x7d0
PID: 1848
FLAGS  :

C:\tmp\apache-tomcat-7.0.52\bin>sc query tomcat7

SERVICE_NAME: tomcat7
TYPE   : 10  WIN32_OWN_PROCESS
STATE  : 1  STOPPED
WIN32_EXIT_CODE: 1066  (0x42a)
SERVICE_EXIT_CODE  : 1  (0x1)
CHECKPOINT : 0x0
WAIT_HINT  : 0x0

C:\tmp\apache-tomcat-7.0.52\bin>


Am I missing anything. Please help.


-- 
*Akshay Jain*