jsvc and logging

2009-05-30 Thread Malcolm Warren

Dear All,

I'd be grateful for some help with jsvc and logging.
I've spent a whole morning googling but without success so I'm turning 
to the Tomcat mailing list.


My logs are all going into the syslog, which is not the best solution.
I would like to see tomcat logs in the usual tomcat /logs folder


The tomcat daemon is started like this:

  $DAEMON -user $TOMCAT6_USER -cp $JSVC_CLASSPATH 
\  

   -outfile SYSLOG -errfile SYSLOG 
\  

   -pidfile $CATALINA_PID $JAVA_OPTS 
$BOOTSTRAP_CLASS 




But if I try to change the -outfile and -errfile parameters tomcat 
doesn't start and I get a message saying:

No class specified
Cannot parse command line arguments

I've tried every possible combination of entries for these parameters, 
but to no avail.

Such as:

-outfile ./logs/catalina.out -errfile ./logs/catalina.err
-outfile $CATALINA_HOME/logs/catalina.out -errfile 
$CATALINA_HOME/logs/catalina.err
-outfile /var/lib/tomcat6/logs/catalina.out -errfile 
/var/lib/tomcat6/logs/catalina.err


Any help would be much appreciated.


Regards,
Malcolm Warren


Re: User tracking/monitoring

2009-05-30 Thread Rainer Jung
On 29.05.2009 18:58, Tim Funk wrote:
 Add this to your footer?
 SESSION ID: ${pageContext.session.id}

Beware though, that in some security sensitive contexts this is not
adequate, e.g. if users print out or save pages and share those with
others, session takeover is made much more simple (at least in cases
they do not log out and the session timeout is long relative to the
communication latency).

If the name of the node is already enough, set a system property during
startup to the name of the node (or some unique symbolic name) and only
include the value of the system property on the page. You can also use
the same system property to set the jvmRoute in server.xml.

If you use jvmRoute as the name of the system property, the internal
Tomcat jvmRoute will be automatically set from its value.

To quickly identify the users in the access log:

The support could tell customers to add ?garbage (choose your
favourite marker) at the end of the URL and send it again. You will
likely easily find this request in the logs (and thus get the IP etc.).

Furthermore you can log the session id in the apache access logs via
%{JSESSIONID}C or in the Tomcat logs via %S. Sou you can find the other
requests from the garbage one by comparing logged session ids.

Regards,

Rainer

 Chetan Chheda wrote:
 All,
 In our production environment we load balance across 4 tomcats
 that are split among 2 physical servers. This is a high traffic
 website and we get calls from users for a number of support issues and
 for most of these issues the first step is to find out what tomcat
 instance they ended up in.
Is there anyway we can add the tomcat sessionID to their page so
 that they can tell us where they are?


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



Re: Php, tomcat, mappings and authentication.

2009-05-30 Thread Rainer Jung
On 29.05.2009 23:01, André Warnier wrote:
 Or you can use a popular filter with more options:
 http://securityfilter.sourceforge.net/

 Or, if you decide to do the PHP part and do it under Apache httpd, then
 you could do all the authentication at the Apache httpd level, and pass
 the authenticated user-id to Tomcat (at least when using the mod_jk
 connector).

This works whenever AJP is used as the protocol between the web server
and Tomcat, so even with mod_proxy_ajp. You though need to set
tomcatAuthentication to false on the AJP connector for Tomcat to blindly
trust any user information it gets on the AJP connector.

Regards,

Rainer


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



Re: jk Status not showing errors

2009-05-30 Thread Rainer Jung
On 29.05.2009 22:50, Matthew Laird wrote:
 Good afternoon,
 
 I've been trying to get the jkstatus component of mod_jk running, and
 I'm not quite sure what I'm doing wrong in trying to have it report dead
 Tomcat instances.
 
 I have two tomcat instances setup in a load balancer, as a test I've
 taken down one of them.  However the jkstatus screen still shows both of
 them as OK.  I'm not sure what I'm missing from my workers.properties
 file to make it test the Tomcat and report a failed instance, so I can
 set Nagios to monitor this page and report problems.
 
 My workers.properties is:
 
 worker.list=production,development,old,jkstatus
 
 worker.production.type=lb
 worker.production.balance_workers=production1,production2
 worker.production.sticky_session=True
 worker.production.method=S
 
 worker.lbbasic.type=ajp13
 worker.lbbasic.connect_timeout=1
 worker.lbbasic.recovery_options=7
 worker.lbbasic.socket_keepalive=1
 worker.lbbasic.socket_timeout=60
 
 worker.production1.reference=worker.lbbasic
 worker.production1.port=8009
 worker.production1.host=localhost
 #worker.production1.redirect=production2
 
 worker.production2.reference=worker.lbbasic
 worker.production2.port=8012
 worker.production2.host=localhost
 #worker.production2.activation=disabled
 
 worker.development.port=8010
 worker.development.host=localhost
 worker.development.type=ajp13
 
 worker.old.port=8011
 worker.old.host=localhost
 worker.old.type=ajp13
 
 worker.jkstatus.type=status
 
 
 Any advice on extra options to make jkstatus check and report when one
 of the Tomcat instances isn't responding would be appreciated.

I assume, that the actual error detection works and you are really only
asking about display in status worker. I also assume your are using a
recent mod_jk. Nevertheless do yourself a favor and look at the Timeouts
documentation page to improve your configuration.

Until recently, only workers used via a load balancing worker had good
manageability with jkstatus. Very recently also pure AJP workers without
any load balancer got more useful information in their display.

So let's talk about your worker production. Whenever a request comes
in the lb first checks whether it already carries a session for one of
the nodes 1 or 2, or whether the request can be freely balanced.

The status of a worker (node) in jkstatus can only change, if a request
is been sent to the worker. So if all your requests belong say to node
2, you'll never notice anything is wrong with 1. But if 1 is broken, and
a request for one comes in, or a request that is freely balanceable and
the lb decides to send it to 1, then JK will detect the problem and
display it. The display will switch from OK to ERR.

If you want to parse the info, do not choose the html format, instead
choose a different output format, like XML or the properties format
(line oriented).

Regards,

Rainer


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



Re: retrive Arabic data

2009-05-30 Thread George Sexton

Christopher Schultz wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

George,

On 5/28/2009 3:59 PM, George Sexton wrote:
  

The issue is the default character set for Java. I've noticed that at
least at one point in time, the default character set for Java running
under windows was Windows-1252. Running under Linux it defaults to
ISO-8859-1.



That's a bold statement.

$ uname -a
Linux chadis 2.6.14-gentoo-r5 #2 PREEMPT Sat Dec 17 16:30:55 EST 2005
i686 AMD Athlon(tm) XP 1700+ AuthenticAMD GNU/Linux

$ java -version
java version 1.6.0_13
Java(TM) SE Runtime Environment (build 1.6.0_13-b03)
Java HotSpot(TM) Client VM (build 11.3-b02, mixed mode, sharing)

$ java -classpath .. Env | grep file\.encoding=
file.encoding=ANSI_X3.4-1968

That's ASCII, baby!

  
My statements were based on tests I ran at one point in time. Here's 
some tests I ran today:


OpenSuSE 10.3, 11.0 and 11.1 = UTF-8.
Windows XP w/ JDK 1.6.0_13 = Cp1252
MacOS 10.5 = MacRoman


--
George Sexton
MH Software, Inc.
Voice: +1 303 438 9585
URL:   http://www.mhsoftware.com/


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



Re: jsvc and logging

2009-05-30 Thread Hassan Schroeder
On Sat, May 30, 2009 at 1:54 AM, Malcolm Warren
malc...@villeinitalia.com wrote:

 The tomcat daemon is started like this:

              $DAEMON -user $TOMCAT6_USER -cp $JSVC_CLASSPATH \
                   -outfile SYSLOG -errfile SYSLOG \

 But if I try to change the -outfile and -errfile parameters tomcat doesn't
 start and I get a message saying:
 No class specified
 Cannot parse command line arguments

 I've tried ...

 -outfile ./logs/catalina.out -errfile ./logs/catalina.err

That should be fine; one of my installations starts like:

$CATALINA_HOME/bin/jsvc -user tomcat \
  -cp ./bin/bootstrap.jar \
  -outfile ./logs/catalina.out \
  -errfile ./logs/catalina.err \
  -pidfile /var/run/tomcat.pid \

Are you using a standard or third-party repackaged Tomcat? If the
latter, all bets are off  :-)

-- 
Hassan Schroeder  hassan.schroe...@gmail.com

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



Tomcat 6.0 - Cannot startup Tomcat service

2009-05-30 Thread Jonathan Camilleri
I've just installed Tomcat 6.0 on Windows Server 2008 64 bit, however the
service is not starting.

[2009-05-30 20:56:03] [info] Procrun (2.0.4.0) started
[2009-05-30 20:56:03] [info] Service Tomcat6 name Apache Tomcat
[2009-05-30 20:56:03] [info] Service Tomcat6 installed
[2009-05-30 20:56:03] [info] Procrun finished.
[2009-05-30 20:56:06] [info] Procrun (2.0.4.0) started
[2009-05-30 20:56:06] [info] Updating service...
[2009-05-30 20:56:06] [info] Service Tomcat6 updated
[2009-05-30 20:56:06] [info] Update service finished.
[2009-05-30 20:56:06] [info] Procrun finished.
[2009-05-30 20:56:06] [info] Procrun (2.0.4.0) started
[2009-05-30 20:56:06] [info] Updating service...
[2009-05-30 20:56:06] [info] Service Tomcat6 updated
[2009-05-30 20:56:06] [info] Update service finished.
[2009-05-30 20:56:06] [info] Procrun finished.
[2009-05-30 20:56:10] [info] Procrun (2.0.4.0) started
[2009-05-30 20:56:10] [info] Running Service...
[2009-05-30 20:56:10] [info] Starting service...
[2009-05-30 20:56:11] [174  javajni.c] [error] The specified module could
not be found.
[2009-05-30 20:56:11] [994  prunsrv.c] [error] Failed creating java
C:\Program Files (x86)\Java\jre6\bin\client\jvm.dll
[2009-05-30 20:56:11] [1269 prunsrv.c] [error] ServiceStart returned 1
[2009-05-30 20:56:11] [info] Run service finished.
[2009-05-30 20:56:11] [info] Procrun finished.
[2009-05-30 20:56:49] [info] Procrun (2.0.4.0) started
[2009-05-30 20:56:49] [info] Running Service...
[2009-05-30 20:56:49] [info] Starting service...
[2009-05-30 20:56:49] [174  javajni.c] [error] The specified module could
not be found.
[2009-05-30 20:56:49] [994  prunsrv.c] [error] Failed creating java
C:\Program Files (x86)\Java\jre6\bin\client\jvm.dll
[2009-05-30 20:56:49] [1269 prunsrv.c] [error] ServiceStart returned 1
[2009-05-30 20:56:49] [info] Run service finished.
[2009-05-30 20:56:49] [info] Procrun finished.
[2009-05-30 20:57:03] [info] Procrun (2.0.4.0) started
[2009-05-30 20:57:03] [info] Running Service...
[2009-05-30 20:57:03] [info] Starting service...
[2009-05-30 20:57:03] [174  javajni.c] [error] The specified module could
not be found.
[2009-05-30 20:57:03] [994  prunsrv.c] [error] Failed creating java
C:\Program Files (x86)\Java\jre6\bin\client\jvm.dll
[2009-05-30 20:57:03] [1269 prunsrv.c] [error] ServiceStart returned 1
[2009-05-30 20:57:03] [info] Run service finished.
[2009-05-30 20:57:03] [info] Procrun finished.
[2009-05-30 20:57:08] [info] Procrun (2.0.4.0) started
[2009-05-30 20:57:08] [info] Running Service...
[2009-05-30 20:57:08] [info] Starting service...
[2009-05-30 20:57:08] [174  javajni.c] [error] The specified module could
not be found.
[2009-05-30 20:57:08] [994  prunsrv.c] [error] Failed creating java
C:\Program Files (x86)\Java\jre6\bin\client\jvm.dll
[2009-05-30 20:57:08] [1269 prunsrv.c] [error] ServiceStart returned 1
[2009-05-30 20:57:08] [info] Run service finished.
[2009-05-30 20:57:08] [info] Procrun finished.
[2009-05-30 21:01:07] [174  javajni.c] [error] The specified module could
not be found.
*[2009-05-30 21:01:07] [994  prunsrv.c] [error] Failed creating java
C:\Program Files (x86)\Java\jre6\bin\client\jvm.dll*
[2009-05-30 21:01:07] [1269 prunsrv.c] [error] ServiceStart returned 1

Java is installed on the same machine:
*Microsoft Windows [Version 6.0.6001]
Copyright (c) 2006 Microsoft Corporation.  All rights reserved.

C:\Users\Administratorjava -version
java version 1.6.0_13
Java(TM) SE Runtime Environment (build 1.6.0_13-b03)
Java HotSpot(TM) Client VM (build 11.3-b02, mixed mode, sharing)
*

Any ideas please?

-- 
Jonathan Camilleri

Mobile (MT): 00356 7982 7113
E-mail: camilleri@gmail.com
Please consider your environmental responsibility before printing this
e-mail.

I usually reply to e-mails within 2 business days.  If it's urgent, give me
a call.


RE: Tomcat 6.0 - Cannot startup Tomcat service

2009-05-30 Thread Caldarale, Charles R
 From: Jonathan Camilleri [mailto:camilleri@gmail.com]
 Subject: Tomcat 6.0 - Cannot startup Tomcat service
 
 [2009-05-30 20:56:11] [994  prunsrv.c] [error] Failed creating java
 C:\Program Files (x86)\Java\jre6\bin\client\jvm.dll

You've installed a 32-bit JVM; since you're on a 64-bit OS I'd recommend a 
64-bit JVM, and use the 64-bit versions of tomcat6.exe and tomcat6w.exe (which 
you may already be doing).  If you don't already have them, the 64-bit 
tomcat6*.exe files are here:
http://svn.apache.org/repos/asf/tomcat/tc6.0.x/tags/TOMCAT_6_0_18/res/procrun/amd64/

If you want to use the APR dll, you'll also need the 64-bit version of that:
http://archive.apache.org/dist/tomcat/tomcat-connectors/native/1.1.16/binaries/win64/x64/

 - 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.



Re: Tomcat 6.0 - Cannot startup Tomcat service

2009-05-30 Thread Jonathan Camilleri
I tried replacing the .exe files with the 64 bit within C:\Program Files
(x86)\Apache Software Foundation\Tomcat 6.0\bin, however no joy yet.

What do I do with the tc-native-1.dll?

Rgds,


J.

2009/5/30 Caldarale, Charles R chuck.caldar...@unisys.com

  From: Jonathan Camilleri [mailto:camilleri@gmail.com]
  Subject: Tomcat 6.0 - Cannot startup Tomcat service
 
  [2009-05-30 20:56:11] [994  prunsrv.c] [error] Failed creating java
  C:\Program Files (x86)\Java\jre6\bin\client\jvm.dll

 You've installed a 32-bit JVM; since you're on a 64-bit OS I'd recommend a
 64-bit JVM, and use the 64-bit versions of tomcat6.exe and tomcat6w.exe
 (which you may already be doing).  If you don't already have them, the
 64-bit tomcat6*.exe files are here:

 http://svn.apache.org/repos/asf/tomcat/tc6.0.x/tags/TOMCAT_6_0_18/res/procrun/amd64/

 If you want to use the APR dll, you'll also need the 64-bit version of
 that:

 http://archive.apache.org/dist/tomcat/tomcat-connectors/native/1.1.16/binaries/win64/x64/

  - 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.




-- 
Jonathan Camilleri

Mobile (MT): 00356 7982 7113
E-mail: camilleri@gmail.com
Please consider your environmental responsibility before printing this
e-mail.

I usually reply to e-mails within 2 business days.  If it's urgent, give me
a call.

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

Caching rendered page - reducing hits to the backend?

2009-05-30 Thread Andre-John Mas

Hi,

Much of the content on the site which I am in the process will be semi- 
static, and I want to be able to cache the rendered pages to reduce  
database hits. To explain:


A given page will depend on dynamic data that is stored in the  
database, but that data is updated about once a month. The only true  
dynamic information will be the header where the user login state is  
shown. There will likely be a few million entries in this database and  
we are planning to support high traffic. The pages can be localised.  
The page is going to be queried as such:


  http://myhost.com/myapp.action?id=12345678

Although I am using a direct JPA access, we might change to use web  
services in the future.


Am I worrying unecessarily? At the same time are there recommended  
approaches. I am currently using struts2 and JPA for the web site, if  
it makes a difference.


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



Re: jsvc and logging

2009-05-30 Thread Malcolm Warren

Dear Hassan,

Thank you very much for your reply.

I've found my mistake - a stupid one - I forgot the trailing back slash 
indicating a continuing line of the command.

And it now all seems to be working.

Thanks again,

Malcolm Warren




Hassan Schroeder ha scritto:

On Sat, May 30, 2009 at 1:54 AM, Malcolm Warren
malc...@villeinitalia.com wrote:

  

The tomcat daemon is started like this:

 $DAEMON -user $TOMCAT6_USER -cp $JSVC_CLASSPATH \
  -outfile SYSLOG -errfile SYSLOG \



  

But if I try to change the -outfile and -errfile parameters tomcat doesn't
start and I get a message saying:
No class specified
Cannot parse command line arguments

I've tried ...



  

-outfile ./logs/catalina.out -errfile ./logs/catalina.err



That should be fine; one of my installations starts like:

$CATALINA_HOME/bin/jsvc -user tomcat \
  -cp ./bin/bootstrap.jar \
  -outfile ./logs/catalina.out \
  -errfile ./logs/catalina.err \
  -pidfile /var/run/tomcat.pid \

Are you using a standard or third-party repackaged Tomcat? If the
latter, all bets are off  :-)

  




RE: Tomcat 6.0 - Cannot startup Tomcat service

2009-05-30 Thread Caldarale, Charles R
 From: Jonathan Camilleri [mailto:camilleri@gmail.com]
 Subject: Re: Tomcat 6.0 - Cannot startup Tomcat service
 
 I tried replacing the .exe files with the 64 bit within C:\Program
 Files (x86)\Apache Software Foundation\Tomcat 6.0\bin, however no joy
 yet.

What about the 64-bit JVM?  Your log shows you're using a 32-bit one.

 What do I do with the tc-native-1.dll?

If you didn't already have a tcnative-1.dll in Tomcat's bin directory, don't 
put it anywhere (at least not yet).  It's the APR connector, which can provide 
better performance, especially for SSL.  But if you didn't have it set up 
before, don't complicate the issue.

 - 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.



RE: Caching rendered page - reducing hits to the backend?

2009-05-30 Thread Caldarale, Charles R
 From: Andre-John Mas [mailto:aj...@sympatico.ca]
 Subject: Caching rendered page - reducing hits to the backend?
 
 I want to be able to cache the rendered pages to reduce
 database hits.

Wouldn't that be the function of a Java bean?

 Am I worrying unecessarily?

Hard to tell without taking measurements of your environment with your expected 
load.  The only generality is that there are no generalities (well, very few).

 - 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 6.0 - Cannot startup Tomcat service

2009-05-30 Thread Martin Gainty

[2009-05-30 20:56:49] [994  prunsrv.c] [error] Failed creating java
C:\Program Files (x86)\Java\jre6\bin\client\jvm.dll//i've never been able to 
get folders with spaces and parenthesis to resolve correctly
//i would suggest changing
C:\Program Files (x86)\Java\jre6\bin\client\jvm.dll
to C:\PROGRA~1\Java\jre6\bin\client\jvm.dll


to 
C:\PROGRA~1\Java\jre6\bin\server\jvm.dll

set JAVA_OPTS environment variable
-XXaltjvm=C:\PROGRA~1\Java\jre6

set JAVA_HOME environment variable
C:\PROGRA~1\Java\jre6

make sure %JAVA_HOME%\bin is on PATH e.g.
set %PATH%=%JAVA_HOME%\bin;%PATH%

if none of  that works re-install Java to a short folder name e.g.
C:\JAVA

hth!
Martin Gainty 
__ 
Jogi és Bizalmassági kinyilatkoztatás/Verzicht und 
Vertraulichkeitanmerkung/Note de déni et de confidentialité
 Ez az
üzenet bizalmas.  Ha nem ön az akinek szánva volt, akkor kérjük, hogy
jelentse azt nekünk vissza. Semmiféle továbbítása vagy másolatának
készítése nem megengedett.  Ez az üzenet csak ismeret cserét szolgál és
semmiféle jogi alkalmazhatósága sincs.  Mivel az electronikus üzenetek
könnyen megváltoztathatóak, ezért minket semmi felelöség nem terhelhet
ezen üzenet tartalma miatt.

Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.




 Date: Sat, 30 May 2009 21:02:50 +0200
 Subject: Tomcat 6.0 - Cannot startup Tomcat service
 From: camilleri@gmail.com
 To: users@tomcat.apache.org
 
 I've just installed Tomcat 6.0 on Windows Server 2008 64 bit, however the
 service is not starting.
 
 [2009-05-30 20:56:03] [info] Procrun (2.0.4.0) started
 [2009-05-30 20:56:03] [info] Service Tomcat6 name Apache Tomcat
 [2009-05-30 20:56:03] [info] Service Tomcat6 installed
 [2009-05-30 20:56:03] [info] Procrun finished.
 [2009-05-30 20:56:06] [info] Procrun (2.0.4.0) started
 [2009-05-30 20:56:06] [info] Updating service...
 [2009-05-30 20:56:06] [info] Service Tomcat6 updated
 [2009-05-30 20:56:06] [info] Update service finished.
 [2009-05-30 20:56:06] [info] Procrun finished.
 [2009-05-30 20:56:06] [info] Procrun (2.0.4.0) started
 [2009-05-30 20:56:06] [info] Updating service...
 [2009-05-30 20:56:06] [info] Service Tomcat6 updated
 [2009-05-30 20:56:06] [info] Update service finished.
 [2009-05-30 20:56:06] [info] Procrun finished.
 [2009-05-30 20:56:10] [info] Procrun (2.0.4.0) started
 [2009-05-30 20:56:10] [info] Running Service...
 [2009-05-30 20:56:10] [info] Starting service...
 [2009-05-30 20:56:11] [174  javajni.c] [error] The specified module could
 not be found.
 [2009-05-30 20:56:11] [994  prunsrv.c] [error] Failed creating java
 C:\Program Files (x86)\Java\jre6\bin\client\jvm.dll
 [2009-05-30 20:56:11] [1269 prunsrv.c] [error] ServiceStart returned 1
 [2009-05-30 20:56:11] [info] Run service finished.
 [2009-05-30 20:56:11] [info] Procrun finished.
 [2009-05-30 20:56:49] [info] Procrun (2.0.4.0) started
 [2009-05-30 20:56:49] [info] Running Service...
 [2009-05-30 20:56:49] [info] Starting service...
 [2009-05-30 20:56:49] [174  javajni.c] [error] The specified module could
 not be found.
 [2009-05-30 20:56:49] [994  prunsrv.c] [error] Failed creating java
 C:\Program Files (x86)\Java\jre6\bin\client\jvm.dll
 [2009-05-30 20:56:49] [1269 prunsrv.c] [error] ServiceStart returned 1
 [2009-05-30 20:56:49] [info] Run service finished.
 [2009-05-30 20:56:49] [info] Procrun finished.
 [2009-05-30 20:57:03] [info] Procrun (2.0.4.0) started
 [2009-05-30 20:57:03] [info] Running Service...
 [2009-05-30 20:57:03] [info] Starting service...
 [2009-05-30 20:57:03] [174  javajni.c] [error] The specified module could
 not be found.
 [2009-05-30 20:57:03] [994  prunsrv.c] [error] Failed creating java
 C:\Program Files (x86)\Java\jre6\bin\client\jvm.dll
 [2009-05-30 20:57:03] [1269 prunsrv.c] [error] ServiceStart returned 1
 [2009-05-30 20:57:03] [info] Run service finished.
 [2009-05-30 20:57:03] [info] Procrun finished.
 [2009-05-30 20:57:08] [info] Procrun (2.0.4.0) started
 [2009-05-30 20:57:08] [info] Running Service...
 [2009-05-30 20:57:08] [info] Starting service...
 [2009-05-30 20:57:08] [174  javajni.c] [error] The specified module 

RE: Tomcat 6.0 - Cannot startup Tomcat service

2009-05-30 Thread Caldarale, Charles R
 From: Martin Gainty [mailto:mgai...@hotmail.com]
 Subject: RE: Tomcat 6.0 - Cannot startup Tomcat service
 
 //i would suggest changing
 C:\Program Files (x86)\Java\jre6\bin\client\jvm.dll
 to C:\PROGRA~1\Java\jre6\bin\client\jvm.dll

Completely unnecessary; the service launcher works fine with the JVM in the 
default location.

 set JAVA_OPTS environment variable
 -XXaltjvm=C:\PROGRA~1\Java\jre6
 
 set JAVA_HOME environment variable
 C:\PROGRA~1\Java\jre6

This is Tomcat running as a Windows service; environment variables aren't used.

What the OP does need to do is install a 64-bit JVM, since he's using the 
64-bit service wrapper.

 - 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