[jBPM] - Unable to create Field Extractor
by stellina_rosa
stellina_rosa [http://community.jboss.org/people/stellina_rosa] created the discussion
"Unable to create Field Extractor"
To view the discussion, visit: http://community.jboss.org/message/606688#606688
--------------------------------------------------------------
h6. Hi!
h6. I'm trying to create an example Drools file but when I run it I have this error message:
h6.
h6.
h6. Unable to create Field Extractor for 'contenuto' of '[ClassObjectType class="java".lang.Object]' in rule 'prova' : [Rule name='prova']
java.lang.IllegalArgumentException: Could not parse knowledge.
at org.drools.builder.impl.KnowledgeBuilderImpl.newKnowledgeBase(KnowledgeBuilderImpl.java:58)
at com.sample.ProcessTest.readKnowledgeBase(ProcessTest.java:43)
at com.sample.ProcessTest.main(ProcessTest.java:21)
h6. this is my drools file (named Rule.drl):
package com.googlecode.cursos.jbpm
import org.drools.runtime.process.WorkflowProcessInstance;
import org.sample.model.MyObject;
rule "prova"
ruleflow-group "regole"
when
$o: Object(contenuto == "rosa")
then
System.out.println("prima regola");
end
h6. this is my ProcessTest.java class:
public class ProcessTest {
public static final void main(String[] args) {
try {
// load up the knowledge base
KnowledgeBase kbase = readKnowledgeBase();
StatefulKnowledgeSession ksession = kbase.newStatefulKnowledgeSession();
KnowledgeRuntimeLogger logger = KnowledgeRuntimeLoggerFactory.newFileLogger(ksession, "test");
MyObject obj = new MyObject();
obj.setContenuto("rosa");
obj.setId(1);
ksession.insert(obj);
// start a new process instance
ksession.startProcess("com.sample.bpmn.hello");
ksession.fireAllRules();
logger.close();
} catch (Throwable t) {
t.printStackTrace();
}
}
private static KnowledgeBase readKnowledgeBase() throws Exception {
KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();
kbuilder.add(ResourceFactory.newClassPathResource("sample.bpmn"), ResourceType.BPMN2);
kbuilder.add(ResourceFactory.newClassPathResource("Rule.drl"), ResourceType.DRL);
return kbuilder.newKnowledgeBase();
}
h6. and this is my MyObject.java class:
package org.sample.model;
public class MyObject {
String contenuto;
int id;
public int getId() { return id;}
public void setId(int id) { this.id = id; }
public String getContenuto() { return contenuto; }
public void setContenuto(String contenuto) { this.contenuto = contenuto;}
}
I can't understand where is the problem :(
could anyone help me please?
thank you!
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/606688#606688]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 1 month
[jBPM] - build error with missing Drools
by Vasili Pupkin
Vasili Pupkin [http://community.jboss.org/people/vipup] created the discussion
"build error with missing Drools"
To view the discussion, visit: http://community.jboss.org/message/606690#606690
--------------------------------------------------------------
Hello,
i just try to build JBPM from sources.
With http://sourceforge.net/projects/jbpm/files/jBPM%205/jbpm-5.0-Final/jbpm-5... http://sourceforge.net/projects/jbpm/files/jBPM%205/jbpm-5.0-Final/jbpm-5... i get the error:
http://community.jboss.org/message/606690#606690 build error with missing Drools -
-----------------------------------------------------------------------
http://community.jboss.org/message/606690#606690 build error with missing Drools BUILD ERROR
http://community.jboss.org/message/606690#606690 build error with missing Drools -
-----------------------------------------------------------------------
http://community.jboss.org/message/606690#606690 build error with missing Drools Failed to resolve artifact.
Missing:
-
---------
1) org.drools:drools-api:jar:5.2.0.M1
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.drools -DartifactId=drools-api -Dversion=5.2.0.M1 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=org.drools -DartifactId=drools-api -Dversion=5.2.0.M1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) org.jbpm:jbpm-flow:jar:5.0.0
2) org.drools:drools-api:jar:5.2.0.M1
2) org.drools:drools-core:jar:5.2.0.M1
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.drools -DartifactId=drools-core -Dversion=5.2.0.M1 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=org.drools -DartifactId=drools-core -Dversion=5.2.0.M1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) org.jbpm:jbpm-flow:jar:5.0.0
2) org.drools:drools-core:jar:5.2.0.M1
-
---------
2 required artifacts are missing.
for artifact:
org.jbpm:jbpm-flow:jar:5.0.0
what is very similar with Activiti build:
...
http://community.jboss.org/message/606690#606690 build error with missing Drools http://community.jboss.org/message/606690#606690 build error with missing Drools BUILD ERROR
http://community.jboss.org/message/606690#606690 build error with missing Drools http://community.jboss.org/message/606690#606690 build error with missing Drools -
-----------------------------------------------------------------------
http://community.jboss.org/message/606690#606690 build error with missing Drools http://community.jboss.org/message/606690#606690 build error with missing Drools Failed to resolve artifact.
http://community.jboss.org/message/606690#606690 build error with missing Drools
http://community.jboss.org/message/606690#606690 build error with missing Drools Missing:
http://community.jboss.org/message/606690#606690 build error with missing Drools -
---------
http://community.jboss.org/message/606690#606690 build error with missing Drools 1) org.drools:drools-core:jar:5.1.1
http://community.jboss.org/message/606690#606690 build error with missing Drools
http://community.jboss.org/message/606690#606690 build error with missing Drools Try downloading the file manually from the project website.
http://community.jboss.org/message/606690#606690 build error with missing Drools
http://community.jboss.org/message/606690#606690 build error with missing Drools Then, install it using the command:
http://community.jboss.org/message/606690#606690 build error with missing Drools mvn install:install-file -DgroupId=org.drools -DartifactId=drools-core -Dversion=5.1.1 -Dpackaging=jar -Dfile=/path/to/file
http://community.jboss.org/message/606690#606690 build error with missing Drools
http://community.jboss.org/message/606690#606690 build error with missing Drools Alternatively, if you host your own repository you can deploy the file there:
http://community.jboss.org/message/606690#606690 build error with missing Drools mvn deploy:deploy-file -DgroupId=org.drools -DartifactId=drools-core -Dversion=5.1.1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
http://community.jboss.org/message/606690#606690 build error with missing Drools
http://community.jboss.org/message/606690#606690 build error with missing Drools Path to dependency:
http://community.jboss.org/message/606690#606690 build error with missing Drools 1) org.activiti:activiti-engine:jar:5.5
http://community.jboss.org/message/606690#606690 build error with missing Drools 2) org.drools:drools-core:jar:5.1.1
http://community.jboss.org/message/606690#606690 build error with missing Drools
http://community.jboss.org/message/606690#606690 build error with missing Drools 2) org.drools:drools-compiler:jar:5.1.1
http://community.jboss.org/message/606690#606690 build error with missing Drools
http://community.jboss.org/message/606690#606690 build error with missing Drools Try downloading the file manually from the project website.
http://community.jboss.org/message/606690#606690 build error with missing Drools
http://community.jboss.org/message/606690#606690 build error with missing Drools Then, install it using the command:
http://community.jboss.org/message/606690#606690 build error with missing Drools mvn install:install-file -DgroupId=org.drools -DartifactId=drools-compiler -Dversion=5.1.1 -Dpackaging=jar -Dfile=/path/to/file
http://community.jboss.org/message/606690#606690 build error with missing Drools
http://community.jboss.org/message/606690#606690 build error with missing Drools Alternatively, if you host your own repository you can deploy the file there:
http://community.jboss.org/message/606690#606690 build error with missing Drools mvn deploy:deploy-file -DgroupId=org.drools -DartifactId=drools-compiler -Dversion=5.1.1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
http://community.jboss.org/message/606690#606690 build error with missing Drools
http://community.jboss.org/message/606690#606690 build error with missing Drools Path to dependency:
http://community.jboss.org/message/606690#606690 build error with missing Drools 1) org.activiti:activiti-engine:jar:5.5
http://community.jboss.org/message/606690#606690 build error with missing Drools 2) org.drools:drools-compiler:jar:5.1.1
http://community.jboss.org/message/606690#606690 build error with missing Drools
http://community.jboss.org/message/606690#606690 build error with missing Drools -
---------
http://community.jboss.org/message/606690#606690 build error with missing Drools 2 required artifacts are missing.
http://community.jboss.org/message/606690#606690 build error with missing Drools
http://community.jboss.org/message/606690#606690 build error with missing Drools for artifact:
http://community.jboss.org/message/606690#606690 build error with missing Drools org.activiti:activiti-engine:jar:5.5
...
What repository i have to use for getting drools?
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/606690#606690]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 1 month
[JBoss Web Services] - Problems using WS-Security encryption...
by mauro.brasil
mauro.brasil [http://community.jboss.org/people/mauro.brasil] created the discussion
"Problems using WS-Security encryption..."
To view the discussion, visit: http://community.jboss.org/message/590162#590162
--------------------------------------------------------------
Hello there!
We have an application environment here working with JBossWS and WS-Security enabled on server side and Axis2c (with rampartc for security) on client side.
For start, we developed all the solution using just UserNameToken security and all was fine.
We decided to enable wsse encryption in order to improve communication security and, since then, I'm stucked on the same problem.
The server throwns an exception on the moment it receives the first message, like below:
Caused by: java.security.cert.CertificateParsingException: signed overrun, bytes = 67
at sun.security.x509.X509CertImpl.parse(Unknown Source)
at sun.security.x509.X509CertImpl.<init>(Unknown Source)
at sun.security.provider.X509Factory.engineGenerateCertificate(Unknown Source)
at java.security.cert.CertificateFactory.generateCertificate(Unknown Source)
at sun.security.provider.JavaKeyStore.engineLoad(Unknown Source)
at sun.security.provider.JavaKeyStore$JKS.engineLoad(Unknown Source)
at java.security.KeyStore.load(Unknown Source)
at org.jboss.ws.extensions.security.SecurityStore.loadStore(SecurityStore.java:158)
After two days of constant searching trying/validating almost everything I've found about this issue, I decided to post a message here so someone can maybe give me just a hint to were to start digging.
I followed the chapter 9 of "JBoss In Action" to create the keystores/truststores/certificates and to configure my environment ("jboss-wsse-server.xml", because other files were already defined to WS-Security) without any success.
I've found sugestions about missing parameters on keytool usage, orientation regarding some sort of update of java encryption (adding JCE and BouncyCastle provider implementation), but nothing seems to work or make sense.
If someone have any idea of solution I'll be very thankfull.
Best regards,
Mauro.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/590162#590162]
Start a new discussion in JBoss Web Services at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 1 month
[Beginner's Corner] - Wierd behaviour of an esb
by Mads Moelgaard Andersen
Mads Moelgaard Andersen [http://community.jboss.org/people/mda_dk] created the discussion
"Wierd behaviour of an esb"
To view the discussion, visit: http://community.jboss.org/message/606654#606654
--------------------------------------------------------------
Hi
I’m quite challenged by an odd behaviour I experience with an esb (JBOSS SOA 4.3).
In a FS Message Filter I assign the value “file:///jboss/campaign/response/neolane” to the Directory field.
When I attempt to deploy the esb I get an error like following:
Caused by: org.jboss.soa.esb.ConfigurationException: Directory C:\jboss\platform\jboss-as\bin\file:\jboss\campaign\response\neolane not found
As you can see the assigned value has been concatenated with C:\jboss\platform\jboss-as\bin\ and naturally this directory does not exist.
When using an absolute path fx “c:/jboss/campaign/response/neolane” the esb works perfectly.
OS development: Win XP
OS production: Linux
Can anyone tell me how to fix the problem?
best regards
Mads M Andersen
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/606654#606654]
Start a new discussion in Beginner's Corner at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 1 month