[jBPM] - BIRT reports "wrong username and password" error
by Pierpaolo Lombardi
Pierpaolo Lombardi [http://community.jboss.org/people/pierx83] created the discussion
"BIRT reports "wrong username and password" error"
To view the discussion, visit: http://community.jboss.org/message/623947#623947
--------------------------------------------------------------
Hi,
I'm trying to configure the report generation but I cannot do that.
I installed BIRT manually in the JBoss 5.1.0.GA following the steps in the file build.xml.
>From the jbpm console I firstly had an error related to the missing of some classes and to solve it I copied the h2.jar at the path BIRT_HOME\ReportEngine\plugins\org.eclipse.birt.report.data.oda.jdbc_2.3.2.r232_v20090212\drivers
It worked but another error occurs now:
11:18:50,901 SEVERE [odaconsumer] Cannot open connection.
org.eclipse.birt.report.data.oda.jdbc.JDBCException: There is an error in get connection, Wrong user name or password [28000-158].
I tried modifying the file plugin.properties in the following way
datasource.property.odaURL=jdbc:h2:tcp://localhost/~/test
datasource.property.odaUser=admin
datasource.property.odaPassword=admin
but no good result.
Can you help me to understand where to configure the username and the passowrd BIRT uses to connect to the dbms?
Thanks in advance,
Pierpaolo
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/623947#623947]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 3 months
[jBPM] - jBPM junit test error
by ssampath
ssampath [http://community.jboss.org/people/ssampath] created the discussion
"jBPM junit test error"
To view the discussion, visit: http://community.jboss.org/message/624000#624000
--------------------------------------------------------------
Hi,
I am getting started with jBPM and am following the link http://docs.jboss.org/tools/2.0.0.GA/jbpm/en/html/Test_Drive_Proc_Develop... http://docs.jboss.org/tools/2.0.0.GA/jbpm/en/html/Test_Drive_Proc_Develop....
I created the junit test file and am trying to test the process. I am however getting the following error:
[code]
org.jbpm.jpdl.JpdlException: [[ERROR] couldn't parse process definition]
at org.jbpm.jpdl.xml.JpdlXmlReader.readProcessDefinition(JpdlXmlReader.java:172)
at org.jbpm.graph.def.ProcessDefinition.parseXmlInputStream(ProcessDefinition.java:180)
at org.jbpm.graph.def.ProcessDefinition.parseXmlResource(ProcessDefinition.java:161)
at com.jbay.HiTest.testProcess(HiTest.java:14)
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 junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:128)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
[/code]
Here is my test case code:
[code]
package com.jbay;
import junit.framework.TestCase;
import org.jbpm.graph.def.ProcessDefinition;
import org.jbpm.graph.exe.ProcessInstance;
import org.jbpm.jpdl.xml.JpdlXmlReader;
import junit.framework.TestCase;
public class HiTest extends TestCase {
public void testProcess() throws Exception{
ProcessDefinition definition = ProcessDefinition.parseXmlResource("hi/processdefinition.xml");
assertNotNull("Definition should not be null", definition);
ProcessInstance instance = new ProcessInstance(definition);
assertEquals(
"Instance is in start state", instance.getRootToken().getNode().getName(), "start");
instance.signal();
assertEquals(
"Instance is in start1 state", instance.getRootToken().getNode().getName(), "start1");
instance.signal();
assertEquals(
"Instance is in end state", instance.getRootToken().getNode().getName(), "end1");
assertTrue("Instance has ended", instance.hasEnded());
}
}
[/code]
And my process definition that I created:
[code]
<?xml version="1.0" encoding="UTF-8"?>
<process-definition
xmlns="urn:jbpm.org:jpdl-3.2" name="jBay">
<start-state name="start">
<transition name="toauction" to="state1"></transition>
</start-state>
<state name="state1">
<transition name="tr1" to="end1"></transition>
</state>
<end-state name="end1"></end-state>
</process-definition>
[/code]
I am not sure what the error means. I checked the exception code:
[code]
if (Problem.containsProblemsOfLevel(problems, Problem.LEVEL_ERROR)) {
throw new JpdlException(problems);
}
if (problems!=null) {
Iterator iter = problems.iterator();
while (iter.hasNext()) {
Problem problem = (Problem) iter.next();
log.warn("process parse warning: "+problem.getDescription());
}
}
[/code]
I am not sure this is helping me. I renamed the states and transitions to include only letters in order to correct the parsing, but it still gave out the same error. ANy help would be nice.
Thanks!
ssampath
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/624000#624000]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 3 months
[Snowdrop] - JMS, Spring and Snowdrop. Listening for an injection of bean factory to JNDI
by Michal Szynkiewicz
Michal Szynkiewicz [http://community.jboss.org/people/michal11] created the discussion
"JMS, Spring and Snowdrop. Listening for an injection of bean factory to JNDI"
To view the discussion, visit: http://community.jboss.org/message/623713#623713
--------------------------------------------------------------
Hi all,
We are currently developing an application that uses an MDB to read messages from JMS and then delegates business logic to spring beans.
All works fine if messages from JMS start getting delivered after all of the contexts are initialized. But when there are some messages in the queue during start time of the app, MDB is started earlier than bean factory is injected into JNDI and "bean factory not bound" exception is thrown when messages are delivered.
Is there a generic solution to that problem? Can I make my EJBs "start" after bean factory is injected into JNDI?
We thought that we can deliver MDB as inactive, than actively wait for application context to be injected into JNDI and than via JMX activate MDB, but it certainly is not an elegant solution.
Is there a way to get notified that snowdrop has finished its work? Then we could write a simplier hack...
Regards
Michal
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/623713#623713]
Start a new discussion in Snowdrop at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 3 months
[Beginner's Corner] - Multiple EntityManagers with different persistence units
by Pasquale Imbemba
Pasquale Imbemba [http://community.jboss.org/people/pi4630] created the discussion
"Multiple EntityManagers with different persistence units"
To view the discussion, visit: http://community.jboss.org/message/623935#623935
--------------------------------------------------------------
I've defined two persistence units in my persistence.xml: each one with its own data source (one points to an Oracle database on which I do reads, the other points to the HsqlDB I use to write).
Entity beans are mapped (by annotations) correctly. In my SLSB I inject two distinct EntityManagers, that refer to the relative name of the persistence units.
In my business method, I do a db read using the EntityManager pointing to the OracleDB and then I call a private method, where I instantiate a new entity which corresponds to a table on my HsqlDB. I then pass this object to myHsqlDbEMan.persist() method at the end of the private method.
Soon after the methods are terminated (and the server is committing changes to the database), I get the following error:
ERROR http://community.jboss.org/message/623935#623935#623935/org.hibernate.uti... Multiple EntityManagers with different persistence units (WorkerThread#0[127.0.0.1:48655]) Could not enlist in transaction on entering meta-aware object!; - nested throwable: (javax.transaction.SystemException: java.lang.Throwable: Unabled to enlist resource, see the previous warnings. tx=TransactionImple < ac, BasicAction: 0:ffff7f000101:126a:4e5def22:c status: ActionStatus.ABORT_ONLY >); - nested throwable: (org.jboss.resource.JBossResourceException: Could not enlist in transaction on entering meta-aware object!; - nested throwable: (javax.transaction.SystemException: java.lang.Throwable: Unabled to enlist resource, see the previous warnings. tx=TransactionImple < ac, BasicAction: 0:ffff7f000101:126a:4e5def22:c status: ActionStatus.ABORT_ONLY >))
2011-08-31 10:22:49,884 ERROR org.hibernate.event.def.AbstractFlushingEventListener org.hibernate.event.def.AbstractFlushingEventListener (WorkerThread#0[127.0.0.1:48655]) Could not synchronize database state with session: org.hibernate.exception.GenericJDBCException: Cannot open connection
How do I handle two different persistence contexts? I've tried to refactor my SB as Stateful and extend the persistence context of both persistence units, but that didn't work (returned same error). I also tried to refactor that writeToDb() to another SessionBean and use the HsqlDB context only there and invoke the method from my other bean, but that didn't work either.
I presumed that by using the different EntityManager, the AS would know about which context the method is in.
Thanks in advance,
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/623935#623935]
Start a new discussion in Beginner's Corner at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 3 months
[JBoss Tools] - "no server jvm" when trying to start AS 7 server
by Wolfgang Knauf
Wolfgang Knauf [http://community.jboss.org/people/WolfgangKnauf] created the discussion
""no server jvm" when trying to start AS 7 server"
To view the discussion, visit: http://community.jboss.org/message/623372#623372
--------------------------------------------------------------
Hi all,
just doing my first steps with JBoss Tools (3.3.0M2, using Eclipse 3.7) after years of using WTP. I am stuck with the simple task to start a JBoss 7 server: I just see the message "Error: no `server' JVM at ... path\to\my\JRE" (see attached screenshot).
No problem I thought: open the launch configuration, modify the classpath for "Bootstrap entries" and point it to different paths. I tried "C:\Program Files (x86)\Java\jdk1.6.0_26" and "C:\Program Files (x86)\Java\jdk1.6.0_26\jre" (where a "server" directory" is present), but the error message did not change.
Changing the default JDK in the eclipse "Installed JREs" preferencesd did not help, either.
Does anybody have an idea?
More details:
1) WindowsXP 64 bit, with JDK 1.6.0_26 x64 AND x86 installed
2) because of M2Eclipse, my eclipse.ini contains this additional line:
-vm C:/Program Files (x86)/Java/jdk1.6.0_26/bin/javaw.exe
Best regards
Wolfgang
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/623372#623372]
Start a new discussion in JBoss Tools at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 3 months