<?xml version="1.0" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugzilla.globus.org/bugzilla/bugzilla.dtd">

<bugzilla version="3.2.3"
          urlbase="http://bugzilla.globus.org/bugzilla/"
          maintainer="bacon@mcs.anl.gov"
>

    <bug>
          <bug_id>5575</bug_id>
          
          <creation_ts>2007-09-20 07:44</creation_ts>
          <short_desc>dependency on junit.jar</short_desc>
          <delta_ts>2008-04-25 21:12:23</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>GridShib</product>
          <component>SAML/Binding Tools</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>beta</target_milestone>
          
          <blocked>5890</blocked>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Tom Scavo">trscavo@gmail.com</reporter>
          <assigned_to name="Tom Scavo">trscavo@gmail.com</assigned_to>
          <cc>gridshib-dev@globus.org</cc>
    
    <cc>kettimut@mcs.anl.gov</cc>
    
    <cc>tfreeman@mcs.anl.gov</cc>
    
    <cc>vwelch@uiuc.edu</cc>

      

      
          <long_desc isprivate="0">
            <who name="Tom Scavo">trscavo@gmail.com</who>
            <bug_when>2007-09-20 07:44:40</bug_when>
            <thetext>If junit is not installed in $ANT_HOME/lib, the following errors occur when trying to install GridShib SAML Tools v0.2.1 Alpha:

compile:
   [javac] Compiling 53 source files to
/usr/local/gridshib-saml-tools-0_2_1-alpha/build/classes
   [javac]
/usr/local/gridshib-saml-tools-0_2_1-alpha/tests/org/globus/gridshib/security/x509/NonCriticalX509ExtensionTest.java:23:
package junit.framework does not exist
   [javac] import junit.framework.TestCase;
   [javac]                       ^
   [javac]
/usr/local/gridshib-saml-tools-0_2_1-alpha/tests/org/globus/gridshib/security/x509/NonCriticalX509ExtensionTest.java:28:
cannot find symbol
   [javac] symbol: class TestCase
   [javac] public class NonCriticalX509ExtensionTest extends TestCase {
   [javac]                                                   ^
   [javac]
/usr/local/gridshib-saml-tools-0_2_1-alpha/tests/org/globus/gridshib/security/x509/NonCriticalX509ExtensionTest.java:36:
package junit.textui does not exist
   [javac]
junit.textui.TestRunner.run(NonCriticalX509ExtensionTest.class);
   [javac]                     ^
   [javac]
/usr/local/gridshib-saml-tools-0_2_1-alpha/tests/org/globus/gridshib/security/x509/NonCriticalX509ExtensionTest.java:50:
cannot find symbol
   [javac] symbol  : variable super
   [javac] location: class
org.globus.gridshib.security.x509.NonCriticalX509ExtensionTest
   [javac]         super.setUp();
   [javac]         ^
   [javac]
/usr/local/gridshib-saml-tools-0_2_1-alpha/tests/org/globus/gridshib/security/x509/NonCriticalX509ExtensionTest.java:61:
cannot find symbol
   [javac] symbol  : variable super
   [javac] location: class
org.globus.gridshib.security.x509.NonCriticalX509ExtensionTest
   [javac]         super.tearDown();
   [javac]         ^
   [javac]
/usr/local/gridshib-saml-tools-0_2_1-alpha/tests/org/globus/gridshib/security/x509/NonCriticalX509ExtensionTest.java:69:
cannot find symbol
   [javac] symbol  : method assertTrue(java.lang.String,boolean)
   [javac] location: class
org.globus.gridshib.security.x509.NonCriticalX509ExtensionTest
   [javac]         assertTrue(&quot;Non-critical X.509 extension is critical&quot;,
   [javac]         ^
   [javac] 6 errors</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who name="Tom Scavo">trscavo@gmail.com</who>
            <bug_when>2007-09-20 07:58:28</bug_when>
            <thetext>There are at least two solutions to this problem:

1. Require junit to be installed in $ANT_HOME/lib (which of course needs to be thoroughly documented)

2. Distribute junit with GridShib SAML Tools.

The latter is easier for deployers so we&apos;ll go that route.

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who name="Tom Scavo">trscavo@gmail.com</who>
            <bug_when>2007-09-20 08:04:48</bug_when>
            <thetext>Downloaded junit 4.4 from www.junit.org.  Copied junit-4.4.jar to gridshib/saml/common/java/lib in my sandbox.  Verified that the errors reported earlier go away as a result.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who name="Tom Scavo">trscavo@gmail.com</who>
            <bug_when>2007-09-20 08:08:32</bug_when>
            <thetext>Committed junit-4.4.jar to CVS HEAD.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who name="Tom Scavo">trscavo@gmail.com</who>
            <bug_when>2007-09-20 08:18:21</bug_when>
            <thetext>Related to this, the Globus SAML Library (distributed with GridShib SAML Tools) also has a dependency on junit (since it has its own batch of unit tests) but there have been reports that the &quot;run-tests&quot; target in gridshib/saml/library/java/build.xml fails since it can&apos;t find junit, yet junit-3.8.1.jar is installed in gridshib/saml/library/java/lib.

Keep this bug open until this issue is resolved.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who name="Tom Scavo">trscavo@gmail.com</who>
            <bug_when>2008-01-06 13:55:41</bug_when>
            <thetext>Received the following error while trying to install GS-ST 0.3.0 Alpha on gridshib-sp:

compile:
    [javac] Compiling 61 source files to /opt/gridshib/gridshib-saml-tools-0_3_0-alpha/build/classes
    [javac] /opt/gridshib/gridshib-saml-tools-0_3_0-alpha/tests/org/globus/gridshib/security/x509/NonCriticalX509ExtensionTest.java:23: cannot access junit.framework.TestCase
    [javac] bad class file: /opt/gridshib/gridshib-saml-tools-0_3_0-alpha/lib/junit-4.4.jar(junit/framework/TestCase.class)
    [javac] class file has wrong version 49.0, should be 48.0
    [javac] Please remove or make sure it appears in the correct subdirectory of the classpath.
    [javac] import junit.framework.TestCase;
    [javac]                        ^
    [javac] 1 error

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who name="Tom Scavo">trscavo@gmail.com</who>
            <bug_when>2008-01-07 12:41:14</bug_when>
            <thetext>This appears to be a junit version mismatch.  I downgraded from junit-4.4 to junit-3.8.1 and the error went away.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who name="Tom Scavo">trscavo@gmail.com</who>
            <bug_when>2008-03-02 08:40:16</bug_when>
            <thetext>I have not been able to reproduce this bug throughout the GS-ST v0.3.0 development cycle, so I&apos;m closing out this bug entry.</thetext>
          </long_desc>
      
      

    </bug>

</bugzilla>