[JBoss AOP] - Re: I can't get AOP to cross cut ... Please help
by wgmartinez
Hi Kabir,
Thanks for the tip on step4. It makes the installation tidier. I now have the aop.xml as follows:
| <mbean code="org.jboss.aop.deployment.AspectManagerServiceJDK5"
| name="jboss.aop:service=AspectManager">
| <attribute name="EnableLoadtimeWeaving">true</attribute>
| <!-- only relevant when EnableLoadtimeWeaving is true -->
| <attribute name="SuppressTransformationErrors">true</attribute>
| <attribute name="Prune">true</attribute>
| <attribute name="Include">com.ebrd</attribute>
| <attribute name="Exclude">org.jboss.</attribute>
| <attribute name="Optimized">true</attribute>
| <attribute name="Verbose">false</attribute>
| </mbean>
|
| <mbean code="org.jboss.aop.deployment.AspectDeployer"
| name="jboss.aop:service=AspectDeployer">
| </mbean>
|
|
And I'm getting this exception.
10:48:15,825 INFO [ServiceConfigurator] Problem configuring service jboss.aop:service=AspectManager
org.jboss.deployment.DeploymentException: Exception setting attribute Include = com.ebrd on mbean jboss.aop:service=AspectManager; - nested throwable: (java.lang.IllegalAccessError: org/jboss/aop/LoadInterceptedClassesStrategy)
at org.jboss.system.ServiceConfigurator.setAttribute(ServiceConfigurator.java:698)
at org.jboss.system.ServiceConfigurator.configure(ServiceConfigurator.java:332)
at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:460)
at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:171)
at org.jboss.system.ServiceController.install(ServiceController.java:226)
at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy4.install(Unknown Source)
at org.jboss.deployment.SARDeployer.create(SARDeployer.java:249)
at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
at sun.reflect.GeneratedMethodAccessor55.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
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.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy8.deploy(Unknown Source)
at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:610)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)
Caused by: java.lang.IllegalAccessError: org/jboss/aop/LoadInterceptedClassesStrategy
at org.jboss.aop.AspectManager.(AspectManager.java:173)
at org.jboss.aop.AspectManager$2.run(AspectManager.java:276)
at java.security.AccessController.doPrivileged(Native Method)
at org.jboss.aop.AspectManager.instance(AspectManager.java:262)
at org.jboss.aop.AspectManager.instance(AspectManager.java:255)
at org.jboss.aop.deployment.AspectManagerService.setInclude(AspectManagerService.java:307)
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:597)
at org.jboss.mx.interceptor.AttributeDispatcher.invoke(AttributeDispatcher.java:136)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.interceptor.ModelMBeanAttributeInterceptor.invoke(ModelMBeanAttributeInterceptor.java:103)
at org.jboss.mx.interceptor.PersistenceInterceptor.invoke(PersistenceInterceptor.java:76)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.setAttribute(AbstractMBeanInvoker.java:461)
at org.jboss.mx.server.MBeanServerImpl.setAttribute(MBeanServerImpl.java:608)
at org.jboss.system.ServiceConfigurator.setAttribute(ServiceConfigurator.java:694)
... 36 more
10:48:16,231 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
--- MBeans waiting for other MBeans ---
ObjectName: jboss.aop:service=AspectManager
State: FAILED
Reason: org.jboss.deployment.DeploymentException: Exception setting attribute Include = com.ebrd on mbean jboss.aop:service=AspectManager; - nested throwable: (java.lang.IllegalAccessError: org/jboss/aop/LoadInterceptedClassesStrategy)
Does this mean that AOP is now trying to look for classes with this package signature. I have the classes already deployed.
Cheers
Willy
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4034459#4034459
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4034459
19 years
[JBoss jBPM] - how to merge global variables value in a JOIN
by tsandor
Hi,
I've seen the pattern "WPF3: Synchronization" and checked the test case "Wfp03SynchronizationTest" in jBPM3.1.4.
However, this workflow situtation is pretty straight forward, I cannot image how to extend it when there's also data with the workflow.
E.g. let's see the jpdl in the testcase:
| <process-definition>
| <start-state name='start'>
| <transition to='fork' />
| </start-state>
| <fork name='fork'>
| <transition name='first' to='one' />
| <transition name='second' to='two' />
| </fork>
| <state name='one'>
| <transition to='join' />
| </state>
| <state name='two'>
| <transition to='join' />
| </state>
| <join name='join'>
| <transition to='end' />
| </join>
| <end-state name='end' />
| </process-definition>
|
What if I have a String context variable named "str" with value "start" in start-state, and modify it in "state one" and "state two", str="one" and str="two" respectively.
What will be the value at the end after the join?
Will the "fork" make replicas of context variables when doing the fork, so that global values will not be overloaded in "state one" nor in "state two" in the same time? I guess, making replicas is necessary, because a variable modified in "state one" cannot be seen in "state two", since the later may also modify (and thus it would overload) the value of same variable.
If so, how will "join" merge these variable replicas? What will be the final context variable value?
Thanks for your help.
--
Thomas
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4034450#4034450
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4034450
19 years
[JBoss Seam] - Re: Help! A4JSF a:support problem
by christian.bauer@jboss.com
I'm doing the same but I'm using the action= attribute, not actionListener=, and it works:
| <s:decorate id="emailDecorate">
| <div class="entry">
| <div class="label">E-Mail:</div>
| <div class="input">
| <h:inputText tabindex="3" size="40" maxlength="255" required="true"
| id="email" value="#{userHome.instance.email}">
| <a:support event="onblur" reRender="emailDecorate"/>
| </h:inputText>
| </div>
| </div>
| </s:decorate>
|
| <s:decorate id="usernameDecorate">
| <div class="entry">
| <div class="label">Username:</div>
| <div class="input">
| <h:inputText tabindex="4" size="16" maxlength="16" required="true"
| id="username" value="#{userHome.instance.username}">
| <a:support event="onblur" action="#{userHome.validateUsername}" reRender="usernameDecorate"/>
| </h:inputText>
| </div>
| </div>
| </s:decorate>
|
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4034449#4034449
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4034449
19 years
[JBoss Seam] - Re: Question on Seam Request/Response Cycle
by christian.bauer@jboss.com
This is how an index.html/refresh will look like:
| http://localhost:8080/wiki/
|
| GET /wiki/ HTTP/1.1
| Host: localhost:8080
| User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3
| Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
| Accept-Language: en-us,en;q=0.5
| Accept-Encoding: gzip,deflate
| Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
| Keep-Alive: 300
| Connection: keep-alive
| Cookie: JSESSIONID=BAB0B6ADB8532F5FF85FEF7E70E5D12A
|
| HTTP/1.x 200 OK
| Server: Apache-Coyote/1.1
| X-Powered-By: Servlet 2.4; JBoss-4.0.5.GA (build: CVSTag=Branch_4_0 date=200610162339)/Tomcat-5.5
| Etag: W/"83-1175545117000"
| Last-Modified: Mon, 02 Apr 2007 20:18:37 GMT
| Content-Type: text/html
| Content-Length: 83
| Date: Wed, 04 Apr 2007 09:16:30 GMT
|
| ----------------------------------------------------------
|
| http://localhost:8080/wiki/9.html
|
|
| GET /wiki/9.html HTTP/1.1
| Host: localhost:8080
| User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3
| Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
| Accept-Language: en-us,en;q=0.5
| Accept-Encoding: gzip,deflate
| Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
| Keep-Alive: 300
| Connection: keep-alive
| Cookie: JSESSIONID=BAB0B6ADB8532F5FF85FEF7E70E5D12A
|
Notice the first GET results in the index.html, the second GET is triggered by the refresh inside the index.html.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4034448#4034448
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4034448
19 years