[jBPM] - Re: birt report data not showing up in jbpm console - can't load jdbc jar ?
by Anand Awasthi
Anand Awasthi [http://community.jboss.org/people/anand.awasthi] created the discussion
"Re: birt report data not showing up in jbpm console - can't load jdbc jar ?"
To view the discussion, visit: http://community.jboss.org/message/639678#639678
--------------------------------------------------------------
Tanks I will try that download. BTW, Yes I am trying to run both overall report and process summary report.
I have been able to run these 2 reports with following cases:
1) deploy Birt.war on WAS 7. Able to generate reports thru this - OK (addeded jdbc jar in classpath of viewer)
2) open these reports in Eclipse - Designer - able to see data ok- (added jdbc jar in classpath)
3) Installed Report Engine API in D:/xxxx - added jar in ReportEngine/lib - works OK
Error Case:
Deployed Console on WAS 7 - Birt Service is pointing to Report Engine installed in D:/xxxxx. Service initalized OK, Both Report Templates show up in Console - Reporting Section along with the Error mentioned in the original post.
(In this cases copied all jars from ReportEngine/lib to Console-server-war/WEB-INF/lib along with jdbc Jar, so they are in class path of Console).
I dont see any other errors in WAS server and ffdc logs. BTW, I also configured the jndi datasource in report template.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/639678#639678]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years
[EJB3] - jndi.properties files is not read
by Samuel Navarro
Samuel Navarro [http://community.jboss.org/people/snavarro89] created the discussion
"jndi.properties files is not read"
To view the discussion, visit: http://community.jboss.org/message/639622#639622
--------------------------------------------------------------
Hello everyone,
Im starting to develop with JBoss, and got stuck while trying to create my first application.
Im running JBoss 7.0, maven 3.0.3, Eclipse Indigo 3.7
So, I started with a Hello World Project just to test if my setup was correct, and it worked, I succesfully deployed the project and acces it through a web page.
Then I tried to create a Hello World from my own, but this time I wanted to access my bean from a client application. So I deployed another bean to the server, so far so good, but then I created another project to create a test client application, and I got the following error
javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
So I start searching in the web and read a lot of forums (before posting a question that surely was previously asked) and everyone said the same, I needed to add a jndi.properties file to my classpath, so I did, and the error still appeared, then I followed a basic tutorial for stateless session beans, and did as the tutorial specified, which was the same as I was doing, but insted the client application class, was in the same project, I added the jndi file and the error was still coming up.
I have the following structure
SampleEJBProject
-ejbModule
-com.code.project
-XXX.java
-YYY.java
-jndi.properties
This is how I have the file configured
java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
java.naming.provider.url=localhost:1099 (already tried with jpn:// at the beginning)
java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
I searched on how could I be sure that my file was being used and found
loader.getResources("jndi.properties")
Which returns null.
Ive already places the jdni.properties file in the root folder of the classpath and it didnt work.
Is there configuration I may be missing?
Do I need to place jdni.properties file somewhere else?
Thanks in advance!
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/639622#639622]
Start a new discussion in EJB3 at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years
[jBPM] - birt report data not showing up in jbpm console - can't load jdbc jar ?
by Anand Awasthi
Anand Awasthi [http://community.jboss.org/people/anand.awasthi] created the discussion
"birt report data not showing up in jbpm console - can't load jdbc jar ?"
To view the discussion, visit: http://community.jboss.org/message/639391#639391
--------------------------------------------------------------
Hi Everyone,
I am trying to generate the reports using birt run time 3.7.1 in jbpm console 5.1 which is deployed on WebSphere 7. I have configured birt runitme location in WAS admin console pointing to -Dorg.jbpm.report.engine.dir=D:\birt-runtime\birt. Everything looks ok and I can pull up the reporting templates in JBPM Console also but i am not seeing the data , instead i get error shown below. the relevant stack trace is :
- Can not load the report query: 122. Errors occurred when generating the report document for the report element with ID 122. (Element ID:122)
Error.ReportQueryLoadingError2 ( 1 time(s) ) detail : org.eclipse.birt.report.engine.api.EngineException: Can not load the report query:
122. Errors occurred when generating the report document for the report element with ID 122. (Element ID:122)
at org.eclipse.birt.report.engine.data.dte.DataPresentationEngine.doExecuteQuery(DataPresentationEngine.java:160)
at org.eclipse.birt.report.engine.data.dte.AbstractDataEngine.execute(AbstractDataEngine.java:267)
at org.eclipse.birt.report.engine.executor.ExecutionContext.executeQuery(ExecutionContext.java:1905)
While digging at the forums, I found that for Birt runtime 3.7.1 , I need to copy jdbc jar, (in this case db2jcc.jar) in BirtHome/WEB-INF/lib.
So I deployed birt.war on WAS 7 with db2jcc.jar in WEB-INF/lib and it still didnt work. I also copied the db2jcc.jar in D:\birt-runtime\birt\ReportEngine\lib and that didnt work either. What am I missing ?
BTW, I can pull the data in Eclipse - when i open the template in Designer View. All I had to do was add the jar using Jar Management Wizard and conifgure the data source. But the same thing is not working when I try to open the reports in Server enviornment.
Any pointers will be greatly appreciated.
Regards,
Anand
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/639391#639391]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years