Title: [JBoss-user] Running the Upload client in the cdBean example with Oracle
I beleive you modified the wrong configuration file. From the looks of things. For instance you will notice that hypersonic and instantdb still start up, which leads me to believe you changed the configuration in your installdirectory/jboss/conf directory. In the version that ships embedded you have to change the configuration in the directory where the configuration is. For instance with Jetty this is in installdirectory/Jetty/conf not the jboss/conf dir. Try that and see what happens.
 
Al
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Paul McLachlan
Sent: Sunday, June 03, 2001 8:07 PM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] Running the Upload client in the cdBean example with Oracle

Hi JBoss-user,

I am new to jBoss so I am struggling with my setup. I just downloaded jBoss2.2.2 for windows today and am using it.

I am trying to get the CMP-entityBean example working with Oracle8.1.5.

I created a Table CD by hand in Oracle.

SQL> desc cd;
 Name                                                  Null?    Type
 ----------------------------------------------------- -------- -------------
 NOTES                                                          VARCHAR2(256)
 TITLE                                                          VARCHAR2(256)
 ARTIST                                                         VARCHAR2(256)
 ID                                                             VARCHAR2(256)
 TYPE                                                           VARCHAR2(256)

I added the following to jboss.jmcl:

  <mbean code="org.jboss.jdbc.XADataSourceLoader" name="DefaultDomain:service=XADataSource,name=DefaultDS">
    <attribute name="PoolName">DefaultDS</attribute>
    <attribute name="DataSourceClass">org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImpl</attribute>
    <attribute name="URL">jdbc:oracle:thin:@testmac2.sydney.yambay:1521:ORCL</attribute>
    <attribute name="JDBCUser">scott</attribute>
    <attribute name="Password">tiger</attribute>
  </mbean>

I took out the references to HypersonicDB and InstantDB and named the mbean related to the XADataSourceLoader for Oracle to DefaultDS. I don't know if this was necessary or not?

I uncommented the following line in jboss.properties:

jboss.xa.xidclass=oracle.jdbc.xa.OracleXid

The server seemed to start up normally. This is the output:

C:\J2eeAppServers\jboss-2.2\bin>run.bat
CLASSPATH=;run.jar;../lib/crimson.jar
jboss.home = C:\J2eeAppServers\jboss-2.2
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 2000 5.0,x86
[Shutdown] Shutdown hook added
[Service Control] Registered with server
[Service Control] Initializing 26 MBeans
[Webserver] Initializing
[Webserver] Initialized
[Naming] Initializing
[Naming] Initialized
[JNDIView] Initializing
[JNDIView] Initialized
[Transaction manager] Initializing
[Transaction manager] Initialized
[JAAS Security Manager] Initializing
[JAAS Security Manager] Initialized
[JDBC provider] Initializing
[JDBC provider] Loaded JDBC-driver:oracle.jdbc.driver.OracleDriver
[JDBC provider] Initialized
[DefaultDS] Initializing
[DefaultDS] Initialized
[Container factory] Initializing
[Container factory] Initialized
[JBossMQ] Initializing
[JBossMQ] Initialized
[DefaultJMSProvider] Initializing
[DefaultJMSProvider] Initialized
[StdJMSPool] Initializing
[StdJMSPool] Initialized
[J2EE Deployer Default] Initializing
[J2EE Deployer Default] Initialized
[Auto deploy] Initializing
[Auto deploy] Initialized
[RARDeployer] Initializing
[RARDeployer] Initialized
[ConnectionManagerFactoryLoader] Initializing
[MinervaNoTransCMFactory] Initialized
[ConnectionManagerFactoryLoader] Initializing
[MinervaSharedLocalCMFactory] Initialized
[ConnectionManagerFactoryLoader] Initializing
[MinervaXACMFactory] Initialized
[ConnectionFactoryLoader] Initializing
[BlackBoxDS] Initialized
[JMX RMI Adaptor] Initializing
[JMX RMI Adaptor] Initialized
[JMX RMI Connector] Initializing
[JMX RMI Connector] Initialized
[Mail Service] Initializing
[Mail Service] Initialized
[InstantDB] Initializing
[InstantDB] Initialized
[DefaultDS] Initializing
[DefaultDS] Initialized
[HypersonicDS] Initializing
[HypersonicDS] Initialized
[Hypersonic] Initializing
[Hypersonic] Initialized
[Service Control] Initialized 26 services
[Service Control] Starting 26 MBeans
[Webserver] Starting
[Webserver] Codebase set to http://testmac2:8083/
[Webserver] Started webserver on port 8083
[Webserver] Started
[Naming] Starting
[Naming] Naming started on port 1099
[Naming] Started
[JNDIView] Starting
[JNDIView] Started
[Transaction manager] Starting
[Transaction manager] Started
[JAAS Security Manager] Starting
[JAAS Security Manager] JAAS.startService, cachePolicy=null
[JAAS Security Manager] JAAS.startService, SecurityProxyFactory=org.jboss.security.SubjectSecurityProxyFactory@21d1f4
[JAAS Security Manager] Started
[JDBC provider] Starting
[JDBC provider] Started
[DefaultDS] Starting
[DefaultDS] XA Connection pool DefaultDS bound to java:/DefaultDS

Previously I got it to work with HypersonicDB but for Oracle I get the following exception from my upload client.

C:\J2eeAppServers\jboss-2.2\cdejb>java -classpath .;C:\JBuilder4\jdk1.3\src.jar;..\lib\jboss-jaas.jar;..\lib\ext\ejb.jar;

..\client\jboss-client.jar com.web_tomorrow.cd.Upload CDs.txt
Upload: javax.naming.NameNotFoundException: cd not bound <------- ERROR
OK

I am at a loss as to what to look at now.

Paul.

Reply via email to