Oracle Analytics Cloud and Server

Welcome to the Oracle Analytics Community: Please complete your User Profile and upload your Profile Picture

Deploying the EJB Application (EAR File) Using the WebLogic Server Console To generate report in PDF

Received Response
13
Views
7
Comments
2795939
2795939 Rank 2 - Community Beginner

Hi All,

I referred Doc ID 1610118.1, for implementing EJB Application to generate reports in PDF format and saving it in shared drive.

But I am still getting attached error while invoking Java Method.

Please help to resolve this

Thanks in Advance.@terry.williams

pastedImage_0.png

Answers

  • Pedro F
    Pedro F Rank 6 - Analytics Lead

    What's your OBIEE version? Also, can you please put here the contents of your ActionFrameworkConfig.xml?

  • 2795939
    2795939 Rank 2 - Community Beginner

    Hi Pedro,

    Below is the version and content of ActionFrameworkConfig.xml

    11.1.1.7.0

    =================================================

    <?xml version="1.0" encoding="UTF-8"?>

    <obi-action-config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="afconfig.xsd">

        <aliases/>

        <registries/>

    <registry>

          <id>reg01</id>

          <name>Sample Test</name>

          <content-type>java</content-type>

          <provider-class>oracle.bi.action.registry.java.EJBRegistry</provider-class>

        <description>Custom Java for Financial Reports</description>

      <location>

         <path />

        </location>

      <custom-config>

       <ejb-targets>

            <appserver>

               <context-factory>weblogic.jndi.WLInitialContextFactory</context-factory>

               <jndi-url>t3://localhost:9704</jndi-url>

               <server-name>localhost</server-name>

              <account>WLSJNDI</account>

               <ejb-exclude>mgmt</ejb-exclude>

               <ejb-exclude>PopulationServiceBean</ejb-exclude>

          </appserver>

            <ejb-app>

               <server>localhost</server>

               <app-context>ArchiveReportsToPdf</app-context>

          </ejb-app>

         </ejb-targets>

        </custom-config>

       </registry>

        <content-types>   

          <content-type>

            <typename>webservices</typename>

            <displayname>Web Services and BPEL Processes</displayname>

            <actionType>WebServiceActionType</actionType>

          </content-type>

          <content-type>

            <typename>misc</typename>

            <displayname>Mixed Services</displayname>

            <actionType>URLActionType</actionType>

          </content-type>

       <content-type>

          <typename>java</typename>

          <displayname>Java Actions</displayname>

          <actionType>JavaActionType</actionType>

        </content-type>

        </content-types>

      <accounts>

      <account>

        <name>WLSJNDI</name>

        <description>Account used to access WLS JNDI.</description>

        <adminonly>false</adminonly>

        <credentialkey>JNDIuser</credentialkey>

    </account>

    </accounts>

    </obi-action-config>

    ==========================================================

  • Pedro F
    Pedro F Rank 6 - Analytics Lead

    A couple of suggestions worth trying I guess. Looking at your xml file and comparing with a working version I have (and even the one in the document you followed), you are missing the information inside the <aliases> tag and don't have the <registries> tag encapsulating the <registry> tag.

    pastedImage_0.png

    If when changing that it still doesn't work, I'd suggest to download the ArchiveReportsToPdf.ear file from the document and try with that one, just to rule out any issue with the ear file. Also, I'm assuming you did follow the remaining steps as per the document.

  • 2795939
    2795939 Rank 2 - Community Beginner

    Hi Pedro,

    Thanks for your response.

    Just want to confirm if I need to replace localhost with my machine name in ActionFrameworkConfig.xml file.

    Also would this would work in Linux server as well?

    And yes... I am using the ArchiveReportsToPdf.ear file and have followed the all the steps which is provided in the doc.

    Thanks once again.

  • 2795939
    2795939 Rank 2 - Community Beginner

    Hi,

    I receiving below while trying to invoke java method.

    Please suggest/help to resolve this.

    pastedImage_1.png@terry.williams@275939

  • Pedro F
    Pedro F Rank 6 - Analytics Lead

    Hi,

    No, not necessarily, I have my working example set up with localhost specified on the XML and that works fine. It's also on a Linux server and I've also used the ear file available on the document.

    Have you checked your XML to make sure you weren't missing those tags I mentioned? What is exactly the error you're getting now? Is it different from the 1st one?

  • 2795939
    2795939 Rank 2 - Community Beginner

    Hi Pedro,

    I have made those changes in XML and below is the error msg which I am getting while trying to invoke java method.

    And this time I have not missed any steps provided in the doc. @Petro Kovadlo

    pastedImage_0.png