You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Ade Permana <Ad...@mitrais.com> on 2001/03/06 04:52:20 UTC

Tomcat 4, JDBCRealm Configuration, Catalina.start:LifecycleExcept ion: This Realm has already been started

Hi,
I'm very newbie on tomcat and I have a same problem about this...
I try to connect JDBCRealm to mySQL database and found the same error
messages

and I see two directories named 'conf' in my tomcat 'build' directory
the first is 'build\catalina\conf' and the other is
'build\tomcat-4.0\conf'...
this is very confusing me. 

where is the real config directory that will tomcat use when tomcat start 
(using command : 'tomcat-4.0\bin\catalina start')

help me pls,

TIA,

Ade Permana
Bali-Indonesia


---<original message>---

From: "Ignacio J. Ortega" 
Subject:  RE: Tomcat 4, JDBCRealm Configuration, Catalina.start: LifecycleE
    xception:  This Realm has already been started
Date:  Thu, 22 Feb 2001 19:43:08 +0100
Hola C. Gaffga:

It seems a bad message JDBCRealm ( without an RootCause somthing
like
that ), look at bad connection url or db not started when TC4.0
tries to
start the connection, or something like this.., please file a bug to
http://nagoya.apache.org/bugzilla to help us to track that issue..,
but
FYI i'll try to give a closer look at it ASAP.

TIA

Saludos ,
Ignacio J. Ortega


> -----Mensaje original-----
> De: C. Gaffga [mailto:cgaffga@triplemind.com]
> Enviado el: jueves 22 de febrero de 2001 17:40
> Para: tomcat-user@jakarta.apache.org
> Asunto: Tomcat 4, JDBCRealm Configuration, Catalina.start:
> LifecycleException: This Realm has already been started
>
>
> Hi !
>
> I've installed tomcat 4-beta to check out the filtering
> mechanism. But I
> have some problems to configure the JDBCRealm.
> When I start up tomcat i got a exception in logs/catalina.out:
>
> Starting service Tomcat-Standalone
> Apache Tomcat/4.0-b1
> Catalina.start: LifecycleException:  This Realm has already
> been started
> LifecycleException:  This Realm has already been started
>         at
> org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:542)
>         at
>
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1142)
>         at
>
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:217)
>         at
> org.apache.catalina.core.StandardService.start(StandardService
> .java:353)
>         at
>
org.apache.catalina.core.StandardServer.start(StandardServer.java:454)
>         at
> org.apache.catalina.startup.Catalina.start(Catalina.java:654)
>         at
> org.apache.catalina.startup.Catalina.execute(Catalina.java:595)
>         at
> org.apache.catalina.startup.Catalina.process(Catalina.java:176)
>         at java.lang.reflect.Method.invoke(Native Method)
>         at
> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:157)
>
> I have the following in my conf/server.xml:
>
>       <Realm
>           className="org.apache.catalina.realm.JDBCRealm"
>           debug="99"
>           driverName="org.gjt.mm.mysql.Driver"
>
> connectionURL="jdbc:mysql://62.208.90.143/urlaubstage?user=url
> aubstage;passw
> ord=something"
>           userTable="user"
>           userNameCol="username"
>           userCredCol="passwd"
>           userRoleTable="user_roles"
>           roleNameCol="rolename" />
>
>
> Please mail me, if you heard of this problem or know how to
solve it.
> Thanks in advanve.
>
> Christoph Gaffga
> cgaffga@triplemind.com
>