Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem in getting database connection using Jboss

 
RajendraKr Kumar
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,
I am facing some problems while connecting to sybase through Jboss.The sybase version used is 12.5.2.Also i have put the driver jar jconn3.jar in the server/default/lib folder and sysbase-ds.xml in deploy folder. Here is the exception i see on Jboss :


13:28:19,782 WARN [JBossManagedConnectionPool] Throwable while attempting to ge
t a new connection: null
org.jboss.resource.JBossResourceException: Could not create connection; - nested
throwable: (java.sql.SQLException: JZ00L: Login failed. Examine the SQLWarning
s chained to this exception for the reason(s).) at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.c
reateManagedConnection(LocalManagedConnectionFactory.java:177) at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.cr
eateConnectionEventListener(InternalManagedConnectionPool.java:539)

My sybase-ds.xml is like this :



Surprising is that the above does work on other systems but not on mine.What could be the reason?.Any help is highly appreciated.
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by RajendraKr Kumar:


13:28:19,782 WARN [JBossManagedConnectionPool] Throwable while attempting to ge
t a new connection: null
org.jboss.resource.JBossResourceException: Could not create connection; - nested
throwable: (java.sql.SQLException: JZ00L: Login failed. Examine the SQLWarning
s chained to this exception for the reason(s).) at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.c
reateManagedConnection(LocalManagedConnectionFactory.java:177) at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.cr
eateConnectionEventListener(InternalManagedConnectionPool.java:539)



The log shows that the exception is thrown from the database server. It mentions that your login failed, are you specifying the correct username and password?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic