[Design of JBoss jBPM] - Re: streching the expression language
by tom.baeyens@jboss.com
as for the '<' character, try removing the namespace reference. that should deactivate the schema validation. I have this in the unit tests:
public ProcessDefinition createConditionProcess() {
| return ProcessDefinition.parseXmlString(
| "<process-definition>" +
| " <start-state>" +
| " <transition to='d'/>" +
| " </start-state>" +
| " <decision name='d'>" +
| " <transition to='high-numbered-customer'>" +
| " <condition expression='#{customer.number > 5}' />" +
| " </transition>" +
| " <transition to='medium-numbered-customer'>" +
| " <condition expression='#{customer.number == 5}' />" +
| " </transition>" +
| " <transition to='low-numbered-customer' />" +
| " </decision>" +
| " <state name='high-numbered-customer' />" +
| " <state name='medium-numbered-customer' />" +
| " <state name='low-numbered-customer' />" +
| "</process-definition>"
| );
| }
|
and that works. I don't know what I have to put in the schema to allow for '<' characters. Anyone ?
regards, tom.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4022894#4022894
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4022894
17 years, 10 months
[Design of JBoss jBPM] - streching the expression language
by tom.baeyens@jboss.com
"Jeff" wrote : Tom,
|
| I have two problems with this process model.
|
| 1) does not like <= , complains that it must not contain the '<' character. But this is legit in the JSF expressions guide.
|
| 2) even if I change to LT, the Yes transition is always taken, no matter the value of basePrice. However if I switch the order of the transitions in the file, the No transition is taken. This remains the case if the value of basePrice is greater than 300.
|
| I have used similar expression before with success (well not the <), so I am not sure what is going on here. basePrice is an int, if that makes a difference. I can print out the value of basePrice, and know that has been set correctly (by JBoss rules). Changing basePrice from an int to an Integer or String does not help.
|
| Any ideas?
|
| Thanks,
|
| Jeff
|
|
|
| <?xml version="1.0" encoding="UTF-8"?>
|
| <process-definition
| xmlns="urn:jbpm.org:jpdl-3.2" name="InsuranceProcess">
| <start-state name="start">
|
| </start-state>
|
|
| pricing/PolicyPricing.xls
| XLS
|
| driver
| policy
|
|
|
|
|
|
|
|
|
|
|
|
| <task-node name="Underwriter Signoff">
|
|
| /Assignment.drl
| underwriter
|
| policy
|
|
|
|
| </task-node>
| <end-state name="end"></end-state>
| </process-definition>
Maybe it has to do with the fact that i took and tweaked some older version (pre-unified-expression-language) from the apache commons stuff.
I have not yet been able to get the same things out of the EL RI. Once I get that to work properly it could replace the commons EL and solve these problems.
I'm a bit afraid of the backwards incompatibility, though. Now I have this abstraction of method binding and value binding. If the expression is used to get a value and a method is given, then the return value of the method is taken. Something that will probably be hard to get in the RI of EL.
regards, tom.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4022888#4022888
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4022888
17 years, 10 months
[Design of JBoss Build System] - maven-resources-plugin problem
by scott.stark@jboss.org
I'm not able to build the https://svn.jboss.org/repos/common/jbossxb/tags/1.0.0.CR9 project, but its failing with this error. I have completely replaced my local maven2 repo and the problem is still there.
| [starksm@succubus jbossxb-1.0.0.CR9]$ mvn -e install
| + Error stacktraces are turned on.
| [INFO] Scanning for projects...
| [INFO] ----------------------------------------------------------------------------
| [INFO] Building JBoss XML Binding
| [INFO] task-segment: [install]
| [INFO] ----------------------------------------------------------------------------
| [INFO] ------------------------------------------------------------------------[ERROR] BUILD ERROR
| [INFO] ------------------------------------------------------------------------[INFO] The plugin 'org.apache.maven.plugins:maven-resources-plugin' does not exist or no valid version could be found
| [INFO] ------------------------------------------------------------------------[INFO] Trace
| org.apache.maven.lifecycle.LifecycleExecutionException: The plugin 'org.apache.maven.plugins:maven-resources-plugin' does not exist or no valid version could be found
| at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1281)
| at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1517)
| at org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindLifecycleForPackaging(DefaultLifecycleExecutor.java:1011)
| at org.apache.maven.lifecycle.DefaultLifecycleExecutor.constructLifecycleMappings(DefaultLifecycleExecutor.java:975)
| at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:453)
| at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
| at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
| at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
| at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
| at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
| at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
| 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.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
| at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
| at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
| at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
| Caused by: org.apache.maven.plugin.version.PluginVersionNotFoundException: The plugin 'org.apache.maven.plugins:maven-resources-plugin' does not exist or no valid version could be found
| at org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(DefaultPluginVersionManager.java:225)
| at org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(DefaultPluginVersionManager.java:87)
| at org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginManager.java:158)
| at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1252)
| ... 18 more
| [INFO] ------------------------------------------------------------------------[INFO] Total time: < 1 second
| [INFO] Finished at: Mon Feb 26 22:45:58 PST 2007
| [INFO] Final Memory: 2M/74M
| [INFO] ------------------------------------------------------------------------[starksm@succubus jbossxb-1.0.0.CR9]$
|
The maven-resources-plugin include:
| [starksm@succubus repository.jboss.com]$ ls -l maven2/org/apache/maven/plugins/maven-resources-plugin/2.2
| total 52
| drwxrwxr-x 2 starksm starksm 4096 Feb 26 22:16 CVS/
| -rw-rw-r-- 1 starksm starksm 13596 Dec 10 09:02 maven-resources-plugin-2.2.jar-rw-rw-r-- 1 starksm starksm 40 Dec 10 09:02 maven-resources-plugin-2.2.jar.sha1
| -rw-rw-r-- 1 starksm starksm 1509 Dec 10 09:02 maven-resources-plugin-2.2.pom-rw-rw-r-- 1 starksm starksm 40 Dec 10 09:02 maven-resources-plugin-2.2.pom.sha1
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4022875#4022875
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4022875
17 years, 10 months
[Design of JBoss Profiler] - Need Help on Mac OS X
by cfrostrun
I'm having problems trying to get this up & running...
I'm getting this exception that crashes jboss.
22:02:08,857 INFO [Server] JBoss (MX MicroKernel) [4.0.5.GA (build: CVSTag=Branch_4_0 date=200610162339)] Started in 1m:2s:65ms
Initializing DataGathering
[thread 28289536 also had an error]
[thread 28155392 also had an error]
[thread 29617152 also had an error]
./run.sh: line 209: 286 Trace/BPT trap "$JAVA" $JAVA_OPTS -Djava.endorsed.dirs="$JBOSS_ENDORSED_DIRS" -classpath "$JBOSS_CLASSPATH" org.jboss.Main "$@"
Here's my configuration items:
LD_LIBRARY_PATH=/javalib/jboss-profiler/
DYLD_LIBRARY_PATH=/apps/imagemagick/ImageMagick-6.2.5//lib:/javalib/jboss-profiler/
ls -tlar /javalib/jboss-profiler/
-rwxr-xr-x 1 icenfros admin 40348 Feb 26 20:32 libjbossAgent.jnilib
I built this file from the macos compile.sh script.
It didn't build a libjbossInspector.jnilib, however I did have a left over file from the last time I tried to get this up and running (this was from early last year). Are these the same file or do this do different thing and I need both of them?
in the jmx-console i have the following mbean:
jboss.profiler
* mbean=Native-profiler
once i invoke : void activate() - Start data capturing. (You will need to call stop before analyzing data)
it crashes jboss...
here's a couple other things about my configuration:
in the server/default/deploy
-rw-r--r-- 1 icenfros admin 144475 Feb 26 21:02 jboss-profiler-noAOP.sar
-rw-r--r-- 1 icenfros admin 2438834 Feb 26 21:13 jboss-profiler.war
in /tmp/
rw-r--r-- 1 icenfros wheel 0 Feb 26 22:18 /tmp/serverspy_334_thread_1172549892508_37000_155.log.gz
-rw-r--r-- 1 icenfros wheel 0 Feb 26 22:18 /tmp/serverspy_334_thread_1172549910287_42548000_157.log.gz
-rw-r--r-- 1 icenfros wheel 0 Feb 26 22:18 /tmp/serverspy_334_thread_1172549910222_23229000_156.log.gz
-rw-r--r-- 1 icenfros wheel 49152 Feb 26 22:18 /tmp/serverspy_334_thread_1172549531464_30000_140.log.gz
-rw-r--r-- 1 icenfros wheel 27 Feb 26 22:18 /tmp/log_spyserver_334.txt
if i cat the log_spyserver_334.txt :
Initializing DataGathering
the documentation also talks about JBossProfiler:JVMTI in the jmx-console, however I do not see this at all??? I'm wondering if that's my problem, or is this the native-profiler.
I appreciate any help I can get from this...
Chris..
ps... what versions of jboss will this work on? Is the only limitation is the jvm version ?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4022835#4022835
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4022835
17 years, 10 months
[Design of JBoss Web Services] - Re: Using jbossws/trunk for jboss-5.0, jboss-4.2, jboss-4.0.
by gduan2000
I had the same ERROR, and it cost me 1 day to figure out that it's something to do with the JDK version - JDK1.6.0. switched back to JDK1.5.0_11, and this ERROR was gone.
All other portions of the application were working fine with JDK1.6.0, but just JBossWS piece.
Hope this help.
-g
"dwin" wrote : hey guys
|
| thanks for the help, adding junit.jar to the ant/lib fixed it (although ant already has an ant-junir.jar in its classpath already) and upgrading to ant 1.7 fixed the xerces bug. Perhaps, you guys could put ant 1.7 as a requirement for building JBossWS on the Wiki to avoid future confusion with other developers.
|
| However, the tests are failing for me.
|
| On the server side, I am regularly getting these exceptions which all basically relate to the "setProperty must be overridden by all subclasses of SOAPMessage" message. Every test seems to fail because of these exceptions.
|
|
| | 14:10:57,445 ERROR [SOAPFaultHelperJAXRPC] SOAP request exception
| | java.lang.UnsupportedOperationException: setProperty must be overridden by all subclasses of SOAPMessage
| | at javax.xml.soap.SOAPMessage.setProperty(SOAPMessage.java:424)
| | at org.jboss.ws.core.soap.SOAPMessageImpl.<init>(Unknown Source)
| | at org.jboss.ws.core.soap.MessageFactoryImpl.createMessageInternal(Unknown Source)
| | at org.jboss.ws.core.soap.MessageFactoryImpl.createMessage(Unknown Source)
| | at org.jboss.ws.core.server.ServiceEndpoint.handleRequest(Unknown Source)
| | at org.jboss.ws.core.server.ServiceEndpointManager.processSOAPRequest(Unknown Source)
| | at org.jboss.ws.core.server.AbstractServiceEndpointServlet.doPost(Unknown Source)
| | at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
| | at org.jboss.ws.core.server.AbstractServiceEndpointServlet.service(Unknown Source)
| | at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
| | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
| | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| | at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| | at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
| | at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
| | at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
| | at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
| | at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
| | at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
| | at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
| | at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
| | at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
| | at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
| | at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
| | at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
| | at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
| | at java.lang.Thread.run(Thread.java:619)
| | 14:10:57,477 ERROR [AbstractServiceEndpointServlet] Error processing web service request
| | java.lang.UnsupportedOperationException: setProperty must be overridden by all subclasses of SOAPMessage
| | at javax.xml.soap.SOAPMessage.setProperty(SOAPMessage.java:424)
| | at org.jboss.ws.core.soap.SOAPMessageImpl.<init>(Unknown Source)
| | at org.jboss.ws.core.soap.MessageFactoryImpl.createMessage(Unknown Source)
| | at org.jboss.ws.core.jaxrpc.SOAPFaultHelperJAXRPC.toSOAPMessage(Unknown Source)
| | at org.jboss.ws.core.jaxrpc.SOAPFaultHelperJAXRPC.exceptionToFaultMessage(Unknown Source)
| | at org.jboss.ws.core.jaxrpc.SOAP11BindingJAXRPC.createFaultMessageFromException(Unknown Source)
| | at org.jboss.ws.core.CommonSOAPBinding.bindFaultMessage(Unknown Source)
| | at org.jboss.ws.core.server.ServiceEndpoint.handleRequest(Unknown Source)
| | at org.jboss.ws.core.server.ServiceEndpointManager.processSOAPRequest(Unknown Source)
| | at org.jboss.ws.core.server.AbstractServiceEndpointServlet.doPost(Unknown Source)
| | at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
| | at org.jboss.ws.core.server.AbstractServiceEndpointServlet.service(Unknown Source)
| | at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
| | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
| | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| | at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| | at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
| | at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
| | at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
| | at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
| | at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
| | at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
| | at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
| | at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
| | at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
| | at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
| | at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
| | at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
| | at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
| |
|
| The vast majority of my unit tests fail (but not all fail, a minute portion of them do pass).
|
| I am guessing that my environment is not setup as the rest of the JBoss team.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4022753#4022753
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4022753
17 years, 10 months