[jBPM] - How to stop NioProcessor-2 logging. [org.apache.mina.filter.logging.LoggingFilter] (NioProcessor-2) IDLE
by uvijayreddy657
uvijayreddy657 [https://community.jboss.org/people/uvijayreddy657] created the discussion
"How to stop NioProcessor-2 logging. [org.apache.mina.filter.logging.LoggingFilter] (NioProcessor-2) IDLE"
To view the discussion, visit: https://community.jboss.org/message/715133#715133
--------------------------------------------------------------
In JBoss server always for every second the below is scrolling continuously. Because of this *server.log size is increasing till 400MB to 500MB*. Getting disk out of space error and also getting *java.net.SocketException : Too many open files.*
*How to stop this LoggingFilter.* Please suggest and advice.
2012-02-08 11:59:13,309 INFO [org.apache.mina.filter.logging.LoggingFilter] (NioProcessor-2) IDLE
2012-02-08 11:59:13,309 INFO [org.apache.mina.filter.logging.LoggingFilter] (NioProcessor-2) IDLE
2012-02-08 11:59:14,262 INFO [org.apache.mina.filter.logging.LoggingFilter] (NioProcessor-3) IDLE
2012-02-08 11:59:14,310 INFO [org.apache.mina.filter.logging.LoggingFilter] (NioProcessor-2) IDLE
2012-02-08 11:59:15,277 INFO [org.apache.mina.filter.logging.LoggingFilter] (NioProcessor-1) IDLE
2012-02-08 11:59:21,262 INFO [org.apache.mina.filter.logging.LoggingFilter] (NioProcessor-3) IDLE
2012-02-08 11:59:21,263 INFO [org.apache.mina.filter.logging.LoggingFilter] (NioProcessor-3) IDLE
2012-02-08 11:59:21,263 INFO [org.apache.mina.filter.logging.LoggingFilter] (NioProcessor-3) IDLE
2012-02-08 11:59:21,263 INFO [org.apache.mina.filter.logging.LoggingFilter] (NioProcessor-3) IDLE
2012-02-08 11:59:21,263 INFO [org.apache.mina.filter.logging.LoggingFilter] (NioProcessor-3) IDLE
2012-02-08 11:59:21,263 INFO [org.apache.mina.filter.logging.LoggingFilter] (NioProcessor-3) IDLE
2012-02-08 11:59:21,263 INFO [org.apache.mina.filter.logging.LoggingFilter] (NioProcessor-3) IDLE
2012-02-08 11:59:21,263 INFO [org.apache.mina.filter.logging.LoggingFilter] (NioProcessor-3) IDLE
2012-02-08 11:59:21,280 INFO [org.apache.mina.filter.logging.LoggingFilter] (NioProcessor-1) IDLE
2012-02-08 11:59:21,280 INFO [org.apache.mina.filter.logging.LoggingFilter] (NioProcessor-1) IDLE
2012-02-08 11:59:21,280 INFO [org.apache.mina.filter.logging.LoggingFilter] (NioProcessor-1) IDLE
2012-02-08 11:59:21,281 INFO [org.apache.mina.filter.logging.LoggingFilter] (NioProcessor-1) IDLE
2012-02-08 11:59:21,281 INFO [org.apache.mina.filter.logging.LoggingFilter] (NioProcessor-1) IDLE
2012-02-08 11:59:21,281 INFO [org.apache.mina.filter.logging.LoggingFilter] (NioProcessor-1) IDLE
2012-02-08 11:59:21,281 INFO [org.apache.mina.filter.logging.LoggingFilter] (NioProcessor-1) IDLE
2012-02-08 11:59:21,281 INFO [org.apache.mina.filter.logging.LoggingFilter] (NioProcessor-1) IDLE
2012-02-08 11:59:21,281 INFO [org.apache.mina.filter.logging.LoggingFilter] (NioProcessor-1) IDLE
2012-02-08 11:59:21,281 INFO [org.apache.mina.filter.logging.LoggingFilter] (NioProcessor-1) IDLE
2012-02-08 11:59:21,281 INFO [org.apache.mina.filter.logging.LoggingFilter] (NioProcessor-1) IDLE
2012-02-08 11:59:22,263 INFO [org.apache.mina.filter.logging.LoggingFilter] (NioProcessor-3) IDLE
2012-02-08 11:59:22,264 INFO [org.apache.mina.filter.logging.LoggingFilter] (NioProcessor-3) IDLE
2012-02-08 11:59:22,310 INFO [org.apache.mina.filter.logging.LoggingFilter] (NioProcessor-2) IDLE
2012-02-08 11:59:22,310 INFO [org.apache.mina.filter.logging.LoggingFilter] (NioProcessor-2) IDLE
2012-02-08 11:59:22,310 INFO [org.apache.mina.filter.logging.LoggingFilter] (NioProcessor-2) IDLE
2012-02-08 11:59:22,310 INFO [org.apache.mina.filter.logging.LoggingFilter] (NioProcessor-2) IDLE
2012-02-08 11:59:22,310 INFO [org.apache.mina.filter.logging.LoggingFilter] (NioProcessor-2) IDLE
2012-02-08 11:59:22,310 INFO [org.apache.mina.filter.logging.LoggingFilter] (NioProcessor-2) IDLE
2012-02-08 11:59:22,310 INFO [org.apache.mina.filter.logging.LoggingFilter] (NioProcessor-2) IDLE
2012-02-08 11:59:22,311 INFO [org.apache.mina.filter.logging.LoggingFilter] (NioProcessor-2) IDLE
2012-02-08 11:59:22,311 INFO [org.apache.mina.filter.logging.LoggingFilter] (NioProcessor-2) IDLE
2012-02-08 11:59:23,311 INFO [org.apache.mina.filter.logging.LoggingFilter] (NioProcessor-2) IDLE
2012-02-08 11:59:23,311 INFO [org.apache.mina.filter.logging.LoggingFilter] (NioProcessor-2) IDLE
2012-02-08 11:59:25,266 INFO [org.apache.mina.filter.logging.LoggingFilter] (NioProcessor-3) IDLE
2012-02-08 11:59:25,283 INFO [org.apache.mina.filter.logging.LoggingFilter] (NioProcessor-1) IDLE
2012-02-08 11:59:25,311 INFO [org.apache.mina.filter.logging.LoggingFilter] (NioProcessor-2) IDLE
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/715133#715133]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
14 years, 1 month
[JBoss Web Services] - WSN Producer, JAXBException with xs:any
by spyhunter99
spyhunter99 [https://community.jboss.org/people/spyhunter99] created the discussion
"WSN Producer, JAXBException with xs:any"
To view the discussion, visit: https://community.jboss.org/message/719691#719691
--------------------------------------------------------------
I'm writing a WSN producer which has a payload of xs:any for sending messages. It's expecting some class with an @XmlRootElement annotation, which my class "MyAlertMessageDefinition" does have. When it attempt to send the message, I get the following exception.
Caused by: javax.xml.bind.MarshalException
- with linked exception:
Caused by: javax.xml.bind.JAXBException: class MyAlertMessageDefinition nor any of its super class is known to this context.
at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getBeanInfo(JAXBContextImpl.java:594)
at com.sun.xml.bind.v2.runtime.property.SingleReferenceNodeProperty.serializeBody(SingleReferenceNodeProperty.java:105)
I've been able to marshal/unmarshal jaxb classes without issue before, the question is, how do I make this work?
I think I can simply change the WSN wsdls/xsd to replace the xs:any with that of MyAlertMessageDefinition, then rebuild the class libraries from wsconsume, but is this the best solution?
Is there some kind of context accessor for JAXBcontext or something along the lines so that I can add the MyAlertMessageDefinition into the context?
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/719691#719691]
Start a new discussion in JBoss Web Services at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
14 years, 1 month
[jBPM] - How to actually run process defined by Process API?
by Jan Uhlir
Jan Uhlir [https://community.jboss.org/people/espinosa_cz] created the discussion
"How to actually run process defined by Process API?"
To view the discussion, visit: https://community.jboss.org/message/719649#719649
--------------------------------------------------------------
Manual chapter http://docs.jboss.org/jbpm/v5.2/userguide/ch05.html#d0e783 5.1.3. Defining Processes Using the Process API is an exciting reading cut short. There is no hint how to run just defined process, how to add the process to Knowledge API.
I rummaged forums and mail list I found this two approaches, both works me, but both have issues.
*Way 1 – casting to inner implementations*
Casting KnowledgeBase and RulesBase to their particular implementations. This does no good to design. What is the point to have all nice and tidy interfaces like KnowledgeBuilder, KnowledgeBase, KnowledgeSession, when you have to cast to their particular impelementations in one crucial step.
Code snipplet:
RuleFlowProcessFactory factory = RuleFlowProcessFactory.createProcess("org.jbpm.HelloWorld");
factory.name("HelloWorldProcess").packageName("org.jbpm").startNode(1).... //finish definition
// add process definition to KnowledgeBase
RuleFlowProcess processDef1 = factory.validate().getProcess();
KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();
KnowledgeBase kbase = kbuilder.newKnowledgeBase();
((AbstractRuleBase)((InternalKnowledgeBase)kbase).getRuleBase()).addProcess(processDef1);
// run the process
StatefulKnowledgeSession ksession = kbase.newStatefulKnowledgeSession();
ksession.startProcess("org.jbpm.HelloWorld");
*Way 2 - XmlBPMNProcessDumper*
Using XmlBPMNProcessDumper is better on design side but (unnecessary) subsequent marshalling and unmarshalling making it not very effective variant.
Code snipplet:
RuleFlowProcessFactory factory = RuleFlowProcessFactory.createProcess("org.jbpm.process");
factory.name("My process").packageName("org.jbpm").startNode(1).... //finish definition
// add process definition to KnowledgeBuilder
RuleFlowProcess process = factory.validate().getProcess();
KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();
kbuilder.add(
ResourceFactory.newByteArrayResource(
XmlBPMNProcessDumper.INSTANCE.dump(process).getBytes()),
ResourceType.BPMN2);
KnowledgeBase kbase = kbuilder.newKnowledgeBase();
// run the process
StatefulKnowledgeSession ksession = kbase.newStatefulKnowledgeSession();
ksession.startProcess("org.jbpm.process");
Source: https://community.jboss.org/message/644606#644606 https://community.jboss.org/message/644606
Is there another, official, better way?
Whatever way, please amend the documentation and include some.
*Underline notes*
I also checked original Drools Flow documentation - http://downloads.jboss.com/drools/docs/5.1.1.34858.FINAL/drools-flow/html... 4.1.3. Defining Processes Using the Process API. It contains 3 examples how to define process, an abundance compared to jBPM manual, but any hint how to add it to KnowledgeBase and run it.
In the jBPM chapter – 5.1.3. - RuleFlowProcessFactory, creating RuleFlowProcess. All of sudden, from jBPM API back to Drools Flow API. Is this area of jBPM under development? Is this going to change? Covered by jBPM only APIs?
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/719649#719649]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
14 years, 1 month
[jBPM] - jBPM and JBoss web app
by out sider
out sider [https://community.jboss.org/people/out_sider] created the discussion
"jBPM and JBoss web app"
To view the discussion, visit: https://community.jboss.org/message/719604#719604
--------------------------------------------------------------
Ok I'm having quite some issues setting both jbpm and jboss working together...something as simple as running the jbpm process from a servlet is trunning to be a pain and all because jBoss can't find classes.
I made a Dynamic Web Project and didn't use Maven project so things are cleaner...and because it should work.
I just want to load a jbpmn2.0 from the repository in a servlet and run it using a WorkItemHanlder....but I get this:
java.lang.ClassNotFoundException: org.drools.runtime.process.WorkItemHandler
For some reason jBoss can't find a class from jBPM that should work on JBoss. What I did....and I think it's not the right solution...was add the knowledge-api.jar to the WEB-INF/lib. Although I can now deploy the app when I try to run it I get:
Error Unable to instantiate service for Class 'org.drools.builder.KnowledgeBuilderFactoryService'
I Honestly don't get why is it so hard to make a Jboss Web app using jBpm.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/719604#719604]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
14 years, 1 month