Mark,
I have built the cvs with os x 10.4 and jdk 1.4 (not 1.5).
I also manually had to add :
<ibiblio-dependency artifact="servletapi" version="2.3"
group="servletapi"/>
to contrib build.xml file. I sent an email to the dev list about this but it
seems to have got lost (more than likely my ineptitude).
I also modified the build.xml file in the root directory so that I did not
build annotations and the examples, since I have jdk1.4 to:
<filelist id="project.modules"
dir="."
files="framework/build.xml portlet/build.xml
contrib/build.xml"/>
Obviously changed build.properties in config directory also.
To get the unit tests to run I modified file
framework/src/scripts/TestUpload.xml and removed all occurences following
code:
<assert-output name="Match Confirmation">
Contents match.
</assert-output>
Also modified file
framework/src/test/org/apache/tapestry/form/validaotor/TestValidatorFactory.java
and removed following:
public void testInstantiateFailure()
{
Map map = new HashMap();
map.put("fred", newContribution(false, Object.class));
ValidatorFactoryImpl vf = new ValidatorFactoryImpl();
vf.setValidators(map);
try
{
vf.constructValidatorList("fred");
unreachable();
}
catch (ApplicationRuntimeException ex)
{
assertEquals(
"Error initializing validator 'fred' (class
java.lang.Object): java.lang.Object",
ex.getMessage());
}
}
After these modifications the build was successful running all the other
tests.
Hope this is useful,
Paul
Mark Dillon <[EMAIL PROTECTED]> wrote on 18 August 2005 06:35:32:
Ok, I have a successful build. I got the latest from CVS head tonight
and I'm building against hivemind-1.1-beta-2
(jakarta-tapestry/config/build.properties has the sole property
hivebuild.dir=/Users/mdillon/Java/devCode/hivemind-1.1-beta-2/hivebuild).
I don't feel like finding and fixing the failing tests, so I'm
building with the VM property -Dhivebuild.skip-tests=true. I did have
to add the servlet-api.jar to the classpath of the ant runtime
manually becuase otherwise I got this error:
[javac]
/Users/mdillon/Java/devCode/jakarta-tapestry/contrib/src/java/org/apache/tapestry/contrib/ajax/Timeout.java:20:
package javax.servlet.http does not exist
[javac] import javax.servlet.http.HttpSession;
[javac] ^
[javac]
/Users/mdillon/Java/devCode/jakarta-tapestry/contrib/src/java/org/apache/tapestry/contrib/ajax/Timeout.java:41:
cannot find symbol
[javac] symbol : class HttpSession
[javac] location: class org.apache.tapestry.contrib.ajax.Timeout
[javac] protected HttpSession getSession()
The bright side of that error is that XTile is being moved into the
contrib component library :) Anyway, all this and I get a successful
build. When I get some free time I'll delve into the failing tests.
BTW, I'm doing this with OS X 10.4 Tiger. I'd like to hear your own
experiences if you're willing to share. HTH...
Cheers,
Mark
On 8/17/05, Mark Dillon <[EMAIL PROTECTED]> wrote:
Hi Warren. I'm moving this to the user list so as not to clutter the
dev list (at least until I figure out the solution). I decided to
spend some time on this tonight. Got the latest from head and
attempted to build. My first attempt has failed. I'm getting more
failed tests. I'll keep you posted on my progress. First try I get
this test failure:
[junit] Testcase:
testFailure(org.apache.tapestry.test.TestAssertOutput): Caused an
ERROR
[junit]
org.apache.tapestry.test.ScriptMessages.expectedSubstringMissing(Ljava/lang/String;Lorg/apache/hivemind/Location;)Ljava/lang/String;
[junit] java.lang.NoSuchMethodError:
org.apache.tapestry.test.ScriptMessages.expectedSubstringMissing(Ljava/lang/String;Lorg/apache/hivemind/Location;)Ljava/lang/String;
[junit] at
org.apache.tapestry.test.assertions.AssertOutput.execute(AssertOutput.java:49)
[junit] at
org.apache.tapestry.test.TestAssertOutput.testFailure(TestAssertOutput.java:50)
[junit] TEST org.apache.tapestry.test.TestAssertOutput FAILED
[junit] Testsuite: org.apache.tapestry.test.TestAssertRegexp
[junit] Tests run: 6, Failures: 0, Errors: 3, Time elapsed: 0.015 sec
[junit] Testcase:
testFailure(org.apache.tapestry.test.TestAssertRegexp): Caused an
ERROR
[junit]
org.apache.tapestry.test.ScriptMessages.expectedRegexpMissing(Ljava/lang/String;Lorg/apache/hivemind/Location;)Ljava/lang/String;
[junit] java.lang.NoSuchMethodError:
org.apache.tapestry.test.ScriptMessages.expectedRegexpMissing(Ljava/lang/String;Lorg/apache/hivemind/Location;)Ljava/lang/String;
[junit] at
org.apache.tapestry.test.assertions.AssertRegexp.execute(AssertRegexp.java:62)
[junit] at
org.apache.tapestry.test.TestAssertRegexp.testFailure(TestAssertRegexp.java:49)
[junit] Testcase:
testMatchesWrongCount(org.apache.tapestry.test.TestAssertRegexp):
Caused
an ERROR
[junit]
org.apache.tapestry.test.ScriptMessages.incorrectRegexpMatchCount(Ljava/lang/String;Lorg/apache/hivemind/Location;II)Ljava/lang/String;
[junit] java.lang.NoSuchMethodError:
org.apache.tapestry.test.ScriptMessages.incorrectRegexpMatchCount(Ljava/lang/String;Lorg/apache/hivemind/Location;II)Ljava/lang/String;
[junit] at
org.apache.tapestry.test.assertions.AssertRegexp.executeMatches(AssertRegexp.java:95)
[junit] at
org.apache.tapestry.test.assertions.AssertRegexp.execute(AssertRegexp.java:53)
[junit] at
org.apache.tapestry.test.TestAssertRegexp.testMatchesWrongCount(TestAssertRegexp.java:84)
[junit] Testcase:
testMatchesFailure(org.apache.tapestry.test.TestAssertRegexp): Caused
an ERROR
[junit]
org.apache.tapestry.test.ScriptMessages.incorrectRegexpMatch(Ljava/lang/String;Lorg/apache/hivemind/Location;Ljava/lang/String;)Ljava/lang/String;
[junit] java.lang.NoSuchMethodError:
org.apache.tapestry.test.ScriptMessages.incorrectRegexpMatch(Ljava/lang/String;Lorg/apache/hivemind/Location;Ljava/lang/String;)Ljava/lang/String;
[junit] at
org.apache.tapestry.test.assertions.AssertRegexp.executeMatches(AssertRegexp.java:87)
[junit] at
org.apache.tapestry.test.assertions.AssertRegexp.execute(AssertRegexp.java:53)
[junit] at
org.apache.tapestry.test.TestAssertRegexp.testMatchesFailure(TestAssertRegexp.java:121)
[junit] TEST org.apache.tapestry.test.TestAssertRegexp FAILED
Cheers,
Mark
On 8/17/05, Warner Onstine <[EMAIL PROTECTED]> wrote:
> Here's the error that I'm currently getting which I don't know is
> related to 1.5 or not:
>
> [echo]
> [echo]
> [echo] *** Compiling Java sources to /tmp/jakarta-tapestry/
> tapestry/target/classes ...
> [echo]
> [javac] Compiling 72 source files to /tmp/jakarta-tapestry/
> tapestry/target/classes
> [javac] /Users/warner/cvs/opensource/jakarta-tapestry/framework/
> src/java/org/apache/tapestry/util/io/IoMessages.java:21: cannot
> resolve symbol
> [javac] symbol : constructor MessageFormatter (java.lang.Class)
> [javac] location: class org.apache.hivemind.impl.MessageFormatter
> [javac] private static final MessageFormatter _formatter =
> new MessageFormatter(IoMessages.class);
> [javac] ^
> [javac] Note: Some input files use or override a deprecated API.
> [javac] Note: Recompile with -deprecation for details.
> [javac] 1 error
>
> I have downloaded HiveMind and configured the build.properties file
> to point to it.
>
> -warner
>
> On Aug 16, 2005, at 9:19 AM, Mark Dillon wrote:
>
> > I have, yes. If I recall, the only problem I had was a couple of
> > failing tests due to CRLF issues. I just commented out a couple of
> > lines in the failing tests and all was well. I can dig up the exact
> > lines if you need them. I've been using 4.0b3 lately so haven't
> > bothered building the head. Any specific problems you're having?
> >
> > Cheers,
> > Mark
> >
> > On 8/16/05, Warner Onstine <[EMAIL PROTECTED]> wrote:
> >
> >> Hi all,
> >> I know that once you download a developer seed from apple you aren't
> >> supposed to talk about problems with it, I just want to know if
> >> anyone has setup tap 4 successfully with 1.5 on OS X.
> >>
> >> -warner
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]