I'm sorry Aaron. I'm not trying to be difficult. I really don't think this
is a Minerva question anymore at all. I think this is a CLASSPATH issue
that I don't understand. If I put my JAR file in the lib/ext directory, and
it loads properly, and I see the JDCB Mbean load the JDBC drivers correctly,
which I have set up in the jboss.properties file, then why can't I do a
Class.forName on my class?
Class.forName( "com.inet.tds.TdsDriver");
Class.forName( "org.jboss.minerva.datasource.PoolDriver");
Both of these throw a ClassNotFoundException in my EJB. At this point, I
could care less about connection pool. I have that working now, although I
can't use the PoolDriver for the reason stated above. My main wish for
using the PoolDriver was so that I could keep my code compatible between
jBoss and Darth WebLogic. Inserted below is the Debug output from my jBoss
startup.
You will see that the JDBC driver is loaded properly from the Una2000.jar
file.
[File logging] Initialized
[Classpath] Added directory:file:/D:/jboss/tmp/
[Classpath] Added directory:file:/D:/jboss/db/
[Info] Java version: 1.3.0,Sun Microsystems Inc.
[Info] Java VM: Java HotSpot(TM) Client VM 1.3.0-C,Sun Microsystems Inc.
[Info] System: Windows 2000 5.0,x86
[Classpath] Added library:file:/D:/jboss/lib/ext/activation.jar
[Classpath] Added library:file:/D:/jboss/lib/ext/awt.jar
[Classpath] Added library:file:/D:/jboss/lib/ext/dynaserver.jar
[Classpath] Added library:file:/D:/jboss/lib/ext/ejb.jar
[Classpath] Added library:file:/D:/jboss/lib/ext/ejxeditor.jar
[Classpath] Added library:file:/D:/jboss/lib/ext/ejxejb.jar
[Classpath] Added library:file:/D:/jboss/lib/ext/ejxjaws.jar
[Classpath] Added library:file:/D:/jboss/lib/ext/ejxjboss.jar
[Classpath] Added library:file:/D:/jboss/lib/ext/hsql.jar
[Classpath] Added library:file:/D:/jboss/lib/ext/idb.jar
[Classpath] Added library:file:/D:/jboss/lib/ext/jboss.jar
[Classpath] Added library:file:/D:/jboss/lib/ext/jms.jar
[Classpath] Added library:file:/D:/jboss/lib/ext/jmxtools.jar
[Classpath] Added library:file:/D:/jboss/lib/ext/jndi.jar
[Classpath] Added library:file:/D:/jboss/lib/ext/jnpserver.jar
[Classpath] Added library:file:/D:/jboss/lib/ext/jpl-util-0_5b.jar
[Classpath] Added library:file:/D:/jboss/lib/ext/jta-spec1_0_1.jar
[Classpath] Added library:file:/D:/jboss/lib/ext/mail.jar
[Classpath] Added library:file:/D:/jboss/lib/ext/spydermq.jar
[Classpath] Added library:file:/D:/jboss/lib/ext/tomcat-service.jar
[Classpath] Added library:file:/D:/jboss/lib/ext/Una2000.jar <---
My JDBC Driver
[JDBC] Loaded JDBC-driver:org.hsql.jdbcDriver
[JDBC] Loaded JDBC-driver:org.enhydra.instantdb.jdbc.idbDriver
[JDBC] Loaded JDBC-driver:com.inet.tds.TdsDriver
[JDBC] Loaded JDBC-driver:org.jboss.minerva.datasource.PoolDriver
<--- I tried this because I couldn't get it to work
[Webserver] Initializing
[Webserver] Initialized
[Hypersonic] Initializing
[Hypersonic] Initialized
[Naming] Initializing
[Naming] Naming started on port 1099
[Naming] Initialized
[Transaction manager] Initializing
[Transaction manager] Initialized
[JAAS Security Manager] Initializing
[JAAS Security Manager] Initialized
[Simple Realm Mapping] Initializing
[Simple Realm Mapping] Initialized
[Security manager] Initializing
[Security manager] Initialized
[InstantDB] Initializing
[InstantDB] Initialized
[DefaultDS] Initializing
[DefaultDS] Initialized
[usswebPool] Initializing
[usswebPool] Initialized
[Container factory] Initializing
[Container factory] Initialized
[Auto deploy] Watching D:\jboss\deploy
[Auto deployer] Initializing
[Auto deployer] Initialized
[JMX RMI Adaptor] Initializing
[JMX RMI Adaptor] Initialized
[JMX RMI Connector] Initializing
[JMX RMI Connector] Initialized
[Configuration] Initializing
[Configuration] Initialized
[J2EE Deployer] Initializing
[J2EE Deployer] Initialized
[SpyderMQ] Initializing
[SpyderMQ] Initialized
[Configuration] MaxActiveClientCount set to 10 in Adaptor:name=html
[Configuration] Port set to 8082 in Adaptor:name=html
[Configuration] LibraryDirectory set to D:\jboss\bin in
DefaultDomain:service=MLet
[Configuration] TransactionTimeout set to 300 in
DefaultDomain:service=TransactionManager
[Configuration] Format set to [{2}] {4} in
DefaultDomain:service=Logging,type=Console
[Configuration] Port set to 8083 in DefaultDomain:service=Webserver
[Configuration] Format set to [{2}] {4} in
DefaultDomain:service=Logging,type=File
[Configuration] LogName set to server in
DefaultDomain:service=Logging,type=File
[Configuration] URL set to jdbc:idb:../conf/default/instantdb.properties in
DefaultDomain:service=XADataSource,name=InstantDB
[Configuration] GCMinIdleTime set to 1200000 in
DefaultDomain:service=XADataSource,name=InstantDB
[Configuration] MaxSize set to 10 in
DefaultDomain:service=XADataSource,name=InstantDB
[Configuration] GCEnabled set to false in
DefaultDomain:service=XADataSource,name=InstantDB
[Configuration] InvalidateOnError set to false in
DefaultDomain:service=XADataSource,name=InstantDB
[Configuration] Blocking set to true in
DefaultDomain:service=XADataSource,name=InstantDB
[Configuration] GCInterval set to 120000 in
DefaultDomain:service=XADataSource,name=InstantDB
[Configuration] IdleTimeout set to 1800000 in
DefaultDomain:service=XADataSource,name=InstantDB
[Configuration] IdleTimeoutEnabled set to false in
DefaultDomain:service=XADataSource,name=InstantDB
[Configuration] MaxIdleTimeoutPercent set to 1.0 in
DefaultDomain:service=XADataSource,name=InstantDB
[Configuration] MinSize set to 0 in
DefaultDomain:service=XADataSource,name=InstantDB
[Configuration] TimestampUsed set to false in
DefaultDomain:service=XADataSource,name=InstantDB
[Configuration] LoggingEnabled set to false in
DefaultDomain:service=XADataSource,name=InstantDB
[Configuration] URL set to jdbc:inetdae:ZEUS?database=call_cluster in
DefaultDomain:service=XADataSource,name=usswebPool
[Configuration] GCMinIdleTime set to 1200000 in
DefaultDomain:service=XADataSource,name=usswebPool
[Configuration] JDBCUser set to sa in
DefaultDomain:service=XADataSource,name=usswebPool
[Configuration] MaxSize set to 20 in
DefaultDomain:service=XADataSource,name=usswebPool
[Configuration] Password set to zero in
DefaultDomain:service=XADataSource,name=usswebPool
[Configuration] GCEnabled set to false in
DefaultDomain:service=XADataSource,name=usswebPool
[Configuration] InvalidateOnError set to false in
DefaultDomain:service=XADataSource,name=usswebPool
[Configuration] Blocking set to true in
DefaultDomain:service=XADataSource,name=usswebPool
[Configuration] GCInterval set to 120000 in
DefaultDomain:service=XADataSource,name=usswebPool
[Configuration] IdleTimeout set to 1800000 in
DefaultDomain:service=XADataSource,name=usswebPool
[Configuration] IdleTimeoutEnabled set to false in
DefaultDomain:service=XADataSource,name=usswebPool
[Configuration] MaxIdleTimeoutPercent set to 1.0 in
DefaultDomain:service=XADataSource,name=usswebPool
[Configuration] MinSize set to 5 in
DefaultDomain:service=XADataSource,name=usswebPool
[Configuration] TimestampUsed set to false in
DefaultDomain:service=XADataSource,name=usswebPool
[Configuration] LoggingEnabled set to false in
DefaultDomain:service=XADataSource,name=usswebPool
[Configuration] Port set to 1476 in DefaultDomain:service=Hypersonic
[Configuration] Silent set to true in DefaultDomain:service=Hypersonic
[Configuration] Database set to default in DefaultDomain:service=Hypersonic
[Configuration] Trace set to false in DefaultDomain:service=Hypersonic
[Configuration] URL set to jdbc:HypersonicSQL:hsql://localhost:1476 in
DefaultDomain:service=XADataSource,name=DefaultDS
[Configuration] GCMinIdleTime set to 1200000 in
DefaultDomain:service=XADataSource,name=DefaultDS
[Configuration] JDBCUser set to sa in
DefaultDomain:service=XADataSource,name=DefaultDS
[Configuration] MaxSize set to 10 in
DefaultDomain:service=XADataSource,name=DefaultDS
[Configuration] GCEnabled set to false in
DefaultDomain:service=XADataSource,name=DefaultDS
[Configuration] InvalidateOnError set to false in
DefaultDomain:service=XADataSource,name=DefaultDS
[Configuration] Blocking set to true in
DefaultDomain:service=XADataSource,name=DefaultDS
[Configuration] GCInterval set to 120000 in
DefaultDomain:service=XADataSource,name=DefaultDS
[Configuration] IdleTimeout set to 1800000 in
DefaultDomain:service=XADataSource,name=DefaultDS
[Configuration] IdleTimeoutEnabled set to false in
DefaultDomain:service=XADataSource,name=DefaultDS
[Configuration] MaxIdleTimeoutPercent set to 1.0 in
DefaultDomain:service=XADataSource,name=DefaultDS
[Configuration] MinSize set to 0 in
DefaultDomain:service=XADataSource,name=DefaultDS
[Configuration] TimestampUsed set to false in
DefaultDomain:service=XADataSource,name=DefaultDS
[Configuration] LoggingEnabled set to false in
DefaultDomain:service=XADataSource,name=DefaultDS
[Configuration] VerifyDeployments set to true in
EJB:service=ContainerFactory
[Configuration] VerifierVerbose set to true in EJB:service=ContainerFactory
[Configuration] Detected JMX Bug: Server reports attribute 'JDBCUser' is not
writeable for MBean 'DefaultDomain:name=InstantDB,service=XADataSource'
[Configuration] Detected JMX Bug: Server reports attribute 'JDBCUser' is not
writeable for MBean 'DefaultDomain:name=usswebPool,service=XADataSource'
[Configuration] Detected JMX Bug: Server reports attribute 'JDBCUser' is not
writeable for MBean 'DefaultDomain:name=DefaultDS,service=XADataSource'
[Simple Realm Mapping] Starting
[Simple Realm Mapping] Started
[Webserver] Starting
[Webserver] Codebase set to http://devwebsvrii:8083/
[Webserver] Started webserver on port 8083
[Webserver] Started
[Transaction manager] Starting
[Transaction manager] Started
[Naming] Starting
[Naming] Started
[Hypersonic] Starting
[Hypersonic] Server 1.4 is running
[Hypersonic] Database started
[Hypersonic] Started
[InstantDB] Starting
[InstantDB] XA Connection pool InstantDB bound to java:/InstantDB
[Hypersonic] Press [Ctrl]+[C] to abort
[InstantDB] The Initial Developer of the Original Code is Lutris
Technologies Inc.
Portions created by Lutris are Copyright (C) 1997-2000 Lutris Technologies,
Inc.
All Rights Reserved.
[InstantDB] Started
[usswebPool] Starting
[usswebPool] XA Connection pool usswebPool bound to java:/usswebPool
[usswebPool] Started
[DefaultDS] Starting
[DefaultDS] XA Connection pool DefaultDS bound to java:/DefaultDS
[DefaultDS] Started
[JAAS Security Manager] Starting
[JAAS Security Manager] Started
[Container factory] Starting
[Container factory] Started
[J2EE Deployer] Starting
[J2EE Deployer] No web container found - only EJB deployment available...
[J2EE Deployer] Cleaning up deployment directory
file:/D:/jboss/bin/../tmp/deploy/
[J2EE Deployer] Started
[Security manager] Starting
[Security manager] Started
[Auto deployer] Starting
[Auto deploy] Auto deploy of file:/D:/jboss/deploy/ejb_CreditCardDoc.jar
-- Cut off here because I load a ton of EJBs
--- jBoss Properties ----
# System properties
# These will be loaded and set by jBoss
#java.rmi.server.useLocalHostName=true
#java.rmi.server.hostname=localhost
#java.rmi.server.codebase=http://localhost:8080/
#jboss.xa.xidclass=oracle.jdbc.xa.OracleXid
jdbc.drivers=org.hsql.jdbcDriver,org.enhydra.instantdb.jdbc.idbDriver,com.in
et.tds.TdsDriver,org.jboss.minerva.datasource.PoolDriver
#java.security.manager=java.lang.SecurityManager
java.security.auth.login.config==../conf/default/auth.conf
-- jBoss.jcml
<?xml version="1.0"?>
<server>
<mbean name="Adaptor:name=html">
<attribute name="MaxActiveClientCount">10</attribute>
<attribute name="Parser" />
<attribute name="Port">8082</attribute>
</mbean>
<mbean name="DefaultDomain:service=MLet">
<attribute name="LibraryDirectory">D:\jboss\bin</attribute>
</mbean>
<mbean name="DefaultDomain:service=TransactionManager">
<attribute name="TransactionTimeout">300</attribute>
</mbean>
<mbean name="DefaultDomain:service=Logging,type=Console">
<attribute name="Format">[{2}] {4}</attribute>
</mbean>
<mbean name="DefaultDomain:service=Webserver">
<attribute name="Port">8083</attribute>
</mbean>
<mbean name="DefaultDomain:service=Logging,type=File">
<attribute name="Format">[{2}] {4}</attribute>
<attribute name="LogName">server</attribute>
</mbean>
<mbean name="DefaultDomain:service=XADataSource,name=InstantDB">
<attribute name="Properties"></attribute>
<attribute
name="URL">jdbc:idb:../conf/default/instantdb.properties</attribute>
<attribute name="GCMinIdleTime">1200000</attribute>
<attribute name="JDBCUser" />
<attribute name="MaxSize">10</attribute>
<attribute name="Password" />
<attribute name="GCEnabled">false</attribute>
<attribute name="InvalidateOnError">false</attribute>
<attribute name="Blocking">true</attribute>
<attribute name="GCInterval">120000</attribute>
<attribute name="IdleTimeout">1800000</attribute>
<attribute name="IdleTimeoutEnabled">false</attribute>
<attribute name="MaxIdleTimeoutPercent">1.0</attribute>
<attribute name="MinSize">0</attribute>
<attribute name="TimestampUsed">false</attribute>
<attribute name="LoggingEnabled">false</attribute>
</mbean>
<mbean name="DefaultDomain:service=XADataSource,name=usswebPool">
<attribute name="Properties"></attribute>
<attribute
name="URL">jdbc:inetdae:ZEUS?database=call_cluster</attribute>
<attribute name="GCMinIdleTime">1200000</attribute>
<attribute name="JDBCUser">sa</attribute>
<attribute name="MaxSize">20</attribute>
<attribute name="Password">****</attribute>
<attribute name="GCEnabled">false</attribute>
<attribute name="InvalidateOnError">false</attribute>
<attribute name="Blocking">true</attribute>
<attribute name="GCInterval">120000</attribute>
<attribute name="IdleTimeout">1800000</attribute>
<attribute name="IdleTimeoutEnabled">false</attribute>
<attribute name="MaxIdleTimeoutPercent">1.0</attribute>
<attribute name="MinSize">5</attribute>
<attribute name="TimestampUsed">false</attribute>
<attribute name="LoggingEnabled">false</attribute>
</mbean>
<mbean name="DefaultDomain:service=Hypersonic">
<attribute name="Port">1476</attribute>
<attribute name="Silent">true</attribute>
<attribute name="Database">default</attribute>
<attribute name="Trace">false</attribute>
</mbean>
<mbean name="DefaultDomain:service=XADataSource,name=DefaultDS">
<attribute name="Properties"></attribute>
<attribute
name="URL">jdbc:HypersonicSQL:hsql://localhost:1476</attribute>
<attribute name="GCMinIdleTime">1200000</attribute>
<attribute name="JDBCUser">sa</attribute>
<attribute name="MaxSize">10</attribute>
<attribute name="Password" />
<attribute name="GCEnabled">false</attribute>
<attribute name="InvalidateOnError">false</attribute>
<attribute name="Blocking">true</attribute>
<attribute name="GCInterval">120000</attribute>
<attribute name="IdleTimeout">1800000</attribute>
<attribute name="IdleTimeoutEnabled">false</attribute>
<attribute name="MaxIdleTimeoutPercent">1.0</attribute>
<attribute name="MinSize">0</attribute>
<attribute name="TimestampUsed">false</attribute>
<attribute name="LoggingEnabled">false</attribute>
</mbean>
<mbean name="EJB:service=ContainerFactory">
<attribute name="VerifyDeployments">true</attribute>
<attribute name="VerifierVerbose">true</attribute>
</mbean>
</server>
--------------------- jBoss.conf
<MLET CODE = "org.jboss.logging.Logger" ARCHIVE="jboss.jar"
CODEBASE="../../lib/ext/">
</MLET>
<MLET CODE = "org.jboss.logging.ConsoleLogging" ARCHIVE="jboss.jar"
CODEBASE="../../lib/ext/">
<ARG TYPE="java.lang.String" VALUE="Information,Warning,Error,Debug">
<ARG TYPE="java.lang.String" VALUE="[{2}] {4}">
</MLET>
<MLET CODE = "org.jboss.util.ClassPathExtension" ARCHIVE="jboss.jar"
CODEBASE="../../lib/ext/">
<ARG TYPE="java.lang.String" VALUE="../../log/">
</MLET>
<MLET CODE = "org.jboss.logging.FileLogging" ARCHIVE="jboss.jar"
CODEBASE="../../lib/ext/">
<ARG TYPE="java.lang.String" VALUE="Information,Debug,Warning,Error">
<ARG TYPE="java.lang.String" VALUE="[{2}] {4}">
</MLET>
<MLET CODE = "org.jboss.util.ClassPathExtension" ARCHIVE="jboss.jar"
CODEBASE="../../lib/ext/">
<ARG TYPE="java.lang.String" VALUE="../../tmp/">
</MLET>
<MLET CODE = "org.jboss.util.ClassPathExtension" ARCHIVE="jboss.jar"
CODEBASE="../../lib/ext/">
<ARG TYPE="java.lang.String" VALUE="../../db/">
</MLET>
<MLET CODE = "org.jboss.util.Info" ARCHIVE="jboss.jar"
CODEBASE="../../lib/ext/">
</MLET>
<MLET CODE = "org.jboss.util.ClassPathExtension" ARCHIVE="jboss.jar"
CODEBASE="../../lib/ext/">
<ARG TYPE="java.lang.String" VALUE="./">
</MLET>
<MLET CODE = "org.jboss.jdbc.JdbcProvider"
ARCHIVE="jboss.jar,idb.jar,hsql.jar" CODEBASE="../../lib/ext/">
</MLET>
<MLET CODE = "org.jboss.web.WebService" ARCHIVE="jboss.jar,dynaserver.jar"
CODEBASE="../../lib/ext/">
</MLET>
<MLET CODE = "org.jboss.jdbc.HypersonicDatabase"
ARCHIVE="jboss.jar,hsql.jar" CODEBASE="../../lib/ext/">
</MLET>
<MLET CODE = "org.jboss.naming.NamingService" ARCHIVE="jnpserver.jar"
CODEBASE="../../lib/ext/">
</MLET>
<MLET CODE = "org.jboss.tm.TransactionManagerService"
ARCHIVE="jboss.jar,jta-spec1_0_1.jar" CODEBASE="../../lib/ext/">
</MLET>
<MLET CODE = "org.jboss.security.JaasSecurityManagerService"
ARCHIVE="jboss.jar" CODEBASE="../../lib/ext/">
</MLET>
<MLET CODE = "org.jboss.security.SimpleRealmMappingService"
ARCHIVE="jboss.jar" CODEBASE="../../lib/ext/">
</MLET>
<MLET CODE = "org.jboss.security.EJBSecurityManagerService"
ARCHIVE="jboss.jar" CODEBASE="../../lib/ext/">
</MLET>
<MLET CODE="org.jboss.jdbc.XADataSourceLoader" ARCHIVE="jboss.jar"
CODEBASE="../../lib/ext/">
<ARG TYPE="java.lang.String" VALUE="InstantDB">
<ARG TYPE="java.lang.String"
VALUE="org.jboss.minerva.xa.XADataSourceImpl">
</MLET>
<MLET CODE="org.jboss.jdbc.XADataSourceLoader" ARCHIVE="jboss.jar"
CODEBASE="../../lib/ext/">
<ARG TYPE="java.lang.String" VALUE="DefaultDS">
<ARG TYPE="java.lang.String"
VALUE="org.jboss.minerva.xa.XADataSourceImpl">
</MLET>
<MLET CODE="org.jboss.jdbc.XADataSourceLoader"
ARCHIVE="jboss.jar,Una2000.jar" CODEBASE="../../lib/ext/">
<ARG TYPE="java.lang.String" VALUE="usswebPool">
<ARG TYPE="java.lang.String"
VALUE="org.jboss.minerva.xa.XADataSourceImpl">
</MLET>
<MLET CODE = "org.jboss.ejb.ContainerFactory"
ARCHIVE="jboss.jar,ejb.jar,jnp-client.jar,ejxeditor.jar,ejxjboss.jar"
CODEBASE="../../lib/ext/">
</MLET>
<MLET CODE = "org.jboss.ejb.AutoDeployer" ARCHIVE="jboss.jar">
<ARG TYPE="java.lang.String" VALUE="../deploy/">
</MLET>
<MLET CODE = "org.jboss.jmx.server.JMXAdaptorService" ARCHIVE="jboss.jar"
CODEBASE="../../lib/ext/">
</MLET>
<MLET CODE = "org.jboss.jmx.server.RMIConnectorService" ARCHIVE="jboss.jar"
CODEBASE="../../lib/ext/">
</MLET>
<MLET CODE = "com.sun.jdmk.comm.HtmlAdaptorServer" ARCHIVE="jmxtools.jar"
CODEBASE="../../lib/ext/" NAME="Adaptor:name=html">
</MLET>
<MLET CODE = "org.jboss.configuration.ConfigurationService"
ARCHIVE="jboss.jar,../xml.jar" CODEBASE="../../lib/ext/">
</MLET>
<!--
-- The j2ee deployer can deploy jar,war and ear files. Its role is to
-- split the archive and hand the parts (jars, wars) to the relevant
-- deployers
--
-- Arguments: #1: where the j2eedeployer should store its config files
-- #2: the jar deployer: currently only ContainerFactory
-- #3: the war deployer: currently only EmbeddedTomcat
-->
<MLET CODE = "org.jboss.deployment.J2eeDeployer"
ARCHIVE="jboss.jar,../xml.jar" CODEBASE="../../lib/ext/">
<ARG TYPE="java.lang.String" VALUE="../tmp/deploy">
<ARG TYPE="java.lang.String" VALUE="EJB:service=ContainerFactory">
<ARG TYPE="java.lang.String" VALUE=":service=EmbeddedTomcat">
</MLET>
<!--
-- Uncomment this to add Tomcat support. Be sure to set your
'TOMCAT_HOME'
-- environment variable before starting JBoss.
-- MLET CODE = "org.jboss.tomcat.TomcatService" ARCHIVE="jboss.jar"
CODEBASE="../../lib/ext/">
-- /MLET>
-->
<!--
-- Uncomment this to add Tomcat support.
-- This service allows you to add and remove Tomcat contexts dynamically
-- through JMX. Note that tomcat's server.xml file will not be processed:
-- you can only use JMX to add contexts.
-- Be sure to set your 'TOMCAT_HOME' environment variable before starting
-- JBoss.
-- The ARG tag is the port to run tomcat on.
-- MLET CODE = "org.jboss.tomcat.EmbeddedTomcatService"
ARCHIVE="jboss.jar" CODEBASE="../../lib/ext/">
-- ARG TYPE="int" VALUE=8080>
-- /MLET>
-->
<MLET CODE = "org.jboss.spydermq.SpyderMQService" ARCHIVE="jboss.jar"
CODEBASE="../../lib/ext/">
</MLET>
-----Original Message-----
From: Aaron Mulder [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 14, 2000 4:19 PM
To: jBoss
Subject: RE: [jBoss-User] Minerva Question
This is not a request, Wes. I can't help you if you don't provide
your code and configuration files! All I can say is "Gosh, that's weird,
you must be doing something wrong because that doesn't happen for me."
So, please throw me a bone and maybe I can figure out what's happening!
BTW, I'm curious as to why PoolManager is involved at all... Are
you saying that you're using DriverManager.getConnection(...) instead of
looking up a DataSource like below? If so, why?
Aaron
On Tue, 14 Nov 2000, Wes Mckean wrote:
> I got this working using the JNDI example:
>
> javax.sql.DataSource ds = (javax.sql.DataSource)
> ctx.lookup("java:/mysource");
> Connection conn = ds.getConnection();
>
> So, I know I set jBoss up correctly. The problem would appear to be that
> the class org.jboss.minerva.datasource.PoolDriver and my own vendor's jar
> file are not accessible to the driver manager as called upon by the EJB.
>
> Wes
>
> -----Original Message-----
> From: Aaron Mulder [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, November 14, 2000 1:29 PM
> To: jBoss
> Subject: RE: [jBoss-User] Minerva Question
>
>
> Perhaps you could provide your complete jboss.conf, jboss.jcml,
> and jboss.properties files. The PoolDriver is loaded in the constructor
> for XAPoolDataSource, so I'm inclined to believe that you do not have an
> XAPoolDataSource configured correctly.
>
> Aaron
>
> On Mon, 13 Nov 2000, Wes Mckean wrote:
> > I have configured the jboss.conf and jboss.jcml properly. However, when
I
> > try to open a connection via the connection pool, I am getting a
> > ClassNotFoundException as follows:
> >
> > Class.forName("org.jboss.minerva.datasource.PoolDriver");
> >
> > When I leave this out, the DriverManager.getConnection throws a no
> suitable
> > driver exception.
> >
> > The jboss.properties file is loading the drivers correctly, because I
can
> > see the confirmation when jboss starts.
> >
> > As a minimum, I don't understand why
> org.jboss.minerva.datasource.PoolDriver
> > is not available as a class to my EJB, since I can see the JAR file
being
> > added to the CLASSPATH when jboss loads. I also don't understand why my
> > vendor's driver isn't available to my EJB since I put the JAR file in
the
> > lib\ext directory.
> >
> > Wes
> >
> > -----Original Message-----
> > From: Scot Bellamy [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, November 13, 2000 1:48 PM
> > To: jBoss
> > Subject: Re: [jBoss-User] Minerva Question
> >
> >
> >
> > Make sure you specify the fully qualified class name (including the
> > package) of your JDBC driver in the jdbc.Driver= property of
> > jboss.properties file.
> >
> > Also, make sure that your MLET entry in the jboss.conf includes the name
> > of the jar file containing your JDBC driver.
> >
> > Hope this helps.
> >
> > Scot.
> >
> > >>>>>>>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<<
> >
> > On 11/13/00, 12:37:31 PM, Wes Mckean <[EMAIL PROTECTED]> wrote
> regarding
> > [jBoss-User] Minerva Question:
> >
> >
> > > I am stumped. I added my vendors JAR file to the lib/ext directory.
> > When I
> > > try to load the driver, I get a class not found exception. I created
a
> > > connection pool using the driver. As far as I can tell, the
connection
> > pool
> > > loads fine. There are no errors on start up, and I can see it being
> > bound
> > > properly. When I try to create a connection using the PoolDriver (
> > > org.jboss.minerva.datasource.PoolDriver), am again getting a
> > > ClassNotFoundException.
> >
> > > Can anyone point me in the right direction as to what I am doing
wrong?
> >
> > > Wes
> >
> >
> > > --
> > > --------------------------------------------------------------
> > > To subscribe: [EMAIL PROTECTED]
> > > To unsubscribe: [EMAIL PROTECTED]
> > > Problems?: [EMAIL PROTECTED]
> >
> >
> > --
> > --------------------------------------------------------------
> > To subscribe: [EMAIL PROTECTED]
> > To unsubscribe: [EMAIL PROTECTED]
> > Problems?: [EMAIL PROTECTED]
> >
> >
> > --
> > --------------------------------------------------------------
> > To subscribe: [EMAIL PROTECTED]
> > To unsubscribe: [EMAIL PROTECTED]
> > Problems?: [EMAIL PROTECTED]
> >
>
>
>
> --
> --------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Problems?: [EMAIL PROTECTED]
>
>
> --
> --------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Problems?: [EMAIL PROTECTED]
>
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]