[JBoss-user] Resource Reference Method Confusion

2001-04-11 Thread Faisal Ahmad

I have a session bean which needs to access the DataSource directly.
I have defined the datasource as OracleDB in the jboss.jcml and also
specified OracleDB as the datasource in jboss.xml .
When the jboss starts it binds this datasource to Java:/OracleDB.
In my session bean I do a jndi lookup for "java:/OracleDB" and get the
datasource.
So thats that, every thing works. 
I dont have to even specify any resource-ref elements in ejb-jar.xml

BUT

when I make a resource-ref entry in the ejb-jar.xml for the session bean
like this

session
resource-ref
res-ref-nameOracleDB/res-ref-name
res-typejavax.sql.DataSource/res-type
res-authContainer/res-auth
/resource-ref
:
:
/session

and try to a jndi lookup for the datasource in the bean with
"java:comp/env/OracleDB"
instead of getting the OracleDB datasource (or throwing an exception) it
gives me the DefaultDS.

Am I making a mistake or missing something ?

Thanks

___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] java.lang.SecurityException: sealing violation

2001-04-02 Thread Faisal Ahmad

Hello Everyone,

I am getting this exception when I try to start JBOss. Any clues.
I went through the mail archives and found this problem listed. It was
suggested that the java reference implementation should not be in the
CLASSPATH, which I dont have. So it must be some other problem. I also tried
removing the JAXP jars but it didnot work.

Any Clues. Thanks in advance.


CLASSPATH=.;D:\Program Files\JavaSoft\Jaxp1.0.1\jaxp.jar;D:\Program
Files\JavaSoft\Jaxp1.0.1\parser.jar;;run.jar;../lib/crimson.jar
jboss.home = D:\AppServer\jboss-2.1
Using configuration "default"
[Info] Java version: 1.3.0,Sun Microsystems Inc.
[Info] Java VM: Java HotSpot(TM) Client VM 1.3.0-C,Sun Microsystems Inc.
[Info] System: Windows NT 4.0,x86
[Shutdown] Shutdown hook added
[Service Control] Registered with server
[Default] java.lang.SecurityException: sealing violation
[Default]   at java.net.URLClassLoader.defineClass(Unknown Source)
[Default]   at java.net.URLClassLoader.access$100(Unknown Source)
[Default]   at java.net.URLClassLoader$1.run(Unknown Source)
[Default]   at java.security.AccessController.doPrivileged(Native
Method)
[Default]   at java.net.URLClassLoader.findClass(Unknown Source)
[Default]   at java.lang.ClassLoader.loadClass(Unknown Source)
[Default]   at sun.misc.Launcher$AppClassLoader.loadClass(Unknown
Source)
[Default]   at java.lang.ClassLoader.loadClass(Unknown Source)
[Default]   at java.lang.ClassLoader.loadClassInternal(Unknown Source)
[Default]   at java.lang.ClassLoader.defineClass0(Native Method)
[Default]   at java.lang.ClassLoader.defineClass(Unknown Source)
[Default]   at java.security.SecureClassLoader.defineClass(Unknown
Source)
[Default]   at java.net.URLClassLoader.defineClass(Unknown Source)
[Default]   at java.net.URLClassLoader.access$100(Unknown Source)
[Default]   at java.net.URLClassLoader$1.run(Unknown Source)
[Default]   at java.security.AccessController.doPrivileged(Native
Method)
[Default]   at java.net.URLClassLoader.findClass(Unknown Source)
[Default]   at java.lang.ClassLoader.loadClass(Unknown Source)
[Default]   at sun.misc.Launcher$AppClassLoader.loadClass(Unknown
Source)
[Default]   at java.lang.ClassLoader.loadClass(Unknown Source)
[Default]   at java.lang.ClassLoader.loadClassInternal(Unknown Source)
[Default]   at
org.apache.crimson.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(Docume
ntBuilderFactoryImpl.java:82)
[Default]   at
org.jboss.configuration.ConfigurationService.loadConfiguration(Configuration
Service.java:258)
[Default]   at java.lang.reflect.Method.invoke(Native Method)
[Default]   at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
[Default]   at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
[Default]   at org.jboss.Main.init(Main.java:195)
[Default]   at org.jboss.Main$1.run(Main.java:107)
[Default]   at java.security.AccessController.doPrivileged(Native
Method)
[Default]   at org.jboss.Main.main(Main.java:103)
[Default] JBoss 2.1-BETA-Mar-26-2001 Started in 0m:0s
[Default] Shutting down
[Service Control] Stopping 0 MBeans
[Service Control] Stopped 0 services
[Service Control] Destroying 0 MBeans
[Service Control] Destroyed 0 services
[Default] Shutdown complete
Press any key to continue . . .

___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user