Hi All,
To simplify our problem, we are trying to run the following Java program and still we are getting the same error!!!
import ibi.broker.*;
import ibi.broker.api.data.schedule.*;
import ibi.broker.api.cci.*;
//import java.util;
import ibi.broker.api.CasterManagedConnectionFactory;
import java.util.ResourceBundle;
import ibi.broker.api.*;
import javax.resource.*;
import javax.resource.cci.ConnectionSpec;
import javax.resource.ResourceException;
import java.util.ResourceBundle;
import java.io.*;
//import ibi.org.xml.sax.helpers.*;
public class CasterServlet {
public static void main(String[] args)
{
String scheduleDescription = "testst";//args[0];
String fexFileName = "sample";//args[1];
String execId = "admin_username";//args[2];
String execPassword = "admin_Password";//args[3];
String server = "Webfocus_server";
String port_num = "8200";
CasterManagedConnectionFactory managedConnectionFactory = new CasterManagedConnectionFactory();
managedConnectionFactory.setServerName(server);//the name of the server running the distribution server
managedConnectionFactory.setPortNumber(port_num);//the port the distribution server is listening
try
{
CasterConnectionFactory connectionFactory = (CasterConnectionFactory)managedConnectionFactory.createConnectionFactory();
ConnectionSpec credential = new PasswordCredential(execId,execPassword.toCharArray());
CasterConnection aa = (CasterConnection)connectionFactory.getConnection(credential);
System.out.println("Hello");
}
catch (ResourceException ex)
{
System.out.println("Here");
System.out.println(ex);
}
//This portion of the code accepts four arguments
}
}
This is the exception we are getting
ERROR! License has not been loaded. Exception in thread "main" javax.persistence.PersistenceException: Exception [EclipseLink-4021] (Eclipse Persistence Services - 2.4.1.v20121003-ad44345): org.eclipse.persistence.exceptions.DatabaseException Exception Description: Unable to acquire a connection from driver [null], user [null] and URL [null]. Verify that you have set the expected driver class and URL. Check your login, persistence.xml or sessions.xml resource. The jdbc.driver property should be set to a class that is compatible with your database platform at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:602) at org.eclipse.persistence.internal.jpa.EntityManagerFactoryDelegate.getDatabaseSession(EntityManagerFactoryDelegate.java:186) at org.eclipse.persistence.internal.jpa.EntityManagerFactoryDelegate.createEntityManagerImpl(EntityManagerFactoryDelegate.java:278) at org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:304) at org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:282) at com.ibi.ibss.dbdriver.IBSSEntityManager.getEM(IBSSEntityManager.java:87) at com.ibi.ibss.dbdriver.IBSSEntityManager.createNamedQuery(IBSSEntityManager.java:96) at com.ibi.ibss.dbdriver.IBSSEntityManager.createNamedQuery(IBSSEntityManager.java:115) at com.ibi.ibss.dbdriver.IBSSEntityManager.getNamedResultList(IBSSEntityManager.java:392) at com.ibi.ibss.dbdriver.IBSSGroupsImplDB.getGroupMap(IBSSGroupsImplDB.java:140) at com.ibi.ibss.dbdriver.IBSSGroupsImplDB.getGroupById(IBSSGroupsImplDB.java:339) at com.ibi.ibss.IBSSSecuritySystem.getEveryoneGroup(IBSSSecuritySystem.java:2905) at com.ibi.ibss.IBSSSecuritySystem.modifyNeededSystemRules(IBSSSecuritySystem.java:1665) at com.ibi.ibfs.IBFSService.(IBFSService.java:2472) at com.ibi.ibfs.IBFSService.getIBFSService(IBFSService.java:2877) at com.ibi.ibfs.IBFSService.getIBFSService(IBFSService.java:2841) at com.ibi.ibfs.IBFSService.getIBFSService(IBFSService.java:2894) at ibi.broker.api.CasterManagedConnectionFactory.(CasterManagedConnectionFactory.java:182) at CasterServlet.main(CasterServlet.java:26) Caused by: Exception [EclipseLink-4021] (Eclipse Persistence Services - 2.4.1.v20121003-ad44345): org.eclipse.persistence.exceptions.DatabaseException Exception Description: Unable to acquire a connection from driver [null], user [null] and URL [null]. Verify that you have set the expected driver class and URL. Check your login, persistence.xml or sessions.xml resource. The jdbc.driver property should be set to a class that is compatible with your database platform at org.eclipse.persistence.exceptions.DatabaseException.unableToAcquireConnectionFromDriverException(DatabaseException.java:376) at org.eclipse.persistence.sessions.DefaultConnector.connect(DefaultConnector.java:91) at org.eclipse.persistence.sessions.DatasourceLogin.connectToDatasource(DatasourceLogin.java:162) at org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.loginAndDetectDatasource(DatabaseSessionImpl.java:685) at org.eclipse.persistence.internal.jpa.EntityManagerFactoryProvider.login(EntityManagerFactoryProvider.java:215) at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:542)Kindly help us to get this resolved.
Thanks,
Santhosh
WebFOCUS 8.0.03
Unix
HTML, Excel and PDF