[JCA/JBoss] - security-domian ignored in 5.0.0.beta4
by PeterJ
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
18 years, 1 month
[JBoss Tools (users)] - Problems to initialize jboss server.
by luiszerba
Hi , Iôm having an issue to initialize my jboss, server , Iôm receiving this message, I donôt know what to do, anyone can help me ?
Thanks.
|
| --- MBeans waiting for other MBeans ---
| ObjectName: jboss.j2ee:service=EJB3,module=RFID-ejb.jar
| State: FAILED
| Reason: java.lang.RuntimeException: Interceptor class not found: org.jboss.seam.ejb.SeamInterceptor
|
| ObjectName: persistence.units:ear=RFID-ear.ear,jar=RFID-ejb.jar,unitName=RFID
| State: NOTYETINSTALLED
| I Depend On:
| jboss.jca:name=RFIDDatasource,service=DataSourceBinding
|
| --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
| ObjectName: jboss.j2ee:service=EJB3,module=RFID-ejb.jar
| State: FAILED
| Reason: java.lang.RuntimeException: Interceptor class not found: org.jboss.seam.ejb.SeamInterceptor
|
| ObjectName: jboss.jca:name=RFIDDatasource,service=DataSourceBinding
| State: NOTYETINSTALLED
| Depends On Me:
| persistence.units:ear=RFID-ear.ear,jar=RFID-ejb.jar,unitName=RFID
|
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4151534#4151534
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4151534
18 years, 1 month
[Messaging, JMS & JBossMQ] - Re: Can the Code get a QueueConnection objcect per request
by shetty_ritesh
Adrian, thanks for your inputs.
If i use the following jboss resource adaptor connection pooling mechanism is it correct. We are currently using the jndi name "ConnectionFactory" for looking up the connection . Will this be ok if i get the connection every request and then close it (as i am using the jca resource adaptor)
Also am a bit conused as to whould i be using "ConnectionFactory" or "java:/JmsXA" to look up for the connection
Your anwer is greatly appreciated..
The file is jms-ds.xml*****************
<!-- The JMS provider loader -->
DefaultJMSProvider
org.jboss.jms.jndi.JNDIProviderAdapter
<!-- The combined connection factory -->
java:/XAConnectionFactory
<!-- The queue connection factory -->
java:/XAConnectionFactory
<!-- The topic factory -->
java:/XAConnectionFactory
<!-- Uncomment to use HAJNDI to access JMS
java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
java.naming.provider.url=localhost:1100
-->
<!-- The server session pool for Message Driven Beans -->
<depends optional-attribute-name="XidFactory">jboss:service=XidFactory
StdJMSPool
org.jboss.jms.asf.StdServerSessionPoolFactory
<!-- JMS XA Resource adapter, use this to get transacted JMS in beans -->
<tx-connection-factory>
<jndi-name>JmsXA</jndi-name>
<xa-transaction/>
<rar-name>jms-ra.rar</rar-name>
<connection-definition>org.jboss.resource.adapter.jms.JmsConnectionFactory</connection-definition>
<config-property name="SessionDefaultType" type="java.lang.String">javax.jms.Topic</config-property>
<config-property name="JmsProviderAdapterJNDI" type="java.lang.String">java:/DefaultJMSProvider</config-property>
<max-pool-size>20</max-pool-size>
<security-domain-and-application>JmsXARealm</security-domain-and-application>
</tx-connection-factory>
Also the uil2-service.xml file has folowing entries (same as per j boss docs)
<!-- JBossMQ using the Unified Invocation Layer
All communication uses one socket connection -->
<!-- The server chain -->
<depends optional-attribute-name="Invoker">jboss.mq:service=Invoker
<!-- JNDI binding -->
ConnectionFactory
<!-- JNDI binding for XA -->
XAConnectionFactory
<!-- The bind address -->
${jboss.bind.address}
<!-- The bind port -->
8093
<!-- The ping period in millis -->
60000
<!-- Whether tcp/ip does not wait for buffer fills -->
true
<!-- Used to disconnect the client on the serverside if there is no activity -->
<!-- Ensure this is greater than the ping period -->
120000
<!-- Used to disconnect the client on the clientside if there is no activity -->
<!-- Ensure this is greater than the ping period -->
120000
<!-- The size of the buffer (in bytes) wrapping the socket -->
<!-- The buffer is flushed after each request -->
2048
<!-- Large messages may block the ping/pong -->
<!-- A pong is simulated after each chunk (in bytes) for both reading and writing -->
<!-- It must be larger than the buffer size -->
1000000
<!-- Aliases UIL -> UIL2 for backwards compatibility
the deprecated UIL deployment can be found in docs/examples/jca -->
UILConnectionFactory
ConnectionFactory
jboss:service=Naming
UILXAConnectionFactory
XAConnectionFactory
jboss:service=Naming
UIL2ConnectionFactory
ConnectionFactory
jboss:service=Naming
UIL2XAConnectionFactory
XAConnectionFactory
jboss:service=Naming
<!--
Two JNDI bindings that act like jms client connections remotely
but have j2ee defined semantics inside JBoss
-->
QueueConnectionFactory
ConnectionFactory
java:/JmsXA
jboss:service=Naming
TopicConnectionFactory
ConnectionFactory
java:/JmsXA
jboss:service=Naming
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4151530#4151530
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4151530
18 years, 1 month