2 Replies Latest reply on Nov 5, 2002 6:02 PM by Joel Vogt

    how to configure mysql datasource?

    wqhhust Newbie

      I search the forum and find some suggestion for,but it can not work.
      copy the mysql-service.xml to jboss\server\default\deploy,and change the username,password,and the database to be connected.
      <config-property name="wqhhust" type="java.lang.String"></config-property>
      <config-property name="wqh" type="java.lang.String"></config-property>
      I also put the jdbc jar to the default\lib directory
      But when I finish it and run jboss,jboss throws many exception .And I do not know why it complaints wqhhust not configured.



      11:17:00,261 WARN [RARDeployment] The class 'class org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory' has no setter for config property 'wqhhust'
      11:17:00,271 ERROR [LocalTxConnectionManager] Starting failed
      java.lang.IllegalArgumentException: The class 'class org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory' has no setter for config property 'wqhhust'
      at org.jboss.resource.connectionmanager.RARDeployment.setManagedConnectionFactoryAttribute(RARDeployment.java:658)
      at org.jboss.resource.connectionmanager.RARDeployment.setMcfProperties(RARDeployment.java:786)
      at org.jboss.resource.connectionmanager.RARDeployment.startManagedConnectionFactory(RARDeployment.java:555)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)