Re: Tomcat not working after moving installation folder

2010-07-14 Thread Kannan J
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 knst.koli...@gmail.com wrote:


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


2010/7/13 Kannan J kannan_jayapraka...@yahoo.co.in:
 D:\Tomcat5.5\binservice.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-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org





RE: Tomcat not working after moving installation folder

2010-07-13 Thread Saurabh Agrawal
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_jayapraka...@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\bintomcat5.exe //RS//Tomcat5 D:\Tomcat5.5\bin
D:\Tomcat5.5\bintomcat5.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-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat not working after moving installation folder

2010-07-13 Thread André Warnier

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\bintomcat5.exe //RS//Tomcat5

D:\Tomcat5.5\bin
D:\Tomcat5.5\bintomcat5.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-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Tomcat not working after moving installation folder

2010-07-13 Thread Caldarale, Charles R
 From: André Warnier [mailto:a...@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-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Tomcat not working after moving installation folder

2010-07-13 Thread Jeffrey Janner
 -Original Message-
 From: Caldarale, Charles R [mailto:chuck.caldar...@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:a...@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-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat not working after moving installation folder

2010-07-13 Thread David kerber

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-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Tomcat not working after moving installation folder

2010-07-13 Thread Caldarale, Charles R
 From: Jeffrey Janner [mailto:jeffrey.jan...@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-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Tomcat not working after moving installation folder

2010-07-13 Thread Kannan J
I don't have the service.bat in the bin folder so from another Jakarta Tomcat 
zip file. When I did
D:\Tomcat5.5\binservice.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\binservice.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 chuck.caldar...@unisys.com wrote:


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


 From: Jeffrey Janner [mailto:jeffrey.jan...@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-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org





RE: Tomcat not working after moving installation folder

2010-07-13 Thread Caldarale, Charles R
 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-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat not working after moving installation folder

2010-07-13 Thread Konstantin Kolinko
2010/7/13 Kannan J kannan_jayapraka...@yahoo.co.in:
 D:\Tomcat5.5\binservice.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-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org