Hi all,
I have fought with it for many hours now and I can't figure out what is wrong.

I did everything according to :
Building Jetspeed with Maven-1
(http://portals.apache.org/jetspeed-2.1.3/devguide/m1-getting-started-source.html#6__Deploy_and_Run)
my  $HOME/build.properties:
===========================
maven.repo.remote = http://www.bluesunrise.com/maven/,
http://www.ibiblio.org/maven/, http://dist.codehaus.org/,
http://cvs.apache.org/repository

# required portal configuration properties
org.apache.jetspeed.portal.home           = /home/janek/myJetSpeedPortal/
org.apache.jetspeed.portal.groupId        = myprojects
org.apache.jetspeed.portal.artifactId     = Portal
org.apache.jetspeed.portal.name           = Portal
org.apache.jetspeed.portal.currentVersion = 1.0

# required application server properties
org.apache.jetspeed.server.home                      =
/usr/local/janek/apache-tomcat-5.5.27/
org.apache.jetspeed.server.shared                    =
${org.apache.jetspeed.server.home}/shared/lib/
org.apache.jetspeed.deploy.war.dir                   =
${org.apache.jetspeed.server.home}/webapps/
org.apache.jetspeed.services.autodeployment.user     = j2deployer
org.apache.jetspeed.services.autodeployment.password = j2deployer
org.apache.jetspeed.catalina.version.major           = 5.5

#database
org.apache.jetspeed.production.database.default.name = postgres
org.apache.jetspeed.production.database.url          =
jdbc:postgresql://localhost:5432/jetspeeddb
org.apache.jetspeed.production.database.user         = janek
org.apache.jetspeed.production.database.password     = janek
org.apache.jetspeed.production.database.driver       = org.postgresql.Driver
org.apache.jetspeed.production.jdbc.drivers.path     =
/usr/local/janek/lib/postgresql-8.3-604.jdbc3.jar
===========================

I used these commands:
===========================
maven -DartifactId=maven-jetspeed2-plugin
-DgroupId=org.apache.portals.jetspeed-2 -Dversion=2.1.2
plugin:download
maven j2:portal.genapp
maven war:install
maven j2:quickStart
===========================

and everything went fine. Started tomcat, went to
http;//myhost:8080/Portal/portal and can see JetSpeed front page (not
logged user). Then when I want to login as a default user with default
password - user: admin, password: admin or user/user or any other it
says 'invalid password'  !!??
Can any one tell me what is wrong ??
I have set up jetspeed from *.jar file installer with same postgresql
settings as in buil.properties file and, guess what, it is working.

Tomcat where I'd like to deploy custom jetspeed portal is tomcat_5.5.27.

hmm .. what else..
just to show you:

>> Deployed by jar file installer
>> conf/Catalina/localhost/jetspeed.xml :
=====================================
<?xml version="1.0" encoding="UTF-8"?>
<Context crossContext="true">

  <Realm className="org.apache.catalina.realm.JAASRealm"
         appName="Jetspeed"
         userClassNames="org.apache.jetspeed.security.impl.UserPrincipalImpl"
         roleClassNames="org.apache.jetspeed.security.impl.RolePrincipalImpl"
         useContextClassLoader="false"
         debug="0"/>


        <Resource name="jdbc/jetspeed" auth="Container"
            factory="org.apache.commons.dbcp.BasicDataSourceFactory"
            type="javax.sql.DataSource" username="janek" password="janek"
            driverClassName="org.postgresql.Driver"
url="jdbc:postgresql://localhost:5432/jetspeeddb"
            maxActive="100" maxIdle="30" maxWait="10000"/>

        <Valve className="org.apache.catalina.authenticator.FormAuthenticator"
characterEncoding="UTF-8"/>

</Context>
=====================================

>> Deployed with maven plugins
>> /conf/Catalina/localhost/Portal.xml
=====================================
<?xml version="1.0" encoding="UTF-8"?>
<Context path="/Portal" docBase="Portal" crossContext="true">

  <Realm className="org.apache.catalina.realm.JAASRealm"
         appName="Jetspeed"
         userClassNames="org.apache.jetspeed.security.impl.UserPrincipalImpl"
         roleClassNames="org.apache.jetspeed.security.impl.RolePrincipalImpl"
         useContextClassLoader="false"
         debug="0"/>


        <Resource name="jdbc/jetspeed" auth="Container"
            factory="org.apache.commons.dbcp.BasicDataSourceFactory"
            type="javax.sql.DataSource" username="janek" password="janek"
            driverClassName="org.postgresql.Driver"
url="jdbc:postgresql://localhost:5432/jetspeeddb"
            maxActive="100" maxIdle="30" maxWait="10000"/>

        <Valve className="org.apache.catalina.authenticator.FormAuthenticator"
characterEncoding="UTF-8"/>

</Context>
=====================================

Same thing, as you can see. Both ways of deploying creates database
tables but portal deployed with maven plugin doesn't allow me to
login.

I will appreciate any help.

-- 
Pozdrawiam || Best Regards

Jan Kowalik
--

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

Reply via email to