[jboss-user] [JCA/JBoss] - security-domian ignored in 5.0.0.beta4

PeterJ do-not-reply at jboss.com
Fri May 16 16:08:31 EDT 2008


I followed the steps at  for providing an encrypted password for a database connection. While it works for for JBossAS 4.2.2, it does not work for 5.0.0.beta4:

11:43:45,433 WARN  [JBossManagedConnectionPool] Throwable while attempting to get a new connection: null
org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (org.postgresql.util.PSQLException: FATAL: no PostgreSQL user name s
pecified in startup packet)
        at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.getLocalManagedConnection(LocalManagedConnectionFactory.java:214)
        at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.createManagedConnection(LocalManagedConnectionFactory.java:195)
        at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.createConnectionEventListener(InternalManagedConnectionPool.java:590)
        at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.getConnection(InternalManagedConnectionPool.java:254)
. . .
Caused by: org.postgresql.util.PSQLException: FATAL: no PostgreSQL user name specified in startup packet
        at org.postgresql.core.v3.ConnectionFactoryImpl.doAuthentication(ConnectionFactoryImpl.java:275)
        at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:94)
        at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:66)
        at org.postgresql.jdbc2.AbstractJdbc2Connection.(AbstractJdbc2Connection.java:125)
        at org.postgresql.jdbc2.Jdbc2Connection.(Jdbc2Connection.java:24)
        at org.postgresql.Driver.makeConnection(Driver.java:382)
        at org.postgresql.Driver.connect(Driver.java:260)
        at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.getLocalManagedConnection(LocalManagedConnectionFactory.java:206)
        ... 68 more

I did see JIRA http://jira.jboss.com/jira/browse/JBAS-4720, but that only involves getting the security-domian setting into the metadata (which appears to be happening), but there is no code that I can see that interprets the security-domian setting and extracts the user-name and password.

Should I open a JIRA?


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4151544#4151544

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4151544



More information about the jboss-user mailing list