SAP Knowledge Base Article - Public

1206031 - JNDI connection fails when the application server and Crystal Reports are on different computers

Symptom

In Crystal Reports 10 and Crystal Reports XI using BEA WebLogic 8.1, the Java Naming and Directory Interface (JNDI) connection fails when the application server and Crystal Reports are on different computers. Users are unable to create a Crystal report based on a JNDI connection.

Cause

This behavior occurs because the location of the weblogic.jar file has been defined incorrectly in CRConfig.xml.

Resolution

To resolve the behavior

  1. Share the following directory on the computer where the application server resides: <installation directory>:\bea\weblogic81\server\lib.
  2. Open CRConfig.xml in a text editor such as Notepad.
  3. Specify the location of the weblogic.jar file in the Classpath tag as follows:

    <Classpath>
    ;\\ApplicationServerMachineName\bea\weblogic81\server\lib;${CLASSPATH}
    </Classpath>


  4. Save and close the file.

TIP

If the code sample appears truncated in the browser window, copy and paste the entire block of code into a text editor. Code samples are intentionally formatted this way so they do not wrap. Wrapped code can produce unexpected errors in the application.

Keywords

JNDI connection failed , 8834921 , KBA , BI-RA-CR , Crystal Reports designer or Business View Manager , How To

Product

SAP Crystal Reports 10.0 ; SAP Crystal Reports XI ; SAP Crystal Reports XI R2