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]