2 Replies Latest reply on Jan 8, 2003 11:36 AM by Dan

    MySqlDS NameNotFoundException

    Dan Newbie

      I set up a mysql datasource. The following is from the startup log:

      11:01:21,440 INFO [MainDeployer] Starting deployment of package: file:/E:/dev/env/appserver/jboss-3.0.4_tomcat-4.1.12/server/default/deploy/mysql-service.xml
      11:01:21,500 WARN [ServiceController] jboss.jca:service=LocalTxDS,name=MySqlDS does not implement any Service methods
      11:01:21,500 INFO [JBossManagedConnectionPool] Creating
      11:01:21,500 INFO [JBossManagedConnectionPool] Created
      11:01:21,500 INFO [JBossManagedConnectionPool] Starting
      11:01:21,500 INFO [JBossManagedConnectionPool] Started
      11:01:21,510 INFO [MainDeployer] Deployed package: file:/E:/dev/env/appserver/jboss-3.0.4_tomcat-4.1.12/server/default/deploy/mysql-service.xml
      11:01:21,520 INFO [MainDeployer] Starting deployment of package: file:/E:/dev/env/appserver/jboss-3.0.4_tomcat-4.1.12/server/default/deploy/jboss-local-jdbc.rar
      11:01:21,641 WARN [ServiceController] jboss.jca:service=RARDeployment,name=JBoss LocalTransaction JDBC Wrapper does not implement any Service methods
      11:01:21,641 WARN [ServiceController] jboss.jca:service=LocalTxDS,name=hsqldbDS does not implement any Service methods
      11:01:21,651 INFO [LocalTxConnectionManager] Creating
      11:01:21,711 INFO [LocalTxConnectionManager] Created
      11:01:21,711 WARN [ServiceController] jboss.jca:service=LocalTxDS,name=MySqlDS does not implement any Service methods
      11:01:21,761 INFO [LocalTxConnectionManager] Starting
      11:01:21,831 INFO [DefaultDS] Bound connection factory for resource adapter 'JBoss LocalTransaction JDBC Wrapper' to JNDI name 'java:/DefaultDS'
      11:01:21,831 INFO [LocalTxConnectionManager] Started

      The JNDI name should by java:/MySqlDS and not DefaultDS. I can not find a connection between the two datasources. What other files need to be changed besides login-config.xml and mysql-service.xml?

      Thanks for any help you may provide.

      Dan

        • 1. Re: MySqlDS NameNotFoundException
          Dan Newbie

          I figured it out. The following line:

          <depends optional-attribute-service="JaasSecurityManagerService">jboss.security:service=JaasSecurityManager

          needed to be changed to:

          <depends optional-attribute-name="JaasSecurityManagerService">jboss.security:name=JaasSecurityManager

          • 2. Re: MySqlDS NameNotFoundException
            Dan Newbie

            Sorry, it needed to be changed from:

            <depends optional-attribute-name="JaasSecurityManagerService">jboss.security:name=JaasSecurityManager

            to:

            <depends optional-attribute-name="JaasSecurityManagerService">jboss.security:service=JaasSecurityManager