aspose file tools*
The moose likes JDBC and the fly likes Caused by: org.jboss.resource.JBossResourceException: No matching credentials in Subject! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Caused by: org.jboss.resource.JBossResourceException: No matching credentials in Subject!" Watch "Caused by: org.jboss.resource.JBossResourceException: No matching credentials in Subject!" New topic
Author

Caused by: org.jboss.resource.JBossResourceException: No matching credentials in Subject!

Javier Cristancho
Greenhorn

Joined: Feb 08, 2012
Posts: 1
Hi buddies, this is the issue

Caused by: org.jboss.resource.JBossResourceException: No matching credentials in Subject!

Complete log is


2012-02-08 17:45:56,401 WARN [org.hibernate.cfg.SettingsFactory] (http-0.0.0.0-8080-1) Could not obtain connection to query metadata
org.jboss.util.NestedSQLException: Unable to get managed connection for jdbc/dsHIMEDESA; - nested throwable: (javax.resource.ResourceException: Unable to get managed connection for jdbc/dsHIMEDESA)
at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:95)
at org.hibernate.connection.DatasourceConnectionProvider.getConnection(DatasourceConnectionProvider.java:91)
at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:112)
at org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2118)
at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2114)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1338)
at cuasirreales.hibernate.HibernateSessionFactory.rebuildSessionFactory(HibernateSessionFactory.java:55)
at cuasirreales.hibernate.HibernateSessionFactory.getSession(HibernateSessionFactory.java:41)
at cuasirreales.mapeo.siades.IdtUsers.obtenerPorNombre(IdtUsers.java:19)
at cuasirreales.web.AuthenticationListener.beforePhase(AuthenticationListener.java:32)
at com.sun.faces.lifecycle.Phase.handleBeforePhase(Phase.java:214)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:96)
at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:102)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:127)
at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:277)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:246)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at cuasirreales.hibernate.HibernateSessionRequestFilter.doFilter(HibernateSessionRequestFilter.java:26)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:301)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:183)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:95)
at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.internalProcess(ActiveRequestResponseCacheValve.java:74)
at org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.invoke(ActiveRequestResponseCacheValve.java:47)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:599)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:451)
at java.lang.Thread.run(Thread.java:636)
Caused by: javax.resource.ResourceException: Unable to get managed connection for jdbc/dsHIMEDESA
at org.jboss.resource.connectionmanager.BaseConnectionManager2.getManagedConnection(BaseConnectionManager2.java:441)
at org.jboss.resource.connectionmanager.TxConnectionManager.getManagedConnection(TxConnectionManager.java:424)
at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:496)
at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:941)
at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:89)
... 50 more
Caused by: org.jboss.resource.JBossResourceException: No matching credentials in Subject!
at org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnectionFactory.getConnectionProperties(BaseWrapperManagedConnectionFactory.java:506)
at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.createManagedConnection(LocalManagedConnectionFactory.java:171)
at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.createConnectionEventListener(InternalManagedConnectionPool.java:639)
at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.getConnection(InternalManagedConnectionPool.java:273)
at org.jboss.resource.connectionmanager.JBossManagedConnectionPool$BasePool.getConnection(JBossManagedConnectionPool.java:689)
at org.jboss.resource.connectionmanager.BaseConnectionManager2.getManagedConnection(BaseConnectionManager2.java:404)
... 54 more

Oracle-ds.xml

<local-tx-datasource>
<jndi-name>jdbc/dsHIMEDESA</jndi-name>
<connection-url>jdbcracle:thin:@172.16.2.29:1521:dbprueba</connection-url>
<driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
<user-name>desa_sshm</user-name>
<password>sshm2011</password>
<use-java-context>false</use-java-context>
<valid-connection-checker-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleValidConnectionChecker</valid-connection-checker-class-name>
<exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter</exception-sorter-class-name>
<metadata>
<type-mapping>Oracle9i</type-mapping>
</metadata>
<max-pool-size>10</max-pool-size>
<min-pool-size>5</min-pool-size>
<security-domain>prueba</security-domain>
</local-tx-datasource>

Jboss-config.xml

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE jboss-web PUBLIC "-//JBoss//DTD Web Application 2.3V2//EN" "http://www.jboss.org/j2ee/dtd/jboss-web_4_0.dtd">
<jboss-web>
<security-domain>prueba</security-domain>
<context-root>/CUASIRREALES</context-root>
<resource-ref>
<res-ref-name>jdbc/dsHIMEDESA</res-ref-name>
<jndi-name>java:jdbc/dsHIMEDESA</jndi-name>
<!--jndi-name>java:jdbc/dsHIMEDESA</jndi-name-->
<!--jndi-name>java:comp/env/jdbc/dsHIMEDESA</jndi-name-->
<!--jndi-name>jdbc/dsHIMEDESA</jndi-name-->
<!--jndi-name>dsHIMEDESA</jndi-name-->
</resource-ref>

</jboss-web>

web.xml
...
<!-- Recurso agregado para el DataSource-->
<resource-ref>
<description>DB Connection dsHIMEDESA</description>
<res-ref-name>jdbc/dsHIMEDESA</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>

...

Please help us, we have tried changing the jar lib... currently we are using ojdbc14.jar and javassist.jar too.

Server : Jboss Redhat 5.1.2
DB: Oracle 10g

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Caused by: org.jboss.resource.JBossResourceException: No matching credentials in Subject!