You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Adam Czysciak <ad...@gmail.com> on 2005/07/07 10:38:39 UTC

I have "duplicated module hivemind"... where to find HelloWorld ?

Hi,

   I'm trying to build the simplest hello world app for Tapestry 4. The
Quick Start guide is not completed yet, so I had to do it on my own.

When launching the app (Linux, Eclipse 3.1, Tapestry 4.0beta1, Hivemind
1.1beta2, Jetty 5.1.4-all, JettyLauncher 1.3.0) I have the error message:

org.apache.hivemind.ApplicationRuntimeException: Error: Module hivemind 
is duplicated!  Definition in 
jar:file:/D:/adam/eclipse/test4/app/WEB-INF/lib/hivemind-1.1-beta-2.jar!/META-INF/hivemodule.xml 
has been ignored in favor of existing definition from 
jar:file:/D:/adam/eclipse/test4/app/WEB-INF/lib/hivemind-1.1-beta-2.jar!/META-INF/hivemodule.xml.
org.apache.hivemind.impl.StrictErrorHandler.error(StrictErrorHandler.java:39)
org.apache.hivemind.impl.RegistryInfrastructureConstructor.addModuleDescriptor(RegistryInfrastructureConstructor.java:202)
org.apache.hivemind.impl.RegistryBuilder.processModuleDescriptorProvider(RegistryBuilder.java:168)
org.apache.hivemind.impl.RegistryBuilder.constructRegistry(RegistryBuilder.java:143)
org.apache.tapestry.ApplicationServlet.constructRegistry(ApplicationServlet.java:275)
org.apache.tapestry.ApplicationServlet.init(ApplicationServlet.java:216)
org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:383)
org.mortbay.jetty.servlet.ServletHolder.start(ServletHolder.java:243)
org.mortbay.jetty.servlet.ServletHandler.initializeServlets(ServletHandler.java:445)
org.mortbay.jetty.servlet.WebApplicationHandler.initializeServlets(WebApplicationHandler.java:323)
org.mortbay.jetty.servlet.WebApplicationContext.doStart(WebApplicationContext.java:511)
org.mortbay.util.Container.start(Container.java:72)
org.mortbay.http.HttpServer.doStart(HttpServer.java:753)
org.mortbay.util.Container.start(Container.java:72)
com.iw.plugins.jettyrunner.PluginRunner.launch(PluginRunner.java:282)
com.iw.plugins.jettyrunner.PluginRunner.launch(PluginRunner.java:104)
com.iw.plugins.jettyrunner.PluginRunner.main(PluginRunner.java:75)


When I add hivemind-lib to classpath then I have the exception about 
hivemind-lib...

Where could I find the simplest HelloWorld for Tapestry4, so I could see
the proper web.xml and .application files?

-- 
Greets!
   Adam Czysciak
   adam.czysciak@gmail.com
   Sun Certified Programmer for the Java 2 Platform, SE 5.0




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


Re: I have "duplicated module hivemind"... where to find HelloWorld ?

Posted by Adam Czysciak <ad...@gmail.com>.
Hugo Palma wrote:

> But does it run ok when you run the app in Jetty, without using
> JettyLauncher ?
Yes, it ran. I've also solved this issue:

I had the jars in WEB-INF/lib. When running with Jetty Launcher, this
directory was in classpath (as it was in Eclipse Build Path). But it was
also standard j2ee libraries directory, therefore it was also included in
CLASSPATH.

Thanks to Scott for his sandbox app:) It helped mi with libs location.

-- 
Greets,
  Adam Czysciak
  adam.czysciak@gmail.com
  Sun Certified Programmer for the Java 2 Platform, SE 5


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


Re: I have "duplicated module hivemind"... where to find HelloWorld ?

Posted by Hugo Palma <hp...@digitalis.pt>.
But does it run ok when you run the app in Jetty, without using 
JettyLauncher ?


Adam Czysciak wrote:

> Hugo Palma wrote:
>
>> I think i got it. Your including hivemind.jar in more than one place 
>> in your classpath. I can replicate the error in tomcat by including 
>> hivemind.jar in my webapp WEB-INF/lib and in tomcat's common/lib dir.
>> Check your classpath.
>
> No, it's not, it's my fresh installation... I think it is JettyLauncher
> related (see "JettyLauncher + Tapestry 4 ?" thread). It works okay in 
> Tomcat, it fails under JettyLauncher.
>
>

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


Re: I have "duplicated module hivemind"... where to find HelloWorld ?

Posted by Adam Czysciak <ad...@gmail.com>.
Hugo Palma wrote:

> I think i got it. Your including hivemind.jar in more than one place in 
> your classpath. I can replicate the error in tomcat by including 
> hivemind.jar in my webapp WEB-INF/lib and in tomcat's common/lib dir.
> Check your classpath.
No, it's not, it's my fresh installation... I think it is JettyLauncher
related (see "JettyLauncher + Tapestry 4 ?" thread). It works okay in 
Tomcat, it fails under JettyLauncher.


-- 
Greets!
   Adam Czysciak
   adam.czysciak@gmail.com
   Sun Certified Programmer for the Java 2 Platform, SE 5.0


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


Re: I have "duplicated module hivemind"... where to find HelloWorld ?

Posted by Hugo Palma <hp...@digitalis.pt>.
I think i got it. Your including hivemind.jar in more than one place in 
your classpath. I can replicate the error in tomcat by including 
hivemind.jar in my webapp WEB-INF/lib and in tomcat's common/lib dir.
Check your classpath.

Cheers

Hugo

Adam Czysciak wrote:

> Todd O'Bryan wrote:
>
>> Since HiveMind and Tapestry 4.0 are so intimately connected, is it  
>> possible that the hivemind.jar is already in tapestry.jar. That 
>> might  explain the duplication.
>
> I don't think so - without hivemind I had problems running (or
> compiling) the app.
>
> Besides - the duplicate is exactly in the same location as the original.
>

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


Re: I have "duplicated module hivemind"... where to find HelloWorld ?

Posted by Adam Czysciak <ad...@gmail.com>.
Todd O'Bryan wrote:

> Since HiveMind and Tapestry 4.0 are so intimately connected, is it  
> possible that the hivemind.jar is already in tapestry.jar. That might  
> explain the duplication.
I don't think so - without hivemind I had problems running (or
compiling) the app.

Besides - the duplicate is exactly in the same location as the original.

-- 
Greets!
   Adam Czysciak
   adam.czysciak@gmail.com
   Sun Certified Programmer for the Java 2 Platform, SE 5.0



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


Re: I have "duplicated module hivemind"... where to find HelloWorld ?

Posted by Todd O'Bryan <to...@mac.com>.
Since HiveMind and Tapestry 4.0 are so intimately connected, is it  
possible that the hivemind.jar is already in tapestry.jar. That might  
explain the duplication.

Or it might not. I haven't tried 4.0 yet.

Todd

On Jul 7, 2005, at 5:57 AM, Adam Czysciak wrote:

> Hugo Palma wrote:
>
>
>> I can't quite see what's wrong with your app from the stack you sent.
>> But anyway, the HelloWorld in the site is ok to get started http:// 
>> jakarta.apache.org/tapestry/QuickStart/helloworld.html.
>> You can also check out in the tapestry install dir examples/ 
>> tutorial2 the sources for a helloWorld app.
>> Hope this helps
>>
>
> Hmm, not too much... I already saw it. Some pieces use "net.sf"  
> package so I couldn't use build.xml. Also it wanted missing  
> Tapestry/lib etc.
> (It was missing in freshly downloaded tapestry 4.0 beta 1)
> But - I imported Workbench to my Eclipse, downloaded missing jCharts,
> added all the jars and - I can't run this example neither!
>
> Maybe it's a matter of my jars? Here they are:
>
> bsf-2.3.0.jar
> commons-codec-1.3.jar
> commons-fileupload-1.0.jar
> commons-logging-1.0.4.jar
> hivemind-1.1-beta-2.jar
> javassist-3.0.jar
> javax.servlet.jar
> log4j-1.2.8.jar
> ognl-2.6.7.jar
> oro-2.0.8.jar
> tapestry-4.0-beta-1.jar
> tapestry-annotations-4.0-beta-1.jar
> tapestry-contrib-4.0-beta-1.jar
>
> it was the same when I added hivemind-lib jar
>
>
> Could you Hugo please email me the really basic Tap4 app? With  
> one .page, .application and web.xml ? And the list of jars to add...
> It takes me too much time to check it, I saw the hivemind sources but
> it tells me nothing - just exactly that module is already included
> in some internal hivemind table...
>
> -- 
> Greets!
>   Adam Czysciak
>   adam.czysciak@gmail.com
>   Sun Certified Programmer for the Java 2 Platform, SE 5.0
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>


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


Re: I have "duplicated module hivemind"... where to find HelloWorld ?

Posted by Adam Czysciak <ad...@gmail.com>.
Hugo Palma wrote:

> I can't quite see what's wrong with your app from the stack you sent.
> But anyway, the HelloWorld in the site is ok to get started 
> http://jakarta.apache.org/tapestry/QuickStart/helloworld.html.
> You can also check out in the tapestry install dir examples/tutorial2 
> the sources for a helloWorld app.
> 
> Hope this helps

Hmm, not too much... I already saw it. Some pieces use "net.sf" package 
so I couldn't use build.xml. Also it wanted missing Tapestry/lib etc.
(It was missing in freshly downloaded tapestry 4.0 beta 1)
But - I imported Workbench to my Eclipse, downloaded missing jCharts,
added all the jars and - I can't run this example neither!

Maybe it's a matter of my jars? Here they are:

bsf-2.3.0.jar
commons-codec-1.3.jar
commons-fileupload-1.0.jar
commons-logging-1.0.4.jar
hivemind-1.1-beta-2.jar
javassist-3.0.jar
javax.servlet.jar
log4j-1.2.8.jar
ognl-2.6.7.jar
oro-2.0.8.jar
tapestry-4.0-beta-1.jar
tapestry-annotations-4.0-beta-1.jar
tapestry-contrib-4.0-beta-1.jar

it was the same when I added hivemind-lib jar


Could you Hugo please email me the really basic Tap4 app? With one 
.page, .application and web.xml ? And the list of jars to add...
It takes me too much time to check it, I saw the hivemind sources but
it tells me nothing - just exactly that module is already included
in some internal hivemind table...

-- 
Greets!
   Adam Czysciak
   adam.czysciak@gmail.com
   Sun Certified Programmer for the Java 2 Platform, SE 5.0


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


Re: I have "duplicated module hivemind"... where to find HelloWorld ?

Posted by Hugo Palma <hp...@digitalis.pt>.
I can't quite see what's wrong with your app from the stack you sent.
But anyway, the HelloWorld in the site is ok to get started 
http://jakarta.apache.org/tapestry/QuickStart/helloworld.html.
You can also check out in the tapestry install dir examples/tutorial2 
the sources for a helloWorld app.

Hope this helps


Cheers

Hugo

Adam Czysciak wrote:

> Hi,
>
>   I'm trying to build the simplest hello world app for Tapestry 4. The
> Quick Start guide is not completed yet, so I had to do it on my own.
>
> When launching the app (Linux, Eclipse 3.1, Tapestry 4.0beta1, Hivemind
> 1.1beta2, Jetty 5.1.4-all, JettyLauncher 1.3.0) I have the error message:
>
> org.apache.hivemind.ApplicationRuntimeException: Error: Module 
> hivemind is duplicated!  Definition in 
> jar:file:/D:/adam/eclipse/test4/app/WEB-INF/lib/hivemind-1.1-beta-2.jar!/META-INF/hivemodule.xml 
> has been ignored in favor of existing definition from 
> jar:file:/D:/adam/eclipse/test4/app/WEB-INF/lib/hivemind-1.1-beta-2.jar!/META-INF/hivemodule.xml. 
>
> org.apache.hivemind.impl.StrictErrorHandler.error(StrictErrorHandler.java:39) 
>
> org.apache.hivemind.impl.RegistryInfrastructureConstructor.addModuleDescriptor(RegistryInfrastructureConstructor.java:202) 
>
> org.apache.hivemind.impl.RegistryBuilder.processModuleDescriptorProvider(RegistryBuilder.java:168) 
>
> org.apache.hivemind.impl.RegistryBuilder.constructRegistry(RegistryBuilder.java:143) 
>
> org.apache.tapestry.ApplicationServlet.constructRegistry(ApplicationServlet.java:275) 
>
> org.apache.tapestry.ApplicationServlet.init(ApplicationServlet.java:216)
> org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:383) 
>
> org.mortbay.jetty.servlet.ServletHolder.start(ServletHolder.java:243)
> org.mortbay.jetty.servlet.ServletHandler.initializeServlets(ServletHandler.java:445) 
>
> org.mortbay.jetty.servlet.WebApplicationHandler.initializeServlets(WebApplicationHandler.java:323) 
>
> org.mortbay.jetty.servlet.WebApplicationContext.doStart(WebApplicationContext.java:511) 
>
> org.mortbay.util.Container.start(Container.java:72)
> org.mortbay.http.HttpServer.doStart(HttpServer.java:753)
> org.mortbay.util.Container.start(Container.java:72)
> com.iw.plugins.jettyrunner.PluginRunner.launch(PluginRunner.java:282)
> com.iw.plugins.jettyrunner.PluginRunner.launch(PluginRunner.java:104)
> com.iw.plugins.jettyrunner.PluginRunner.main(PluginRunner.java:75)
>
>
> When I add hivemind-lib to classpath then I have the exception about 
> hivemind-lib...
>
> Where could I find the simplest HelloWorld for Tapestry4, so I could see
> the proper web.xml and .application files?
>

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


Re: I have "duplicated module hivemind"... where to find HelloWorld ?

Posted by "Scott F. Walter" <sc...@scottwalter.com>.
Adam Czysciak wrote:

> Hi,
>
>   I'm trying to build the simplest hello world app for Tapestry 4. The
> Quick Start guide is not completed yet, so I had to do it on my own.
>
> When launching the app (Linux, Eclipse 3.1, Tapestry 4.0beta1, Hivemind
> 1.1beta2, Jetty 5.1.4-all, JettyLauncher 1.3.0) I have the error message:
>
> org.apache.hivemind.ApplicationRuntimeException: Error: Module 
> hivemind is duplicated!  Definition in 
> jar:file:/D:/adam/eclipse/test4/app/WEB-INF/lib/hivemind-1.1-beta-2.jar!/META-INF/hivemodule.xml 
> has been ignored in favor of existing definition from 
> jar:file:/D:/adam/eclipse/test4/app/WEB-INF/lib/hivemind-1.1-beta-2.jar!/META-INF/hivemodule.xml. 
>
> org.apache.hivemind.impl.StrictErrorHandler.error(StrictErrorHandler.java:39) 
>
> org.apache.hivemind.impl.RegistryInfrastructureConstructor.addModuleDescriptor(RegistryInfrastructureConstructor.java:202) 
>
> org.apache.hivemind.impl.RegistryBuilder.processModuleDescriptorProvider(RegistryBuilder.java:168) 
>
> org.apache.hivemind.impl.RegistryBuilder.constructRegistry(RegistryBuilder.java:143) 
>
> org.apache.tapestry.ApplicationServlet.constructRegistry(ApplicationServlet.java:275) 
>
> org.apache.tapestry.ApplicationServlet.init(ApplicationServlet.java:216)
> org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:383) 
>
> org.mortbay.jetty.servlet.ServletHolder.start(ServletHolder.java:243)
> org.mortbay.jetty.servlet.ServletHandler.initializeServlets(ServletHandler.java:445) 
>
> org.mortbay.jetty.servlet.WebApplicationHandler.initializeServlets(WebApplicationHandler.java:323) 
>
> org.mortbay.jetty.servlet.WebApplicationContext.doStart(WebApplicationContext.java:511) 
>
> org.mortbay.util.Container.start(Container.java:72)
> org.mortbay.http.HttpServer.doStart(HttpServer.java:753)
> org.mortbay.util.Container.start(Container.java:72)
> com.iw.plugins.jettyrunner.PluginRunner.launch(PluginRunner.java:282)
> com.iw.plugins.jettyrunner.PluginRunner.launch(PluginRunner.java:104)
> com.iw.plugins.jettyrunner.PluginRunner.main(PluginRunner.java:75)
>
>
> When I add hivemind-lib to classpath then I have the exception about 
> hivemind-lib...
>
> Where could I find the simplest HelloWorld for Tapestry4, so I could see
> the proper web.xml and .application files?
>
I have a "sandbox" application that I am using to test out Tapestry 4 
functionality, you can download it from 
http://scottwalter.com/site/scottwalter/downloads/tapestry4sandbox2.zip 
to compare it to what you have done.  If you use Eclipse, you can just 
import the project.

scott.

-- 

Scott F. Walter 	Scott F. Walter
Principal Consultant
Vivare, Inc.

E: scott.walter@vivare.com
E: scott@scottwalter.com
Visit scottwalter.com <http://scottwalter.com> --Point.  Click.  Explore!




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