[jboss-user] [Datasource Configuration] New message: "Re: How to configure Oracle with my application in jboss 5.0"

Anand Kumar do-not-reply at jboss.com
Thu Feb 11 01:34:54 EST 2010


User development,

A new message was posted in the thread "How to configure Oracle with my application in jboss 5.0":

http://community.jboss.org/message/525655#525655

Author  : Anand Kumar
Profile : http://community.jboss.org/people/akstifr

Message:
--------------------------------------------------------------
Thank you once again for your reply 
 
As you told, i have started from the scratch and installed jboss 5.0 again on the system and created a file called Oracle-ds.xml and placed in the deploy folder.
 
I have created Oracle-ds.xml from http://community.jboss.org/docs/DOC-12246 using *Local-TX syntax* *and started Jboss server.*
 
It worked fine and i was able to see that Oracle has been incoperted in Jboss by using jboss.jdbc in the jmx-console.
 
But the problem came now that i was unable to run my application in Jboss 5.0 and it was giving errors like in the console window when i am running the application which has a login form as it startup:
 
11:59:37,718 INFO  [ProxyFactory] Bound EJB Home 'CommandExecutor' to jndi 'jbpm/CommandExecutor'
11:59:37,750 INFO  [BaseLocalProxyFactory] Bound EJB LocalHome 'Timer' to jndi 'java:jbpm/Timer'
11:59:37,812 INFO  [Http11Protocol] Starting Coyote HTTP/1.1 on http-127.0.0.1-8080
11:59:37,828 INFO  [AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009
11:59:37,843 INFO  [ServerImpl] JBoss (Microcontainer) [5.0.0.GA (build: SVNTag=JBoss_5_0_0_GA date=200812041714)] Started in 1m:47s:656ms
11:59:43,437 INFO  [BirtService] Service created: org.eclipse.birt.report.engine.api.impl.ReportEngine at 1725c61
12:00:35,281 ERROR [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:198)
     at org.jboss.security.auth.spi.UsersRolesLoginModule.loadUsers(UsersRolesLoginModule.java:186)
     at org.jboss.security.auth.spi.UsersRolesLoginModule.createUsers(UsersRolesLoginModule.java:200)
     at org.jboss.security.auth.spi.UsersRolesLoginModule.initialize(UsersRolesLoginModule.java:127)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
     at java.lang.reflect.Method.invoke(Unknown Source)
     at javax.security.auth.login.LoginContext.invoke(Unknown Source)
     at javax.security.auth.login.LoginContext.access$000(Unknown Source)
     at javax.security.auth.login.LoginContext$4.run(Unknown Source)
     at java.security.AccessController.doPrivileged(Native Method)
     at javax.security.auth.login.LoginContext.invokePriv(Unknown Source)
     at javax.security.auth.login.LoginContext.login(Unknown Source)
     at org.jboss.security.plugins.auth.JaasSecurityManagerBase.defaultLogin(JaasSecurityManagerBase.java:552)
     at org.jboss.security.plugins.auth.JaasSecurityManagerBase.authenticate(JaasSecurityManagerBase.java:486)
     at org.jboss.security.plugins.auth.JaasSecurityManagerBase.isValid(JaasSecurityManagerBase.java:365)
     at org.jboss.security.plugins.JaasSecurityManager.isValid(JaasSecurityManager.java:160)
     at org.jboss.web.tomcat.security.JBossWebRealm.authenticate(JBossWebRealm.java:384)
     at org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:258)
     at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:417)
     at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
     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.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
     at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:828)
     at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:601)
     at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
     at java.lang.Thread.run(Unknown Source)
12:00:35,343 INFO  [STDOUT] null
12:00:35,343 INFO  [STDOUT] java.lang.RuntimeException: Unable to aquire data source

 

 
it states that it is *Unable to acquire data source* from oracle which my application uses it.
 
Now what should i have to do ??

--------------------------------------------------------------

To reply to this message visit the message page: http://community.jboss.org/message/525655#525655




More information about the jboss-user mailing list