Webconsole requirements


Jars requirements:

This is the place to find documentation about the Petals Web Console requirements.

Because Petals Webconsole use a number of classes and interfaces that describe

and define the contracts between a servlet class (of 2.5 Servlet Specification API), you

need to use  runtime environment which provided it.

So, if you want to run the Petals Webconsole, you need to have a servlet container which

support 2.5 Java ServletSpecification API, for example Tomcat 6, Jetty 7, JBoss 5.1 GA.

You can verify if you Java web server provide the 2.5 Servlet Specification API, by

checking in the server librairies the "servlet-api.jar" and verify if the Manifest file

correctly contains "Specification-Version: 2.5".

Realm & JAAS Configuration:

In webapp/META-INF the context.xml file allows you to specify the Realm which will be applied

to you Webapp (represented as a Context within virtual host of your Java web server).

By default two Realm are preconfigured in this file, we advise you to keep one of these previous

configuration.

	<Context docBase="petals-webconsole-ui" path="/petals-webconsole-ui" reloadable="false" source="org.eclipse.jst.j2ee.server:petals-webconsole-ui">

		<Realm className="org.apache.catalina.realm.JAASRealm" appName="WebconsoleJAAS" userClassNames="org.ow2.petals.tools.webconsole.services.security.auth.EntityPrincipal" roleClassNames="org.ow2.petals.tools.webconsole.services.security.auth.EntityRolePrincipal"/>

	</Context>

The previous configuration allows to use JAAS Realm Webconsole configuration, the Webconsole users are managed in the security.xml file.

You need to run you Java web server with this following property: Djava.security.auth.login.config="/media/data/Java/jaas.config"

jaas.config file must be present at the where is indicated, it must contain the following code:

WebconsoleJAAS {

   org.ow2.petals.tools.webconsole.services.security.auth.EntityJAASLoginModule required debug="true";

};

That allows to specify the JAASLoginModule used.

The second configuration is:

<Context docBase="petals-webconsole-ui" path="/petals-webconsole-ui" reloadable="false" source="org.eclipse.jst.j2ee.server:petals-webconsole-ui" debug="0">

	<Realm className="org.apache.catalina.realm.UserDatabaseRealm" digest="SHA-1" resourceName="UserDatabase"/>

</Context>

It specify UserDatabaseRealm as the Realm which will be used by the context. This Realm load information about all users from Java web server and their corresponding roles, for example these informations will be recovered by the

$CATALINA_BASE/conf/tomcat-users.xml with Tomcat as Java web server.

Take attention with the used digest algorithm (here SHA-1)

Context parameters:

If you deploy the Webconsole with apache Tomcat, take attention to don't set to "true"

the "reloadable" context parameter in the server.xml file of your web server.

server configuration file
	<Context docBase="petals-webconsole-ui" path="/petals-webconsole-ui" reloadable="false" source="org.eclipse.jst.j2ee.server:petals-webconsole-ui" debug="0">

			<Realm className="org.apache.catalina.realm.UserDatabaseRealm" digest="SHA-1" resourceName="UserDatabase"/>

	</Context>

As is signified in the Tomcat documentation for "reloadable" parameter :

"Set to true if you want Catalina to monitor classes in /WEB-INF/classes/ and /WEB-INF/lib for changes, and automatically reload the web application if a change is detected. This feature is very useful during application development, but it requires significant runtime overhead and is not recommended for use on deployed production applications. You can use the Manager web application, however, to trigger reloads of deployed applications on demand."

http://tomcat.apache.org/tomcat-6.0-doc/config/context.html

If you deploy the Petals Webconsole with "reloadable" to "true", the container reload the application context whenever you add, delete, modify ... one server or one user.

You'll be really annoying, because it will require you to login again.

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.