Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » How to Setup Client Dev Environment for FileNet P8 4.x with JBoss and Eclipse(JBoss as App Server & Eclipse 3.3.2 as IDE => FileNet P8: how to setup client dev Environment)
How to Setup Client Dev Environment for FileNet P8 4.x with JBoss and Eclipse [message #531463] Wed, 05 May 2010 06:26
shiva  is currently offline shiva Friend
Messages: 2
Registered: May 2010
Junior Member
Hi Friends,
We are trying to set up a client environment in our local system and connect to FileNet P8 Server. The client configuration s/w set up is:-
1. JBoss 5.x as application Server and
2. Using Eclipse 3.3.2 as IDE.
We have copied the required, a list jar files from FileNet server and copied to our client system
1. Jace.jar
2. Log4j.jar
3. Stax-api.jar
4. xlxpScanner.jar
5. xlxpScannerUtils.jar and
6. jass.conf.WSI
also configured as external jar in eclipse IDE. As FileNet help suggested, we have created a project/package and a connector class. The source code is,
package p8.sample.cews;
//Import.
import java.util.Iterator;
import javax.security.auth.Subject;
import com.filenet.api.collection.ObjectStoreSet;
import com.filenet.api.core.Connection;
import com.filenet.api.core.Domain;
import com.filenet.api.core.Factory;
import com.filenet.api.core.ObjectStore;
import com.filenet.api.util.UserContext;

public class P8Connector {
public static void main(String[] args)
{
String uri = "http://Hqdemo1:9080/wsi/FNCEWS40MTOM/";
String username = "user";
String password = "password";

Connection conn = Factory.Connection.getConnection(uri);
Subject subject = UserContext.createSubject(conn, username, password, null);
UserContext.get().pushSubject(subject);

try
{
Domain domain = Factory.Domain.fetchInstance(conn, null, null);
System.out.println("Domain: " + domain.get_Name());

ObjectStoreSet osSet = domain.get_ObjectStores();
ObjectStore store;
Iterator osIter = osSet.iterator();
while (osIter.hasNext())
{
store = (ObjectStore) osIter.next();
System.out.println("Object store: " + store.get_Name());
}
System.out.println("Connection to Content Engine successful");
}
finally
{
UserContext.get().popSubject();
}
}
}
It returns error message as below:-
Exception in thread "main" com.filenet.api.exception.EngineRuntimeException: API_INVALID_URI: An invalid URI was found for connection http://Hqdemo1:9080/wsi/FNCEWS40MTOM/
Anyway, help us how to setup and configure client development environment and what are all the prerequisites we need to follow with the said configuration (JBoss ver 5.x as application server at client place and Eclipse 3.3.2 as IDE)
Thank you,

Kind Regards,
Shiva.
Previous Topic:extreme slow "refreshing external folders"
Next Topic:PDE Build version problem
Goto Forum:
  


Current Time: Tue Apr 16 04:18:39 GMT 2024

Powered by FUDForum. Page generated in 0.02299 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top