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/security/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/security/ProtectionDomain;)Ljava/lang/Class;
>         at 
> org.apache.hivemind.impl.servicemodel.SingletonServiceModel.createSingletonProxy(SingletonServiceModel.java:130)
>         at 
> org.apache.hivemind.impl.servicemodel.SingletonServiceModel.getService(SingletonServiceModel.java:57)
>         at 
> org.apache.hivemind.impl.ServicePointImpl.getService(ServicePointImpl.java:210)
>         at 
> org.apache.hivemind.impl.ServicePointImpl.getService(ServicePointImpl.java:223)
>         at 
> org.apache.hivemind.impl.RegistryInfrastructureImpl.getService(RegistryInfrastructureImpl.java:207)
>         at 
> org.apache.hivemind.impl.RegistryInfrastructureImpl.startup(RegistryInfrastructureImpl.java:434)
>         at 
> org.apache.hivemind.impl.RegistryBuilder.constructRegistry(RegistryBuilder.java:154)
>         at 
> org.apache.hivemind.impl.RegistryBuilder.constructDefaultRegistry(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(NativeMethodAccessorImpl.java:39)
>         at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.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.JUnit3TestReference.run(JUnit3TestReference.java:128)
>         at 
> org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
>         at 
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
>         at 
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
>         at 
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
>         at 
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
> Caused by: org.apache.hivemind.ApplicationRuntimeException: Unable to create 
> class $Runnable_113b414a9d1: 
> javassist.CtClass.toClass(Ljava/lang/ClassLoader;Ljava/security/ProtectionDomain;)Ljava/lang/Class;
>         at 
> org.apache.tapestry.enhance.CtClassSource.createClass(CtClassSource.java:89)
>         at 
> org.apache.tapestry.enhance.CtClassSource.createClass(CtClassSource.java:78)
>         at 
> org.apache.tapestry.enhance.AbstractFab.createClass(AbstractFab.java:91)
>         at 
> org.apache.hivemind.impl.servicemodel.SingletonServiceModel.createSingletonProxyClass(SingletonServiceModel.java:185)
>         at 
> org.apache.hivemind.impl.servicemodel.SingletonServiceModel.createSingletonProxy(SingletonServiceModel.java:102)
>         ... 24 more
> Caused by: java.lang.NoSuchMethodError: 
> javassist.CtClass.toClass(Ljava/lang/ClassLoader;Ljava/security/ProtectionDomain;)Ljava/lang/Class;
>         at 
> org.apache.tapestry.enhance.HiveMindClassPool.toClass(HiveMindClassPool.java:79)
>         at 
> org.apache.tapestry.enhance.CtClassSource.createClass(CtClassSource.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]

Reply via email to