You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by ADong <gz...@hotmail.com> on 2005/08/10 08:28:22 UTC

deploy workbeach in eclipse, but run error.......pliease HELP!.....

Hi:
  
  I am a jackaroo. My apologizes if someone asked this question before.
  
  I deployed the workbeach in eclipse as a resin project.

  First, I builded a new resin project. (resin-3.0.9, j2sdk-1.4.2, eclipse3.0.1)
  
  Second, I copied all .java file (under tapestry-4.0-beta-3
\examples\Workbench\src\java\) to ecilpse/workspace/{resin-project}/src/ , 
copied all files under tapestry-4.0-beta-3\examples\Workbench\src\context\ to 
ecilpse/workspace/{resin-project}/web/ , copied all dependence-Lib to 
ecilpse/workspace/{resin-project}/lib/.

<classpathentry kind="lib" path="lib/ejb-20.jar"/>
<classpathentry kind="lib" path="lib/ejb-30.jar"/>
<classpathentry kind="lib" path="lib/isorelax.jar"/>
<classpathentry kind="lib" path="lib/j2eedeploy.jar"/>
<classpathentry kind="lib" path="lib/jaxrpc.jar"/>
<classpathentry kind="lib" path="lib/jca-15.jar"/>
<classpathentry kind="lib" path="lib/jms-11.jar"/>
<classpathentry kind="lib" path="lib/jmx-12.jar"/>
<classpathentry kind="lib" path="lib/jsdk-24.jar"/>
<classpathentry kind="lib" path="lib/jstl-11.jar"/>
<classpathentry kind="lib" path="lib/jta-101.jar"/>
<classpathentry kind="lib" path="lib/portlet-10.jar"/>
<classpathentry kind="lib" path="lib/resin.jar"/>
<classpathentry kind="lib" path="lib/resin-jdk15.jar"/>
<classpathentry kind="lib" path="lib/retroweaver.jar"/>
<classpathentry kind="lib" path="lib/webutil.jar"/>
<classpathentry kind="lib" path="lib/bsf-2.3.0.jar"/>
<classpathentry kind="lib" path="lib/commons-codec-1.3.jar"/>
<classpathentry kind="lib" path="lib/commons-fileupload-1.0.jar"/>
<classpathentry kind="lib" path="lib/commons-logging-1.0.4.jar"/>
<classpathentry kind="lib" path="lib/javassist-3.0.jar"/>
<classpathentry kind="lib" path="lib/ognl-2.6.7.jar"/>
<classpathentry kind="lib" path="lib/oro-2.0.8.jar"/>
<classpathentry kind="lib" path="lib/tapestry-4.0-beta-3.jar"/>
<classpathentry kind="lib" path="lib/tapestry-annotations-4.0-beta-3.jar"/>
<classpathentry kind="lib" path="lib/tapestry-contrib-4.0-beta-3.jar"/>
<classpathentry kind="lib" path="lib/tapestry-portlet-4.0-beta-3.jar"/>
<classpathentry kind="lib" path="lib/hivemind-1.1-beta-2.jar"/>
<classpathentry kind="lib" path="lib/hivemind-lib-1.1-beta-2.jar"/>

   Then, I Debug(or run) the project in eclipse(resin IDE had bean deployed in 
eclipse). But the console window of eclipse showed error messages:

**********************************************************

org.apache.hivemind.ApplicationRuntimeException: Error: Module hivemind is 
duplicated!  Definition in 
jar:file:/D:/eclipse3/workspace/workbench/lib/hivemind-1.1-beta-2.jar!/META-
INF/hivemodule.xml has been ignored in favor of existing definition from 
jar:file:/D:/eclipse3/workspace/workbench/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)
........

**********************************************************

[10:23:36.708] javax.servlet.ServletException: Unable to initialize application 
servlet: Error: Module hivemind is duplicated!  Definition in 
jar:file:/D:/eclipse3/workspace/workbench/lib/hivemind-1.1-beta-2.jar!/META-
INF/hivemodule.xml has been ignored in favor of existing definition from 
jar:file:/D:/eclipse3/workspace/workbench/lib/hivemind-1.1-beta-2.jar!/META-
INF/hivemodule.xml.
[10:23:36.708] 	at org.apache.tapestry.ApplicationServlet.init
(ApplicationServlet.java:228)
[10:23:36.708] 	at com.caucho.server.dispatch.ServletConfigImpl.createServlet
(ServletConfigImpl.java:556)
[10:23:36.708] 	at com.caucho.server.dispatch.ServletManager.init
(ServletManager.java:139)
...............


   I have no idea to solve this problem. If I copy the workbeach.war to resin-
3.0.9/webapp/, and directly run resin-3.0.9. It is all right, no problemn. So, 
I feel very strange. Thank you for any suggestion.

   Another question about \tapestry-4.0-beta-3\eclipse\Tapestry-
Workbench.launch. How to use it?

   Thank you very much.


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


Re: deploy workbeach in eclipse, but run error.......pliease HELP!.....

Posted by Howard Lewis Ship <hl...@gmail.com>.
I've seen something similar in Jetty.

You want to make sure that the libraries are on the classpath, but not
in WEB-INF/lib.  If they are in the classpath, and then also in
WEB-INF/lib, then its like there are two copies of the library on the
classpath (one from the base class loader, one from the web loader
class loader).  Even if they are the exact same file, HiveMind will
treat it as a conflict.

On 8/10/05, ADong <gz...@hotmail.com> wrote:
> Hi:
> 
>   I am a jackaroo. My apologizes if someone asked this question before.
> 
>   I deployed the workbeach in eclipse as a resin project.
> 
>   First, I builded a new resin project. (resin-3.0.9, j2sdk-1.4.2, eclipse3.0.1)
> 
>   Second, I copied all .java file (under tapestry-4.0-beta-3
> \examples\Workbench\src\java\) to ecilpse/workspace/{resin-project}/src/ ,
> copied all files under tapestry-4.0-beta-3\examples\Workbench\src\context\ to
> ecilpse/workspace/{resin-project}/web/ , copied all dependence-Lib to
> ecilpse/workspace/{resin-project}/lib/.
> 
> <classpathentry kind="lib" path="lib/ejb-20.jar"/>
> <classpathentry kind="lib" path="lib/ejb-30.jar"/>
> <classpathentry kind="lib" path="lib/isorelax.jar"/>
> <classpathentry kind="lib" path="lib/j2eedeploy.jar"/>
> <classpathentry kind="lib" path="lib/jaxrpc.jar"/>
> <classpathentry kind="lib" path="lib/jca-15.jar"/>
> <classpathentry kind="lib" path="lib/jms-11.jar"/>
> <classpathentry kind="lib" path="lib/jmx-12.jar"/>
> <classpathentry kind="lib" path="lib/jsdk-24.jar"/>
> <classpathentry kind="lib" path="lib/jstl-11.jar"/>
> <classpathentry kind="lib" path="lib/jta-101.jar"/>
> <classpathentry kind="lib" path="lib/portlet-10.jar"/>
> <classpathentry kind="lib" path="lib/resin.jar"/>
> <classpathentry kind="lib" path="lib/resin-jdk15.jar"/>
> <classpathentry kind="lib" path="lib/retroweaver.jar"/>
> <classpathentry kind="lib" path="lib/webutil.jar"/>
> <classpathentry kind="lib" path="lib/bsf-2.3.0.jar"/>
> <classpathentry kind="lib" path="lib/commons-codec-1.3.jar"/>
> <classpathentry kind="lib" path="lib/commons-fileupload-1.0.jar"/>
> <classpathentry kind="lib" path="lib/commons-logging-1.0.4.jar"/>
> <classpathentry kind="lib" path="lib/javassist-3.0.jar"/>
> <classpathentry kind="lib" path="lib/ognl-2.6.7.jar"/>
> <classpathentry kind="lib" path="lib/oro-2.0.8.jar"/>
> <classpathentry kind="lib" path="lib/tapestry-4.0-beta-3.jar"/>
> <classpathentry kind="lib" path="lib/tapestry-annotations-4.0-beta-3.jar"/>
> <classpathentry kind="lib" path="lib/tapestry-contrib-4.0-beta-3.jar"/>
> <classpathentry kind="lib" path="lib/tapestry-portlet-4.0-beta-3.jar"/>
> <classpathentry kind="lib" path="lib/hivemind-1.1-beta-2.jar"/>
> <classpathentry kind="lib" path="lib/hivemind-lib-1.1-beta-2.jar"/>
> 
>    Then, I Debug(or run) the project in eclipse(resin IDE had bean deployed in
> eclipse). But the console window of eclipse showed error messages:
> 
> **********************************************************
> 
> org.apache.hivemind.ApplicationRuntimeException: Error: Module hivemind is
> duplicated!  Definition in
> jar:file:/D:/eclipse3/workspace/workbench/lib/hivemind-1.1-beta-2.jar!/META-
> INF/hivemodule.xml has been ignored in favor of existing definition from
> jar:file:/D:/eclipse3/workspace/workbench/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)
> ........
> 
> **********************************************************
> 
> [10:23:36.708] javax.servlet.ServletException: Unable to initialize application
> servlet: Error: Module hivemind is duplicated!  Definition in
> jar:file:/D:/eclipse3/workspace/workbench/lib/hivemind-1.1-beta-2.jar!/META-
> INF/hivemodule.xml has been ignored in favor of existing definition from
> jar:file:/D:/eclipse3/workspace/workbench/lib/hivemind-1.1-beta-2.jar!/META-
> INF/hivemodule.xml.
> [10:23:36.708]  at org.apache.tapestry.ApplicationServlet.init
> (ApplicationServlet.java:228)
> [10:23:36.708]  at com.caucho.server.dispatch.ServletConfigImpl.createServlet
> (ServletConfigImpl.java:556)
> [10:23:36.708]  at com.caucho.server.dispatch.ServletManager.init
> (ServletManager.java:139)
> ...............
> 
> 
>    I have no idea to solve this problem. If I copy the workbeach.war to resin-
> 3.0.9/webapp/, and directly run resin-3.0.9. It is all right, no problemn. So,
> I feel very strange. Thank you for any suggestion.
> 
>    Another question about \tapestry-4.0-beta-3\eclipse\Tapestry-
> Workbench.launch. How to use it?
> 
>    Thank you very much.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-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: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org