Categories
- All Categories
- 15 Oracle Analytics Sharing Center
- 16 Oracle Analytics Lounge
- 215 Oracle Analytics News
- 43 Oracle Analytics Videos
- 15.7K Oracle Analytics Forums
- 6.1K Oracle Analytics Idea Labs
- Oracle Analytics User Groups
- 79 Oracle Analytics Trainings
- 15 Oracle Analytics Data Visualizations Challenge
- Find Partners
- For Partners
Deploying the EJB Application (EAR File) Using the WebLogic Server Console To generate report in PDF

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
Answers
-
What's your OBIEE version? Also, can you please put here the contents of your ActionFrameworkConfig.xml?
0 -
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>
==========================================================
0 -
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.
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.
0 -
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.
0 -
Hi,
I receiving below while trying to invoke java method.
Please suggest/help to resolve this.
0 -
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?
0 -
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
0