Try to connect the db from a simple java client first. You will receive
better error messages.


i.e.


  public static void main(String _[]) {
          log("Downloading the driver...");
    try {
    
      Class.forName("com.sybase.jdbc2.jdbc.SybDriver");
      connection =
DriverManager.getConnection("jdbc:sybase:Tds:130.21.209.77:4100/eacm","eacm"
,"pwd");
      statement = connection.createStatement();
    } catch (Exception e) {
      e.printStackTrace();
    }
    ....
        
  }

this is our configuration: 

jboss.jcml



<!-- JDBC -->
  <mbean code="org.jboss.jdbc.JdbcProvider"
name="DefaultDomain:service=JdbcProvider">
     <attribute name="Drivers">com.sybase.jdbc2.jdbc.SybDriver</attribute>
  </mbean>


  <mbean code="org.jboss.jdbc.XADataSourceLoader"
name="DefaultDomain:service=XADataSource,name=CreditDS">
   <attribute name="PoolName">CreditDS</attribute>
    <attribute
name="DataSourceClass">org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImp
l</attribute>
    <attribute name="Properties"></attribute>
    <attribute
name="URL">jdbc:sybase:Tds:130.21.209.77:4100/eacm</attribute>
    <attribute name="Password">pwd</attribute>
    <attribute name="JDBCUser">eacm</attribute>
    <attribute name="MaxSize">10</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>

 

> -----Original Message-----
> From: Mina vain [SMTP:[EMAIL PROTECTED]]
> Sent: 02 July 2001 15:16
> To:   [EMAIL PROTECTED]
> Subject:      [JBoss-user] Problems with Sybase jconn2.jar driver,
> java.lang.NullPointerException
> 
> Hi all!
> 
> I have some problems with sybase jconn2.jar driver.
> I have managed to install driver but something is
> still wrong.
> When JBOSS is starting, following informamation is
> printed to screen:
> 
> 
> [SybaseDS] Initializing
> [SybaseDS] Initialized
> [DefaultDS] Initializing
> [DefaultDS] Initialized
> [JDBC provider] Initializing
> [JDBC provider] Loaded
> JDBC-driver:com.sybase.jdbc2.jdbc.SybDriver
> [JDBC provider] Initialized[
> 
> 
> 
> [SybaseDS] Starting
> [SybaseDS] XA Connection pool SybaseDS bound to
> java:/SybaseDS
> [SybaseDS] Stopped
> [SybaseDS] java.lang.NullPointerException
> [SybaseDS]      at
> org.opentools.minerva.jdbc.xa.XAPoolDataSource.getConnection(XAPoolDataSou
> rce.java:165)
> [SybaseDS]      at
> org.jboss.jdbc.XADataSourceLoader.startService(XADataSourceLoader.java:330
> )
> [SybaseDS]      at
> org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:93)
> [SybaseDS]      at
> java.lang.reflect.Method.invoke(Native Method)
> [SybaseDS]      at
> com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
> [SybaseDS]      at
> com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
> [SybaseDS]      at
> org.jboss.util.ServiceControl.start(ServiceControl.java:97)
> [SybaseDS]      at
> java.lang.reflect.Method.invoke(Native Method)
> [SybaseDS]      at
> com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
> [SybaseDS]      at
> com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
> [SybaseDS]      at org.jboss.Main.<init>(Main.java:217)
> [SybaseDS]      at org.jboss.Main$1.run(Main.java:121)
> [SybaseDS]      at
> java.security.AccessController.doPrivileged(Native
> Method)
> [SybaseDS]      at org.jboss.Main.main(Main.java:117)
> [Service Control] Could not start
> DefaultDomain:service=XADataSource,name=SybaseDB
> [Service Control] java.lang.NullPointerException
> 
> Instantdb and Hypersonic are also installed, but I
> don't think that is problem.
> 
> 
> 
> 
> 
> 
> 
> 
> 
> _ _ _
> Vastaa ja voita puhelin! Osallistu ioQuiz kilpailuun. 
> Ohjeet saat täältä www.iobox.fi
> 
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user


If you have received this e-mail in error or wish to read our e-mail disclaimer 
statement and monitoring policy, please refer to
http://www.drkw.com/disc/email/ or contact the sender.

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

Reply via email to