Re: [Acegisecurity-developer] build failed

2008-01-14 Thread Luke Taylor
I think these should problems should be easy to fix. One seems to be 
because a test is checking the message from an exception (which is 
obviously a bad idea, given that we now support different languages). 
The other is to do with the equality of two different UserDetails 
objects - they aren't matching if the authorities are in a different order.

I will try and fix things up tonight to prevent this happening.

Luke.

Candide Kemmler wrote:
 Hi Ray,
 
 I have wiped everything in my working copy directory, then re-co'd
 everything and run mvn install, and still got the same errors.
 
 Attached is a patch containing the 3 tiny hacks I had to write for the
 project to compile. Maybe you have more insight than me to understand what
 was going wrong (except for the language issue).
 
 I'm still stuck with Eclipse. What IDE do you guys use, if any? Any hints
 about IDE usage would be very welcomed (.project .classpath anyone?)
 
 On Jan 12, 2008 9:51 PM, Ray Krueger [EMAIL PROTECTED] wrote:
 
 I had a bad file or two that was causing trouble. I blew those out and
 got fresh code from SVN and all is well.
 Candide be sure to run mvn install first and foremost.


-- 
  Luke Taylor.  Monkey Machine Ltd.
  PGP Key ID: 0x57E9523Chttp://www.monkeymachine.ltd.uk


-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
___
Home: http://acegisecurity.org
Acegisecurity-developer mailing list
Acegisecurity-developer@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer


Re: [Acegisecurity-developer] build failed

2008-01-13 Thread Candide Kemmler
Hi Ray,

I have wiped everything in my working copy directory, then re-co'd
everything and run mvn install, and still got the same errors.

Attached is a patch containing the 3 tiny hacks I had to write for the
project to compile. Maybe you have more insight than me to understand what
was going wrong (except for the language issue).

I'm still stuck with Eclipse. What IDE do you guys use, if any? Any hints
about IDE usage would be very welcomed (.project .classpath anyone?)

On Jan 12, 2008 9:51 PM, Ray Krueger [EMAIL PROTECTED] wrote:

 I had a bad file or two that was causing trouble. I blew those out and
 got fresh code from SVN and all is well.
 Candide be sure to run mvn install first and foremost.

 On Jan 11, 2008 1:01 PM, Ray Krueger [EMAIL PROTECTED] wrote:
  Yeah, I think we have a problem building on Windows.
  I had a problem this morning on my Windows laptop. Once I got into the
  office I pulled the code down to my linux workstation and simply ran
  mvn install, everything went off without a hitch.
 
  I'll look at it on my train ride home I think :)
 
 
  On Jan 11, 2008 11:50 AM, Candide Kemmler [EMAIL PROTECTED] wrote:
   I'm running java -version:
   java version 1.6.0
   Java(TM) SE Runtime Environment (build 1.6.0-b105)
   Java HotSpot(TM) Client VM (build 1.6.0-b105, mixed mode)
  
   on Windows XP French
   I have 2Gb of RAM,...
  
   what else?
  
   Looks like at least one error is due to my system being in french :-(
  
   And for something else: I have problems using Eclipse
   I have everywhere messages of the form The hierarchy of the type xxx
 is
   inconsistent
   Any idea what can be done against it?
   Or, more simply: couldn't someone just hand me their .project and
 .classpath
   files?
  
   --
   Candide Kemmler
   http://www.palacehotel.org/
  
  
   11/13 avenue Reine Marie-Henriette
   1190 Bruxelles
   mobile:+32485067980
 
  
 -
   Check out the new SourceForge.net Marketplace.
   It's the best place to buy or sell services for
   just about anything Open Source.
  
 http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
   ___
   Home: http://acegisecurity.org
   Acegisecurity-developer mailing list
   Acegisecurity-developer@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer
  
  
 

 -
 Check out the new SourceForge.net Marketplace.
 It's the best place to buy or sell services for
 just about anything Open Source.

 http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
 ___
 Home: http://acegisecurity.org
 Acegisecurity-developer mailing list
 Acegisecurity-developer@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer




-- 
Candide Kemmler
http://www.palacehotel.org/
11/13 avenue Reine Marie-Henriette
1190 Bruxelles
mobile:+32485067980


acegisecurity.patch
Description: Binary data
-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace___
Home: http://acegisecurity.org
Acegisecurity-developer mailing list
Acegisecurity-developer@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer


Re: [Acegisecurity-developer] build failed

2008-01-13 Thread Ray Krueger
Yeah, the unit tests will only pass in English.

Try this (without your changes)

set MAVEN_OPTS=-Duser.language=en -Duser.region=US
mvn install


On Jan 13, 2008 7:03 AM, Candide Kemmler [EMAIL PROTECTED] wrote:
 Hi Ray,

 I have wiped everything in my working copy directory, then re-co'd
 everything and run mvn install, and still got the same errors.

 Attached is a patch containing the 3 tiny hacks I had to write for the
 project to compile. Maybe you have more insight than me to understand what
 was going wrong (except for the language issue).

 I'm still stuck with Eclipse. What IDE do you guys use, if any? Any hints
 about IDE usage would be very welcomed (.project .classpath anyone?)



 On Jan 12, 2008 9:51 PM, Ray Krueger  [EMAIL PROTECTED] wrote:
  I had a bad file or two that was causing trouble. I blew those out and
  got fresh code from SVN and all is well.
  Candide be sure to run mvn install first and foremost.
 
 
 
 
  On Jan 11, 2008 1:01 PM, Ray Krueger  [EMAIL PROTECTED] wrote:
   Yeah, I think we have a problem building on Windows.
   I had a problem this morning on my Windows laptop. Once I got into the
   office I pulled the code down to my linux workstation and simply ran
   mvn install, everything went off without a hitch.
  
   I'll look at it on my train ride home I think :)
  
  
   On Jan 11, 2008 11:50 AM, Candide Kemmler  [EMAIL PROTECTED] wrote:
I'm running java -version:
java version 1.6.0
Java(TM) SE Runtime Environment (build 1.6.0-b105)
Java HotSpot(TM) Client VM (build 1.6.0-b105, mixed mode)
   
on Windows XP French
I have 2Gb of RAM,...
   
what else?
   
Looks like at least one error is due to my system being in french :-(
   
And for something else: I have problems using Eclipse
I have everywhere messages of the form The hierarchy of the type xxx
 is
inconsistent
Any idea what can be done against it?
Or, more simply: couldn't someone just hand me their .project and
 .classpath
files?
   
--
Candide Kemmler
http://www.palacehotel.org/
   
   
11/13 avenue Reine Marie-Henriette
1190 Bruxelles
mobile:+32485067980
  
   
 -
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
   
 http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
___
Home: http://acegisecurity.org
Acegisecurity-developer mailing list
Acegisecurity-developer@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer
   
   
  
 
  -
  Check out the new SourceForge.net Marketplace.
  It's the best place to buy or sell services for
  just about anything Open Source.
 
 http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
  ___
  Home: http://acegisecurity.org
  Acegisecurity-developer mailing list
  Acegisecurity-developer@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer
 



 --


 Candide Kemmler
 http://www.palacehotel.org/
 11/13 avenue Reine Marie-Henriette
 1190 Bruxelles
 mobile:+32485067980
 -
 Check out the new SourceForge.net Marketplace.
 It's the best place to buy or sell services for
 just about anything Open Source.
 http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
 ___
 Home: http://acegisecurity.org
 Acegisecurity-developer mailing list
 Acegisecurity-developer@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer



-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
___
Home: http://acegisecurity.org
Acegisecurity-developer mailing list
Acegisecurity-developer@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer


Re: [Acegisecurity-developer] build failed

2008-01-11 Thread Luke Taylor
Do you have the actual errors for the failing tests and can you post 
some more information on your environment? Everything seems to be OK 
here and I haven't noticed any of the automated builds complaining so 
I'm not sure what could be causing this.

Candide Kemmler wrote:
 Hi All,
 
 My name is Candide Kemmler (http://www.palacehotel.org) and I'm very
 interested in using OpenID for authenticating users. The code is still in
 the sandbox and hence I need to build the code to test it. I told Ray
 Krueger about the following error, and he told me to share it with you.
 
 Thanks for your help
 
 quote
 I just co'd the code and tried to build it using maven. Got the following
 error... It's about ehcache configuration which causes tests to fail.
 
 Can you please help me to fix these?
 /quote
 
 Failed tests:
 testLookupFailsIfUserHasNoGrantedAuthorities(org.s
 pringframework.security.user
 details.jdbc.JdbcDaoImplTests)
 createUserInsertsCorrectData(org.springframework.s
 ecurity.userdetails.jdbc.Jdb
 cUserDetailsManagerTests)
 updateUserChangesDataCorrectlyAndClearsCache(org.s
 pringframework.security.user
 details.jdbc.JdbcUserDetailsManagerTests)
 

-- 
  Luke Taylor.  Monkey Machine Ltd.
  PGP Key ID: 0x57E9523Chttp://www.monkeymachine.ltd.uk


-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
___
Home: http://acegisecurity.org
Acegisecurity-developer mailing list
Acegisecurity-developer@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer


Re: [Acegisecurity-developer] build failed

2008-01-11 Thread Luke Taylor
Hi,

The ehcache errors shouldn't be a problem be ignored. They are due to 
multiple VM shutdown hooks which cause things to mess up when the VM 
exits. We need to make sure all the tests close application contexts 
properly to stop these messages but they won't cause the tests to fail.

cheers,

Luke.


Candide Kemmler wrote:
 Hi All,
 
 My name is Candide Kemmler (http://www.palacehotel.org) and I'm very
 interested in using OpenID for authenticating users. The code is still in
 the sandbox and hence I need to build the code to test it. I told Ray
 Krueger about the following error, and he told me to share it with you.
 
 Thanks for your help
 
 quote
 I just co'd the code and tried to build it using maven. Got the following
 error... It's about ehcache configuration which causes tests to fail.
 
 Can you please help me to fix these?
 /quote
 


-- 
  Luke Taylor.  Monkey Machine Ltd.
  PGP Key ID: 0x57E9523Chttp://www.monkeymachine.ltd.uk


-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
___
Home: http://acegisecurity.org
Acegisecurity-developer mailing list
Acegisecurity-developer@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer


Re: [Acegisecurity-developer] build failed

2008-01-11 Thread Candide Kemmler
I'm running java -version:
java version 1.6.0
Java(TM) SE Runtime Environment (build 1.6.0-b105)
Java HotSpot(TM) Client VM (build 1.6.0-b105, mixed mode)

on Windows XP *French*
I have 2Gb of RAM,...

what else?

Looks like at least one error is due to my system being in french :-(

And for something else: I have problems using Eclipse
I have everywhere messages of the form The hierarchy of the type xxx is
inconsistent
Any idea what can be done against it?
Or, more simply: couldn't someone just hand me their .project and .classpath
files?

-- 
Candide Kemmler
http://www.palacehotel.org/
11/13 avenue Reine Marie-Henriette
1190 Bruxelles
mobile:+32485067980
---
Test set: org.springframework.security.userdetails.jdbc.JdbcDaoImplTests
---
Tests run: 12, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.094 sec  
FAILURE!
testLookupFailsIfUserHasNoGrantedAuthorities(org.springframework.security.userdetails.jdbc.JdbcDaoImplTests)
  Time elapsed: 0.016 sec   FAILURE!
junit.framework.ComparisonFailure: null expected:[User cooper has no 
GrantedAuthority] but was:[Le compte utilisateur cooper na pas de 
permissions]
at junit.framework.Assert.assertEquals(Assert.java:81)
at junit.framework.Assert.assertEquals(Assert.java:87)
at 
org.springframework.security.userdetails.jdbc.JdbcDaoImplTests.testLookupFailsIfUserHasNoGrantedAuthorities(JdbcDaoImplTests.java:111)
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:597)
at junit.framework.TestCase.runTest(TestCase.java:168)
at junit.framework.TestCase.runBare(TestCase.java:134)
at junit.framework.TestResult$1.protect(TestResult.java:110)
at junit.framework.TestResult.runProtected(TestResult.java:128)
at junit.framework.TestResult.run(TestResult.java:113)
at junit.framework.TestCase.run(TestCase.java:124)
at junit.framework.TestSuite.runTest(TestSuite.java:232)
at junit.framework.TestSuite.run(TestSuite.java:227)
at 
org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:81)
at 
org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
at 
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138)
at 
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:125)
at org.apache.maven.surefire.Surefire.run(Surefire.java:132)
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:597)
at 
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:308)
at 
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:879)

---
Test set: 
org.springframework.security.userdetails.jdbc.JdbcUserDetailsManagerTests
---
Tests run: 9, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 0.266 sec  
FAILURE!
createUserInsertsCorrectData(org.springframework.security.userdetails.jdbc.JdbcUserDetailsManagerTests)
  Time elapsed: 0.031 sec   FAILURE!
java.lang.AssertionError: expected:[EMAIL PROTECTED]: Username: joe; Password: 
[PROTECTED]; Enabled: true; AccountNonExpired: true; credentialsNonExpired: 
true; AccountNonLocked: true; Granted Authorities: A, C, B but was:[EMAIL 
PROTECTED]: Username: joe; Password: [PROTECTED]; Enabled: true; 
AccountNonExpired: true; credentialsNonExpired: true; AccountNonLocked: true; 
Granted Authorities: A, B, C
at org.junit.Assert.fail(Assert.java:74)
at org.junit.Assert.failNotEquals(Assert.java:448)
at org.junit.Assert.assertEquals(Assert.java:102)
at org.junit.Assert.assertEquals(Assert.java:117)
at 
org.springframework.security.userdetails.jdbc.JdbcUserDetailsManagerTests.createUserInsertsCorrectData(JdbcUserDetailsManagerTests.java:89)
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:597)
at 

Re: [Acegisecurity-developer] build failed

2008-01-11 Thread Ray Krueger
Yeah, I think we have a problem building on Windows.
I had a problem this morning on my Windows laptop. Once I got into the
office I pulled the code down to my linux workstation and simply ran
mvn install, everything went off without a hitch.

I'll look at it on my train ride home I think :)

On Jan 11, 2008 11:50 AM, Candide Kemmler [EMAIL PROTECTED] wrote:
 I'm running java -version:
 java version 1.6.0
 Java(TM) SE Runtime Environment (build 1.6.0-b105)
 Java HotSpot(TM) Client VM (build 1.6.0-b105, mixed mode)

 on Windows XP French
 I have 2Gb of RAM,...

 what else?

 Looks like at least one error is due to my system being in french :-(

 And for something else: I have problems using Eclipse
 I have everywhere messages of the form The hierarchy of the type xxx is
 inconsistent
 Any idea what can be done against it?
 Or, more simply: couldn't someone just hand me their .project and .classpath
 files?

 --
 Candide Kemmler
 http://www.palacehotel.org/


 11/13 avenue Reine Marie-Henriette
 1190 Bruxelles
 mobile:+32485067980
 -
 Check out the new SourceForge.net Marketplace.
 It's the best place to buy or sell services for
 just about anything Open Source.
 http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
 ___
 Home: http://acegisecurity.org
 Acegisecurity-developer mailing list
 Acegisecurity-developer@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer



-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
___
Home: http://acegisecurity.org
Acegisecurity-developer mailing list
Acegisecurity-developer@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer