Hi,
your server is not starting completly, the last line sould read something
like
[Default] JBoss 2.2.1 Started in 1m:32s
where Default is the name of your configuration.
you still don't seem to have the DB config for Oracle right.
Frist you don't need the line in jboss.properties, then try this in
jboss.jcml:

     <mbean code="org.jboss.jdbc.XADataSourceLoader"
            name="DefaultDomain:service=XADataSource,name=OracleLocalDB">
       <attribute name="PoolName">OracleLocalDB</attribute>
       <attribute
name="DataSourceClass">org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImp
l</attribute>
       <attribute
name="URL">jdbc:oracle:thin:@_YourServer_:1521:ORCL</attribute>
       <attribute name="JDBCUser">_YourUser_</attribute>
       <attribute name="Password">_YourPwd_</attribute>
       <attribute name="MinSize">0</attribute>
       <attribute name="MaxSize">50</attribute>
       <attribute name="Blocking">true</attribute>
       <attribute name="GCEnabled">false</attribute>
       <attribute name="GCMinIdleTime">1200000</attribute>
       <attribute name="GCInterval">120000</attribute>
       <attribute name="IdleTimeoutEnabled">false</attribute>
       <attribute name="MaxIdleTimeoutPercent">1.0</attribute>
       <attribute name="IdleTimeout">1800000</attribute>
       <attribute name="InvalidateOnError">false</attribute>
       <attribute name="TimestampUsed">false</attribute>
       <attribute name="LoggingEnabled">false</attribute>
     </mbean>
if you are using JBuilder use JDBC-Explorer to check whether you can use the
URL to connect to the DB with the given User/Pwd.
Burkhard.
Btw. your jar is not deployed at this stage, no wonder nothing works...
----- Original Message -----
From: "Paul McLachlan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 01, 2001 7:35 AM
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.XADataSourc
eImpl</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@21d1
f4
[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.



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

Reply via email to