javax.resource.spi.SecurityException: Access to resource adapterXAhas been denied

Oracle Community | 3004 | 1 decade ago
  1. 0

    Unable to get the connections due to access denied error.

    Oracle Community | 1 decade ago | 3004
    javax.resource.spi.SecurityException: Access to resource adapterXAhas been denied
  2. 0

    Java - web.xml error-page not set correctly

    queforum.com | 11 months ago
    javax.resource.spi.SecurityException: You need to login! at de.bar.aip.web.AbstractView.init(AbstractView.java :40) at de.bar.aip.web.action.templates.TemplateActionsVie w.init(TemplateActionsView.java:58) at de.bar.aip.web.action.OwnActionsView.init(OwnActio nsView.java:20) at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:43)
  3. 0

    problem with Cics Transaction Gateway on Windows 2000 Server

    Google Groups | 1 decade ago | Max Bilato
    javax.resource.spi.SecurityException: CTG9631E: Error occurred during interactio n with CICS. Error Code=ECI_ERR_SECURITY_ERROR
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    When creating a datasource like this: {code} @DataSourceDefinition(name = "java:app/jdbc/myDatasource", className = "org.h2.jdbcx.JdbcDataSource", url = "jdbc:h2:/path/to/db;AUTO_SERVER=TRUE;MVCC=TRUE", user = "sa", password="" ) {code} or {code:xml|title=web.xml|borderStyle=solid} <data-source> <description>DataSource for H2</description> <name>java:app/jdbc/cdiDS</name> <class-name>org.h2.jdbcx.JdbcDataSource</class-name> <url>jdbc:h2:/path/to/db;AUTO_SERVER=TRUE;MVCC=TRUE</url> <user>sa</user> <password></password> </data-source> {code} Throws a nasty Exception: {noformat} Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.2.0.v20110202-r8913): org.eclipse.persistence.exceptions.DatabaseException Internal Exception: java.sql.SQLException: Error in allocating a connection. Cause: No PasswordCredential found Error Code: 0 at org.eclipse.persistence.exceptions.DatabaseException.sqlException(DatabaseException.java:309) at org.eclipse.persistence.sessions.JNDIConnector.connect(JNDIConnector.java:138) at org.eclipse.persistence.sessions.JNDIConnector.connect(JNDIConnector.java:94) at org.eclipse.persistence.sessions.DatasourceLogin.connectToDatasource(DatasourceLogin.java:162) at org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.loginAndDetectDatasource(DatabaseSessionImpl.java:592) at org.eclipse.persistence.internal.jpa.EntityManagerFactoryProvider.login(EntityManagerFactoryProvider.java:233) at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:394) at org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.getServerSession(EntityManagerFactoryImpl.java:185) at org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:242) at org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:230) at org.glassfish.persistence.jpa.PersistenceUnitLoader.doJava2DB(PersistenceUnitLoader.java:373) at org.glassfish.persistence.jpa.JPADeployer$2.visitPUD(JPADeployer.java:434) at org.glassfish.persistence.jpa.JPADeployer$PersistenceUnitDescriptorIterator.iteratePUDs(JPADeployer.java:486) at org.glassfish.persistence.jpa.JPADeployer.iterateInitializedPUsAtApplicationPrepare(JPADeployer.java:464) at org.glassfish.persistence.jpa.JPADeployer.event(JPADeployer.java:388) at org.glassfish.kernel.event.EventsImpl.send(EventsImpl.java:128) at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:452) at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240) at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:370) at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:360) at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:370) at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1067) at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:96) at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1247) at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1235) at com.sun.enterprise.admin.cli.embeddable.CommandExecutorImpl.executeCommand(CommandExecutorImpl.java:118) at com.sun.enterprise.admin.cli.embeddable.DeployerImpl.deploy(DeployerImpl.java:97) at com.sun.enterprise.admin.cli.embeddable.DeployerImpl.deploy(DeployerImpl.java:88) at org.glassfish.maven.PluginUtil.doDeploy(PluginUtil.java:106) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.glassfish.maven.AbstractDeployMojo.doDeploy(AbstractDeployMojo.java:171) at org.glassfish.maven.RunMojo.execute(RunMojo.java:62) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) Caused by: java.sql.SQLException: Error in allocating a connection. Cause: No PasswordCredential found at com.sun.gjc.spi.base.DataSource.getConnection(DataSource.java:117) at org.eclipse.persistence.sessions.JNDIConnector.connect(JNDIConnector.java:126) ... 54 more Caused by: javax.resource.spi.ResourceAllocationException: Error in allocating a connection. Cause: No PasswordCredential found at com.sun.enterprise.connectors.ConnectionManagerImpl.internalGetConnection(ConnectionManagerImpl.java:310) at com.sun.enterprise.connectors.ConnectionManagerImpl.allocateConnection(ConnectionManagerImpl.java:190) at com.sun.enterprise.connectors.ConnectionManagerImpl.allocateConnection(ConnectionManagerImpl.java:165) at com.sun.enterprise.connectors.ConnectionManagerImpl.allocateConnection(ConnectionManagerImpl.java:160) at com.sun.gjc.spi.base.DataSource.getConnection(DataSource.java:110) ... 55 more Caused by: com.sun.appserv.connectors.internal.api.PoolingException: No PasswordCredential found at com.sun.enterprise.resource.pool.datastructure.RWLockDataStructure.addResource(RWLockDataStructure.java:103) at com.sun.enterprise.resource.pool.ConnectionPool.addResource(ConnectionPool.java:282) at com.sun.enterprise.resource.pool.ConnectionPool.createResourceAndAddToPool(ConnectionPool.java:1497) at com.sun.enterprise.resource.pool.ConnectionPool.createResources(ConnectionPool.java:940) at com.sun.enterprise.resource.pool.ConnectionPool.initPool(ConnectionPool.java:230) at com.sun.enterprise.resource.pool.ConnectionPool.internalGetResource(ConnectionPool.java:511) at com.sun.enterprise.resource.pool.ConnectionPool.getResource(ConnectionPool.java:381) at com.sun.enterprise.resource.pool.PoolManagerImpl.getResourceFromPool(PoolManagerImpl.java:242) at com.sun.enterprise.resource.pool.PoolManagerImpl.getResource(PoolManagerImpl.java:167) at com.sun.enterprise.connectors.ConnectionManagerImpl.getResource(ConnectionManagerImpl.java:335) at com.sun.enterprise.connectors.ConnectionManagerImpl.internalGetConnection(ConnectionManagerImpl.java:304) ... 59 more Caused by: com.sun.appserv.connectors.internal.api.PoolingException: No PasswordCredential found at com.sun.enterprise.resource.pool.ConnectionPool.createSingleResource(ConnectionPool.java:920) at com.sun.enterprise.resource.pool.ConnectionPool.createResource(ConnectionPool.java:1181) at com.sun.enterprise.resource.pool.datastructure.RWLockDataStructure.addResource(RWLockDataStructure.java:98) ... 69 more Caused by: com.sun.appserv.connectors.internal.api.PoolingException: No PasswordCredential found at com.sun.enterprise.resource.allocator.ConnectorAllocator.createResource(ConnectorAllocator.java:168) at com.sun.enterprise.resource.pool.ConnectionPool.createSingleResource(ConnectionPool.java:903) ... 71 more Caused by: javax.resource.spi.SecurityException: No PasswordCredential found at com.sun.gjc.util.SecurityUtils.getPasswordCredential(SecurityUtils.java:111) at com.sun.gjc.spi.XAManagedConnectionFactory.createManagedConnection(XAManagedConnectionFactory.java:100) at com.sun.enterprise.resource.allocator.ConnectorAllocator.createResource(ConnectorAllocator.java:147) ... 72 more 05/06/2011 00:57:59 org.glassfish.persistence.jpa.PersistenceUnitLoader doJava2DB {noformat} The same thing happens if I don't specify a password. The funny thing is, this works as expected: {code:xml|title=glassfish-resources.xml|borderStyle=solid} <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE resources PUBLIC "-//GlassFish.org//DTD GlassFish Application Server 3.1 Resource Definitions//EN" "http://glassfish.org/dtds/glassfish-resources_1_5.dtd"> <resources> <jdbc-resource enabled="true" jndi-name="jdbc/myDatasource"pool-name="connectionPool"> <description/> </jdbc-resource> <jdbc-connection-pool datasource-classname="org.h2.jdbcx.JdbcDataSource" name="connectionPool" res-type="javax.sql.DataSource"> <property name="URL" value="jdbc:h2:jdbc:h2:/path/to/db;AUTO_SERVER=TRUE;MVCC=TRUE"/> <property name="User" value="sa"/> <property name="Password" value=""/> </jdbc-connection-pool> </resources> {code} I haven't tested with other databases, but a quick search on Google lead me to believe that this bug is also database agnostic. Can you guys confirm it?

    Java.net JIRA | 6 years ago | a.accioly
    java.sql.SQLException: Error in allocating a connection. Cause: No PasswordCredential found Error Code: 0
  6. 0

    Can't deploy my project on Glassfish

    Stack Overflow | 2 years ago
    javax.resource.spi.SecurityException: No password credential found

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. javax.resource.spi.SecurityException

      Access to resource adapterXAhas been denied

      at weblogic.connector.common.internal.ConnectionPool.getConnection()
    2. weblogic.connector.common
      ConnectionManagerImpl.allocateConnection
      1. weblogic.connector.common.internal.ConnectionPool.getConnection(ConnectionPool.java:1637)
      2. weblogic.connector.common.internal.ConnectionPoolManager.getConnection(ConnectionPoolManager.java:163)
      3. weblogic.connector.common.internal.ConnectionManagerImpl.allocateConnection(ConnectionManagerImpl.java:25)
      3 frames
    3. com.versant.connector
      ConnectionFactoryImpl.getConnection
      1. com.versant.connector.cci.ConnectionFactoryImpl.getConnection(ConnectionFactoryImpl.java:122)
      1 frame
    4. examples.xacase2
      ManagerBean_ixu7g_EOImpl_WLSkel.invoke
      1. examples.xacase2.ManagerBean.getConnection(ManagerBean.java:247)
      2. examples.xacase2.ManagerBean.createAccount(ManagerBean.java:84)
      3. examples.xacase2.ManagerBean_ixu7g_EOImpl.createAccount(ManagerBean_ixu7g_EOImpl.java:150)
      4. examples.xacase2.ManagerBean_ixu7g_EOImpl_WLSkel.invoke(Unknown Source)
      4 frames
    5. weblogic.rmi.internal
      BasicServerRef.invoke
      1. weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:346)
      1 frame
    6. weblogic.rmi.cluster
      ReplicaAwareServerRef.invoke
      1. weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java:114)
      1 frame
    7. weblogic.rmi.internal
      BasicServerRef$1.run
      1. weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:300)
      1 frame
    8. weblogic.security.service
      SecurityServiceManager.runAs
      1. weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:762)
      1 frame
    9. weblogic.rmi.internal
      BasicExecuteRequest.execute
      1. weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:295)
      2. weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:30)
      2 frames
    10. weblogic.kernel
      ExecuteThread.run
      1. weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)
      2. weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)
      2 frames