On Sun, 27 Jan 2002, Lakshmi wrote:

> Date: Sun, 27 Jan 2002 23:45:19 -0800
> From: Lakshmi <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: Re: problem with shutting down
>
> I am very sorry to have sent a blank message to the group. My problem is
> with tomcat4.0.
>
> I shutdown Tomcat in my Windows98 machine, by running shutdown.bat. When I
> run startup.bat the next time, it does not work. The message in the log is
> as follows:
>
> 2002-01-27 23:38:57 HttpConnector Opening server socket on all host IP
> addresses
> 2002-01-27 23:38:57 UserDatabaseRealm[Standalone]: Exception looking up
> UserDatabase under key catalina/UserDatabase
> javax.naming.NamingException: Stopping after fatal error: The encoding
> "Cp1252" is not supported.
>  at org.apache.naming.NamingContext.lookup(Unknown Source)
>  at org.apache.naming.NamingContext.lookup(Unknown Source)
>  at org.apache.naming.NamingContext.lookup(Unknown Source)
>  at org.apache.naming.NamingContext.lookup(Unknown Source)
>  at org.apache.catalina.realm.UserDatabaseRealm.start(Unknown Source)
>  at org.apache.catalina.core.ContainerBase.start(Unknown Source)
>  at org.apache.catalina.core.StandardEngine.start(Unknown Source)
>  at org.apache.catalina.core.StandardService.start(Unknown Source)
>  at org.apache.catalina.core.StandardServer.start(Unknown Source)
>  at org.apache.catalina.startup.Catalina.start(Unknown Source)
>  at org.apache.catalina.startup.Catalina.execute(Unknown Source)
>  at org.apache.catalina.startup.Catalina.process(Unknown Source)
>  at java.lang.reflect.Method.invoke(Native Method)
>  at org.apache.catalina.startup.Bootstrap.main(Unknown Source)
>
>
> any suggestions as to why this is happening and how to solve this?
>

It sounds like you are using a recent nightly build when the "user
database" code was updated (we're working on an administrative webapp that
can add and edit users on the fly).  Initially, we were writing out the
tomcat-users.xml file with a character encoding setting, but this causes
all sorts of grief so it's been removed.  To work around your problem:

* Get a more recent nightly build (such as 20020128)

* Use a text editor to modify your "conf/tomcat-users.xml" file so that
  the top line reads simply:

    <?xml version='1.0'?>

> thanks,
> LK

Craig


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to