tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jacob Kjome <h...@visi.com>
Subject Re: charset for tc5 win as service
Date Thu, 29 Apr 2004 16:52:18 GMT
Quoting zhicheng wang <wang_zc@yahoo.co.uk>:

> thanks Jake
> 
> i tried to put -Dfile.encoding=ISO-8859-1 after
> --JavaOptions and also tried other places before, but
> cannot start the tomcat - saying internal error.
> 
> it is the details i need, thanks
> 

WFM even after adding your parameter...

"%EXECUTABLE%" //US//%SERVICE_NAME% --JavaOptions
-Dcatalina.home="\"%CATALINA_HOME%\""#-Djava.endorsed.dirs="\"%CATALINA_HOME%\common\endorsed\""#-Djava.io.tmpdir="\"%CATALINA_HOME%\temp\""#-Dbuild.compiler.emacs=true#-Dfile.encoding=ISO-8859-1#-server#-Xms32m#-Xmx512m#-Xrs
--StdOutputFile "%CATALINA_HOME%\logs\stdout.log" --StdErrorFile
"%CATALINA_HOME%\logs\stderr.log" --WorkingPath "%CATALINA_HOME%\bin"


Jake

> cheng
> 
> 
> 
>  --- Jacob Kjome <hoju@visi.com> wrote: > Quoting
> zhicheng wang <wang_zc@yahoo.co.uk>:
> >
> > > thanks jake,
> > > but that was not my problem. you were tooooo quick
> > to
> > > respond - thanks.
> > >
> >
> > No, actually I answered the question, but left the
> > details to you.
> >
> > > i do NOT have problem to run tomcat as service,
> > the
> > > problem is where to include
> > > "-Dfile.encoding=ISO-8859-1" on the start up when
> > run
> > > as a service?
> > >
> > > I have no problem to make this work when start
> > tomcat
> > > from command line. but the service.bat runs
> > > tomcat.exe, not java
> > >
> > > ...?
> > >
> >
> > Have a look at my modified service.bat file (renamed
> > to service.txt to avoid
> > servers from stripping the attachment).  Find the
> > --JavaOptions area and add
> > your -D parameter there.
> >
> >
> > Jake
> >
> >
> > > cheng
> > >
> > >  --- Jacob Kjome <hoju@visi.com> wrote: > Quoting
> > > zhicheng wang <wang_zc@yahoo.co.uk>:
> > > >
> > > > >  Dear Mark and other experts
> > > > >
> > > > > i am running tomcat 5.0.19 on win2k as
> > service.
> > > > but i
> > > > > need to have charset ISO-8859-1.
> > > > >
> > > > > where can i setup -Dfile.encoding=ISO-8859-1
> > so
> > > > that
> > > > > this encoding is used?
> > > > >
> > > >
> > > > Look in CATALINA_HOME/bin/service.bat
> > > >
> > > > You'll have to first do:
> > > >
> > > > service.bat remove
> > > >
> > > > modify service.bat as needed, then do...
> > > >
> > > > service.bat install Tomcat5
> > > >
> > > >
> > > > Jake
> > > >
> > > > > thanks
> > > > > cheng
> > > > >
> > > > >
> > > > > =====
> > > > > Best wishes
> > > > > Z C Wang
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > >
> >
> ____________________________________________________________
> > > > > Yahoo! Messenger - Communicate
> > instantly..."Ping"
> > > > > your friends today! Download Messenger Now
> > > > >
> > http://uk.messenger.yahoo.com/download/index.html
> > > > >
> > > > >
> > > >
> > >
> >
> ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail:
> > > > tomcat-user-unsubscribe@jakarta.apache.org
> > > > > For additional commands, e-mail:
> > > tomcat-user-help@jakarta.apache.org
> > >
> > > =====
> > > Best wishes
> > > Z C Wang
> > >
> > >
> > >
> > >
> > >
> > >
> >
> ____________________________________________________________
> > > Yahoo! Messenger - Communicate instantly..."Ping"
> > > your friends today! Download Messenger Now
> > > http://uk.messenger.yahoo.com/download/index.html
> > >
> > >
> >
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> > tomcat-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail:
> tomcat-user-help@jakarta.apache.org> @echo off
> > if "%OS%" == "Windows_NT" setlocal
> > rem
> >
> ---------------------------------------------------------------------------
> > rem NT Service Install/Uninstall script
> > rem
> > rem Options
> > rem install                Install the service using
> > Tomcat5 as service name.
> > rem                        Service is installed
> > using default settings.
> > rem remove                 Remove the service from
> > the System.
> > rem
> > rem name        (optional) If the second argument is
> > present it is considered
> > rem                        to be new service name
> >
> > rem
> > rem $Id: service.bat,v 1.3 2003/12/24 04:40:43
> > billbarker Exp $
> > rem
> >
> ---------------------------------------------------------------------------
> >
> > rem Guess CATALINA_HOME if not defined
> > set CURRENT_DIR=%cd%
> > if not "%CATALINA_HOME%" == "" goto gotHome
> > set CATALINA_HOME=%cd%
> > if exist "%CATALINA_HOME%\bin\tomcat.exe" goto
> > okHome
> > rem CD to the upper dir
> > cd ..
> > set CATALINA_HOME=%cd%
> > :gotHome
> > if exist "%CATALINA_HOME%\bin\tomcat.exe" goto
> > okHome
> > echo The tomcat.exe was not found...
> > echo The CATALINA_HOME environment variable is not
> > defined correctly.
> > echo This environment variable is needed to run this
> > program
> > goto end
> > :okHome
> >
> > set EXECUTABLE=%CATALINA_HOME%\bin\tomcat.exe
> >
> > rem Set default Service name
> > set SERVICE_NAME=Tomcat5
> >
> > if "%1" == "" goto displayUsage
> > if "%2" == "" goto setServiceName
> > set SERVICE_NAME=%2
> > :setServiceName
> > if %1 == install goto doInstall
> > if %1 == remove goto doRemove
> > echo Unknown parameter "%1"
> > :displayUsage
> > echo
> > echo Usage: service.bat install/remove
> > [service_name]
> > goto end
> >
> > :doRemove
> > rem Remove the service
> > "%EXECUTABLE%" //DS//%SERVICE_NAME%
> > echo The service '%SERVICE_NAME%' has been removed
> > goto end
> >
> > :doInstall
> > rem Install the service
> > "%EXECUTABLE%" //IS//%SERVICE_NAME% --DisplayName
> > "Apache Tomcat" --Description "Apache Tomcat Server
> > - http://jakarta.apache.org/tomcat/"  --Install
> > "%EXECUTABLE%" --ImagePath
> >
> "%JAVA_HOME%\lib\tools.jar;%CATALINA_HOME%\bin\bootstrap.jar"
> > --StartupClass
> > org.apache.catalina.startup.Bootstrap;main;start
> > --ShutdownClass
> > org.apache.catalina.startup.Bootstrap;main;stop
> > --Java java --Startup manual
> > rem Set extra parameters
> > "%EXECUTABLE%" //US//%SERVICE_NAME% --JavaOptions
> >
>
-Dcatalina.home="\"%CATALINA_HOME%\""#-Djava.endorsed.dirs="\"%CATALINA_HOME%\common\endorsed\""#-Djava.io.tmpdir="\"%CATALINA_HOME%\temp\""#-Dbuild.compiler.emacs=true#-server#-Xms32m#-Xmx512m#-Xrs
> > --StdOutputFile "%CATALINA_HOME%\logs\stdout.log"
> > --StdErrorFile "%CATALINA_HOME%\logs\stderr.log"
> > --WorkingPath "%CATALINA_HOME%\bin"
> > echo The service '%SERVICE_NAME%' has been installed
> >
> > :end
> > cd %CURRENT_DIR%
> > >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > tomcat-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail:
> tomcat-user-help@jakarta.apache.org
> 
> =====
> Best wishes
> Z C Wang
> 
> 
> 
> 
> 
> ____________________________________________________________
> Yahoo! Messenger - Communicate instantly..."Ping"
> your friends today! Download Messenger Now
> http://uk.messenger.yahoo.com/download/index.html
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message