Skip to Content.
Sympa Menu

grouper-users - [grouper-users] RE: Grouper WS is failing to build with ant

Subject: Grouper Users - Open Discussion List

List archive

[grouper-users] RE: Grouper WS is failing to build with ant


Chronological Thread 
  • From: "Hyzer, Chris" <>
  • To: John Gasper <>, "" <>
  • Subject: [grouper-users] RE: Grouper WS is failing to build with ant
  • Date: Wed, 20 Apr 2016 22:56:26 +0000
  • Accept-language: en-US
  • Authentication-results: unicon.net; dkim=none (message not signed) header.d=none;unicon.net; dmarc=none action=none header.from=isc.upenn.edu;
  • Spamdiagnosticmetadata: NSPM
  • Spamdiagnosticoutput: 1:23

Yes to PR, thanks

 

From: [mailto:] On Behalf Of John Gasper
Sent: Wednesday, April 20, 2016 6:11 PM
To:
Subject: [grouper-users] Grouper WS is failing to build with ant

 

Hi Chris,

 

I pulled down the grouper-war tar.gz file and have minimal build.properties that points to the grouper-apiBinary. When I run ant, I get:

 

      [jar] Building jar: /opt/grouper.ws-2.3.0/grouper-ws/build/dist/grouper-ws.war

    [mkdir] Created dir: /opt/grouper.ws-2.3.0/grouper-ws/build/grouper-ws-soap-client

   [delete] Deleting directory /opt/grouper.ws-2.3.0/grouper-ws/build/grouper-ws-soap-client

    [mkdir] Created dir: /opt/grouper.ws-2.3.0/grouper-ws/build/grouper-ws-soap-client

    [javac] /opt/grouper.ws-2.3.0/grouper-ws/build.xml:751: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds

    [javac] Compiling 314 source files to /opt/grouper.ws-2.3.0/grouper-ws/build/grouper-ws-soap-client

    [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.6

    [javac] /opt/grouper.ws-2.3.0/grouper-ws-java-generated-client/src/edu/internet2/middleware/grouper/webservicesClient/WsSampleAcknowledgeMessage.java:22: error: cannot find symbol

    [javac] import edu.internet2.middleware.grouper.GrouperSession;

    [javac]                                        ^

    [javac]   symbol:   class GrouperSession

    [javac]   location: package edu.internet2.middleware.grouper

    [javac] /opt/grouper.ws-2.3.0/grouper-ws-java-generated-client/src/edu/internet2/middleware/grouper/webservicesClient/WsSampleAcknowledgeMessage.java:23: error: package edu.internet2.middleware.grouper.helper does not exist

    [javac] import edu.internet2.middleware.grouper.helper.SubjectTestHelper;

    [javac]

 

This is an automated build that worked fine with 2.2.1 and 2.2.2. The only change I expect to make was point the build.properties to:

grouper.dir=../../grouper.apiBinary-2.3.0

 

Fixed this by modifying the build.xml:

 

              <!-- compile first -->

                     <path id="generated.client.class.path">

                        <!-- Make available jar files that Grouper needs -->

                        <fileset dir="${generated.client.project.dir}">

                          <!-- matches lib and libRampart -->

                          <include name="lib**/*.jar" />

                        </fileset>

           <fileset dir="${grouper.dir}/lib" includes="**" />

           <fileset dir="${grouper.dir}/dist/lib" includes="**" />

                      </path>

 

${grouper.dir}/lib was needed to get the grouperClient.jar, the dist/lib was needed to get the grouper jar and the grouper test jar, both of which were required.

 

Not sure if there is something that should have been done, but that allowed the build to complete. I can make a PR if desired.

 

-- 

John Gasper
IAM Consultant
Unicon, Inc.
PGP/GPG Key: 0xbafee3ef

 




Archive powered by MHonArc 2.6.16.

Top of Page