[jboss-user] [JBossCache] - Re: PojoCache with Compile Time Weaving on JBoss 4.2.0 ?

2007-07-18 Thread mbroons
1) I removed jboss-web-cluster.sar from the distribution and it
worked fine.

2)  I used the following jboss-aop.xml for aopc compilation and it worked fine.


  | 
  | 
  |
  |
  | 
  |
  |
  |   
  |
  | 
  |
  |   
  |  
org.jboss.aspects.patterns.observable.Subject
  |  org.jboss.aspects.patterns.observable.SubjectImpl
  |  new 
org.jboss.aspects.patterns.observable.SubjectImpl(this)
  |   
  |
  |   
  |
  |
  | 
  |
  |
  |   
  |
  | 
  |
  |   
  |  
org.jboss.aspects.patterns.observable.Subject
  |  org.jboss.aspects.patterns.observable.SubjectImpl
  |  new 
org.jboss.aspects.patterns.observable.SubjectImpl(this)
  |   
  |
  |
  | 


Thanks

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4065306#4065306

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4065306
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossCache] - Re: PojoCache with Compile Time Weaving on JBoss 4.2.0 ?

2007-07-17 Thread [EMAIL PROTECTED]
You could also make them compatible by adding the following to your compile 
time aop config:


  |
  |   
  |  
org.jboss.aspects.patterns.observable.Subject
  |  org.jboss.aspects.patterns.observable.SubjectImpl
  |  new 
org.jboss.aspects.patterns.observable.SubjectImpl(this)
  |   
  |
  | 

-Jason

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4065098#4065098

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4065098
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossCache] - Re: PojoCache with Compile Time Weaving on JBoss 4.2.0 ?

2007-07-16 Thread [EMAIL PROTECTED]
I think there is a conflict with jboss-aop.xml from tc5 (used for field session 
replication). There we introduced SubjectInterceptor for the POJO.

I'd suggest you try first by running in default mode (i.e., no clustering). If 
it is working, and you don't need tc5, then remove tc5-clsuter.sar. Then give 
it another try.

-Ben

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4064803#4064803

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4064803
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossCache] - Re: PojoCache with Compile Time Weaving on JBoss 4.2.0 ?

2007-07-16 Thread mbroons
The pojo/ClientSession class is only shipped in DemoService.jar
I use the farm directory to deploy the service in my two-node cluster.

If the problem is due to class loading, is there a way to enable classloader 
traces in JBoss ?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4064545#4064545

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4064545
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossCache] - Re: PojoCache with Compile Time Weaving on JBoss 4.2.0 ?

2007-07-12 Thread [EMAIL PROTECTED]
Are you certain that there is no other pojo.ClienSession class in the entire 
system?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4063723#4063723

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4063723
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossCache] - Re: PojoCache with Compile Time Weaving on JBoss 4.2.0 ?

2007-07-12 Thread mbroons
Sorry i did not describe correctly what i did.
No original class is packaged in the final jar...

The original class is:

ClientSession.class (non instrumented)

which becomes after aopc compilation:

ClientSession.class  (instrumented)
ClientSession$sessionId_Get.class
ClientSession$sessionId_Set.class

Only instrumented and generated classes are packaged in the DemoService.jar. 
Here is the full jar content

D:\ProjetJ\CounterService>jar tvf DemoService.jar

META-INF/
META-INF/MANIFEST.MF
cachemgnt/
cachemgnt/CacheEngine.class
ejbservice/
ejbservice/DemoService.class
ejbservice/DemoServiceMgnt.class
interfaces/
interfaces/DemoServiceRemote.class
pojo/
pojo/ClientSession$sessionId_Get.class
pojo/ClientSession$sessionId_Set.class
pojo/ClientSession.class

Another exception is also raised when i stop the Jboss instance.
It may help to understand what i did wrong
Here it is:

java.lang.RuntimeException: java.lang.RuntimeException: 
java.lang.RuntimeException: javassist.NotFoundException: pojo.ClientSession
at org.jboss.aop.ClassAdvisor.rebuildInterceptors(ClassAdvisor.java:979)
at org.jboss.aop.ClassAdvisor.removeAdviceBindings(ClassAdvisor.java:421
at org.jboss.aop.AspectManager.removeBindings(AspectManager.java:1355)
at org.jboss.aop.AspectXmlLoader.bulkUndeploy(AspectXmlLoader.java:1103)
at org.jboss.aop.AspectXmlLoader.undeployXML(AspectXmlLoader.java:1094)
at org.jboss.aop.AspectXmlLoader.undeploy(AspectXmlLoader.java:1216)
at org.jboss.aop.AspectXmlLoader.undeployXML(AspectXmlLoader.java:1251)
at org.jboss.aop.deployment.AspectDeployer.stop(AspectDeployer.java:241)
at org.jboss.deployment.MainDeployer.stop(MainDeployer.java:667)
at org.jboss.deployment.MainDeployer.stop(MainDeployer.java:659)
at org.jboss.deployment.MainDeployer.undeploy(MainDeployer.java:638)
at org.jboss.deployment.MainDeployer.shutdown(MainDeployer.java:516)
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 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at 
org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at 
org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at 
org.jboss.system.server.ServerImpl$ShutdownHook.shutdownDeployments(ServerImpl.java:1058)
at 
org.jboss.system.server.ServerImpl$ShutdownHook.shutdown(ServerImpl.java:1033)
at 
org.jboss.system.server.ServerImpl$ShutdownHook.run(ServerImpl.java:996)
Caused by: java.lang.RuntimeException: java.lang.RuntimeException: 
javassist.NotFoundException: pojo.ClientSession
at org.jboss.aop.pointcut.MethodMatcher.visit(MethodMatcher.java:130)
at org.jboss.aop.pointcut.ast.ASTAll.jjtAccept(ASTAll.java:41)
at org.jboss.aop.pointcut.MatcherHelper.visit(MatcherHelper.java:88)
at org.jboss.aop.pointcut.MatcherHelper.matches(MatcherHelper.java:83)
at 
org.jboss.aop.pointcut.PointcutExpression.matchesExecution(PointcutExpression.java:124)
at org.jboss.aop.Advisor.resolveMethodPointcut(Advisor.java:628)
at 
org.jboss.aop.ClassAdvisor.createInterceptorChains(ClassAdvisor.java:607)
at org.jboss.aop.ClassAdvisor.rebuildInterceptors(ClassAdvisor.java:974)

... 26 more
Caused by: java.lang.RuntimeException: javassist.NotFoundException: 
pojo.ClientSession
at org.jboss.aop.Advisor.hasAnnotation(Advisor.java:392)
at org.jboss.aop.pointcut.MethodMatcher.visit(MethodMatcher.java:126)
... 33 more
Caused by: javassist.NotFoundException: pojo.ClientSession
at javassist.ClassPool.get(ClassPool.java:417)
at 
org.jboss.aop.util.ReflectToJavassist.classToJavassist(ReflectToJavassist.java:49)
at 
org.jboss.aop.util.ReflectToJavassist.methodToJavassist(ReflectToJavassist.java:116)
at 
org.jboss.aop.annotation.PortableAnnotationElement.isAnyAnnotationPresent(PortableAnnotationElement.java:120)
at org.jboss.aop.Advisor.hasAnnotation(Advisor.java:388)
... 34 more



D:\ProjetJ\CounterService>jar tvf DemoService.jar

0 Mon Jun 25 09:41:52 CEST 2007 META-INF/
106 Mon Jun 25 09:41:50 CEST 2007 META-INF/MANIFEST.MF
0 Mon Jun 25 09:09:40 CEST 2007 cachemgnt/
2218 Mon Jun 25 09

[jboss-user] [JBossCache] - Re: PojoCache with Compile Time Weaving on JBoss 4.2.0 ?

2007-07-10 Thread [EMAIL PROTECTED]
"mbroons" wrote : I'm facing some trouble trying to use PojoCache with 
  | I packaged all class files (original classes + generated classes) in a 
  | single DemoService.jar file
  | 

Are you really combining both classes directories? Compile-time weaving 
modifies the classes, so you do not want the originals around, else you end up 
with duplicate classes which could cause the problem you describe.

-Jason

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4062646#4062646

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4062646
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user