RE: Error dialog with the word environment misspelled as envionment

2011-07-19 Thread Eric Hawkes
Hi Mark,

Thanks for looking into this.

Dismissing the original dialog results in a series of additional dialogs which 
seem to imply that something called exe4j is the source.  According to their 
website's help document, exe4j creates Windows executables that invoke your 
Java applications and integrates them into the Windows environment.  I had 
never heard of exe4j, and I'm not sure what application I have installed that 
uses it.  My best guess now is that exe4j has the typo in their code base.








Thanks again,

Eric



-Original Message-
From: Mark Thomas [mailto:ma...@apache.org]
Sent: Tuesday, July 19, 2011 11:35 AM
To: Tomcat Users List
Subject: Re: Error dialog with the word environment misspelled as envionment

On 18/07/2011 23:59, Eric Hawkes wrote:
 Hi,

 I am running tomcat as a windows service.  The service starts automatically 
 after the machine is rebooted.

 The Path to executable in the tomcat service properties dialog is
 C:\Program Files (x86)\SonicWallES\Apache Software Foundation\Tomcat
 6.0\bin\tomcat6.exe //RS//Tomcat6

 It is highly likely that our current build is failing to upgrade tomcat due 
 to some foolish errors in our own code.

 If I were looking in my own product's source tree, I might do something like 
 grep the appropriate part of the source base for the misspelled word 
 envionment but I'm not familiar with the tomcat source tree.

I've done that for Tomcat and Commons Daemon (including the source
history) and can find no such mis-spelling.

Mark



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



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

Error dialog with the word environment misspelled as envionment

2011-07-18 Thread Eric Hawkes
Hi,

We are attempting to upgrade our product from using tomcat 6.0.29 to 6.0.32 
(and also  upgrade to the latest patch of Java 6).  This process has been 
rocky, and when I installed the latest version of our product on windows, the 
tomcat service would not start, and I saw an error dialog (below) with text:

The {0} envionment variable does not point to a working 32-bit JDK or JRE

If windows does not auto-correct it, you will see that the word environment 
is misspelled as envionment - missing the letter r.


[cid:image001.png@01CC4558.95A81140]


I'm sure the cause of the error is in our own product.  I only mention it 
because when I saw an anonymous error dialog with a misspelled word, my first 
thought was that I had a computer virus or some other malware.  If there is a 
spelling error in a tomcat dialog, I'm sure somebody is fastidious enough to 
want to fix it.

Can anybody verify whether this dialog was really generated by tomcat?

This probably isn't relevant, but I am running Windows 7 Professional on a 
64-bit machine.  We are, in fact, bundling a 32-bit JRE in our product.  Tomcat 
was installed via a zipfile, but probably configured incorrectly.  Once again, 
I am not asking for help determining the cause of the error dialog: I am merely 
reporting the typographical error.

Thanks,

Eric



RE: Error dialog with the word environment misspelled as envionment

2011-07-18 Thread Eric Hawkes
Hi, 

I am running tomcat as a windows service.  The service starts automatically 
after the machine is rebooted.  

The Path to executable in the tomcat service properties dialog is 
C:\Program Files (x86)\SonicWallES\Apache Software Foundation\Tomcat 
6.0\bin\tomcat6.exe //RS//Tomcat6

It is highly likely that our current build is failing to upgrade tomcat due to 
some foolish errors in our own code.  

If I were looking in my own product's source tree, I might do something like 
grep the appropriate part of the source base for the misspelled word 
envionment but I'm not familiar with the tomcat source tree.  

Thanks, 

Eric 



-Original Message-
From: André Warnier [mailto:a...@ice-sa.com] 
Sent: Monday, July 18, 2011 3:39 PM
To: Tomcat Users List
Subject: Re: Error dialog with the word environment misspelled as envionment

Eric Hawkes wrote:
 Hi,
 
 We are attempting to upgrade our product from using tomcat 6.0.29 to 6.0.32 
 (and also  upgrade to the latest patch of Java 6).  This process has been 
 rocky, and when I installed the latest version of our product on windows, the 
 tomcat service would not start, and I saw an error dialog (below) with text:
 
 The {0} envionment variable does not point to a working 32-bit JDK or JRE
 
 If windows does not auto-correct it, you will see that the word environment 
 is misspelled as envionment - missing the letter r.
 
 
 [cid:image001.png@01CC4558.95A81140]
 
 
 I'm sure the cause of the error is in our own product.  I only mention it 
 because when I saw an anonymous error dialog with a misspelled word, my first 
 thought was that I had a computer virus or some other malware.  If there is a 
 spelling error in a tomcat dialog, I'm sure somebody is fastidious enough to 
 want to fix it.
 
 Can anybody verify whether this dialog was really generated by tomcat?
 
 This probably isn't relevant, but I am running Windows 7 Professional on a 
 64-bit machine.  We are, in fact, bundling a 32-bit JRE in our product.  
 Tomcat was installed via a zipfile, but probably configured incorrectly.  
 Once again, I am not asking for help determining the cause of the error 
 dialog: I am merely reporting the typographical error.
 
The information above is a bit confusing.
Are you running Tomcat as a Windows Service ?
How is Tomcat being started ?

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


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



RE: Tomcat Consultant

2010-11-18 Thread Eric Hawkes
Hi,

It is not Latin or a joke or the results of hacking.
The text is lorem ipsum: http://en.wikipedia.org/wiki/Lorem_ipsum

The guess about it being a web page template was probably closest.

Thanks,

Eric


-Original Message-
From: Mark Thomas [mailto:ma...@apache.org]
Sent: Thursday, November 18, 2010 1:09 PM
To: Tomcat Users List
Subject: Re: Tomcat Consultant

On 18/11/2010 21:04, Leo Donahue - PLANDEVX wrote:
 Um, can anyone translate this?  Am I really seeing that?
 http://training.mulesoft.com/about/index.html

It looks like Latin to me. Google translate will take a stab at it on
that basis.

Best guess, someone at Mulesoft's idea of a joke (not sure where the
humour is) or their website has been hacked.

Mark

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


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



RE: [SECURITY] CVE-2008-1947: Tomcat host-manager XSS vulnerability

2008-07-14 Thread Eric Hawkes
Hi, 

 This issue has been fixed ... in 5.5.27 and 6.0.17. 
 It is anticipated that these versions will be released shortly. 

It's been about six weeks.  Is there any further information 
on when Tomcat 5.5.27 will be released?  

Thanks, 

Eric 



-Original Message-
From: Mark Thomas [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 02, 2008 2:46 PM
To: Tomcat Users List; Tomcat Developers List;
[EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: [SECURITY] CVE-2008-1947: Tomcat host-manager XSS vulnerability


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

CVE-2008-1947: Tomcat host-manager XSS vulnerability

Severity: Low

Vendor: The Apache Software Foundation

Versions Affected:
Tomcat 5.5.9 to 5.5.26
Tomcat 6.0.0 to 6.0.16
This issue has been fixed in the source repositories for each version
and
will be included in 5.5.27 and 6.0.17. It is anticipated that these
versions will be released shortly.

Description:
The user supplied hostname attribute is not filtered before being
included
in the output.

Mitigation:
Do not visit untrusted sites whilst logged in to the host-manager
application and log out (close the browser) once finished with the
host-manager.

Example:
Assume that after logged in, the victim was lead to the malicious web
server with following file installed.
form action=http://localhost:8080/host-manager/html/add; method=get
~  INPUT TYPE=hidden NAME='name' VALUE=scriptalert()/script
~  INPUT TYPE=hidden NAME='aliases' VALUE=somealias
~  input type=submit
/form

Credit:
These issues were discovered by Petr Splichal of RedHat.

References:
http://tomcat.apache.org/security.html

Mark Thomas
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkhEahEACgkQb7IeiTPGAkOQggCgirNfHSCkMDhcEzG6Ig1N0WzP
qesAoKXePHeBKaB0VzeBoowW5kvZpBQx
=4nQe
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Can't start tomcat 5.5.26 service on windows

2008-03-12 Thread Eric Hawkes
 it isn't too strange.  


Using the following parameters in my install command: 
--Jvm=C:\Program Files\Java\jdk1.5.0_12\jre\bin\server\jvm.dll 
--JvmOptions=-server

gave me a slightly different error: 

[2008-03-12 16:13:14] [1334 prunsrv.c] [debug] Procrun log initialized
[2008-03-12 16:13:14] [info] Procrun (2.0.3.0) started
[2008-03-12 16:13:14] [532  prunsrv.c] [debug] Installing service...
[2008-03-12 16:13:14] [info] Service Tomcat5 name Apache Tomcat 5.5
[2008-03-12 16:13:14] [info] Service Tomcat5 installed
[2008-03-12 16:13:14] [info] Procrun finished.
[2008-03-12 16:13:21] [1334 prunsrv.c] [debug] Procrun log initialized
[2008-03-12 16:13:21] [info] Procrun (2.0.3.0) started
[2008-03-12 16:13:21] [info] Running Service...
[2008-03-12 16:13:21] [1158 prunsrv.c] [debug] Inside ServiceMain...
[2008-03-12 16:13:21] [info] Starting service...
[2008-03-12 16:13:21] [385  javajni.c] [debug] Jvm Option[0] -server
[2008-03-12 16:13:21] [385  javajni.c] [debug] Jvm Option[1]
-Djava.class.path=C:\tomcat\bin\bootstrap.jar
[2008-03-12 16:13:21] [385  javajni.c] [debug] Jvm Option[2] vfprintf
[2008-03-12 16:13:21] [395  javajni.c] [error] CreateJavaVM Failed
[2008-03-12 16:13:21] [992  prunsrv.c] [error] Failed initializing java
C:\tomcat\bin\bootstrap.jar
[2008-03-12 16:13:21] [1260 prunsrv.c] [error] ServiceStart returned 2
[2008-03-12 16:13:21] [info] Run service finished.
[2008-03-12 16:13:21] [info] Procrun finished.



Environment
---
I'm running on Windows XP SP2, x86 hardware.  I have the correct 
version of Java for my hardware and OS.  I got JDK 1.5.0_12 from 
Sun's download site, and tomcat 5.5.26 from Apache's download site.  

C:\tomcatset
ALLUSERSPROFILE=C:\Documents and Settings\All Users
ANT_HOME=c:\ant
APPDATA=C:\Documents and Settings\echawkes\Application Data
CATALINA_HOME=C:\tomcat
CLIENTNAME=Console
CommonProgramFiles=C:\Program Files\Common Files
COMPUTERNAME=EHAWKES-9439
ComSpec=C:\WINDOWS\system32\cmd.exe
FP_NO_HOST_CHECK=NO
HOMEDRIVE=C:
HOMEPATH=\Documents and Settings\echawkes
HOMESHARE=\\whistler\users
INCLUDE=C:\Program Files\Microsoft Visual Studio
.NET\FrameworkSDK\include\
JAVA_HOME=C:\Program Files\Java\jdk1.5.0_12
LIB=C:\Program Files\Microsoft Visual Studio .NET\FrameworkSDK\Lib\
LOGONSERVER=\\SVL0DC04
MMCommonAppDataRoot=C:\Documents and Settings\All Users\Application
Data\Avaya M
odular Messaging
MM_MSXML_APARTMENT=1
NUMBER_OF_PROCESSORS=2
OS=Windows_NT
Path=C:\Program Files\Avaya Modular Messaging\Common;C:\Program
Files\Avaya Modu
lar Messaging\Common;C:\Program Files\Common Files\Avaya Modular
Messaging;C:\Pe
rl\bin\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\bin;c
:\ant;c:
\ant\bin;C:\Program Files\Perforce;C:\Program
Files\SonicWallES;C:\Program File
s\MailFrontier;C:\Program Files\ATI Technologies\ATI.ACE\;C:\Program
Files\Micr
osoft SQL Server\90\Tools\binn\;C:\Program Files\QuickTime\QTSystem\
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
PROCESSOR_ARCHITECTURE=x86
PROCESSOR_IDENTIFIER=x86 Family 15 Model 4 Stepping 3, GenuineIntel
PROCESSOR_LEVEL=15
PROCESSOR_REVISION=0403
ProgramFiles=C:\Program Files
PROMPT=$P$G
QTJAVA=C:\Program Files\Java\jre1.5.0_12\lib\ext\QTJava.zip
SESSIONNAME=RDP-Tcp#2
SystemDrive=C:
SystemRoot=C:\WINDOWS
TEMP=C:\DOCUME~1\echawkes\LOCALS~1\Temp
TMP=C:\DOCUME~1\echawkes\LOCALS~1\Temp
UMCommon=C:\Program Files\Avaya Modular Messaging\Common
USERDNSDOMAIN=SV.US.SONICWALL.COM
USERDOMAIN=SV
USERNAME=echawkes
USERPROFILE=C:\Documents and Settings\echawkes
VS90COMNTOOLS=C:\Program Files\Microsoft Visual Studio
9.0\Common7\Tools\
VSCOMNTOOLS=C:\Program Files\Microsoft Visual Studio
.NET\Common7\Tools\
windir=C:\WINDOWS


Thanks, 

Eric 


-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 11, 2008 7:10 AM
To: Tomcat Users List
Subject: RE: Can't start tomcat 5.5.26 service on windows

 From: Eric Hawkes [mailto:[EMAIL PROTECTED] 
 Subject: RE: Can't start tomcat 5.5.26 service on windows
 
 We install the JRE, and then we copy the server jvm.dll
 (taken from an SDK install) to 
 C:\Program Files\Java\jre1.5.0_12\bin\server\jvm.dll 

Does the server jvm.dll you're copying come from the exact same build
and platform (32- vs 64-bit) as the JRE?

You would think that would be sufficient, but if you do a detailed
comparison of the files in a public JRE against those in a JDK's private
JRE you'll see lots of differences, including the contents of various
*.jar files.  (For example, rt.jar from the JDK is 4 MB larger than the
one in the JRE.)  I don't know why the two sets of jars should be
different, but they are, and it may be pertinent.

Can you launch the server mode with java -server -version?  (Note that
the -server option here applies only to the launcher, it's not done that
way when running as a service.)

What happens when you set JAVA_OPTS=-server and start Tomcat with
startup.bat?

 We simply point tomcat to the server jvm.dll.  

Verify it's done properly

RE: Can't start tomcat 5.5.26 service on windows

2008-03-12 Thread Eric Hawkes
Hi, 

This looks solved.  I noticed that when I use 
service.bat install 
it adds the following java options: 

-Dcatalina.base=C:\tomcat
-Dcatalina.home=C:\tomcat
-Djava.endorsed.dirs=C:\tomcat\common\endorsed
-Djava.io.tmpdir=C:\tomcat\temp
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
-Djava.util.logging.config.file=C:\tomcat\conf\logging.properties

When I add them to my command line install, the service can be started 
and stopped from the command line as well as from the windows services 
panel.  (The service does needs to be started after it is installed - 
it doesn't start by itself, but that's perfectly fine.)  

I futher found that I could specify -Dserver in the JvmOptions and use 
--Jvm=C:\Program Files\Java\jdk1.5.0_12\jre\bin\server\jvm.dll
and it still installs, starts, and stops as I hoped and prayed it would.


I learned quite a bit from this exchange, so I'll proceed from here.  

Thanks for all the help, 

Eric 



-Original Message-
From: Eric Hawkes 
Sent: Wednesday, March 12, 2008 5:30 PM
To: 'Tomcat Users List'
Cc: Eric Hawkes
Subject: RE: Can't start tomcat 5.5.26 service on windows

Hi, 

I tried the things you suggested, and they helped, but I'm afraid 
I'm still having problems.  Tomcat does install as a service, but 
cannot be started.  stderr.log shows a 
java.lang.ClassNotFoundException: org.apache.catalina.startup.Catalina
Further explanation below.  

I found a couple of other odd things, also explained below. 


I installed the service from a DOS cmd window, like this: 

C:\tomcat\bin\tomcat5.exe //IS//Tomcat5 \
--DisplayName=Apache Tomcat 5.5 --Install=C:\tomcat\bin\tomcat5.exe \
--Jvm=auto --Startup=auto --StartMode=jvm --StopMode=jvm \
--StartClass=org.apache.catalina.startup.Bootstrap --StartParams=start \
--StopClass=org.apache.catalina.startup.Bootstrap --StopParams=stop \
--LogPath=C:\tomcat\logs --LogLevel=Debug \
--StdOutput=C:\tomcat\logs\stdout.log
--StdError=C:\tomcat\logs\stderr.log \
--Classpath=C:\tomcat\bin\bootstrap.jar

Running tomcat5w verifies that the parameters have been set as I
intended. 
One note: the Java tab has the Use default check box checked, and 
the JVM path says: 
C:\Program Files\Java\jre1.5.0_12\bin\client\jvm.dll 
I kind of expected that tomcat5 would use the JDK preferentially. 


Attempting to start the service from the windows services panel 
causes this error dialog: 

The Apache Tomcat 5.5 service on Local Computer started and then
stopped. 
Some services stop automatically if they have no work to do, for
example, 
the Performance Logs and Alerts service.

The jakarta_service log says: 

[2008-03-12 16:21:47] [1334 prunsrv.c] [debug] Procrun log initialized
[2008-03-12 16:21:47] [info] Procrun (2.0.3.0) started
[2008-03-12 16:21:47] [532  prunsrv.c] [debug] Installing service...
[2008-03-12 16:21:47] [info] Service Tomcat5 name Apache Tomcat 5.5
[2008-03-12 16:21:47] [info] Service Tomcat5 installed
[2008-03-12 16:21:47] [info] Procrun finished.
[2008-03-12 16:22:08] [1334 prunsrv.c] [debug] Procrun log initialized
[2008-03-12 16:22:08] [info] Procrun (2.0.3.0) started
[2008-03-12 16:22:08] [info] Running Service...
[2008-03-12 16:22:08] [1158 prunsrv.c] [debug] Inside ServiceMain...
[2008-03-12 16:22:08] [info] Starting service...
[2008-03-12 16:22:08] [385  javajni.c] [debug] Jvm Option[0]
-Djava.class.path=C:\tomcat\bin\bootstrap.jar
[2008-03-12 16:22:08] [385  javajni.c] [debug] Jvm Option[1] vfprintf
[2008-03-12 16:22:08] [471  javajni.c] [debug] argv[0] = start
[2008-03-12 16:22:08] [508  javajni.c] [debug] Java Worker thread
finished
[2008-03-12 16:22:09] [1007 prunsrv.c] [debug] Java started
org/apache/catalina/startup/Bootstrap
[2008-03-12 16:22:09] [info] Service started in 1140 ms.
[2008-03-12 16:22:09] [1250 prunsrv.c] [debug] Waiting worker to
finish...
[2008-03-12 16:22:09] [1255 prunsrv.c] [debug] Worker finished.
[2008-03-12 16:22:09] [info] Run service finished.
[2008-03-12 16:22:09] [info] Procrun finished.

The stderr log says: 

java.lang.ClassNotFoundException: org.apache.catalina.startup.Catalina
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at
org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:222)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:410)

I used WinRAR to look inside bootstrap.jar, and in fact, there is no 
org.apache.catalina.startup.Catalina class.  These files are present 
in org.apache.catalina.startup 
Bootstrap.class
catalina.properties
CatalinaProperties.class
ClassLoaderFactory.class
Tool.class

I did some web searching on the exception, but did not find anything 
very helpful.  



 I would recommend installing Tomcat (and the JVM) in directory paths
 without spaces

RE: Can't start tomcat 5.5.26 service on windows

2008-03-11 Thread Eric Hawkes
 Sun's 
download site, and tomcat from Apache's download site.  

C:\Program Files\SonicWallESset
ALLUSERSPROFILE=C:\Documents and Settings\All Users
ANT_HOME=c:\ant
APPDATA=C:\Documents and Settings\echawkes\Application Data
CATALINA_HOME=C:\Program Files\Apache Software Foundation\Tomcat 5.5
CLASSPATH=.;C:\Program Files\Java\jre1.5.0_12\lib\ext\QTJava.zip
CLIENTNAME=Console
CommonProgramFiles=C:\Program Files\Common Files
COMPUTERNAME=EHAWKES-9439
ComSpec=C:\WINDOWS\system32\cmd.exe
FP_NO_HOST_CHECK=NO
HOMEDRIVE=C:
HOMEPATH=\Documents and Settings\echawkes
HOMESHARE=\\whistler\users\echawkes
INCLUDE=C:\Program Files\Microsoft Visual Studio
.NET\FrameworkSDK\include\
JAVA_HOME=C:\Program Files\Java\jdk1.5.0_12
LIB=C:\Program Files\Microsoft Visual Studio .NET\FrameworkSDK\Lib\
LOGONSERVER=\\SVL0DC03
MMCommonAppDataRoot=C:\Documents and Settings\All Users\Application
Data\Avaya M
odular Messaging
MM_MSXML_APARTMENT=1
NUMBER_OF_PROCESSORS=2
OS=Windows_NT
Path=C:\Program Files\Avaya Modular Messaging\Common;C:\Program
Files\Avaya Modular Messaging\Common;C:\Program Files\Common Files\Avaya
Modular
Messaging;C:\Perl\bin\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System3
2\Wbem;C:\bin;c:\ant;c:\ant\bin;C:\Program Files\Perforce;C:\Program
Files\SonicWallES;C:\Program Files\MailFrontier;C:\Program Files\ATI
Technologies\ATI.ACE\;C:\Program Files\Microsoft SQL
Server\90\Tools\binn\;C:\Program Files\QuickTime\QTSystem\
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
PROCESSOR_ARCHITECTURE=x86
PROCESSOR_IDENTIFIER=x86 Family 15 Model 4 Stepping 3, GenuineIntel
PROCESSOR_LEVEL=15
PROCESSOR_REVISION=0403
ProgramFiles=C:\Program Files
PROMPT=$P$G
QTJAVA=C:\Program Files\Java\jre1.5.0_12\lib\ext\QTJava.zip
SESSIONNAME=Console
SystemDrive=C:
SystemRoot=C:\WINDOWS
TEMP=C:\DOCUME~1\echawkes\LOCALS~1\Temp
TMP=C:\DOCUME~1\echawkes\LOCALS~1\Temp
UMCommon=C:\Program Files\Avaya Modular Messaging\Common
USERDNSDOMAIN=SV.US.SONICWALL.COM
USERDOMAIN=SV
USERNAME=echawkes
USERPROFILE=C:\Documents and Settings\echawkes
VS90COMNTOOLS=C:\Program Files\Microsoft Visual Studio
9.0\Common7\Tools\
VSCOMNTOOLS=C:\Program Files\Microsoft Visual Studio
.NET\Common7\Tools\
windir=C:\WINDOWS
__COMPAT_LAYER=EnableNXShowUI



Thanks, 

Eric 


-Original Message-
From: Pid [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 11, 2008 1:11 AM
To: Tomcat Users List
Subject: Re: Can't start tomcat 5.5.26 service on windows

Eric Hawkes wrote:
 Hi, 
 
 The GUI has proved useful for debugging, but didn't solve the problem.

 It appears to read/write the registry, so settings made from the
command
 
 line are picked up in the GUI tool, and vice versa.  
 
 
 Our Java setup is slightly non-standard.  I'm not sure how
non-standard:
 
 perhaps somebody can tell me if this situation is rare.  We install
the 
 JRE, and then we copy the server jvm.dll (taken from an SDK install)
to 
 C:\Program Files\Java\jre1.5.0_12\bin\server\jvm.dll 

Rare.

 We do not delete the client jvm DLL, nor do we change the 
 registry settings for Java.  We simply point tomcat to the 
 server jvm.dll.  

Why? Not an attempt to use the server jvm, surely?
(Traditionally done using a switch, e.g. java -server etc)

 The jvm may be related to my problems.  

Maybe...

 When I use the standard tomcat install 
 service.bat install 
 the client VM is the default, 
 and the tomcat service behaves nicely.  
 
 When I proceed from that point (with a working service), and use 
 tomcat5w.exe to change the JVM path to point to the server VM DLL, 
 behavior is inconsistent.  

Surprise!

 Sometimes I can start and stop the tomcat service, and sometimes I
can't.

A logger says what?

 When I change it back to client (by checking the Use default check
box), 
  it starts working again.
 
 However, installing using tomcat5.exe but without setting the 
 Jvm parameter has not helped: I still cannot start the service 
 after installing like this: 
 
 C:\C:\Program Files\Apache Software Foundation\Tomcat
 5.5\bin\tomcat5.exe //IS//Tomcat5 
 --DisplayName=Apache Tomcat 5.5 
 --Install=C:\Program Files\Apache Software Foundation\Tomcat
 5.5\bin\tomcat5.exe 
 --Startup=auto --StartMode=jvm --StopMode=jvm 
 --StartClass=org.apache.catalina.startup.BootStrap --StartParams=start

 --StopClass=org.apache.catalina.startup.BootStrap --StopParams=stop
 
 Using --Jvm=auto doesn't help either.  
 
 So, client vm or not, I still cannot install from the 
 command line using tomcat5.exe.  


Can I have a quick refresher, are you trying to install the windows 
service, or start the windows service?

I assume the end result is that you want to run the server VM or make 
some other customisations to the environment?


p





 From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] 
 Look at what the service.bat script generates
 
 I found something interesting in service.bat
 
 rem Set the server jvm from JAVA_HOME
 set PR_JVM=%JAVA_HOME%\jre\bin\server\jvm.dll
 if exist %PR_JVM% goto foundJvm
 rem Set

Can't start tomcat 5.5.26 service on windows

2008-03-10 Thread Eric Hawkes
Hi, 

I'm installing tomcat in kind of a strange way (I'll explain why in 
a postscript), and I'm having trouble getting the service to start 
and stop consistently.  

I'd appreciate any advice on how to get this working, or a better 
procedure that meets the constraints under which I must work.  



Here is how I'm doing it.  

1) Reboot.  


2) Install tomcat to the default location.  It shows up in the 
services panel as a manual service, not running.  

C:\apache-tomcat-5.5.26.exe /S

At this point, I can start the service using the windows services 
panel.  However, when I try to stop it the same way, I get this dialog: 

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

There is no event in the Windows Event Viewer (under System or 
anywhere else) matching this error. 

The end of jakarta_service_20080310.log looks like this:

[2008-03-10 15:06:07] [info] Starting service...
[2008-03-10 15:06:09] [info] Service started in 1298 ms.
[2008-03-10 15:06:12] [info] Stopping service...

Despite the error, the service appears to be stopped, and I can 
start it again from the services panel. 


3) Copy msvcr71.dll (7.10.3052.4) from C:\WINDOWS\system32 to 
C:\Program Files\Apache Software Foundation\Tomcat 5.5\bin 


4) I previously extracted some of the .bat files 
startup.bat 
shutdown.bat 
catalina.bat 
setclasspath.bat 
from a zipped copy of tomcat 5.5.26 and saved them away.  
Copy those four .bat files into 
C:\Program Files\Apache Software Foundation\Tomcat 5.5\bin 


Note: steps 3 and 4 do not help the problems described in step 2. 


5) Stop the service (an unnecessary step) and delete the service.  

C:\C:\Program Files\Apache Software Foundation\Tomcat
5.5\bin\tomcat5.exe //SS//Tomcat5

C:\C:\Program Files\Apache Software Foundation\Tomcat
5.5\bin\tomcat5.exe //DS//Tomcat5


6) Reinstall the service with the options I want.  

C:\C:\Program Files\Apache Software Foundation\Tomcat
5.5\bin\tomcat5.exe //IS//Tomcat5 
--DisplayName=Apache Tomcat 5.5 
--Install=C:\Program Files\Apache Software Foundation\Tomcat
5.5\bin\tomcat5.exe 
--Description=Apache Tomcat 5.5.26 Server - http://tomcat.apache.org/; 
--Jvm=auto --Startup auto 
--StartMode=jvm --StopMode=jvm 
--StartClass=org.apache.catalina.startup.BootStrap --StartParams=start 
--StopClass=org.apache.catalina.startup.BootStrap --StopParams=stop 
--JvmOptions=-Xrs;-Xms256m;-Xmx512m;-Djava.awt.headless=true 
--LogPath=C:\Program Files\Apache Software Foundation\Tomcat 5.5\logs 
--StdOutput=C:\Program Files\Apache Software Foundation\Tomcat
5.5\logs\stdout.log 
--StdError=C:\Program Files\Apache Software Foundation\Tomcat
5.5\logs\stderr.log


The problem is that after this sequence of steps is finished, 
the service is present in the services control panel, and appears 
to have all the options I want, but it is not started.  
I cannot start the service.  

If I try to start it from the services panel, I get this error: 

Windows could not start the Apache Tomcat 5.5 on Local Computer.  
for more information, review the System Event Log.  

The System Event Log has this event, ID = 7024

The Apache Tomcat 5.5 service terminated with service-specific error 0
(0x0).
For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.

The tomcat logs are basically empty - nothing of use.




Why am I doing this strange procedure?  
--
We can't count on unzip utilities being available on the customers' 
servers since we have to support very old versionsof windows 
(e.g. Windows 2000), so I need to use the Windows installer.  

My management is against installing our own unzip utility, and they 
also require silent installation. 

I plan to wrap all these calls in a C++ executable and call it 
from our installer.  That way, when customers install our product, 
Tomcat is installed and configured along with it.  We cannot ask 
our customers to configure tomcat themselves. 

I devised this procedure from following this list and from 
http://tomcat.apache.org/tomcat-5.5-doc/windows-service-howto.html

We have done something roughly similar for Tomcat 4.1.x in the 
past, but we are upgrading to tomcat 5.5.26 now, and the installer 
command line options that used to work no longer do.  



Settings and Configuration
--
I am using Tomcat 5.5.26, downloaded from tomcat.apache.org, 
and I am running on Windows XP SP2.  I am using JDK 1.5.0_12. 
My environment has:

CATALINA_HOME=C:\Program Files\Apache Software Foundation\Tomcat 5.5
JAVA_HOME=C:\Program Files\Java\jre1.5.0_12


C:\set
ALLUSERSPROFILE=C:\Documents and Settings\All Users
ANT_HOME=c:\ant
APPDATA=C:\Documents and Settings\echawkes\Application Data
CATALINA_HOME=C:\Program Files\Apache Software Foundation\Tomcat 5.5
CLASSPATH=.;C:\Program Files\Java\jre1.5.0_12\lib\ext\QTJava.zip
CLIENTNAME=Console

RE: Can't start tomcat 5.5.26 service on windows

2008-03-10 Thread Eric Hawkes
Hi, 

I tried something simpler: a plain unzip install.  It still 
doesn't work, and my web searches haven't been fruitful. 

This is so simple, I have either missed something quite obvious, 
or I have really screwed up my dev environment.  

I've been working on this for quite a long time.  Any help 
would be appreciated. 



1) I uninstalled tomcat, cleaned my registry, and rebooted. 

2) I extracted tomcat (from .tar.gz) into 
C:\Program Files\Apache Software Foundation\Tomcat 5.5

3) I copied msvcr71.dll to 
C:\Program Files\Apache Software Foundation\Tomcat 5.5\bin 
It's also in my c:\windows\system32 directory, which is in 
my path environment variable. 

4) I executed this from a DOS prompt: 

C:\C:\Program Files\Apache Software Foundation\Tomcat
5.5\bin\tomcat5.exe //IS//Tomcat5 --Jvm=auto --Startup auto
--StartMode=jvm --StopMode=jvm
--StartClass=org.apache.catalina.startup.BootStrap --StartParams=start
--StopClass=org.apache.catalina.startup.BootStrap --StopParams=stop


Same problem.  The service shows up in the Windows Services panel as
Tomcat5, and it is Automatic, but it is not started.  The status 
field is blank.  


I can't start the tomcat service from the windows services panel.  
When I try, I get this error dialog: 

Windows could not start the Tomcat5 on Local Computer.  
For more information, review the System Event Log.

The Windows Event Log (System) has an error of Event=7024 
with this description:  

The Tomcat5 service terminated with service-specific error 0 (0x0).
For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.
 


I can't start the service this way, either: 

C:\Program Files\SonicWallESnet start Tomcat5
The Tomcat5 service is starting.
The Tomcat5 service could not be started.

A service specific error occurred: 0.

More help is available by typing NET HELPMSG 3547.


C:\Program Files\SonicWallESNET HELPMSG 3547

A service specific error occurred: ***.

EXPLANATION

A service-specific error occurred.

ACTION

Refer to the Help or documentation for that service to determine the
problem.



The logs directory is completely empty, probably because I didn't 
set those parameters this time. 
C:\Program Files\Apache Software Foundation\Tomcat 5.5\logs


One note: I _thought_ I had this working, but I'm not sure.  
I just upgraded to Visual Studio 2008 (which has new DLLs for 
msvcr, etc.), and I'm wondering if that could be related. 


Thanks, 

Eric 



-Original Message-
From: Eric Hawkes 
Sent: Monday, March 10, 2008 3:25 PM
To: 'Tomcat Users List'
Cc: Eric Hawkes
Subject: Can't start tomcat 5.5.26 service on windows

Hi, 

I'm installing tomcat in kind of a strange way (I'll explain why in 
a postscript), and I'm having trouble getting the service to start 
and stop consistently.  

I'd appreciate any advice on how to get this working, or a better 
procedure that meets the constraints under which I must work.  



Here is how I'm doing it.  

1) Reboot.  


2) Install tomcat to the default location.  It shows up in the 
services panel as a manual service, not running.  

C:\apache-tomcat-5.5.26.exe /S

At this point, I can start the service using the windows services 
panel.  However, when I try to stop it the same way, I get this dialog: 

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

There is no event in the Windows Event Viewer (under System or 
anywhere else) matching this error. 

The end of jakarta_service_20080310.log looks like this:

[2008-03-10 15:06:07] [info] Starting service...
[2008-03-10 15:06:09] [info] Service started in 1298 ms.
[2008-03-10 15:06:12] [info] Stopping service...

Despite the error, the service appears to be stopped, and I can 
start it again from the services panel. 


3) Copy msvcr71.dll (7.10.3052.4) from C:\WINDOWS\system32 to 
C:\Program Files\Apache Software Foundation\Tomcat 5.5\bin 


4) I previously extracted some of the .bat files 
startup.bat 
shutdown.bat 
catalina.bat 
setclasspath.bat 
from a zipped copy of tomcat 5.5.26 and saved them away.  
Copy those four .bat files into 
C:\Program Files\Apache Software Foundation\Tomcat 5.5\bin 


Note: steps 3 and 4 do not help the problems described in step 2. 


5) Stop the service (an unnecessary step) and delete the service.  

C:\C:\Program Files\Apache Software Foundation\Tomcat
5.5\bin\tomcat5.exe //SS//Tomcat5

C:\C:\Program Files\Apache Software Foundation\Tomcat
5.5\bin\tomcat5.exe //DS//Tomcat5


6) Reinstall the service with the options I want.  

C:\C:\Program Files\Apache Software Foundation\Tomcat
5.5\bin\tomcat5.exe //IS//Tomcat5 
--DisplayName=Apache Tomcat 5.5 
--Install=C:\Program Files\Apache Software Foundation\Tomcat
5.5\bin\tomcat5.exe 
--Description=Apache Tomcat 5.5.26 Server - http://tomcat.apache.org/; 
--Jvm=auto --Startup auto 
--StartMode=jvm --StopMode=jvm 
--StartClass

RE: Can't start tomcat 5.5.26 service on windows

2008-03-10 Thread Eric Hawkes
Hi, 

Thank you for the debugging tip.  

Running service.bat worked: 

C:\Program Files\Apache Software Foundation\Tomcat 5.5\binservice.bat
install
Installing the service 'Tomcat5' ...
Using CATALINA_HOME:C:\Program Files\Apache Software
Foundation\Tomcat 5.5
Using CATALINA_BASE:C:\Program Files\Apache Software
Foundation\Tomcat 5.5
Using JAVA_HOME:C:\Program Files\Java\jre1.5.0_12
Using JVM:  auto
The service 'Tomcat5' has been installed.

I can start and stop the service from the windows control panel 
and I can hit the default tomcat page on http://localhost:8080/  

Does this suggest a cause to my earlier problems?  

(I'll try the GUI next.) 

Thanks, 

Eric 
 

-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 10, 2008 7:19 PM
To: Tomcat Users List
Subject: RE: Can't start tomcat 5.5.26 service on windows

 From: Eric Hawkes [mailto:[EMAIL PROTECTED] 
 Subject: RE: Can't start tomcat 5.5.26 service on windows
 
 I tried something simpler: a plain unzip install.  It still 
 doesn't work, and my web searches haven't been fruitful. 

What happens if you enter the parameters via the tomcat5w.exe GUI?  (I
realize that doesn't fit your delivery requirements, but I suggest this
just to see if you can get the service working at all.)  You should
probably go through a deinstall and reinstall of the .zip just to clean
things up, then run the service.bat script to set up 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 start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Can't start tomcat 5.5.26 service on windows

2008-03-10 Thread Eric Hawkes
Hi, 

The GUI has proved useful for debugging, but didn't solve the problem.  
It appears to read/write the registry, so settings made from the command

line are picked up in the GUI tool, and vice versa.  


Our Java setup is slightly non-standard.  I'm not sure how non-standard:

perhaps somebody can tell me if this situation is rare.  We install the 
JRE, and then we copy the server jvm.dll (taken from an SDK install) to 
C:\Program Files\Java\jre1.5.0_12\bin\server\jvm.dll 

We do not delete the client jvm DLL, nor do we change the 
registry settings for Java.  We simply point tomcat to the 
server jvm.dll.  

The jvm may be related to my problems.  

When I use the standard tomcat install 
service.bat install 
the client VM is the default, 
and the tomcat service behaves nicely.  

When I proceed from that point (with a working service), and use 
tomcat5w.exe to change the JVM path to point to the server VM DLL, 
behavior is inconsistent.  Sometimes I can start and stop the 
tomcat service, and sometimes I can't.  When I change it back to 
client (by checking the Use default check box), it starts working 
again. 

However, installing using tomcat5.exe but without setting the 
Jvm parameter has not helped: I still cannot start the service 
after installing like this: 

C:\C:\Program Files\Apache Software Foundation\Tomcat
5.5\bin\tomcat5.exe //IS//Tomcat5 
--DisplayName=Apache Tomcat 5.5 
--Install=C:\Program Files\Apache Software Foundation\Tomcat
5.5\bin\tomcat5.exe 
--Startup=auto --StartMode=jvm --StopMode=jvm 
--StartClass=org.apache.catalina.startup.BootStrap --StartParams=start 
--StopClass=org.apache.catalina.startup.BootStrap --StopParams=stop

Using --Jvm=auto doesn't help either.  

So, client vm or not, I still cannot install from the 
command line using tomcat5.exe.  


 From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] 
 Look at what the service.bat script generates

I found something interesting in service.bat

rem Set the server jvm from JAVA_HOME
set PR_JVM=%JAVA_HOME%\jre\bin\server\jvm.dll
if exist %PR_JVM% goto foundJvm
rem Set the client jvm from JAVA_HOME
set PR_JVM=%JAVA_HOME%\jre\bin\client\jvm.dll
if exist %PR_JVM% goto foundJvm
rem Check for JRockit JVM: Bugzilla 39674
set PR_JVM=%JAVA_HOME%\jre\bin\jrockit\jvm.dll
if exist %PR_JVM% goto foundJvm
set PR_JVM=auto

My JAVA_HOME is  C:\Program Files\Java\jre1.5.0_12 
and my jvm DLL files are in 
C:\Program Files\Java\jre1.5.0_12\bin\server
C:\Program Files\Java\jre1.5.0_12\bin\client 

In other words, service.bat is looking in 
%JAVA_HOME%\jre\bin\server\jvm.dll 
for a DLL that is actually located one level up in 
%JAVA_HOME%\bin\server\jvm.dll

which is why service.bat echoes 
Using JVM:  auto
and is probably why this method of installing the service works 
when nothing else does.  

Note: tomcat5w shows the correct path to the client jvm.dll 
when I install this way. 

When I change the installation to use the server vm, things 
stop working again.  


Thanks, 

Eric 



-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 10, 2008 7:33 PM
To: Tomcat Users List
Subject: RE: Can't start tomcat 5.5.26 service on windows

 From: Eric Hawkes [mailto:[EMAIL PROTECTED] 
 Subject: RE: Can't start tomcat 5.5.26 service on windows
 
 Does this suggest a cause to my earlier problems?  

Probably means you don't have the parameters quite right for the
tomcat5.exe program.  Look at what the service.bat script generates, and
look here for the tomcat5.exe doc:
http://commons.apache.org/daemon/procrun.html

I haven't used the procrun-based .exe directly very much, mostly just
the GUI.

 - 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 start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]