No fun.  Well, jBoss should include jdbc2_0-stdext.jar in the
jboss/lib/ext directory.  Is this not the case for you?  Of course, it may
also be that Sybase includes this code in their driver JAR too, and that
may be your problem - I know Oracle does.  Check the JAR.
        In any case, I don't believe you want to put any of this in
java/jre/lib/ext - and here's why: Everything on the Java system classpath
is loaded higher in the ClassLoader hierarchy than the jBoss code and the
EJB code.  So that makes for a one-way path - the jBoss code can access
the System code, but not vice versa (you can't generally access things
loaded in a child ClassLoader, only a parent).  And you never know when
the Java library might try to instantiate a driver class or something that
then blows up.
        So, a couple things to try: 1) move all J2EE libraries from
java/jre/lib/ext to jboss/lib/ext.  2) Check for and remove javax.sql
classes from Sybase library.

        I'll try to make the configuration service output a more useful
error message.
        Also, how much do you know about Sybase?  I just downloaded and
installed Sybase ASA 11.9.2 for Linux, but I have no idea how to create a
database, load some tables, and start it up.  If you can get me through
that, I'd appreciate it, and then I can work through this with you and
iron out a good Sybase configuration.

Aaron


On Mon, 9 Oct 2000, Jon Finanger wrote:
> Well,
> Regarding my last error(se below) I wonder if there is something veeery
> wrong with my understanding here.
> Depending on if the MLET Code(below) is first(error message 2) or last(error
> messsage 1) in the jboss.conf file, i get two different errormessages(see
> below).
> As i understand it the JDBC driver is automatically bound to JNDI when the
> driver(jconn2.jar) is present in jboss.properties. Right?
> So, when i define an XADataSource its required that sybase supports this,
> and they apparently do (SybXADataSource.class). I've also tried to use the
> default(org.jboss.minerva.xa.XADataSourceImpl) with the same errormessages.
> This NoClassDefFoundError: javax/sql/DataSource error looks like the
> jdbc2_0-stdext.jar file is not in classpath - but i've verified its in:
> C:\jdk1.3\jre\lib\ext.
> Well, i really dont know what i'm doing wrong this time(either :). Any
> ideas?
> (maybe i dont need the XA part if i dont need distr.transactions...)
> 
> /Jon
> 
> 
> **************************************************************
> <!-- MLET CODE -->
> <MLET CODE = "org.jboss.jdbc.XADataSourceLoader"
> ARCHIVE="jboss.jar,jconn2.jar" CODEBASE="../lib/ext/">
>    <ARG TYPE="java.lang.String" VALUE="Sybase">
>    <ARG TYPE="java.lang.String"
> VALUE="com.sybase.jdbc2.jdbc.SybXADataSource">
> </MLET>
> **************************************************************
> <!-- MBEAN NAME -->
> <mbean name="DefaultDomain:service=XADataSource,name=SybaseDB">
>   <attribute name="URL">jdbc:sybase:Tds:localhost:2638/asatest</attribute>
>   <attribute name="JDBCUser">dba</attribute>
>   <attribute name="Password">sql</attribute>
> </mbean>
> **************************************************************
> <!-- ERROR MESSAGE 1 -->
> [Default] javax.management.RuntimeMBeanException: RuntimeException thrown in
> the
>  MBean's setter
> [Default]       at
> com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServ
> erImpl.java:1417)
> [Default]       at
> com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServ
> erImpl.java:1331)
> [Default]       at
> org.jboss.configuration.ConfigurationService.load(Configurati
> onService.java:141)
> [Default]       at java.lang.reflect.Method.invoke(Native Method)
> [Default]       at
> com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl
> .java:1628)
> [Default]       at
> com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl
> .java:1523)
> [Default]       at org.jboss.Main.<init>(Main.java:143)
> [Default]       at org.jboss.Main.<init>(Main.java:94)
> [Default]       at org.jboss.Main$1.run(Main.java:84)
> [Default]       at java.security.AccessController.doPrivileged(Native
> Method)
> [Default]       at org.jboss.Main.main(Main.java:75)
> [Default] javax.management.RuntimeMBeanException: RuntimeException thrown in
> the
>  MBean's setter
>         at
> com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.j
> ava:1417)
>         at
> com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.j
> ava:1331)
>         at
> org.jboss.configuration.ConfigurationService.load(ConfigurationServic
> e.java:141)
>         at java.lang.reflect.Method.invoke(Native Method)
>         at
> com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:16
> 28)
>         at
> com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
> 23)
>         at org.jboss.Main.<init>(Main.java:143)
>         at org.jboss.Main.<init>(Main.java:94)
>         at org.jboss.Main$1.run(Main.java:84)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at org.jboss.Main.main(Main.java:75)
> **************************************************************
> <!-- ERROR MESSAGE 2 -->
> [J2ee deployer] no config file found...
> [J2ee deployer] Initialized
> java.lang.NoClassDefFoundError: javax/sql/DataSource
>         at java.lang.ClassLoader.defineClass0(Native Method)
>         at java.lang.ClassLoader.defineClass(Unknown Source)
>         at java.security.SecureClassLoader.defineClass(Unknown Source)
>         at java.net.URLClassLoader.defineClass(Unknown Source)
>         at java.net.URLClassLoader.access$100(Unknown Source)
>         at java.net.URLClassLoader$1.run(Unknown Source)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(Unknown Source)
>         at javax.management.loading.MLet.findClass(MLet.java:775)
>         at java.lang.ClassLoader.loadClass(Unknown Source)
>         at java.lang.ClassLoader.loadClass(Unknown Source)
>         at java.lang.ClassLoader.loadClassInternal(Unknown Source)
>         at
> org.jboss.jdbc.XADataSourceLoader.<init>(XADataSourceLoader.java:43)
>         at java.lang.reflect.Constructor.newInstance(Native Method)
>         at
> com.sun.management.jmx.MBeanServerImpl.internal_instantiate(MBeanServ
> erImpl.java:2210)
>         at
> com.sun.management.jmx.MBeanServerImpl.createMBean(MBeanServerImpl.ja
> va: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:119)
>         at org.jboss.Main.<init>(Main.java:94)
>         at org.jboss.Main$1.run(Main.java:84)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at org.jboss.Main.main(Main.java:75)
> [Naming] Starting
> [Naming] Started
> 
> 
> 
> --
> --------------------------------------------------------------
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> Problems?:           [EMAIL PROTECTED]
> 



--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to