You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by Stijn de Witt <St...@bergland-it.nl> on 2004/07/22 22:08:46 UTC

TestRdbmsPolicy FAILED when trying to build J2

Hi,

I've been trying to compile jetspeed 2, but the build fails. Could any of
the experts here at the dev list maybe shed some light on this? I have been
working with Jetspeed 1 for a while now, but Jetspeed 2 is new to me...


C:\bit\dev\project2\jetspeed2>maven allClean allBuild
 __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0

Starting the reactor...
Our processing order:
Java Portlet API
Jetspeed-2 Core API
Jetspeed-2 Portal Commons

<SNIP>

allBuild:
check.required.properties:

torque:init:

db.scripts.gen:
    [echo] Generating SQL schema creation scripts for HSQLDB

<SNIP>

db.create:
db.execute:
    [sql] Executing file:
C:\bit\dev\project2\jetspeed2\target\src\sql\hsql\phase3ojb-schema.sql

<SNIP>

Starting the reactor...
Our processing order:
Java Portlet API
+----------------------------------------
| Build and Install the Portlet API jar Java Portlet API
| Memory: 34M/60M
+----------------------------------------
Probeer commons-jelly-tags-xml-20040613.030723.jar te downloaden.
33K downloaded
Probeer commons-net-1.1.0.jar te downloaden.
139K downloaded
Plugin 'maven-deploy-plugin' in project 'Java Portlet API' is not available

// ERROR ?  ^

build:start:

java:prepare-filesystem:
    [mkdir] Created dir:
C:\bit\dev\project2\jetspeed2\portlet-api\target\classes

java:compile:
    [echo] Compiling to
C:\bit\dev\project2\jetspeed2\portlet-api/target/classes
    [javac] Compiling 27 source files to
C:\bit\dev\project2\jetspeed2\portlet-api\target\classes

<SNIP>

jar:jar:
    [jar] Building jar:
C:\bit\dev\project2\jetspeed2\components\registry\target\jetspeed-registry-2
.0-a1-dev.jar
Copying: from
'C:\bit\dev\project2\jetspeed2\components\registry\target\jetspeed-registry-
2.0-a1-dev
.jar' to: 'C:\Documents and
Settings\Administrator.STORM\.maven\repository\jetspeed2\jars\jetspeed-r
egistry-2.0-a1-dev.jar'
Copying: from
'C:\bit\dev\project2\jetspeed2\components\registry\project.xml' to:
'C:\Documents and
Settings\Administrator.STORM\.maven\repository\jetspeed2\poms\jetspeed-regis
try-2.0-a1-dev.pom'
Starting the reactor...
Our processing order:
Jetspeed-2 Security Components
+----------------------------------------
| Build and Install the Security Components jar Jetspeed-2 Security
Components
| Memory: 46M/61M
+----------------------------------------
Plugin 'maven-deploy-plugin' in project 'Jetspeed-2 Security Components' is
not available

jar:install:

build:end:

build:start:

java:prepare-filesystem:
    [mkdir] Created dir:
C:\bit\dev\project2\jetspeed2\components\security\target\classes

java:compile:
    [echo] Compiling to
C:\bit\dev\project2\jetspeed2\components\security/target/classes
    [javac] Compiling 26 source files to
C:\bit\dev\project2\jetspeed2\components\security\target\cl
asses

java:jar-resources:
Copying 4 files to
C:\bit\dev\project2\jetspeed2\components\security\target\classes
Copied 1 empty directory to
C:\bit\dev\project2\jetspeed2\components\security\target\classes

test:prepare-filesystem:
    [mkdir] Created dir:
C:\bit\dev\project2\jetspeed2\components\security\target\test-classes
    [mkdir] Created dir:
C:\bit\dev\project2\jetspeed2\components\security\target\test-reports

test:test-resources:
Copying 5 files to
C:\bit\dev\project2\jetspeed2\components\security\target\test-classes
Copied 4 empty directories to
C:\bit\dev\project2\jetspeed2\components\security\target\test-classes
Copying 4 files to
C:\bit\dev\project2\jetspeed2\components\security\target\test-classes

test:compile:
    [javac] Compiling 10 source files to
C:\bit\dev\project2\jetspeed2\components\security\target\te
st-classes

test:test:
dbSetup:
    [copy] Copying 1 file to
C:\bit\dev\project2\jetspeed2\components\security\target\test-classes

    [junit] Running org.apache.jetspeed.security.TestAggregationHierarchy
    [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 2,5 sec
    [junit] Running org.apache.jetspeed.security.TestGeneralizationHierarchy
    [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 2,484 sec
    [junit] Running org.apache.jetspeed.security.TestGroupManager
    [junit] Tests run: 8, Failures: 0, Errors: 0, Time elapsed: 3,938 sec
    [junit] Running org.apache.jetspeed.security.TestLoginModule
    [junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 2,407 sec
    [junit] Running org.apache.jetspeed.security.TestPermissionManager
    [junit] Tests run: 6, Failures: 0, Errors: 0, Time elapsed: 3,75 sec
    [junit] Running org.apache.jetspeed.security.TestRdbmsPolicy
    [junit] Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 2,282 sec
    [junit] [ERROR] TEST org.apache.jetspeed.security.TestRdbmsPolicy FAILED
    [junit] Running org.apache.jetspeed.security.TestRoleManager
    [junit] Tests run: 12, Failures: 0, Errors: 0, Time elapsed: 4,75 sec
    [junit] Running org.apache.jetspeed.security.TestSecurityHelper
    [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 1,782 sec
    [junit] Running org.apache.jetspeed.security.TestUserManager
    [junit] Tests run: 3, Failures: 1, Errors: 0, Time elapsed: 3,015 sec
    [junit] [ERROR] TEST org.apache.jetspeed.security.TestUserManager FAILED

BUILD FAILED
File...... C:\bit\dev\project2\jetspeed2\maven.xml
Element... maven:reactor
Line...... 235
Column.... 40
Unable to obtain goal [test:test] -- C:\Documents and
Settings\Administrator.STORM\.maven\cache\mave
n-test-plugin-1.6.2\plugin.jelly:181:54: <fail> There were test failures.
Total time: 19 minutes 14 seconds
Finished at: Thu Jul 22 21:40:16 CEST 2004



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org


Re: TestRdbmsPolicy FAILED when trying to build J2

Posted by Stijn de Witt <St...@bergland-it.nl>.
Thanks, I'll try that.
-Stijn

----- Original Message ----- 
From: "Ate Douma" <at...@douma.nu>
To: "Jetspeed Developers List" <je...@jakarta.apache.org>
Sent: Saturday, July 24, 2004 9:33 PM
Subject: Re: TestRdbmsPolicy FAILED when trying to build J2


> It looks like if you have a corrupted test database and/or create scripts.
> I suggest cleaning out all of J2, including the jetspeed2 folder in your
local
> maven repository; getting a fresh checkout from cvs and try again. If it
then
> still fails we can look deeper into this, but normally it should be
resolved then.
>
> Regards, Ate
>
> Stijn de Witt wrote:
>
> > Thanks Ate.
> > More below...
> >
> > ----- Original Message ----- 
> > From: "Ate Douma" <at...@douma.nu>
> > To: "Jetspeed Developers List" <je...@jakarta.apache.org>
> > Sent: Thursday, July 22, 2004 11:20 PM
> > Subject: Re: TestRdbmsPolicy FAILED when trying to build J2
> >
> >
> >
> >>>C:\bit\dev\project2\jetspeed2>maven allClean allBuild
> >>>Plugin 'maven-deploy-plugin' in project 'Java Portlet API' is not
> >
> > available
> >
> >>>// ERROR ?  ^
> >>
> >>No, not an error, a known Maven bug/warning (forgot the issue). You can
> >
> > ignore this.
> >
> > Thanks, good to know.
> >
> >
> >
> >>Check out the errors in the
> >
> > jetspeed2\components\security\target\test-reports
> >
> >>for TestRdbmsPolicy and TestUserManager. Without more information from
> >
> > those
> >
> >>nobody can tell.
> >>
> >
> >
> > Ok, thanks, here are the test reports:
> >
> > Testsuite: org.apache.jetspeed.security.TestRdbmsPolicy
> > Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 2,266 sec
> >
> > ------------- Standard Output ---------------
> >  INFO: org.apache.jetspeed.components.jndi.TyrexJNDIComponent - JNDI
> > successfully initiallized
> >  INFO:
org.apache.jetspeed.components.datasource.DBCPDatasourceComponent -
> > Setting up data source pooling for org.hsqldb.jdbcDriver
> >  INFO:
org.apache.jetspeed.components.datasource.DBCPDatasourceComponent -
> > Max active connnections set to: 20
> >  INFO:
org.apache.jetspeed.components.datasource.DBCPDatasourceComponent -
> > Pool is set to "2" when all connections are exhausted.
> >  INFO:
org.apache.jetspeed.components.datasource.DBCPDatasourceComponent -
> > Attempting to start DBCPCDatasourceComponent.
> >  INFO:
org.apache.jetspeed.components.datasource.DBCPDatasourceComponent -
> > DBCPCDatasourceComponent successfuly started!
> > DEBUG: org.apache.jetspeed.components.jndi.TyrexJNDIComponent - Binding
> > org.apache.commons.dbcp.PoolingDataSource@641e9a to name
> > comp/env/jdbc/jetspeed
> >  INFO: org.apache.jetspeed.components.persistence.store.ojb.pb.PBStore -
> > Merging OJB respository:
> >
file:/C:/bit/dev/project2/jetspeed2/components/security/target/test-classes/META-INF/ojb_repository.xml
> >  INFO: org.apache.jetspeed.components.persistence.store.ojb.pb.PBStore -
> > Merging OJB respository:
> >
file:/C:/bit/dev/project2/jetspeed2/components/security/target/classes/META-INF/ojb_repository.xml
> >  INFO: org.apache.jetspeed.components.persistence.store.ojb.pb.PBStore -
> > Merging OJB respository:
> >
jar:file:/C:/Documents%20and%20Settings/Administrator.STORM/.maven/repositor
> >
y/jetspeed2/jars/jetspeed-prefs-2.0-a1-dev.jar!/META-INF/ojb_repository.xml
> > DEBUG: org.apache.jetspeed.security.impl.RdbmsPolicy - RdbmsPolicy
> > constructed.
> > DEBUG: org.apache.jetspeed.security.impl.SecurityProviderImpl -
> > java.security.auth.login.config =
> >
file:/C:/bit/dev/project2/jetspeed2/components/security/target/test-classes/login.conf
> > DEBUG: org.apache.jetspeed.security.impl.RdbmsPolicy - RdbmsPolicy
refresh
> > called.
> > DEBUG: org.apache.jetspeed.security.impl.UserManagerImpl - User exists:
> > false
> > DEBUG: org.apache.jetspeed.security.impl.UserManagerImpl - Added user
> > preferences node: /user/anon
> > DEBUG: org.apache.jetspeed.security.impl.UserManagerImpl - Added user:
> > /user/anon
> >   [TestRdbmsPolicy] Creating login context.
> > DEBUG: org.apache.jetspeed.security.impl.UserManagerImpl - Credential:
> > [[principalId, 121], [value, password], [type, 0], [classname, null],
> > [creationDate, 2004-07-22 21:46:36.703], [modifiedDate, 2004-07-22
> > 21:46:36.703]]
> > ------------- ---------------- ---------------
> > ------------- Standard Error -----------------
> > javax.security.auth.login.LoginException: Authentication failed:
Password
> > does not match
> >  at
> >
org.apache.jetspeed.security.impl.RdbmsLoginModule.login(RdbmsLoginModule.ja
> > va:167)
> >  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >  at
> >
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
> > )
> >  at
> >
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
> > .java:25)
> >  at java.lang.reflect.Method.invoke(Method.java:324)
> >  at javax.security.auth.login.LoginContext.invoke(LoginContext.java:675)
> >  at
javax.security.auth.login.LoginContext.access$000(LoginContext.java:129)
> >  at javax.security.auth.login.LoginContext$4.run(LoginContext.java:610)
> >  at java.security.AccessController.doPrivileged(Native Method)
> >  at
> >
javax.security.auth.login.LoginContext.invokeModule(LoginContext.java:607)
> >  at javax.security.auth.login.LoginContext.login(LoginContext.java:534)
> >  at
> >
org.apache.jetspeed.security.TestRdbmsPolicy.setUp(TestRdbmsPolicy.java:63)
> >  at junit.framework.TestCase.runBare(TestCase.java:125)
> >  at junit.framework.TestResult$1.protect(TestResult.java:106)
> >  at junit.framework.TestResult.runProtected(TestResult.java:124)
> >  at junit.framework.TestResult.run(TestResult.java:109)
> >  at junit.framework.TestCase.run(TestCase.java:118)
> >  at junit.framework.TestSuite.runTest(TestSuite.java:208)
> >  at junit.framework.TestSuite.run(TestSuite.java:203)
> >  at
> >
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRu
> > nner.java:325)
> >  at
> >
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestR
> > unner.java:536)
> > ------------- ---------------- ---------------
> > Testcase:
> >
testPermissionWithSubjectInAccessControlContext(org.apache.jetspeed.security
> > .TestRdbmsPolicy): FAILED
> >   [TestRdbmsPolicy] Failed to setup test.
> > junit.framework.AssertionFailedError:   [TestRdbmsPolicy] Failed to
setup
> > test.
> >  at
> >
org.apache.jetspeed.security.TestRdbmsPolicy.setUp(TestRdbmsPolicy.java:68)
> >
> >
> > "Authentication failed: Password does not match", looks like something
is
> > wrong with my db setup?
> > I didn't change to another db, I kept the hypersonic db that comes with
> > jetspeed 2.
> >
> >
> >
> > Testsuite: org.apache.jetspeed.security.TestUserManager
> > Tests run: 3, Failures: 1, Errors: 0, Time elapsed: 2,515 sec
> >
> > ------------- Standard Output ---------------
> >  INFO: org.apache.jetspeed.components.jndi.TyrexJNDIComponent - JNDI
> > successfully initiallized
> >  INFO:
org.apache.jetspeed.components.datasource.DBCPDatasourceComponent -
> > Setting up data source pooling for org.hsqldb.jdbcDriver
> >  INFO:
org.apache.jetspeed.components.datasource.DBCPDatasourceComponent -
> > Max active connnections set to: 20
> >  INFO:
org.apache.jetspeed.components.datasource.DBCPDatasourceComponent -
> > Pool is set to "2" when all connections are exhausted.
> >  INFO:
org.apache.jetspeed.components.datasource.DBCPDatasourceComponent -
> > Attempting to start DBCPCDatasourceComponent.
> >  INFO:
org.apache.jetspeed.components.datasource.DBCPDatasourceComponent -
> > DBCPCDatasourceComponent successfuly started!
> > DEBUG: org.apache.jetspeed.components.jndi.TyrexJNDIComponent - Binding
> > org.apache.commons.dbcp.PoolingDataSource@1d85f79 to name
> > comp/env/jdbc/jetspeed
> >  INFO: org.apache.jetspeed.components.persistence.store.ojb.pb.PBStore -
> > Merging OJB respository:
> >
file:/C:/bit/dev/project2/jetspeed2/components/security/target/test-classes/META-INF/ojb_repository.xml
> >  INFO: org.apache.jetspeed.components.persistence.store.ojb.pb.PBStore -
> > Merging OJB respository:
> >
file:/C:/bit/dev/project2/jetspeed2/components/security/target/classes/META-INF/ojb_repository.xml
> >  INFO: org.apache.jetspeed.components.persistence.store.ojb.pb.PBStore -
> > Merging OJB respository:
> >
jar:file:/C:/Documents%20and%20Settings/Administrator.STORM/.maven/repositor
> >
y/jetspeed2/jars/jetspeed-prefs-2.0-a1-dev.jar!/META-INF/ojb_repository.xml
> > DEBUG: org.apache.jetspeed.security.impl.RdbmsPolicy - RdbmsPolicy
> > constructed.
> > DEBUG: org.apache.jetspeed.security.impl.SecurityProviderImpl -
> > java.security.auth.login.config =
> >
file:/C:/bit/dev/project2/jetspeed2/components/security/target/test-classes/login.conf
> > DEBUG: org.apache.jetspeed.security.impl.RdbmsPolicy - RdbmsPolicy
refresh
> > called.
> > DEBUG: org.apache.jetspeed.security.impl.UserManagerImpl - User exists:
true
> > DEBUG: org.apache.jetspeed.security.impl.UserManagerImpl - User: [[id,
121],
> > [fullPath, /user/anon]]
> > DEBUG: org.apache.jetspeed.security.impl.UserManagerImpl - User exists:
true
> > DEBUG: org.apache.jetspeed.security.impl.UserManagerImpl - User: [[id,
121],
> > [fullPath, /user/anon]]
> > DEBUG: org.apache.jetspeed.security.impl.UserManagerImpl - Deleted user:
> > /user/anon
> > DEBUG: org.apache.jetspeed.security.impl.UserManagerImpl - User exists:
> > false
> > DEBUG: org.apache.jetspeed.security.impl.UserManagerImpl - User exists:
> > false
> >  INFO: org.apache.jetspeed.components.jndi.TyrexJNDIComponent - JNDI
> > successfully initiallized
> >  INFO:
org.apache.jetspeed.components.datasource.DBCPDatasourceComponent -
> > Setting up data source pooling for org.hsqldb.jdbcDriver
> >  INFO:
org.apache.jetspeed.components.datasource.DBCPDatasourceComponent -
> > Max active connnections set to: 20
> >  INFO:
org.apache.jetspeed.components.datasource.DBCPDatasourceComponent -
> > Pool is set to "2" when all connections are exhausted.
> >  INFO:
org.apache.jetspeed.components.datasource.DBCPDatasourceComponent -
> > Attempting to start DBCPCDatasourceComponent.
> >  INFO:
org.apache.jetspeed.components.datasource.DBCPDatasourceComponent -
> > DBCPCDatasourceComponent successfuly started!
> > DEBUG: org.apache.jetspeed.components.jndi.TyrexJNDIComponent - Binding
> > org.apache.commons.dbcp.PoolingDataSource@676437 to name
> > comp/env/jdbc/jetspeed
> >  INFO: org.apache.jetspeed.components.persistence.store.ojb.pb.PBStore -
> > Merging OJB respository:
> >
file:/C:/bit/dev/project2/jetspeed2/components/security/target/test-classes/META-INF/ojb_repository.xml
> >  INFO: org.apache.jetspeed.components.persistence.store.ojb.pb.PBStore -
> > Merging OJB respository:
> >
file:/C:/bit/dev/project2/jetspeed2/components/security/target/classes/META-INF/ojb_repository.xml
> >  INFO: org.apache.jetspeed.components.persistence.store.ojb.pb.PBStore -
> > Merging OJB respository:
> >
jar:file:/C:/Documents%20and%20Settings/Administrator.STORM/.maven/repositor
> >
y/jetspeed2/jars/jetspeed-prefs-2.0-a1-dev.jar!/META-INF/ojb_repository.xml
> > DEBUG: org.apache.jetspeed.security.impl.RdbmsPolicy - RdbmsPolicy
> > constructed.
> > DEBUG: org.apache.jetspeed.security.impl.SecurityProviderImpl -
> > java.security.auth.login.config =
> >
file:/C:/bit/dev/project2/jetspeed2/components/security/target/test-classes/login.conf
> > DEBUG: org.apache.jetspeed.security.impl.RdbmsPolicy - RdbmsPolicy
refresh
> > called.
> > DEBUG: org.apache.jetspeed.security.impl.UserManagerImpl - User exists:
> > false
> > DEBUG: org.apache.jetspeed.security.impl.UserManagerImpl - Added user
> > preferences node: /user/test
> > DEBUG: org.apache.jetspeed.security.impl.UserManagerImpl - Added user:
> > /user/test
> > DEBUG: org.apache.jetspeed.security.impl.UserManagerImpl - User exists:
> > false
> > DEBUG: org.apache.jetspeed.security.impl.UserManagerImpl - User exists:
true
> > DEBUG: org.apache.jetspeed.security.impl.UserManagerImpl - User: [[id,
201],
> > [fullPath, /user/test]]
> > DEBUG: org.apache.jetspeed.security.impl.UserManagerImpl - Deleted user:
> > /user/test
> > DEBUG: org.apache.jetspeed.security.impl.UserManagerImpl - User exists:
> > false
> >  INFO: org.apache.jetspeed.components.jndi.TyrexJNDIComponent - JNDI
> > successfully initiallized
> >  INFO:
org.apache.jetspeed.components.datasource.DBCPDatasourceComponent -
> > Setting up data source pooling for org.hsqldb.jdbcDriver
> >  INFO:
org.apache.jetspeed.components.datasource.DBCPDatasourceComponent -
> > Max active connnections set to: 20
> >  INFO:
org.apache.jetspeed.components.datasource.DBCPDatasourceComponent -
> > Pool is set to "2" when all connections are exhausted.
> >  INFO:
org.apache.jetspeed.components.datasource.DBCPDatasourceComponent -
> > Attempting to start DBCPCDatasourceComponent.
> >  INFO:
org.apache.jetspeed.components.datasource.DBCPDatasourceComponent -
> > DBCPCDatasourceComponent successfuly started!
> > DEBUG: org.apache.jetspeed.components.jndi.TyrexJNDIComponent - Binding
> > org.apache.commons.dbcp.PoolingDataSource@1c50507 to name
> > comp/env/jdbc/jetspeed
> >  INFO: org.apache.jetspeed.components.persistence.store.ojb.pb.PBStore -
> > Merging OJB respository:
> >
file:/C:/bit/dev/project2/jetspeed2/components/security/target/test-classes/META-INF/ojb_repository.xml
> >  INFO: org.apache.jetspeed.components.persistence.store.ojb.pb.PBStore -
> > Merging OJB respository:
> >
file:/C:/bit/dev/project2/jetspeed2/components/security/target/classes/META-INF/ojb_repository.xml
> >  INFO: org.apache.jetspeed.components.persistence.store.ojb.pb.PBStore -
> > Merging OJB respository:
> >
jar:file:/C:/Documents%20and%20Settings/Administrator.STORM/.maven/repositor
> >
y/jetspeed2/jars/jetspeed-prefs-2.0-a1-dev.jar!/META-INF/ojb_repository.xml
> > DEBUG: org.apache.jetspeed.security.impl.RdbmsPolicy - RdbmsPolicy
> > constructed.
> > DEBUG: org.apache.jetspeed.security.impl.SecurityProviderImpl -
> > java.security.auth.login.config =
> >
file:/C:/bit/dev/project2/jetspeed2/components/security/target/test-classes/login.conf
> > DEBUG: org.apache.jetspeed.security.impl.RdbmsPolicy - RdbmsPolicy
refresh
> > called.
> > DEBUG: org.apache.jetspeed.security.impl.UserManagerImpl - User exists:
> > false
> > DEBUG: org.apache.jetspeed.security.impl.UserManagerImpl - Added user
> > preferences node: /user/anon
> > DEBUG: org.apache.jetspeed.security.impl.UserManagerImpl - Added user:
> > /user/anon
> > DEBUG: org.apache.jetspeed.security.impl.UserManagerImpl - Credential:
> > [[principalId, 202], [value, newpassword], [type, 0], [classname, null],
> > [creationDate, 2004-07-22 21:46:47.734], [modifiedDate, 2004-07-22
> > 21:46:47.734]]
> > DEBUG: org.apache.jetspeed.security.impl.UserManagerImpl - User exists:
true
> > DEBUG: org.apache.jetspeed.security.impl.UserManagerImpl - User: [[id,
202],
> > [fullPath, /user/anon]]
> > DEBUG: org.apache.jetspeed.security.impl.UserManagerImpl - Deleted user:
> > /user/anon
> > DEBUG: org.apache.jetspeed.security.impl.UserManagerImpl - User exists:
> > false
> > DEBUG: org.apache.jetspeed.security.impl.UserManagerImpl - User exists:
> > false
> > ------------- ---------------- ---------------
> > Testcase:
testAddRemoveUser(org.apache.jetspeed.security.TestUserManager):
> > FAILED
> > user already exists. exception caught:
> > org.apache.jetspeed.security.SecurityException: The user already exists.
> > anon
> > junit.framework.AssertionFailedError: user already exists. exception
caught:
> > org.apache.jetspeed.security.SecurityException: The user already exists.
> > anon
> >  at
> >
org.apache.jetspeed.security.TestUserManager.testAddRemoveUser(TestUserManag
> > er.java:74)
> >  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >  at
> >
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
> > )
> >  at
> >
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
> > .java:25)
> >
> >
> > I have no idea about this error...
> > Thanks for your help,
> >
> > -Stijn
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org
> >
> >
> >
> >
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org


Re: TestRdbmsPolicy FAILED when trying to build J2

Posted by Ate Douma <at...@douma.nu>.
It looks like if you have a corrupted test database and/or create scripts.
I suggest cleaning out all of J2, including the jetspeed2 folder in your local
maven repository; getting a fresh checkout from cvs and try again. If it then
still fails we can look deeper into this, but normally it should be resolved then.

Regards, Ate

Stijn de Witt wrote:

> Thanks Ate.
> More below...
> 
> ----- Original Message ----- 
> From: "Ate Douma" <at...@douma.nu>
> To: "Jetspeed Developers List" <je...@jakarta.apache.org>
> Sent: Thursday, July 22, 2004 11:20 PM
> Subject: Re: TestRdbmsPolicy FAILED when trying to build J2
> 
> 
> 
>>>C:\bit\dev\project2\jetspeed2>maven allClean allBuild
>>>Plugin 'maven-deploy-plugin' in project 'Java Portlet API' is not
> 
> available
> 
>>>// ERROR ?  ^
>>
>>No, not an error, a known Maven bug/warning (forgot the issue). You can
> 
> ignore this.
> 
> Thanks, good to know.
> 
> 
> 
>>Check out the errors in the
> 
> jetspeed2\components\security\target\test-reports
> 
>>for TestRdbmsPolicy and TestUserManager. Without more information from
> 
> those
> 
>>nobody can tell.
>>
> 
> 
> Ok, thanks, here are the test reports:
> 
> Testsuite: org.apache.jetspeed.security.TestRdbmsPolicy
> Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 2,266 sec
> 
> ------------- Standard Output ---------------
>  INFO: org.apache.jetspeed.components.jndi.TyrexJNDIComponent - JNDI
> successfully initiallized
>  INFO: org.apache.jetspeed.components.datasource.DBCPDatasourceComponent -
> Setting up data source pooling for org.hsqldb.jdbcDriver
>  INFO: org.apache.jetspeed.components.datasource.DBCPDatasourceComponent -
> Max active connnections set to: 20
>  INFO: org.apache.jetspeed.components.datasource.DBCPDatasourceComponent -
> Pool is set to "2" when all connections are exhausted.
>  INFO: org.apache.jetspeed.components.datasource.DBCPDatasourceComponent -
> Attempting to start DBCPCDatasourceComponent.
>  INFO: org.apache.jetspeed.components.datasource.DBCPDatasourceComponent -
> DBCPCDatasourceComponent successfuly started!
> DEBUG: org.apache.jetspeed.components.jndi.TyrexJNDIComponent - Binding
> org.apache.commons.dbcp.PoolingDataSource@641e9a to name
> comp/env/jdbc/jetspeed
>  INFO: org.apache.jetspeed.components.persistence.store.ojb.pb.PBStore -
> Merging OJB respository:
> file:/C:/bit/dev/project2/jetspeed2/components/security/target/test-classes/META-INF/ojb_repository.xml
>  INFO: org.apache.jetspeed.components.persistence.store.ojb.pb.PBStore -
> Merging OJB respository:
> file:/C:/bit/dev/project2/jetspeed2/components/security/target/classes/META-INF/ojb_repository.xml
>  INFO: org.apache.jetspeed.components.persistence.store.ojb.pb.PBStore -
> Merging OJB respository:
> jar:file:/C:/Documents%20and%20Settings/Administrator.STORM/.maven/repositor
> y/jetspeed2/jars/jetspeed-prefs-2.0-a1-dev.jar!/META-INF/ojb_repository.xml
> DEBUG: org.apache.jetspeed.security.impl.RdbmsPolicy - RdbmsPolicy
> constructed.
> DEBUG: org.apache.jetspeed.security.impl.SecurityProviderImpl -
> java.security.auth.login.config =
> file:/C:/bit/dev/project2/jetspeed2/components/security/target/test-classes/login.conf
> DEBUG: org.apache.jetspeed.security.impl.RdbmsPolicy - RdbmsPolicy refresh
> called.
> DEBUG: org.apache.jetspeed.security.impl.UserManagerImpl - User exists:
> false
> DEBUG: org.apache.jetspeed.security.impl.UserManagerImpl - Added user
> preferences node: /user/anon
> DEBUG: org.apache.jetspeed.security.impl.UserManagerImpl - Added user:
> /user/anon
>   [TestRdbmsPolicy] Creating login context.
> DEBUG: org.apache.jetspeed.security.impl.UserManagerImpl - Credential:
> [[principalId, 121], [value, password], [type, 0], [classname, null],
> [creationDate, 2004-07-22 21:46:36.703], [modifiedDate, 2004-07-22
> 21:46:36.703]]
> ------------- ---------------- ---------------
> ------------- Standard Error -----------------
> javax.security.auth.login.LoginException: Authentication failed: Password
> does not match
>  at
> org.apache.jetspeed.security.impl.RdbmsLoginModule.login(RdbmsLoginModule.ja
> va:167)
>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>  at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
> )
>  at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
> .java:25)
>  at java.lang.reflect.Method.invoke(Method.java:324)
>  at javax.security.auth.login.LoginContext.invoke(LoginContext.java:675)
>  at javax.security.auth.login.LoginContext.access$000(LoginContext.java:129)
>  at javax.security.auth.login.LoginContext$4.run(LoginContext.java:610)
>  at java.security.AccessController.doPrivileged(Native Method)
>  at
> javax.security.auth.login.LoginContext.invokeModule(LoginContext.java:607)
>  at javax.security.auth.login.LoginContext.login(LoginContext.java:534)
>  at
> org.apache.jetspeed.security.TestRdbmsPolicy.setUp(TestRdbmsPolicy.java:63)
>  at junit.framework.TestCase.runBare(TestCase.java:125)
>  at junit.framework.TestResult$1.protect(TestResult.java:106)
>  at junit.framework.TestResult.runProtected(TestResult.java:124)
>  at junit.framework.TestResult.run(TestResult.java:109)
>  at junit.framework.TestCase.run(TestCase.java:118)
>  at junit.framework.TestSuite.runTest(TestSuite.java:208)
>  at junit.framework.TestSuite.run(TestSuite.java:203)
>  at
> org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRu
> nner.java:325)
>  at
> org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestR
> unner.java:536)
> ------------- ---------------- ---------------
> Testcase:
> testPermissionWithSubjectInAccessControlContext(org.apache.jetspeed.security
> .TestRdbmsPolicy): FAILED
>   [TestRdbmsPolicy] Failed to setup test.
> junit.framework.AssertionFailedError:   [TestRdbmsPolicy] Failed to setup
> test.
>  at
> org.apache.jetspeed.security.TestRdbmsPolicy.setUp(TestRdbmsPolicy.java:68)
> 
> 
> "Authentication failed: Password does not match", looks like something is
> wrong with my db setup?
> I didn't change to another db, I kept the hypersonic db that comes with
> jetspeed 2.
> 
> 
> 
> Testsuite: org.apache.jetspeed.security.TestUserManager
> Tests run: 3, Failures: 1, Errors: 0, Time elapsed: 2,515 sec
> 
> ------------- Standard Output ---------------
>  INFO: org.apache.jetspeed.components.jndi.TyrexJNDIComponent - JNDI
> successfully initiallized
>  INFO: org.apache.jetspeed.components.datasource.DBCPDatasourceComponent -
> Setting up data source pooling for org.hsqldb.jdbcDriver
>  INFO: org.apache.jetspeed.components.datasource.DBCPDatasourceComponent -
> Max active connnections set to: 20
>  INFO: org.apache.jetspeed.components.datasource.DBCPDatasourceComponent -
> Pool is set to "2" when all connections are exhausted.
>  INFO: org.apache.jetspeed.components.datasource.DBCPDatasourceComponent -
> Attempting to start DBCPCDatasourceComponent.
>  INFO: org.apache.jetspeed.components.datasource.DBCPDatasourceComponent -
> DBCPCDatasourceComponent successfuly started!
> DEBUG: org.apache.jetspeed.components.jndi.TyrexJNDIComponent - Binding
> org.apache.commons.dbcp.PoolingDataSource@1d85f79 to name
> comp/env/jdbc/jetspeed
>  INFO: org.apache.jetspeed.components.persistence.store.ojb.pb.PBStore -
> Merging OJB respository:
> file:/C:/bit/dev/project2/jetspeed2/components/security/target/test-classes/META-INF/ojb_repository.xml
>  INFO: org.apache.jetspeed.components.persistence.store.ojb.pb.PBStore -
> Merging OJB respository:
> file:/C:/bit/dev/project2/jetspeed2/components/security/target/classes/META-INF/ojb_repository.xml
>  INFO: org.apache.jetspeed.components.persistence.store.ojb.pb.PBStore -
> Merging OJB respository:
> jar:file:/C:/Documents%20and%20Settings/Administrator.STORM/.maven/repositor
> y/jetspeed2/jars/jetspeed-prefs-2.0-a1-dev.jar!/META-INF/ojb_repository.xml
> DEBUG: org.apache.jetspeed.security.impl.RdbmsPolicy - RdbmsPolicy
> constructed.
> DEBUG: org.apache.jetspeed.security.impl.SecurityProviderImpl -
> java.security.auth.login.config =
> file:/C:/bit/dev/project2/jetspeed2/components/security/target/test-classes/login.conf
> DEBUG: org.apache.jetspeed.security.impl.RdbmsPolicy - RdbmsPolicy refresh
> called.
> DEBUG: org.apache.jetspeed.security.impl.UserManagerImpl - User exists: true
> DEBUG: org.apache.jetspeed.security.impl.UserManagerImpl - User: [[id, 121],
> [fullPath, /user/anon]]
> DEBUG: org.apache.jetspeed.security.impl.UserManagerImpl - User exists: true
> DEBUG: org.apache.jetspeed.security.impl.UserManagerImpl - User: [[id, 121],
> [fullPath, /user/anon]]
> DEBUG: org.apache.jetspeed.security.impl.UserManagerImpl - Deleted user:
> /user/anon
> DEBUG: org.apache.jetspeed.security.impl.UserManagerImpl - User exists:
> false
> DEBUG: org.apache.jetspeed.security.impl.UserManagerImpl - User exists:
> false
>  INFO: org.apache.jetspeed.components.jndi.TyrexJNDIComponent - JNDI
> successfully initiallized
>  INFO: org.apache.jetspeed.components.datasource.DBCPDatasourceComponent -
> Setting up data source pooling for org.hsqldb.jdbcDriver
>  INFO: org.apache.jetspeed.components.datasource.DBCPDatasourceComponent -
> Max active connnections set to: 20
>  INFO: org.apache.jetspeed.components.datasource.DBCPDatasourceComponent -
> Pool is set to "2" when all connections are exhausted.
>  INFO: org.apache.jetspeed.components.datasource.DBCPDatasourceComponent -
> Attempting to start DBCPCDatasourceComponent.
>  INFO: org.apache.jetspeed.components.datasource.DBCPDatasourceComponent -
> DBCPCDatasourceComponent successfuly started!
> DEBUG: org.apache.jetspeed.components.jndi.TyrexJNDIComponent - Binding
> org.apache.commons.dbcp.PoolingDataSource@676437 to name
> comp/env/jdbc/jetspeed
>  INFO: org.apache.jetspeed.components.persistence.store.ojb.pb.PBStore -
> Merging OJB respository:
> file:/C:/bit/dev/project2/jetspeed2/components/security/target/test-classes/META-INF/ojb_repository.xml
>  INFO: org.apache.jetspeed.components.persistence.store.ojb.pb.PBStore -
> Merging OJB respository:
> file:/C:/bit/dev/project2/jetspeed2/components/security/target/classes/META-INF/ojb_repository.xml
>  INFO: org.apache.jetspeed.components.persistence.store.ojb.pb.PBStore -
> Merging OJB respository:
> jar:file:/C:/Documents%20and%20Settings/Administrator.STORM/.maven/repositor
> y/jetspeed2/jars/jetspeed-prefs-2.0-a1-dev.jar!/META-INF/ojb_repository.xml
> DEBUG: org.apache.jetspeed.security.impl.RdbmsPolicy - RdbmsPolicy
> constructed.
> DEBUG: org.apache.jetspeed.security.impl.SecurityProviderImpl -
> java.security.auth.login.config =
> file:/C:/bit/dev/project2/jetspeed2/components/security/target/test-classes/login.conf
> DEBUG: org.apache.jetspeed.security.impl.RdbmsPolicy - RdbmsPolicy refresh
> called.
> DEBUG: org.apache.jetspeed.security.impl.UserManagerImpl - User exists:
> false
> DEBUG: org.apache.jetspeed.security.impl.UserManagerImpl - Added user
> preferences node: /user/test
> DEBUG: org.apache.jetspeed.security.impl.UserManagerImpl - Added user:
> /user/test
> DEBUG: org.apache.jetspeed.security.impl.UserManagerImpl - User exists:
> false
> DEBUG: org.apache.jetspeed.security.impl.UserManagerImpl - User exists: true
> DEBUG: org.apache.jetspeed.security.impl.UserManagerImpl - User: [[id, 201],
> [fullPath, /user/test]]
> DEBUG: org.apache.jetspeed.security.impl.UserManagerImpl - Deleted user:
> /user/test
> DEBUG: org.apache.jetspeed.security.impl.UserManagerImpl - User exists:
> false
>  INFO: org.apache.jetspeed.components.jndi.TyrexJNDIComponent - JNDI
> successfully initiallized
>  INFO: org.apache.jetspeed.components.datasource.DBCPDatasourceComponent -
> Setting up data source pooling for org.hsqldb.jdbcDriver
>  INFO: org.apache.jetspeed.components.datasource.DBCPDatasourceComponent -
> Max active connnections set to: 20
>  INFO: org.apache.jetspeed.components.datasource.DBCPDatasourceComponent -
> Pool is set to "2" when all connections are exhausted.
>  INFO: org.apache.jetspeed.components.datasource.DBCPDatasourceComponent -
> Attempting to start DBCPCDatasourceComponent.
>  INFO: org.apache.jetspeed.components.datasource.DBCPDatasourceComponent -
> DBCPCDatasourceComponent successfuly started!
> DEBUG: org.apache.jetspeed.components.jndi.TyrexJNDIComponent - Binding
> org.apache.commons.dbcp.PoolingDataSource@1c50507 to name
> comp/env/jdbc/jetspeed
>  INFO: org.apache.jetspeed.components.persistence.store.ojb.pb.PBStore -
> Merging OJB respository:
> file:/C:/bit/dev/project2/jetspeed2/components/security/target/test-classes/META-INF/ojb_repository.xml
>  INFO: org.apache.jetspeed.components.persistence.store.ojb.pb.PBStore -
> Merging OJB respository:
> file:/C:/bit/dev/project2/jetspeed2/components/security/target/classes/META-INF/ojb_repository.xml
>  INFO: org.apache.jetspeed.components.persistence.store.ojb.pb.PBStore -
> Merging OJB respository:
> jar:file:/C:/Documents%20and%20Settings/Administrator.STORM/.maven/repositor
> y/jetspeed2/jars/jetspeed-prefs-2.0-a1-dev.jar!/META-INF/ojb_repository.xml
> DEBUG: org.apache.jetspeed.security.impl.RdbmsPolicy - RdbmsPolicy
> constructed.
> DEBUG: org.apache.jetspeed.security.impl.SecurityProviderImpl -
> java.security.auth.login.config =
> file:/C:/bit/dev/project2/jetspeed2/components/security/target/test-classes/login.conf
> DEBUG: org.apache.jetspeed.security.impl.RdbmsPolicy - RdbmsPolicy refresh
> called.
> DEBUG: org.apache.jetspeed.security.impl.UserManagerImpl - User exists:
> false
> DEBUG: org.apache.jetspeed.security.impl.UserManagerImpl - Added user
> preferences node: /user/anon
> DEBUG: org.apache.jetspeed.security.impl.UserManagerImpl - Added user:
> /user/anon
> DEBUG: org.apache.jetspeed.security.impl.UserManagerImpl - Credential:
> [[principalId, 202], [value, newpassword], [type, 0], [classname, null],
> [creationDate, 2004-07-22 21:46:47.734], [modifiedDate, 2004-07-22
> 21:46:47.734]]
> DEBUG: org.apache.jetspeed.security.impl.UserManagerImpl - User exists: true
> DEBUG: org.apache.jetspeed.security.impl.UserManagerImpl - User: [[id, 202],
> [fullPath, /user/anon]]
> DEBUG: org.apache.jetspeed.security.impl.UserManagerImpl - Deleted user:
> /user/anon
> DEBUG: org.apache.jetspeed.security.impl.UserManagerImpl - User exists:
> false
> DEBUG: org.apache.jetspeed.security.impl.UserManagerImpl - User exists:
> false
> ------------- ---------------- ---------------
> Testcase: testAddRemoveUser(org.apache.jetspeed.security.TestUserManager):
> FAILED
> user already exists. exception caught:
> org.apache.jetspeed.security.SecurityException: The user already exists.
> anon
> junit.framework.AssertionFailedError: user already exists. exception caught:
> org.apache.jetspeed.security.SecurityException: The user already exists.
> anon
>  at
> org.apache.jetspeed.security.TestUserManager.testAddRemoveUser(TestUserManag
> er.java:74)
>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>  at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
> )
>  at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
> .java:25)
> 
> 
> I have no idea about this error...
> Thanks for your help,
> 
> -Stijn
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org
> 
> 
> 
> 




---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org


Re: TestRdbmsPolicy FAILED when trying to build J2

Posted by Stijn de Witt <St...@bergland-it.nl>.
Thanks Ate.
More below...

----- Original Message ----- 
From: "Ate Douma" <at...@douma.nu>
To: "Jetspeed Developers List" <je...@jakarta.apache.org>
Sent: Thursday, July 22, 2004 11:20 PM
Subject: Re: TestRdbmsPolicy FAILED when trying to build J2


> > C:\bit\dev\project2\jetspeed2>maven allClean allBuild
> > Plugin 'maven-deploy-plugin' in project 'Java Portlet API' is not
available
> >
> > // ERROR ?  ^
> No, not an error, a known Maven bug/warning (forgot the issue). You can
ignore this.
>
Thanks, good to know.


> >
> Check out the errors in the
jetspeed2\components\security\target\test-reports
> for TestRdbmsPolicy and TestUserManager. Without more information from
those
> nobody can tell.
>

Ok, thanks, here are the test reports:

Testsuite: org.apache.jetspeed.security.TestRdbmsPolicy
Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 2,266 sec

------------- Standard Output ---------------
 INFO: org.apache.jetspeed.components.jndi.TyrexJNDIComponent - JNDI
successfully initiallized
 INFO: org.apache.jetspeed.components.datasource.DBCPDatasourceComponent -
Setting up data source pooling for org.hsqldb.jdbcDriver
 INFO: org.apache.jetspeed.components.datasource.DBCPDatasourceComponent -
Max active connnections set to: 20
 INFO: org.apache.jetspeed.components.datasource.DBCPDatasourceComponent -
Pool is set to "2" when all connections are exhausted.
 INFO: org.apache.jetspeed.components.datasource.DBCPDatasourceComponent -
Attempting to start DBCPCDatasourceComponent.
 INFO: org.apache.jetspeed.components.datasource.DBCPDatasourceComponent -
DBCPCDatasourceComponent successfuly started!
DEBUG: org.apache.jetspeed.components.jndi.TyrexJNDIComponent - Binding
org.apache.commons.dbcp.PoolingDataSource@641e9a to name
comp/env/jdbc/jetspeed
 INFO: org.apache.jetspeed.components.persistence.store.ojb.pb.PBStore -
Merging OJB respository:
file:/C:/bit/dev/project2/jetspeed2/components/security/target/test-classes/META-INF/ojb_repository.xml
 INFO: org.apache.jetspeed.components.persistence.store.ojb.pb.PBStore -
Merging OJB respository:
file:/C:/bit/dev/project2/jetspeed2/components/security/target/classes/META-INF/ojb_repository.xml
 INFO: org.apache.jetspeed.components.persistence.store.ojb.pb.PBStore -
Merging OJB respository:
jar:file:/C:/Documents%20and%20Settings/Administrator.STORM/.maven/repositor
y/jetspeed2/jars/jetspeed-prefs-2.0-a1-dev.jar!/META-INF/ojb_repository.xml
DEBUG: org.apache.jetspeed.security.impl.RdbmsPolicy - RdbmsPolicy
constructed.
DEBUG: org.apache.jetspeed.security.impl.SecurityProviderImpl -
java.security.auth.login.config =
file:/C:/bit/dev/project2/jetspeed2/components/security/target/test-classes/login.conf
DEBUG: org.apache.jetspeed.security.impl.RdbmsPolicy - RdbmsPolicy refresh
called.
DEBUG: org.apache.jetspeed.security.impl.UserManagerImpl - User exists:
false
DEBUG: org.apache.jetspeed.security.impl.UserManagerImpl - Added user
preferences node: /user/anon
DEBUG: org.apache.jetspeed.security.impl.UserManagerImpl - Added user:
/user/anon
  [TestRdbmsPolicy] Creating login context.
DEBUG: org.apache.jetspeed.security.impl.UserManagerImpl - Credential:
[[principalId, 121], [value, password], [type, 0], [classname, null],
[creationDate, 2004-07-22 21:46:36.703], [modifiedDate, 2004-07-22
21:46:36.703]]
------------- ---------------- ---------------
------------- Standard Error -----------------
javax.security.auth.login.LoginException: Authentication failed: Password
does not match
 at
org.apache.jetspeed.security.impl.RdbmsLoginModule.login(RdbmsLoginModule.ja
va:167)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
 at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at javax.security.auth.login.LoginContext.invoke(LoginContext.java:675)
 at javax.security.auth.login.LoginContext.access$000(LoginContext.java:129)
 at javax.security.auth.login.LoginContext$4.run(LoginContext.java:610)
 at java.security.AccessController.doPrivileged(Native Method)
 at
javax.security.auth.login.LoginContext.invokeModule(LoginContext.java:607)
 at javax.security.auth.login.LoginContext.login(LoginContext.java:534)
 at
org.apache.jetspeed.security.TestRdbmsPolicy.setUp(TestRdbmsPolicy.java:63)
 at junit.framework.TestCase.runBare(TestCase.java:125)
 at junit.framework.TestResult$1.protect(TestResult.java:106)
 at junit.framework.TestResult.runProtected(TestResult.java:124)
 at junit.framework.TestResult.run(TestResult.java:109)
 at junit.framework.TestCase.run(TestCase.java:118)
 at junit.framework.TestSuite.runTest(TestSuite.java:208)
 at junit.framework.TestSuite.run(TestSuite.java:203)
 at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRu
nner.java:325)
 at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestR
unner.java:536)
------------- ---------------- ---------------
Testcase:
testPermissionWithSubjectInAccessControlContext(org.apache.jetspeed.security
.TestRdbmsPolicy): FAILED
  [TestRdbmsPolicy] Failed to setup test.
junit.framework.AssertionFailedError:   [TestRdbmsPolicy] Failed to setup
test.
 at
org.apache.jetspeed.security.TestRdbmsPolicy.setUp(TestRdbmsPolicy.java:68)


"Authentication failed: Password does not match", looks like something is
wrong with my db setup?
I didn't change to another db, I kept the hypersonic db that comes with
jetspeed 2.



Testsuite: org.apache.jetspeed.security.TestUserManager
Tests run: 3, Failures: 1, Errors: 0, Time elapsed: 2,515 sec

------------- Standard Output ---------------
 INFO: org.apache.jetspeed.components.jndi.TyrexJNDIComponent - JNDI
successfully initiallized
 INFO: org.apache.jetspeed.components.datasource.DBCPDatasourceComponent -
Setting up data source pooling for org.hsqldb.jdbcDriver
 INFO: org.apache.jetspeed.components.datasource.DBCPDatasourceComponent -
Max active connnections set to: 20
 INFO: org.apache.jetspeed.components.datasource.DBCPDatasourceComponent -
Pool is set to "2" when all connections are exhausted.
 INFO: org.apache.jetspeed.components.datasource.DBCPDatasourceComponent -
Attempting to start DBCPCDatasourceComponent.
 INFO: org.apache.jetspeed.components.datasource.DBCPDatasourceComponent -
DBCPCDatasourceComponent successfuly started!
DEBUG: org.apache.jetspeed.components.jndi.TyrexJNDIComponent - Binding
org.apache.commons.dbcp.PoolingDataSource@1d85f79 to name
comp/env/jdbc/jetspeed
 INFO: org.apache.jetspeed.components.persistence.store.ojb.pb.PBStore -
Merging OJB respository:
file:/C:/bit/dev/project2/jetspeed2/components/security/target/test-classes/META-INF/ojb_repository.xml
 INFO: org.apache.jetspeed.components.persistence.store.ojb.pb.PBStore -
Merging OJB respository:
file:/C:/bit/dev/project2/jetspeed2/components/security/target/classes/META-INF/ojb_repository.xml
 INFO: org.apache.jetspeed.components.persistence.store.ojb.pb.PBStore -
Merging OJB respository:
jar:file:/C:/Documents%20and%20Settings/Administrator.STORM/.maven/repositor
y/jetspeed2/jars/jetspeed-prefs-2.0-a1-dev.jar!/META-INF/ojb_repository.xml
DEBUG: org.apache.jetspeed.security.impl.RdbmsPolicy - RdbmsPolicy
constructed.
DEBUG: org.apache.jetspeed.security.impl.SecurityProviderImpl -
java.security.auth.login.config =
file:/C:/bit/dev/project2/jetspeed2/components/security/target/test-classes/login.conf
DEBUG: org.apache.jetspeed.security.impl.RdbmsPolicy - RdbmsPolicy refresh
called.
DEBUG: org.apache.jetspeed.security.impl.UserManagerImpl - User exists: true
DEBUG: org.apache.jetspeed.security.impl.UserManagerImpl - User: [[id, 121],
[fullPath, /user/anon]]
DEBUG: org.apache.jetspeed.security.impl.UserManagerImpl - User exists: true
DEBUG: org.apache.jetspeed.security.impl.UserManagerImpl - User: [[id, 121],
[fullPath, /user/anon]]
DEBUG: org.apache.jetspeed.security.impl.UserManagerImpl - Deleted user:
/user/anon
DEBUG: org.apache.jetspeed.security.impl.UserManagerImpl - User exists:
false
DEBUG: org.apache.jetspeed.security.impl.UserManagerImpl - User exists:
false
 INFO: org.apache.jetspeed.components.jndi.TyrexJNDIComponent - JNDI
successfully initiallized
 INFO: org.apache.jetspeed.components.datasource.DBCPDatasourceComponent -
Setting up data source pooling for org.hsqldb.jdbcDriver
 INFO: org.apache.jetspeed.components.datasource.DBCPDatasourceComponent -
Max active connnections set to: 20
 INFO: org.apache.jetspeed.components.datasource.DBCPDatasourceComponent -
Pool is set to "2" when all connections are exhausted.
 INFO: org.apache.jetspeed.components.datasource.DBCPDatasourceComponent -
Attempting to start DBCPCDatasourceComponent.
 INFO: org.apache.jetspeed.components.datasource.DBCPDatasourceComponent -
DBCPCDatasourceComponent successfuly started!
DEBUG: org.apache.jetspeed.components.jndi.TyrexJNDIComponent - Binding
org.apache.commons.dbcp.PoolingDataSource@676437 to name
comp/env/jdbc/jetspeed
 INFO: org.apache.jetspeed.components.persistence.store.ojb.pb.PBStore -
Merging OJB respository:
file:/C:/bit/dev/project2/jetspeed2/components/security/target/test-classes/META-INF/ojb_repository.xml
 INFO: org.apache.jetspeed.components.persistence.store.ojb.pb.PBStore -
Merging OJB respository:
file:/C:/bit/dev/project2/jetspeed2/components/security/target/classes/META-INF/ojb_repository.xml
 INFO: org.apache.jetspeed.components.persistence.store.ojb.pb.PBStore -
Merging OJB respository:
jar:file:/C:/Documents%20and%20Settings/Administrator.STORM/.maven/repositor
y/jetspeed2/jars/jetspeed-prefs-2.0-a1-dev.jar!/META-INF/ojb_repository.xml
DEBUG: org.apache.jetspeed.security.impl.RdbmsPolicy - RdbmsPolicy
constructed.
DEBUG: org.apache.jetspeed.security.impl.SecurityProviderImpl -
java.security.auth.login.config =
file:/C:/bit/dev/project2/jetspeed2/components/security/target/test-classes/login.conf
DEBUG: org.apache.jetspeed.security.impl.RdbmsPolicy - RdbmsPolicy refresh
called.
DEBUG: org.apache.jetspeed.security.impl.UserManagerImpl - User exists:
false
DEBUG: org.apache.jetspeed.security.impl.UserManagerImpl - Added user
preferences node: /user/test
DEBUG: org.apache.jetspeed.security.impl.UserManagerImpl - Added user:
/user/test
DEBUG: org.apache.jetspeed.security.impl.UserManagerImpl - User exists:
false
DEBUG: org.apache.jetspeed.security.impl.UserManagerImpl - User exists: true
DEBUG: org.apache.jetspeed.security.impl.UserManagerImpl - User: [[id, 201],
[fullPath, /user/test]]
DEBUG: org.apache.jetspeed.security.impl.UserManagerImpl - Deleted user:
/user/test
DEBUG: org.apache.jetspeed.security.impl.UserManagerImpl - User exists:
false
 INFO: org.apache.jetspeed.components.jndi.TyrexJNDIComponent - JNDI
successfully initiallized
 INFO: org.apache.jetspeed.components.datasource.DBCPDatasourceComponent -
Setting up data source pooling for org.hsqldb.jdbcDriver
 INFO: org.apache.jetspeed.components.datasource.DBCPDatasourceComponent -
Max active connnections set to: 20
 INFO: org.apache.jetspeed.components.datasource.DBCPDatasourceComponent -
Pool is set to "2" when all connections are exhausted.
 INFO: org.apache.jetspeed.components.datasource.DBCPDatasourceComponent -
Attempting to start DBCPCDatasourceComponent.
 INFO: org.apache.jetspeed.components.datasource.DBCPDatasourceComponent -
DBCPCDatasourceComponent successfuly started!
DEBUG: org.apache.jetspeed.components.jndi.TyrexJNDIComponent - Binding
org.apache.commons.dbcp.PoolingDataSource@1c50507 to name
comp/env/jdbc/jetspeed
 INFO: org.apache.jetspeed.components.persistence.store.ojb.pb.PBStore -
Merging OJB respository:
file:/C:/bit/dev/project2/jetspeed2/components/security/target/test-classes/META-INF/ojb_repository.xml
 INFO: org.apache.jetspeed.components.persistence.store.ojb.pb.PBStore -
Merging OJB respository:
file:/C:/bit/dev/project2/jetspeed2/components/security/target/classes/META-INF/ojb_repository.xml
 INFO: org.apache.jetspeed.components.persistence.store.ojb.pb.PBStore -
Merging OJB respository:
jar:file:/C:/Documents%20and%20Settings/Administrator.STORM/.maven/repositor
y/jetspeed2/jars/jetspeed-prefs-2.0-a1-dev.jar!/META-INF/ojb_repository.xml
DEBUG: org.apache.jetspeed.security.impl.RdbmsPolicy - RdbmsPolicy
constructed.
DEBUG: org.apache.jetspeed.security.impl.SecurityProviderImpl -
java.security.auth.login.config =
file:/C:/bit/dev/project2/jetspeed2/components/security/target/test-classes/login.conf
DEBUG: org.apache.jetspeed.security.impl.RdbmsPolicy - RdbmsPolicy refresh
called.
DEBUG: org.apache.jetspeed.security.impl.UserManagerImpl - User exists:
false
DEBUG: org.apache.jetspeed.security.impl.UserManagerImpl - Added user
preferences node: /user/anon
DEBUG: org.apache.jetspeed.security.impl.UserManagerImpl - Added user:
/user/anon
DEBUG: org.apache.jetspeed.security.impl.UserManagerImpl - Credential:
[[principalId, 202], [value, newpassword], [type, 0], [classname, null],
[creationDate, 2004-07-22 21:46:47.734], [modifiedDate, 2004-07-22
21:46:47.734]]
DEBUG: org.apache.jetspeed.security.impl.UserManagerImpl - User exists: true
DEBUG: org.apache.jetspeed.security.impl.UserManagerImpl - User: [[id, 202],
[fullPath, /user/anon]]
DEBUG: org.apache.jetspeed.security.impl.UserManagerImpl - Deleted user:
/user/anon
DEBUG: org.apache.jetspeed.security.impl.UserManagerImpl - User exists:
false
DEBUG: org.apache.jetspeed.security.impl.UserManagerImpl - User exists:
false
------------- ---------------- ---------------
Testcase: testAddRemoveUser(org.apache.jetspeed.security.TestUserManager):
FAILED
user already exists. exception caught:
org.apache.jetspeed.security.SecurityException: The user already exists.
anon
junit.framework.AssertionFailedError: user already exists. exception caught:
org.apache.jetspeed.security.SecurityException: The user already exists.
anon
 at
org.apache.jetspeed.security.TestUserManager.testAddRemoveUser(TestUserManag
er.java:74)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
 at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)


I have no idea about this error...
Thanks for your help,

-Stijn


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org


Re: TestRdbmsPolicy FAILED when trying to build J2

Posted by Ate Douma <at...@douma.nu>.

Stijn de Witt wrote:
> Hi,
> 
> I've been trying to compile jetspeed 2, but the build fails. Could any of
> the experts here at the dev list maybe shed some light on this? I have been
> working with Jetspeed 1 for a while now, but Jetspeed 2 is new to me...
> 
> 
> C:\bit\dev\project2\jetspeed2>maven allClean allBuild
> Plugin 'maven-deploy-plugin' in project 'Java Portlet API' is not available
> 
> // ERROR ?  ^
No, not an error, a known Maven bug/warning (forgot the issue). You can ignore this.

>     [junit] [ERROR] TEST org.apache.jetspeed.security.TestRdbmsPolicy FAILED
>     [junit] [ERROR] TEST org.apache.jetspeed.security.TestUserManager FAILED
> 
> BUILD FAILED
> File...... C:\bit\dev\project2\jetspeed2\maven.xml
> Element... maven:reactor
> Line...... 235
> Column.... 40
> Unable to obtain goal [test:test] -- C:\Documents and
> Settings\Administrator.STORM\.maven\cache\mave
> n-test-plugin-1.6.2\plugin.jelly:181:54: <fail> There were test failures.
> Total time: 19 minutes 14 seconds
> Finished at: Thu Jul 22 21:40:16 CEST 2004
> 
Check out the errors in the jetspeed2\components\security\target\test-reports 
for TestRdbmsPolicy and TestUserManager. Without more information from those 
nobody can tell.


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org


Re: TestRdbmsPolicy FAILED when trying to build J2

Posted by Stijn de Witt <St...@bergland-it.nl>.
Oh, I forgot to mention my environment

Win 2000
Tomcat 5.0.18
Maven 1.0
Ant 1.6 beta

I am using the Hypersonic DB that comes with Jetspeed 2 and it is listening
in another console window for connections. Also the logging shows the
generated SQL being executed succesfully.

-Stijn

----- Original Message ----- 
From: "Stijn de Witt" <St...@bergland-it.nl>
To: <je...@jakarta.apache.org>
Sent: Thursday, July 22, 2004 10:08 PM
Subject: TestRdbmsPolicy FAILED when trying to build J2


> Hi,
>
> I've been trying to compile jetspeed 2, but the build fails. Could any of
> the experts here at the dev list maybe shed some light on this? I have
been
> working with Jetspeed 1 for a while now, but Jetspeed 2 is new to me...
>
>
> C:\bit\dev\project2\jetspeed2>maven allClean allBuild
>  __  __
> |  \/  |__ _Apache__ ___
> | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
> |_|  |_\__,_|\_/\___|_||_|  v. 1.0
>
> Starting the reactor...
> Our processing order:
> Java Portlet API
> Jetspeed-2 Core API
> Jetspeed-2 Portal Commons
>
> <SNIP>
>
> allBuild:
> check.required.properties:
>
> torque:init:
>
> db.scripts.gen:
>     [echo] Generating SQL schema creation scripts for HSQLDB
>
> <SNIP>
>
> db.create:
> db.execute:
>     [sql] Executing file:
> C:\bit\dev\project2\jetspeed2\target\src\sql\hsql\phase3ojb-schema.sql
>
> <SNIP>
>
> Starting the reactor...
> Our processing order:
> Java Portlet API
> +----------------------------------------
> | Build and Install the Portlet API jar Java Portlet API
> | Memory: 34M/60M
> +----------------------------------------
> Probeer commons-jelly-tags-xml-20040613.030723.jar te downloaden.
> 33K downloaded
> Probeer commons-net-1.1.0.jar te downloaden.
> 139K downloaded
> Plugin 'maven-deploy-plugin' in project 'Java Portlet API' is not
available
>
> // ERROR ?  ^
>
> build:start:
>
> java:prepare-filesystem:
>     [mkdir] Created dir:
> C:\bit\dev\project2\jetspeed2\portlet-api\target\classes
>
> java:compile:
>     [echo] Compiling to
> C:\bit\dev\project2\jetspeed2\portlet-api/target/classes
>     [javac] Compiling 27 source files to
> C:\bit\dev\project2\jetspeed2\portlet-api\target\classes
>
> <SNIP>
>
> jar:jar:
>     [jar] Building jar:
>
C:\bit\dev\project2\jetspeed2\components\registry\target\jetspeed-registry-2
> .0-a1-dev.jar
> Copying: from
>
'C:\bit\dev\project2\jetspeed2\components\registry\target\jetspeed-registry-
> 2.0-a1-dev
> .jar' to: 'C:\Documents and
> Settings\Administrator.STORM\.maven\repository\jetspeed2\jars\jetspeed-r
> egistry-2.0-a1-dev.jar'
> Copying: from
> 'C:\bit\dev\project2\jetspeed2\components\registry\project.xml' to:
> 'C:\Documents and
>
Settings\Administrator.STORM\.maven\repository\jetspeed2\poms\jetspeed-regis
> try-2.0-a1-dev.pom'
> Starting the reactor...
> Our processing order:
> Jetspeed-2 Security Components
> +----------------------------------------
> | Build and Install the Security Components jar Jetspeed-2 Security
> Components
> | Memory: 46M/61M
> +----------------------------------------
> Plugin 'maven-deploy-plugin' in project 'Jetspeed-2 Security Components'
is
> not available
>
> jar:install:
>
> build:end:
>
> build:start:
>
> java:prepare-filesystem:
>     [mkdir] Created dir:
> C:\bit\dev\project2\jetspeed2\components\security\target\classes
>
> java:compile:
>     [echo] Compiling to
> C:\bit\dev\project2\jetspeed2\components\security/target/classes
>     [javac] Compiling 26 source files to
> C:\bit\dev\project2\jetspeed2\components\security\target\cl
> asses
>
> java:jar-resources:
> Copying 4 files to
> C:\bit\dev\project2\jetspeed2\components\security\target\classes
> Copied 1 empty directory to
> C:\bit\dev\project2\jetspeed2\components\security\target\classes
>
> test:prepare-filesystem:
>     [mkdir] Created dir:
> C:\bit\dev\project2\jetspeed2\components\security\target\test-classes
>     [mkdir] Created dir:
> C:\bit\dev\project2\jetspeed2\components\security\target\test-reports
>
> test:test-resources:
> Copying 5 files to
> C:\bit\dev\project2\jetspeed2\components\security\target\test-classes
> Copied 4 empty directories to
> C:\bit\dev\project2\jetspeed2\components\security\target\test-classes
> Copying 4 files to
> C:\bit\dev\project2\jetspeed2\components\security\target\test-classes
>
> test:compile:
>     [javac] Compiling 10 source files to
> C:\bit\dev\project2\jetspeed2\components\security\target\te
> st-classes
>
> test:test:
> dbSetup:
>     [copy] Copying 1 file to
> C:\bit\dev\project2\jetspeed2\components\security\target\test-classes
>
>     [junit] Running org.apache.jetspeed.security.TestAggregationHierarchy
>     [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 2,5 sec
>     [junit] Running
org.apache.jetspeed.security.TestGeneralizationHierarchy
>     [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 2,484 sec
>     [junit] Running org.apache.jetspeed.security.TestGroupManager
>     [junit] Tests run: 8, Failures: 0, Errors: 0, Time elapsed: 3,938 sec
>     [junit] Running org.apache.jetspeed.security.TestLoginModule
>     [junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 2,407 sec
>     [junit] Running org.apache.jetspeed.security.TestPermissionManager
>     [junit] Tests run: 6, Failures: 0, Errors: 0, Time elapsed: 3,75 sec
>     [junit] Running org.apache.jetspeed.security.TestRdbmsPolicy
>     [junit] Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 2,282 sec
>     [junit] [ERROR] TEST org.apache.jetspeed.security.TestRdbmsPolicy
FAILED
>     [junit] Running org.apache.jetspeed.security.TestRoleManager
>     [junit] Tests run: 12, Failures: 0, Errors: 0, Time elapsed: 4,75 sec
>     [junit] Running org.apache.jetspeed.security.TestSecurityHelper
>     [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 1,782 sec
>     [junit] Running org.apache.jetspeed.security.TestUserManager
>     [junit] Tests run: 3, Failures: 1, Errors: 0, Time elapsed: 3,015 sec
>     [junit] [ERROR] TEST org.apache.jetspeed.security.TestUserManager
FAILED
>
> BUILD FAILED
> File...... C:\bit\dev\project2\jetspeed2\maven.xml
> Element... maven:reactor
> Line...... 235
> Column.... 40
> Unable to obtain goal [test:test] -- C:\Documents and
> Settings\Administrator.STORM\.maven\cache\mave
> n-test-plugin-1.6.2\plugin.jelly:181:54: <fail> There were test failures.
> Total time: 19 minutes 14 seconds
> Finished at: Thu Jul 22 21:40:16 CEST 2004
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org