commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yury Litvinov (JIRA)" <>
Subject [jira] Commented: (DAEMON-87) procrun as tomcat5.exe from Tomcat 5.5.17 does not start, when installed into the file path containing non-ascii character
Date Thu, 28 Sep 2006 23:41:51 GMT
    [ ] 
Yury Litvinov commented on DAEMON-87:

The problem was apparently that some wide-character registry settings (namely, Classpath and
Options) are not properly converted, using LPSTR WideToAscii(LPCWSTR ws, LPSTR s) and LPSTR
MzWideToAscii(LPCWSTR ws, LPSTR s) (that basically ignores the higher byte), while passing
values into Java Invocation API.

The solution is to convert these wide-char values properly to multibyte.
I attach the updated utils.c that contains two implemented functions 
LPSTR WideToMbyte(LPCWSTR ws), LPSTR MzWideToMbyte(LPCWSTR ws).
and prunsrv.c that basically uses these functions for proper converting.

Please, grep for "DAEMON-87" into attached files to locale all changes concerning fixing this
bug on our site.

I would be grateful if you could propogate these changes to your coming release sooner.

> procrun as tomcat5.exe from Tomcat 5.5.17 does not start, when installed into the file
path containing non-ascii character
> --------------------------------------------------------------------------------------------------------------------------
>                 Key: DAEMON-87
>                 URL:
>             Project: Commons Daemon
>          Issue Type: Bug
>            Reporter: Yury Litvinov
> Tomcat Service can not be started if Tomcat was installed into the path, 
> containing non-ASCII (e.g. Japanese or Chinese) symbols.
> The problem is apparently due to the improper treatment of non-ascii 
> characters in the "Java classpath" section of the Service settings.
> In tomcat5w.exe GUI or windows registry I could see proper PATH, namely
> C:\[ONE CHINESE HIEROGLIPH]\Tomcat 5.5\bin\bootstrap.jar
> Unfortunately, service doesn't get started with the following log:
> [2006-09-15 18:29:17] [457  javajni.c] [error] FindClass 
> org/apache/catalina/startup/Bootstrap failed
> [2006-09-15 18:29:17] [935  prunsrv.c] [error] Failed loading main 
> org/apache/catalina/startup/Bootstrap class C:\ss\Tomcat 5.5\bin\bootstrap.jar
> [2006-09-15 18:29:17] [1179 prunsrv.c] [error] ServiceStart returned 3
> where the non-ascii symbol gets replaced with improper ascii 'ss' sequence.
> Moreover, I tried to define environmental variables PR_CLASSPATH and 
> PR_STARTPATH instead of using corresponding service params. The result is 
> exactly the same.
> Please, suggest me the workaround to make Tomcat service run.
> P.S. The problem is stable either under JRE 1.5.0_02 or 1.4.2_10 (within 
> tomcat compatibility package). The problem exist apparently under all OS (in 
> particular, it was detected on Windows 2000 and Windows XP Pro 2002 SP2 either 
> Chinese version or standard English with Chinese System locale installed.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message