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     [CLOSED] Report Caster API

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Report Caster API
 Login/Join
 
Platinum Member
posted
Hi All,
Im trying to implement Report Caster API.
At the time of CasterManagedConnectionFactory object Creation, Its giving me an exception - ' Can not initilize IBFSService. Set IBI_DOCUMENT_ROOT environment variable ' .

My java Code is-
---------------------------------------
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import ibi.broker.api.CasterManagedConnectionFactory;
import ibi.broker.api.cci.CasterConnection;
import ibi.broker.api.cci.CasterConnectionFactory;
import ibi.broker.api.cci.PasswordCredential;
import javax.resource.cci.ConnectionSpec;

@WebServlet("/Ligin")
public class Login extends HttpServlet {
private static final long serialVersionUID = 1L;

/**
* Default constructor.
*/
public Login() {
// TODO Auto-generated constructor stub
}

protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
PrintWriter out = response.getWriter();
try
{

String host="http://localhost";
String port="8080";
String user="admin";
String password="admin";
CasterManagedConnectionFactory managedConnectionFactory = new CasterManagedConnectionFactory();



managedConnectionFactory.setServerName(host);
/*managedConnectionFactory.setPortNumber(port);
CasterConnectionFactory connectionFactory =(CasterConnectionFactory)managedConnectionFactory.
createConnectionFactory();
ConnectionSpec credential =new PasswordCredential(user, password.toCharArray());
CasterConnection myConnection =((CasterConnection)connectionFactory.getConnection(credential));
*/out.println("connected");
}
catch(Exception ee)
{

out.print("catch="+ee.getMessage());
}
}

}
--------------------------------------
I have put all the related jar file.

Can you please tell me that How can I set IBI_DOCUMENT_ROOT environment variable.

This message has been edited. Last edited by: <Kathryn Henning>,


Thanks!
@vi

WebFOCUS 8105, Dev Studio 8105, Windows 7, ALL Outputs
 
Posts: 103 | Registered: July 08, 2013Report This Post
Virtuoso
posted Hide Post
Search techsupport for this error. Your solution is there.


"There is no limit to what you can achieve ... if you don’t care who gets the credit." Roger Abbott
 
Posts: 1102 | Location: Toronto, Ontario | Registered: May 26, 2004Report 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     [CLOSED] Report Caster API

Copyright © 1996-2020 Information Builders