javassist changed its group / artifact id from javassist.javassist to 
jboss.javassist. Release 3.0 was the last one available under the javassist 
toplevel-group. If you somehow, transitively, reference both, maven has no way 
to know that both are the same artifact.

> -----Original Message-----
> From: Peter Schröder [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, July 12, 2007 10:37 AM
> To: Tapestry users
> Subject: AW: T4.1.2 error loading hivemind-service
> 
> it seems that this is a maven-issue. i have to update all 
> dependencies that are still using javassist-3.0 to use 
> javassist-3.4.ga. locally overriding javassist-version in the 
> application pom has no effect... even though eclipse sais, 
> that javassist-3.4.ga is included as a dependency?!!?!?!?!?
> 
> -----Ursprüngliche Nachricht-----
> Von: Peter Schröder [mailto:[EMAIL PROTECTED]
> Gesendet: Donnerstag, 12. Juli 2007 10:01
> An: Tapestry users
> Betreff: AW: T4.1.2 error loading hivemind-service
> 
> hi renat,
> 
> i am using maven for my dependency management. it 
> automatically includes javassist-3.4.ga.jar into my project. 
> this is the same version that is stated here:
> http://tapestry.apache.org/tapestry4.1/dependency-convergence.html
> 
> i thought that hivemind services are compatible within T4 and 
> T4.1.2. (at least, i did not read the opposite somewhere), 
> cause both use hivemind-1.1.1?!
> 
> kind regards,
> peter 
> 
> -----Ursprüngliche Nachricht-----
> Von: Renat Zubairov [mailto:[EMAIL PROTECTED]
> Gesendet: Mittwoch, 11. Juli 2007 19:21
> An: Tapestry users
> Betreff: Re: T4.1.2 error loading hivemind-service
> 
> Hi
> 
> This exception
> 
> "javassist.CtClass.toClass(Ljava/lang/ClassLoader;Ljava/securi
> ty/ProtectionDomain;)Ljava/lang/Class;"
> 
> Means that you have a Javassist version mismatch, check your 
> classpath for the older versions of Javassist.
> 
> Renat
> 
> On 11/07/07, Peter Schröder <[EMAIL PROTECTED]> wrote:
> > hi,
> >
> > i am doing a simple test with the new version of tapestry 
> (runs fine with 4.0.2):
> >
> > public class LoginTest extends TestCase {
> >         public void testService() {
> >                 Registry registry = 
> RegistryBuilder.constructDefaultRegistry();
> >                 AGLoginService service = (AGLoginService) 
> registry.getService(AGLoginService.class);
> >                 boolean isAdmin = false;
> >
> >                 ArrayList<String> ldapRoles = new 
> ArrayList<String>();
> >                 ldapRoles.add("admin");
> >                 String userName = "dummyuser";
> >                 String userPassword = "xyz";
> >                 service.authUser(userName, userPassword, 
> ldapRoles, isAdmin);
> >         }
> > }
> >
> > resulting in the following stacktrace using 
> javassist-3.4.ga. i also tried to use an old version of 
> javassist (3.0) wich doesnt work either...
> >
> > 09:00:59,239 DEBUG [ConfigurationPointImpl] Constructing extension 
> > point hivemind.ServiceModels
> > org.apache.hivemind.ApplicationRuntimeException: Unable to 
> create class $Runnable_113b414a9d1: 
> javassist.CtClass.toClass(Ljava/lang/ClassLoader;Ljava/securit
> y/ProtectionDomain;)Ljava/lang/Class;
> >         at 
> org.apache.hivemind.impl.servicemodel.SingletonServiceModel.cr
> eateSingletonProxy(SingletonServiceModel.java:130)
> >         at 
> org.apache.hivemind.impl.servicemodel.SingletonServiceModel.ge
> tService(SingletonServiceModel.java:57)
> >         at 
> org.apache.hivemind.impl.ServicePointImpl.getService(ServicePo
> intImpl.java:210)
> >         at 
> org.apache.hivemind.impl.ServicePointImpl.getService(ServicePo
> intImpl.java:223)
> >         at 
> org.apache.hivemind.impl.RegistryInfrastructureImpl.getService
> (RegistryInfrastructureImpl.java:207)
> >         at 
> org.apache.hivemind.impl.RegistryInfrastructureImpl.startup(Re
> gistryInfrastructureImpl.java:434)
> >         at 
> org.apache.hivemind.impl.RegistryBuilder.constructRegistry(Reg
> istryBuilder.java:154)
> >         at 
> org.apache.hivemind.impl.RegistryBuilder.constructDefaultRegis
> try(RegistryBuilder.java:196)
> >         at 
> de.freenet.pos.posDB.test.LoginTest.testService(LoginTest.java:18)
> >         at 
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >         at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess
> orImpl.java:39)
> >         at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth
> odAccessorImpl.java:25)
> >         at java.lang.reflect.Method.invoke(Method.java:585)
> >         at junit.framework.TestCase.runTest(TestCase.java:154)
> >         at junit.framework.TestCase.runBare(TestCase.java:127)
> >         at junit.framework.TestResult$1.protect(TestResult.java:106)
> >         at 
> junit.framework.TestResult.runProtected(TestResult.java:124)
> >         at junit.framework.TestResult.run(TestResult.java:109)
> >         at junit.framework.TestCase.run(TestCase.java:118)
> >         at 
> org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReferen
> ce.run(JUnit3TestReference.java:128)
> >         at 
> org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestEx
> ecution.java:38)
> >         at 
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTest
> s(RemoteTestRunner.java:460)
> >         at 
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTest
> s(RemoteTestRunner.java:673)
> >         at 
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(Rem
> oteTestRunner.java:386)
> >         at 
> > 
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTest
> > Runner.java:196) Caused by: 
> > org.apache.hivemind.ApplicationRuntimeException: Unable to 
> create class $Runnable_113b414a9d1: 
> javassist.CtClass.toClass(Ljava/lang/ClassLoader;Ljava/securit
> y/ProtectionDomain;)Ljava/lang/Class;
> >         at 
> org.apache.tapestry.enhance.CtClassSource.createClass(CtClassS
> ource.java:89)
> >         at 
> org.apache.tapestry.enhance.CtClassSource.createClass(CtClassS
> ource.java:78)
> >         at 
> org.apache.tapestry.enhance.AbstractFab.createClass(AbstractFa
> b.java:91)
> >         at 
> org.apache.hivemind.impl.servicemodel.SingletonServiceModel.cr
> eateSingletonProxyClass(SingletonServiceModel.java:185)
> >         at 
> org.apache.hivemind.impl.servicemodel.SingletonServiceModel.cr
> eateSingletonProxy(SingletonServiceModel.java:102)
> >         ... 24 more
> > Caused by: java.lang.NoSuchMethodError: 
> javassist.CtClass.toClass(Ljava/lang/ClassLoader;Ljava/securit
> y/ProtectionDomain;)Ljava/lang/Class;
> >         at 
> org.apache.tapestry.enhance.HiveMindClassPool.toClass(HiveMind
> ClassPool.java:79)
> >         at 
> org.apache.tapestry.enhance.CtClassSource.createClass(CtClassS
> ource.java:85)
> >         ... 28 more
> >
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> 
> --
> Best regards,
> Renat Zubairov
> 
> ---------------------------------------------------------------------
> 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]
> 
> 

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

Reply via email to