[jBPM] - Problem with jbpm-console (business-central) in BRMS server
by Jose Miguel Loor
Jose Miguel Loor [https://community.jboss.org/people/jmiguel77] created the discussion
"Problem with jbpm-console (business-central) in BRMS server"
To view the discussion, visit: https://community.jboss.org/message/796846#796846
--------------------------------------------------------------
Hi
I am trying to access the REST api that is included in the BRMS server, but the problem is that the brms-central-server has FORM authentication by default:
<login-config>
<auth-method>FORM</auth-method>
<form-login-config>
<form-login-page>/login.html</form-login-page>
<form-error-page>/login_failed.html</form-error-page>
</form-login-config>
</login-config>
And i have found no way to access the REST resources with a client that handles that kind of authentication. So, i changed it to BASIC auth:
<login-config>
<auth-method>BASIC</auth-method>
<realm-name>GWT Console Server</realm-name>
</login-config>
This i did, by editing the file in brms-standalone-5.3.0/jboss-as/server/default/deploy/business-central-server.war/WEB-INF/web.xml. After this change, i am able to interact with the REST resources.
But, the jbpm console gui (/business-central/app.html) is not working anymore. I introduced the correct user / password and cannot login to the jbpm console.
What else do i need to configure to have both systems working correctly ??
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/796846#796846]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years
[jBPM] - WRONG PACKAGEs
by 7ab3rn4t3 7ab3rn4t3
7ab3rn4t3 7ab3rn4t3 [https://community.jboss.org/people/7ab3rn4t3] created the discussion
"WRONG PACKAGEs"
To view the discussion, visit: https://community.jboss.org/message/807953#807953
--------------------------------------------------------------
Hi
I was wondering how do something and how and I notice that I import in my class wrong packages because on other iseeues other package
are used
example
this is my class
package com.sample;
import java.util.HashMap;
import java.util.Map;
import org.drools.KnowledgeBase;
import org.drools.builder.KnowledgeBuilder;
import org.drools.builder.KnowledgeBuilderFactory;
import org.drools.builder.ResourceType;
import org.drools.io.ResourceFactory;
import org.drools.runtime.StatefulKnowledgeSession;
import org.drools.runtime.process.ProcessInstance;
/**
* This is a sample file to launch a process.
*/
public class ProcessMain {
public static final void main(String[] args) throws Exception {
// load up the knowledge base
KnowledgeBase kbase = readKnowledgeBase();
StatefulKnowledgeSession ksession = kbase.newStatefulKnowledgeSession();
Map<String, Object> params = new HashMap<String, Object>();
params.put("name", "Arthur");
//start a new process instance
ProcessInstance is = ksession.startProcess("com.sample.bpmn.hello", params);
System.out.println(is.getProcess().getMetaData());
}
private static KnowledgeBase readKnowledgeBase() throws Exception {
KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();
kbuilder.add(ResourceFactory.newClassPathResource("sample.bpmn"), ResourceType.BPMN2);
return kbuilder.newKnowledgeBase();
}
}
which use drool in import as you can see, but to do what I need , I should import org.jbpm......ProcessInstance
what JBPM and where can I download ?
Thanks
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/807953#807953]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years
[IronJacamar] - JCA Resource Adapter Deploy fails on JBOSS AS 7
by daedlus D
daedlus D [https://community.jboss.org/people/daedlus] created the discussion
"JCA Resource Adapter Deploy fails on JBOSS AS 7"
To view the discussion, visit: https://community.jboss.org/message/805736#805736
--------------------------------------------------------------
have a custom resource adapter to connect to a EIS. My requirement is only outbound connectivity to EIS. I have packaged the rar with iron-jacamr.xml in META-INF but when i deploy i get below error
15:12:47,866 ERROR org.jboss.msc.service.fail org.jboss.msc.service.fail (MSC service thread 1-2) MSC00001: Failed to start service jboss.deployment.unit."testConnector.rar".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.unit."testConnector.rar".INSTALL: Failed to process phase INSTALL of deployment "testConnector.rar"
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:119) #
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) #
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) #
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) #
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) #
at java.lang.Thread.run(Thread.java:662) #
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: org.jboss.jca.common.api.validator.ValidateException: IJ010075: The resource adapter metadata must contain either an outbound or inbound configuration
at org.jboss.as.connector.deployers.processors.ParsedRaDeploymentProcessor.deploy(ParsedRaDeploymentProcessor.java:229)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) #
... 5 more
Caused by: org.jboss.jca.common.api.validator.ValidateException: IJ010075: The resource adapter metadata must contain either an outbound or inbound configuration
at org.jboss.jca.common.metadata.ra.common.ResourceAdapter1516Impl.validate(ResourceAdapter1516Impl.java:333)
at org.jboss.jca.common.metadata.ra.common.ConnectorAbstractmpl.validate(ConnectorAbstractmpl.java:305)
at org.jboss.as.connector.deployers.processors.ParsedRaDeploymentProcessor.deploy(ParsedRaDeploymentProcessor.java:136)
... 6 more
15:12:48,162 INFO org.jboss.as.server org.jboss.as.server (DeploymentScanner-threads - 2) JBAS015870: Deploy of deployment "testConnector.rar" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"testConnector.rar\".INSTALL" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"testConnector.rar\".INSTALL: Failed to process phase INSTALL of deployment \"testConnector.rar\""}}
15:12:48,225 INFO org.jboss.as.server.deployment org.jboss.as.server.deployment (MSC service thread 1-4) JBAS015877: Stopped deployment testConnector.rar in 63ms
15:12:48,228 INFO org.jboss.as.controller org.jboss.as.controller (DeploymentScanner-threads - 2) JBAS014774: Service status report
JBAS014777: Services which failed to start: service jboss.deployment.unit."testConnector.rar".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.unit."testConnector.rar".INSTALL: Failed to process phase INSTALL of deployment "testConnector.rar"
15:12:48,234 ERROR org.jboss.as.server.deployment.scanner org.jboss.as.server.deployment.scanner (DeploymentScanner-threads - 1) {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"testConnector.rar\".INSTALL" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"testConnector.rar\".INSTALL: Failed to process phase INSTALL of deployment \"testConnector.rar\""}}}}
My iron-jacamr.xml is as below:
<?xml version="1.0" encoding="UTF-8"?>
<ironjacamar>
<connection-definitions>
<connection-definition class-name="org.my.MyManagedConnectionFactory" jndi-name="java:/testConnector"></connection-definition>
</connection-definitions>
</ironjacamar>
I am suspecting some missing configuration but unable to figure out. I have checked the below example and my ra impl is as per the example.
http://docs.jboss.org/ironjacamar/userguide/1.0/en-US/html_single/#sample... http://docs.jboss.org/ironjacamar/userguide/1.0/en-US/html_single/#sample...
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/805736#805736]
Start a new discussion in IronJacamar at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years
[JBoss Tools] - Occasional NPE
by Jesper Skov
Jesper Skov [https://community.jboss.org/people/jskovjyskebankdk] created the discussion
"Occasional NPE"
To view the discussion, visit: https://community.jboss.org/message/807352#807352
--------------------------------------------------------------
We get the occasional NPE in 4.0.0.Final:
Stacktrace:
!ENTRY org.eclipse.ui 4 4 2013-04-10 08:41:59.264
!MESSAGE An internal error has occurred.
!STACK 0
java.lang.NullPointerException
at org.jboss.tools.common.validation.TempMarkerManager$1.runInUIThread(TempMarkerManager.java:270)
at org.eclipse.ui.progress.UIJob$1.run(UIJob.java:95)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4145)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3762)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1108)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:992)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:137)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:600)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:555)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:354)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
at org.eclipse.equinox.launcher.Main.run(Main.java:1450)
at org.eclipse.equinox.launcher.Main.main(Main.java:1426)
This is with Kepler M6, so it may be a side effect of it not being entirely compatible?
It happens while editing in a Team comparison view.
A modal error dialog shows up with a message like "'As-you-type JBT validation. Disabling the marker annotations' has encountered a problem."
I only have this from a single developer, but I'll see if I can reproduce in the 4.1.0b2 nightly we are using now.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/807352#807352]
Start a new discussion in JBoss Tools at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years
[jBPM] - Start an InstanceProcess From a State
by 7ab3rn4t3 7ab3rn4t3
7ab3rn4t3 7ab3rn4t3 [https://community.jboss.org/people/7ab3rn4t3] created the discussion
"Start an InstanceProcess From a State"
To view the discussion, visit: https://community.jboss.org/message/807809#807809
--------------------------------------------------------------
Hello
let's suppose that
I start a process in this way from a Servlet
Map<String, Object> params = new HashMap<String, Object>();
params.put("name", "Arthur");
ProcessInstance istance = ksession.startProcess("com.sample.bpmn.hello", params);
and put it in the httpSession.... am I correct?
let's suppose that on the state 5 I will save in my DB my process params (I don't know how yet!!!!!!!!!)
first of all:
How can I get that params map from a UserTask or Script in JBPM so that I can make a Class that save them on my db????
the Tomorrow
I reLoad my page and want to create a new process that begin from the state that I left the day before.
Of course I can detect the state by a parmeter saved in that map.....
but is there a way to begin a process from a specific state ?
which is ?
Thanks in advance
fabio
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/807809#807809]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years
[JBoss Messaging] - Randomly ocorrence of “javax.naming.NameNotFoundException: queue not bound”
by Vitor Oliveira
Vitor Oliveira [https://community.jboss.org/people/vitorcoliveira] created the discussion
"Randomly ocorrence of “javax.naming.NameNotFoundException: queue not bound”"
To view the discussion, visit: https://community.jboss.org/message/807742#807742
--------------------------------------------------------------
I have one jboss 4.2.3 application consuming from a queue and putting in another queue. All 3 components running jboss 4.2.3. Deployment of all components were ok. However sometimes my application got this error:
javax.naming.NameNotFoundException: queue not bound
at org.jnp.server.NamingServer.getBinding(NamingServer.java:529) ~[jnpserver.jar:4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181439)]
at org.jnp.server.NamingServer.getBinding(NamingServer.java:537) ~[jnpserver.jar:4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181439)]
...
at javax.naming.InitialContext.lookup(Unknown Source) ~[na:1.6.0_26]
**or**
javax.naming.NameNotFoundException: [queue_name] not bound
at org.jnp.server.NamingServer.getBinding(NamingServer.java:529) ~[jnpserver.jar:4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181439)]
at org.jnp.server.NamingServer.getBinding(NamingServer.java:537) ~[jnpserver.jar:4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181439)]
...
at javax.naming.InitialContext.lookup(Unknown Source) ~[na:1.6.0_26]
I already verified the `service=JNDIView` on the final queue and everything seems ok. The problem occurs **randomly**. After ~15 minutes the errors stops and my deployment can process all messages without restart. Despite being random, this error is recurrent.
The jboss of the destination queue is running on virtual machines. Can this be a performance\load or network problem?
I searched for similar problems and only found occurring at start up of the application. My application is running and errors occurs from time to time randomly 3 to 5 times a day for 15 minutes.
Thank you.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/807742#807742]
Start a new discussion in JBoss Messaging at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years