Thanks Knut, it seems to be something to do with Eclipse and JettyLauncher -- jars in context/WEB-INF/lib which are in your projects classpath appear twice in the Jetty classpath, unless you manually remove them in the JettyLauncher config.

Works now.

Tom

On 09/11/2004, at 7:00 PM, Knut Wannheden wrote:

Tom,

It looks like the hivemind-1.0.jar appears twice on the classpath.
Can you verify that somehow?

--knut


On Tue, 9 Nov 2004 06:13:33 +1100, Tom Davies <[EMAIL PROTECTED]> wrote:
I've installed Hivemind 1.0 by adding the hivemind-1.0.jar to
WEB-INF/lib, and adding this mapping:

<filter>
          <filter-name>HiveMindFilter</filter-name>

<filter-class>org.apache.hivemind.servlet.HiveMindFilter</filter- class>
</filter>
<filter-mapping>
<filter-name>HiveMindFilter</filter-name>
<servlet-name>daffy</servlet-name>
</filter-mapping>


to my web.xml

When I start Jetty I get the error below. I expect it will go away when
I add my own hivemodule.xml, but it is a bit confusing. I'm using
JettyRunner under eclipse.


Tom

06:02:24.096 INFO [main]
org.apache.hivemind.servlet.HiveMindFilter.initializeRegistry(HiveMind Fi
lter.java:83) >09> Constructing HiveMind Registry.
06:02:24.307 ERROR! [main]
org.apache.hivemind.impl.DefaultErrorHandler.error(DefaultErrorHandler .j
ava:37) >30> Error at
jar:file:/Users/tomd/Development/Workspace/daffy/context/WEB-INF/lib/
hivemind-1.0.jar!/META-INF/hivemodule.xml, line 70, column 25: Schema
hivemind.Defaults conflicts with existing schema at
jar:file:/Users/tomd/Development/Workspace/daffy/context/WEB-INF/lib/
hivemind-1.0.jar!/META-INF/hivemodule.xml, line 70, column 25.null
06:02:24.317 ERROR! [main]
org.apache.hivemind.impl.DefaultErrorHandler.error(DefaultErrorHandler .j
ava:37) >30> Error at
jar:file:/Users/tomd/Development/Workspace/daffy/context/WEB-INF/lib/
hivemind-1.0.jar!/META-INF/hivemodule.xml, line 123, column 29: Schema
hivemind.MethodFilter conflicts with existing schema at
jar:file:/Users/tomd/Development/Workspace/daffy/context/WEB-INF/lib/
hivemind-1.0.jar!/META-INF/hivemodule.xml, line 123, column 29.null
06:02:24.354 ERROR! [main]
org.apache.hivemind.impl.DefaultErrorHandler.error(DefaultErrorHandler .j
ava:37) >15> Error: Module hivemind is duplicated! Definition in
jar:file:/Users/tomd/Development/Workspace/daffy/context/WEB-INF/lib/
hivemind-1.0.jar!/META-INF/hivemodule.xml has been ignored in favor of
existing definition from
jar:file:/Users/tomd/Development/Workspace/daffy/context/WEB-INF/lib/
hivemind-1.0.jar!/META-INF/hivemodule.xml.null
06:02:24.695 ERROR! [main]
org.apache.hivemind.servlet.HiveMindFilter.initializeRegistry(HiveMind Fi
lter.java:96) >09>
$InnerProxy_1001990c0a1_1.<init>($SingletonProxy_1001990bfde_0,
org.apache.hivemind.impl.servicemodel.SingletonServiceModel)
org.apache.hivemind.ApplicationRuntimeException:
$InnerProxy_1001990c0a1_1.<init>($SingletonProxy_1001990bfde_0,
org.apache.hivemind.impl.servicemodel.SingletonServiceModel)
at
org.apache.hivemind.impl.servicemodel.SingletonServiceModel.createSing le
tonProxy(SingletonServiceModel.java:114)
at
org.apache.hivemind.impl.servicemodel.SingletonServiceModel.getService (S
ingletonServiceModel.java:58)
at
org.apache.hivemind.impl.ServicePointImpl.getService(ServicePointImpl. ja
va:171)
at
org.apache.hivemind.impl.ServicePointImpl.getService(ServicePointImpl. ja
va:184)
at
org.apache.hivemind.impl.RegistryImpl.getService(RegistryImpl.java: 151)
at org.apache.hivemind.impl.RegistryImpl.startup(RegistryImpl.java:321)
at
org.apache.hivemind.impl.RegistryBuilder.constructRegistry(RegistryBui ld
er.java:417)
at
org.apache.hivemind.servlet.HiveMindFilter.constructRegistry(HiveMindF il
ter.java:113)
at
org.apache.hivemind.servlet.HiveMindFilter.initializeRegistry(HiveMind Fi
lter.java:87)
at
org.apache.hivemind.servlet.HiveMindFilter.init(HiveMindFilter.java: 75)
at org.mortbay.jetty.servlet.FilterHolder.start(FilterHolder.java:176)
at
org.mortbay.jetty.servlet.WebApplicationHandler.initializeServlets(Web Ap
plicationHandler.java:277)
at
org.mortbay.jetty.servlet.WebApplicationContext.start(WebApplicationCo nt
ext.java:445)
at org.mortbay.http.HttpServer.start(HttpServer.java:678)
at
com.iw.plugins.jettyrunner.PluginRunner.launch(PluginRunner.java:282)
at
com.iw.plugins.jettyrunner.PluginRunner.launch(PluginRunner.java:104)
at com.iw.plugins.jettyrunner.PluginRunner.main(PluginRunner.java:75)
Caused by: java.lang.NoSuchMethodException:
$InnerProxy_1001990c0a1_1.<init>($SingletonProxy_1001990bfde_0,
org.apache.hivemind.impl.servicemodel.SingletonServiceModel)
at java.lang.Class.getConstructor0(Class.java:1937)
at java.lang.Class.getConstructor(Class.java:1027)
at
org.apache.hivemind.impl.servicemodel.SingletonServiceModel.createSing le
tonProxy(SingletonServiceModel.java:103)
... 16 more
getRootCause():
java.lang.NoSuchMethodException:
$InnerProxy_1001990c0a1_1.<init>($SingletonProxy_1001990bfde_0,
org.apache.hivemind.impl.servicemodel.SingletonServiceModel)
at java.lang.Class.getConstructor0(Class.java:1937)
at java.lang.Class.getConstructor(Class.java:1027)
at
org.apache.hivemind.impl.servicemodel.SingletonServiceModel.createSing le
tonProxy(SingletonServiceModel.java:103)
at
org.apache.hivemind.impl.servicemodel.SingletonServiceModel.getService (S
ingletonServiceModel.java:58)
at
org.apache.hivemind.impl.ServicePointImpl.getService(ServicePointImpl. ja
va:171)
at
org.apache.hivemind.impl.ServicePointImpl.getService(ServicePointImpl. ja
va:184)
at
org.apache.hivemind.impl.RegistryImpl.getService(RegistryImpl.java: 151)
at org.apache.hivemind.impl.RegistryImpl.startup(RegistryImpl.java:321)
at
org.apache.hivemind.impl.RegistryBuilder.constructRegistry(RegistryBui ld
er.java:417)
at
org.apache.hivemind.servlet.HiveMindFilter.constructRegistry(HiveMindF il
ter.java:113)
at
org.apache.hivemind.servlet.HiveMindFilter.initializeRegistry(HiveMind Fi
lter.java:87)
at
org.apache.hivemind.servlet.HiveMindFilter.init(HiveMindFilter.java: 75)
at org.mortbay.jetty.servlet.FilterHolder.start(FilterHolder.java:176)
at
org.mortbay.jetty.servlet.WebApplicationHandler.initializeServlets(Web Ap
plicationHandler.java:277)
at
org.mortbay.jetty.servlet.WebApplicationContext.start(WebApplicationCo nt
ext.java:445)
at org.mortbay.http.HttpServer.start(HttpServer.java:678)
at
com.iw.plugins.jettyrunner.PluginRunner.launch(PluginRunner.java:282)
at
com.iw.plugins.jettyrunner.PluginRunner.launch(PluginRunner.java:104)
at com.iw.plugins.jettyrunner.PluginRunner.main(PluginRunner.java:75)
--
[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]



--
[EMAIL PROTECTED]


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to