1 Reply Latest reply on Jan 10, 2011 4:59 AM by Wolf-Dieter Fink

    jboss datasource

    dee bharam Newbie

      Hello,

      I am trying to configure datasource in jboss6.0 with oracle11g. I took following steps

      1) Download jboss 6.0

      2) download java 1.6

      3) download oracle jdbc driver ojdbc6.jar copied this file in C:\jboss-6.0.0.Final\server\default\lib

      4) created oracle-ds.xml under C:\jboss-6.0.0.Final\server\default\deploy

      5) placed necessary configuration.

      6) started jboss server

      7) run http://localhost:8080/admin-console

      8) and on this when I try to test connection I get following error.

       

      any help will be very helpful.

       

       

      16:59:06,218 ERROR [org.jboss.security.auth.spi.UsersRolesLoginModule] Failed to load users/passwords/role files:

      java.io.IOException: No properties file: users.properties or defaults: defaultUsers.properties found

      at org.jboss.security.auth.spi.Util.loadProperties(

      Util.java:201) [:3.0.0.CR2]

      at org.jboss.security.auth.spi.UsersRolesLoginModule.loadUsers(

      UsersRolesLoginModule.java:186) [:3.0.0.CR2]

      at org.jboss.security.auth.spi.UsersRolesLoginModule.createUsers(

      UsersRolesLoginModule.java:200) [:3.0.0.CR2]

      at org.jboss.security.auth.spi.UsersRolesLoginModule.initialize(

      UsersRolesLoginModule.java:127) [:3.0.0.CR2]

      at sun.reflect.NativeMethodAccessorImpl.invoke0(

      Native Method) [:1.6.0_21]

      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) [:1.6.0_21]

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) [:1.6.0_21]

      at java.lang.reflect.Method.invoke(Unknown Source) [:1.6.0_21]

      at javax.security.auth.login.LoginContext.invoke(Unknown Source) [:1.6.0_21]

      at javax.security.auth.login.LoginContext.access$000(Unknown Source) [:1.6.0_21]

      at javax.security.auth.login.LoginContext$4.run(Unknown Source) [:1.6.0_21]

      at java.security.AccessController.doPrivileged(

      Native Method) [:1.6.0_21]

      at javax.security.auth.login.LoginContext.invokePriv(Unknown Source) [:1.6.0_21]

      at javax.security.auth.login.LoginContext.login(Unknown Source) [:1.6.0_21]

      at org.jboss.security.plugins.auth.JaasSecurityManagerBase.defaultLogin(

      JaasSecurityManagerBase.java:553) [:3.0.0.CR2]

      at org.jboss.security.plugins.auth.JaasSecurityManagerBase.authenticate(

      JaasSecurityManagerBase.java:487) [:3.0.0.CR2]

      at org.jboss.security.plugins.auth.JaasSecurityManagerBase.isValid(

      JaasSecurityManagerBase.java:365) [:3.0.0.CR2]

      at org.jboss.security.plugins.JaasSecurityManager.isValid(

      JaasSecurityManager.java:160) [:6.0.0.Final]

      at org.jboss.security.integration.JBossSecuritySubjectFactory.createSubject(

      JBossSecuritySubjectFactory.java:90) [:6.0.0.Final]

      at org.jboss.resource.connectionmanager.JBossManagedConnectionPool.testConnection(

      JBossManagedConnectionPool.java:389) [:6.0.0.Final]

      at sun.reflect.NativeMethodAccessorImpl.invoke0(

      Native Method) [:1.6.0_21]

      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) [:1.6.0_21]

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) [:1.6.0_21]

      at java.lang.reflect.Method.invoke(Unknown Source) [:1.6.0_21]

      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(

      ReflectedDispatcher.java:157) [:6.0.0.GA]

      at org.jboss.mx.server.Invocation.dispatch(

      Invocation.java:96) [:6.0.0.GA]

      at org.jboss.mx.server.Invocation.invoke(

      Invocation.java:88) [:6.0.0.GA]

      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(

      AbstractMBeanInvoker.java:271) [:6.0.0.GA]

      at org.jboss.mx.server.MBeanServerImpl.invoke(

      MBeanServerImpl.java:670) [:6.0.0.GA]

      at org.jboss.system.microcontainer.ServiceControllerContext.invoke(

      ServiceControllerContext.java:194) [:2.2.0.GA]

      at org.jboss.kernel.plugins.registry.basic.LifecycleAwareKernelBus$1.dispatch(

      LifecycleAwareKernelBus.java:61) [jboss-kernel.jar:2.2.0.GA]

      at org.jboss.kernel.plugins.registry.basic.LifecycleAwareKernelBus$1.dispatch(

      LifecycleAwareKernelBus.java:58) [jboss-kernel.jar:2.2.0.GA]

      at org.jboss.kernel.plugins.registry.basic.BasicKernelBus.execute(

      BasicKernelBus.java:71) [jboss-kernel.jar:2.2.0.GA]

      at org.jboss.kernel.plugins.registry.basic.LifecycleAwareKernelBus.invoke(

      LifecycleAwareKernelBus.java:57) [jboss-kernel.jar:2.2.0.GA]

      at org.jboss.profileservice.management.KernelBusRuntimeComponentDispatcher.invoke(

      KernelBusRuntimeComponentDispatcher.java:85) [:0.2.2]

      at org.jboss.profileservice.plugins.management.util.AbstractManagedComponentRuntimeDispatcher.invoke(

      AbstractManagedComponentRuntimeDispatcher.java:135) [:0.2.2]

      at org.jboss.profileservice.management.DelegatingComponentDispatcherImpl.invoke(

      DelegatingComponentDispatcherImpl.java:93) [:0.2.2]

      at sun.reflect.GeneratedMethodAccessor515.invoke(Unknown Source) [:1.6.0_21]

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) [:1.6.0_21]

      at java.lang.reflect.Method.invoke(Unknown Source) [:1.6.0_21]

      at org.jboss.aop.Dispatcher.invoke(

      Dispatcher.java:121) [jboss-aop.jar:2.2.1.GA]

      at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(

      AOPRemotingInvocationHandler.java:82) [:1.0.1.GA]

      at org.jboss.profileservice.remoting.ProfileServiceInvocationHandler.invoke(

      ProfileServiceInvocationHandler.java:99) [:6.0.0.Final]

      at org.jboss.remoting.ServerInvoker.invoke(

      ServerInvoker.java:898) [:6.0.0.Final]

      at org.jboss.remoting.transport.local.LocalClientInvoker.invoke(

      LocalClientInvoker.java:106) [:6.0.0.Final]

      at org.jboss.remoting.Client.invoke(

      Client.java:1961) [:6.0.0.Final]

      at org.jboss.remoting.Client.invoke(

      Client.java:804) [:6.0.0.Final]

      at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(

      InvokeRemoteInterceptor.java:60) [:1.0.1.GA]

      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(

      MethodInvocation.java:102) [jboss-aop.jar:2.2.1.GA]

      at org.jboss.aspects.remoting.MergeMetaDataInterceptor.invoke(

      MergeMetaDataInterceptor.java:74) [:1.0.1.GA]

      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(

      MethodInvocation.java:102) [jboss-aop.jar:2.2.1.GA]

      at org.jboss.aspects.security.SecurityClientInterceptor.invoke(

      SecurityClientInterceptor.java:65) [:1.0.1]

      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(

      MethodInvocation.java:102) [jboss-aop.jar:2.2.1.GA]

      at org.jboss.aop.generatedproxies.AOPProxy$1.invoke(AOPProxy$1.java) [:]

      at org.jboss.profileservice.management.client.ManagedOperationDelegate.invoke(

      ManagedOperationDelegate.java:63) [:6.0.0.Final]

      at org.rhq.plugins.jbossas5.ManagedComponentComponent.invokeOperation(

      ManagedComponentComponent.java:216)

      at sun.reflect.NativeMethodAccessorImpl.invoke0(

      Native Method) [:1.6.0_21]

      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) [:1.6.0_21]

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) [:1.6.0_21]

      at java.lang.reflect.Method.invoke(Unknown Source) [:1.6.0_21]

      at org.rhq.core.pc.inventory.ResourceContainer$ComponentInvocationThread.call(

      ResourceContainer.java:525)

      at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) [:1.6.0_21]

      at java.util.concurrent.FutureTask.run(Unknown Source) [:1.6.0_21]

      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) [:1.6.0_21]

      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [:1.6.0_21]

      at java.lang.Thread.run(Unknown Source) [:1.6.0_21]

       

        • 1. jboss datasource
          Wolf-Dieter Fink Master

          Looks like a problem with the authentication of the admin console and not with your datasource.

          Do you can find the datasource within the logfile? There should be something like deploy successful.

           

          If this is successful, you have to look how the admin console must be configured, secure with this property file or unsecured.