portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stijn de Witt" <Stijn.deW...@bergland-it.nl>
Subject Re: TestRdbmsPolicy FAILED when trying to build J2
Date Sat, 24 Jul 2004 22:36:25 GMT
Thanks, I'll try that.
-Stijn

----- Original Message ----- 
From: "Ate Douma" <ate@douma.nu>
To: "Jetspeed Developers List" <jetspeed-dev@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" <ate@douma.nu>
> > To: "Jetspeed Developers List" <jetspeed-dev@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


Mime
View raw message