Results 1 to 2 of 2
  1. #1

    Need some help regarding runnng Tomcat 5.X on Russian WinXP

    Dear All,

    Deeply appreciate you can help me solve this problem as i've been trying for days to solve it yet istill got this error message after i install and run tomcat. What should i do to rectify this problem?

    2002-02-26 01:51:23 UserDatabaseRealm[Catalina]: Exception looking up UserDatabase under key UserDatabase
    javax.naming.NamingException: Invalid byte 2 of 3-byte UTF-8 sequence.
    at org.apache.naming.NamingContext.lookup(NamingConte xt.java:803)
    at org.apache.naming.NamingContext.lookup(NamingConte xt.java:151)
    at org.apache.catalina.realm.UserDatabaseRealm.start( UserDatabaseRealm.java:252)
    at org.apache.catalina.core.ContainerBase.start(Conta inerBase.java:1075)
    at org.apache.catalina.core.StandardEngine.start(Stan dardEngine.java:478)
    at org.apache.catalina.core.StandardService.start(Sta ndardService.java:480)
    at org.apache.catalina.core.StandardServer.start(Stan dardServer.java:2313)
    at org.apache.catalina.startup.Catalina.start(Catalin a.java:556)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknow n Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Un known Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.catalina.startup.Bootstrap.start(Bootst rap.java:287)
    at org.apache.catalina.startup.Bootstrap.main(Bootstr ap.java:425)

  2. #2
    That error indicates that some byte array being used by java should be in utf-8 encoding, but apparently isn't.

    The bytes being used could come from the db. But I'm picking they come from the config file you're defining the userdatabase paramters.

    Check the encoding you're using on that file. If possible use UTF-8. Then set a -Dfile.encoding=UTF8 in your java environment (e.g. by setting a JAVA_OPTS in $TOMCAT_HOME/bin/setenv.sh).
    RimuHosting.com - VPS Hosting and Dedicated Server Hosting since 2003
    Pingability.com - Peace of Mind Web Site Monitoring

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •