tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From LERBSCHER Jean-Pierre <>
Subject RE : Declarative security example
Date Tue, 16 Nov 2004 11:05:36 GMT
Define a realm element for your Engine/Host/Context node in your server.xml
configuration file.
For example : <Realm className="org.apache.catalina.realm.MemoryRealm" />

-----Message d'origine-----
De : Freddy Villalba A. [] 
Envoyé : vendredi 12 novembre 2004 18:44
À :
Objet : Declarative security example

Hello everybody,

I'm trying to run the following test application on a Tomcat v4.1 that comes
along with JBuilder X.

      <web-resource-name>prueba de seguridad declarativa</web-resource-name>

When I launch the server, it is not able to initialize the web app. This is
the trace I get from Tomcat:

12-nov-2004 18:30:05 org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 8080
Starting service Tomcat-Standalone
Apache Tomcat/4.1.27-LE-jdk14
HostConfig[localhost]: Deploying configuration descriptor jb-cursoj2ee.xml
WebappLoader[/cursoj2ee]: Deploying class repositories to work directory
WebappLoader[/cursoj2ee]: Deploy class files /WEB-INF/classes to
WebappLoader[/cursoj2ee]: Reloading checks are enabled for this Context
ContextConfig[/cursoj2ee]: No Realm has been configured to authenticate
ContextConfig[/cursoj2ee]: Marking this application unavailable due to
previous error(s)
StandardManager[/cursoj2ee]: Seeding random number generator class
StandardManager[/cursoj2ee]: Seeding of random number generator has been
StandardContext[/cursoj2ee]: Context startup failed due to previous errors
12-nov-2004 18:30:07 org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on port 8080

It seems like I've got to define some realm on Tomcat in order for this
silly example to work. However, I've read (Sun's material) this example
should be straightforward, just deploy the webapp anywhere and run, without
defining anything particular to the servlet container.

What am I missing? Am I required to define a realm in order for it to work?

Thanx everybody,

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message