3 Replies Latest reply on May 3, 2002 3:21 AM by lucluc

    Cannot make mySql work

    lucluc

      I carefully read every stuff about jboss integration with mysql but I'm still in trouble.
      I'm running JBoss 3.0.0RC1 Date:200204150356
      mySql 4.01
      mm.mysql-2.0.11
      last mysql-service.xml from cvs
      I think I've done the necessary configs.

      When I boot jboss I get the following Exception:

      09:12:32,896 INFO [MainDeployer] Starting deployment of package: file:/C:/jboss
      /server/mysql/deploy/mysql-service.xml
      09:12:33,557 ERROR [SARDeployer] create operation failed for package file:/C:/jb
      oss/server/mysql/deploy/mysql-service.xml
      org.jboss.deployment.DeploymentException: Exception setting attribute javax.mana
      gement.Attribute@8530b8 on mbean jboss.jca:service=LocalTxCM,name=MySqlDS; - nested throwable is: javax.management.AttributeNotFoundException: Writable attribute 'JaasSecurityManagerService' not foundjavax.management.AttributeNotFoundException: Writable attribute 'JaasSecurityManagerService' not found
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.setAttribute(ReflectedMBeanDispatcher.java:190)
      at org.jboss.mx.server.MBeanServerImpl.setAttribute(MBeanServerImpl.java
      :446)
      at org.jboss.system.ServiceConfigurator.setAttribute(ServiceConfigurator.java:489)
      ...



      If I comment in mysql-service.xml the line

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

      jboss starts fine but I get the following WARN:

      09:36:03,434 INFO [MainDeployer] Starting deployment of package: file:/C:/jboss
      /server/mysql/deploy/mysql-service.xml
      09:36:04,435 WARN [ServiceController] jboss.jca:service=LocalTxDS,name=MySqlDS
      does not implement any Service methods
      09:36:04,445 INFO [JBossManagedConnectionPool] Creating
      09:36:04,445 INFO [JBossManagedConnectionPool] Created
      09:36:04,445 INFO [JBossManagedConnectionPool] Starting
      09:36:04,455 INFO [JBossManagedConnectionPool] Started
      09:36:04,455 INFO [MainDeployer] Successfully completed deployment of package:
      file:/C:/jboss/server/mysql/deploy/mysql-service.xml

      and then I can't see anything about MySqlDS in JNDIVIEW/list

      Any help is welcomed 'cause I'm new with jboss.
      Thanks in advance.