Re: Windows 10 - installing tomcat 9.0.84 as a service

2024-01-09 Thread Christoph Kukulies
Thanks for reading along :)

Gotit running now.

First off: too old Java Version bin/client or bin/server didn't exist
After removing that service using  tomcat9 //DS I reinstalled it using 
service.bat install.

C:\apache-tomcat-9.0.84\bin>service.bat install 
Installing the service 'Tomcat9' ...

Using CATALINA_HOME:"C:\apache-tomcat-9.0.84"   
Using CATALINA_BASE:
"C:\apache-tomcat-9.0.84"   
Using JAVA_HOME:"c:\Program Files\Java\jre-8"   
Using JRE_HOME: 
"c:\Program Files\Java\jre-8"   
Using JVM:  "c:\Program 
Files\Java\jre-8\bin\server\jvm.dll"
The service 'Tomcat9' has been installed.   

 

Stopping and starting the service using tomcat9w (setting everying to auto and 
start mode Automatic) finale made it working.

--
Christoph

> Am 09.01.2024 um 15:03 schrieb Christoph Kukulies :
> 
> The picture has changed a bit:
> 
> C:\apache-tomcat-9.0.84\bin>service.bat install
> Installing the service 'Tomcat9' ...
> Using CATALINA_HOME:"C:\apache-tomcat-9.0.84"
> Using CATALINA_BASE:"C:\apache-tomcat-9.0.84"
> Using JAVA_HOME:"c:\Program Files\Java\jdk1.8.0_161"
> Using JRE_HOME: "c:\Program Files\Java\jdk1.8.0_161\jre"
> Using JVM:  "c:\Program 
> Files\Java\jdk1.8.0_161\jre\bin\server\jvm.dll"
> Failed installing 'Tomcat9' service
> 
> C:\apache-tomcat-9.0.84\bin>
> C:\apache-tomcat-9.0.84\logs\commons-daemon.2024-01-09.log :
> 
> [2024-01-09 14:57:32] [info]  [ 7400] Apache Commons Daemon procrun (1.3.4.0 
> 64-bit) started.
> [2024-01-09 14:57:32] [info]  [ 7400] Running Service 'tomcat9'...
> [2024-01-09 14:57:32] [error] [ 7400] StartServiceCtrlDispatcher for 
> 'tomcat9' failed.
> [2024-01-09 14:57:32] [error] [ 7400] Der Dienstprozess konnte keine 
> Verbindung mit dem Dienstcontroller herstellen.
> [2024-01-09 14:57:32] [error] [ 7400] Apache Commons Daemon procrun failed 
> with exit value: 4 (failed to run service).
> [2024-01-09 14:57:32] [error] [ 7400] Der Dienstprozess konnte keine 
> Verbindung mit dem Dienstcontroller herstellen.
> 
> 
>> Am 09.01.2024 um 14:31 schrieb Christoph Kukulies > <mailto:k...@kukulies.org.INVALID>>:
>> 
>> A few more observations: the tomcat9 service got installed nonetheless. I 
>> was able to chage the log path using tomcat9w afterwards.
>> But the logs don't look nice, not to talk  from seeing anything listening to 
>> port 8080:
>> 
>> 
>> [2024-01-09 14:19:27] [info]  [ 9876] Apache Commons Daemon procrun (1.3.4.0 
>> 64-bit) started.
>> [2024-01-09 14:19:27] [info]  [ 9876] Running Service 'tomcat9'...
>> [2024-01-09 14:19:27] [info]  [ 6216] Starting service...
>> [2024-01-09 14:19:27] [error] [ 6216] Missing service ImageFile.
>> [2024-01-09 14:19:27] [error] [ 6216] ServiceStart returned 1.
>> [2024-01-09 14:19:27] [info]  [ 9876] Run service finished.
>> [2024-01-09 14:19:27] [info]  [ 9876] Apache Commons Daemon procrun finished.
>> [2024-01-09 14:19:36] [info]  [ 8044] Apache Commons Daemon procrun (1.3.4.0 
>> 64-bit) started.
>> [2024-01-09 14:19:36] [info]  [ 8044] Running Service 'tomcat9'...
>> [2024-01-09 14:19:36] [info]  [ 5340] Starting service...
>> [2024-01-09 14:19:36] [error] [ 5340] Missing service ImageFile.
>> [2024-01-09 14:19:36] [error] [ 5340] ServiceStart returned 1.
>> [2024-01-09 14:19:36] [info]  [ 8044] Run service finished.
>> [2024-01-09 14:19:36] [info]  [ 8044] Apache Commons Daemon procrun finished.
>> [2024-01-09 14:21:25] [info]  [ 1388] Apache Commons Daemon procrun (1.3.4.0 
>> 64-bit) started.
>> [2024-01-09 14:21:25] [info]  [ 1388] Running Service 'tomcat9'...
>> [2024-01-09 14:21:25] [info]  [ 3424] Starting service...
>> [2024-01-09 14:21:25] [error] [ 3424] Missing service ImageFile.
>> [2024-01-09 14:21:25] [error] [ 3424] ServiceStart returned 1.
>> [2024-01-09 14:21:25] [info]  [ 1388] Run service finished.
>> [2024-01-09 14:21:25] [info]  [ 1388] Apache Commons Daemon procrun finished.
>> [2024-01-09 14:21:37] [info]  [ 9840] Apache Co

Re: Windows 10 - installing tomcat 9.0.84 as a service

2024-01-09 Thread Christoph Kukulies
The picture has changed a bit:

C:\apache-tomcat-9.0.84\bin>service.bat install
Installing the service 'Tomcat9' ...
Using CATALINA_HOME:"C:\apache-tomcat-9.0.84"
Using CATALINA_BASE:"C:\apache-tomcat-9.0.84"
Using JAVA_HOME:"c:\Program Files\Java\jdk1.8.0_161"
Using JRE_HOME: "c:\Program Files\Java\jdk1.8.0_161\jre"
Using JVM:  "c:\Program 
Files\Java\jdk1.8.0_161\jre\bin\server\jvm.dll"
Failed installing 'Tomcat9' service

C:\apache-tomcat-9.0.84\bin>
C:\apache-tomcat-9.0.84\logs\commons-daemon.2024-01-09.log :

[2024-01-09 14:57:32] [info]  [ 7400] Apache Commons Daemon procrun (1.3.4.0 
64-bit) started.
[2024-01-09 14:57:32] [info]  [ 7400] Running Service 'tomcat9'...
[2024-01-09 14:57:32] [error] [ 7400] StartServiceCtrlDispatcher for 'tomcat9' 
failed.
[2024-01-09 14:57:32] [error] [ 7400] Der Dienstprozess konnte keine Verbindung 
mit dem Dienstcontroller herstellen.
[2024-01-09 14:57:32] [error] [ 7400] Apache Commons Daemon procrun failed with 
exit value: 4 (failed to run service).
[2024-01-09 14:57:32] [error] [ 7400] Der Dienstprozess konnte keine Verbindung 
mit dem Dienstcontroller herstellen.


> Am 09.01.2024 um 14:31 schrieb Christoph Kukulies :
> 
> A few more observations: the tomcat9 service got installed nonetheless. I was 
> able to chage the log path using tomcat9w afterwards.
> But the logs don't look nice, not to talk  from seeing anything listening to 
> port 8080:
> 
> 
> [2024-01-09 14:19:27] [info]  [ 9876] Apache Commons Daemon procrun (1.3.4.0 
> 64-bit) started.
> [2024-01-09 14:19:27] [info]  [ 9876] Running Service 'tomcat9'...
> [2024-01-09 14:19:27] [info]  [ 6216] Starting service...
> [2024-01-09 14:19:27] [error] [ 6216] Missing service ImageFile.
> [2024-01-09 14:19:27] [error] [ 6216] ServiceStart returned 1.
> [2024-01-09 14:19:27] [info]  [ 9876] Run service finished.
> [2024-01-09 14:19:27] [info]  [ 9876] Apache Commons Daemon procrun finished.
> [2024-01-09 14:19:36] [info]  [ 8044] Apache Commons Daemon procrun (1.3.4.0 
> 64-bit) started.
> [2024-01-09 14:19:36] [info]  [ 8044] Running Service 'tomcat9'...
> [2024-01-09 14:19:36] [info]  [ 5340] Starting service...
> [2024-01-09 14:19:36] [error] [ 5340] Missing service ImageFile.
> [2024-01-09 14:19:36] [error] [ 5340] ServiceStart returned 1.
> [2024-01-09 14:19:36] [info]  [ 8044] Run service finished.
> [2024-01-09 14:19:36] [info]  [ 8044] Apache Commons Daemon procrun finished.
> [2024-01-09 14:21:25] [info]  [ 1388] Apache Commons Daemon procrun (1.3.4.0 
> 64-bit) started.
> [2024-01-09 14:21:25] [info]  [ 1388] Running Service 'tomcat9'...
> [2024-01-09 14:21:25] [info]  [ 3424] Starting service...
> [2024-01-09 14:21:25] [error] [ 3424] Missing service ImageFile.
> [2024-01-09 14:21:25] [error] [ 3424] ServiceStart returned 1.
> [2024-01-09 14:21:25] [info]  [ 1388] Run service finished.
> [2024-01-09 14:21:25] [info]  [ 1388] Apache Commons Daemon procrun finished.
> [2024-01-09 14:21:37] [info]  [ 9840] Apache Commons Daemon procrun (1.3.4.0 
> 64-bit) started.
> [2024-01-09 14:21:37] [info]  [ 9840] Running Service 'tomcat9'...
> [2024-01-09 14:21:37] [info]  [ 9876] Starting service...
> [2024-01-09 14:21:37] [error] [ 9876] Missing service ImageFile.
> [2024-01-09 14:21:37] [error] [ 9876] ServiceStart returned 1.
> [2024-01-09 14:21:37] [info]  [ 9840] Run service finished.
> [2024-01-09 14:21:37] [info]  [ 9840] Apache Commons Daemon procrun finished.
> 
> 
> 



smime.p7s
Description: S/MIME cryptographic signature


Re: Windows 10 - installing tomcat 9.0.84 as a service

2024-01-09 Thread Christoph Kukulies
A few more observations: the tomcat9 service got installed nonetheless. I was 
able to chage the log path using tomcat9w afterwards.
But the logs don't look nice, not to talk  from seeing anything listening to 
port 8080:


[2024-01-09 14:19:27] [info]  [ 9876] Apache Commons Daemon procrun (1.3.4.0 
64-bit) started.
[2024-01-09 14:19:27] [info]  [ 9876] Running Service 'tomcat9'...
[2024-01-09 14:19:27] [info]  [ 6216] Starting service...
[2024-01-09 14:19:27] [error] [ 6216] Missing service ImageFile.
[2024-01-09 14:19:27] [error] [ 6216] ServiceStart returned 1.
[2024-01-09 14:19:27] [info]  [ 9876] Run service finished.
[2024-01-09 14:19:27] [info]  [ 9876] Apache Commons Daemon procrun finished.
[2024-01-09 14:19:36] [info]  [ 8044] Apache Commons Daemon procrun (1.3.4.0 
64-bit) started.
[2024-01-09 14:19:36] [info]  [ 8044] Running Service 'tomcat9'...
[2024-01-09 14:19:36] [info]  [ 5340] Starting service...
[2024-01-09 14:19:36] [error] [ 5340] Missing service ImageFile.
[2024-01-09 14:19:36] [error] [ 5340] ServiceStart returned 1.
[2024-01-09 14:19:36] [info]  [ 8044] Run service finished.
[2024-01-09 14:19:36] [info]  [ 8044] Apache Commons Daemon procrun finished.
[2024-01-09 14:21:25] [info]  [ 1388] Apache Commons Daemon procrun (1.3.4.0 
64-bit) started.
[2024-01-09 14:21:25] [info]  [ 1388] Running Service 'tomcat9'...
[2024-01-09 14:21:25] [info]  [ 3424] Starting service...
[2024-01-09 14:21:25] [error] [ 3424] Missing service ImageFile.
[2024-01-09 14:21:25] [error] [ 3424] ServiceStart returned 1.
[2024-01-09 14:21:25] [info]  [ 1388] Run service finished.
[2024-01-09 14:21:25] [info]  [ 1388] Apache Commons Daemon procrun finished.
[2024-01-09 14:21:37] [info]  [ 9840] Apache Commons Daemon procrun (1.3.4.0 
64-bit) started.
[2024-01-09 14:21:37] [info]  [ 9840] Running Service 'tomcat9'...
[2024-01-09 14:21:37] [info]  [ 9876] Starting service...
[2024-01-09 14:21:37] [error] [ 9876] Missing service ImageFile.
[2024-01-09 14:21:37] [error] [ 9876] ServiceStart returned 1.
[2024-01-09 14:21:37] [info]  [ 9840] Run service finished.
[2024-01-09 14:21:37] [info]  [ 9840] Apache Commons Daemon procrun finished.





















































































> Am 09.01.2024 um 14:05 schrieb Christoph Kukulies :
> 
> I'm trying to install Tomcat-9.0.84 under Windows 10 as a service.
> I unpacked it under C:\apache-tomcat-9.0.84 and after creating a file 
> setenv.bat (as of the RUNNING.TXT document)
> I ran:
> 
> C:\apache-tomcat-9.0.84\bin>set CATALINA_HOME=C:\apache-tomcat-9.0.84"
> 
> C:\apache-tomcat-9.0.84\bin>tomcat9 //IS
> [2024-01-09 13:57:22] [warn]  [10572] Failed to grant service user 'NT 
> AUTHORITY\LocalService' write permissions to log path 
> 'C:\WINDOWS\system32\LogFiles\Apache' due to error '19: Das Medium ist 
> schreibgesch³tzt.'
> 
> C:\apache-tomcat-9.0.84\bin>
> 
> This was done in a CMD Window with administrative rights. It's quite a couple 
> of years back I did a tomcat installation under Windows.
> Some help appreciated. Thank you.
> 
> --
> Christoph
> 
> 



smime.p7s
Description: S/MIME cryptographic signature


Windows 10 - installing tomcat 9.0.84 as a service

2024-01-09 Thread Christoph Kukulies
I'm trying to install Tomcat-9.0.84 under Windows 10 as a service.
I unpacked it under C:\apache-tomcat-9.0.84 and after creating a file 
setenv.bat (as of the RUNNING.TXT document)
I ran:

C:\apache-tomcat-9.0.84\bin>set CATALINA_HOME=C:\apache-tomcat-9.0.84"

C:\apache-tomcat-9.0.84\bin>tomcat9 //IS
[2024-01-09 13:57:22] [warn]  [10572] Failed to grant service user 'NT 
AUTHORITY\LocalService' write permissions to log path 
'C:\WINDOWS\system32\LogFiles\Apache' due to error '19: Das Medium ist 
schreibgesch³tzt.'

C:\apache-tomcat-9.0.84\bin>

This was done in a CMD Window with administrative rights. It's quite a couple 
of years back I did a tomcat installation under Windows.
Some help appreciated. Thank you.

--
Christoph




smime.p7s
Description: S/MIME cryptographic signature


Re: Secure connection - only ipv6 listener at port 8443

2024-01-08 Thread Christoph Kukulies
Ubuntu 22.04.3
Thanks. Output is indeed "0". So it listens to both protocol versions. Will 
stick with this of course :)

--
Christoph


> Am 08.01.2024 um 11:15 schrieb EML :
> 
> Run this command (I'm assuming you're on Linux):
> 
>  $ cat /proc/sys/net/ipv6/bindv6only
> 
> The default output is 0 on Linux (the Windows equivalent is apparently 1). 0 
> means that an IPv6 socket will connect to *both* IPv6 and IPv4  (look up 
> IPV6_V6ONLY).
> 
> You can force Java to listen to IPv4 only, with something like 
> 'Environment="JAVA_OPTS_APPEND=-Djava.net.preferIPv4Stack=true', but you 
> probably don't want to do this.
> 
> On 08/01/2024 09:40, Christoph Kukulies wrote:
>> Hi,
>> 
>> I'm trying to connect to a tomcat9 server for which I made an entry in 
>> server.xml:
>> 
>>  >maxThreads="150" SSLEnabled="true" >
>>   
>> 
>>   >  certificateFile="conf/localhost-rsa-cert.pem"
>>  certificateChainFile="conf/localhost-rsa-chain.pem"
>>  type="RSA" />
>> 
>> 
>> 
>> and the following entries are also present, FWIW:
>> 
>> >  proxyName="cms.mysite.de <http://cms.mysite.de/> <http://cms.mysite.de 
>> <http://cms.mysite.de/>>" maxThreads="150" enableLookups="false"
>>  redirectPort="8443" acceptCount="100" connectionTimeout="2"
>>  disableUploadTimeout="true" />
>> >  proxyName="othername.de <http://othername.de/> <http://othername.de 
>> <http://othername.de/>>" maxThreads="150" enableLookups="false"
>>  redirectPort="8443" acceptCount="100" connectionTimeout="2"
>>  disableUploadTimeout="true" />
>> >  proxyName="other.de <http://other.de/> <http://other.de 
>> <http://other.de/>>" maxThreads="150" enableLookups="false"
>>  redirectPort="8443" acceptCount="100" connectionTimeout="2"
>>  disableUploadTimeout="true" />
>> >  proxyName="alternate.de <http://alternate.de/> <http://alternate.de 
>> <http://alternate.de/>>" maxThreads="150" enableLookups="false"
>>  redirectPort="8443" acceptCount="100" connectionTimeout="2"
>>  disableUploadTimeout="true" />
>> 
>> 
>> Connection to the server through port 8443 seems to work (filtered by ufw)
>> but I'm wondering why I don't see any tcp/v4 connection.
>> 
>> root@mail:/var/lib/tomcat9/logs# ufw status numbered
>> Status: active
>> 
>>   To Action  From
>>   -- --  
>> [ 1] 25 ALLOW INAnywhere
>> [ 2] 443ALLOW INAnywhere
>> [ 3] 993ALLOW INAnywhere
>> [ 4] 587ALLOW INAnywhere
>> [ 5] 80 ALLOW INAnywhere
>> [ 6] 22 ALLOW IN33.180.24.29
>> [ 7] 8080/tcp   ALLOW IN33.180.24.29
>> [ 8] 8443/tcp   ALLOW IN33.180.24.29
>> [ 9] 25 (v6)ALLOW INAnywhere (v6)
>> [10] 443 (v6)   ALLOW INAnywhere (v6)
>> [11] 993 (v6)   ALLOW INAnywhere (v6)
>> [12] 587 (v6)   ALLOW INAnywhere (v6)
>> [13] 80 (v6)ALLOW INAnywhere (v6)
>> 
>> root@mail:/var/lib/tomcat9/logs# netstat -an | grep 8443
>> tcp6   0  0 :::*8443*:::*LISTEN
>> 08-Jan-2024 10:25:55.513 INFO [main] 
>> org.apache.catalina.core.StandardEngine.startInternal Starting Servlet 
>> engine: [Apache Tomcat/9.0.58 (Ubuntu)]
>> 08-Jan-2024 10:25:55.532 INFO [main] 
>> org.apache.catalina.startup.HostConfig.deployWAR Deploying web application 
>> archive [/var/lib/tomcat9/webapps/ROOT.war]
>> 08-Jan-2024 10:26:07.487 INFO [main] 
>> org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned 
>> for TLDs yet contained no TLDs. Enable debug logging for this logger for a 
>> complete list of JARs that were scanned but no TLDs were found in them. 
>> Skipping unneeded JARs during scanning can improve startup time and JSP 
>> compilation time.
>> 08-Jan-2024 10:26:23.038 INFO [main] 

Secure connection - only ipv6 listener at port 8443

2024-01-08 Thread Christoph Kukulies
Hi,

I'm trying to connect to a tomcat9 server for which I made an entry in 
server.xml:

   






and the following entries are also present, FWIW:







Connection to the server through port 8443 seems to work (filtered by ufw)
but I'm wondering why I don't see any tcp/v4 connection.

root@mail:/var/lib/tomcat9/logs# ufw status numbered
Status: active

 To Action  From
 -- --  
[ 1] 25 ALLOW INAnywhere  
[ 2] 443ALLOW INAnywhere  
[ 3] 993ALLOW INAnywhere  
[ 4] 587ALLOW INAnywhere  
[ 5] 80 ALLOW INAnywhere  
[ 6] 22 ALLOW IN33.180.24.29 
[ 7] 8080/tcp   ALLOW IN33.180.24.29 
[ 8] 8443/tcp   ALLOW IN33.180.24.29 
[ 9] 25 (v6)ALLOW INAnywhere (v6) 
[10] 443 (v6)   ALLOW INAnywhere (v6) 
[11] 993 (v6)   ALLOW INAnywhere (v6) 
[12] 587 (v6)   ALLOW INAnywhere (v6) 
[13] 80 (v6)ALLOW INAnywhere (v6) 

root@mail:/var/lib/tomcat9/logs# netstat -an | grep 8443
tcp6   0  0 :::8443 :::*LISTEN 
08-Jan-2024 10:25:55.513 INFO [main] 
org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: 
[Apache Tomcat/9.0.58 (Ubuntu)]
08-Jan-2024 10:25:55.532 INFO [main] 
org.apache.catalina.startup.HostConfig.deployWAR Deploying web application 
archive [/var/lib/tomcat9/webapps/ROOT.war]
08-Jan-2024 10:26:07.487 INFO [main] 
org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for 
TLDs yet contained no TLDs. Enable debug logging for this logger for a complete 
list of JARs that were scanned but no TLDs were found in them. Skipping 
unneeded JARs during scanning can improve startup time and JSP compilation time.
08-Jan-2024 10:26:23.038 INFO [main] 
org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application 
archive [/var/lib/tomcat9/webapps/ROOT.war] has finished in [27,506] ms
08-Jan-2024 10:26:23.043 INFO [main] org.apache.coyote.AbstractProtocol.start 
Starting ProtocolHandler ["http-nio-8082"]
08-Jan-2024 10:26:23.079 INFO [main] org.apache.coyote.AbstractProtocol.start 
Starting ProtocolHandler ["http-nio-8081"]
08-Jan-2024 10:26:23.094 INFO [main] org.apache.coyote.AbstractProtocol.start 
Starting ProtocolHandler ["http-nio-8080"]
08-Jan-2024 10:26:23.098 INFO [main] org.apache.coyote.AbstractProtocol.start 
Starting ProtocolHandler ["http-nio-8086"]
08-Jan-2024 10:26:23.108 INFO [main] org.apache.coyote.AbstractProtocol.start 
Starting ProtocolHandler ["https-openssl-apr-8443"]
08-Jan-2024 10:26:23.133 INFO [main] org.apache.catalina.startup.Catalina.start 
Server startup in [27735] milliseconds

root@mail:/var/lib/tomcat9/logs# lsof -i :8443
COMMANDPID   USER   FD   TYPE  DEVICE SIZE/OFF NODE NAME
java177550 tomcat   43u  IPv6 1853946  0t0  TCP *:8443 (LISTEN)
root@mail:/var/lib/tomcat9/logs# 

--
Christoph



smime.p7s
Description: S/MIME cryptographic signature


setenv.sh tomcat8 changelog

2023-12-04 Thread Christoph Kukulies
The tomcat8 changelog shows the following remark among others:

General

• Tighten up the default file permissions for the .tar.gz distribution 
so no files or directories are world readable by default. Configure Tomcat to 
run with a default umask of 0027 which may be overridden by setting UMASK in 
setenv.sh. (markt)


Where do I find "setenv.sh" in my tomcat9 (Ubuntu) distribution? 

root@mail:/var/lib# grep "^Umask:" /proc/`ps ax| grep  tomcat | grep -v grep | 
awk '{print $1}'`/status
Umask:  0027


--
Christoph



smime.p7s
Description: S/MIME cryptographic signature


Re: Tomcat9 not listening to ipv4 port 8080, only ipv6

2023-11-28 Thread Christoph Kukulies
Hi Christopher,

That was my connector:

 

I tried netstat -tulpn as well and it could be seen there was  no listener 
under ip4 and port 8080.

Thanks,

--
Christoph


> Am 28.11.2023 um 15:15 schrieb Christopher Schultz 
> :
> 
> Christoph,
> 
> On 11/28/23 08:26, Christoph Kukulies wrote:
>> not that I kew of (changes in JVM arguments). I will try your suggestion:
>> -Djava.net.preferIPv4Stack=true
>> and thanks, it helped:
>> I put it into /etc/defaults/tomcat9 (under Ubuntu 22.04)
>> JAVA_OPTS="-Djava.awt.headless=true -Djava.net.preferIPv4Stack=true"
>> and now I have:
>> root@mail:/etc/default# lsof -i :8080
>> COMMAND   PID   USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
>> java59579 tomcat   37u  IPv4 579485  0t0  TCP *:http-alt (LISTEN)
>> root@mail:/etc/default#
> 
> So... is that what you wanted?
> 
> What does your  configuration look like?
> 
> Try using netstat instead of lsof. It will show you the network interface 
> being used as well as the port number and IP stack type.
> 
> -chris
> 
>>> Am 28.11.2023 um 13:58 schrieb Suvendu Sekhar Mondal >> <mailto:suv3...@gmail.com>>:
>>> 
>>> Hello Christoph,
>>> 
>>> On Tue, Nov 28, 2023, 5:55 PM Christoph Kukulies >> <mailto:k...@kukulies.org.invalid>>
>>> wrote:
>>> 
>>>> I'm pulling my hairs on a suddenly occured - possibly - misconfiguration.
>>>> But I can't find it out:
>>>> 
>>>> catalina.2023-11-28.log:
>>>> 
>>>> 
>>>> 28-Nov-2023 13:15:43.742 INFO [main]
>>>> org.apache.catalina.startup.VersionLoggerListener.log Server version name:
>>>>  Apache Tomcat/9.0.58 (Ubuntu)
>>>> 28-Nov-2023 13:15:43.743 INFO [main]
>>>> org.apache.catalina.startup.VersionLoggerListener.log Server built:
>>>>  Jan 6 1970 15:09:28 UTC
>>>> 28-Nov-2023 13:15:43.744 INFO [main]
>>>> org.apache.catalina.startup.VersionLoggerListener.log Server version
>>>> number: 9.0.58.0
>>>> 28-Nov-2023 13:15:43.744 INFO [main]
>>>> org.apache.catalina.startup.VersionLoggerListener.log OS Name:
>>>>  Linux
>>>> 28-Nov-2023 13:15:43.744 INFO [main]
>>>> org.apache.catalina.startup.VersionLoggerListener.log OS Version:
>>>>  5.15.0-89-generic
>>>> 28-Nov-2023 13:15:43.745 INFO [main]
>>>> org.apache.catalina.startup.VersionLoggerListener.log Architecture:
>>>>  amd64
>>>> 28-Nov-2023 13:15:43.745 INFO [main]
>>>> org.apache.catalina.startup.VersionLoggerListener.log Java Home:
>>>>  /usr/lib/jvm/java-11-openjdk-amd64
>>>> 28-Nov-2023 13:15:43.745 INFO [main]
>>>> org.apache.catalina.startup.VersionLoggerListener.log JVM Version:
>>>>  11.0.20.1+1-post-Ubuntu-0ubuntu122.04
>>>> 28-Nov-2023 13:15:43.745 INFO [main]
>>>> org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor:
>>>>  Ubuntu
>>>> 28-Nov-2023 13:15:43.746 INFO [main]
>>>> org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE:
>>>>  /var/lib/tomcat9
>>>> 28-Nov-2023 13:15:43.746 INFO [main]
>>>> org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME:
>>>>  /usr/share/tomcat9
>>>> 28-Nov-2023 13:15:43.758 INFO [main]
>>>> org.apache.catalina.startup.VersionLoggerListener.log Command line
>>>> argument: --add-opens=java.base/java.lang=ALL-UNNAMED
>>>> 28-Nov-2023 13:15:43.759 INFO [main]
>>>> org.apache.catalina.startup.VersionLoggerListener.log Command line
>>>> argument: --add-opens=java.base/java.io <http://java.io>=ALL-UNNAMED
>>>> 28-Nov-2023 13:15:43.759 INFO [main]
>>>> org.apache.catalina.startup.VersionLoggerListener.log Command line
>>>> argument: --add-opens=java.base/java.util=ALL-UNNAMED
>>>> 28-Nov-2023 13:15:43.760 INFO [main]
>>>> org.apache.catalina.startup.VersionLoggerListener.log Command line
>>>> argument: --add-opens=java.base/java.util.concurrent=ALL-UNNAMED
>>>> 28-Nov-2023 13:15:43.760 INFO [main]
>>>> org.apache.catalina.startup.VersionLoggerListener.log Command line
>>>> argument: --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
>>>> 28-Nov-2023 13:15:43.760 INFO [main]
>>>> org.apache.catalina.startup.VersionLoggerListener.log Command line
>>>> argument:
>>>> -Djava.util.logging.config.file=/var/lib/tomcat9/conf/logging.properties
>>>> 2

Re: Tomcat9 not listening to ipv4 port 8080, only ipv6

2023-11-28 Thread Christoph Kukulies
Hi Suvendu,

not that I kew of (changes in JVM arguments). I will try your suggestion:

-Djava.net.preferIPv4Stack=true

and thanks, it helped:

I put it into /etc/defaults/tomcat9 (under Ubuntu 22.04)

JAVA_OPTS="-Djava.awt.headless=true -Djava.net.preferIPv4Stack=true"

and now I have:

root@mail:/etc/default# lsof -i :8080
COMMAND   PID   USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
java59579 tomcat   37u  IPv4 579485  0t0  TCP *:http-alt (LISTEN)
root@mail:/etc/default# 

--
Christoph


> Am 28.11.2023 um 13:58 schrieb Suvendu Sekhar Mondal :
> 
> Hello Christoph,
> 
> On Tue, Nov 28, 2023, 5:55 PM Christoph Kukulies  <mailto:k...@kukulies.org.invalid>>
> wrote:
> 
>> I'm pulling my hairs on a suddenly occured - possibly - misconfiguration.
>> But I can't find it out:
>> 
>> catalina.2023-11-28.log:
>> 
>> 
>> 28-Nov-2023 13:15:43.742 INFO [main]
>> org.apache.catalina.startup.VersionLoggerListener.log Server version name:
>>  Apache Tomcat/9.0.58 (Ubuntu)
>> 28-Nov-2023 13:15:43.743 INFO [main]
>> org.apache.catalina.startup.VersionLoggerListener.log Server built:
>>  Jan 6 1970 15:09:28 UTC
>> 28-Nov-2023 13:15:43.744 INFO [main]
>> org.apache.catalina.startup.VersionLoggerListener.log Server version
>> number: 9.0.58.0
>> 28-Nov-2023 13:15:43.744 INFO [main]
>> org.apache.catalina.startup.VersionLoggerListener.log OS Name:
>>  Linux
>> 28-Nov-2023 13:15:43.744 INFO [main]
>> org.apache.catalina.startup.VersionLoggerListener.log OS Version:
>>  5.15.0-89-generic
>> 28-Nov-2023 13:15:43.745 INFO [main]
>> org.apache.catalina.startup.VersionLoggerListener.log Architecture:
>>  amd64
>> 28-Nov-2023 13:15:43.745 INFO [main]
>> org.apache.catalina.startup.VersionLoggerListener.log Java Home:
>>  /usr/lib/jvm/java-11-openjdk-amd64
>> 28-Nov-2023 13:15:43.745 INFO [main]
>> org.apache.catalina.startup.VersionLoggerListener.log JVM Version:
>>  11.0.20.1+1-post-Ubuntu-0ubuntu122.04
>> 28-Nov-2023 13:15:43.745 INFO [main]
>> org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor:
>>  Ubuntu
>> 28-Nov-2023 13:15:43.746 INFO [main]
>> org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE:
>>  /var/lib/tomcat9
>> 28-Nov-2023 13:15:43.746 INFO [main]
>> org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME:
>>  /usr/share/tomcat9
>> 28-Nov-2023 13:15:43.758 INFO [main]
>> org.apache.catalina.startup.VersionLoggerListener.log Command line
>> argument: --add-opens=java.base/java.lang=ALL-UNNAMED
>> 28-Nov-2023 13:15:43.759 INFO [main]
>> org.apache.catalina.startup.VersionLoggerListener.log Command line
>> argument: --add-opens=java.base/java.io=ALL-UNNAMED
>> 28-Nov-2023 13:15:43.759 INFO [main]
>> org.apache.catalina.startup.VersionLoggerListener.log Command line
>> argument: --add-opens=java.base/java.util=ALL-UNNAMED
>> 28-Nov-2023 13:15:43.760 INFO [main]
>> org.apache.catalina.startup.VersionLoggerListener.log Command line
>> argument: --add-opens=java.base/java.util.concurrent=ALL-UNNAMED
>> 28-Nov-2023 13:15:43.760 INFO [main]
>> org.apache.catalina.startup.VersionLoggerListener.log Command line
>> argument: --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
>> 28-Nov-2023 13:15:43.760 INFO [main]
>> org.apache.catalina.startup.VersionLoggerListener.log Command line
>> argument:
>> -Djava.util.logging.config.file=/var/lib/tomcat9/conf/logging.properties
>> 28-Nov-2023 13:15:43.761 INFO [main]
>> org.apache.catalina.startup.VersionLoggerListener.log Command line
>> argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
>> 28-Nov-2023 13:15:43.761 INFO [main]
>> org.apache.catalina.startup.VersionLoggerListener.log Command line
>> argument: -Djava.awt.headless=true
>> 28-Nov-2023 13:15:43.761 INFO [main]
>> org.apache.catalina.startup.VersionLoggerListener.log Command line
>> argument: -Djdk.tls.ephemeralDHKeySize=2048
>> 28-Nov-2023 13:15:43.761 INFO [main]
>> org.apache.catalina.startup.VersionLoggerListener.log Command line
>> argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources
>> 28-Nov-2023 13:15:43.762 INFO [main]
>> org.apache.catalina.startup.VersionLoggerListener.log Command line
>> argument: -Dorg.apache.catalina.security.SecurityListener.UMASK=0027
>> 28-Nov-2023 13:15:43.762 INFO [main]
>> org.apache.catalina.startup.VersionLoggerListener.log Command line
>> argument: -Dignore.endorsed.dirs=
>> 28-Nov-2023 13:15:43.762 INFO [main]
>> org.apache.catalina.startup.VersionLoggerListener.log Command line
>> a

Tomcat9 not listening to ipv4 port 8080, only ipv6

2023-11-28 Thread Christoph Kukulies
I'm pulling my hairs on a suddenly occured - possibly - misconfiguration. But I 
can't find it out:

catalina.2023-11-28.log:


28-Nov-2023 13:15:43.742 INFO [main] 
org.apache.catalina.startup.VersionLoggerListener.log Server version name:   
Apache Tomcat/9.0.58 (Ubuntu)
28-Nov-2023 13:15:43.743 INFO [main] 
org.apache.catalina.startup.VersionLoggerListener.log Server built:  
Jan 6 1970 15:09:28 UTC
28-Nov-2023 13:15:43.744 INFO [main] 
org.apache.catalina.startup.VersionLoggerListener.log Server version number: 
9.0.58.0
28-Nov-2023 13:15:43.744 INFO [main] 
org.apache.catalina.startup.VersionLoggerListener.log OS Name:   
Linux
28-Nov-2023 13:15:43.744 INFO [main] 
org.apache.catalina.startup.VersionLoggerListener.log OS Version:
5.15.0-89-generic
28-Nov-2023 13:15:43.745 INFO [main] 
org.apache.catalina.startup.VersionLoggerListener.log Architecture:  
amd64
28-Nov-2023 13:15:43.745 INFO [main] 
org.apache.catalina.startup.VersionLoggerListener.log Java Home: 
/usr/lib/jvm/java-11-openjdk-amd64
28-Nov-2023 13:15:43.745 INFO [main] 
org.apache.catalina.startup.VersionLoggerListener.log JVM Version:   
11.0.20.1+1-post-Ubuntu-0ubuntu122.04
28-Nov-2023 13:15:43.745 INFO [main] 
org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor:
Ubuntu
28-Nov-2023 13:15:43.746 INFO [main] 
org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE: 
/var/lib/tomcat9
28-Nov-2023 13:15:43.746 INFO [main] 
org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME: 
/usr/share/tomcat9
28-Nov-2023 13:15:43.758 INFO [main] 
org.apache.catalina.startup.VersionLoggerListener.log Command line argument: 
--add-opens=java.base/java.lang=ALL-UNNAMED
28-Nov-2023 13:15:43.759 INFO [main] 
org.apache.catalina.startup.VersionLoggerListener.log Command line argument: 
--add-opens=java.base/java.io=ALL-UNNAMED
28-Nov-2023 13:15:43.759 INFO [main] 
org.apache.catalina.startup.VersionLoggerListener.log Command line argument: 
--add-opens=java.base/java.util=ALL-UNNAMED
28-Nov-2023 13:15:43.760 INFO [main] 
org.apache.catalina.startup.VersionLoggerListener.log Command line argument: 
--add-opens=java.base/java.util.concurrent=ALL-UNNAMED
28-Nov-2023 13:15:43.760 INFO [main] 
org.apache.catalina.startup.VersionLoggerListener.log Command line argument: 
--add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
28-Nov-2023 13:15:43.760 INFO [main] 
org.apache.catalina.startup.VersionLoggerListener.log Command line argument: 
-Djava.util.logging.config.file=/var/lib/tomcat9/conf/logging.properties
28-Nov-2023 13:15:43.761 INFO [main] 
org.apache.catalina.startup.VersionLoggerListener.log Command line argument: 
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
28-Nov-2023 13:15:43.761 INFO [main] 
org.apache.catalina.startup.VersionLoggerListener.log Command line argument: 
-Djava.awt.headless=true
28-Nov-2023 13:15:43.761 INFO [main] 
org.apache.catalina.startup.VersionLoggerListener.log Command line argument: 
-Djdk.tls.ephemeralDHKeySize=2048
28-Nov-2023 13:15:43.761 INFO [main] 
org.apache.catalina.startup.VersionLoggerListener.log Command line argument: 
-Djava.protocol.handler.pkgs=org.apache.catalina.webresources
28-Nov-2023 13:15:43.762 INFO [main] 
org.apache.catalina.startup.VersionLoggerListener.log Command line argument: 
-Dorg.apache.catalina.security.SecurityListener.UMASK=0027
28-Nov-2023 13:15:43.762 INFO [main] 
org.apache.catalina.startup.VersionLoggerListener.log Command line argument: 
-Dignore.endorsed.dirs=
28-Nov-2023 13:15:43.762 INFO [main] 
org.apache.catalina.startup.VersionLoggerListener.log Command line argument: 
-Dcatalina.base=/var/lib/tomcat9
28-Nov-2023 13:15:43.762 INFO [main] 
org.apache.catalina.startup.VersionLoggerListener.log Command line argument: 
-Dcatalina.home=/usr/share/tomcat9
28-Nov-2023 13:15:43.763 INFO [main] 
org.apache.catalina.startup.VersionLoggerListener.log Command line argument: 
-Djava.io.tmpdir=/tmp
28-Nov-2023 13:15:43.768 INFO [main] 
org.apache.catalina.core.AprLifecycleListener.lifecycleEvent Loaded Apache 
Tomcat Native library [1.2.31] using APR version [1.7.0].
28-Nov-2023 13:15:43.769 INFO [main] 
org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR capabilities: 
IPv6 [true], sendfile [true], accept filters [false], random [true], UDS [true].
28-Nov-2023 13:15:43.771 INFO [main] 
org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR/OpenSSL 
configuration: useAprConnector [false], useOpenSSL [true]
28-Nov-2023 13:15:43.776 INFO [main] 
org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL 
successfully initialized [OpenSSL 3.0.2 15 Mar 2022]
28-Nov-2023 13:15:44.229 INFO [main] org.apache.coyote.AbstractProtocol.init 
Initializing ProtocolHandler ["http-nio-8080"]
28-Nov-2023 13:15:44.268 INFO [main] org.apache.catalina.startup.Catalina.load 
Server initialization in [799] milliseconds
28-Nov-2023 13:15:44.328 

Re: Logging format (port %p)

2023-11-18 Thread Christoph Kukulies
Sorry, a bit searching revealed: /var/lib/tomcat9/server.xml:




> Am 18.11.2023 um 14:48 schrieb Christoph Kukulies :
> 
> I'm running tomcat9 as a backend server and I have configured different 
> ports. For debugging purposes I would like to log the port
> a request is being sent through.
> 
> Where is the logging format "wired" into the config? At the moment I'm seeing 
> this
> (in root@mail:/var/lib/tomcat9/logs# tail -f  
> localhost_access_log.2023-11-18.txt ):
> 
> 127.0.0.1 - - [18/Nov/2023:14:41:08 +0100] "GET / HTTP/1.1" 404 5679
> 
> 
> 
> --
> Christoph
> 



smime.p7s
Description: S/MIME cryptographic signature


Logging format (port %p)

2023-11-18 Thread Christoph Kukulies
I'm running tomcat9 as a backend server and I have configured different ports. 
For debugging purposes I would like to log the port
a request is being sent through.

Where is the logging format "wired" into the config? At the moment I'm seeing 
this
(in root@mail:/var/lib/tomcat9/logs# tail -f  
localhost_access_log.2023-11-18.txt ):

127.0.0.1 - - [18/Nov/2023:14:41:08 +0100] "GET / HTTP/1.1" 404 5679



--
Christoph



smime.p7s
Description: S/MIME cryptographic signature


Re: Wondering about tomcat-users.xml could not be found

2023-11-17 Thread Christoph Kukulies



> Am 16.11.2023 um 20:19 schrieb l...@kreuser.name:
> 
> Hi Chris*,
> 
> 
>> Am 16.11.2023 um 20:12 schrieb Christopher Schultz 
>> :
>> 
>> Christoph,
>> 
>> On 11/15/23 10:32, Christoph Kukulies wrote:
>>> I'm running tomcat9 under Ubuntu 22.04 with an haproxy 2.8 in front of it.
>>> I'm wondering about the following in the logs:
>>> Nov 15 16:19:23 mail tomcat9[832]: Reloading memory user database 
>>> [UserDatabase] from updated source 
>>> [file:/var/lib/tomcat9/conf/tomcat-users.xml]
>>> Nov 15 16:19:23 mail tomcat9[832]: The specified user database 
>>> [conf/tomcat-users.xml] could not be found
>>> Nov 15 16:19:33 mail tomcat9[832]: Reloading memory user database 
>>> [UserDatabase] from updated source 
>>> [file:/var/lib/tomcat9/conf/tomcat-users.xml]
>>> Nov 15 16:19:33 mail tomcat9[832]: The specified user database 
>>> [conf/tomcat-users.xml] could not be found
>>> Nov 15 16:19:43 mail tomcat9[832]: Reloading memory user database 
>>> [UserDatabase] from updated source 
>>> [file:/var/lib/tomcat9/conf/tomcat-users.xml]
>>> Nov 15 16:19:43 mail tomcat9[832]: The specified user database 
>>> [conf/tomcat-users.xml] could not be found
>>> Nov 15 16:19:53 mail tomcat9[832]: Reloading memory user database 
>>> [UserDatabase] from updated source 
>>> [file:/var/lib/tomcat9/conf/tomcat-users.xml]
>>> Nov 15 16:19:53 mail tomcat9[832]: The specified user database 
>>> [conf/tomcat-users.xml] could not be found
>>> File /var/lib/tomcat9/conf/tomcat-users.xml is definitely there.
>>> It occurs every 10 seconds.
>>> Don't know who is causing this and why. Permissions? Ownership wrong?
>>> -rw-r- 1 root root   2756 Jan 15  2022 tomcat-users.xml
>>> Believe the ownership was wrong. Maybe it came from migrating an old 
>>> installation.
>>> What are the correct perms/ownership in /var/lib/tomcat9 and below?
>> 
>> What is the user-owner of the JVM process?


root  125216  0.0  0.0  0 0 ?I09:42   0:00 
[kworker/0:0-events]
root  125221  0.0  0.0  0 0 ?I09:42   0:00 [kworker/0:2]
tomcat125222  166  9.2 3551824 363244 ?  Ssl  09:42   0:16 
/usr/lib/jvm/default-java/bin/java 
-Djava.util.logging.config.file=/var/lib/tomcat9/conf/logging.properties 
-Djava.util.logging.mana
root  125246  0.0  0.0  0 0 ?I09:42   0:00 
[kworker/u4:2-flush-8:0]


>> 
>> Check that all of the above would be both readable and executable by that 
>> user:
>> 
>> ls -ld /var
>> ls -ld /var/lib
>> ls -ld /var/lib/tomcat9
>> ls -ld /var/lib/tomcat9/conf

root@mail:/var/lib/tomcat9/webapps/ROOT/WEB-INF/config# ls -ld /var
drwxr-xr-x 15 root root 4096 Oct 23 16:31 /var
root@mail:/var/lib/tomcat9/webapps/ROOT/WEB-INF/config# ls -ld /var/lib
drwxr-xr-x 63 root root 4096 Nov 10 10:28 /var/lib
root@mail:/var/lib/tomcat9/webapps/ROOT/WEB-INF/config# ls -ld /var/lib/tomcat9
drwxr-xr-x 6 root root 4096 Nov 17 09:42 /var/lib/tomcat9
root@mail:/var/lib/tomcat9/webapps/ROOT/WEB-INF/config# ls -ld 
/var/lib/tomcat9/conf
lrwxrwxrwx 1 tomcat tomcat 12 Sep 11  2019 /var/lib/tomcat9/conf -> /etc/tomcat9
root@mail:/var/lib/tomcat9/webapps/ROOT/WEB-INF/config# ls -ld /etc/tomcat9
drwxr-xr-x 4 root root 4096 Nov 16 12:17 /etc/tomcat9
root@mail:/var/lib/tomcat9/webapps/ROOT/WEB-INF/config# 

>> 
>> ... and of course that the JVM user can read 
>> /var/lib/tomcat9/conf/tomcat-users.xml which I assume is true since you said 
>> you already checked it.
>> 
>> What is the cwd of the JVM process?
>> 
root@mail:/var/lib/tomcat9/webapps/ROOT/WEB-INF/config# pwdx 125222
125222: /var/lib/tomcat9

>> The first message ("reloading") has the full path, and the second message 
>> ("file not found") only mentions a relative path. I wonder if that is the 
>> difference.
>> 
> 
> 
> Could it be that the second path relates to a missing env-Variable 
> $CATALINA_BASE or $CATALINA_HOME?
> 
root@mail:/var/lib/tomcat9/webapps/ROOT/WEB-INF/config# cat 
/proc/125222/environ | tr '\0' '\n'
USER=tomcat
HOME=/var/lib/tomcat
OLDPWD=/
CATALINA_HOME=/usr/share/tomcat9
SYSTEMD_EXEC_PID=125222
LOGNAME=tomcat
JOURNAL_STREAM=8:1778827
CACHE_DIRECTORY=/var/cache/tomcat9
JDK_JAVA_OPTIONS= --add-opens=java.base/java.lang=ALL-UNNAMED 
--add-opens=java.base/java.io=ALL-UNNAMED 
--add-opens=java.base/java.util=ALL-UNNAMED 
--add-opens=java.base/java.util.concurrent=ALL-UNNAMED 
--add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
CATALINA_TMPDIR=/tmp
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin
INVOCATION_ID=84b60

Wondering about tomcat-users.xml could not be found

2023-11-15 Thread Christoph Kukulies
I'm running tomcat9 under Ubuntu 22.04 with an haproxy 2.8 in front of it.

I'm wondering about the following in the logs:

Nov 15 16:19:23 mail tomcat9[832]: Reloading memory user database 
[UserDatabase] from updated source [file:/var/lib/tomcat9/conf/tomcat-users.xml]
Nov 15 16:19:23 mail tomcat9[832]: The specified user database 
[conf/tomcat-users.xml] could not be found
Nov 15 16:19:33 mail tomcat9[832]: Reloading memory user database 
[UserDatabase] from updated source [file:/var/lib/tomcat9/conf/tomcat-users.xml]
Nov 15 16:19:33 mail tomcat9[832]: The specified user database 
[conf/tomcat-users.xml] could not be found
Nov 15 16:19:43 mail tomcat9[832]: Reloading memory user database 
[UserDatabase] from updated source [file:/var/lib/tomcat9/conf/tomcat-users.xml]
Nov 15 16:19:43 mail tomcat9[832]: The specified user database 
[conf/tomcat-users.xml] could not be found
Nov 15 16:19:53 mail tomcat9[832]: Reloading memory user database 
[UserDatabase] from updated source [file:/var/lib/tomcat9/conf/tomcat-users.xml]
Nov 15 16:19:53 mail tomcat9[832]: The specified user database 
[conf/tomcat-users.xml] could not be found

  


File /var/lib/tomcat9/conf/tomcat-users.xml is definitely there. 

It occurs every 10 seconds.

Don't know who is causing this and why. Permissions? Ownership wrong?

-rw-r- 1 root root   2756 Jan 15  2022 tomcat-users.xml

Believe the ownership was wrong. Maybe it came from migrating an old 
installation.

What are the correct perms/ownership in /var/lib/tomcat9 and below?

--
Christoph





smime.p7s
Description: S/MIME cryptographic signature


file ownership of webapps and below

2020-07-14 Thread Christoph Kukulies

I found there are some mismatches in file ownership from manual installation 
and moving around webapps  trees from different tomcat versions.
My current tomcat (9)  runs under user.group tomcat.tomcat. A couple of files 
have ownership

root.tomcat
tomcat8.

Would it be ok to chown all files below and including webapps to tomcat.tomcat?

—
Christoph



smime.p7s
Description: S/MIME cryptographic signature


Tomcat 9.0.12 shows in browser but tomcat8 installed

2020-07-12 Thread Christoph Kukulies
Strange. I’m running an apache2 and a tomcat8 (AFAIK) on my server.


When I open a browser on my server remotely and enter http://localhost:8080/ 
 I’m getting the tomcat
congratulations page saying:

Apache Tomcat/9.0.12

How can I determine which tomcat I’m running? Could it be that I once had 
installed Tomcat 9 and it is still installed as a service?
System is Ubuntu 18.04.4.


Christoph 





Re: Tomcat relicts from previous installation - ubuntu

2020-07-09 Thread Christoph Kukulies
Is it an Ubuntu peculiarity that a tomcat.service gets installed? I assume, I’m 
getting this automatically when doing an
apt-get install tomcat8, right?

—
Christoph

> Am 09.07.2020 um 15:19 schrieb calder :
> 
> On Thu, Jul 9, 2020, 06:59 Christoph Kukulies  <mailto:k...@kukulies.org>> wrote:.
> 
>>> 
>>> might try:
>>> user@machine:~ /> ps systemctl status 
>>> so in your example
>>> user@machine:~ /> ps systemctl status 1092
>> 
>> systemctl status 1092
>> 
> 
> 
> worked (without the „ps“) :)
> 
> 
> sorry about that ... somehow fat-fingered that in : /



smime.p7s
Description: S/MIME cryptographic signature


Re: Tomcat relicts from previous installation - ubuntu

2020-07-09 Thread Christoph Kukulies

> Am 09.07.2020 um 13:34 schrieb calder :
> 
> On Thu, Jul 9, 2020 at 4:48 AM Christoph Kukulies  wrote:
>> 
>> I’m resurrecting tomcat on a server (Ubuntu 18.04.4) on which I had been 
>> running tomcat7 some time ago.
>> At the moment, when the system has started up, I’m seeing a process:
>> 
>> root@kuku:~# ps ax | grep -i tomcat
>> 1092 ?Sl 0:08 /usr/lib/jvm/java-1.11.0-openjdk-i386/bin/java 
>> -Djava.util.logging.config.file=/usr/share/tomcat/conf/logging.properties 
>> -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager 
>> -Djava.awt.headless=true -Djava.security.egd=file:/dev/./urandom 
>> -Djdk.tls.ephemeralDHKeySize=2048 
>> -Djava.protocol.handler.pkgs=org.apache.catalina.webresources 
>> -Dorg.apache.catalina.security.SecurityListener.UMASK=0027 -Xms512M 
>> -Xmx1024M -server -XX:+UseParallelGC -Dignore.endorsed.dirs= -classpath 
>> /usr/share/tomcat/bin/bootstrap.jar:/usr/share/tomcat/bin/tomcat-juli.jar 
>> -Dcatalina.base=/usr/share/tomcat -Dcatalina.home=/usr/share/tomcat 
>> -Djava.io.tmpdir=/usr/share/tomcat/temp 
>> org.apache.catalina.startup.Bootstrap start
>> 2079 pts/0S+ 0:00 grep --color=auto -i tomcat
> 
>> root@kuku:~#
> 
> It's never a good idea to run as root.
> 
>> Since I have no tomcat service script in /etc/init.d I have no idea at the 
>> moment, who or which script is starting this java process.
> 
> might try:
> user@machine:~ /> ps systemctl status 
> so in your example
> user@machine:~ /> ps systemctl status 1092


systemctl status 1092

worked (without the „ps“) :)



smime.p7s
Description: S/MIME cryptographic signature


Re: Tomcat relicts from previous installation - ubuntu

2020-07-09 Thread Christoph Kukulies

> Am 09.07.2020 um 13:28 schrieb Martin Grigorov :
> 
> Hi Christoph,
> 
> On Thu, Jul 9, 2020 at 12:48 PM Christoph Kukulies 
> wrote:
> 
>> I’m resurrecting tomcat on a server (Ubuntu 18.04.4) on which I had been
>> running tomcat7 some time ago.
>> At the moment, when the system has started up, I’m seeing a process:
>> 
>> root@kuku:~# ps ax | grep -i tomcat
>> 1092 ?Sl 0:08 /usr/lib/jvm/java-1.11.0-openjdk-i386/bin/java
>> -Djava.util.logging.config.file=/usr/share/tomcat/conf/logging.properties
>> -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
>> -Djava.awt.headless=true -Djava.security.egd=file:/dev/./urandom
>> -Djdk.tls.ephemeralDHKeySize=2048
>> -Djava.protocol.handler.pkgs=org.apache.catalina.webresources
>> -Dorg.apache.catalina.security.SecurityListener.UMASK=0027 -Xms512M
>> -Xmx1024M -server -XX:+UseParallelGC -Dignore.endorsed.dirs= -classpath
>> /usr/share/tomcat/bin/bootstrap.jar:/usr/share/tomcat/bin/tomcat-juli.jar
>> -Dcatalina.base=/usr/share/tomcat -Dcatalina.home=/usr/share/tomcat
>> -Djava.io.tmpdir=/usr/share/tomcat/temp
>> org.apache.catalina.startup.Bootstrap start
>> 2079 pts/0S+ 0:00 grep --color=auto -i tomcat
>> root@kuku:~#
>> 
>> 
>> 
>> Since I have no tomcat service script in /etc/init.d I have no idea at the
>> moment, who or which script is starting this java process.
>> 
> 
> Most probably it is systemd.
> Try with: systemctl status tomcat
> 
> If this is the case you can stop it with: systemctl stop tomcat
> and disable it so it does not start on the next reboot with: systemctl
> disable tomcat
> 

Thanks, that helped.


> 
>> 
>> Any clues?


>> Christoph



smime.p7s
Description: S/MIME cryptographic signature


Tomcat relicts from previous installation - ubuntu

2020-07-09 Thread Christoph Kukulies
I’m resurrecting tomcat on a server (Ubuntu 18.04.4) on which I had been 
running tomcat7 some time ago.
At the moment, when the system has started up, I’m seeing a process:

root@kuku:~# ps ax | grep -i tomcat
 1092 ?Sl 0:08 /usr/lib/jvm/java-1.11.0-openjdk-i386/bin/java 
-Djava.util.logging.config.file=/usr/share/tomcat/conf/logging.properties 
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager 
-Djava.awt.headless=true -Djava.security.egd=file:/dev/./urandom 
-Djdk.tls.ephemeralDHKeySize=2048 
-Djava.protocol.handler.pkgs=org.apache.catalina.webresources 
-Dorg.apache.catalina.security.SecurityListener.UMASK=0027 -Xms512M -Xmx1024M 
-server -XX:+UseParallelGC -Dignore.endorsed.dirs= -classpath 
/usr/share/tomcat/bin/bootstrap.jar:/usr/share/tomcat/bin/tomcat-juli.jar 
-Dcatalina.base=/usr/share/tomcat -Dcatalina.home=/usr/share/tomcat 
-Djava.io.tmpdir=/usr/share/tomcat/temp org.apache.catalina.startup.Bootstrap 
start
 2079 pts/0S+ 0:00 grep --color=auto -i tomcat
root@kuku:~# 



Since I have no tomcat service script in /etc/init.d I have no idea at the 
moment, who or which script is starting this java process.

Any clues?

Christoph






smime.p7s
Description: S/MIME cryptographic signature


Re: 404 - servlet not found (7.0.52)

2017-08-01 Thread Christoph Kukulies
Argh. I solved it. I had a dangling servlet-mapping section in my 
web.xml. Weird, that tomcat doesn't report on this, or does it?


Am 01.08.2017 um 12:09 schrieb Christoph Kukulies:
I'm pulling my hairs at the moment for a servlet is not being found 
which worked before.


I have a class in webapps/servlets/WEB-INF/classes/My.class and 
sections in web.xml for this:



My
My


and a mapping:


My
/servlet/My



What I did last was to add another class Mytest in the same directory. 
But it gave an error 404 (found later that I forgot the mapping for 
that class), deleted the lines for the servlet section for that again .


I also deleted ~/work/Catalina and reverted everything back to the old 
state (where only My was defined).



Now work/Catalina/localhost/servlets is empty (!?).

The invoking page is:




   
   





I'm clueless at the moment.

--

Christoph





-
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



404 - servlet not found (7.0.52)

2017-08-01 Thread Christoph Kukulies
I'm pulling my hairs at the moment for a servlet is not being found 
which worked before.


I have a class in webapps/servlets/WEB-INF/classes/My.class and sections 
in web.xml for this:



My
My


and a mapping:


My
/servlet/My



What I did last was to add another class Mytest in the same directory. 
But it gave an error 404 (found later that I forgot the mapping for that 
class), deleted the lines for the servlet section for that again .


I also deleted ~/work/Catalina and reverted everything back to the old 
state (where only My was defined).



Now work/Catalina/localhost/servlets is empty (!?).

The invoking page is:




   
   





I'm clueless at the moment.

--

Christoph





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



minSpareThreads maxSpareThreads property

2010-12-10 Thread Christoph Kukulies
I installed the APR tomcat native library today.  It is giving the 
WARNINGs below.

Can anyone comment?
catalina.out:
10.12.2010 11:08:54 org.apache.catalina.core.AprLifecycleListener init
INFO: Loaded APR based Apache Tomcat Native library 1.1.20.
10.12.2010 11:08:54 org.apache.catalina.core.AprLifecycleListener init
INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters 
[false], random [true].

10.12.2010 11:08:54 org.apache.catalina.startup.SetAllPropertiesRule begin
WARNUNG: [SetAllPropertiesRule]{Server/Service/Connector} Setting 
property 'minSpareThreads' to '25' did not find a matching property.

10.12.2010 11:08:54 org.apache.catalina.startup.SetAllPropertiesRule begin
WARNUNG: [SetAllPropertiesRule]{Server/Service/Connector} Setting 
property 'maxSpareThreads' to '75' did not find a matching property.

10.12.2010 11:08:54 org.apache.catalina.startup.SetAllPropertiesRule begin
WARNUNG: [SetAllPropertiesRule]{Server/Service/Connector} Setting 
property 'minSpareThreads' to '25' did not find a matching property.

10.12.2010 11:08:54 org.apache.catalina.startup.SetAllPropertiesRule begin
WARNUNG: [SetAllPropertiesRule]{Server/Service/Connector} Setting 
property 'maxSpareThreads' to '75' did not find a matching property.

10.12.2010 11:08:54 org.apache.catalina.startup.SetAllPropertiesRule begin
WARNUNG: [SetAllPropertiesRule]{Server/Service/Connector} Setting 
property 'minSpareThreads' to '25' did not find a matching property.

10.12.2010 11:08:54 org.apache.catalina.startup.SetAllPropertiesRule begin
WARNUNG: [SetAllPropertiesRule]{Server/Service/Connector} Setting 
property 'maxSpareThreads' to '75' did not find a matching property.

10.12.2010 11:08:54 org.apache.coyote.http11.Http11AprProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
10.12.2010 11:08:54 org.apache.coyote.http11.Http11AprProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8081
10.12.2010 11:08:54 org.apache.coyote.http11.Http11AprProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8082
10.12.2010 11:08:54 org.apache.coyote.ajp.AjpAprProtocol init
INFO: Initializing Coyote AJP/1.3 on ajp-8009
10.12.2010 11:08:54 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1048 ms
10.12.2010 11:08:54 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
10.12.2010 11:08:54 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.28
10.12.2010 11:08:54 org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor manager.xml
10.12.2010 11:08:55 org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor host-manager.xml

--
Christoph P.U. Kukulies


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



Re: minSpareThreads maxSpareThreads property

2010-12-10 Thread Christoph Kukulies

Am 10.12.2010 14:02, schrieb André Warnier:

Christoph,

compare this page :
http://tomcat.apache.org/tomcat-6.0-doc/config/http.html#Standard_Implementation 



to this page :
http://tomcat.apache.org/tomcat-5.5-doc/config/http.html

In other words, there is a strong suspicion that when you installed 
6.0, you just copied a previous server.xml from a previous Tomcat 
version.


I just copied in my three http-proxies, indeed. But the native library 
was the first one that notified me of

the configuration error.



You should not do that.  You should start from the 6.0 server.xml, and 
make the modifications in it that are necessary for your applications, 
if any.


You scored an own-goal, and you are lucky that the result is only a 
warning.






Mark


catalina.out:
10.12.2010 11:08:54 org.apache.catalina.core.AprLifecycleListener init
INFO: Loaded APR based Apache Tomcat Native library 1.1.20.
10.12.2010 11:08:54 org.apache.catalina.core.AprLifecycleListener init
INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters
[false], random [true].
10.12.2010 11:08:54 org.apache.catalina.startup.SetAllPropertiesRule 
begin

WARNUNG: [SetAllPropertiesRule]{Server/Service/Connector} Setting
property 'minSpareThreads' to '25' did not find a matching property.
10.12.2010 11:08:54 org.apache.catalina.startup.SetAllPropertiesRule 
begin

WARNUNG: [SetAllPropertiesRule]{Server/Service/Connector} Setting
property 'maxSpareThreads' to '75' did not find a matching property.
10.12.2010 11:08:54 org.apache.catalina.startup.SetAllPropertiesRule 
begin




--
Christoph P.U. Kukulies


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



Re: what ist $CATALINA_HOME/server ? (debian)

2010-12-08 Thread Christoph Kukulies

Am 07.12.2010 22:19, schrieb g f:

Did you aptitude install tomcat6?
If so why not modify the init.d script that came with that.
If not perhaps you want to try to use the debs.
apt-get install tomcat6
G

AFAIK there isn't such a thing like a tomcat6 package under the debian 
distribution.

And I would have to tackle the debianisms in that script. (jsvc e.g.)

--
Christoph P.U. Kukulies


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



JMX.mbean.unregistered - Stopping Coyote

2010-12-07 Thread Christoph Kukulies
I'm trying to figure out why my apache2/tomcat5.5 combo isn't working 
any longer since some update

I did on my debian 5.0.6 machine.

I have three connetors on port 8080, 8081 and 8082 between apache2 and 
tomcat5.5 to serve some
VirtualHosts. None of the Vhosts is working (they are all giving an 
empty page in the browser, no code
and the apache log shows an error 400 (which should be redirected and 
rewritten withing the Virtual Hosts sections).


I enabled log4j logging and I'm seeing in the log:

DEBUG main org.apache.catalina.connector.MapperListener - Handle 
Catalina:type=GlobalRequestProcessor,name=http-8080 type : 
JMX.mbean.unregistered
DEBUG main org.apache.catalina.connector.MapperListener - Handle 
Catalina:type=GlobalRequestProcessor,name=http-8080 type : 
JMX.mbean.unregistered
DEBUG main org.apache.catalina.connector.MapperListener - Handle 
Catalina:type=Mapper,port=8081 type : JMX.mbean.unregistered
DEBUG main org.apache.catalina.connector.MapperListener - Handle 
Catalina:type=Mapper,port=8081 type : JMX.mbean.unregistered
DEBUG main org.apache.catalina.connector.MapperListener - Handle 
Catalina:type=ProtocolHandler,port=8081 type : JMX.mbean.unregistered
DEBUG main org.apache.catalina.connector.MapperListener - Handle 
Catalina:type=ProtocolHandler,port=8081 type : JMX.mbean.unregistered
INFO main org.apache.coyote.http11.Http11BaseProtocol - Stopping Coyote 
HTTP/1.1 on http-8081
DEBUG http-8081-Processor1 org.apache.tomcat.util.threads.ThreadPool - 
Terminate
DEBUG http-8081-Processor2 org.apache.tomcat.util.threads.ThreadPool - 
Terminate
DEBUG http-8081-Processor3 org.apache.tomcat.util.threads.ThreadPool - 
Terminate



I'm not sure whether this is the cause of the malfunction but it was the 
only thing I could pinpoint.


--
Christoph P.U. Kukulies


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



Re: JMX.mbean.unregistered - Stopping Coyote

2010-12-07 Thread Christoph Kukulies

Am 07.12.2010 12:01, schrieb André Warnier:

Christoph Kukulies wrote:
I'm trying to figure out why my apache2/tomcat5.5 combo isn't working 
any longer since some update

I did on my debian 5.0.6 machine.


What did you update ?


It's a couple of months back and I did some apt-get update/upgrade  over 
all and after that my tomcat5.5 was screwed.
I also wonder why this jmx stuff was there (I removed the jmx related 
jars from the bin and lib directory

and now the listeners keep up running.

The VirtualHosts are defined in the httpd.conf on the apache side and 
I'm using direct connectors there (is that mod_proxy_http?).


VirtualHost *
ServerName www.mysite3.de
DocumentRoot /usr/share/tomcat5.5-webapps/ROOT/
ScriptAlias /Perl/   /home/www/mysite3.de/Perl/
Directory /
   Options FollowSymLinks
   AllowOverride None
   Allow from all
/Directory
Directory /usr/share/tomcat5.5-webapps/ROOT/
  Options FollowSymLinks
  AllowOverride None
  Allow from all
/Directory


# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
ServerSignature Off
SetEnvIf Request_URI \/opencms\/* redirect

# Redirect all request to non-existing file in the export directory
# to OpenCms which will generate the files on the fly
  RewriteEngine on
# Redirection for static export
  RewriteCond %{REQUEST_URI}  ^/export/(.*)  [NC]
  RewriteCond 
%{DOCUMENT_ROOT}%{REQUEST_FILENAME}   !-f
  RewriteCond 
%{DOCUMENT_ROOT}%{REQUEST_FILENAME}/index_export.html !-f
  RewriteRule .* 
http://127.0.0.1:8082/opencms/handle404?exporturi=%{REQUEST_URI}%{QUERY_STRING} 
[P]


# Redirect all 404 errors to OpenCms
 ErrorDocument 404   /system/shared/handle404.html
# Basic proxy rules
 ProxyPreserveHost On
 RedirectPermanent /opencms/   http://www.mysite3.de/
 ProxyPass /opencms/   !
 ProxyPass /resources/ !
 ProxyPass /export/!
 ProxyPass /skins/ !
 ProxyPass  /syscp/ !
 ProxyPass /   http://127.0.0.1:8082/opencms/
 ProxyPassReverse  /   http://127.0.0.1:8082/opencms/
 ProxyPass /webdav/ http://127.0.0.1:8082/webdav/
 ProxyPassReverse /webdav http://127.0.0.1:8082/webdav/
/VirtualHost

server.xml:

!-- Define a non-SSL HTTP/1.1 Connector on port 8180 --
Connector port=8080 maxHttpHeaderSize=8192
proxyName=cms.mysite1.de
   maxThreads=150 minSpareThreads=25 maxSpareThreads=75
   enableLookups=false redirectPort=8443 acceptCount=100
   connectionTimeout=2 disableUploadTimeout=true /
Connector port=8081 maxHttpHeaderSize=8192
proxyName=www.mysite2.de
   maxThreads=150 minSpareThreads=25 maxSpareThreads=75
   enableLookups=false redirectPort=8443 acceptCount=100
   connectionTimeout=2 disableUploadTimeout=true /
Connector port=8082 maxHttpHeaderSize=8192
 proxyName=www.mysite3.de
   maxThreads=150 minSpareThreads=25 maxSpareThreads=75
   enableLookups=false redirectPort=8443 acceptCount=100
   /
What kind of connector is supposed to be used between Apache httpd and 
Tomcat ? (mod_proxy_http, mod_proxy_ajp, mod_jk ?)
Where are the virtual Hosts defined ? in the httpd or the tomcat 
configuration, or both ?


See above.
I'm using the ROOT directory for the OpenCMS content management system.
I'm wondering why http://www.mysite3.de:808[012]/admin is available at all.
maybe the admin package gets into the way?








I have three connetors on port 8080, 8081 and 8082 between apache2 
and tomcat5.5 to serve some
VirtualHosts. None of the Vhosts is working (they are all giving an 
empty page in the browser, no code
and the apache log shows an error 400 (which should be redirected and 
rewritten withing the Virtual Hosts sections).


I enabled log4j logging and I'm seeing in the log:

DEBUG main org.apache.catalina.connector.MapperListener - Handle 
Catalina:type=GlobalRequestProcessor,name=http-8080 type : 
JMX.mbean.unregistered
DEBUG main org.apache.catalina.connector.MapperListener - Handle 
Catalina:type=GlobalRequestProcessor,name=http-8080 type : 
JMX.mbean.unregistered
DEBUG main org.apache.catalina.connector.MapperListener - Handle 
Catalina:type=Mapper,port=8081 type : JMX.mbean.unregistered
DEBUG main org.apache.catalina.connector.MapperListener - Handle 
Catalina:type=Mapper,port=8081 type : JMX.mbean.unregistered
DEBUG main org.apache.catalina.connector.MapperListener - Handle 
Catalina:type=ProtocolHandler,port=8081 type : JMX.mbean.unregistered
DEBUG main org.apache.catalina.connector.MapperListener - Handle 
Catalina:type=ProtocolHandler,port=8081 type : JMX.mbean.unregistered
INFO main org.apache.coyote.http11.Http11BaseProtocol - Stopping 
Coyote HTTP/1.1 on http-8081
DEBUG http-8081-Processor1

what ist $CATALINA_HOME/server ? (debian)

2010-12-07 Thread Christoph Kukulies

In seeking what screwed my installation I'm stumbling across a directory
/usr/share/tomcat5.5/server

/usr/share/tomcat5.5# find server
server
server/classes
server/webapps
server/webapps/host-manager
server/webapps/host-manager/manager.xml
server/webapps/host-manager/host-manager.xml
server/webapps/host-manager/WEB-INF
server/webapps/host-manager/WEB-INF/lib
server/webapps/host-manager/WEB-INF/lib/catalina-host-manager.jar
server/webapps/host-manager/WEB-INF/web.xml
server/webapps/host-manager/images
server/webapps/host-manager/images/void.gif
server/webapps/host-manager/images/docs.gif
server/webapps/host-manager/images/code.gif
server/webapps/host-manager/images/fix.gif
server/webapps/host-manager/images/add.gif
server/webapps/host-manager/images/design.gif
server/webapps/host-manager/images/asf-logo.gif
server/webapps/host-manager/images/tomcat.gif
server/webapps/host-manager/images/update.gif
server/webapps/admin
server/webapps/admin/server
server/webapps/admin/admin.css
server/webapps/admin/tree-control-test.css
server/webapps/admin/service
server/webapps/admin/WEB-INF
server/webapps/admin/WEB-INF/struts-config.xml
server/webapps/admin/WEB-INF/struts-tiles.tld
server/webapps/admin/WEB-INF/struts-html.tld
server/webapps/admin/WEB-INF/lib
server/webapps/admin/WEB-INF/lib/commons-digester.jar
server/webapps/admin/WEB-INF/lib/commons-collections3.jar
server/webapps/admin/WEB-INF/lib/commons-beanutils.jar
server/webapps/admin/WEB-INF/lib/struts.jar
server/webapps/admin/WEB-INF/lib/catalina-admin.jar
server/webapps/admin/WEB-INF/controls.tld
server/webapps/admin/WEB-INF/struts-logic.tld
server/webapps/admin/WEB-INF/struts-bean.tld
server/webapps/admin/WEB-INF/struts-nested.tld
server/webapps/admin/WEB-INF/web.xml
server/webapps/admin/realm
server/webapps/admin/context
server/webapps/admin/users
server/webapps/admin/images
server/webapps/admin/images/Thumbs.db
server/webapps/admin/images/folder_16_pad.gif
server/webapps/admin/images/EnvironmentEntries.gif
server/webapps/admin/images/Mailsession.gif
server/webapps/admin/images/handledownlast.gif
server/webapps/admin/images/Connector.gif
server/webapps/admin/images/linelastnode.gif
server/webapps/admin/images/Realm.gif
server/webapps/admin/images/LoginBackgroundTile.gif
server/webapps/admin/images/Login.jpg
server/webapps/admin/images/handlerightmiddle.gif
server/webapps/admin/images/Groups.gif
server/webapps/admin/images/handledownmiddle.gif
server/webapps/admin/images/ResourceLink.gif
server/webapps/admin/images/Valve.gif
server/webapps/admin/images/Logger.gif
server/webapps/admin/images/PaperTexture.gif
server/webapps/admin/images/Service.gif
server/webapps/admin/images/Datasource.gif
server/webapps/admin/images/Context.gif
server/webapps/admin/images/handlerightlast.gif
server/webapps/admin/images/linevertical.gif
server/webapps/admin/images/linemiddlenode.gif
server/webapps/admin/images/Roles.gif
server/webapps/admin/images/Users.gif
server/webapps/admin/images/DefaultContext.gif
server/webapps/admin/images/BlueTile.gif
server/webapps/admin/images/Host.gif
server/webapps/admin/images/Server.gif
server/webapps/admin/images/TomcatBanner.jpg
server/webapps/admin/admin.xml
server/webapps/admin/valve
server/webapps/admin/host
server/webapps/admin/connector
server/webapps/admin/resources
server/webapps/manager
server/webapps/manager/manager.xml
server/webapps/manager/status.xsd
server/webapps/manager/WEB-INF
server/webapps/manager/WEB-INF/lib
server/webapps/manager/WEB-INF/lib/commons-fileupload.jar
server/webapps/manager/WEB-INF/lib/catalina-manager.jar
server/webapps/manager/WEB-INF/lib/commons-io.jar
server/webapps/manager/WEB-INF/web.xml
server/webapps/manager/images
server/webapps/manager/images/void.gif
server/webapps/manager/images/docs.gif
server/webapps/manager/images/code.gif
server/webapps/manager/images/fix.gif
server/webapps/manager/images/add.gif
server/webapps/manager/images/design.gif
server/webapps/manager/images/asf-logo.gif
server/webapps/manager/images/tomcat.gif
server/webapps/manager/images/update.gif
server/webapps/manager/xform.xsl
server/webapps/manager/manager-howto.html
server/webapps/manager/html-manager-howto.html
server/lib
server/lib/catalina-optional.jar
server/lib/catalina.jar
server/lib/tomcat-util.jar
server/lib/servlets-default.jar
server/lib/servlets-webdav.jar
server/lib/servlets-invoker.jar
server/lib/tomcat-apr.jar
server/lib/servlets-cgi.renametojar
server/lib/catalina-ant-jmx.jar
server/lib/servlets-ssi.renametojar
server/lib/tomcat-http.jar
server/lib/catalina-ant.jar
server/lib/catalina-storeconfig.jar
server/lib/catalina-cluster.jar
server/lib/commons-modeler.jar
server/lib/tomcat-ajp.jar
server/lib/tomcat-jkstatus-ant.jar
server/lib/tomcat-coyote.jar


What is this? Some Debian specific stuff? Or the way Debian thinks it 
has to be? How can I get rid of it?


--
Christoph P.U. Kukulies


-
To unsubscribe, e-mail: 

Re: what ist $CATALINA_HOME/server ? (debian)

2010-12-07 Thread Christoph Kukulies

Am 07.12.2010 16:15, schrieb Konstantin Kolinko:

2010/12/7 Caldarale, Charles Rchuck.caldar...@unisys.com:

What is this? Some Debian specific stuff?

No, it's part of every Tomcat 5.5 distribution.  Debian may have modified it.


+1.

In TC 5.5 there were separate server, common and shared
directories. In TC6+ all those are replaced by a single lib one.
(And those administrative webapps were moved to webapps folder where
all the other web applications live).

More information is here:
[1] http://tomcat.apache.org/tomcat-5.5-doc/class-loader-howto.html
[2] http://tomcat.apache.org/migration.html

You can get youself a fresh copy of TC 5.5 from [3] and compare.

[3] http://tomcat.apache.org/download-55.cgi

Thanks.
Can be found any instructions to build your own 
/etc/init.d/tomcat_startup script.

catalina.sh seems to have provisions for it but I don't see a hook where to
put in the user (e.g. tomcat55 or tomcat6) catalina runs under.

--
Christoph P.U. Kukulies


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



Re: running tomcat6 under a different user than root (debian)

2010-10-30 Thread Christoph Kukulies

Am 29.10.2010 15:29, schrieb Mark Thomas:

On 29/10/2010 14:19, Darryl Lewis wrote:

Are you serious?

Completely. If you have a scheme that encrypts the database username and
password in server.xml and provides genuine additional security over and
above limiting access to server.xml to the user running Tomcat (and
root) I'd love to hear it. I'd also be amazed.
Just curious: What username/password are you talking about that would be 
stored in

server.xml? There is sth. in tomcat-users.xml. Did you mean that?

--
Christoph


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



tomcat6.0.29 on debian lenny

2010-10-29 Thread Christoph Kukulies
I ran a tomcat 5.5 on an older debian formerly and after an upgrade to 
5.0.6 (debian lenny), my tomcat installation is messed up.
I'm running the tomcat behind an apache2 with some connectors. The mess 
must have to do something with the
(braindead imho) split up between /usr/share/tomcat5.5 and 
/usr/share/tomcat5.5-webapps.


Anyway, to come to the point, I downloaded the tomcat 6.0.29 tar ball 
and installed it under /opt/tomcat,
wrote a little startup script that simply invoked bin/startup.sh resp. 
shutdown.


Didn't set any special environment variables like JAVA_HOME or CLASSPATH 
and I'm getting the following

in catalina.out (tomcat then dies after start):

WARNING: error instantiating '1catalina.org.apache.juli.FileHandler,' 
referenced by handlers, class not found

java.lang.ClassNotFoundException: 1catalina/org/apache/juli/FileHandler,
   at java.lang.VMClass.forName(VMClass.java)
   at java.lang.Class.forName(Class.java:235)
   at java.util.logging.LogManager.locateClass(LogManager.java:917)
   at java.util.logging.LogManager.createInstance(LogManager.java:846)
   at java.util.logging.LogManager.readConfiguration(LogManager.java:569)
   at java.util.logging.LogManager.readConfiguration(LogManager.java:529)
   at java.util.logging.LogManager.initLogManager(LogManager.java:203)
   at java.util.logging.LogManager.getLogManager(LogManager.java:168)
   at java.util.logging.Logger.getLogger(Logger.java:276)
   at java.util.logging.Logger.getLogger(Logger.java:224)
   at java.util.logging.Logger$1.run(Logger.java:91)
   at java.security.AccessController.doPrivileged(AccessController.java:96)
   at java.util.logging.Logger.clinit(Logger.java:86)
   at 
gnu.java.security.jce.sig.SignatureAdapter.clinit(SignatureAdapter.java:78)

   at java.lang.VMClass.forName(VMClass.java)
   at java.lang.Class.forName(Class.java:189)
   at gnu.java.security.provider.Gnu$1.run(Gnu.java:65)
   at java.security.AccessController.doPrivileged(AccessController.java:96)
   at gnu.java.security.provider.Gnu.init(Gnu.java:55)
   at java.util.jar.JarFile.clinit(JarFile.java:117)
   at 
gnu.java.net.protocol.jar.Connection$JarFileCache.get(Connection.java:98)

   at gnu.java.net.protocol.jar.Connection.connect(Connection.java:140)
   at gnu.java.net.protocol.jar.Connection.getJarFile(Connection.java:169)
   at gnu.java.net.loader.JarURLLoader.initialize(JarURLLoader.java:85)
   at gnu.java.net.loader.JarURLLoader.init(JarURLLoader.java:76)
   at java.net.URLClassLoader.addURLImpl(URLClassLoader.java:387)
   at java.net.URLClassLoader.addURLs(URLClassLoader.java:418)
   at java.net.URLClassLoader.init(URLClassLoader.java:215)
   at java.lang.ClassLoader$1.init(ClassLoader.java:1099)
   at java.lang.ClassLoader.createSystemClassLoader(ClassLoader.java:1099)
   at 
java.lang.ClassLoader.defaultGetSystemClassLoader(ClassLoader.java:1084)

   at java.lang.VMClassLoader.getSystemClassLoader(VMClassLoader.java:404)
   at java.lang.ClassLoader$StaticData.clinit(ClassLoader.java:155)
   at java.lang.ClassLoader.getSystemClassLoader(ClassLoader.java:799)
Internal error: caught an unexpected exception.
Please check your CLASSPATH and your installation.
java/lang/ExceptionInInitializerError
   at java.lang.ClassLoader.getSystemClassLoader (ClassLoader.java:799)
caused by java/lang/NullPointerException:
   at java.util.logging.Logger.addHandler (Logger.java:1017)
   at java.util.logging.LogManager.readConfiguration (LogManager.java:570)
   at java.util.logging.LogManager.readConfiguration (LogManager.java:529)
   at java.util.logging.LogManager.initLogManager (LogManager.java:203)
   at java.util.logging.LogManager.getLogManager (LogManager.java:168)
   at java.util.logging.Logger.getLogger (Logger.java:276)
   at java.util.logging.Logger.getLogger (Logger.java:224)
   at java.util.logging.Logger$1.run (Logger.java:91)
   at java.security.AccessController.doPrivileged 
(AccessController.java:96)

   at java.util.logging.Logger.clinit (Logger.java:86)
   at gnu.java.security.jce.sig.SignatureAdapter.clinit 
(SignatureAdapter.java:78)

   at java.lang.VMClass.forName (VMClass.java:native)
   at java.lang.Class.forName (Class.java:189)
   at gnu.java.security.provider.Gnu$1.run (Gnu.java:65)
   at java.security.AccessController.doPrivileged 
(AccessController.java:96)

   at gnu.java.security.provider.Gnu.init (Gnu.java:55)
   at java.util.jar.JarFile.clinit (JarFile.java:117)
   at gnu.java.net.protocol.jar.Connection$JarFileCache.get 
(Connection.java:98)

   at gnu.java.net.protocol.jar.Connection.connect (Connection.java:140)
   at gnu.java.net.protocol.jar.Connection.getJarFile (Connection.java:169)
   at gnu.java.net.loader.JarURLLoader.initialize (JarURLLoader.java:85)
   at gnu.java.net.loader.JarURLLoader.init (JarURLLoader.java:76)
   at java.net.URLClassLoader.addURLImpl (URLClassLoader.java:387)
   at java.net.URLClassLoader.addURLs (URLClassLoader.java:418)
   at java.net.URLClassLoader.init (URLClassLoader.java:215)
   at 

Re: tomcat6.0.29 on debian lenny

2010-10-29 Thread Christoph Kukulies

Am 29.10.2010 11:12, schrieb Mark Thomas:

On 29/10/2010 09:51, Christoph Kukulies wrote:

Anyway, to come to the point, I downloaded the tomcat 6.0.29 tar ball
and installed it under /opt/tomcat,
wrote a little startup script that simply invoked bin/startup.sh resp.
shutdown.

Didn't set any special environment variables like JAVA_HOME or CLASSPATH
and I'm getting the following
in catalina.out (tomcat then dies after start):

WARNING: error instantiating '1catalina.org.apache.juli.FileHandler,'
referenced by handlers, class not found

snip/


Could it be, that sun-java6-jre and jdk are not being recognized or found?
It seems there is still kaffee java active, although I installed (sun
java6).

Looks like the LogManager is not being set correctly. You need to be
using -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
which the Tomcat scripts should be doing by default.

Mark
Ooops. Sorry, I noticed that I had already copied over my 5.5 system.xml 
into the conf directory.

Using the original server.xml now works.

--
Christoph P.U. Kukulies


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



running tomcat6 under a different user than root (debian)

2010-10-29 Thread Christoph Kukulies

How can I run tomcat under a different user than root (debian e.g.)?

--
Christoph P.U. Kukulies


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



Re: How to make a webapp restart

2010-06-29 Thread Christoph Kukulies

Am 29.06.2010 00:22, schrieb Dola Woolfe:



Thanks, Chuck.

And is there a setting to have Tomcat automatically restarted when jar changes 
under tomcat/lib?

   
I'm not sure if this is of any use for you, Dola, but when a .war file 
is deployed to the webapps directory, tomcat loads the webapp.
I don't know, what happens, when this .war file is updated our touched. 
And there is JIT compilation if that's of any use.


--
Christoph


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



Re: tomcat 6 (windows 7- 64 bits) doesn't start

2010-05-07 Thread Christoph Kukulies

Am 06.05.2010 14:51, schrieb Caldarale, Charles R:

From: Christoph Kukulies [mailto:k...@kukulies.org]
Subject: Re: tomcat 6 (windows 7- 64 bits) doesn't start

I believe it's because I only have the jre, not the jdk and I'm
downloading at the moment.
 

No, Tomcat runs fine on a JRE.  The problem is that you have a 32-bit JVM 
installed in a 64-bit OS.  (The 32-bit Windows JVM has only the client DLL, the 
64-bit only the server DLL.)  The Tomcat installer program expects the JVM mode 
to match that of the OS.  Use a 64-bit JVM.

  - Chuck
   
Thanks. That's correct what you are saying. But this also means that 
whenever you're  asked to download the latest Java
from java.com (Sun/Oracle) with whatever Java app, e.g. OpenOffice or 
something, that infamous installer that
always installs the Yahoo toolbar in your browser when you don't untick 
that checkbox, you always get the 32bit version JVM

on windows.

I looked for a 64bit version on their download page to no avail.

--
Christoph Kukulies


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



Re: tomcat 6 (windows 7- 64 bits) doesn't start

2010-05-07 Thread Christoph Kukulies

Am 07.05.2010 09:42, schrieb Tommy Pham:

-Original Message-
From: Christoph Kukulies [mailto:k...@kukulies.org]
Sent: Friday, May 07, 2010 12:21 AM
To: Tomcat Users List
Cc: Caldarale, Charles R
Subject: Re: tomcat 6 (windows 7- 64 bits) doesn't start

Am 06.05.2010 14:51, schrieb Caldarale, Charles R:
 

From: Christoph Kukulies [mailto:k...@kukulies.org]
Subject: Re: tomcat 6 (windows 7- 64 bits) doesn't start

I believe it's because I only have the jre, not the jdk and I'm
downloading at the moment.

 

No, Tomcat runs fine on a JRE.  The problem is that you have a 32-bit
   

JVM
   

installed in a 64-bit OS.  (The 32-bit Windows JVM has only the client
 

DLL, the
   

64-bit only the server DLL.)  The Tomcat installer program expects the JVM
mode to match that of the OS.  Use a 64-bit JVM.
 

   - Chuck

   

Thanks. That's correct what you are saying. But this also means that
whenever you're  asked to download the latest Java from java.com
(Sun/Oracle) with whatever Java app, e.g. OpenOffice or something, that
infamous installer that always installs the Yahoo toolbar in your browser
when you don't untick that checkbox, you always get the 32bit version JVM
on windows.

I looked for a 64bit version on their download page to no avail.

--
Christoph Kukulies


 

Christoph,

Try java.sun.com.  Specifically:
http://java.sun.com/javase/downloads/widget/jdk6.jsp

Regards,
Tommy

   
Thanks, Tommy. Great link! And I even remembered my Sun account/password 
which is still in their databases since

13 years or so. :-)

--
Christoph




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



tomcat 6.0.26 and Windows 7 - should I go for 64bit?

2010-05-06 Thread Christoph Kukulies
I moved to Windows 7 and I'm wondering whether it would be appropriate 
to install the 64bit server or say with the

32bit version.

What implications would it have? Memory footprint? Would I have to run 
two JVM? a 64 bits and a 32bit (when running other apps

like OpenOffice?)

--
Christoph


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



Re: tomcat 6.0.26 and Windows 7 - should I go for 64bit?

2010-05-06 Thread Christoph Kukulies

Am 06.05.2010 10:59, schrieb Pid:

On 06/05/2010 09:55, Christoph Kukulies wrote:
   

I moved to Windows 7 and I'm wondering whether it would be appropriate
to install the 64bit server or say with the
32bit version.
 

64bit JVM, not 'server'.  Tomcat is agnostic with respect to bit counts.
   


Ah yes, forgot that it's a pure Java application, isn't it?
Thanks so far.

My starting problems in another thread now.

--
Christoph

   

What implications would it have? Memory footprint? Would I have to run
two JVM? a 64 bits and a 32bit (when running other apps
like OpenOffice?)
 

You can install two different JVMs, if needed, on Windows.

The 64bit JVM will give you better performance  the option of larger
memory allocations.


p



   

--
Christoph


-
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



tomcat 6 (windows 7- 64 bits) doesn't start

2010-05-06 Thread Christoph Kukulies

Tomcat 6.0.26 doesn't start. I used the 64bit installer under Windows 7.

jakarta_service_log:

[2010-05-06 11:41:44] [info] Commons Daemon procrun (1.0.2.0) started
[2010-05-06 11:41:44] [info] Running Service...
[2010-05-06 11:41:44] [info] Starting service...
[2010-05-06 11:41:44] [206  javajni.c] [error] %1 ist keine zulässige 
Win32-Anwendung.
[2010-05-06 11:41:44] [985  prunsrv.c] [error] Failed creating java 
C:\Program Files (x86)\Java\jre6\bin\client\jvm.dll

[2010-05-06 11:41:44] [1280 prunsrv.c] [error] ServiceStart returned 1
[2010-05-06 11:41:44] [info] Run service finished.
[2010-05-06 11:41:44] [info] Commons Daemon procrun finished.


I'm clueless at the moment.

--
Christoph






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



Re: tomcat 6 (windows 7- 64 bits) doesn't start

2010-05-06 Thread Christoph Kukulies

Am 06.05.2010 12:07, schrieb Pid:

On 06/05/2010 10:44, Christoph Kukulies wrote:
   

Tomcat 6.0.26 doesn't start. I used the 64bit installer under Windows 7.

jakarta_service_log:

[2010-05-06 11:41:44] [info] Commons Daemon procrun (1.0.2.0) started
[2010-05-06 11:41:44] [info] Running Service...
[2010-05-06 11:41:44] [info] Starting service...
[2010-05-06 11:41:44] [206  javajni.c] [error] %1 ist keine zulässige
Win32-Anwendung.
[2010-05-06 11:41:44] [985  prunsrv.c] [error] Failed creating java
C:\Program Files (x86)\Java\jre6\bin\client\jvm.dll
[2010-05-06 11:41:44] [1280 prunsrv.c] [error] ServiceStart returned 1
[2010-05-06 11:41:44] [info] Run service finished.
[2010-05-06 11:41:44] [info] Commons Daemon procrun finished.
 

It's looking for a client JVM, which you probably don't want.

Find the path to bin\server\jvm.dll.

Start tomcat6w.exe and go to the Java tab, put the path to the correct
jvm.dll in the appropriate location.


p

   

--
Christoph
 
I reinstalled jre6 (why does it install into c:\program 
files\java\jre6\.. and not \Program Files or \Programme)

I always thought \program files (x86) was for 32bit apps or am I wrong?

Anyway there is no \server\jvm.dll all over the system being installed 
AFAICS.


--
Christoph


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



Re: tomcat 6 (windows 7- 64 bits) doesn't start

2010-05-06 Thread Christoph Kukulies

Am 06.05.2010 12:07, schrieb Pid:

On 06/05/2010 10:44, Christoph Kukulies wrote:
   

Tomcat 6.0.26 doesn't start. I used the 64bit installer under Windows 7.

jakarta_service_log:

[2010-05-06 11:41:44] [info] Commons Daemon procrun (1.0.2.0) started
[2010-05-06 11:41:44] [info] Running Service...
[2010-05-06 11:41:44] [info] Starting service...
[2010-05-06 11:41:44] [206  javajni.c] [error] %1 ist keine zulässige
Win32-Anwendung.
[2010-05-06 11:41:44] [985  prunsrv.c] [error] Failed creating java
C:\Program Files (x86)\Java\jre6\bin\client\jvm.dll
[2010-05-06 11:41:44] [1280 prunsrv.c] [error] ServiceStart returned 1
[2010-05-06 11:41:44] [info] Run service finished.
[2010-05-06 11:41:44] [info] Commons Daemon procrun finished.
 

It's looking for a client JVM, which you probably don't want.

Find the path to bin\server\jvm.dll.

Start tomcat6w.exe and go to the Java tab, put the path to the correct
jvm.dll in the appropriate location.


p

   
I believe it's because I only have the jre, not the jdk and I'm 
downloading at the moment.


--
Christoph


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



Re: tomcat 6 (windows 7- 64 bits) doesn't start

2010-05-06 Thread Christoph Kukulies

Am 06.05.2010 12:26, schrieb Christoph Kukulies:

Am 06.05.2010 12:07, schrieb Pid:

On 06/05/2010 10:44, Christoph Kukulies wrote:
Tomcat 6.0.26 doesn't start. I used the 64bit installer under 
Windows 7.


jakarta_service_log:

[2010-05-06 11:41:44] [info] Commons Daemon procrun (1.0.2.0) started
[2010-05-06 11:41:44] [info] Running Service...
[2010-05-06 11:41:44] [info] Starting service...
[2010-05-06 11:41:44] [206  javajni.c] [error] %1 ist keine zulässige
Win32-Anwendung.
[2010-05-06 11:41:44] [985  prunsrv.c] [error] Failed creating java
C:\Program Files (x86)\Java\jre6\bin\client\jvm.dll
[2010-05-06 11:41:44] [1280 prunsrv.c] [error] ServiceStart returned 1
[2010-05-06 11:41:44] [info] Run service finished.
[2010-05-06 11:41:44] [info] Commons Daemon procrun finished.

It's looking for a client JVM, which you probably don't want.

Find the path to bin\server\jvm.dll.

Start tomcat6w.exe and go to the Java tab, put the path to the correct
jvm.dll in the appropriate location.


p

I believe it's because I only have the jre, not the jdk and I'm 
downloading at the moment.


--
Christoph


It's running now :)
[2010-05-06 12:19:25] [info] Commons Daemon procrun finished.
[2010-05-06 12:32:43] [info] Commons Daemon procrun (1.0.2.0) started
[2010-05-06 12:32:43] [info] Running Service...
[2010-05-06 12:32:43] [info] Starting service...
[2010-05-06 12:32:44] [info] Service started in 1154 ms.

C:\Programme\Apache_Group\Tomcat 6.0.26\logs

--
Christoph


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



development platform for jaxws-based webapps

2010-04-26 Thread Christoph Kukulies
I was experimenting with MyEclipse for a couple of days now to find an 
efficient way to generate wsdl/jaxws based wep apps.
MyEclipse seem promising to me when I was starting with the article 
http://www.myeclipseide.com/documentation/quickstarts/webservices_jaxws/index.html 
but later on it turned out that the building the delegate classes 
/updating of webservices is not yet matured enough to allow for 
efficient development - I'm waiting for a response of the developer team 
though.


Anyone here on the tomcat list using Eclipse (the open one, eclipse.org) 
or any other tool for developing wsdl based webservices?


--
Christoph Kukulies



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



Re: myeclipse and tomcat

2010-04-24 Thread Christoph Kukulies

Ken Bowen schrieb:
Then I think you either need several independent Tomcat instances or 
multiple virtual hosts.
I've occasionally had several independent instances running (but one 
was started by Eclipse and one from the command line).

I don't know whether Eclipse would support either.
Do you need to do simultaneous development, or just run several other 
ROOT webapps while developing on one?


Actually only several other ROOT apps. I've seen so far  that I can run 
the embedded tomcat from within MyEclipse
in parallel to the external Tomcat. I only have to change the server 
shutdown port in server.xml to something different, e.g. 8006 instead of 
8005.

And adapt the connectors accordingly to avoid conflicts.

--
Christoph



On Apr 23, 2010, at 3:59 PM, Christoph Kukulies wrote:


Ken Bowen schrieb:


You can run multiple web apps alongside the ROOT app.  I just drop 
them in the webspps folder.




Yes, I know. I do presently. But I want to run several ROOT apps.

--
Christoph



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



Re: myeclipse and tomcat

2010-04-23 Thread Christoph Kukulies

Ken Bowen schrieb:

I'm not sure I understand your question.
But first,  are you using plain Eclipse, or MyEclipse?  (I use the 
latter)


I'm using MyEclipse as well.



Do you mean:  Using MyEclipse configured so that it is using an 
external Tomcat server, NOT the included myEclipse Tomcat server?



Yes, that's what I mean.  I had a Tomcat 6.0 running on my notebook and 
when I first time installed MyEclipse, the built in Tomcat
could not run (port conflict on 8080) and I had to stop my external 
Tomcat to make the example running. 
(http://www.myeclipseide.com/documentation/quickstarts/webservices_jaxws/index.html)


I would also prefer to deploy to the external Tomcat.
--
Christoph



I've never used the included myEclipse server, only external servers.

--Ken

On Apr 22, 2010, at 9:17 AM, Christoph Kukulies wrote:

I'm playing a bit with myeclipse and I'm wondering whether anyone on 
this list here is using it with Tomcat
as application server running other apps, rather than using tomcat 
from within  the built into myeclipse Tomcat server.


Any experiences with that setup?

--
Christoph Kukulies




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



multiple servers (Roots)

2010-04-23 Thread Christoph Kukulies

AFAIU tomcat 6 allows for having multiple server roots, correct?
Is there a tutorial for setting this up?

--
Christoph Kukulies



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



Re: multiple servers (Roots)

2010-04-23 Thread Christoph Kukulies

Pid schrieb:

On 23/04/2010 10:57, Christoph Kukulies wrote:
  

AFAIU tomcat 6 allows for having multiple server roots, correct?



Do you mean multiple virtual hosts, or do you mean multiple separate
instances of Tomcat, (which may each have multiple virtual hosts)?
  


I mean multiple separate instances.
  

Is there a tutorial for setting this up?



There's plenty of documentation, at:

 http://tomcat.apache.org/tomcat-6.0-doc/config/index.html
  

Thanks.

--
Christoph Kukulies


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



Re: myeclipse and tomcat

2010-04-23 Thread Christoph Kukulies

Ken Bowen schrieb:


On the MyEclipse Toolbar:

Run/Stop/Restart MyEclipse ServersConfigure Server
Aaahhh! I see. There is the MyEclipse Tomcat enabled. I probably have to 
disable this one.




Then click Servers.  Click Tomcat in the dropdown list.
Select Tomcat 6 in that dropdown list.

On the Tomcat home directory line, Browse to the location of your 
external Tomcat.  If you have a default installation, the paths for 
the base  temp directories will be filled in automatically.


You can also supply optional program arguements.

Click the Enable radio button.


Will experiment with this. My Tomcat 6 external server already hosts 
OpenCMS as a ROOT application. Hope I can get it work

together with MyEclipse. But anyway, I guess I'm getting further now.

Thanks again,

--
Christoph



In the dropdown list where you selected Tomcat 6 (above), you can 
click on the arrow next
to Tomcat 6 to open a subsidiary dropdown list.  You can use this to 
specify a particular

JVM, create a launch config, etc.

After clicking OK, a Tomcat 6 launch will show under Run/Stop/Restart 
MyEclipse Servers

on the toolbar.  Use this to start/stop Tomcat.

I find that a wide range of Java/Javascript/JSP/CSS edits are 
hot-loaded to the running Tomcat

, and it'll tell you when it can't hot load Java edits.

Regards,
Ken
~
~
~
~
myecl-howto 25L, 958C written

On Apr 23, 2010, at 3:27 AM, Christoph Kukulies wrote:


Ken Bowen schrieb:

I'm not sure I understand your question.
But first,  are you using plain Eclipse, or MyEclipse?  (I use the 
latter)


I'm using MyEclipse as well.



Do you mean:  Using MyEclipse configured so that it is using an 
external Tomcat server, NOT the included myEclipse Tomcat server?



Yes, that's what I mean.  I had a Tomcat 6.0 running on my notebook 
and when I first time installed MyEclipse, the built in Tomcat
could not run (port conflict on 8080) and I had to stop my external 
Tomcat to make the example running. 
(http://www.myeclipseide.com/documentation/quickstarts/webservices_jaxws/index.html) 



I would also prefer to deploy to the external Tomcat.
--
Christoph



I've never used the included myEclipse server, only external servers.

--Ken

On Apr 22, 2010, at 9:17 AM, Christoph Kukulies wrote:

I'm playing a bit with myeclipse and I'm wondering whether anyone 
on this list here is using it with Tomcat
as application server running other apps, rather than using tomcat 
from within  the built into myeclipse Tomcat server.


Any experiences with that setup?

--
Christoph Kukulies




-
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




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



Re: myeclipse and tomcat

2010-04-23 Thread Christoph Kukulies

Ken Bowen schrieb:


You can run multiple web apps alongside the ROOT app.  I just drop 
them in the webspps folder.




Yes, I know. I do presently. But I want to run several ROOT apps.

--
Christoph





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



myeclipse and tomcat

2010-04-22 Thread Christoph Kukulies
I'm playing a bit with myeclipse and I'm wondering whether anyone on 
this list here is using it with Tomcat
as application server running other apps, rather than using tomcat from 
within  the built into myeclipse Tomcat server.


Any experiences with that setup?

--
Christoph Kukulies


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



Could not get dir listing

2010-04-21 Thread Christoph Kukulies
Strange. Don't know whether this has happened since I upgraded to Tomcat 
6.0.26, anyway, my application doesn't start anymore.


It's a ROOT app, which replaces the stuff, that is normally put into 
ROOT by the tomcat distribution.


21.04.2010 14:49:36 org.apache.naming.resources.FileDirContext list
WARNUNG: Could not get dir listing for 
C:\Programme\Apache_Group\Tomcat_6.0\webapps\ROOT\WEB-INF\lib

21.04.2010 14:49:36 org.apache.naming.resources.FileDirContext list
WARNUNG: Could not get dir listing for 
C:\Programme\Apache_Group\Tomcat_6.0\webapps\ROOT\WEB-INF


The directories are there. I compared the entry with a backup I have and 
I couldn't see any

differences.

--
Christoph Kukulies




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



tomcat 6.0.26 can't start server - - can't read server.xml

2010-04-21 Thread Christoph Kukulies
Has there something changed in the access rights of files tomcat is 
sensitive about under Windows XP or something? I'm using to move around 
some config files using cygwin tools like cp or mv. I have to idea why 
tomcat 6.0.26 suddenly says:


21.04.2010 15:54:39 org.apache.catalina.startup.Catalina load
WARNUNG: Can't load server.xml from 
C:\Programme\Apache_Group\Tomcat_6.0\conf\server.xml

21.04.2010 15:54:39 org.apache.catalina.startup.Catalina load
WARNUNG: Can't load server.xml from 
C:\Programme\Apache_Group\Tomcat_6.0\conf\server.xml

21.04.2010 15:54:39 org.apache.catalina.startup.Catalina start
SCHWERWIEGEND: Cannot start server. Server instance is not configured.
21.04.2010 15:59:09 org.apache.catalina.startup.Catalina load
WARNUNG: Can't load server.xml from 
C:\Programme\Apache_Group\Tomcat_6.0\conf\server.xml

21.04.2010 15:59:09 org.apache.catalina.startup.Catalina load
WARNUNG: Can't load server.xml from 
C:\Programme\Apache_Group\Tomcat_6.0\conf\server.xml

21.04.2010 15:59:09 org.apache.catalina.startup.Catalina start
SCHWERWIEGEND: Cannot start server. Server instance is not configured.


This suddenly happened after I mv'ed the original server.xml to 
server.xml.orig and copied back the saved server.xml into the conf 
directory.


C:\Programme\Apache_Group\Tomcat_6.0\confls -l
insgesamt 96
drwxrwx---+ 3 Administratoren SYSTEM 0 Apr 21 15:22 Catalina
-rwx--+ 1 kukuKein9125 Mar  9 17:06 catalina.policy
-rwx--+ 1 kukuKein3794 Mar  9 17:06 catalina.properties
-rwx--+ 1 kukuKein1429 Mar  9 17:06 context.xml
-rwx--+ 1 kukuKein3321 Mar  9 17:06 logging.properties
-rwx--  1 kukuKein6971 Apr 21 16:03 server.xml
-rwx--+ 1 kukuKein6764 Mar  9 17:06 server.xml.orig
-rwx--+ 1 kukuKein1557 Mar  9 17:06 tomcat-users.xml
-rwx--+ 1 kukuKein   52068 Mar  9 17:06 web.xml

C:\Programme\Apache_Group\Tomcat_6.0\conf

Any ideas?

--
Christoph Kukulies



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



Re: common/endorsed - Tomcat 6.0

2010-04-20 Thread Christoph Kukulies

Harry Metske schrieb:

2010/4/18 Christoph Kukulies k...@kukulies.org

  

Harry Metske schrieb:

 2010/4/18 Christoph Kukulies k...@kukulies.org



  

I'm experimenting with a wsdl enabled service deplyed to tomcat.
The build.xml file has
this section in it:

 condition property=lib.home value=${catalina.home}/shared/lib
else=${as.home}
/lib
 isset property=bld.for.tomcat/
 /condition

 condition property=lib.endorsed
value=${catalina.home}/common/endorsed
 isset property=bld.for.tomcat/
 /condition

 condition property=lib.endorsed value=${as.home}/lib/endorsed
 and
 not
 isset property=bld.for.tomcat/
 /not
 available file=${as.home}/lib/endorsed type=dir/
 /and
 /condition

Maybe this file is for Tomcat 5.5 or something, don't know. I chaned the
shared/lib to /lib already but
what should I do with common/endorsed?





assuming you are now using tomcat 6:  remove it, it is no longer used


  

em, er, excuse me, you are kidding. what is then the current version? Or
should I go back to 5.5
with all my other apps?




sorry, maybe I was not clear enough.
In your first email you did not mention what version of tomcat you are
using, you only mentioned that you had a build file that was probably for
tomcat 5.
The current version of tomcat is of course 6, and in version 6 there is no
longer a common/endorsed directory, in that case my suggestion was to remove
the common/endorsed from your build file too (and move all jars to lib).

regards,
Harry
  


Thanks. I wrote it in the subject (6.0). Actually it was the latest 
(6.0.26).
And I meant that Tomcat 6 doesn't have the common/endorsed and 
shared/lib directories. Wonder whether they wok when I create them

and put the stuff in there.

I got around it for now by using MyEclipse and the embedded tomcat 
there. Although in the long run I would like
to put the WSIT/wsdl enabled stuff into my normal tomcat webapps 
directory.


Maybe I just put them in there with the web.xml and see what happens.


--
Christoph Kukulies



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



common/endorsed - Tomcat 6.0

2010-04-18 Thread Christoph Kukulies

I'm experimenting with a wsdl enabled service deplyed to tomcat.
The build.xml file has
this section in it:

   condition property=lib.home value=${catalina.home}/shared/lib 
else=${as.home}

/lib
   isset property=bld.for.tomcat/
   /condition

   condition property=lib.endorsed 
value=${catalina.home}/common/endorsed

   isset property=bld.for.tomcat/
   /condition

   condition property=lib.endorsed value=${as.home}/lib/endorsed
   and
   not
   isset property=bld.for.tomcat/
   /not
   available file=${as.home}/lib/endorsed type=dir/
   /and
   /condition

Maybe this file is for Tomcat 5.5 or something, don't know. I chaned the 
shared/lib to /lib already but

what should I do with common/endorsed?

I'm doing a

ant -Duse.tomcat=true deploy

on it
.


--
Christoph Kukulies




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



Re: common/endorsed - Tomcat 6.0

2010-04-18 Thread Christoph Kukulies

Harry Metske schrieb:

2010/4/18 Christoph Kukulies k...@kukulies.org

  

I'm experimenting with a wsdl enabled service deplyed to tomcat.
The build.xml file has
this section in it:

  condition property=lib.home value=${catalina.home}/shared/lib
else=${as.home}
/lib
  isset property=bld.for.tomcat/
  /condition

  condition property=lib.endorsed
value=${catalina.home}/common/endorsed
  isset property=bld.for.tomcat/
  /condition

  condition property=lib.endorsed value=${as.home}/lib/endorsed
  and
  not
  isset property=bld.for.tomcat/
  /not
  available file=${as.home}/lib/endorsed type=dir/
  /and
  /condition

Maybe this file is for Tomcat 5.5 or something, don't know. I chaned the
shared/lib to /lib already but
what should I do with common/endorsed?




assuming you are now using tomcat 6:  remove it, it is no longer used
  

em, er, excuse me, you are kidding. what is then the current version? Or should 
I go back to 5.5
with all my other apps?

--
Christoph




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



seeking for WSIT-enabled services examples under Tomcat

2010-04-17 Thread Christoph Kukulies
I'm trying to build a WSIT/WSDL-enabled service that runs from Tomcat. 
Anyone done this or knows a

tutorial or link to find a start?

--
Christoph Kukulies


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



log4j :ERROR LogMananger.repositorySelector was null likely due to error

2010-02-26 Thread Christoph Kukulies
I'm turning to this mailing list now after I posted my problem to the 
Opencms mailing list at opencms.org.  And someone from that list gave me 
a hint that my problem could possibly have something to do with the 
folling citation:


http://mail-archives.apache.org/mod_mbox//logging-log4j-user/200804.mbox/%3c6d42962c-5db1-4acb-bb3a-d9d0d91e9...@apache.org%3e

This is the text I posted to the opencms list and I'm just repeating it 
here:



Christoph P. Kukulies schrieb:
 We stop and start Tomcat6.0.10  and Apache2.2 every midnight during the
 backup of our intranet machine.

 Since a couple of days the first access in the morning, when the
 secretary wants to log into opencms, produces the error below:


 HTTP Status 500 -

 type Exception report

 message

 description The server encountered an internal error () that prevented
 it from fulfilling this request.

 exception

 org.opencms.main.CmsInitException: Critical error during OpenCms
 initialization: Unable to initialize the user driver.
   org.opencms.main.OpenCmsCore.getInstance(OpenCmsCore.java:290)
   org.opencms.main.OpenCmsServlet.doGet(OpenCmsServlet.java:127)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

 note The full stack trace of the root cause is available in the Apache
 Tomcat/6.0.10 logs.
 Apache Tomcat/6.0.10


 Looking into Tomcat/logs/stdout_20100226.log I see:



 
 The following critical error occurred:
 Critical error during OpenCms initialization: Unable to initialize the
 user driv
 er.
 Giving up, unable to start OpenCms.
 
 log4j:ERROR LogMananger.repositorySelector was null likely due to error
 in class
  reloading, using NOPLoggerRepository.


 Starting OpenCms, version 7.5.0 in web application ROOT

 Copyright (c) 2009 Alkacon Software GmbH
 OpenCms comes with ABSOLUTELY NO WARRANTY
 This is free software, and you are welcome to
 redistribute it under certain conditions.
 Please see the GNU Lesser General Public Licence for
 further details.



I would be glad if I could get some help on m problem getting solved here.

Thanks.

--
Christoph



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



Re: log4j :ERROR LogMananger.repositorySelector was null likely due to error

2010-02-26 Thread Christoph Kukulies

Pid schrieb:

On 26/02/2010 09:47, Christoph Kukulies wrote:

I'm turning to this mailing list now after I posted my problem to the
Opencms mailing list at opencms.org. And someone from that list gave me
a hint that my problem could possibly have something to do with the
folling citation:

http://mail-archives.apache.org/mod_mbox//logging-log4j-user/200804.mbox/%3c6d42962c-5db1-4acb-bb3a-d9d0d91e9...@apache.org%3e 




This is the text I posted to the opencms list and I'm just repeating it
here:


Christoph P. Kukulies schrieb:
  We stop and start Tomcat6.0.10 and Apache2.2 every midnight during 
the

  backup of our intranet machine.
 
  Since a couple of days the first access in the morning, when the
  secretary wants to log into opencms, produces the error below:
 
 
  HTTP Status 500 -
 
  type Exception report
 
  message
 
  description The server encountered an internal error () that 
prevented

  it from fulfilling this request.
 
  exception
 
  org.opencms.main.CmsInitException: Critical error during OpenCms
  initialization: Unable to initialize the user driver.
  org.opencms.main.OpenCmsCore.getInstance(OpenCmsCore.java:290)
  org.opencms.main.OpenCmsServlet.doGet(OpenCmsServlet.java:127)
  javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
  javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
 
  note The full stack trace of the root cause is available in the 
Apache

  Tomcat/6.0.10 logs.
  Apache Tomcat/6.0.10


What happens if you use the latest Tomcat version (rather than one 
released in Feb 2007)?



p

Will possibly try that. But updating log4j would be less painful if that 
would solve the problem.
Curing problems simply by updating to a newer version could bring other 
unexpected problems.


--
Christoph


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



Re: log4j :ERROR LogMananger.repositorySelector was null likely due to error

2010-02-26 Thread Christoph Kukulies

Mark Thomas schrieb:

On 26/02/2010 09:47, Christoph Kukulies wrote:
I would be glad if I could get some help on m problem getting solved 
here.


http://tomcat.apache.org/tomcat-6.0-doc/config/systemprops.html
org.apache.catalina.loader.WebappClassLoader.ENABLE_CLEAR_REFERENCES

Mark


Thanks. Great answer!
Will try that. Probably will have to try it on 6.0.24 now since I moved 
to that meanwhile. :)


--
Christoph

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



Re: log4j :ERROR LogMananger.repositorySelector was null likely due to error

2010-02-26 Thread Christoph Kukulies

Mark Thomas schrieb:

On 26/02/2010 09:47, Christoph Kukulies wrote:
I would be glad if I could get some help on m problem getting solved 
here.


http://tomcat.apache.org/tomcat-6.0-doc/config/systemprops.html
org.apache.catalina.loader.WebappClassLoader.ENABLE_CLEAR_REFERENCES

Mark

Excuse me, just one question. Where does this

org.apache.catalina.loader.WebappClassLoader.ENABLE_CLEAR_REFERENCES

go?

catalina.properties? Or is it passed on the commandline? (-D)

--
Christoph


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



Re: log4j :ERROR LogMananger.repositorySelector was null likely due to error

2010-02-26 Thread Christoph Kukulies

Mark Thomas schrieb:

On 26/02/2010 11:16, Christoph Kukulies wrote:

Mark Thomas schrieb:

On 26/02/2010 09:47, Christoph Kukulies wrote:

I would be glad if I could get some help on m problem getting solved
here.


http://tomcat.apache.org/tomcat-6.0-doc/config/systemprops.html
org.apache.catalina.loader.WebappClassLoader.ENABLE_CLEAR_REFERENCES

Mark

Excuse me, just one question. Where does this

org.apache.catalina.loader.WebappClassLoader.ENABLE_CLEAR_REFERENCES

go?

catalina.properties? Or is it passed on the commandline? (-D)


I normally set in on the command line using the setenv.sh|bat file with
CATALINA_OPTS=-Dorg.apache.catalina.loader.WebappClassLoader.ENABLE_CLEAR_REFERENCES=false 



I think you can also set it in catalina.properties but I'd need to 
check that to be sure.


Mark

Since passing start parameters under Windows (service manager) is weird 
somehow I decided to put it

in catalina.properties and will see how it works out.

--
Christoph


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



broken pipe system error 109 when stopping tomcat6 under windows XP

2010-02-26 Thread Christoph Kukulies

When I stop tomcat (6.0.24) manually from the command line by

net stop tomcat6

I'm getting:

C:\Programme\Apache_Group\Tomcat_6.0\confnet stop tomcat6
Systemfehler 109 aufgetreten.

Die Pipe wurde beendet.


C:\Programme\Apache_Group\Tomcat_6.0\confnet start tomcat6
Apache Tomcat 6 wird gestartet..
Apache Tomcat 6 wurde erfolgreich gestartet.



Stopping the service in the Service manager doesn't yield this error.

Maybe some pipe broken (log4j?)?

--
Christoph


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



Re: log4j :ERROR LogMananger.repositorySelector was null likely due to error

2010-02-26 Thread Christoph Kukulies

Mark Thomas schrieb:

On 26/02/2010 11:16, Christoph Kukulies wrote:

Mark Thomas schrieb:

On 26/02/2010 09:47, Christoph Kukulies wrote:

I would be glad if I could get some help on m problem getting solved
here.


http://tomcat.apache.org/tomcat-6.0-doc/config/systemprops.html
org.apache.catalina.loader.WebappClassLoader.ENABLE_CLEAR_REFERENCES

Mark

Excuse me, just one question. Where does this

org.apache.catalina.loader.WebappClassLoader.ENABLE_CLEAR_REFERENCES

go?

catalina.properties? Or is it passed on the commandline? (-D)


I normally set in on the command line using the setenv.sh|bat file with
CATALINA_OPTS=-Dorg.apache.catalina.loader.WebappClassLoader.ENABLE_CLEAR_REFERENCES=false 



I think you can also set it in catalina.properties but I'd need to 
check that to be sure.


Mark

Is there a way to interrogate the running tomcat (catalina) process 
about it's set parameters?
I.e., I would like to control whether the setting in the 
catalina.properties file was fruitful :)


--
Christoph


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



Re: autodeploying/unpacking ROOT.war

2009-08-20 Thread Christoph Kukulies

Ognjen Blagojevic schrieb:

Christoph Kukulies wrote:
What again are the bits to auto-unpack/deploy a file in the webapps 
directory, e.g. ROOT.war?

I looked into server.xml and there is
unpackWars=true and autoDeploy=true and still a ROOT.war file I 
put into /usr/share/tomcat5.5/webapps remains untouched when I start 
tomcat5.5 again. (It's Debian, yes).


Is your context visible after server restart or not? Are there any 
arrors in the log files?


Nothing got unpacked. I was used that whenever I put a fresh ROOT.war 
(which hen contained something different than the tomcat ROOT app) it 
got unpacked into a ROOT directory in webapps.

(I helped myself now in unzipping the war file).


Please send the content of ROOT's context.xml.


/usr/share/tomcat5.5-webapps# vi ROOT.xml
!--
   Context configuration file for the Tomcat Web App Root
--

Context path=/ docBase=/usr/share/tomcat5.5-webapps/ROOT
  debug=0 privileged=true allowLinking=true
/Context



-Ognjen

--
Christoph


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



autodeploying/unpacking ROOT.war

2009-08-19 Thread Christoph Kukulies
What again are the bits to auto-unpack/deploy a file in the webapps 
directory, e.g. ROOT.war?

I looked into server.xml and there is
unpackWars=true and autoDeploy=true and still a ROOT.war file I put 
into /usr/share/tomcat5.5/webapps remains untouched when I start 
tomcat5.5 again. (It's Debian, yes).


--
Christoph Kukulies


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



increasing JVM heap space in Tomcat 6.0 (Windows XP)

2009-08-13 Thread Christoph Kukulies
I'm using the OpenCMS contentmanagement system under Tomcat 6.0. When 
I'm trying to use  a file upload widget (http-upload) I'm getting a java 
heap error (OutOfMemory) from the OpenCMS servlet.


I tried to start the Tomcat6 service under Windows XP then manually 
giving it the start parameters

-Xms64m -Xmx1024m, but I'm still getting the error.

It's only an 18MB file I want to upload using http protocol.

--
Christoph Kukulies


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



Re: increasing JVM heap space in Tomcat 6.0 (Windows XP)

2009-08-13 Thread Christoph Kukulies

Caldarale, Charles R schrieb:

From: Christoph Kukulies [mailto:k...@kukulies.org]
Subject: increasing JVM heap space in Tomcat 6.0 (Windows XP)

I tried to start the Tomcat6 service under Windows XP then manually
giving it the start parameters
-Xms64m -Xmx1024m, but I'm still getting the error.



What JVM version are you using?

What *exact* Tomcat version are you using?
  


Tomcat 6.0.10
jre_1.5.0_06/client/jvm.dll

I terribly goofed, sorry to say. I tweaked the values on the wrong machine.
Then I found out when comparing my notebook with the server that on the 
server

the Apache Tomcat Program group was missing, but found
that executing
tomcat6w.exe  //ES/Tomcat6

invokes the configurator panel.

I changed it to 128M/128M now and my upload works. Sorry again.

--
Christoph Kukulies


Have you verified that your heap settings are actually being used?  (BTW, it's 
usually better in a server environment to have the Xms and Xmx values the same 
- less heap thrashing.)

Are you really running out of memory?  The JVM throws an OOME for a variety of 
reasons, only one of which is heap exhaustion.

JConsole is a useful tool for monitoring a running JVM.

 - Chuck
  



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



Tomcat 6.0.20 WIndows installer - permission problems when installing servoce

2009-06-10 Thread Christoph Kukulies
Due to the recently discovered security holes in Tomcat 6 I wanted to 
update to 6.0.20,
downloaded the Windows installer and ran it (after stopping the running 
service first).


During the install process I'm getting an alert box, saying:

(X) Failed to install Tomcat6 service.
 Check your settings and permissions.
 Ignore and continue anyway (not recommended)?

I continued and after copying back my backed up server.xml and my (own) 
ROOT webapplication

I could start the service (net start tomcat6) again.

Probably it's just because tomcat6 has not been deinstalled before?

Is there a way to upgrade tomcat6 smoothly under Windows?

--
Christoph Kukulies



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



mod_proxy a risk?

2006-06-16 Thread Christoph Kukulies
I wonder whether mod_proxy can be a security risk in Apache2.0.54,
when being enabled in conjunction with tomcat (5.5).

A machine which is open to the world (on port 80 only) is blacklisted
at cbl.abuseat.org and I wonder how come.

--
Chris Christoph P. U. Kukulies kuku_at_kukulies.org

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



rc file for tomcat startup under FreeBSD?

2005-12-15 Thread Christoph Kukulies


How do I usually start tomcat on FreeBSD (6.0)?
Do I put startup.sh in /usr/local/etc/rc.d?
--
Chris Christoph P. U. Kukulies kuku_at_kukulies.org

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