db-ojb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oscar Herrera S" <oherr...@studiocom.com>
Subject Problem borrowing a connection from pool
Date Mon, 06 Jun 2005 22:24:50 GMT
Hello, actually I decided to write after having spent some time looking on
the archives and not having found any problem like mine, or perhaps I just
looked wrong.

 

Actually I'm using OJB 1.0.1 in a project, and I'm having some trouble on it
when deploying on a Solaris server, it works fine on a Windows machine, but
is a requirement from the client it must run on a Solaris machine. So
basically the error I'm getting is 

 

[03/Jun/2005:11:31:53] INFO (11047): CORE3282: stdout:
[org.apache.ojb.broker.accesslayer.ConnectionManagerFactory] ERROR:
ConfigurableFactory instantiation failed for class class
org.apache.ojb.broker.accesslayer.ConnectionManagerImpl

[03/Jun/2005:11:31:53] INFO (11047): CORE3282: stdout: * Factory types: 

[03/Jun/2005:11:31:53] INFO (11047): CORE3282: stdout: 1 - Type:
org.apache.ojb.broker.PersistenceBroker

[03/Jun/2005:11:31:53] INFO (11047): CORE3282: stdout: * Factory arguments: 

[03/Jun/2005:11:31:53] INFO (11047): CORE3282: stdout: 1 - Argument:
org.apache.ojb.broker.core.PersistenceBrokerImpl@208506

[03/Jun/2005:11:31:53] INFO (11047): CORE3282: stdout: access denied
(java.lang.reflect.ReflectPermission suppressAccessChecks)

[03/Jun/2005:11:31:53] WARNING (11047): CORE3283: stderr:
java.security.AccessControlException: access denied
(java.lang.reflect.ReflectPermission suppressAccessChecks)

[03/Jun/2005:11:31:53] WARNING (11047): CORE3283: stderr:   at
java.security.AccessControlContext.checkPermission(AccessControlContext.java
:269)

[03/Jun/2005:11:31:53] WARNING (11047): CORE3283: stderr:   at
java.security.AccessController.checkPermission(AccessController.java:401)

[03/Jun/2005:11:31:53] WARNING (11047): CORE3283: stderr:   at
java.lang.SecurityManager.checkPermission(SecurityManager.java:524)

[03/Jun/2005:11:31:53] WARNING (11047): CORE3283: stderr:   at
java.lang.reflect.AccessibleObject.setAccessible(AccessibleObject.java:107)

[03/Jun/2005:11:31:53] WARNING (11047): CORE3283: stderr:   at
org.apache.ojb.broker.util.ClassHelper.newInstance(ClassHelper.java:194)

[03/Jun/2005:11:31:53] WARNING (11047): CORE3283: stderr:   at
org.apache.ojb.broker.util.factory.ConfigurableFactory.createNewInstance(Con
figurableFactory.java:101)

[03/Jun/2005:11:31:53] WARNING (11047): CORE3283: stderr:   at
org.apache.ojb.broker.util.factory.ConfigurableFactory.createNewInstance(Con
figurableFactory.java:181)

[03/Jun/2005:11:31:53] WARNING (11047): CORE3283: stderr:   at
org.apache.ojb.broker.accesslayer.ConnectionManagerFactory.createConnectionM
anager(ConnectionManagerFactory.java:50)

[03/Jun/2005:11:31:53] WARNING (11047): CORE3283: stderr:   at
org.apache.ojb.broker.core.PersistenceBrokerImpl.<init>(PersistenceBrokerImp
l.java:180)

[03/Jun/2005:11:31:53] WARNING (11047): CORE3283: stderr:   at
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

[03/Jun/2005:11:31:53] WARNING (11047): CORE3283: stderr:   at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAcces
sorImpl.java:39)

[03/Jun/2005:11:31:53] WARNING (11047): CORE3283: stderr:   at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstruc
torAccessorImpl.java:27)

[03/Jun/2005:11:31:53] WARNING (11047): CORE3283: stderr:   at
java.lang.reflect.Constructor.newInstance(Constructor.java:274)

[03/Jun/2005:11:31:53] WARNING (11047): CORE3283: stderr:   at
org.apache.ojb.broker.util.ClassHelper.newInstance(ClassHelper.java:201)

[03/Jun/2005:11:31:53] WARNING (11047): CORE3283: stderr:   at
org.apache.ojb.broker.util.ClassHelper.newInstance(ClassHelper.java:166)

[03/Jun/2005:11:31:53] WARNING (11047): CORE3283: stderr:   at
org.apache.ojb.broker.core.PersistenceBrokerFactoryBaseImpl.createNewBrokerI
nstance(PersistenceBrokerFactoryBaseImpl.java:103)

[03/Jun/2005:11:31:53] WARNING (11047): CORE3283: stderr:   at
org.apache.ojb.broker.core.PersistenceBrokerFactoryDefaultImpl$PBKeyedPoolab
leObjectFactory.makeObject(PersistenceBrokerFactoryDefaultImpl.java:238)

[03/Jun/2005:11:31:53] WARNING (11047): CORE3283: stderr:   at
org.apache.commons.pool.impl.GenericKeyedObjectPool.borrowObject(GenericKeye
dObjectPool.java:792)

[03/Jun/2005:11:31:53] WARNING (11047): CORE3283: stderr:   at
org.apache.ojb.broker.core.PersistenceBrokerFactoryDefaultImpl.createPersist
enceBroker(PersistenceBrokerFactoryDefaultImpl.java:100)

[03/Jun/2005:11:31:53] WARNING (11047): CORE3283: stderr:   at
org.apache.ojb.broker.core.PersistenceBrokerFactoryBaseImpl.defaultPersisten
ceBroker(PersistenceBrokerFactoryBaseImpl.java:158)

[03/Jun/2005:11:31:53] WARNING (11047): CORE3283: stderr:   at
org.apache.ojb.broker.PersistenceBrokerFactory.defaultPersistenceBroker(Pers
istenceBrokerFactory.java:65)

[03/Jun/2005:11:31:53] WARNING (11047): CORE3283: stderr:   at
com.studiocom.model.DAOs.ojb.PaisDAO.getAllRecords(PaisDAO.java:43)

[03/Jun/2005:11:31:53] WARNING (11047): CORE3283: stderr:   at
com.studiocom.model.bussines.FormsLogic.listarPaises(FormsLogic.java:108)

[03/Jun/2005:11:31:53] WARNING (11047): CORE3283: stderr:   at
com.studiocom.controller.CargarComoMarcarAAction.execute(CargarComoMarcarAAc
tion.java:47)

[03/Jun/2005:11:31:53] WARNING (11047): CORE3283: stderr:   at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProces
sor.java:421)

[03/Jun/2005:11:31:53] WARNING (11047): CORE3283: stderr:   at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)

[03/Jun/2005:11:31:53] WARNING (11047): CORE3283: stderr:   at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)

[03/Jun/2005:11:31:53] WARNING (11047): CORE3283: stderr:   at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)

[03/Jun/2005:11:31:53] WARNING (11047): CORE3283: stderr:   at
javax.servlet.http.HttpServlet.service(HttpServlet.java:740)

[03/Jun/2005:11:31:53] WARNING (11047): CORE3283: stderr:   at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

[03/Jun/2005:11:31:53] WARNING (11047): CORE3283: stderr:   at
org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardW
rapperValve.java:720)

[03/Jun/2005:11:31:53] WARNING (11047): CORE3283: stderr:   at
org.apache.catalina.core.StandardWrapperValve.access$000(StandardWrapperValv
e.java:118)

[03/Jun/2005:11:31:53] WARNING (11047): CORE3283: stderr:   at
org.apache.catalina.core.StandardWrapperValve$1.run(StandardWrapperValve.jav
a:278)

[03/Jun/2005:11:31:53] WARNING (11047): CORE3283: stderr:   at
java.security.AccessController.doPrivileged(Native Method)

[03/Jun/2005:11:31:53] WARNING (11047): CORE3283: stderr:   at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:274)

[03/Jun/2005:11:31:53] WARNING (11047): CORE3283: stderr:   at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)

[03/Jun/2005:11:31:53] WARNING (11047): CORE3283: stderr:   at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:212)

[03/Jun/2005:11:31:53] WARNING (11047): CORE3283: stderr:   at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)

[03/Jun/2005:11:31:53] WARNING (11047): CORE3283: stderr:   at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:203
)

[03/Jun/2005:11:31:53] WARNING (11047): CORE3283: stderr:   at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)

[03/Jun/2005:11:31:53] WARNING (11047): CORE3283: stderr:   at
com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.ja
va:158)

[03/Jun/2005:11:31:53] WARNING (11047): CORE3283: stderr:   at
com.iplanet.ias.web.WebContainer.service(WebContainer.java:598)

[03/Jun/2005:11:31:53] INFO (11047): CORE3282: stdout:
[org.apache.ojb.broker.core.PersistenceBrokerFactoryBaseImpl] ERROR:
Creation of a new PB instance failed

[03/Jun/2005:11:31:53] INFO (11047): CORE3282: stdout: null

[03/Jun/2005:11:31:53] WARNING (11047): CORE3283: stderr:
java.lang.reflect.InvocationTargetException

[03/Jun/2005:11:31:53] WARNING (11047): CORE3283: stderr:   at
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

[03/Jun/2005:11:31:53] WARNING (11047): CORE3283: stderr:   at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAcces
sorImpl.java:39)

[03/Jun/2005:11:31:53] WARNING (11047): CORE3283: stderr:   at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstruc
torAccessorImpl.java:27)

[03/Jun/2005:11:31:53] WARNING (11047): CORE3283: stderr:   at
java.lang.reflect.Constructor.newInstance(Constructor.java:274)

[03/Jun/2005:11:31:53] WARNING (11047): CORE3283: stderr:   at
org.apache.ojb.broker.util.ClassHelper.newInstance(ClassHelper.java:201)

[03/Jun/2005:11:31:53] WARNING (11047): CORE3283: stderr:   at
org.apache.ojb.broker.util.ClassHelper.newInstance(ClassHelper.java:166)

[03/Jun/2005:11:31:53] WARNING (11047): CORE3283: stderr:   at
org.apache.ojb.broker.core.PersistenceBrokerFactoryBaseImpl.createNewBrokerI
nstance(PersistenceBrokerFactoryBaseImpl.java:103)

[03/Jun/2005:11:31:53] WARNING (11047): CORE3283: stderr:   at
org.apache.ojb.broker.core.PersistenceBrokerFactoryDefaultImpl$PBKeyedPoolab
leObjectFactory.makeObject(PersistenceBrokerFactoryDefaultImpl.java:238)

[03/Jun/2005:11:31:53] WARNING (11047): CORE3283: stderr:   at
org.apache.commons.pool.impl.GenericKeyedObjectPool.borrowObject(GenericKeye
dObjectPool.java:792)

[03/Jun/2005:11:31:53] WARNING (11047): CORE3283: stderr:   at
org.apache.ojb.broker.core.PersistenceBrokerFactoryDefaultImpl.createPersist
enceBroker(PersistenceBrokerFactoryDefaultImpl.java:100)

[03/Jun/2005:11:31:53] WARNING (11047): CORE3283: stderr:   at
org.apache.ojb.broker.core.PersistenceBrokerFactoryBaseImpl.defaultPersisten
ceBroker(PersistenceBrokerFactoryBaseImpl.java:158)

[03/Jun/2005:11:31:53] WARNING (11047): CORE3283: stderr:   at
org.apache.ojb.broker.PersistenceBrokerFactory.defaultPersistenceBroker(Pers
istenceBrokerFactory.java:65)

[03/Jun/2005:11:31:53] WARNING (11047): CORE3283: stderr:   at
com.studiocom.model.DAOs.ojb.PaisDAO.getAllRecords(PaisDAO.java:43)

[03/Jun/2005:11:31:53] WARNING (11047): CORE3283: stderr:   at
com.studiocom.model.bussines.FormsLogic.listarPaises(FormsLogic.java:108)

[03/Jun/2005:11:31:53] WARNING (11047): CORE3283: stderr:   at
com.studiocom.controller.CargarComoMarcarAAction.execute(CargarComoMarcarAAc
tion.java:47)

[03/Jun/2005:11:31:53] WARNING (11047): CORE3283: stderr:   at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProces
sor.java:421)

[03/Jun/2005:11:31:53] WARNING (11047): CORE3283: stderr:   at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)

[03/Jun/2005:11:31:53] WARNING (11047): CORE3283: stderr:   at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)

[03/Jun/2005:11:31:53] WARNING (11047): CORE3283: stderr:   at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)

[03/Jun/2005:11:31:53] WARNING (11047): CORE3283: stderr:   at
javax.servlet.http.HttpServlet.service(HttpServlet.java:740)

[03/Jun/2005:11:31:53] WARNING (11047): CORE3283: stderr:   at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

[03/Jun/2005:11:31:53] WARNING (11047): CORE3283: stderr:   at
org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardW
rapperValve.java:720)

[03/Jun/2005:11:31:53] WARNING (11047): CORE3283: stderr:   at
org.apache.catalina.core.StandardWrapperValve.access$000(StandardWrapperValv
e.java:118)

[03/Jun/2005:11:31:53] WARNING (11047): CORE3283: stderr:   at
org.apache.catalina.core.StandardWrapperValve$1.run(StandardWrapperValve.jav
a:278)

[03/Jun/2005:11:31:53] WARNING (11047): CORE3283: stderr:   at
java.security.AccessController.doPrivileged(Native Method)

[03/Jun/2005:11:31:53] WARNING (11047): CORE3283: stderr:   at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:274)

[03/Jun/2005:11:31:53] WARNING (11047): CORE3283: stderr:   at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)

[03/Jun/2005:11:31:53] WARNING (11047): CORE3283: stderr:   at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:212)

[03/Jun/2005:11:31:53] WARNING (11047): CORE3283: stderr:   at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)

[03/Jun/2005:11:31:53] WARNING (11047): CORE3283: stderr:   at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:203
)

[03/Jun/2005:11:31:53] WARNING (11047): CORE3283: stderr:   at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)

[03/Jun/2005:11:31:53] WARNING (11047): CORE3283: stderr:   at
com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.ja
va:158)

[03/Jun/2005:11:31:53] WARNING (11047): CORE3283: stderr:   at
com.iplanet.ias.web.WebContainer.service(WebContainer.java:598)

[03/Jun/2005:11:31:53] WARNING (11047): CORE3283: stderr: Caused by:
org.apache.ojb.broker.PersistenceBrokerException:
java.security.AccessControlException: access denied
(java.lang.reflect.ReflectPermission suppressAccessChecks)

[03/Jun/2005:11:31:53] WARNING (11047): CORE3283: stderr:   at
org.apache.ojb.broker.util.factory.ConfigurableFactory.createNewInstance(Con
figurableFactory.java:128)

[03/Jun/2005:11:31:53] WARNING (11047): CORE3283: stderr:   at
org.apache.ojb.broker.util.factory.ConfigurableFactory.createNewInstance(Con
figurableFactory.java:181)

[03/Jun/2005:11:31:53] WARNING (11047): CORE3283: stderr:   at
org.apache.ojb.broker.accesslayer.ConnectionManagerFactory.createConnectionM
anager(ConnectionManagerFactory.java:50)

[03/Jun/2005:11:31:53] WARNING (11047): CORE3283: stderr:   at
org.apache.ojb.broker.core.PersistenceBrokerImpl.<init>(PersistenceBrokerImp
l.java:180)

[03/Jun/2005:11:31:53] WARNING (11047): CORE3283: stderr:   ... 33 more

[03/Jun/2005:11:31:53] WARNING (11047): CORE3283: stderr: Caused by:
java.security.AccessControlException: access denied
(java.lang.reflect.ReflectPermission suppressAccessChecks)

[03/Jun/2005:11:31:53] WARNING (11047): CORE3283: stderr:   at
java.security.AccessControlContext.checkPermission(AccessControlContext.java
:269)

[03/Jun/2005:11:31:53] WARNING (11047): CORE3283: stderr:   at
java.security.AccessController.checkPermission(AccessController.java:401)

[03/Jun/2005:11:31:53] WARNING (11047): CORE3283: stderr:   at
java.lang.SecurityManager.checkPermission(SecurityManager.java:524)

[03/Jun/2005:11:31:53] WARNING (11047): CORE3283: stderr:   at
java.lang.reflect.AccessibleObject.setAccessible(AccessibleObject.java:107)

[03/Jun/2005:11:31:53] WARNING (11047): CORE3283: stderr:   at
org.apache.ojb.broker.util.ClassHelper.newInstance(ClassHelper.java:194)

[03/Jun/2005:11:31:53] WARNING (11047): CORE3283: stderr:   at
org.apache.ojb.broker.util.factory.ConfigurableFactory.createNewInstance(Con
figurableFactory.java:101)

[03/Jun/2005:11:31:53] WARNING (11047): CORE3283: stderr:   ... 36 more

 

[03/Jun/2005:11:32:00] INFO (11047): CORE3282: stdout: 92738 WARN
[service-j2ee-2] action.RequestProcessor - Unhandled Exception thrown: class
org.apache.ojb.broker.PBFactoryException

[03/Jun/2005:11:32:00] SEVERE (11047): StandardWrapperValve[action]:
Servlet.service() for servlet action threw exception

javax.servlet.ServletException: Borrow broker from pool failed, using PBKey
org.apache.ojb.broker.PBKey: jcdAlias=default, user=telecom, password=*****

      at
org.apache.struts.action.RequestProcessor.processException(RequestProcessor.
java:516)

      at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProces
sor.java:423)

      at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)

      at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)

      at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)

      at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)

      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

      at
org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardW
rapperValve.java:720)

      at
org.apache.catalina.core.StandardWrapperValve.access$000(StandardWrapperValv
e.java:118)

      at
org.apache.catalina.core.StandardWrapperValve$1.run(StandardWrapperValve.jav
a:278)

      at java.security.AccessController.doPrivileged(Native Method)

      at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:274)

      at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)

      at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:212)

      at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)

      at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:203
)

      at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)

      at
com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.ja
va:158)

      at com.iplanet.ias.web.WebContainer.service(WebContainer.java:598)

----- Root Cause -----

org.apache.ojb.broker.PBFactoryException: Borrow broker from pool failed,
using PBKey org.apache.ojb.broker.PBKey: jcdAlias=default, user=telecom,
password=*****

      at
org.apache.ojb.broker.core.PersistenceBrokerFactoryDefaultImpl.createPersist
enceBroker(PersistenceBrokerFactoryDefaultImpl.java:119)

      at
org.apache.ojb.broker.core.PersistenceBrokerFactoryBaseImpl.defaultPersisten
ceBroker(PersistenceBrokerFactoryBaseImpl.java:158)

      at
org.apache.ojb.broker.PersistenceBrokerFactory.defaultPersistenceBroker(Pers
istenceBrokerFactory.java:65)

      at
com.studiocom.model.DAOs.ojb.DepartamentoDAO.getAllStatesInColombia(Departam
entoDAO.java:101)

      at
com.studiocom.model.bussines.FormsLogic.listarDepartamentos(FormsLogic.java:
96)

      at
com.studiocom.controller.ComoMarcarAAction.execute(ComoMarcarAAction.java:70
)

      at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProces
sor.java:421)

      at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)

      at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)

      at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)

      at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)

      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

      at
org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardW
rapperValve.java:720)

      at
org.apache.catalina.core.StandardWrapperValve.access$000(StandardWrapperValv
e.java:118)

      at
org.apache.catalina.core.StandardWrapperValve$1.run(StandardWrapperValve.jav
a:278)

      at java.security.AccessController.doPrivileged(Native Method)

      at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:274)

      at org

[03/Jun/2005:11:32:00] SEVERE (11047):
.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)

      at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:212)

      at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)

      at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:203
)

      at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)

      at
com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.ja
va:158)

      at com.iplanet.ias.web.WebContainer.service(WebContainer.java:598)

Caused by: org.apache.ojb.broker.PBFactoryException: Creation of a new PB
instance failed

      at
org.apache.ojb.broker.core.PersistenceBrokerFactoryBaseImpl.createNewBrokerI
nstance(PersistenceBrokerFactoryBaseImpl.java:110)

      at
org.apache.ojb.broker.core.PersistenceBrokerFactoryDefaultImpl$PBKeyedPoolab
leObjectFactory.makeObject(PersistenceBrokerFactoryDefaultImpl.java:238)

      at
org.apache.commons.pool.impl.GenericKeyedObjectPool.borrowObject(GenericKeye
dObjectPool.java:792)

      at
org.apache.ojb.broker.core.PersistenceBrokerFactoryDefaultImpl.createPersist
enceBroker(PersistenceBrokerFactoryDefaultImpl.java:100)

      ... 23 more

Caused by: java.lang.reflect.InvocationTargetException

      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)

      at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAcces
sorImpl.java:39)

      at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstruc
torAccessorImpl.java:27)

      at java.lang.reflect.Constructor.newInstance(Constructor.java:274)

      at
org.apache.ojb.broker.util.ClassHelper.newInstance(ClassHelper.java:201)

      at
org.apache.ojb.broker.util.ClassHelper.newInstance(ClassHelper.java:166)

      at
org.apache.ojb.broker.core.PersistenceBrokerFactoryBaseImpl.createNewBrokerI
nstance(PersistenceBrokerFactoryBaseImpl.java:103)

      ... 26 more

Caused by: org.apache.ojb.broker.PersistenceBrokerException:
java.security.AccessControlException: access denied
(java.lang.reflect.ReflectPermission suppressAccessChecks)

      at
org.apache.ojb.broker.util.factory.ConfigurableFactory.createNewInstance(Con
figurableFactory.java:128)

      at
org.apache.ojb.broker.util.factory.ConfigurableFactory.createNewInstance(Con
figurableFactory.java:181)

      at
org.apache.ojb.broker.accesslayer.ConnectionManagerFactory.createConnectionM
anager(ConnectionManagerFactory.java:50)

      at
org.apache.ojb.broker.core.PersistenceBrokerImpl.<init>(PersistenceBrokerImp
l.java:180)

      ... 33 more

Caused by: java.security.AccessControlException: access denied
(java.lang.reflect.ReflectPermission suppressAccessChecks)

      at
java.security.AccessControlContext.checkPermission(AccessControlContext.java
:269)

      at
java.security.AccessController.checkPermission(AccessController.java:401)

      at java.lang.SecurityManager.checkPermission(SecurityManager.java:524)

      at
java.lang.reflect.AccessibleObject.setAccessible(AccessibleObject.java:107)

      at
org.apache.ojb.broker.util.ClassHelper.newInstance(ClassHelper.java:194)

      at
org.apache.ojb.broker.util.factory.ConfigurableFactory.createNewInstance(Con
figurableFactory.java:101)

      ... 36 more

 

 

This is the repository.xml file:

 

<jdbc-connection-descriptor

                        jcd-alias="default"

                        default-connection="true"

                        platform="Oracle"

                        jdbc-level="3.0"

                        jndi-datasource-name="java:comp/env/jdbc/telecombos"

                        username="telecom"

                        password="password"

                        batch-mode="false"

                useAutoCommit="1"

                ignoreAutoCommitExceptions="false">

   

        <object-cache
class="org.apache.ojb.broker.cache.ObjectCacheDefaultImpl">

            <attribute attribute-name="timeout" attribute-value="900"/>

            <attribute attribute-name="autoSync" attribute-value="true"/>

            <attribute attribute-name="cachingKeyType" attribute-value="0"/>

        </object-cache>

 

        <connection-pool

            maxActive="21"/>

            

        <sequence-manager
className="org.apache.ojb.broker.util.sequence.SequenceManagerHighLowImpl">

            <attribute attribute-name="grabSize" attribute-value="20"/>

            <attribute attribute-name="autoNaming" attribute-value="true"/>

            <attribute attribute-name="globalSequenceId"
attribute-value="false"/>

            <attribute attribute-name="globalSequenceStart"
attribute-value="10000"/>

        </sequence-manager>

   </jdbc-connection-descriptor>

 

 

I've already been 2 days trying to figure out what am I doing wrong, but
still cannot find what it is. I'm using Sun Enterprise Server 2004Q2, with
Oracle 9i. I've already tried looking on the version of the libraries, but
they seemed to be all ok, anyway I tried deploying with different
combinations of them, and every time I got the same error. 

 

I really appreciate any help you can give me on this issue,

 

Thank you so much,

 

Oscar Herrera S.
Developer
studiocom 

_________
Disclaimer: This e-mail message is intended only to its recipient(s). If by
mistake you receive this e-mail please delete it and let me know. You are
not allowed to use any information contained here for yours or others
purposes, neither to reproduce the whole message or any part of it or its
attachments without my written authorization. Information contained in this
message cannot be taken as an official position from any organization the
author belongs to. All rights reserved, Oscar Herrera S. 2004. Any violation
to this disclaimer will be prosecuted to the last extent of the law.

 


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message