on 2009 Sep 08 4:22 PM
Hi all,
I was updated Web.xml
<context-param>
<param-name>connection</param-name>
<param-value>jdbc:oracle:thin:@192.168.1.81:1521:orcl</param-value>
</context-param>
<context-param>
<param-name>JDBCClassName</param-name>
<param-value>C:/jdevstudio10133/jdbc/lib/ojdbc14.jar</param-value>
</context-param>
<context-param>
<param-name>login</param-name>
<param-value>act_db</param-value>
</context-param>
<context-param>
<param-name>password</param-name>
<param-value>act_db</param-value>
</context-param>
Sample .jsp
// ****** BEGIN SET RUNTIME DATABASE CREDENTIALS ****************
{
String connectString = "connection";
String driverName = "JDBCClassName";
* String JNDIName = "ORCL";*
String userName = "login"; // TODO: Fill in database user
String password = "password"; // TODO: Fill in password
// Switch all tables on the main report and sub reports
CRJavaHelper.changeDataSource(clientDoc, userName, password, connectString, driverName, JNDIName);
// logon to database
CRJavaHelper.logonDataSource(clientDoc, userName, password);
}
At the run time it is showing following error
com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: InvalidURLOrClassName---- Error code:-2147467259 Error code name:failed
How to solve these Error Or to set jndi name
Regards ,
Amol Patil
Which version of JRC you are using?
You never update web.xml for updating driver specific information.
For JRC XIR2 you modify CRConfig.xml file.
Regards,
Tej
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Tejaswini,
I am Using jdbc:oracle:thin:@192.168.1.81:1521 it is working fine .these connection string in each report update the following details
String connectString = "jdbc:oracle:thin:@192.168.1.81:1521:orcl";
String driverName = "oracle.jdbc.driver.OracleDriver";
String JNDIName = "orcl";
String userName = "act_db";
String password = "act_db";
I want Set one place in application that may changes in whole application. In which file i have to update these (Web.xml or CRconfig.XML)
Any another way to set these
also ,I want to set multiple Thread or Multiple reports on one instance
or send me any sample example
Thank you,
Regards,
Amol
User | Count |
---|---|
66 | |
10 | |
10 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.