JNDI connection in CMC
I made a report in crystal report designer using JDBC/JNDI --> JNDI Connection. I was able to preview the report using the designer. However, when I tried to view the report in CMC, An error message was displayed: "Failed to open the connection. <report name>.rpt>
any idea to fix this?
thanks
I made a report in crystal report designer using JDBC/JNDI --> JNDI Connection. I was able to preview the report using the designer. However, when I tried to view the report in CMC, An error message was displayed: "Failed to open the connection. <report name>.rpt>
any idea to fix this?
thanks
Similar Messages
-
How to setup BPEL JNDI connection on the application server
Hi
Can anyone tell me how to write a JNDI connection for my BPEL process? Currently we are invoking all my BPEL processes from a property file, but i need to call my BPEL process thru JNDI connection. Is it possible? If yes then How?
Has anyone got any idea? Please let me know
BTW, you need more clarification on the question, let me know please.
Thanks.
DeepakHi Grafl,
Chk this link
Folder creation in AL11 using ABAP program
try this code.This works on UNIX servers
data: unixcom like rlgrap-filename.
data: begin of tabl occurs 500,
line(400),
end of tabl.
dir = unixcom = 'mkdir mydir'. "command to create dir
"to execute the unix command
call 'SYSTEM' id 'COMMAND' field unixcom
id 'TAB' field tabl[].
<b>Reward Points if Useful</b>
Regards
Gokul -
JNDI connection error - page not rendered properly
Dear All.
Always when I go to my application url I have er: "JBO-26061: Error while opening JDBC connection"
and a page is displayed only partially (not fully rendered).
In my case i have 5 development enviroments where I'm deploying my application.
On 3 envs app works prefectly but on 2 not. The only main difference (that i found) between thoese
servers is a timezone. Env: 1,2,3 has GMT+1 last two GMT. I didn't set up those machines, but from
far as I was told, configuration is the same. Weblogic version: 10.3.6.0
Does anybody now how to fix it? Before I will change a time, I would like to get familiar if a time difference could be an issue.
Regards.
Robert.
supposed error in log:
[ServletContext@556457299[app:iPlatform_v module:app_v.01-ViewController-context-root path:/app_v.01-ViewController-context-root spec-version:2.5]] Servlet failed with Exception
oracle.jbo.DMLException: JBO-29114 ADFContext is not setup to process messages for this exception. Use the exception stack trace and error code to investigate the root cause of this exception. Root cause error code is JBO-26061.
at oracle.jbo.server.DBTransactionImpl.establishNewConnection(DBTransactionImpl.java:1034)
at oracle.jbo.server.DBTransactionImpl.initTransaction(DBTransactionImpl.java:1174)
at oracle.jbo.server.DBTransactionImpl.initTxn(DBTransactionImpl.java:6826)
at oracle.jbo.server.DBTransactionImpl2.connectToDataSource(DBTransactionImpl2.java:304)
at oracle.jbo.server.DBTransactionImpl2.connectToDataSource(DBTransactionImpl2.java:335)...
Edited by: user623575 on 20-Jun-2012 01:30update:
always when I run my application in weblogic console (Summary of JDBC Data Sources->Monitoring) JDBC DataSource Runtime Statistics show
state overloaded.
Active Connections Average Count, Active Connections Current Count, Active Connections High Count = 15.
I receive this information only on 2 enviroments from 5. Strange case because JNDI connection is configuret exactly the same.
Any solutions guys?
Regards. -
Crystal Reports 2008 - Eclipse and JNDI connection.
I am evaluting Crystal Reports 2008 .
I want to use JNDI connection that is defined within my app server by Crystal reports so that I'll have better control of the properties defined.
How do I set up JNDI data source connection in Crystal Reports 2008 ?
I defined the following parameters u2026
JNDI Provider URL : jnp://localhost:1099
Initla Context as : org.jnp.interfaces.NamingContextFactory
And user name / password as defined in JBoss setup
I also have u201Cjboss\client\jbossall-client.jaru201D in the classpath .
But I am getting Cannot instantiate class exception .
Thanks in Advance for the help.Mr. Ted, We can expose JNDI connections from the appserver. Infact the database connection pool resoures are exposed as JNDI resources, JMS factory and connections are exposed as JNDI etc.
In fact, JNDI is a means of securely exposing the resources managed by the app server to be used by trusted clients.
We have achieved this on weblogic (8.1 - JDK 1.4.2) but we would like to replicate the same in glassfish app server ver 3.1.2 and would require the proper factory placed inside the rpt as well as the CRConfig.xml.
Otherwise, (if we are using conventional URL string) when we ship the rpt files, we need to place this only as localhost. This mandates the presence of rpt files to be in the same server as database server and database. We want to avaoid this by creating a JNDI and use that database access resource inside the rpt files. -
CR4E - New JDBC (JNDI) connection at runtime
Is it possible to create a new JDBC (JNDI) connection at runtime using the propertyBag to set the attributes? I tried this but received error message stating "error finding jndi name".
Are you specifying a JDBC or JNDI connection?
If JDBC, did you set the (Optional) JNDI Connection property?
If you set the JNDI property for the JDBC connection, it'll try connecting to the JNDI.
The JDBC has the optional JNDI property, so that you can design a report against JDBC, then use the JNDI when deployed to a J2EE.
Sincerely,
Ted Ueda -
TOMCAT 5.0 - JNDI Connection Fails
Hey guys,!
Just wanted to test a JNDI datasource I created through the Tomcat administrator with a simple code in a Servlet, here's the snipped code:
System.out.println("Starting initial context");
Context initCtx = new InitialContext();
Context envCtx = (Context) initCtx.lookup("java:comp/env");
DataSource ds = (DataSource)
envCtx.lookup("jdbc/OFI4");
Connection conn = ds.getConnection();
//... use this connection to access the database ...
conn.close();
The thing is, I'm getting an error that I've google for the las couple of days and have not found any helpful answers about it, the error message is:
org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null'
at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:780)
at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
at test2.doGet(test2.java:68)
Caused by: java.sql.SQLException: No suitable driver
at java.sql.DriverManager.getDriver(DriverManager.java:243)
at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:773)
thank u people, any hel will be greatly appreciated.!
Regards,
EstebanHey guys....!
I figured out the way to make the JNDI connection work and I can tell you, it DOES work. Apparently, there are some troubles when creating the JNDI datasource by using the Tomcat Administration tool.
Follow this steps to sort this issue out:
1. Delete any of the datasources u've created by using the Tomcat Administrator make sure that no tags regarding these datasources remains in the server.xml file
2. Include the Resource tag in your application web.xml, as follows:
<resource-ref>
<description>DB Connection</description>
<res-ref-name>jdbc/OFICDB</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
3. Create a xml file named exact as your application (i.e app1, testApp...) and place it at CATALINAHOME/conf/Catalina/localhost. The document content must be as the following (please note that you must change values such as database name, username, password). This files is associated to an application called testCR3
<?xml version='1.0' encoding='utf-8'?>
<Context path="/testCR3" docBase="testCR3" debug="5" reloadable="true" crossContext="true" workDir="work\Catalina\localhost\testCR3">>
<Logger className="org.apache.catalina.logger.FileLogger" prefix="localhost_textCR3_log." suffix=".txt" timestamp="true"/>
<Resource name="jdbc/OFICDB" auth="Container" type="javax.sql.DataSource"/>
<ResourceParams name="jdbc/OFICDB">
<parameter>
<name>factory</name>
<value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
</parameter>
<parameter>
<name>driverClassName</name>
<value>oracle.jdbc.driver.OracleDriver</value>
</parameter>
<parameter>
<name>url</name>
<value>jdbc:oracle:thin:@12.145.12.134:1521:OFICDB</value>
</parameter>
<parameter>
<name>username</name>
<value>user1value>
</parameter>
<parameter>
<name>password</name>
<value>pwd1</value>
</parameter>
<parameter>
<name>maxActive</name>
<value>20</value>
</parameter>
<parameter>
<name>maxIdle</name>
<value>10</value>
</parameter>
<parameter>
<name>maxWait</name>
<value>-1</value>
</parameter>
</ResourceParams>
</Context>
If u have any additional troubles, do not hesitate to let me know.
Best regards,
E10
Message was edited by:
E10 -
A bug in creator when creating jdbc jndi connection
Hi,
I am using sun java studio creator for jdbc jndi connection. The syntax is
Context ctx = new InitialContext();
DataSource ds = (DataSource)ctx.lookup("java:comp/env/jdbc/mydb");
conn = ds.getConnection();
It's failed. Once I change to ctx.lookup("jdbc/mydb") and the connection is created.
Once deployed to tomcat, it seems only java:comp/env/jdbc/mydb is working.
The full path(java:comp/env/jdbc/mydb) seems right from my google search.
Why creator using jdbc/mydb? Is it a bug to creator?
Thanks,
JieI mean a resource reference in web.xml file that looks like this:
<resource-ref id="ResourceRef_1103225373500">
<res-ref-name>DBConnection</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Application</res-auth>
<res-sharing-scope>Shareable</res-sharing-scope>
</resource-ref>
where DBConnection is the resource alias I mentioned before:
DataSource ds = (DataSource)ctx.lookup("java:comp/env/DBConnection");
Using WebSphere a binding between this above defined ResourceRef and JNDI mapping must be defined in a file called ibm-web-bnd.xmi. The content of this file will look like this:
<?xml version="1.0" encoding="UTF-8"?>
<webappbnd:WebAppBinding xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:webappbnd="webappbnd.xmi" xmi:id="WebAppBinding_1" virtualHostName="default_host">
<webapp href="WEB-INF/web.xml#WebApp"/>
<resRefBindings xmi:id="ResourceRefBinding_1103225373500" jndiName="jdbc/mydb">
<bindingResourceRef href="WEB-INF/web.xml#ResourceRef_1103225373500"/>
</resRefBindings>
</webappbnd:WebAppBinding>
Obviously using WSAD all of that could be done using IDE. In your case and using Sun IDE, I am not sure. But this is basically the concept of needed mapping in order to reference your JNDI without getting an error. At least this is how we resolved the error you are encountering.
Hope that helps! -
How to configure jdbc/jndi connection in crystal report 10
Post Author: effy
CA Forum: Data Connectivity and SQL
i have tried to configure jdbc/jndi connection , i have both
drivers data base side and crystal report side but i
can't configure it. so please help if u know
something.Sorry, but I'm not on a home pc, I'm working on a virtualized pc with a long chain of permissions ... so I cannot simply download and run an utility...
Instead... I think (I WAS thinking) someone from SAP can tell me this info ... Probably I'll buy a paid assistance ticket... But really it's a strange thing that a simply connection from a (so) paid software need a so difficult problem solving routine..
I edited my environment variales: JAVA, PATH; CLASSPATH; JAVA_DIR, and a long list of others ... to ALL point to ALL of directory containing used jars...
.. I asked my SysAdmin to edit CrConfig.xml and it's done ... classpath are rights, jdbc infos are also ok, ...
.. but none ... -
Please Help. How can you monitor a directory using jndi connection to a ldap server?
How can you monitor a directory using jndi connection to a ldap server? I
want the ldap server to monitor the content change in a file system
directory on another computer on the network. Can someone please help.
Thanks
FredHi,
Why do you want to use LDAP for Hard disk monitoring..???
U can do this by creating a MD5 checksum for all the files existing in some
perticular
directory and every hour or any configurable period u can recalculate the
checksum
to find out the change in the content.
I guess all u need is to get the code for "updatedb" utility of Linux and
instrument it for ur needs..
Hope it helps...
-aseem
mr wrote:
How can you monitor a directory using jndi connection to a ldap server? I
want the ldap server to monitor the content change in a file system
directory on another computer on the network. Can someone please help.
Thanks
Fred -
Failover and Load Balancing with JNDI Connection Pools
Hi,
I am trying to figure out how would JNDI Connection Pooling work along with failover or DNS Load Balancing.
Would connections be distributed equally among the list?
Would the pool work with multiple heterogeneous connections (i.e. connections to different but equivalent servers ), or do all the connections in the pool have to be homogeneous (i.e. to the same server)?
Thanks,
SergioHi,
I am trying to figure out how would JNDI Connection Pooling work along with failover or DNS Load Balancing.
Would connections be distributed equally among the list?
Would the pool work with multiple heterogeneous connections (i.e. connections to different but equivalent servers ), or do all the connections in the pool have to be homogeneous (i.e. to the same server)?
Thanks,
Sergio -
How do we create a jndi connection in crystal reports XI
how do we create a jndi connection in crystal reports XI when the data soiurce is configured on websphere 6.1
You need to use WLST online. I am not sure what your exact requirements are but one good way of working this is to have a WLST script that deletes all your WL customisations, like connection pools, JMS Servers etc and then creates it. That way you can run the same script repeatedly and it will get everything up to date for you. However you have to remember that everytime you add something new you need to update your delete section. Also your deleting should not fail if the item does not exist. I hope that makes sense!
As to the specifics of WLST examples to do this then check out the WLST examples in CodeShare.
If you are still having issues then post another message.
Geoff -
Unable to connect to CMC and Java Infoview
Hi
I am unable to connect to CMC and Java Infoview. When I am attempting to connect, then the following message is displayed.
"Oops! Internet Explorer could not connect to <web server>:<port number>"
Please give me some suggestions.
Thanks!Hi Stratos
I uninstalled the designer and repaired Crystal Reports Server. But it did not help.
The CMS is running now. But I cannot find all the other services and I am getting the same error when I try to open CMC or InfoView.
I found some of these errors in my system's event viewer:
NT Service message: NT Service Initialization Problem.
The root server reported an error Initialization Failure.
The source for both these errors is BusinessObjects_CMS.
Please suggest something
Thanks -
Different weblogic JNDI Connections sharing the same dbms session
Hi,
we have setup JDBC Datasource on the weblogic server. Creating connection using JNDI lookup is sharing the same session across different connections, which is causing invalid data generation in global temp tables. The data in the global temp table is accessed accross db sessions.
I have created a test case, using JDBC connection, the global temp table data is not accessible across session (this is correct behavior).
where as using JNDI connection the data from the temp table is accessed across different connections. (This is not expected behavior)
I tried setting statement cache = 0, Remove Infected Connections Enabled = true / false but no use.
is there any other setup in the weblogic to avoid db session sharing across connections??
Thank you,
RangaI am using a single thread, This can be easily reproducible on any machines.
@ Sequence to follow
@ public static void main(String[] args) {
@ for (int i =0; i < 3; i++)
@ try{
@ conn = getJNDIConnection();
@ printSessionDetials();
@ insertValuesToTempTable();
@ QueryRecordsFromTempTable();
@ }finally
@ conn.close();
@ Test Results:
@ JNDI connection found: jdbc/xdo120DBDS
@ V$Session Details....
@ SessionId:299:serial#:909:Seq#:31:dbmsSessionId:012B038D0001
@ Number of Records:1
@ connection is closed.....
@ =====================================
@ JNDI connection found: jdbc/xdo120DBDS
@ V$Session Details....
@ SessionId:299:serial#:909:Seq#:38:dbmsSessionId:012B038D0001
@ Number of Records:2
@ connection is closed.....
@ =====================================
@ JNDI connection found: jdbc/xdo120DBDS
@ V$Session Details....
@ SessionId:299:serial#:909:Seq#:45:dbmsSessionId:012B038D0001
@ Number of Records:3
@ connection is closed.....
@ Process exited with exit code 0. -
JDBC(JNDI):Connection dinamically managed
Hi all,
I'm using
1) Crystal Reports 2008 for the reports' design,
2) Java Reporting Component (version 18.8.4.1094) for the integration in java environment,
3) JBoss (version 4.2.3) as Application Server
4) Oracle 11 as DBMS
in a web application.
When I create a report using JDBC (JNDI) and specify as the "Connection Name (optional)" the following string "java:jdbc/name_data_source",
How is managed the connection of the report and any sottoreports? In other words are the connections dynamically managed by the container web or ejb?
Thank you very much.Hi, Andrea,
I'm gonna' make a few guesses here:
2) Java Reporting Component (version 18.8.4.1094)
I think you mean Crystal Reports for Java (CRJ) 2.8 version 12.2.209.1094. Neither the JRC (the name for the 1.x series) nor the CRJ (the 2.x series) has any version number in the 18.x range.
sottoreports
I think that means "subreports."
are the connections dynamically managed by the container web or ejb?
There are two ways the connections can be managed. If you've created a JNDI connection (a named connection), then you can base a report off of it, then at a later date change where the JNDI connection itself points to and the report should still work correctly, as long as the new target database shares the same schema as the original.
The other way you can manage the connection is to use code to change the database connection information inside the report itself. In this way, you could change it from one JNDI connection to another or even to another type of connection altogether. Again, however, the schemas between the old and the new connections must match.
Regards,
Bryan -
Cannot connect MS SQL Server2005 by using JDBC(JNDI) connection
Hi all,
I met a problem when I was trying to create a JDBC(JNDI) connection in crystal report 2008, the following error dialog shows up, it said:
Database Connector Error: 'SQL Exceptions: [SQL State:] S1000 [Error Message:] [Microsoft][SQL Native Client]Connection is busy with results for another command'
here is the steps how to reproduce this problem:
1) create a DSN(Data source name) in ODBC Data Source Administrator dialog, suppose the DSN is test
(and the DSN test show it works well)
2) start up Crystal Report 2008, click New to create a new report, the Standard Report Creation Wizard show up
3) expand Create New Connection node, then double click JDBC(JNDI) note
4) the JDBC (JNDI) dialog shows up, chooose JDBC Connection in the dialog, and fill the empty fields with:
Connection URL: jdbc:odbc:test
Database Classname:sun.jdbc.odbc.JdbcOdbcDriver
5) click next, it comes to the next pannel, and fill the empty fields with:
Database: MyTestDB
UserID: sa
Password: sa
6) then click Finish buttion.
7) a new connection is created, but when I expand the new created connection, an error dialog shows up
Database Connector Error: 'SQL Exceptions: [SQL State:] S1000 [Error Message:] [Microsoft][SQL Native Client]Connection is busy with results for another command'
does anyone knows what's wrong with my setting? any help would be appreciated.
Best Regards
Tian-liangHi Tian-liang,
Try using Microsofts JDBC driver rather than Suns. Also search these forums, other have run into the same issue.
Thank you
Don
Maybe you are looking for
-
GET Node in logical database to be executed on a condition
Dear Friends, I have used GET NODE (get pernr) to extract data from HR LDB- PNP. Using HR Report Category I have customized selection screen so that user cannot enter employee number (so that he can only see his payslip only) but can select just the
-
Two PR Line items for the TAB Item category
Hi, We have created a sales order with TAB item category. In MD04 we found two line items of the same firmed PR. Any idea why two lines of PR are generated? Regards, Vengat
-
AF Query: Criteria fields disappearing but result set not refreshed
I have been searching for days and cannot find a solution to this problem. I have an af:query component based on a view criteria. I have the query component only displayed as an advanced search without the basic/advanced toggle. A user can then use "
-
can some help me everytime I try to open itunes store an error comes up saying windows experienced a problem and program stopped working. Itunes opens this just happens when I go to the store
-
List of Installed programs at Client machine
How one can detect the list of programs installed on PC