Skip to Content.
Sympa Menu

grouper-users - Re: [grouper-users] A day in the life of MACE Grouper 1.2 rc1

Subject: Grouper Users - Open Discussion List

List archive

Re: [grouper-users] A day in the life of MACE Grouper 1.2 rc1


Chronological Thread 
  • From: "GW Brown, Information Systems and Computing" <>
  • To: "Cramton, James" <>, Grouper Users <>
  • Subject: Re: [grouper-users] A day in the life of MACE Grouper 1.2 rc1
  • Date: Tue, 01 May 2007 12:22:17 +0100

James,

Responses below.

Regards,

Gary

--On 30 April 2007 18:21 -0400 "Cramton, James" <> wrote:

I spent the day working with MACE Grouper 1.2 release candidate 1. Is
anyone else working with rc1 yet?

For context, Brown is using Apache with ldap authentication passed to
Tomcat, with an Oracle 10g DB and SunOne LDAP person source and JDK 1.5.

I found 2 issues along the way, and as of this evening, 1 of these has
me in a holding pattern till I can investigate further.

1. [worked around]
The UI build fails due to an unresolved symbol, HibernateDAO. I see
that the class exists in the release, but the
edu.internet2.middleware.grouper.GrouperHelper class can't identify the
object referenced. I noted what may be an inadvertent cvs checkin of
the offending code in GrouperHelper.java v. 1.29, so I commented out the
method again, and the UI apparently builds fine without it. However, Tom
pointed out that this is probably not the right solution in the long
run. The error looks like this:

-compileGrouper:
[javac] Compiling 2 source files to
/opt/local/mace/grouper/mace_grouper_1_2_rc1/dist/grouper/WEB-INF/classe
s
[javac]
/opt/local/mace/grouper/mace_grouper_1_2_rc1/grouper-ui-1.2.0-rc1/java/s
rc/edu/internet2/middleware/grouper/GrouperHelper.java:2780: cannot find
symbol
[javac] symbol : variable HibernateDAO
[javac] location: class
edu.internet2.middleware.grouper.GrouperHelper
[javac] Session hs = HibernateDAO.getSession();
[javac] ^
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 1 error

The build proceeds if you comment out the "query" method around line
2780 of GrouperHelper.java.
It looks like I failed to get the actual RC1 API release when I built the QuickStart. This means that the Grouper API in the QuickStart wasn't quite as blair intended - which may explain your problems with GSH?

The QuickStart which was distributed should have been internally consistent - HibernateDAO was in the same package as GrouperHelper - and so should (and did for me) compile. On the other hand if you tried to run the UI code against the official RC1 API package it would fail as you have reported.

I've made a new QuickStart package which I will pass on to Tom to put on the Wiki.



2. [currently still working on this]
Once the app is built and deployed, I can't create and populate the
wheel group because gsh is incompatible with version 1.2 at this time. I
haven't begun to look into what it will take to bring gsh into the 1.2
world, so I may revert to local user authentication via Tomcat to create
the wheel group manually for now.


So at the end of the day, we're still running version 1.1, although
we're running for the first time on our QA hardware. Tonight, we're
starting a provisioning run to populate about 11,000 groups into MACE
Grouper. I'll report performance benchmarks when we have results.

I'm open to any suggestions anyone may have on how to create a wheel
group in Grouper 1.2.
You can do this using Xml import. I've attached a sample XML file which you can load using:

ant -Dcmd="GrouperSystem <PATH>/wheel.xml" xml-import

I'd also like to hear recommended upgrade
strategies down the road...right now, we can destroy data at will, and
redeploy the entire application and schema within minutes. But once
we're in production, we'll of course need a more robust version upgrade
strategy. I'm sure folks have already been working along these lines,
but I wanted to get the questions out into circulation.
blair is working on allowing new API versions to work with old databases. It isn't clear if this will be part of the 1.2 official release yet. Otherwise exporting the database as XML and importing it into a clean database should preserve your data.



James Cramton
Lead Programmer/Analyst
Brown University

401 863-7324



----------------------
GW Brown, Information Systems and Computing
<?xml version="1.0" encoding="UTF-8"?><registry>   <data>      <!-- 'etc' -->    <stem extension='xetc'      displayExtension='X Grouper Administration'      name='xetc'      displayName='X Grouper Administration'      id="xetc-987654321-stem"          >      <!-- 'xetc:wheel' -->      <group extension='wheel'        displayExtension='Wheel Group'        name='xetc:wheel'        displayName='X Grouper Administration:Wheel Group'       id="xetc-987654321-group"      >        <list field='members' groupType='base'>        <subject id='fiwi' type='person' source='qsuob' immediate='true' />        </list> <!-- 'members' -->      <privileges type='read'>      <subject id='GrouperAll' type='application' source='g:isa' immediate='true' />      </privileges> <!-- read -->      <privileges type='view'>      <subject id='GrouperAll' type='application' source='g:isa' immediate='true' />      </privileges> <!-- view -->      </group>      <!-- 'xetc:wheel' -->    </stem>    <!-- 'xetc' -->                                                                    </data></registry>


  • Re: [grouper-users] A day in the life of MACE Grouper 1.2 rc1, GW Brown, Information Systems and Computing, 05/01/2007

Archive powered by MHonArc 2.6.16.

Top of Page