Hello

I'm new user of JBoss, here is my problem, can anyone help me out? thanks.

Before I modify the $JBOSS_HOME/etc/default/jboss.jcml, I can pass the whole
test for the sample  bean - InterestBean, which is in the JBoss
documentation.

the system output is like the following:

----------------------------------------------------------------------------
-------------------------------------------------------------------
[InstantDB] The Initial Developer of the Original Code is Lutris
Technologies Inc.
Portions created by Lutris are Copyright (C) 1997-2001 Lutris Technologies,
Inc.
All Rights Reserved.
[Hypersonic] Server 1.4 is running
[Hypersonic] Press [Ctrl]+[C] to abort
[InstantDB] Started
[DefaultDS] Starting
...
[Auto deploy] Auto deploy of
file:/usr/home/sinaop/JBoss-2.2.2/deploy/interest.jar
[J2EE Deployer Default] Deploy J2EE application:
file:/usr/home/sinaop/JBoss-2.2.2/deploy/interest.jar
[J2EE Deployer Default] Create application interest.jar
[J2EE Deployer Default] install module interest.jar
[Container factory]
Deploying:file:/usr/home/sinaop/JBoss-2.2.2/tmp/deploy/Default/interest.jar
[Verifier] Verifying
file:/usr/home/sinaop/JBoss-2.2.2/tmp/deploy/Default/interest.jar/ejb1001.ja
r
[Container factory] Deploying Interest
[Container factory] Deployed application:
file:/usr/home/sinaop/JBoss-2.2.2/tmp/deploy/Default/interest.jar
[J2EE Deployer Default] J2EE application:
file:/usr/home/sinaop/JBoss-2.2.2/deploy/interest.jar is deployed.
[Auto deploy] Auto deploy of
file:/usr/home/sinaop/JBoss-2.2.2/deploy/InterestBean.jar
[J2EE Deployer Default] Deploy J2EE application:
file:/usr/home/sinaop/JBoss-2.2.2/deploy/InterestBean.jar
[J2EE Deployer Default] Create application InterestBean.jar
[J2EE Deployer Default] install module InterestBean.jar
[Container factory]
Deploying:file:/usr/home/sinaop/JBoss-2.2.2/tmp/deploy/Default/InterestBean.
jar
[Verifier] Verifying
file:/usr/home/sinaop/JBoss-2.2.2/tmp/deploy/Default/InterestBean.jar/ejb100
2.jar
[Container factory] Deploying Interest
[Container factory] Deployed application:
file:/usr/home/sinaop/JBoss-2.2.2/tmp/deploy/Default/InterestBean.jar
[J2EE Deployer Default] J2EE application:
file:/usr/home/sinaop/JBoss-2.2.2/deploy/InterestBean.jar is deployed.
[Auto deploy] Started
[RARDeployer] Starting
...
[Service Control] Started 24 services
[Default] JBoss 2.2.2 Started in 0m:29s
----------------------------------------------------------------------------
----------------------------------------------------------------------------
--------

Buf after I add the following lines to $JBOSS_HOME/etc/default/jboss.jcml to
add data sources to mySQL.
----------------------------------------------------------------------------
----------------------------------------------------------------------------
--------
  <!-- JDBC -->
  <!-- mysql -->
  <mbean code="org.jboss.jdbc.JdbcProvider"
name="DefaultDomain:service=JdbcProvider">
    <attribute name="Drivers">org.gjt.mm.mysql.Driver</attribute>
  </mbean>

  <mbean code="org.jboss.jdbc.XADataSourceLoader"
name="DefaultDomain:service=XADataSource,name=mySQLDB">
     <attribute
name="DataSourceClass">org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImp
l</attribute>
     <attribute name="PoolName">mySQLDS</attribute>
     <attribute name="URL">jdbc:mysql://localhost/test</attribute>
     <attribute name="JDBCUser">root</attribute>
     <attribute name="Password"></attribute>
  </mbean>
----------------------------------------------------------------------------
----------------------------------------------------------------------------
---------

 The InterestBean don't be deployed, and When runing the test client, it
gets exception: "javax.naming.NameNotFoundException:
 interest not bound". the system output is like the following:

----------------------------------------------------------------------------
----------------------------------------------------------------------------
--------
JBOSS_CLASSPATH=:run.jar:../lib/crimson.jar
jboss.home = /usr/home/sinaop/JBoss-2.2.2
Using JAAS LoginConfig:
file:/usr/home/sinaop/JBoss-2.2.2/conf/default/auth.conf
Using configuration "default"
[Info] Java version: 1.4.0-beta,Sun Microsystems Inc.
[Info] Java VM: Java HotSpot(TM) Server VM 1.4.0-beta-b65,Sun Microsystems
Inc.
[Info] System: SunOS 5.7,x86
[Shutdown] Shutdown hook added
[Service Control] Registered with server
[Service Control] Initializing 25 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:org.gjt.mm.mysql.Driver
[JDBC provider] Initialized
[Hypersonic] Initializing
[Hypersonic] Initialized
[mySQLDS] Initializing
[mySQLDS] Initialized
[InstantDB] Initializing
[InstantDB] 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
[Service Control] Initialized 25 services
[Service Control] Starting 25 MBeans
[Webserver] Starting
[Webserver] Codebase set to http://D0163:8083/
[Webserver] Started webserver on port 8083
[Webserver] Started
[Naming] Starting
[Naming] Starting jnp server
[Naming] Started jnpPort=1099, rmiPort=0, Client SocketFactory=null, Server
SocketFactory=null
[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@695a56
[JAAS Security Manager] Started
[JDBC provider] Starting
[JDBC provider] Started
[Hypersonic] Starting
[Hypersonic] Database started
[Hypersonic] Started
[mySQLDS] Starting
[mySQLDS] XA Connection pool mySQLDS bound to java:/mySQLDS
[Hypersonic] Server 1.4 is running
[Hypersonic] Press [Ctrl]+[C] to abort
[mySQLDS] Started
[InstantDB] Starting
[InstantDB] XA Connection pool InstantDB bound to java:/InstantDB
----------------------------------------------------------------------------
----------------------------------------------------------------------------
--------

Thanks for your attention.

xiaohong.




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

Reply via email to