Hi all I seem to be having a problem with some of the JDBC stuff in my test bean. I am using jBoss 2 (binary downloaded from the web site) accessing an Oracle database with jBoss running on NT. What my test bean does is obtain a connection from the container, select some CLOB data and output it to the console. When I run the bean for the first time (ie. I start jBoss from scratch) everything works fine and it outputs the info from the database with no unexpected errors. However, when I run the bean again I get an access denied error when I try to get the connection (getting the context is OK). Here is the error: [Default] java.security.AccessControlException: access denied (java.lang.Runtime Permission createClassLoader) [Default] at java.security.AccessControlContext.checkPermission(AccessCont rolContext.java:272) [Default] at java.security.AccessController.checkPermission(AccessControll er.java:399) [Default] at java.lang.SecurityManager.checkPermission(SecurityManager.jav a:545) [Default] at java.lang.SecurityManager.checkCreateClassLoader(SecurityMana ger.java:610) [Default] at java.lang.ClassLoader.<init>(ClassLoader.java:203) [Default] at org.jboss.proxy.ProxyCompiler$Runtime.<init>(ProxyCompiler.ja va:42) [Default] at org.jboss.proxy.ProxyCompiler.<init>(ProxyCompiler.java:21) [Default] at org.jboss.proxy.Proxies$Impl.makeProxyConstructor(Proxies.jav a:564) [Default] at org.jboss.proxy.Proxies$Impl.newTarget(Proxies.java:466) [Default] at org.jboss.proxy.Proxies.newTarget(Proxies.java:46) [Default] at org.jboss.proxy.Proxy.newProxyInstance(Proxy.java:33) [Default] at org.jboss.jdbc.DataSourceImpl.getConnection(DataSourceImpl.ja va:135) [Default] at org.jboss.jdbc.DataSourceImpl.getConnection(DataSourceImpl.ja va:124) [Default] at com.gilchrist.css.application.bo.helper.AppHelper.getConnecti on(AppHelper.java:105) [Default] at com.gilchrist.css.security.bo.test.TestJDBCBean.getDataSource (TestJDBCBean.java:99) [Default] at java.lang.reflect.Method.invoke(Native Method) [Default] at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor. invoke(StatelessSessionContainer.java:213) [Default] at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInte rceptor.java:82) [Default] at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.inv oke(StatelessSessionInstanceInterceptor.java:73) [Default] at org.jboss.ejb.StatelessSessionContainer.invoke(StatelessSessi onContainer.java:79) [Default] at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke (JRMPContainerInvoker.java:132) [Default] at java.lang.reflect.Method.invoke(Native Method) [Default] at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.jav a:241) [Default] at sun.rmi.transport.Transport$1.run(Transport.java:142) [Default] at java.security.AccessController.doPrivileged(Native Method) [Default] at sun.rmi.transport.Transport.serviceCall(Transport.java:139) [Default] at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTranspor t.java:443) [Default] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPT ransport.java:643) [Default] at java.lang.Thread.run(Thread.java:484) If I redeploy the bean (without shutting the server down) it seems to work fine. I am also still getting an access denied error when I try to close the connection. Are there any implications of not closing it ??? Will the container handle the connection if I just leave it dangling ??? TIA Lee -- -------------------------------------------------------------- To subscribe: [EMAIL PROTECTED] To unsubscribe: [EMAIL PROTECTED] Problems?: [EMAIL PROTECTED]
