Looks good to me; somehow you must have the JAR file on the classpath twice. Can we see your Ant build.xml (you obviously aren't using Maven).
In T4 I've seen a lot of people set up an eclipse project and store dependencies in src/context/WEB-INF/lib AND add them to the Eclipse project build path. That's one good way to get the module's class loaded twice. src/context/WEB-INF should not contain classes or lib when using Jetty launcher, because the Jetty process inherits the Eclipse project's build path already. On 4/4/07, Bill Holloway <[EMAIL PROTECTED]> wrote:
In a separate Eclipse project from my T5 project, I write a service called MyService Interface: package org.example.mylib; public interface MyService { public String doSomething (); } Impl: package org.example.mylib; public class MyServiceImpl implements MyService { public String doSomething () { return "the something!"; } } MyModule: package org.example.mylib; public class MyModule { public static MyService buildMyService () { return new MyServiceImpl (); } } I then define a manifest file with Manifest-Version: 1.0 Tapestry-Module-Classes: org.example.mylib.MyModule It's UTF8 encoded and has a CRLF at the end. I drop the jar into my classpath, and during the Eclipse Jetty launch, I get an exception: org.mortbay.util.MultiException[java.lang.RuntimeException: Service id 'MyService' has already been defined by org.example.mylib.MyModule.buildMyService() and may not be redefined by org.example.mylib.MyModule.buildMyService(). You should rename one of the service builder methods.] Cheers, Bill -- "The future is here. It's just not evenly distributed yet." -- Traditional --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- Howard M. Lewis Ship TWD Consulting, Inc. Independent J2EE / Open-Source Java Consultant Creator and PMC Chair, Apache Tapestry Creator, Apache HiveMind Professional Tapestry training, mentoring, support and project work. http://howardlewisship.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]