[JBoss Cache] - PojoCache
by Sagar N
Sagar N [http://community.jboss.org/people/vsnallu] created the discussion
"PojoCache"
To view the discussion, visit: http://community.jboss.org/message/589613#589613
--------------------------------------------------------------
Hi ,
I am new to PojoCache. Studied the PojoCache User documentation. I am trying to add a class to PojoCache and has references to other data classes. So I annotated the main class and referencing classes with @org.jboss.cache.pojo.annotation.Replicable. Used the following ant target to precompile the classes so as to do the instrumentation.
<target name="aopc" description="Precompile aop class">
<taskdef name="aopc" classname="org.jboss.aop.ant.AopC"
classpathref="aop.classpath"/>
<aopc compilerclasspathref="compile.classpath" verbose="true">
<classpath refid="pojo.classes" />
<src path="${app.dir.class}"/>
<aoppath path="./pojoLib/pojocache-aop.xml"/>
</aopc>
</target>
where pojo.classes refer to set of classes with @replicable annotation. When I run the ant task I am getting the following exception.
[aopc] [info] Total length of filenames to be compiled is greater than 1000, listing files in --SOURCEPATH: C:\DOCUME~1\SAGAR~1.NAL\LOCALS~1\Temp\src8079062473957626159.tmp
[aopc] [no comp needed] C:\Sagar\EARFileCreation\Entitlement\WebContent\WEB-INF\classes\com\verizon\conferencing\confapi\util\TokenPool$TokenPoolAdvisor.class
[aopc] [no comp needed] C:\Sagar\EARFileCreation\Entitlement\WebContent\WEB-INF\classes\com\verizon\conferencing\confapi\util\TokenPool$TokenPoolInstanceAdvisor.class
[aopc] [no comp needed] C:\Sagar\EARFileCreation\Entitlement\WebContent\WEB-INF\classes\com\verizon\conferencing\confapi\util\SessionToken.class
[aopc] [no comp needed] C:\Sagar\EARFileCreation\Entitlement\WebContent\WEB-INF\classes\com\verizon\conferencing\confapi\security\ConfAPISignature.class
[aopc] [no comp needed] C:\Sagar\EARFileCreation\Entitlement\WebContent\WEB-INF\classes\com\verizon\conferencing\confapi\dao\KeypairData$KeypairDataAdvisor.class
[aopc] [no comp needed] C:\Sagar\EARFileCreation\Entitlement\WebContent\WEB-INF\classes\com\verizon\conferencing\confapi\dao\KeypairData$JoinPoint_w_applID.class
[aopc] [no comp needed] C:\Sagar\EARFileCreation\Entitlement\WebContent\WEB-INF\classes\com\verizon\conferencing\confapi\dao\KeypairData$JoinPoint_r_updateDate.class
[aopc] [no comp needed] C:\Sagar\EARFileCreation\Entitlement\WebContent\WEB-INF\classes\com\verizon\conferencing\confapi\dao\KeypairData$JoinPoint_w_updateDate.class
[aopc] [no comp needed] C:\Sagar\EARFileCreation\Entitlement\WebContent\WEB-INF\classes\com\verizon\conferencing\confapi\dao\KeypairData$JoinPoint_w_versionKey.class
[aopc] [no comp needed] C:\Sagar\EARFileCreation\Entitlement\WebContent\WEB-INF\classes\com\verizon\conferencing\confapi\util\SessionToken$JoinPoint_r_creationTimestamp.class
[aopc] [no comp needed] C:\Sagar\EARFileCreation\Entitlement\WebContent\WEB-INF\classes\com\verizon\conferencing\confapi\util\TokenPool$JoinPoint_w_pool.class
[aopc] [no comp needed] C:\Sagar\EARFileCreation\Entitlement\WebContent\WEB-INF\classes\com\verizon\conferencing\confapi\dao\KeypairData$KeypairDataAdvisor.class
[aopc] [no comp needed] C:\Sagar\EARFileCreation\Entitlement\WebContent\WEB-INF\classes\com\verizon\conferencing\confapi\dao\KeypairData$KeypairDataInstanceAdvisor.class
[aopc] [no comp needed] C:\Sagar\EARFileCreation\Entitlement\WebContent\WEB-INF\classes\com\verizon\conferencing\confapi\util\SessionToken$JoinPoint_r_originAddress.class
[aopc] [no comp needed] C:\Sagar\EARFileCreation\Entitlement\WebContent\WEB-INF\classes\com\verizon\conferencing\confapi\util\TokenPool$TokenPoolAdvisor.class
[aopc] [no comp needed] C:\Sagar\EARFileCreation\Entitlement\WebContent\WEB-INF\classes\com\verizon\conferencing\confapi\dao\KeypairData$JoinPoint_r_versionNumber.class
[aopc] [no comp needed] C:\Sagar\EARFileCreation\Entitlement\WebContent\WEB-INF\classes\com\verizon\conferencing\confapi\dao\BlockedIPAddressProc.class
[aopc] [no comp needed] C:\Sagar\EARFileCreation\Entitlement\WebContent\WEB-INF\classes\com\verizon\conferencing\confapi\dao\KeypairData$JoinPoint_r_applVersionID.class
[aopc] [no comp needed] C:\Sagar\EARFileCreation\Entitlement\WebContent\WEB-INF\classes\com\verizon\conferencing\confapi\dao\KeypairData$JoinPoint_r_updLoginID.class
[aopc] [no comp needed] C:\Sagar\EARFileCreation\Entitlement\WebContent\WEB-INF\classes\com\verizon\conferencing\confapi\dao\KeypairData$JoinPoint_w_versionNumber.class
[aopc] [no comp needed] C:\Sagar\EARFileCreation\Entitlement\WebContent\WEB-INF\classes\com\verizon\conferencing\confapi\dao\ValidateUserDAO.class
[aopc] [no comp needed] C:\Sagar\EARFileCreation\Entitlement\WebContent\WEB-INF\classes\com\verizon\conferencing\confapi\webservice\ValidateExternalRequestResponse.class
[aopc] [no comp needed] C:\Sagar\EARFileCreation\Entitlement\WebContent\WEB-INF\classes\com\verizon\conferencing\confapi\util\SessionToken$SessionTokenAdvisor.class
[aopc] [no comp needed] C:\Sagar\EARFileCreation\Entitlement\WebContent\WEB-INF\classes\com\verizon\conferencing\confapi\util\SessionToken$SessionTokenInstanceAdvisor.class
[aopc] [no comp needed] C:\Sagar\EARFileCreation\Entitlement\WebContent\WEB-INF\classes\com\verizon\conferencing\confapi\dao\KeypairData$JoinPoint_r_effDate.class
[aopc] [no comp needed] C:\Sagar\EARFileCreation\Entitlement\WebContent\WEB-INF\classes\com\verizon\conferencing\confapi\util\SessionToken$JoinPoint_w_sessionTimestamp.class
[aopc] [no comp needed] C:\Sagar\EARFileCreation\Entitlement\WebContent\WEB-INF\classes\com\verizon\conferencing\confapi\webservice\ValidateExternalRequestRequest.class
[aopc] [warn] Could not find class org.jboss.ha.cachemanager.CacheManager that com.verizon.conferencing.confapi.util.EntitlementPojoCache references. It may not be in your classpath and you may not be getting field and constructor weaving for this class.
[aopc] javassist.NotFoundException: org.jboss.ha.cachemanager.CacheManager
[aopc] at javassist.ClassPool.get(ClassPool.java:436)
[aopc] at org.jboss.aop.instrument.Instrumentor.convertReferences(Instrumentor.java:648)
[aopc] at org.jboss.aop.instrument.Instrumentor.transform(Instrumentor.java:763)
[aopc] at org.jboss.aop.instrument.GeneratedAdvisorInstrumentor.transform(GeneratedAdvisorInstrumentor.java:119)
[aopc] at org.jboss.aop.ClassicWeavingStrategy.translate(ClassicWeavingStrategy.java:110)
[aopc] at org.jboss.aop.AspectManager.translate(AspectManager.java:1051)
[aopc] at org.jboss.aop.AspectManager.transform(AspectManager.java:993)
[aopc] at org.jboss.aop.standalone.Compiler.compileFile(Compiler.java:391)
[aopc] at org.jboss.aop.standalone.Compiler.compile(Compiler.java:243)
[aopc] at org.jboss.aop.standalone.Compiler.main(Compiler.java:88)
[aopc] java.lang.RuntimeException: javassist.NotFoundException: org.jboss.ha.cachemanager.CacheManager
[aopc] at org.jboss.aop.pointcut.FieldMatcher.visit(FieldMatcher.java:113)
[aopc] at org.jboss.aop.pointcut.ast.ASTField.jjtAccept(ASTField.java:44)
[aopc] at org.jboss.aop.pointcut.FieldMatcher.visit(FieldMatcher.java:157)
[aopc] at org.jboss.aop.pointcut.ast.ASTFieldExecution.jjtAccept(ASTFieldExecution.java:37)
[aopc] at org.jboss.aop.pointcut.MatcherHelper.visit(MatcherHelper.java:89)
[aopc] at org.jboss.aop.pointcut.MatcherHelper.matches(MatcherHelper.java:83)
[aopc] at org.jboss.aop.pointcut.PointcutExpression.matchesGet(PointcutExpression.java:212)
[aopc] at org.jboss.aop.instrument.JoinpointClassifier$1.matches(JoinpointClassifier.java:80)
[aopc] at org.jboss.aop.instrument.JoinpointSimpleClassifier.classifyJoinpoint(JoinpointSimpleClassifier.java:63)
[aopc] at org.jboss.aop.instrument.JoinpointClassifier.classifyFieldGet(JoinpointClassifier.java:197)
[aopc] at org.jboss.aop.instrument.FieldAccessTransformer.buildFieldWrappers(FieldAccessTransformer.java:91)
[aopc] at org.jboss.aop.instrument.Instrumentor.transform(Instrumentor.java:778)
[aopc] at org.jboss.aop.instrument.GeneratedAdvisorInstrumentor.transform(GeneratedAdvisorInstrumentor.java:119)
[aopc] at org.jboss.aop.ClassicWeavingStrategy.translate(ClassicWeavingStrategy.java:110)
[aopc] at org.jboss.aop.AspectManager.translate(AspectManager.java:1051)
[aopc] at org.jboss.aop.AspectManager.transform(AspectManager.java:993)
[aopc] at org.jboss.aop.standalone.Compiler.compileFile(Compiler.java:391)
[aopc] at org.jboss.aop.standalone.Compiler.compile(Compiler.java:243)
[aopc] at org.jboss.aop.standalone.Compiler.main(Compiler.java:88)
[aopc] Caused by: javassist.NotFoundException: org.jboss.ha.cachemanager.CacheManager
[aopc] at javassist.ClassPool.get(ClassPool.java:436)
[aopc] at javassist.bytecode.Descriptor.toCtClass(Descriptor.java:591)
[aopc] at javassist.bytecode.Descriptor.toCtClass(Descriptor.java:541)
[aopc] at javassist.CtField.getType(CtField.java:306)
[aopc] at org.jboss.aop.pointcut.FieldMatcher.visit(FieldMatcher.java:102)
[aopc] ... 18 more
[aopc] java.lang.RuntimeException: failed to transform: com.verizon.conferencing.confapi.util.EntitlementPojoCache
[aopc] at org.jboss.aop.instrument.Instrumentor.transform(Instrumentor.java:829)
[aopc] at org.jboss.aop.instrument.GeneratedAdvisorInstrumentor.transform(GeneratedAdvisorInstrumentor.java:119)
[aopc] at org.jboss.aop.ClassicWeavingStrategy.translate(ClassicWeavingStrategy.java:110)
[aopc] at org.jboss.aop.AspectManager.translate(AspectManager.java:1051)
[aopc] at org.jboss.aop.AspectManager.transform(AspectManager.java:993)
[aopc] at org.jboss.aop.standalone.Compiler.compileFile(Compiler.java:391)
[aopc] at org.jboss.aop.standalone.Compiler.compile(Compiler.java:243)
[aopc] at org.jboss.aop.standalone.Compiler.main(Compiler.java:88)
[aopc] Caused by: java.lang.RuntimeException: javassist.NotFoundException: org.jboss.ha.cachemanager.CacheManager
[aopc] at org.jboss.aop.pointcut.FieldMatcher.visit(FieldMatcher.java:113)
[aopc] at org.jboss.aop.pointcut.ast.ASTField.jjtAccept(ASTField.java:44)
[aopc] at org.jboss.aop.pointcut.FieldMatcher.visit(FieldMatcher.java:157)
[aopc] at org.jboss.aop.pointcut.ast.ASTFieldExecution.jjtAccept(ASTFieldExecution.java:37)
[aopc] at org.jboss.aop.pointcut.MatcherHelper.visit(MatcherHelper.java:89)
[aopc] at org.jboss.aop.pointcut.MatcherHelper.matches(MatcherHelper.java:83)
[aopc] at org.jboss.aop.pointcut.PointcutExpression.matchesGet(PointcutExpression.java:212)
[aopc] at org.jboss.aop.instrument.JoinpointClassifier$1.matches(JoinpointClassifier.java:80)
[aopc] at org.jboss.aop.instrument.JoinpointSimpleClassifier.classifyJoinpoint(JoinpointSimpleClassifier.java:63)
[aopc] at org.jboss.aop.instrument.JoinpointClassifier.classifyFieldGet(JoinpointClassifier.java:197)
[aopc] at org.jboss.aop.instrument.FieldAccessTransformer.buildFieldWrappers(FieldAccessTransformer.java:91)
[aopc] at org.jboss.aop.instrument.Instrumentor.transform(Instrumentor.java:778)
[aopc] ... 7 more
[aopc] Caused by: javassist.NotFoundException: org.jboss.ha.cachemanager.CacheManager
[aopc] at javassist.ClassPool.get(ClassPool.java:436)
[aopc] at javassist.bytecode.Descriptor.toCtClass(Descriptor.java:591)
[aopc] at javassist.bytecode.Descriptor.toCtClass(Descriptor.java:541)
[aopc] at javassist.CtField.getType(CtField.java:306)
[aopc] at org.jboss.aop.pointcut.FieldMatcher.visit(FieldMatcher.java:102)
[aopc] ... 18 more
[aopc] Exception in thread "main" java.lang.RuntimeException: java.lang.RuntimeException: failed to transform: com.verizon.conferencing.confapi.util.EntitlementPojoCache
[aopc] at org.jboss.aop.AspectManager.translate(AspectManager.java:1062)
[aopc] at org.jboss.aop.AspectManager.transform(AspectManager.java:993)
[aopc] at org.jboss.aop.standalone.Compiler.compileFile(Compiler.java:391)
[aopc] at org.jboss.aop.standalone.Compiler.compile(Compiler.java:243)
[aopc] at org.jboss.aop.standalone.Compiler.main(Compiler.java:88)
[aopc] Caused by: java.lang.RuntimeException: failed to transform: com.verizon.conferencing.confapi.util.EntitlementPojoCache
[aopc] at org.jboss.aop.instrument.GeneratedAdvisorInstrumentor.transform(GeneratedAdvisorInstrumentor.java:148)
[aopc] at org.jboss.aop.ClassicWeavingStrategy.translate(ClassicWeavingStrategy.java:110)
[aopc] at org.jboss.aop.AspectManager.translate(AspectManager.java:1051)
[aopc] ... 4 more
[aopc] Caused by: java.lang.RuntimeException: failed to transform: com.verizon.conferencing.confapi.util.EntitlementPojoCache
[aopc] at org.jboss.aop.instrument.Instrumentor.transform(Instrumentor.java:829)
[aopc] at org.jboss.aop.instrument.GeneratedAdvisorInstrumentor.transform(GeneratedAdvisorInstrumentor.java:119)
[aopc] ... 6 more
[aopc] Caused by: java.lang.RuntimeException: javassist.NotFoundException: org.jboss.ha.cachemanager.CacheManager
[aopc] at org.jboss.aop.pointcut.FieldMatcher.visit(FieldMatcher.java:113)
[aopc] at org.jboss.aop.pointcut.ast.ASTField.jjtAccept(ASTField.java:44)
[aopc] at org.jboss.aop.pointcut.FieldMatcher.visit(FieldMatcher.java:157)
[aopc] at org.jboss.aop.pointcut.ast.ASTFieldExecution.jjtAccept(ASTFieldExecution.java:37)
[aopc] at org.jboss.aop.pointcut.MatcherHelper.visit(MatcherHelper.java:89)
[aopc] at org.jboss.aop.pointcut.MatcherHelper.matches(MatcherHelper.java:83)
[aopc] at org.jboss.aop.pointcut.PointcutExpression.matchesGet(PointcutExpression.java:212)
[aopc] at org.jboss.aop.instrument.JoinpointClassifier$1.matches(JoinpointClassifier.java:80)
[aopc] at org.jboss.aop.instrument.JoinpointSimpleClassifier.classifyJoinpoint(JoinpointSimpleClassifier.java:63)
[aopc] at org.jboss.aop.instrument.JoinpointClassifier.classifyFieldGet(JoinpointClassifier.java:197)
[aopc] at org.jboss.aop.instrument.FieldAccessTransformer.buildFieldWrappers(FieldAccessTransformer.java:91)
[aopc] at org.jboss.aop.instrument.Instrumentor.transform(Instrumentor.java:778)
[aopc] ... 7 more
[aopc] Caused by: javassist.NotFoundException: org.jboss.ha.cachemanager.CacheManager
[aopc] at javassist.ClassPool.get(ClassPool.java:436)
[aopc] at javassist.bytecode.Descriptor.toCtClass(Descriptor.java:591)
[aopc] at javassist.bytecode.Descriptor.toCtClass(Descriptor.java:541)
[aopc] at javassist.CtField.getType(CtField.java:306)
[aopc] at org.jboss.aop.pointcut.FieldMatcher.visit(FieldMatcher.java:102)
[aopc] ... 18 more
[aopc] [ERROR] java.lang.RuntimeException: failed to transform: com.verizon.conferencing.confapi.util.EntitlementPojoCache
I have the required Jar files in the classpath. Any help will be greatly appreciated.
Thanks,
Sagar
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/589613#589613]
Start a new discussion in JBoss Cache at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 9 months
[EJB3] - Why IsCallerInRole returns true when no DeclaresRole is defined?
by Cristi Cioriia
Cristi Cioriia [http://community.jboss.org/people/cristi_cioriia] created the discussion
"Why IsCallerInRole returns true when no DeclaresRole is defined?"
To view the discussion, visit: http://community.jboss.org/message/589583#589583
--------------------------------------------------------------
Hi guys,
I have the following situation in my code as described above:
I have an interceptor class that intercept a stateless EJB A and contains some code like this:
this.sessionContext.isCallerInRole("CONTRACT_" + getId()); //returns true
A user role looks like "CONTRACT_1" and is assigned to the user by the login module. This interceptor intercepts an EJB that does NOT use @DeclaresRoles to declare any role. I am wandering how does this work since the annotation @DeclaresRoles is used specifically to define the roles that can be used in a isCallerInRole() call? Why doesn't this call return false?
I am using JBOSS 4.2.3.
I am trying to understand how this works especially because I am trying to test my EJBs with OpenEJB, which fails on the line mentioned above if I do not define the role for the EJB with @DeclaresRoles. If I do(by hardcoding the return value in the getId() method), then it works in OpenEJB too, so I am trying to see how JBOSS handled the situation so that I maybe adapt it to my test case.
Thanks for your help.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/589583#589583]
Start a new discussion in EJB3 at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 9 months
[JBoss Tools] - JBoss Tools: Seam: build/clean error
by allforjava allforjava
allforjava allforjava [http://community.jboss.org/people/allforjava] created the discussion
"JBoss Tools: Seam: build/clean error"
To view the discussion, visit: http://community.jboss.org/message/589293#589293
--------------------------------------------------------------
Hi All,
Made a checkout of modules in JBoss Tools from trunk. The modules are seam, build, hibernate along with the complete folder structure and pom.xml, bootstrap-pom.xml & build.xml.
However towards maven clean from eclipse for seam module following exceptions are thrown:
[ERROR] The build could not read 39 projects -> [Help 1]
[ERROR]
[ERROR] The project org.jboss.tools.seam.features:org.jboss.tools.seam.feature:3.2.0-SNAPSHOT (D:\PRATHAMESH\ENVIRONMENT\WORKSPACES\source-jbosstools\trunk\seam\features\org.jboss.tools.seam.feature\pom.xml) has 1 error
[ERROR] Non-resolvable parent POM: Could not find artifact org.jboss.tools:org.jboss.tools.parent.pom:pom:0.0.2-SNAPSHOT and 'parent.relativePath' points at wrong local POM @ line 4, column 10 -> [Help 2]
.
.
Note: The screenhot of my project setup is atatched with this discussion.
Please let me know how can I build the mavenized JBoss Tools: Seam. Any related stuff will be helpful.
Thank you in advance.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/589293#589293]
Start a new discussion in JBoss Tools at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 9 months