On Sep 14, 2009, at 2:49 AM, Varsha NRao (HCL Financial Services) wrote:


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 :

That should not be necessary


  <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)

If I enter an invalid password, I usually get something like:

WARNING: Login exception authenticating username "admin"
javax.security.auth.login.LoginException: Invalid password.
at org .apache .jetspeed .security.impl.DefaultLoginModule.login(DefaultLoginModule.java:258)

I just tested locally and it works for me on 6.0.20. Going to have a newbie programmer test jetexpress (on Windows, installed in Program File) and see if how that goes, should have results soon...



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to