Skip to Content.
Sympa Menu

grouper-users - Re: [grouper-users] build fails latest co

Subject: Grouper Users - Open Discussion List

List archive

Re: [grouper-users] build fails latest co


Chronological Thread 
  • From: Tom Barton <>
  • To: Mark Weber <>
  • Cc:
  • Subject: Re: [grouper-users] build fails latest co
  • Date: Thu, 28 Sep 2006 13:23:31 -0500

Mark,

The issue is the HEAD version of grouper-api, which has a changed interface to the config methods. But it's easy to deal with - replace occurrences of methods on objects created by GrouperConfig.getInstance() with static calls to the same methods on the GrouperConfig class itself.

When I encountered this earlier this month, there were only two instances needing change, both in LowLevelGrouperCapableAction.java. I've attached the diff to fix it.

Tom

Mark Weber wrote:
latest UI cvs build fails to compile.
--Mark

details:

-compileGrouper:
[javac] Compiling 2 source files to /home/mgweber/g2/dist/grouper/WEB-INF/classes
[javac] /home/mgweber/g2/grouper-ui/java/src/edu/internet2/middleware/grouper/GrouperHelper.java:2333: cannot find symbol
[javac] symbol : method getInstance()
[javac] location: class edu.internet2.middleware.grouper.GrouperConfig
[javac] GrouperConfig config = GrouperConfig.getInstance();
[javac] ^
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 1 error

BUILD FAILED
/home/mgweber/g2/grouper-ui/build.xml:35: The following error occurred while executing this line:
/home/mgweber/g2/grouper-ui/build.xml:583: The following error occurred while executing this line:
/home/mgweber/g2/grouper-ui/build.xml:119: The following error occurred while executing this line:
/home/mgweber/g2/grouper-ui/build.xml:94: The following error occurred while executing this line:
/home/mgweber/g2/grouper-ui/build.xml:492: The following error occurred while executing this line:
/home/mgweber/g2/grouper-ui/build.xml:247: Compile failed; see the compiler error output for details.


*** LowLevelGrouperCapableAction.java.org 2006-09-11 13:55:54.000000000
-0500
--- LowLevelGrouperCapableAction.java 2006-09-11 13:56:39.000000000 -0500
***************
*** 361,363 ****
if(obj==null) {
!
if("true".equals(GrouperConfig.getInstance().getProperty("groups.wheel.use")))
{
try {
--- 361,363 ----
if(obj==null) {
!
if("true".equals(GrouperConfig.getProperty("groups.wheel.use"))) {
try {
***************
*** 365,367 ****
GrouperSession s =
GrouperSession.start(subj);
!
obj=GroupFinder.findByName(s,GrouperConfig.getInstance().getProperty("groups.wheel.group"));

session.getServletContext().setAttribute("wheelGroup",obj);
--- 365,367 ----
GrouperSession s =
GrouperSession.start(subj);
!
obj=GroupFinder.findByName(s,GrouperConfig.getProperty("groups.wheel.group"));

session.getServletContext().setAttribute("wheelGroup",obj);



Archive powered by MHonArc 2.6.16.

Top of Page