[jBPM] - jBPM5 snapshot
by Kamil Šrot
Kamil Šrot [http://community.jboss.org/people/camel1cz] created the discussion
"jBPM5 snapshot"
To view the discussion, visit: http://community.jboss.org/message/581713#581713
--------------------------------------------------------------
Hi all, Kris,
First of all - I want to say, that I really like the design and appreciate your work! The application is amazing!
Now to my question - I'm testing the latest snapshot of jBPM5 with guvnor integration. My usecase is as follows:
- create simple process (start - user task - end)
- deploy it using eclipse guvnor plugin along with forms and image (similar to screencast by Kris)
- start the new process using jBPM console
It sort of works, but I have several issues I'm unable to sort out by myself.
- when I delete entry from KB (using eclipse), it disapears from the web interface (Guvnor repository), but I'm unable to put it back - eclipse says it already exists in the defaultPackage,
- when I update process and rebuild the package, the changes in the process doesn't seem to go thru to the console, the console shows version 0 next to the process and the process seems to be unchanged,
I'm not sure if I'm using it correctly, if I should fill bugreport or if it has been simply still working on...
Any feedback is welcome, Thank you!
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/581713#581713]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 5 months
[JBoss AOP] - Re: Wrong type of advice when using @Bind annotation
by andrewwot
andrewwot [http://community.jboss.org/people/andrewwot] created the discussion
"Re: Wrong type of advice when using @Bind annotation"
To view the discussion, visit: http://community.jboss.org/message/583164#583164
--------------------------------------------------------------
We are experiencing the same issue with before/after lightweight advices inside container, JBoss AS 5.1.0, with both xml and annotation configuration
AOP version 2.1.6.GA_CP01
Xml Configuration
<?xml version="1.0" encoding="UTF-8"?>
<aop xmlns="urn:jboss:aop-beans:1.0">
<aspect class="com.intuit.cg.services.ds.aop.DocTypeResourceAspect"
scope="PER_VM" />
<bind
pointcut="execution(* com.intuit.cg.services.ds.docstore.service.resource.DocTypeResourceImpl->*(..))">
<before name="beforeAdvice" aspect="com.intuit.cg.services.ds.aop.DocTypeResourceAspect" />
</bind>
</aop>
Aspect class
public class DocTypeResourceAspect {
@Override
public void beforeAdvice(@JoinPoint JoinPointBean joinPointBean)
{
super.beforeAdvice(joinPointBean);
getLogger().info("beforeInvoke:" + joinPointBean);
}
}
Exception we are getting:
org.jboss.aop.advice.NoMatchingAdviceException: No matching around advice called 'beforeAdvice' could be found in com.intuit.cg.services.ds.aop.DocTypeResourceAspect for joinpoint Method[method=public javax.ws.rs.core.Response com.intuit.cg.services.ds.docstore.service.resource.DocTypeResourceImpl.getDocTypes()]
On method 'public void com.intuit.cg.services.ds.aop.DocTypeResourceAspect.beforeAdvice(org.jboss.aop.joinpoint.JoinPointBean)'
@JoinPoint-annotated parameter is not assignable from expected type class org.jboss.aop.joinpoint.MethodInvocation
at org.jboss.aop.advice.annotation.AdviceMethodFactory.findAdviceMethod(AdviceMethodFactory.java:295)
at org.jboss.aop.instrument.JoinPointGenerator$AdviceSetups.<init>(JoinPointGenerator.java:1612)
at org.jboss.aop.instrument.JoinPointGenerator.initialiseAdviceInfosAndAddFields(JoinPointGenerator.java:537)
at org.jboss.aop.instrument.JoinPointGenerator.generateJoinpointClass(JoinPointGenerator.java:367)
at org.jboss.aop.instrument.JoinPointGenerator.doGenerateJoinPointClass(JoinPointGenerator.java:285)
at org.jboss.aop.instrument.JoinPointGenerator.access$300(JoinPointGenerator.java:77)
at org.jboss.aop.instrument.JoinPointGenerator$GenerateJoinPointClassAction$2.generateJoinPointClass(JoinPointGenerator.java:1730)
at org.jboss.aop.instrument.JoinPointGenerator.generateJoinPointClass(JoinPointGenerator.java:250)
at org.jboss.aop.GeneratedClassAdvisor.generateJoinPointClass(GeneratedClassAdvisor.java:1047)
at com.intuit.cg.services.ds.docstore.service.resource.DocTypeResourceImpl$DocTypeResourceImplAdvisor.getDocTypes_N_5161450178620338716(DocTypeResourceImpl$DocTypeResourceImplAdvisor.java)
Classical around advices and interceptor work just fine, we even tried to modify aop.xml to explicitly use
<property name="instrumentor">org.jboss.aop.instrument.GeneratedAdvisorInstrumentor</property>
even that it's supposed to be default instrumentor, but it didn't help.
What version of container supports lightweight advices?
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/583164#583164]
Start a new discussion in JBoss AOP at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 5 months
[JBoss Web Services] - Webservice deployment and namespace containing # character
by Aurélien Lansmanne
Aurélien Lansmanne [http://community.jboss.org/people/alansmanne] created the discussion
"Webservice deployment and namespace containing # character"
To view the discussion, visit: http://community.jboss.org/message/582835#582835
--------------------------------------------------------------
Hello,
While developping a webservise with JBossWS, I've encountered the following problem. One of the namespace in the WSDL contains a '#'. Let's call it http://mynamespace.com/# http://mynamespace.com/# . As I'm not the author of the WSDL, I can't really change these namespaces.
When JBoss try to deploy my Webservice, an error occurs because Jboss is looking for a file called .../server/default/tmp/jbossws/mynamespace.com#.xsd ... but this is not even a valid file system name (even if the file exists).
I think this is related to http://lists.jboss.org/pipermail/jbossws-users/2008-April/005280.html http://lists.jboss.org/pipermail/jbossws-users/2008-April/005280.html
If i look inside org/jboss/ws/metadata/wsdl/xsd/SchemaUtils.java/ on http://grepcode.com/file/repository.jboss.com/maven2/org.jboss.ws.native/... http://grepcode.com/file/repository.jboss.com/maven2/org.jboss.ws.native/..., there is actually a fix that replace all '?', ':' and '/', but nothing about '#'.
I'm using JBoss 4.2.2 and this is quite annoying. Is there any fix or workaround (I just can't modify the wsdl, so at the end, these elements should be belonging to the http://mynamespace.com/# http://mynamespace.com/# namespave, and not http://mynamespace.com/ http://mynamespace.com/
Thank you,
Aurélien Lansmanne.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/582835#582835]
Start a new discussion in JBoss Web Services at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 5 months
[JBoss AOP] - Re: Cannot intercept a method
by bbarin
bbarin [http://community.jboss.org/people/bbarin] created the discussion
"Re: Cannot intercept a method"
To view the discussion, visit: http://community.jboss.org/message/583094#583094
--------------------------------------------------------------
Hi,
After some digging around the information spread over the web, I have found the solution:
* Enable load time weaving in the file JBOSS_HOME\server\production\deploy\*jboss-aop-jdk50.deployer\META-INF\jboss-service.xml*
* Copy JBOSS_HOME\server\production\deploy\jboss-aop-jdk50.deployer\pluggable-instrumentor.jar to JBOSS_HOME\lib\endorsed folder
* Enable the agent in run.bat adding the following line:
set JAVA_OPTS=%JAVA_OPTS% -javaagent:%JBOSS_ENDORSED_DIRS%\pluggable-instrumentor.jar
*Be sure you have:*
- Your aspects deployed in the "*deploy*" folder either a .jar or .aop file
- In case of .jar: You must have a <filename>*-aop*.xml in the "*deploy*" folder (preferred, more flexible)
- In case of .aop: Only be sure there is *META-INF/jboss-aop.xml* containing the aspect definition in your package
Cheers,
Bruno
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/583094#583094]
Start a new discussion in JBoss AOP at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 5 months