You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Kannan J <ka...@yahoo.co.in> on 2010/07/13 11:12:29 UTC

Tomcat not working after moving installation folder

I ran out of disk space on C: so I moved C:\Tomcat5.5 to D:\Tomcat5.5 and also edited the executable path in the windows service registry. But now it doesn't start. It says 
"The Apache Tomcat service terminated with service-specific error 0 (0x0)."
No log file gets written in D:\Tomcat5.5\logs.
I also tried running it from command prompt but it says nothing much.
 
D:\Tomcat5.5\bin>tomcat5.exe //RS//Tomcat5
D:\Tomcat5.5\bin>
D:\Tomcat5.5\bin>tomcat5.exe
Listening for transport dt_socket at address: 8000
 
When I try to open http://localhost:8080 I see that tomcat is not running.
Please advice.


RE: Tomcat not working after moving installation folder

Posted by Saurabh Agrawal <sa...@criticalpath.net>.
Hi Kannan,

Did you stop the tomcat service running previously before move operation?
I suspect, old process has occupied the same address (port or interface)

Please check. For windows there is one utility -- PortMon which will give
port if in use or not.
Try to kill that process and then restart.

Regards,
Saurabh Agrawal

-----Original Message-----
From: Kannan J [mailto:kannan_jayaprakasam@yahoo.co.in] 
Sent: Tuesday, July 13, 2010 2:42 PM
To: users@tomcat.apache.org
Subject: Tomcat not working after moving installation folder

I ran out of disk space on C: so I moved C:\Tomcat5.5 to D:\Tomcat5.5 and
also edited the executable path in the windows service registry. But now it
doesn't start. It says "The Apache Tomcat service terminated with
service-specific error 0 (0x0)."
No log file gets written in D:\Tomcat5.5\logs.
I also tried running it from command prompt but it says nothing much.
 
D:\Tomcat5.5\bin>tomcat5.exe //RS//Tomcat5 D:\Tomcat5.5\bin>
D:\Tomcat5.5\bin>tomcat5.exe Listening for transport dt_socket at address:
8000
 
When I try to open http://localhost:8080 I see that tomcat is not running.
Please advice.



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


RE: Tomcat not working after moving installation folder

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Kannan J> Subject: RE: Tomcat not working after moving installation folder

> I still find the windows service, but its seems to have 
> changed to 'Disabled'

Not good.  You may have to delete the service manually (which will require some research).

It looks like your manual editing of the registry has mucked things up to the point that your best bet may be to uninstall Tomcat completely and reinstall it in the desired location.  (I'd use the .zip download, not the .exe one.)  Given that you now have an unusable service with the name Tomcat5, you may have to install the new one under a different name; see the comments in service.bat to learn how to do that.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.


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


Re: Tomcat not working after moving installation folder

Posted by Kannan J <ka...@yahoo.co.in>.
Yes, after reboot the service no longer appeared, and I did a service.bat install to install the D: tomcat and it said it was successfully installed.
However when I hit a web page I get a weird exceptionjava.lang.NullPointerException
	org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:548)
	org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:453)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
	com.arcot.admin.framework.web.utils.FrameworkSessionFilter.doFilter(FrameworkSessionFilter.java:71)
	org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:96)
	org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:75)



--- On Wed, 14/7/10, Konstantin Kolinko <kn...@gmail.com> wrote:


From: Konstantin Kolinko <kn...@gmail.com>
Subject: Re: Tomcat not working after moving installation folder
To: "Tomcat Users List" <us...@tomcat.apache.org>
Date: Wednesday, 14 July, 2010, 5:50 AM


2010/7/13 Kannan J <ka...@yahoo.co.in>:
> D:\Tomcat5.5\bin>service.bat remove
> The service 'Tomcat5' has been removed
>
> I still find the windows service, but its seems to have changed to 'Disabled' (not sure what it was before)

Maybe you have to do a reboot.

> After that, the install command fails:
> (...)
>

Best regards,
Konstantin Kolinko

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




Re: Tomcat not working after moving installation folder

Posted by Konstantin Kolinko <kn...@gmail.com>.
2010/7/13 Kannan J <ka...@yahoo.co.in>:
> D:\Tomcat5.5\bin>service.bat remove
> The service 'Tomcat5' has been removed
>
> I still find the windows service, but its seems to have changed to 'Disabled' (not sure what it was before)

Maybe you have to do a reboot.

> After that, the install command fails:
> (...)
>

Best regards,
Konstantin Kolinko

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


RE: Tomcat not working after moving installation folder

Posted by Kannan J <ka...@yahoo.co.in>.
I don't have the service.bat in the bin folder so from another Jakarta Tomcat zip file. When I did
D:\Tomcat5.5\bin>service.bat remove
The service 'Tomcat5' has been removed
 
I still find the windows service, but its seems to have changed to 'Disabled' (not sure what it was before)
After that, the install command fails:
 
D:\Tomcat5.5\bin>service.bat install
[2010-07-13 22:14:53] [410  prunsrv.c] [error]
The system cannot find the file specified.
[2010-07-13 22:14:53] [1269 prunsrv.c] [error]
Load configuration failed
[2010-07-13 22:14:53] [410  prunsrv.c] [error]
The system cannot find the file specified.
[2010-07-13 22:14:53] [1269 prunsrv.c] [error]
Load configuration failed
The service 'Tomcat5' has been installed


It is far better to grasp the universe as it really is than to persist in delusion, however satisfying and reassuring.

--- On Tue, 13/7/10, Caldarale, Charles R <Ch...@unisys.com> wrote:


From: Caldarale, Charles R <Ch...@unisys.com>
Subject: RE: Tomcat not working after moving installation folder
To: "Tomcat Users List" <us...@tomcat.apache.org>
Date: Tuesday, 13 July, 2010, 9:08 PM


> From: Jeffrey Janner [mailto:Jeffrey.Janner@PolyDyne.com]
> Subject: RE: Tomcat not working after moving installation folder
> 
> Actually, CATALINA_HOME is used, it's just set in the registry 
> instead of as a environment variable.

The point is the _environment variable_ is NOT used when running Tomcat as a Windows service - the registry entry is.  The environment variable does come into play when _installing_ the service.

- Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.


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




RE: Tomcat not working after moving installation folder

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Jeffrey Janner [mailto:Jeffrey.Janner@PolyDyne.com]
> Subject: RE: Tomcat not working after moving installation folder
> 
> Actually, CATALINA_HOME is used, it's just set in the registry 
> instead of as a environment variable.

The point is the _environment variable_ is NOT used when running Tomcat as a Windows service - the registry entry is.  The environment variable does come into play when _installing_ the service.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.


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


Re: Tomcat not working after moving installation folder

Posted by David kerber <dc...@verizon.net>.
On 7/13/2010 10:22 AM, Jeffrey Janner wrote:

...

> Do yourself a favor and follow Chuck's instructions.

When it comes to Tomcat:

"If in danger or in doubt, do what Chuck says, and it'll work out."

D

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


RE: Tomcat not working after moving installation folder

Posted by Jeffrey Janner <Je...@PolyDyne.com>.
> -----Original Message-----
> From: Caldarale, Charles R [mailto:Chuck.Caldarale@unisys.com]
> Sent: Tuesday, July 13, 2010 8:27 AM
> To: Tomcat Users List
> Subject: RE: Tomcat not working after moving installation folder
> 
> > From: André Warnier [mailto:aw@ice-sa.com]
> > Subject: Re: Tomcat not working after moving installation folder
> >
> > Kannan J wrote:
> > > I ran out of disk space on C: so I moved C:\Tomcat5.5 to
> D:\Tomcat5.5
> > and also edited the executable path in the windows service registry.
> 
> Probably not a safe way to do it, since you likely didn't find
> everything that needed changing.  The best thing to do (besides getting
> a bigger disk drive) is to remove the existing service by running
> "service.bat remove", then reinstall it with "service.bat install".  If
> you don't have the service.bat script in your download, get the .zip
> form of Tomcat and extract it from there.
> 
> > > Listening for transport dt_socket at address: 8000
> >
> > This does not really look like a Tomcat message (but I may
> > be wrong here).
> 
> It's from the Windows service wrapper, not Tomcat itself.
> 
> > Maybe you overlooked the fact that the system variable CATALINA_HOME
> is
> > still set to the C:\tomcat5.5 directory ?
> 
> Environment variables are not used when running Tomcat as a Windows
> service, to that's not relevant.
> 
>  - Chuck

Actually, CATALINA_HOME is used, it's just set in the registry instead of as a environment variable.  It's set in the Procrun portion of the tree.
It does appear that he didn't make all the changes needed in the registry.  The easiest way is to correct this is to do as Chuck says and use the service.bat script to do a remove and reinstall.  The second easiest method is to make all the corrections useing the "Configure Tomcat" option and changing all the appropriate paths you find there.  There also appear to be two locations in the registry tree for Tomcat, one is under the SERVICES, "ImagePath", and the other is under SOFTWARE, "InstallPath", though I can't tell you for sure that this one needs to be changed.
Do yourself a favor and follow Chuck's instructions.

__________________________________________________________________________

Confidentiality Notice:  This Transmission (including any attachments) 
may contain information that is privileged, confidential, and exempt from 
disclosure under applicable law.  If the reader of this message is not 
the intended recipient you are hereby notified that any dissemination, 
distribution, or copying of this communication is strictly prohibited.  

If you have received this transmission in error, please immediately reply 
to the sender or telephone (512) 343-9100 and delete this transmission 
from your system.


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


RE: Tomcat not working after moving installation folder

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: André Warnier [mailto:aw@ice-sa.com]
> Subject: Re: Tomcat not working after moving installation folder
> 
> Kannan J wrote:
> > I ran out of disk space on C: so I moved C:\Tomcat5.5 to D:\Tomcat5.5
> and also edited the executable path in the windows service registry.

Probably not a safe way to do it, since you likely didn't find everything that needed changing.  The best thing to do (besides getting a bigger disk drive) is to remove the existing service by running "service.bat remove", then reinstall it with "service.bat install".  If you don't have the service.bat script in your download, get the .zip form of Tomcat and extract it from there.

> > Listening for transport dt_socket at address: 8000
> 
> This does not really look like a Tomcat message (but I may 
> be wrong here).

It's from the Windows service wrapper, not Tomcat itself.

> Maybe you overlooked the fact that the system variable CATALINA_HOME is
> still set to the C:\tomcat5.5 directory ?

Environment variables are not used when running Tomcat as a Windows service, to that's not relevant.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.


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


Re: Tomcat not working after moving installation folder

Posted by André Warnier <aw...@ice-sa.com>.
Kannan J wrote:
> I ran out of disk space on C: so I moved C:\Tomcat5.5 to D:\Tomcat5.5 and also edited the executable path in the windows service registry. But now it doesn't start. It says 
> "The Apache Tomcat service terminated with service-specific error 0 (0x0)."
> No log file gets written in D:\Tomcat5.5\logs.
> I also tried running it from command prompt but it says nothing much.
>  
> D:\Tomcat5.5\bin>tomcat5.exe //RS//Tomcat5
> D:\Tomcat5.5\bin>
> D:\Tomcat5.5\bin>tomcat5.exe
> Listening for transport dt_socket at address: 8000

This does not really look like a Tomcat message (but I may be wrong here).

>  
> When I try to open http://localhost:8080 I see that tomcat is not running.
> Please advice.
> 
You can also run :
netstat -ano

to see which ports are in the LISTEN state.

Maybe you overlooked the fact that the system variable CATALINA_HOME is still set to the 
C:\tomcat5.5 directory ?

One question : does your Tomcat "bin" subdirectory contain files like "service.bat", 
"startup.bat" etc.. ?





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