hivemind-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brian K. Wallace" <br...@transmorphix.com>
Subject Re: difficulties with example
Date Fri, 04 Feb 2005 19:18:20 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I believe this has been fixed in HEAD. The problem was the build.xml in
the examples directory.

~   <path id="runtime.classpath">
~     <fileset dir="${module.lib.dir}">
- -      <include name="compile/*.jar"/>
- -      <include name="run/*.jar"/>
+      <include name="compile/**/*.jar"/>
+      <include name="run/**/*.jar"/>
~     </fileset>

Brian

Jamie Orchard-Hays wrote:
| Did anyone solve this? I'm having the exact same error (hm1.0).
|
| Jamie
|
| On Dec 29, 2004, at 8:36 PM, Jensen, James B wrote:
|
|> I had already done this.  But for kicks, I did it again.  From the
|> hivemind root, I ran "ant install" this built the project and ran
|> numerous unit tests successfully.
|>
|> When I cd down to examples and invoke ant run-calculator.
|>
|> run-calculator:
|>      [java] java.lang.NoClassDefFoundError:
|> org/apache/hivemind/ClassResolver
|>      [java]     at
|> org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava
|> .java:172)
|>      [java]     at  org.apache.tools.ant.taskdefs.Java.run(Java.java:705)
|>      [java]     at
|> org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:177)
|>
|>      [java]     at
|> org.apache.tools.ant.taskdefs.Java.execute(Java.java:83)
|>      [java]     at
|> org.apache.tools.ant.UnknownElement.execute(UnknownElement.ja
|> va:275)
|>      [java]     at org.apache.tools.ant.Task.perform(Task.java:364)
|>      [java]     at org.apache.tools.ant.Target.execute(Target.java:341)
|>      [java]     at
|> org.apache.tools.ant.Target.performTasks(Target.java:369)
|>      [java]     at
|> org.apache.tools.ant.Project.executeTarget(Project.java:1214)
|>
|>      [java]     at
|> org.apache.tools.ant.Project.executeTargets(Project.java:1062
|> )
|>      [java]     at org.apache.tools.ant.Main.runBuild(Main.java:673)
|>      [java]     at org.apache.tools.ant.Main.startAnt(Main.java:188)
|>      [java]     at
|> org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
|>      [java]     at
|> org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)
|>      [java] Caused by: java.lang.NoClassDefFoundError:
|> org/apache/hivemind/Class
|> Resolver
|>      [java]     at
|> org.apache.hivemind.examples.CalculatorMain.main(CalculatorMa
|> in.java:32)
|>      [java]     at
|> sun.reflect.NativeMethodAccessorImpl.invoke0(Native  Method)
|>      [java]     at
|> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
|> sorImpl.java:39)
|>      [java]     at
|> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
|> hodAccessorImpl.java:25)
|>      [java]     at java.lang.reflect.Method.invoke(Method.java:324)
|>      [java]     at
|> org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.jav
|> a:193)
|>      [java]     at
|> org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava
|> .java:130)
|>      [java]     ... 13 more
|>      [java] --- Nested Exception ---
|>      [java] java.lang.NoClassDefFoundError:
|> org/apache/hivemind/ClassResolver
|>      [java]     at
|> org.apache.hivemind.examples.CalculatorMain.main(CalculatorMa
|> in.java:32)
|>      [java]     at
|> sun.reflect.NativeMethodAccessorImpl.invoke0(Native  Method)
|>      [java]     at
|> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
|> sorImpl.java:39)
|>      [java]     at
|> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
|> hodAccessorImpl.java:25)
|>      [java]     at java.lang.reflect.Method.invoke(Method.java:324)
|>      [java]     at
|> org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.jav
|> a:193)
|>      [java]     at
|> org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava
|> .java:130)
|>      [java]     at  org.apache.tools.ant.taskdefs.Java.run(Java.java:705)
|>      [java]     at
|> org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:177)
|>
|>      [java]     at
|> org.apache.tools.ant.taskdefs.Java.execute(Java.java:83)
|>      [java]     at
|> org.apache.tools.ant.UnknownElement.execute(UnknownElement.ja
|> va:275)
|>      [java]     at org.apache.tools.ant.Task.perform(Task.java:364)
|>      [java]     at org.apache.tools.ant.Target.execute(Target.java:341)
|>      [java]     at
|> org.apache.tools.ant.Target.performTasks(Target.java:369)
|>      [java]     at
|> org.apache.tools.ant.Project.executeTarget(Project.java:1214)
|>
|>      [java]     at
|> org.apache.tools.ant.Project.executeTargets(Project.java:1062
|> )
|>      [java]     at org.apache.tools.ant.Main.runBuild(Main.java:673)
|>      [java]     at org.apache.tools.ant.Main.startAnt(Main.java:188)
|>      [java]     at
|> org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
|>      [java]     at
|> org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)
|>
|> BUILD SUCCESSFUL
|> Total time: 1 second
|> C:\data\Download\java\hivemind-1.0\examples>
|>
|> James
|>
|>
|> -----Original Message-----
|> From: Howard Lewis Ship [mailto:hlship@gmail.com]
|> Sent: Wednesday, December 29, 2004 5:10 PM
|> To: hivemind-user@jakarta.apache.org
|> Subject: Re: difficulties with example
|>
|>
|> From the root direction, execute "ant" or "ant install".  This will
|> compiled the source code, and generate the hivemind libraries (which
|> appear to be missing).
|>
|>
|> On Wed, 29 Dec 2004 16:13:34 -0800, Jensen, James B
|> <james.b.jensen@office.xerox.com> wrote:
|>
|>> First, although deploying web apps is not by day job, I have been
|>> following Tapestry for some time.  This is how I stumbled into
|>> Hivemind.  I am excited to see so much progress in such a relatively
|>> short period.  Thanks to Howard and team for their efforts.
|>>
|>> I have attempted to run the examples that I downloaded with
|>> hivemind-1.0.zip.  Being new, I'm sure I am making simple errors,
|>> but  have not been able to find an answer on the mailing list archive.
|>>
|>> I am using Ant 1.6.2
|>>
|>> The first problem I encountered was that the file "grabber" could
|>> not  open the URL's.  I assume that this is because of my firewall.
|>> I was  unable to find a proxy setting, so I downloaded the required
|>> files by  hand and put them in {hivemind}/ext-package/lib.  This
|>> allowed me to  continue.  I was then able to build the "compile"
|>> target sucessfully  using Ant from the command line.
|>>
|>> However, I am unable to invoke the "run-calculator" target while
|>> running Ant from the command line, or through Eclipse.  I get the
|>> following error:
|>>
|>> Buildfile: C:\data\Download\java\hivemind-1.0\examples\build.xml
|>> run-calculator:
|>>      [java] java.lang.NoClassDefFoundError:
|>> org/apache/hivemind/ClassResolver
|>>      [java]     at
|>> org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java: 172)
|>>      [java]     at
|>> org.apache.tools.ant.taskdefs.Java.run(Java.java:705)
|>>      [java]     at
|>> org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:177)
|>>      [java]     at
|>> org.apache.tools.ant.taskdefs.Java.execute(Java.java:83)
|>>      [java]     at
|>> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
|>>      [java]     at org.apache.tools.ant.Task.perform(Task.java:364)
|>>      [java]     at  org.apache.tools.ant.Target.execute(Target.java:341)
|>>      [java]     at
|>> org.apache.tools.ant.Target.performTasks(Target.java:369)
|>>      [java]     at
|>> org.apache.tools.ant.Project.executeTarget(Project.java:1214)
|>>      [java]     at
|>> org.apache.tools.ant.Project.executeTargets(Project.java:1062)
|>>      [java]     at
|>> org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalA
|>> ntRunner.java:377)
|>>      [java]     at
|>> org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(Internal
|>> AntRunner.java:135)
|>>      [java] Caused by: java.lang.NoClassDefFoundError:
|>> org/apache/hivemind/ClassResolver
|>>      [java]     at
|>> org.apache.hivemind.examples.CalculatorMain.main(CalculatorMain.java:
|>> 32)
|>>      [java]     at
|>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
|>>      [java]     at
|>> sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
|>>      [java]     at
|>> sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
|>>      [java]     at java.lang.reflect.Method.invoke(Unknown Source)
|>>      [java]     at
|>> org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:193)
|>>      [java]     at
|>> org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java: 130)
|>>      [java]     ... 11 more
|>>      [java] --- Nested Exception ---
|>>      [java] java.lang.NoClassDefFoundError:
|>> org/apache/hivemind/ClassResolver
|>>      [java]     at
|>> org.apache.hivemind.examples.CalculatorMain.main(CalculatorMain.java:
|>> 32)
|>>      [java]     at
|>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
|>>      [java]     at
|>> sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
|>>      [java]     at
|>> sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
|>>      [java]     at java.lang.reflect.Method.invoke(Unknown Source)
|>>      [java]     at
|>> org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:193)
|>>      [java]     at
|>> org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java: 130)
|>>      [java]     at
|>> org.apache.tools.ant.taskdefs.Java.run(Java.java:705)
|>>      [java]     at
|>> org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:177)
|>>      [java]     at
|>> org.apache.tools.ant.taskdefs.Java.execute(Java.java:83)
|>>      [java]     at
|>> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
|>>      [java]     at org.apache.tools.ant.Task.perform(Task.java:364)
|>>      [java]     at  org.apache.tools.ant.Target.execute(Target.java:341)
|>>      [java]     at
|>> org.apache.tools.ant.Target.performTasks(Target.java:369)
|>>      [java]     at
|>> org.apache.tools.ant.Project.executeTarget(Project.java:1214)
|>>      [java]     at
|>> org.apache.tools.ant.Project.executeTargets(Project.java:1062)
|>>      [java]     at
|>> org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalA
|>> ntRunner.java:377)
|>>      [java]     at
|>> org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(Internal
|>> AntRunner.java:135)
|>> BUILD SUCCESSFUL
|>> Total time: 1 second
|>>
|>> If I attempt to run the example directly through Eclipse, I get this
|>> error.
|>>
|>> java.lang.NoClassDefFoundError: org/apache/hivemind/ClassResolver
|>>         at
|>> org.apache.hivemind.examples.CalculatorMain.main(CalculatorMain.java:
|>> 32)
|>> Exception in thread "main"
|>>
|>> Any suggestions would be welcomed.
|>>
|>> ---------------------------------------------------------------------
|>> To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
|>> For additional commands, e-mail: hivemind-user-help@jakarta.apache.org
|>>
|>>
|>
|>
|> --
|> Howard M. Lewis Ship
|> Independent J2EE / Open-Source Java Consultant
|> Creator, Jakarta Tapestry
|> Creator, Jakarta HiveMind
|>
|> Professional Tapestry training, mentoring, support
|> and project work.  http://howardlewisship.com
|>
|> ---------------------------------------------------------------------
|> To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
|> For additional commands, e-mail: hivemind-user-help@jakarta.apache.org
|>
|> ---------------------------------------------------------------------
|> To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
|> For additional commands, e-mail: hivemind-user-help@jakarta.apache.org
|>
|
|
| ---------------------------------------------------------------------
| To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
| For additional commands, e-mail: hivemind-user-help@jakarta.apache.org
|
|
|
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (MingW32)

iD8DBQFCA8p8aCoPKRow/gARArExAJwMJxYtCqiE2F6T7F2kJgbbkHbAdQCdGBcb
oS4qZ2A5Rmbu38ooQKDAX0o=
=QxSr
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-user-help@jakarta.apache.org


Mime
View raw message