tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zhicheng wang <wang...@yahoo.co.uk>
Subject Re: charset for tc5 win as service
Date Thu, 29 Apr 2004 17:31:46 GMT
thanks jake
it does look different from my modification, will try
tomorrow

cheng

 --- Jacob Kjome <hoju@visi.com> wrote: > 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%
> 
=== message truncated === 

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


Mime
View raw message