After several days of jbossing, I got something from Oracle DB at last, but
there's still something I'd like to ask:
I'm using JBoss 2.2+Tomcat 3.2.1 (will try 2.2.1 today), Oracle 8i (8.1.7) on
Win2K Pro as a test platform, I tried the CMP example that comes with JBoss
(the CDBean example).
I've tried EVERY combination of the suggestions in the doc and the
mailling-list, change for Oracle in jboss.conf, jboss.jcml, deleting the
jboss-auto.jcml etc. etc., but I could only get the default datasource
(DefaultDS) to work with Oracle (I'm using minerva, the test works perfectly),
as soon as I tried to define a new datasource for Oracle, I got the following
error at jboss start:
D:\jboss\jboss-2.2\bin>run
run
CLASSPATH=D:\jdk1.3\lib;.;run.jar;../lib/crimson.jar
jboss.home = D:\jboss\jboss-2.2
Using configuration "tomcat"
[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 2000 5.0,x86
[Shutdown] Shutdown hook added
[Service Control] Registered with server
[Configuration] Could not create MBean
DefaultDomain:service=XADataSource,name=OracleDS()
[Configuration] java.lang.ClassNotFoundException:
[Configuration] at javax.management.loading.MLet.findClass(MLet.java:800)
[Configuration] at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
[Configuration] at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
[Configuration] at
com.sun.management.jmx.MBeanServerImpl.findClass(MBeanServerImpl.java:2466)
[Configuration] at
com.sun.management.jmx.MBeanServerImpl.createMBean(MBeanServerImpl.java:499)
[Configuration] at
org.jboss.configuration.ConfigurationService.create(ConfigurationService.java:340)
[Configuration] at
org.jboss.configuration.ConfigurationService.loadConfiguration(ConfigurationService.java:271)
[Configuration] at java.lang.reflect.Method.invoke(Native Method)
[Configuration] at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
[Configuration] at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
[Configuration] at org.jboss.Main.<init>(Main.java:195)
[Configuration] at org.jboss.Main$1.run(Main.java:107)
[Configuration] at java.security.AccessController.doPrivileged(Native Method)
[Configuration] at org.jboss.Main.main(Main.java:103)
[Service Control] Initializing 24 MBeans
[Webserver] Initializing
[Webserver] Initialized
[Naming] Initializing
[Naming] Initialized
[JNDIView] Initializing
[JNDIView] Initialized
[Transaction manager] Initializing
...
I don't think there's any syntax error in the conf files because I really
checked it dozens of times, can someone shed a light here?
Also, the test clients of the CDBean example only seem to work with the client
lib of JBoss 2.1, although I deployed the beans on JBoss 2.2?? Why the heck is
that? I tried the clients many times in the JBoss 2.2 dir, every time get the
same error message:
java -classpath .;..\..\lib\ext\ejb.jar;..\..\client\jboss-client.jar
com.web_tomorrow.cd.Upload CDs.txt
java.lang.NoClassDefFoundError: org/jboss/security/SecurityAssociation
at
org.jboss.ejb.plugins.jrmp.interfaces.GenericProxy.getPrincipal(GenericProxy.java:184)
at org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invoke(HomeProxy.java:231)
at $Proxy0.create(Unknown Source)
at com.web_tomorrow.cd.Upload.uploadFile(Upload.java:90)
at com.web_tomorrow.cd.Upload.main(Upload.java:57)
Then I just happened to put them into the JBoss 2.1 dir (only JBoss 2.2 is
running and only JBoss2.2 dir is set as JBOSS_HOME), it worked there? I almost
thought I should get my head examined! Anyone else is getting this?
OK, any hints and tips will be greatly appreciated, and many thanks in
advance!
regards
ZHU Jia
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user