Are you sure that you only have 1 JdbcProvider  tag set with all of the
drivers listed.  You can not have multiple of the code below only one that
lists all drivers.

<mbean code="org.jboss.jdbc.JdbcProvider"
name="DefaultDomain:service=JdbcProvider">
        <attribute name="Drivers">org.gjt.mm.mysql.Driver</attribute>
</mbean>

Ivan

----- Original Message -----
From: "Emanuel Galindo" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 16, 2001 1:27 PM
Subject: [JBoss-user] Problem with ... jdbc?


>
> Hi, im finishing the configuration of tomcat-jboss.
> I need to have mysql accessible from the beans, in the course of that i'm
> have to stop in an error that throws me in the very initial start of build
> (run.sh):
>
> [root@maxim bin]# ./run.sh
> JBOSS_CLASSPATH=:run.jar:../lib/crimson.jar
> jboss.home = /usr/local/JBoss-2.2.1
> Using configuration "default"
> [Info] Java version: 1.3.0_02,Sun Microsystems Inc.
> [Info] Java VM: Java HotSpot(TM) Server VM 1.3.0_02,Sun Microsystems Inc.
> [Info] System: Linux 2.4.2-2,i386
> [Shutdown] Shutdown hook added
> [Service Control] Registered with server
> java.lang.NoSuchMethodException: No such constructor
>         at
>
com.sun.management.jmx.MBeanServerImpl.internal_instantiate(MBeanServerImpl.
java:2207)
>         at
>
com.sun.management.jmx.MBeanServerImpl.createMBean(MBeanServerImpl.java:761)
>         at javax.management.loading.MLet.getMBeansFromURL(MLet.java:540)
>         at javax.management.loading.MLet.getMBeansFromURL(MLet.java:369)
>         at org.jboss.Main.<init>(Main.java:173)
>         at org.jboss.Main$1.run(Main.java:107)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at org.jboss.Main.main(Main.java:103)
>
> I reconfigured almost everithing and i dont want to re install everything.
>
> Other problem is with mysql: i have read de docs for this conf and i added
> to jboss.jcml :
>   <!-- JDBC -->
> <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=XADataSou
> rce,name=mySQLPool">
>         <attribute name="PoolName">mySQLPool</attribute>
>         <attribute
> name="DataSourceClass">org.opentools.minerva.jdbc.xa.wrapper.XADat
> aSourceImpl</attribute>
>         <attribute name="Properties"></attribute>
>         <attribute name="URL">jdbc:mysql://maxim/test</attribute>
>         <attribute name="GCMinIdleTime">1200000</attribute>
>         <attribute name="JDBCUser"></attribute>
>         <attribute name="MaxSize">10</attribute>
>         <attribute name="Password"></attribute>
>         <attribute name="GCEnabled">false</attribute>
>         <attribute name="InvalidateOnError">false</attribute>
>         <attribute name="TimestampUsed">false</attribute>
>         <attribute name="Blocking">true</attribute>
>         <attribute name="GCInterval">120000</attribute>
>         <attribute name="IdleTimeout">1800000</attribute>
>         <attribute name="IdleTimeoutEnabled">false</attribute>
>         <attribute name="LoggingEnabled">false</attribute>
>         <attribute name="MaxIdleTimeoutPercent">1.0</attribute>
>         <attribute name="MinSize">0</attribute>
> </mbean>
>
> the pool is parsed well, but i cant have the context well parsed.
>
> Excuse my tarzan english and i hope to finish this work well.
> Thanks in advance.
>
>
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user


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

Reply via email to