Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     WebFOCUS API from stand alone Java app

Read-Only Read-Only Topic
Go
Search
Notify
Tools
WebFOCUS API from stand alone Java app
 Login/Join
 
<David Ronne>
posted
I've been trying to use the WebFOCUS API from a stand alone Java application and i'm having trouble determining the prerequisites. I'm using Eclipse 3.2.1. I have WFAPI.jar from WF 7.1.1 and servlet-api.jar from Tomcat 5.5 in my classpath. I'm trying to login to an MRE WF instance on a remote server as follows:
public static void main(String[] arg)
{
try
{
String cgiLocation = "C:\\ibi\\DevStudio71\\srv71\\wfs\\web\\cgi";
WFApplicationRequest wfApplicationRequest = new WFApplicationRequest();
WFApplicationResponse wfApplicationResponse = new WFApplicationResponse();
wfApplicationRequest.setServerName("ibicmdmmk5");
wfApplicationRequest.setServerPort(25000);
wfApplicationRequest.addParameter( "IBIMR_action", "MR_SIGNON" );
wfApplicationRequest.addParameter( "IBIMR_user", "a200935" );
wfApplicationRequest.addParameter( "IBIMR_pass", "" );
wfApplicationRequest.addParameter( "IBIMR_returntype", "XML" );
WFWorkerUtil.processRequest(cgiLocation,wfApplicationRequest,wfApplicationResponse);
System.out.println(" The WebFocus Server name ==> " + wfApplicationRequest.getServerName());
System.out.println(" The WebFocus Server Port ==> " + wfApplicationRequest.getServerPort());
System.out.println(" The WebFocus Content Length ==> " + wfApplicationResponse.getContentLength());
} catch ( Exception e )
{
e.printStackTrace();
}
}

I'm getting as a result:
RETURN_TYPE_VERSION 1 RETURN_TYPE_VERSION
COMMENT Failed to load driver factory for ibi.webfoc.wfmre.repos.core_bd.WFMRRouterFactory.
RETURNCODE 1099 RETURNCODE

The WebFocus Server name ==> ibicmdmmk6
The WebFocus Server Port ==> 25000
The WebFocus Content Length ==> 0

can anyone tell me what i'm missing.

Thanks in advance Dave Ronne
 
Report This Post
<David Ronne>
posted
I was missing the client software. Duh! Installed about 1/2 GB of WF client software. So I have all the software. No more driver factory error but it doesn't work either. There is no indication that I'm even getting off the box.
 
Report This Post
Member
posted Hide Post
Hi David,

I think i can help in this.
But my WFAPI.jar has been corrupted and am unable to locate it again. Could you please provide me your WFAPI.jar so that i can proceed in this matter.
Thanks,
Sush Smiler
 
Posts: 12 | Location: noida India | Registered: December 20, 2006Report This Post
Member
posted Hide Post
please send me that WFAPI.jar on sujeetsharma1980@gmail.com

Regards,
Sush
 
Posts: 12 | Location: noida India | Registered: December 20, 2006Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     WebFOCUS API from stand alone Java app

Copyright © 1996-2020 Information Builders