-
1. Re: Failed to register driver for: com.sybase.jdbc2.jdbc.Syb
alexb Aug 16, 2002 8:29 AM (in response to nikoleta)I'm working on the same thing I found an example of a deployment xml for sybase maybe this will help.
-
2. Re: Failed to register driver for: com.sybase.jdbc2.jdbc.Syb
nikoleta Aug 16, 2002 9:41 AM (in response to nikoleta)Thanks!
I found that xml file earlier when I struggled with the datasource configuration. I think I finally succeeded.
It seems to me that the problem is somewhere else, maybe classpath...,
although I've set it and I put the driver classes where they should be. -
3. Re: Failed to register driver for: com.sybase.jdbc2.jdbc.Syb
nikoleta Aug 16, 2002 1:32 PM (in response to nikoleta)I found it at last!!!
For all that you want to know the clue to my problem here it is:
Do not ever write *-service.xml like that:
<config-property name="DriverClass" type="java.lang.String">
com.sybase.jdbc2.jdbc.SybDriver
</config-property>
(on different rows)
I think that the parser or God knows what takes the String for the driver class name together with the hidden symbols like carriage return or tabulation.
Write it that way:
<config-property name="DriverClass" type="java.lang.String">com.sybase.jdbc2.jdbc.SybDriver</config-property>
//everything on the same row
I hope that will help the rest having those exception!
Here is my sybase-service.xml file -
4. Re: Failed to register driver for: com.sybase.jdbc2.jdbc.Syb
nikoleta Aug 16, 2002 1:34 PM (in response to nikoleta)<?xml version="1.0" encoding="UTF-8"?>
<!-- ===================================================================== -->
<!-- -->
<!-- JBoss Server Configuration -->
<!-- -->
<!-- ===================================================================== -->
<!-- ======================================================================-->
<!-- New ConnectionManager setup for Sybase ASE/ASA jConnect driver -->
<!-- Build jmx-api (build/build.sh all) and view for config documentation -->
<!-- ===================================================================== -->
<!--classpath ARCHIVE="jconn2.jar" CODEBASE="../lib/" /-->
<!--uncomment out this line if you are using the SybaseDSRealm above
SybaseDbRealm
-->
<depends optional-attribute-name="ManagedConnectionFactoryName">
<!--embedded mbean-->
SybaseDB
<!-- The Sybase jConnect URL for the database.
NOTE: The hostname and port of made up values. The optional
database name is provided, as well as some additinal Driver
parameters.
-->
<config-property name="ConnectionURL" type="java.lang.String">
jdbc:sybase:Tds:Mila:5200/oktabit
</config-property>
<config-property name="DriverClass" type="java.lang.String">com.sybase.jdbc2.jdbc.SybDriver</config-property>
<config-property name="UserName" type="java.lang.String">admin</config-property>
<config-property name="Password" type="java.lang.String">admin</config-property>
<!--Below here are advanced properties -->
<!--hack-->
<depends optional-attribute-name="OldRarDeployment">
jboss.jca:service=RARDeployment,name=JBoss LocalTransaction JDBC Wrapper
<depends optional-attribute-name="ManagedConnectionPool">
<!--embedded mbean-->
0
10
5000
15
ByContainer
<depends optional-attribute-name="CachedConnectionManager">
jboss.jca:service=CachedConnectionManager
<depends optional-attribute-name="JaasSecurityManagerService">
jboss.security:name=JaasSecurityManager
java:/TransactionManager
<!--make the rar deploy! hack till better deployment-->
jboss.jca:service=RARDeployer -
5. Re: Failed to register driver for: com.sybase.jdbc2.jdbc.Syb
alexb Aug 20, 2002 2:43 PM (in response to nikoleta)I was wondering at the line
<config-property name="ConnectionURL" type="java.lang.String">jdbc:sybase:Tds:light:2110/oktabit</config-property>
Is oktabit the database name -
6. Re: Failed to register driver for: com.sybase.jdbc2.jdbc.Syb
alexb Aug 20, 2002 2:45 PM (in response to nikoleta)I was wondering at the line
<config-property name="ConnectionURL" type="java.lang.String">jdbc:sybase:Tds:light:2110/oktabit</config-property>
Is oktabit the database name.
thanks