Hello ,
I have deployed Jetspeed 2 Tomcat-6.0.20 using the following maven commands
mvn org.apache.maven.plugins:maven-archetype-plugin:2.0-alpha-4:generate
-DarchetypeGroupId=org.apache.portals.jetspeed-2
-DarchetypeArtifactId=jetspeed-archetype -DarchetypeVersion=2.2.0
-DartifactId=jetexpress -Dpackage=org.apache.portals.tutorials
-DgroupId=org.apache.portals.tutorials -Dversion=1.0-SNAPSHOT
I changed the jetspeed-mvn-settings.xml file as per the instructions in the
tutorials and I ran the following command to build and deploy in tomcat
mvn jetspeed:mvn -Dtarget=all
I am able to launch the jetexpress portal from tomcat.
I moved the jars required for login into the lib folder . And I add the JAAS
realm in sever.xml as follows :
<Realm className="org.apache.catalina.realm.JAASRealm"
appName="Jetspeed"
userClassNames="org.apache.jetspeed.security.impl.UserPrincipalImpl"
roleClassNames="org.apache.jetspeed.security.impl.RolePrincipalImpl"
useContextClassLoader="true"
debug="5"/>
My jetspeed.xml located under conf\Catalina\localhost is as follows:
<Context crossContext="true">
<Realm className="org.apache.catalina.realm.JAASRealm"
appName="Jetspeed"
userClassNames="org.apache.jetspeed.security.impl.UserImpl,org.apache.jetspeed.security.impl.TransientUser,org.apache.jetspeed.security.UserSubjectPrincipalImpl"
roleClassNames="org.apache.jetspeed.security.impl.RoleImpl,org.apache.jetspeed.security.impl.TransientRole"
useContextClassLoader="true"
debug="0"/>
<Resource name="jdbc/jetspeed" auth="Container"
factory="org.apache.commons.dbcp.BasicDataSourceFactory"
type="javax.sql.DataSource" username="" password=""
driverClassName="org.apache.derby.jdbc.EmbeddedDriver"
url="jdbc:derby:D:\Program Files\Apache Software Foundation\Tomcat
6.0\database\derby\productiondb;create=true"
maxActive="100" maxIdle="30" maxWait="10000"/>
<Valve
className="org.apache.catalina.authenticator.FormAuthenticator"
characterEncoding="UTF-8"/>
</Context>
But I am facing a problem while login . I get the following exception
Sep 14, 2009 11:29:59 AM org.apache.catalina.realm.JAASRealm authenticate
WARNING: Login exception authenticating username "admin"
javax.security.auth.login.LoginException
at
org.apache.jetspeed.security.impl.DefaultLoginModule.login(DefaultLoginModule.java:258)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at javax.security.auth.login.LoginContext.invoke(Unknown Source)
at javax.security.auth.login.LoginContext.access$000(Unknown
Source)
at javax.security.auth.login.LoginContext$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.login.LoginContext.invokePriv(Unknown
Source)
at javax.security.auth.login.LoginContext.login(Unknown Source)
at
org.apache.catalina.realm.JAASRealm.authenticate(JAASRealm.java:362)
at
org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:258)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:417)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)
at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Unknown Source)
I went though some similar posts but I am unable to find a solution for this.
I have used Maven 2.0.9 and tomcat 6.0.20.
Any help on this is appreciated.
Thanks
Cheers :)
Varsha
"No one can go back and make a brand new start.
Anyone can start from now and make a brand new
ending..."
P Please do not print this email unless it is absolutely necessary. Spread
environmental awareness
DISCLAIMER:
-----------------------------------------------------------------------------------------------------------------------
The contents of this e-mail and any attachment(s) are confidential and intended
for the named recipient(s) only.
It shall not attach any liability on the originator or HCL or its affiliates.
Any views or opinions presented in
this email are solely those of the author and may not necessarily reflect the
opinions of HCL or its affiliates.
Any form of reproduction, dissemination, copying, disclosure, modification,
distribution and / or publication of
this message without the prior written consent of the author of this e-mail is
strictly prohibited. If you have
received this email in error please delete it and notify the sender
immediately. Before opening any mail and
attachments please check them for viruses and defect.
-----------------------------------------------------------------------------------------------------------------------