RE: Tomcat 5.0.18 not responding as a Windows Service

2004-02-04 Thread Turansky, Mark
Thanks, but my registry setting for 
\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Tomcat5 Start *IS* set to 0x02.

Also, having to mess with registry settings is not a very "clean" install, imho.

Reinstalling J2SE 1.4.2 with a public runtime worked.

4.1.28 worked without having a public runtime.  I had to alter the registry for that 
installation too.  I pointed the registry setting to JAVA_HOME at c:\java.

The installer for 5.0.18 correctly found my JRE in JAVA_HOME (c:\java), but it didn't 
want to play nicely with it.  It still required me to have the public runtime in 
c:\program files\java\jre...



-Original Message-
From: Clay Hensley [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 04, 2004 4:19 PM
To: Tomcat Users List
Subject: Re: Tomcat 5.0.18 not responding as a Windows Service


I recently ran into the same problem on a Windows XP machine.  I tried
everything I could find in the archives: use the EXE installer, use the ZIP
package and run SERVICE install to create the service.  I installed,
uninstalled, and re-installed multiple times.

Fortunately I had a second machine that was working to compare to.  I found
my answer in the registry.  In
\HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Tomcat5 the start key was set to a
value of 0x03.  I set the value to what the working machine uses: 0x02 (I
think this corresponds to Automatic startup in the Services applet under
Control Panel).  I rebooted and like magic everything worked.  I can even
change the Tomcat service from automatic to manual and it still works.

HTH.

Clay Hensley

- Original Message -
From: "Turansky, Mark" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, February 04, 2004 2:30 PM
Subject: Tomcat 5.0.18 not responding as a Windows Service


I installed 5.0.18 on W2K, which automatically sets up Tomcat as a Windows
Service.  My J2SE 1.4.2 is installed at c:\java and I made the JAVA_HOME
environment variable point to this directory.  Tomcat is in c:\tomcat, which
is also CATALINA_HOME.

Tomcat runs fine using 'startup.bat'.

When I try running the service, I receive the following error:

"Could not start the Apache Tomcat service on Local Computer.
Error 1053: The service did not respond to the start or control request in a
timely fashion"


The event log contains the following two entries that correspond to the
above error:


"Timeout (3 milliseconds) waiting for the Apache Tomat service to
connect."

and

"The Apache Tomcat service failed to start due to the following error:
The service did not respond to the start or control request in a timely
fashion"


Note:  calling the tomcat executable (c:\tomcat\bin\tomcat.exe) from the
command line does nothing.  Tomcat does not appear in the task manager.
There is no response whatsoever.

How do I fix this?  Please help.

Thanks in advance,
Mark

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



FIX THIS! Bad dependency is culprit -> Tomcat 5.0.18 not responding as a Windows Service

2004-02-04 Thread Turansky, Mark
The error I described below was fixed by installing a public JRE.

I do not want a public runtime!  I want the java installation in c:\java only, NOT in 
c:\program files\java\j2re1.4.2_03!!!

Developers, please remove this ridiculous dependency.  4.1.28 worked just fine using 
my single installation at c:\java, but 5.0.18 won't?!?!




-Original Message-
From: Turansky, Mark 
Sent: Wednesday, February 04, 2004 3:30 PM
To: Tomcat Users List
Subject: Tomcat 5.0.18 not responding as a Windows Service


I installed 5.0.18 on W2K, which automatically sets up Tomcat as a Windows Service.  
My J2SE 1.4.2 is installed at c:\java and I made the JAVA_HOME environment variable 
point to this directory.  Tomcat is in c:\tomcat, which is also CATALINA_HOME.

Tomcat runs fine using 'startup.bat'.

When I try running the service, I receive the following error:

"Could not start the Apache Tomcat service on Local Computer.
Error 1053: The service did not respond to the start or control request in a timely 
fashion"


The event log contains the following two entries that correspond to the above error:


"Timeout (3 milliseconds) waiting for the Apache Tomat service to connect."
 
and 
 
"The Apache Tomcat service failed to start due to the following error:
The service did not respond to the start or control request in a timely fashion"


Note:  calling the tomcat executable (c:\tomcat\bin\tomcat.exe) from the command line 
does nothing.  Tomcat does not appear in the task manager.  There is no response 
whatsoever.

How do I fix this?  Please help.

Thanks in advance,
Mark

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat 5.0.18 not responding as a Windows Service

2004-02-04 Thread Turansky, Mark
I installed 5.0.18 on W2K, which automatically sets up Tomcat as a Windows Service.  
My J2SE 1.4.2 is installed at c:\java and I made the JAVA_HOME environment variable 
point to this directory.  Tomcat is in c:\tomcat, which is also CATALINA_HOME.

Tomcat runs fine using 'startup.bat'.

When I try running the service, I receive the following error:

"Could not start the Apache Tomcat service on Local Computer.
Error 1053: The service did not respond to the start or control request in a timely 
fashion"


The event log contains the following two entries that correspond to the above error:


"Timeout (3 milliseconds) waiting for the Apache Tomat service to connect."
 
and 
 
"The Apache Tomcat service failed to start due to the following error:
The service did not respond to the start or control request in a timely fashion"


Note:  calling the tomcat executable (c:\tomcat\bin\tomcat.exe) from the command line 
does nothing.  Tomcat does not appear in the task manager.  There is no response 
whatsoever.

How do I fix this?  Please help.

Thanks in advance,
Mark

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Slow response times -- Fixed!!

2003-11-07 Thread Turansky, Mark
either 
enableLookups="false"
or
tcpNoDelay="true"

fixed the lag issue I was having.  My applications are fast now to internal network 
users.

-Original Message-
From: David Rees [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 05, 2003 3:24 PM
To: Tomcat Users List
Cc: [EMAIL PROTECTED]
Subject: Re: Slow response times


On Wed, November 5, 2003 at 9:14 am, Turansky, Mark wrote:
> Tomcat 4.1.27 is running in my company's DMZ.
>
> Users external to my company's network see the normal, fast response times
> from Tomcat.  On my cable modem at home, it is very fast to respond.
>
> Users internal to my company's network (behind our firewall) see very slow
> response times, often several seconds.  On my desktop in the office, it is
> very slow.
>
> This happens with Tomcat running on port 8080 and port 80.
>
> This problem does *not* occur with websites on IIS in our DMZ.  It does
> not occur with Tomcat inside our firewall in a development environment.
>
> any idea why this lag would occur?  Any known issues regarding Tomcat and
> firewalls?

Try setting enableLookups to false in your connectors.  It defaults to
true in the default server.xml, but I think it should probably default to
false.

-Dave

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat 4.1.26 on Win2000

2003-11-06 Thread Turansky, Mark
When you install Tomcat 4.1.27 (the executable) it will give you an option to install 
it as a service.  It will be set to "Automatic" and start up every time you boot the 
server.


-Original Message-
From: Hardee, Brenda G NAVSAFECEN [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 06, 2003 4:24 PM
To: Tomcat Users List
Subject: Tomcat 4.1.26 on Win2000


I am running Tomcat ver 4.1.27 on a Win2000 platform.  Is there an easy way to set up 
tomcat as a service without the whole wrapper thing?  I'm new at this and looking for 
the simplest solution.
I'm also not a great expert on the NT side!!

-Original Message-
From: Longley, Andrew [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 06, 2003 14:50
To: Tomcat Users List
Subject: RE: tomcat 3.3 on Win2k server/IIS 5.0


You can set up a scheduled task or install Tomcat as a service.  I'm
pretty sure the Tomcat 3.3 binary on Windows is a service wrapper, so
you can invoke Tomcat.exe and supply the parameters to create a service.
You may need to edit the registry manually to set up classpaths and
other variables your app needs.  Not sure what you mean about Microsoft
and server daemons...I have many Tomcats starting up automatically as
services on many Win2k machines.  Not under IIS, but I think that is
irrelevant, could be wrong.

Andrew Longley
Senior Software Developer
MindFlow Technologies, Inc.



> -Original Message-
> From: Dara Lambert [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, November 06, 2003 10:40 AM
> To: [EMAIL PROTECTED]
> Subject: tomcat 3.3 on Win2k server/IIS 5.0
> 
> Hello,
> 
> I hope it is ok to email for directions or clarification on 
> how to get Tomcat to start automatically after a Win2k 
> reboot? Is it true that the reason Tomcat doesn't launch is 
> because Microsoft created a server environment that actually 
> doesn't have any simple way of launching server daemons at startup? 
> 
> I have been reseaching this issue for 2 days now, and have 
> found similar issues but nothing quite right. I have 
> installed the AutoexT exe that runs a batch file at startup, 
> but yet again I have to login to the server first so that 
> Tomcat will load. 
> 
> Any help or guidance would be greatly appreciated, I 
> understand if you do not answer direct emails.
> 
> Thank you,
> Dara Lambert
> System Administrator 
> 
> __
> Do you Yahoo!?
> Protect your identity with Yahoo! Mail AddressGuard 
> http://antispam.yahoo.com/whatsnewfree
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Slow response times

2003-11-05 Thread Turansky, Mark
Tomcat 4.1.27 is running in my company's DMZ.

Users external to my company's network see the normal, fast response times from 
Tomcat.  On my cable modem at home, it is very fast to respond.

Users internal to my company's network (behind our firewall) see very slow response 
times, often several seconds.  On my desktop in the office, it is very slow.

This happens with Tomcat running on port 8080 and port 80.

This problem does *not* occur with websites on IIS in our DMZ.  It does not occur with 
Tomcat inside our firewall in a development environment.  

any idea why this lag would occur?  Any known issues regarding Tomcat and firewalls?


Mark Gregory Turansky
Web Engineer
[EMAIL PROTECTED]

www.keymind.com
5111 Leesburg Pike, Suite 703
Falls Church, VA  22041
Tel. 703.379.2060 x450
Fax.703.379.6328

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat and NT Authentication

2003-10-09 Thread Turansky, Mark
Thanks, and I should have gone and read the FAQ *before* posting

mark

-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 09, 2003 11:18 AM
To: Tomcat Users List
Subject: Re: Tomcat and NT Authentication


http://jakarta.apache.org/tomcat/faq/windows.html#ntlm

-Tim

Turansky, Mark wrote:

> Can someone please point me in the right direction for integratin NT authentication 
> with my application running on Tomcat?
> 
> I am working on a government project that requires that users be authenticated 
> against their domain.  When a user tries to access the web application at, for 
> example, www.mysite.com, they need to be prompted for a domain login.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat and NT Authentication

2003-10-09 Thread Turansky, Mark
Can someone please point me in the right direction for integratin NT authentication 
with my application running on Tomcat?

I am working on a government project that requires that users be authenticated against 
their domain.  When a user tries to access the web application at, for example, 
www.mysite.com, they need to be prompted for a domain login.

Thanks in advance,


Mark Gregory Turansky
Web Engineer
[EMAIL PROTECTED]

www.keymind.com
5111 Leesburg Pike, Suite 703
Falls Church, VA  22041
Tel. 703.379.2060 x450
Fax.703.379.6328

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: javac problems with Tomcat as NT Service

2003-08-27 Thread Turansky, Mark
This is perfect, thank you!

-Original Message-
From: John Corrigan [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 27, 2003 4:34 AM
To: Tomcat Users List
Subject: RE: javac problems with Tomcat as NT Service


Edit the registry.  Off the top of my head it is something like:

HKEY_LOCAL_MACHINE
  SYSTEM
CurrentControlSet
  Services
Apache Tomcat 4.1
  Parameters

You need to change the value for the JVM library to point to the jvm.dll in
the server directory of your jre.  Should be something like
JAVA_HOME/jre/bin/server/jvm.dll.

When ran as a service, the environment variables are not read -- possibly
because Java can not read environment variables (at least without using
methods which have been deprecated.)

-Original Message-
From: Fred Kreek [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 26, 2003 10:45 PM
To: Tomcat Users List
Subject: Re: javac problems with Tomcat as NT Service


At 22:56 26/08/03, you wrote:
>I have installed the J2SE and J2EE SDKs to c:\java.
>I installed Tomcat to c:\Tomcat.
>I have X_HOME variables for both installations in my computers Environment
>Variables.
>
>The problem is that the SDKs also install a JRE to c:\program files\java\.
>
>When I run Tomcat in a console window, everything runs fine.  Tomcat uses
>JAVA_HOME which has javac.
>
>When Tomcat runs as a service, I assume it is using the JRE in Program
>Files because JSPs that have not
>been compiled cannot be!  I receive an error and the logs point to the
>fact that Tomcat cannot create
>the javac process.
>
>Is there a way to set the Tomcat service to use my JAVA_HOME installation
>instead of the Program Files JRE?  Are there any other solutions to this
>problem?  I don't want to have to precompile every JSP page before I put
>code onto my production box, nor do I want to run my production server in
>a console window started by hand.
>
>Thanks in advance,
>Mark Turansky
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]

I've never experienced the problem (i'm not running NT) but it seems to me
that you need to unset your path and set your JAVA_HOME to your java SDK
dir. This could be done in tomcat.conf (maybe its .bat on an NT) or
otherwise in catalina.bat



"There are 10 types of people when it comes to binary, those that
understand it.. and those who don't."


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



javac problems with Tomcat as NT Service

2003-08-26 Thread Turansky, Mark
I have installed the J2SE and J2EE SDKs to c:\java.
I installed Tomcat to c:\Tomcat.
I have X_HOME variables for both installations in my computers Environment Variables.

The problem is that the SDKs also install a JRE to c:\program files\java\.

When I run Tomcat in a console window, everything runs fine.  Tomcat uses JAVA_HOME 
which has javac.

When Tomcat runs as a service, I assume it is using the JRE in Program Files because 
JSPs that have not
been compiled cannot be!  I receive an error and the logs point to the fact that 
Tomcat cannot create 
the javac process.

Is there a way to set the Tomcat service to use my JAVA_HOME installation instead of 
the Program Files JRE?  Are there any other solutions to this problem?  I don't want 
to have to precompile every JSP page before I put code onto my production box, nor do 
I want to run my production server in a console window started by hand.

Thanks in advance,
Mark Turansky

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Location of servlets?

2003-07-17 Thread Turansky, Mark
You put all your servlet mappings in the web.xml file.

check out the web.xml file in Tomcat's examples webapp.  The file is in /WEB-INF.


-Original Message-
From: Jeff Howard [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 17, 2003 5:15 PM
To: Tomcat Users List
Subject: Location of servlets?


Thanks for everyone's help earlier today. Upgrading
to JDK 1.4.2 from 1.2.2 allowed me to get Tomcat
running.

Now I'm trying the sample servlet Hello.java by calling it
from a simple webpage with the line:

http://localhost:8080/servlet/hello

I put the compiled servlet in my tomcat4
directory/webapps. When I click on the
link to call this servlet I get an HTTP Status 500
window from Tomcat saying no context configured to provess this
request. Makes me think it can't find the servlet.

I looked in the log files and there's an entrythat says:
MAPPING configuration error for request URI /Hello

Any ideas?

Thanks very much!

Jeff H.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: SAX Exception

2003-07-14 Thread Turansky, Mark
aha!!

Ok, I looked at the xml dtd declaration at the top...  the error was that my web.xml 
said 

"http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";

when it should be 2.3 !

I compared my web.xml with the web.xml file from the example apps and saw the 
discrepancy.  That makes all the difference in the world.

mark


-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Monday, July 14, 2003 11:24 AM
To: Tomcat Users List
Subject: RE: SAX Exception



Howdy,
Is your web.xml valid according to the Servlet Specification v2.3 DTD?

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Turansky, Mark [mailto:[EMAIL PROTECTED]
>Sent: Monday, July 14, 2003 11:16 AM
>To: [EMAIL PROTECTED]
>Subject: SAX Exception
>
>I get these exceptions
>
>SEVERE: Parse Error at line 175 column 12: Element type "listener" must
be
>declared.
>org.xml.sax.SAXParseException: Element type "listener" must be
declared.
>SEVERE: Parse Error at line 176 column 25: Element type
"listener-class"
>must be declared.
>org.xml.sax.SAXParseException: Element type "listener-class" must be
>declared.
>
>
>The corresponding lines of web.xml area:
>
>
>
com.keymind.core.users.UserSessionListenerclass>
>
>
>
>The funny thing is... the listener class works just fine.  No errors at
>runtime.  That exception is thrown when I start up Tomcat.  I am
running
>Tomcat 4.1.24
>
>any suggestions or ideas?
>
>Thanks in advance,
>Mark
>
>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



SAX Exception

2003-07-14 Thread Turansky, Mark
I get these exceptions

SEVERE: Parse Error at line 175 column 12: Element type "listener" must be declared.
org.xml.sax.SAXParseException: Element type "listener" must be declared.
SEVERE: Parse Error at line 176 column 25: Element type "listener-class" must be 
declared.
org.xml.sax.SAXParseException: Element type "listener-class" must be declared.


The corresponding lines of web.xml area:


com.keymind.core.users.UserSessionListener



The funny thing is... the listener class works just fine.  No errors at runtime.  That 
exception is thrown when I start up Tomcat.  I am running Tomcat 4.1.24

any suggestions or ideas?

Thanks in advance,
Mark




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: How do I determine sessions within Tomcat?

2003-07-08 Thread Turansky, Mark
ok, I see th session listener interface in the javadocs as well as the session event 
class.  any advice regarding *how* I plug it into tomcat?  Is your method a standard 
J2EE solution or will this be Tomcat specific?

thanks for the quick reply,
mark


-Original Message-
From: Mark W. Webb [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 08, 2003 4:30 PM
To: Tomcat Users List
Subject: Re: How do I determine sessions within Tomcat?


you would probably want to write a SessionListener, and plug it into tomcat.

Turansky, Mark wrote:

>I am required to track users and their sessions in my web application.  Is there a 
>way to access all the sessions currently held in server memory?
>
>My application is tracking users in a database table.  Upon login, I log the session 
>id along with a timestamp and other pertinent information.  If the user specifically 
>clicks the "log out" button, I can update my table with another timestamp, but I 
>assume many will simply timeout.  How do I update my table with their logout 
>timestamp in the event of timeout?  I was hoping to make a simple maintenance thread 
>in the background that would check existing sessions against my database table for 
>this purpose.
>
>Thanks in advance,
>Mark
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>  
>



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



How do I determine sessions within Tomcat?

2003-07-08 Thread Turansky, Mark
I am required to track users and their sessions in my web application.  Is there a way 
to access all the sessions currently held in server memory?

My application is tracking users in a database table.  Upon login, I log the session 
id along with a timestamp and other pertinent information.  If the user specifically 
clicks the "log out" button, I can update my table with another timestamp, but I 
assume many will simply timeout.  How do I update my table with their logout timestamp 
in the event of timeout?  I was hoping to make a simple maintenance thread in the 
background that would check existing sessions against my database table for this 
purpose.

Thanks in advance,
Mark

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]