Hola amigos. Tengo un applet que se conecta a Oracle.
Desde appletviewr con netbeans funciona ok.
Sin embargo he creado un directorio donde he puesto el fichero html que lo pueda llamar y le he colocado la etiqueta applet con el archive="clase.jar,ojdbc6.jar" para que encuentre el applet y la librería de oracle.
En principio al ejecutar el html carga el applet perfecto, es decir que si encuentra el clase.jar ok.
El ojdbc6.jar también lo reconoce como tal. Sin embargo no puedo conectarme a la base de datos.
He realizado todas las pruebas que he encontrado en internet pero no lo consigo.
A continuación os detallo algo mas el asunto.
La línea en la que falla es :
class.forName(oracle.jdbc.OracleDriver());
o cualquier otra línea que se refiera al paquete ojdbc6.jar. Pero siempre falla en la primera que se encuentra.
el error que me muestra está relacionado con registerMBeans que no se lo que es.
Perdonar por el rollo pero ya estoy desesperado porque no se por donde tirar.
Muchísimas gracias.
05-ago-2008 23:51:46 oracle.jdbc.driver.OracleDriver registerMBeans
SEVERE: Error while registering Oracle JDBC Diagnosability MBean.
java.security.AccessControlException: access denied (javax.management.MBeanServerPermission createMBeanServer)
at java.security.AccessControlContext.checkPermission (Unknown Source)
at java.security.AccessController.checkPermission(Unk nown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.management.ManagementFactory.getPlatform MBeanServer(Unknown Source)
at oracle.jdbc.driver.OracleDriver.registerMBeans(Ora cleDriver.java:270)
at oracle.jdbc.driver.OracleDriver$1.run(OracleDriver .java:213)
at java.security.AccessController.doPrivileged(Native Method)
at oracle.jdbc.driver.OracleDriver.<clinit>(OracleDri ver.java:209)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at SimSqlApplet.conectarPool(SimSqlApplet.java:2166)
at SimSqlApplet.access$800(SimSqlApplet.java:33)
at SimSqlApplet$6.actionPerformed(SimSqlApplet.java:2 937)
at javax.swing.AbstractButton.fireActionPerformed(Unk nown Source)
at javax.swing.AbstractButton$Handler.actionPerformed (Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed (Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseRe leased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent( Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(U nknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unkno wn Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilter s(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(U nknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarch y(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Exception in thread "AWT-EventQueue-2" java.lang.ExceptionInInitializerError
at SimSqlApplet.conectarPool(SimSqlApplet.java:2173)
at SimSqlApplet.access$800(SimSqlApplet.java:33)
at SimSqlApplet$6.actionPerformed(SimSqlApplet.java:2 937)
at javax.swing.AbstractButton.fireActionPerformed(Unk nown Source)
at javax.swing.AbstractButton$Handler.actionPerformed (Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed (Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseRe leased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent( Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(U nknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unkno wn Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilter s(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(U nknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarch y(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.security.AccessControlException: access denied (java.util.PropertyPermission oracle.jdbc.FastConnectionFailover read)
at java.security.AccessControlContext.checkPermission (Unknown Source)
at java.security.AccessController.checkPermission(Unk nown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPropertyAccess(Unkn own Source)
at java.lang.System.getProperty(Unknown Source)
at oracle.jdbc.driver.PhysicalConnection$1.run(Physic alConnection.java:2669)
at java.security.AccessController.doPrivileged(Native Method)
at oracle.jdbc.driver.PhysicalConnection.getSystemPro perty(PhysicalConnection.java:2665)
at oracle.jdbc.driver.PhysicalConnection.getSystemPro pertyFastConnectionFailover(PhysicalConnection.jav a:2645)
at oracle.jdbc.driver.OracleDriver.getSystemPropertyF astConnectionFailover(OracleDriver.java:708)
at oracle.jdbc.pool.OracleDataSource.<clinit>(OracleD ataSource.java:94)
... 28 more