Sometimes my mysql-service.sar doesn't deploy at startup, however if I
deploy it after JBoss has started up, no problem. Perhaps a dependency
problem? JBoss 3.0b2, Windows and Linux.


mysql-service.sar
|-- mm.mysql-2.0.11-bin.jar
|-- META-INF/
    |-- jboss-service.xml


javax.management.ReflectionException: The MBean class could not be loaded by
the specified loader
        at
com.sun.management.jmx.MBeanServerImpl.createMBean(MBeanServerImpl.java:754)
        at org.jboss.system.ServiceCreator.install(ServiceCreator.java:98)
        at
org.jboss.system.ServiceController.install(ServiceController.java:155)
        at java.lang.reflect.Method.invoke(Native Method)
        at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
        at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
        at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:78)
        at $Proxy2.install(Unknown Source)
        at org.jboss.deployment.SARDeployer.create(SARDeployer.java:227)
        at org.jboss.deployment.MainDeployer.create(MainDeployer.java:421)
        at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:333)
        at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:314)
        at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:296)
        ...


--
Eric Jain
<?xml version="1.0" encoding="UTF-8"?>
<!-- $Id: mysql-service.xml,v 1.3 2002/03/01 00:02:00 d_jencks Exp $ -->


<!-- ===================================================================== -->
<!--                                                                       -->
<!-- Example configuration for the mysql database.                         -->
<!-- Put the driver jar mm.mysql-2.0.4-bin.jar in lib/ext                  -->
<!-- Contributed by Ignacio Coloma [EMAIL PROTECTED]                    -->
<!-- ===================================================================== -->

<server>


  <mbean code="org.jboss.resource.ConnectionFactoryLoader" 
	 name="jboss.jca:service=ConnectionFactoryLoader,name=MysqlDS">
    <attribute name="ManagedConnectionFactoryProperties">ConnectionURL=jdbc:mysql://localhost/jboss
      DriverClass=org.gjt.mm.mysql.Driver
      UserName=dcm
      password=hallo</attribute>
    <attribute name="JndiName">MysqlDS</attribute>
    <attribute name="TransactionManagerName">java:/TransactionManager</attribute>
    <depends optional-attribute-name="ResourceAdapterName">jboss.jca:service=RARDeployment,name=Minerva JDBC LocalTransaction ResourceAdapter</depends>
    <depends optional-attribute-name="ConnectionManagerFactoryLoaderName">jboss.jca:service=ConnectionManagerFactoryLoader,name=MinervaSharedLocalCMFactory</depends> 
    <attribute name="ConnectionManagerProperties">#
      #Wed Aug 15 16:17:29 EDT 2001
      BlockingTimeoutMillis=500000
      IdleTimeoutMinutes=30
      MaxSize=10
      CleanupIntervalMinutes=10
      MinSize=0
      MaxIdleTimeoutPercent=1.0
    </attribute>
    <attribute name="PrincipalMappingClass">
      org.jboss.resource.security.ManyToOnePrincipalMapping
    </attribute>
    <attribute name="PrincipalMappingProperties">UserName=dcm
    password=hallo</attribute>
  </mbean>

</server>

Reply via email to