Quantcast

First time setup issue for Sonar.

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

First time setup issue for Sonar.

Chris Graham-7
Hi All.

This is the first time that I've ever dealt with Sonar.

I'm setting it up on a Linux system using Oracle 11G, using the 11.2 drivers, under Tomcat 6.0.33.

I've had a new schema (user) setup on an existing database, I've followed the instructions for installing under Tomcat and Oracle.

However, when I start the server, this is what I'm seeing:

Jan 4, 2012 11:01:56 AM org.apache.catalina.core.ApplicationContext log
SEVERE: unable to create shared application instance
org.jruby.rack.RackInitializationException: JDBC Datasource not supported. Please use Commons DBCP or Tomcat Connection Pool
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/gems/activerecord-oracle_enhanced-adapter-1.4.0/lib/active_record/connection_adapters/oracle_enhanced_jdbc_connection.rb:55:in `initialize'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/gems/activerecord-oracle_enhanced-adapter-1.4.0/lib/active_record/connection_adapters/oracle_enhanced_connection.rb:11:in `create'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/gems/activerecord-oracle_enhanced-adapter-1.4.0/lib/active_record/connection_adapters/oracle_enhanced_base_ext.rb:12:in `oracle_enhanced_connection'
        from org/jruby/RubyKernel.java:2056:in `send'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:223:in `new_connection'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:245:in `checkout_new_connection'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:188:in `checkout'
        from org/jruby/RubyKernel.java:1418:in `loop'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:184:in `checkout'
        from file:/data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/lib/jruby-complete-1.6.1.jar!/META-INF/jruby.home/lib/ruby/1.8/monitor.rb:191:in `mon_synchronize'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:183:in `checkout'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:98:in `connection'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:326:in `retrieve_connection'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:123:in `retrieve_connection'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:115:in `connection'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/migration.rb:435:in `initialize'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/migration.rb:400:in `up'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/migration.rb:383:in `migrate'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/lib/database_version.rb:63:in `upgrade_and_start'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/lib/database_version.rb:75:in `automatic_setup'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/config/environment.rb:108:in `(root)'
        from org/jruby/RubyKernel.java:1063:in `load'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/config/environment.rb:53:in `load_environment'
        from file:/data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/lib/jruby-rack-1.0.0.1.jar!/jruby/rack/rails.rb:46:in `to_app'
        from file:/data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/lib/jruby-rack-1.0.0.1.jar!/jruby/rack/rails.rb:191:in `new'
        from <script>:2:in `(root)'
        from org/jruby/RubyKernel.java:2021:in `instance_eval'
        from file:/data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/lib/jruby-rack-1.0.0.1.jar!/vendor/rack-1.2.1/rack/builder.rb:46:in `initialize'
        from <script>:2:in `(root)'

        at org.jruby.rack.DefaultRackApplicationFactory$4.init(DefaultRackApplicationFactory.java:184)
        at org.jruby.rack.DefaultRackApplicationFactory.getApplication(DefaultRackApplicationFactory.java:59)
        at org.jruby.rack.SharedRackApplicationFactory.init(SharedRackApplicationFactory.java:27)
        at org.jruby.rack.RackServletContextListener.contextInitialized(RackServletContextListener.java:40)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4206)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4705)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
        at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:675)
        at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:601)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)
        at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
        at org.apache.catalina.core.StandardService.start(StandardService.java:525)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
        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:585)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: org.jruby.exceptions.RaiseException: (ArgumentError) JDBC Datasource not supported. Please use Commons DBCP or Tomcat Connection Pool
Jan 4, 2012 11:01:56 AM org.apache.catalina.core.ApplicationContext log
SEVERE: Error: application initialization failed
org.jruby.rack.RackInitializationException: unable to create shared application instance
        at org.jruby.rack.SharedRackApplicationFactory.init(SharedRackApplicationFactory.java:39)
        at org.jruby.rack.RackServletContextListener.contextInitialized(RackServletContextListener.java:40)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4206)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4705)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
        at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:675)
        at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:601)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)
        at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
        at org.apache.catalina.core.StandardService.start(StandardService.java:525)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
        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:585)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: org.jruby.rack.RackInitializationException: JDBC Datasource not supported. Please use Commons DBCP or Tomcat Connection Pool
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/gems/activerecord-oracle_enhanced-adapter-1.4.0/lib/active_record/connection_adapters/oracle_enhanced_jdbc_connection.rb:55:in `initialize'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/gems/activerecord-oracle_enhanced-adapter-1.4.0/lib/active_record/connection_adapters/oracle_enhanced_connection.rb:11:in `create'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/gems/activerecord-oracle_enhanced-adapter-1.4.0/lib/active_record/connection_adapters/oracle_enhanced_base_ext.rb:12:in `oracle_enhanced_connection'
        from org/jruby/RubyKernel.java:2056:in `send'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:223:in `new_connection'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:245:in `checkout_new_connection'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:188:in `checkout'
        from org/jruby/RubyKernel.java:1418:in `loop'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:184:in `checkout'
        from file:/data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/lib/jruby-complete-1.6.1.jar!/META-INF/jruby.home/lib/ruby/1.8/monitor.rb:191:in `mon_synchronize'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:183:in `checkout'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:98:in `connection'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:326:in `retrieve_connection'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:123:in `retrieve_connection'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:115:in `connection'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/migration.rb:435:in `initialize'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/migration.rb:400:in `up'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/migration.rb:383:in `migrate'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/lib/database_version.rb:63:in `upgrade_and_start'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/lib/database_version.rb:75:in `automatic_setup'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/config/environment.rb:108:in `(root)'
        from org/jruby/RubyKernel.java:1063:in `load'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/config/environment.rb:53:in `load_environment'
        from file:/data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/lib/jruby-rack-1.0.0.1.jar!/jruby/rack/rails.rb:46:in `to_app'
        from file:/data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/lib/jruby-rack-1.0.0.1.jar!/jruby/rack/rails.rb:191:in `new'
        from <script>:2:in `(root)'
        from org/jruby/RubyKernel.java:2021:in `instance_eval'
        from file:/data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/lib/jruby-rack-1.0.0.1.jar!/vendor/rack-1.2.1/rack/builder.rb:46:in `initialize'
        from <script>:2:in `(root)'

        at org.jruby.rack.DefaultRackApplicationFactory$4.init(DefaultRackApplicationFactory.java:184)
        at org.jruby.rack.DefaultRackApplicationFactory.getApplication(DefaultRackApplicationFactory.java:59)
        at org.jruby.rack.SharedRackApplicationFactory.init(SharedRackApplicationFactory.java:27)
        ... 25 more
Caused by: org.jruby.exceptions.RaiseException: (ArgumentError) JDBC Datasource not supported. Please use Commons DBCP or Tomcat Connection Pool
Jan 4, 2012 11:01:58 AM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
Jan 4, 2012 11:02:11 AM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Jan 4, 2012 11:02:11 AM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()

I feel like I'm stuck between a rock and a hard place.

If anyone is able to offer some support or comments, then I'd be most appreciative. Oracle is not really my area of experise, AIX and DB2 are, so on this one, I'm a little out of my depth.

Thanks for any and all support offered,

-Chris

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: First time setup issue for Sonar.

Chris Graham-7
As a follow up.

After some help from a rather unhelpful/recalcitrant DBA. The password of the user had not been set to what I had asked to, and consequently it could not connect.

Which raises another issue, should a "Cann't connect/log on" type of error be a little more obvious and not masked by data source issues?

Is that able to be fixed, or is it firmly in the Tomcat arena?

-Chris

On Wed, Jan 4, 2012 at 12:10 PM, Chris Graham <[hidden email]> wrote:
Hi All.

This is the first time that I've ever dealt with Sonar.

I'm setting it up on a Linux system using Oracle 11G, using the 11.2 drivers, under Tomcat 6.0.33.

I've had a new schema (user) setup on an existing database, I've followed the instructions for installing under Tomcat and Oracle.

However, when I start the server, this is what I'm seeing:

Jan 4, 2012 11:01:56 AM org.apache.catalina.core.ApplicationContext log
SEVERE: unable to create shared application instance
org.jruby.rack.RackInitializationException: JDBC Datasource not supported. Please use Commons DBCP or Tomcat Connection Pool
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/gems/activerecord-oracle_enhanced-adapter-1.4.0/lib/active_record/connection_adapters/oracle_enhanced_jdbc_connection.rb:55:in `initialize'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/gems/activerecord-oracle_enhanced-adapter-1.4.0/lib/active_record/connection_adapters/oracle_enhanced_connection.rb:11:in `create'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/gems/activerecord-oracle_enhanced-adapter-1.4.0/lib/active_record/connection_adapters/oracle_enhanced_base_ext.rb:12:in `oracle_enhanced_connection'
        from org/jruby/RubyKernel.java:2056:in `send'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:223:in `new_connection'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:245:in `checkout_new_connection'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:188:in `checkout'
        from org/jruby/RubyKernel.java:1418:in `loop'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:184:in `checkout'
        from file:/data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/lib/jruby-complete-1.6.1.jar!/META-INF/jruby.home/lib/ruby/1.8/monitor.rb:191:in `mon_synchronize'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:183:in `checkout'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:98:in `connection'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:326:in `retrieve_connection'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:123:in `retrieve_connection'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:115:in `connection'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/migration.rb:435:in `initialize'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/migration.rb:400:in `up'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/migration.rb:383:in `migrate'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/lib/database_version.rb:63:in `upgrade_and_start'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/lib/database_version.rb:75:in `automatic_setup'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/config/environment.rb:108:in `(root)'
        from org/jruby/RubyKernel.java:1063:in `load'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/config/environment.rb:53:in `load_environment'
        from file:/data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/lib/jruby-rack-1.0.0.1.jar!/jruby/rack/rails.rb:46:in `to_app'
        from file:/data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/lib/jruby-rack-1.0.0.1.jar!/jruby/rack/rails.rb:191:in `new'
        from <script>:2:in `(root)'
        from org/jruby/RubyKernel.java:2021:in `instance_eval'
        from file:/data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/lib/jruby-rack-1.0.0.1.jar!/vendor/rack-1.2.1/rack/builder.rb:46:in `initialize'
        from <script>:2:in `(root)'

        at org.jruby.rack.DefaultRackApplicationFactory$4.init(DefaultRackApplicationFactory.java:184)
        at org.jruby.rack.DefaultRackApplicationFactory.getApplication(DefaultRackApplicationFactory.java:59)
        at org.jruby.rack.SharedRackApplicationFactory.init(SharedRackApplicationFactory.java:27)
        at org.jruby.rack.RackServletContextListener.contextInitialized(RackServletContextListener.java:40)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4206)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4705)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
        at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:675)
        at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:601)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)
        at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
        at org.apache.catalina.core.StandardService.start(StandardService.java:525)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
        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:585)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: org.jruby.exceptions.RaiseException: (ArgumentError) JDBC Datasource not supported. Please use Commons DBCP or Tomcat Connection Pool
Jan 4, 2012 11:01:56 AM org.apache.catalina.core.ApplicationContext log
SEVERE: Error: application initialization failed
org.jruby.rack.RackInitializationException: unable to create shared application instance
        at org.jruby.rack.SharedRackApplicationFactory.init(SharedRackApplicationFactory.java:39)
        at org.jruby.rack.RackServletContextListener.contextInitialized(RackServletContextListener.java:40)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4206)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4705)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
        at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:675)
        at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:601)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)
        at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
        at org.apache.catalina.core.StandardService.start(StandardService.java:525)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
        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:585)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: org.jruby.rack.RackInitializationException: JDBC Datasource not supported. Please use Commons DBCP or Tomcat Connection Pool
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/gems/activerecord-oracle_enhanced-adapter-1.4.0/lib/active_record/connection_adapters/oracle_enhanced_jdbc_connection.rb:55:in `initialize'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/gems/activerecord-oracle_enhanced-adapter-1.4.0/lib/active_record/connection_adapters/oracle_enhanced_connection.rb:11:in `create'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/gems/activerecord-oracle_enhanced-adapter-1.4.0/lib/active_record/connection_adapters/oracle_enhanced_base_ext.rb:12:in `oracle_enhanced_connection'
        from org/jruby/RubyKernel.java:2056:in `send'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:223:in `new_connection'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:245:in `checkout_new_connection'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:188:in `checkout'
        from org/jruby/RubyKernel.java:1418:in `loop'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:184:in `checkout'
        from file:/data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/lib/jruby-complete-1.6.1.jar!/META-INF/jruby.home/lib/ruby/1.8/monitor.rb:191:in `mon_synchronize'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:183:in `checkout'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:98:in `connection'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:326:in `retrieve_connection'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:123:in `retrieve_connection'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:115:in `connection'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/migration.rb:435:in `initialize'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/migration.rb:400:in `up'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/migration.rb:383:in `migrate'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/lib/database_version.rb:63:in `upgrade_and_start'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/lib/database_version.rb:75:in `automatic_setup'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/config/environment.rb:108:in `(root)'
        from org/jruby/RubyKernel.java:1063:in `load'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/config/environment.rb:53:in `load_environment'
        from file:/data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/lib/jruby-rack-1.0.0.1.jar!/jruby/rack/rails.rb:46:in `to_app'
        from file:/data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/lib/jruby-rack-1.0.0.1.jar!/jruby/rack/rails.rb:191:in `new'
        from <script>:2:in `(root)'
        from org/jruby/RubyKernel.java:2021:in `instance_eval'
        from file:/data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/lib/jruby-rack-1.0.0.1.jar!/vendor/rack-1.2.1/rack/builder.rb:46:in `initialize'
        from <script>:2:in `(root)'

        at org.jruby.rack.DefaultRackApplicationFactory$4.init(DefaultRackApplicationFactory.java:184)
        at org.jruby.rack.DefaultRackApplicationFactory.getApplication(DefaultRackApplicationFactory.java:59)
        at org.jruby.rack.SharedRackApplicationFactory.init(SharedRackApplicationFactory.java:27)
        ... 25 more
Caused by: org.jruby.exceptions.RaiseException: (ArgumentError) JDBC Datasource not supported. Please use Commons DBCP or Tomcat Connection Pool
Jan 4, 2012 11:01:58 AM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
Jan 4, 2012 11:02:11 AM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Jan 4, 2012 11:02:11 AM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()

I feel like I'm stuck between a rock and a hard place.

If anyone is able to offer some support or comments, then I'd be most appreciative. Oracle is not really my area of experise, AIX and DB2 are, so on this one, I'm a little out of my depth.

Thanks for any and all support offered,

-Chris


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Re: First time setup issue for Sonar.

Freddy Mallet
Hi Chris,

Which Sonar version are you using and could you provide the content of your conf/sonar.properties file ?

Thanks
Freddy
-----
Sonar for Continuous Inspection



On Wed, Jan 4, 2012 at 5:09 AM, Chris Graham <[hidden email]> wrote:
As a follow up.

After some help from a rather unhelpful/recalcitrant DBA. The password of the user had not been set to what I had asked to, and consequently it could not connect.

Which raises another issue, should a "Cann't connect/log on" type of error be a little more obvious and not masked by data source issues?

Is that able to be fixed, or is it firmly in the Tomcat arena?

-Chris


On Wed, Jan 4, 2012 at 12:10 PM, Chris Graham <[hidden email]> wrote:
Hi All.

This is the first time that I've ever dealt with Sonar.

I'm setting it up on a Linux system using Oracle 11G, using the 11.2 drivers, under Tomcat 6.0.33.

I've had a new schema (user) setup on an existing database, I've followed the instructions for installing under Tomcat and Oracle.

However, when I start the server, this is what I'm seeing:

Jan 4, 2012 11:01:56 AM org.apache.catalina.core.ApplicationContext log
SEVERE: unable to create shared application instance
org.jruby.rack.RackInitializationException: JDBC Datasource not supported. Please use Commons DBCP or Tomcat Connection Pool
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/gems/activerecord-oracle_enhanced-adapter-1.4.0/lib/active_record/connection_adapters/oracle_enhanced_jdbc_connection.rb:55:in `initialize'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/gems/activerecord-oracle_enhanced-adapter-1.4.0/lib/active_record/connection_adapters/oracle_enhanced_connection.rb:11:in `create'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/gems/activerecord-oracle_enhanced-adapter-1.4.0/lib/active_record/connection_adapters/oracle_enhanced_base_ext.rb:12:in `oracle_enhanced_connection'
        from org/jruby/RubyKernel.java:2056:in `send'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:223:in `new_connection'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:245:in `checkout_new_connection'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:188:in `checkout'
        from org/jruby/RubyKernel.java:1418:in `loop'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:184:in `checkout'
        from file:/data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/lib/jruby-complete-1.6.1.jar!/META-INF/jruby.home/lib/ruby/1.8/monitor.rb:191:in `mon_synchronize'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:183:in `checkout'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:98:in `connection'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:326:in `retrieve_connection'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:123:in `retrieve_connection'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:115:in `connection'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/migration.rb:435:in `initialize'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/migration.rb:400:in `up'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/migration.rb:383:in `migrate'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/lib/database_version.rb:63:in `upgrade_and_start'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/lib/database_version.rb:75:in `automatic_setup'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/config/environment.rb:108:in `(root)'
        from org/jruby/RubyKernel.java:1063:in `load'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/config/environment.rb:53:in `load_environment'
        from file:/data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/lib/jruby-rack-1.0.0.1.jar!/jruby/rack/rails.rb:46:in `to_app'
        from file:/data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/lib/jruby-rack-1.0.0.1.jar!/jruby/rack/rails.rb:191:in `new'
        from <script>:2:in `(root)'
        from org/jruby/RubyKernel.java:2021:in `instance_eval'
        from file:/data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/lib/jruby-rack-1.0.0.1.jar!/vendor/rack-1.2.1/rack/builder.rb:46:in `initialize'
        from <script>:2:in `(root)'

        at org.jruby.rack.DefaultRackApplicationFactory$4.init(DefaultRackApplicationFactory.java:184)
        at org.jruby.rack.DefaultRackApplicationFactory.getApplication(DefaultRackApplicationFactory.java:59)
        at org.jruby.rack.SharedRackApplicationFactory.init(SharedRackApplicationFactory.java:27)
        at org.jruby.rack.RackServletContextListener.contextInitialized(RackServletContextListener.java:40)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4206)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4705)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
        at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:675)
        at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:601)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)
        at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
        at org.apache.catalina.core.StandardService.start(StandardService.java:525)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
        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:585)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: org.jruby.exceptions.RaiseException: (ArgumentError) JDBC Datasource not supported. Please use Commons DBCP or Tomcat Connection Pool
Jan 4, 2012 11:01:56 AM org.apache.catalina.core.ApplicationContext log
SEVERE: Error: application initialization failed
org.jruby.rack.RackInitializationException: unable to create shared application instance
        at org.jruby.rack.SharedRackApplicationFactory.init(SharedRackApplicationFactory.java:39)
        at org.jruby.rack.RackServletContextListener.contextInitialized(RackServletContextListener.java:40)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4206)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4705)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
        at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:675)
        at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:601)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)
        at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
        at org.apache.catalina.core.StandardService.start(StandardService.java:525)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
        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:585)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: org.jruby.rack.RackInitializationException: JDBC Datasource not supported. Please use Commons DBCP or Tomcat Connection Pool
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/gems/activerecord-oracle_enhanced-adapter-1.4.0/lib/active_record/connection_adapters/oracle_enhanced_jdbc_connection.rb:55:in `initialize'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/gems/activerecord-oracle_enhanced-adapter-1.4.0/lib/active_record/connection_adapters/oracle_enhanced_connection.rb:11:in `create'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/gems/activerecord-oracle_enhanced-adapter-1.4.0/lib/active_record/connection_adapters/oracle_enhanced_base_ext.rb:12:in `oracle_enhanced_connection'
        from org/jruby/RubyKernel.java:2056:in `send'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:223:in `new_connection'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:245:in `checkout_new_connection'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:188:in `checkout'
        from org/jruby/RubyKernel.java:1418:in `loop'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:184:in `checkout'
        from file:/data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/lib/jruby-complete-1.6.1.jar!/META-INF/jruby.home/lib/ruby/1.8/monitor.rb:191:in `mon_synchronize'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:183:in `checkout'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:98:in `connection'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:326:in `retrieve_connection'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:123:in `retrieve_connection'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:115:in `connection'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/migration.rb:435:in `initialize'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/migration.rb:400:in `up'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/migration.rb:383:in `migrate'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/lib/database_version.rb:63:in `upgrade_and_start'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/lib/database_version.rb:75:in `automatic_setup'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/config/environment.rb:108:in `(root)'
        from org/jruby/RubyKernel.java:1063:in `load'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/config/environment.rb:53:in `load_environment'
        from file:/data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/lib/jruby-rack-1.0.0.1.jar!/jruby/rack/rails.rb:46:in `to_app'
        from file:/data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/lib/jruby-rack-1.0.0.1.jar!/jruby/rack/rails.rb:191:in `new'
        from <script>:2:in `(root)'
        from org/jruby/RubyKernel.java:2021:in `instance_eval'
        from file:/data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/lib/jruby-rack-1.0.0.1.jar!/vendor/rack-1.2.1/rack/builder.rb:46:in `initialize'
        from <script>:2:in `(root)'

        at org.jruby.rack.DefaultRackApplicationFactory$4.init(DefaultRackApplicationFactory.java:184)
        at org.jruby.rack.DefaultRackApplicationFactory.getApplication(DefaultRackApplicationFactory.java:59)
        at org.jruby.rack.SharedRackApplicationFactory.init(SharedRackApplicationFactory.java:27)
        ... 25 more
Caused by: org.jruby.exceptions.RaiseException: (ArgumentError) JDBC Datasource not supported. Please use Commons DBCP or Tomcat Connection Pool
Jan 4, 2012 11:01:58 AM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
Jan 4, 2012 11:02:11 AM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Jan 4, 2012 11:02:11 AM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()

I feel like I'm stuck between a rock and a hard place.

If anyone is able to offer some support or comments, then I'd be most appreciative. Oracle is not really my area of experise, AIX and DB2 are, so on this one, I'm a little out of my depth.

Thanks for any and all support offered,

-Chris



Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Re: First time setup issue for Sonar.

Chris Graham-7
Fixing the password worked. It now all works. As in I can now get a web page up.

It is Sonar 2.12, running on Linux:

[NBNCO\v-chrisgraham@svccb0000002np ~]$ uname -a
Linux svccb0000002np 2.6.18-274.el5 #1 SMP Fri Jul 8 17:36:59 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux
[NBNCO\v-chrisgraham@svccb0000002np ~]$


Running java:

[NBNCO\v-chrisgraham@svccb0000002np bin]$ ./java -version
java version "1.5.0_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
Java HotSpot(TM) Server VM (build 1.5.0_06-b05, mixed mode)
[NBNCO\v-chrisgraham@svccb0000002np bin]$


and Tomcat 6.0.33.

Using the Oracle 11.2 drivers:

[NBNCO\v-chrisgraham@svccb0000002np oracle]$ pwd
/data/sonar/sonar-2.12/extensions/jdbc-driver/oracle
[NBNCO\v-chrisgraham@svccb0000002np oracle]$ ls -la
total 1960
drwxr-xr-x 2 root root    4096 Jan  5 10:31 .
drwxr-xr-x 7 root root    4096 Nov 28 18:33 ..
-rw-r--r-- 1 root root 1996228 Jan  4 14:07 ojdbc5.jar
[NBNCO\v-chrisgraham@svccb0000002np oracle]$ cksum ojdbc5.jar
3418006348 1996228 ojdbc5.jar
[NBNCO\v-chrisgraham@svccb0000002np oracle]$


here's the unedited conf file (for your use only, please)

Thanks for the response!

-Chris

On Thu, Jan 5, 2012 at 8:14 AM, Freddy Mallet <[hidden email]> wrote:
Hi Chris,

Which Sonar version are you using and could you provide the content of your conf/sonar.properties file ?

Thanks
Freddy
-----
Sonar for Continuous Inspection



On Wed, Jan 4, 2012 at 5:09 AM, Chris Graham <[hidden email]> wrote:
As a follow up.

After some help from a rather unhelpful/recalcitrant DBA. The password of the user had not been set to what I had asked to, and consequently it could not connect.

Which raises another issue, should a "Cann't connect/log on" type of error be a little more obvious and not masked by data source issues?

Is that able to be fixed, or is it firmly in the Tomcat arena?

-Chris


On Wed, Jan 4, 2012 at 12:10 PM, Chris Graham <[hidden email]> wrote:
Hi All.

This is the first time that I've ever dealt with Sonar.

I'm setting it up on a Linux system using Oracle 11G, using the 11.2 drivers, under Tomcat 6.0.33.

I've had a new schema (user) setup on an existing database, I've followed the instructions for installing under Tomcat and Oracle.

However, when I start the server, this is what I'm seeing:

Jan 4, 2012 11:01:56 AM org.apache.catalina.core.ApplicationContext log
SEVERE: unable to create shared application instance
org.jruby.rack.RackInitializationException: JDBC Datasource not supported. Please use Commons DBCP or Tomcat Connection Pool
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/gems/activerecord-oracle_enhanced-adapter-1.4.0/lib/active_record/connection_adapters/oracle_enhanced_jdbc_connection.rb:55:in `initialize'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/gems/activerecord-oracle_enhanced-adapter-1.4.0/lib/active_record/connection_adapters/oracle_enhanced_connection.rb:11:in `create'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/gems/activerecord-oracle_enhanced-adapter-1.4.0/lib/active_record/connection_adapters/oracle_enhanced_base_ext.rb:12:in `oracle_enhanced_connection'
        from org/jruby/RubyKernel.java:2056:in `send'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:223:in `new_connection'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:245:in `checkout_new_connection'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:188:in `checkout'
        from org/jruby/RubyKernel.java:1418:in `loop'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:184:in `checkout'
        from file:/data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/lib/jruby-complete-1.6.1.jar!/META-INF/jruby.home/lib/ruby/1.8/monitor.rb:191:in `mon_synchronize'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:183:in `checkout'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:98:in `connection'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:326:in `retrieve_connection'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:123:in `retrieve_connection'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:115:in `connection'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/migration.rb:435:in `initialize'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/migration.rb:400:in `up'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/migration.rb:383:in `migrate'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/lib/database_version.rb:63:in `upgrade_and_start'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/lib/database_version.rb:75:in `automatic_setup'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/config/environment.rb:108:in `(root)'
        from org/jruby/RubyKernel.java:1063:in `load'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/config/environment.rb:53:in `load_environment'
        from file:/data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/lib/jruby-rack-1.0.0.1.jar!/jruby/rack/rails.rb:46:in `to_app'
        from file:/data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/lib/jruby-rack-1.0.0.1.jar!/jruby/rack/rails.rb:191:in `new'
        from <script>:2:in `(root)'
        from org/jruby/RubyKernel.java:2021:in `instance_eval'
        from file:/data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/lib/jruby-rack-1.0.0.1.jar!/vendor/rack-1.2.1/rack/builder.rb:46:in `initialize'
        from <script>:2:in `(root)'

        at org.jruby.rack.DefaultRackApplicationFactory$4.init(DefaultRackApplicationFactory.java:184)
        at org.jruby.rack.DefaultRackApplicationFactory.getApplication(DefaultRackApplicationFactory.java:59)
        at org.jruby.rack.SharedRackApplicationFactory.init(SharedRackApplicationFactory.java:27)
        at org.jruby.rack.RackServletContextListener.contextInitialized(RackServletContextListener.java:40)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4206)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4705)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
        at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:675)
        at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:601)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)
        at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
        at org.apache.catalina.core.StandardService.start(StandardService.java:525)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
        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:585)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: org.jruby.exceptions.RaiseException: (ArgumentError) JDBC Datasource not supported. Please use Commons DBCP or Tomcat Connection Pool
Jan 4, 2012 11:01:56 AM org.apache.catalina.core.ApplicationContext log
SEVERE: Error: application initialization failed
org.jruby.rack.RackInitializationException: unable to create shared application instance
        at org.jruby.rack.SharedRackApplicationFactory.init(SharedRackApplicationFactory.java:39)
        at org.jruby.rack.RackServletContextListener.contextInitialized(RackServletContextListener.java:40)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4206)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4705)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
        at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:675)
        at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:601)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)
        at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
        at org.apache.catalina.core.StandardService.start(StandardService.java:525)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
        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:585)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: org.jruby.rack.RackInitializationException: JDBC Datasource not supported. Please use Commons DBCP or Tomcat Connection Pool
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/gems/activerecord-oracle_enhanced-adapter-1.4.0/lib/active_record/connection_adapters/oracle_enhanced_jdbc_connection.rb:55:in `initialize'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/gems/activerecord-oracle_enhanced-adapter-1.4.0/lib/active_record/connection_adapters/oracle_enhanced_connection.rb:11:in `create'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/gems/activerecord-oracle_enhanced-adapter-1.4.0/lib/active_record/connection_adapters/oracle_enhanced_base_ext.rb:12:in `oracle_enhanced_connection'
        from org/jruby/RubyKernel.java:2056:in `send'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:223:in `new_connection'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:245:in `checkout_new_connection'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:188:in `checkout'
        from org/jruby/RubyKernel.java:1418:in `loop'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:184:in `checkout'
        from file:/data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/lib/jruby-complete-1.6.1.jar!/META-INF/jruby.home/lib/ruby/1.8/monitor.rb:191:in `mon_synchronize'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:183:in `checkout'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:98:in `connection'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:326:in `retrieve_connection'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:123:in `retrieve_connection'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:115:in `connection'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/migration.rb:435:in `initialize'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/migration.rb:400:in `up'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/migration.rb:383:in `migrate'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/lib/database_version.rb:63:in `upgrade_and_start'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/lib/database_version.rb:75:in `automatic_setup'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/config/environment.rb:108:in `(root)'
        from org/jruby/RubyKernel.java:1063:in `load'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/config/environment.rb:53:in `load_environment'
        from file:/data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/lib/jruby-rack-1.0.0.1.jar!/jruby/rack/rails.rb:46:in `to_app'
        from file:/data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/lib/jruby-rack-1.0.0.1.jar!/jruby/rack/rails.rb:191:in `new'
        from <script>:2:in `(root)'
        from org/jruby/RubyKernel.java:2021:in `instance_eval'
        from file:/data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/lib/jruby-rack-1.0.0.1.jar!/vendor/rack-1.2.1/rack/builder.rb:46:in `initialize'
        from <script>:2:in `(root)'

        at org.jruby.rack.DefaultRackApplicationFactory$4.init(DefaultRackApplicationFactory.java:184)
        at org.jruby.rack.DefaultRackApplicationFactory.getApplication(DefaultRackApplicationFactory.java:59)
        at org.jruby.rack.SharedRackApplicationFactory.init(SharedRackApplicationFactory.java:27)
        ... 25 more
Caused by: org.jruby.exceptions.RaiseException: (ArgumentError) JDBC Datasource not supported. Please use Commons DBCP or Tomcat Connection Pool
Jan 4, 2012 11:01:58 AM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
Jan 4, 2012 11:02:11 AM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Jan 4, 2012 11:02:11 AM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()

I feel like I'm stuck between a rock and a hard place.

If anyone is able to offer some support or comments, then I'd be most appreciative. Oracle is not really my area of experise, AIX and DB2 are, so on this one, I'm a little out of my depth.

Thanks for any and all support offered,

-Chris






---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email

sonar.properties (8K) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: First time setup issue for Sonar.

Freddy Mallet
Hi Chris,

So if my understanding is correct, now everything works weel on your side. But the only unexpected behavior is that you got a very error-prone and useless error message when Sonar tried to connect to the Oracle server with a wrong password ?

Caused by: org.jruby.exceptions.RaiseException: (ArgumentError) JDBC Datasource not supported. Please use Commons DBCP or Tomcat Connection Pool


Thanks
Freddy
-----
Sonar for Continuous Inspection



On Thu, Jan 5, 2012 at 12:33 AM, Chris Graham <[hidden email]> wrote:
Fixing the password worked. It now all works. As in I can now get a web page up.

It is Sonar 2.12, running on Linux:

[NBNCO\v-chrisgraham@svccb0000002np ~]$ uname -a
Linux svccb0000002np 2.6.18-274.el5 #1 SMP Fri Jul 8 17:36:59 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux
[NBNCO\v-chrisgraham@svccb0000002np ~]$


Running java:

[NBNCO\v-chrisgraham@svccb0000002np bin]$ ./java -version
java version "1.5.0_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
Java HotSpot(TM) Server VM (build 1.5.0_06-b05, mixed mode)
[NBNCO\v-chrisgraham@svccb0000002np bin]$


and Tomcat 6.0.33.

Using the Oracle 11.2 drivers:

[NBNCO\v-chrisgraham@svccb0000002np oracle]$ pwd
/data/sonar/sonar-2.12/extensions/jdbc-driver/oracle
[NBNCO\v-chrisgraham@svccb0000002np oracle]$ ls -la
total 1960
drwxr-xr-x 2 root root    4096 Jan  5 10:31 .
drwxr-xr-x 7 root root    4096 Nov 28 18:33 ..
-rw-r--r-- 1 root root 1996228 Jan  4 14:07 ojdbc5.jar
[NBNCO\v-chrisgraham@svccb0000002np oracle]$ cksum ojdbc5.jar
3418006348 1996228 ojdbc5.jar
[NBNCO\v-chrisgraham@svccb0000002np oracle]$


here's the unedited conf file (for your use only, please)

Thanks for the response!

-Chris


On Thu, Jan 5, 2012 at 8:14 AM, Freddy Mallet <[hidden email]> wrote:
Hi Chris,

Which Sonar version are you using and could you provide the content of your conf/sonar.properties file ?

Thanks
Freddy
-----
Sonar for Continuous Inspection



On Wed, Jan 4, 2012 at 5:09 AM, Chris Graham <[hidden email]> wrote:
As a follow up.

After some help from a rather unhelpful/recalcitrant DBA. The password of the user had not been set to what I had asked to, and consequently it could not connect.

Which raises another issue, should a "Cann't connect/log on" type of error be a little more obvious and not masked by data source issues?

Is that able to be fixed, or is it firmly in the Tomcat arena?

-Chris


On Wed, Jan 4, 2012 at 12:10 PM, Chris Graham <[hidden email]> wrote:
Hi All.

This is the first time that I've ever dealt with Sonar.

I'm setting it up on a Linux system using Oracle 11G, using the 11.2 drivers, under Tomcat 6.0.33.

I've had a new schema (user) setup on an existing database, I've followed the instructions for installing under Tomcat and Oracle.

However, when I start the server, this is what I'm seeing:

Jan 4, 2012 11:01:56 AM org.apache.catalina.core.ApplicationContext log
SEVERE: unable to create shared application instance
org.jruby.rack.RackInitializationException: JDBC Datasource not supported. Please use Commons DBCP or Tomcat Connection Pool
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/gems/activerecord-oracle_enhanced-adapter-1.4.0/lib/active_record/connection_adapters/oracle_enhanced_jdbc_connection.rb:55:in `initialize'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/gems/activerecord-oracle_enhanced-adapter-1.4.0/lib/active_record/connection_adapters/oracle_enhanced_connection.rb:11:in `create'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/gems/activerecord-oracle_enhanced-adapter-1.4.0/lib/active_record/connection_adapters/oracle_enhanced_base_ext.rb:12:in `oracle_enhanced_connection'
        from org/jruby/RubyKernel.java:2056:in `send'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:223:in `new_connection'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:245:in `checkout_new_connection'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:188:in `checkout'
        from org/jruby/RubyKernel.java:1418:in `loop'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:184:in `checkout'
        from file:/data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/lib/jruby-complete-1.6.1.jar!/META-INF/jruby.home/lib/ruby/1.8/monitor.rb:191:in `mon_synchronize'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:183:in `checkout'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:98:in `connection'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:326:in `retrieve_connection'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:123:in `retrieve_connection'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:115:in `connection'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/migration.rb:435:in `initialize'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/migration.rb:400:in `up'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/migration.rb:383:in `migrate'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/lib/database_version.rb:63:in `upgrade_and_start'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/lib/database_version.rb:75:in `automatic_setup'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/config/environment.rb:108:in `(root)'
        from org/jruby/RubyKernel.java:1063:in `load'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/config/environment.rb:53:in `load_environment'
        from file:/data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/lib/jruby-rack-1.0.0.1.jar!/jruby/rack/rails.rb:46:in `to_app'
        from file:/data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/lib/jruby-rack-1.0.0.1.jar!/jruby/rack/rails.rb:191:in `new'
        from <script>:2:in `(root)'
        from org/jruby/RubyKernel.java:2021:in `instance_eval'
        from file:/data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/lib/jruby-rack-1.0.0.1.jar!/vendor/rack-1.2.1/rack/builder.rb:46:in `initialize'
        from <script>:2:in `(root)'

        at org.jruby.rack.DefaultRackApplicationFactory$4.init(DefaultRackApplicationFactory.java:184)
        at org.jruby.rack.DefaultRackApplicationFactory.getApplication(DefaultRackApplicationFactory.java:59)
        at org.jruby.rack.SharedRackApplicationFactory.init(SharedRackApplicationFactory.java:27)
        at org.jruby.rack.RackServletContextListener.contextInitialized(RackServletContextListener.java:40)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4206)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4705)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
        at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:675)
        at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:601)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)
        at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
        at org.apache.catalina.core.StandardService.start(StandardService.java:525)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
        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:585)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: org.jruby.exceptions.RaiseException: (ArgumentError) JDBC Datasource not supported. Please use Commons DBCP or Tomcat Connection Pool
Jan 4, 2012 11:01:56 AM org.apache.catalina.core.ApplicationContext log
SEVERE: Error: application initialization failed
org.jruby.rack.RackInitializationException: unable to create shared application instance
        at org.jruby.rack.SharedRackApplicationFactory.init(SharedRackApplicationFactory.java:39)
        at org.jruby.rack.RackServletContextListener.contextInitialized(RackServletContextListener.java:40)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4206)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4705)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
        at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:675)
        at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:601)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)
        at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
        at org.apache.catalina.core.StandardService.start(StandardService.java:525)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
        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:585)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: org.jruby.rack.RackInitializationException: JDBC Datasource not supported. Please use Commons DBCP or Tomcat Connection Pool
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/gems/activerecord-oracle_enhanced-adapter-1.4.0/lib/active_record/connection_adapters/oracle_enhanced_jdbc_connection.rb:55:in `initialize'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/gems/activerecord-oracle_enhanced-adapter-1.4.0/lib/active_record/connection_adapters/oracle_enhanced_connection.rb:11:in `create'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/gems/activerecord-oracle_enhanced-adapter-1.4.0/lib/active_record/connection_adapters/oracle_enhanced_base_ext.rb:12:in `oracle_enhanced_connection'
        from org/jruby/RubyKernel.java:2056:in `send'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:223:in `new_connection'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:245:in `checkout_new_connection'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:188:in `checkout'
        from org/jruby/RubyKernel.java:1418:in `loop'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:184:in `checkout'
        from file:/data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/lib/jruby-complete-1.6.1.jar!/META-INF/jruby.home/lib/ruby/1.8/monitor.rb:191:in `mon_synchronize'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:183:in `checkout'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:98:in `connection'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:326:in `retrieve_connection'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:123:in `retrieve_connection'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:115:in `connection'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/migration.rb:435:in `initialize'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/migration.rb:400:in `up'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/migration.rb:383:in `migrate'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/lib/database_version.rb:63:in `upgrade_and_start'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/lib/database_version.rb:75:in `automatic_setup'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/config/environment.rb:108:in `(root)'
        from org/jruby/RubyKernel.java:1063:in `load'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/config/environment.rb:53:in `load_environment'
        from file:/data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/lib/jruby-rack-1.0.0.1.jar!/jruby/rack/rails.rb:46:in `to_app'
        from file:/data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/lib/jruby-rack-1.0.0.1.jar!/jruby/rack/rails.rb:191:in `new'
        from <script>:2:in `(root)'
        from org/jruby/RubyKernel.java:2021:in `instance_eval'
        from file:/data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/lib/jruby-rack-1.0.0.1.jar!/vendor/rack-1.2.1/rack/builder.rb:46:in `initialize'
        from <script>:2:in `(root)'

        at org.jruby.rack.DefaultRackApplicationFactory$4.init(DefaultRackApplicationFactory.java:184)
        at org.jruby.rack.DefaultRackApplicationFactory.getApplication(DefaultRackApplicationFactory.java:59)
        at org.jruby.rack.SharedRackApplicationFactory.init(SharedRackApplicationFactory.java:27)
        ... 25 more
Caused by: org.jruby.exceptions.RaiseException: (ArgumentError) JDBC Datasource not supported. Please use Commons DBCP or Tomcat Connection Pool
Jan 4, 2012 11:01:58 AM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
Jan 4, 2012 11:02:11 AM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Jan 4, 2012 11:02:11 AM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()

I feel like I'm stuck between a rock and a hard place.

If anyone is able to offer some support or comments, then I'd be most appreciative. Oracle is not really my area of experise, AIX and DB2 are, so on this one, I'm a little out of my depth.

Thanks for any and all support offered,

-Chris






---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: First time setup issue for Sonar.

Chris Graham-7
:-)

Yes, that is correct.

Thanks,

-Chris

Sent from my iPhone

On 09/01/2012, at 3:20 AM, Freddy Mallet <[hidden email]> wrote:

Hi Chris,

So if my understanding is correct, now everything works weel on your side. But the only unexpected behavior is that you got a very error-prone and useless error message when Sonar tried to connect to the Oracle server with a wrong password ?

Caused by: org.jruby.exceptions.RaiseException: (ArgumentError) JDBC Datasource not supported. Please use Commons DBCP or Tomcat Connection Pool


Thanks
Freddy
-----
Sonar for Continuous Inspection



On Thu, Jan 5, 2012 at 12:33 AM, Chris Graham <[hidden email]> wrote:
Fixing the password worked. It now all works. As in I can now get a web page up.

It is Sonar 2.12, running on Linux:

[NBNCO\v-chrisgraham@svccb0000002np ~]$ uname -a
Linux svccb0000002np 2.6.18-274.el5 #1 SMP Fri Jul 8 17:36:59 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux
[NBNCO\v-chrisgraham@svccb0000002np ~]$


Running java:

[NBNCO\v-chrisgraham@svccb0000002np bin]$ ./java -version
java version "1.5.0_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
Java HotSpot(TM) Server VM (build 1.5.0_06-b05, mixed mode)
[NBNCO\v-chrisgraham@svccb0000002np bin]$


and Tomcat 6.0.33.

Using the Oracle 11.2 drivers:

[NBNCO\v-chrisgraham@svccb0000002np oracle]$ pwd
/data/sonar/sonar-2.12/extensions/jdbc-driver/oracle
[NBNCO\v-chrisgraham@svccb0000002np oracle]$ ls -la
total 1960
drwxr-xr-x 2 root root    4096 Jan  5 10:31 .
drwxr-xr-x 7 root root    4096 Nov 28 18:33 ..
-rw-r--r-- 1 root root 1996228 Jan  4 14:07 ojdbc5.jar
[NBNCO\v-chrisgraham@svccb0000002np oracle]$ cksum ojdbc5.jar
3418006348 1996228 ojdbc5.jar
[NBNCO\v-chrisgraham@svccb0000002np oracle]$


here's the unedited conf file (for your use only, please)

Thanks for the response!

-Chris


On Thu, Jan 5, 2012 at 8:14 AM, Freddy Mallet <[hidden email]> wrote:
Hi Chris,

Which Sonar version are you using and could you provide the content of your conf/sonar.properties file ?

Thanks
Freddy
-----
Sonar for Continuous Inspection



On Wed, Jan 4, 2012 at 5:09 AM, Chris Graham <[hidden email]> wrote:
As a follow up.

After some help from a rather unhelpful/recalcitrant DBA. The password of the user had not been set to what I had asked to, and consequently it could not connect.

Which raises another issue, should a "Cann't connect/log on" type of error be a little more obvious and not masked by data source issues?

Is that able to be fixed, or is it firmly in the Tomcat arena?

-Chris


On Wed, Jan 4, 2012 at 12:10 PM, Chris Graham <[hidden email]> wrote:
Hi All.

This is the first time that I've ever dealt with Sonar.

I'm setting it up on a Linux system using Oracle 11G, using the 11.2 drivers, under Tomcat 6.0.33.

I've had a new schema (user) setup on an existing database, I've followed the instructions for installing under Tomcat and Oracle.

However, when I start the server, this is what I'm seeing:

Jan 4, 2012 11:01:56 AM org.apache.catalina.core.ApplicationContext log
SEVERE: unable to create shared application instance
org.jruby.rack.RackInitializationException: JDBC Datasource not supported. Please use Commons DBCP or Tomcat Connection Pool
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/gems/activerecord-oracle_enhanced-adapter-1.4.0/lib/active_record/connection_adapters/oracle_enhanced_jdbc_connection.rb:55:in `initialize'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/gems/activerecord-oracle_enhanced-adapter-1.4.0/lib/active_record/connection_adapters/oracle_enhanced_connection.rb:11:in `create'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/gems/activerecord-oracle_enhanced-adapter-1.4.0/lib/active_record/connection_adapters/oracle_enhanced_base_ext.rb:12:in `oracle_enhanced_connection'
        from org/jruby/RubyKernel.java:2056:in `send'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:223:in `new_connection'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:245:in `checkout_new_connection'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:188:in `checkout'
        from org/jruby/RubyKernel.java:1418:in `loop'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:184:in `checkout'
        from file:/data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/lib/jruby-complete-1.6.1.jar!/META-INF/jruby.home/lib/ruby/1.8/monitor.rb:191:in `mon_synchronize'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:183:in `checkout'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:98:in `connection'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:326:in `retrieve_connection'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:123:in `retrieve_connection'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:115:in `connection'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/migration.rb:435:in `initialize'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/migration.rb:400:in `up'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/migration.rb:383:in `migrate'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/lib/database_version.rb:63:in `upgrade_and_start'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/lib/database_version.rb:75:in `automatic_setup'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/config/environment.rb:108:in `(root)'
        from org/jruby/RubyKernel.java:1063:in `load'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/config/environment.rb:53:in `load_environment'
        from file:/data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/lib/jruby-rack-1.0.0.1.jar!/jruby/rack/rails.rb:46:in `to_app'
        from file:/data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/lib/jruby-rack-1.0.0.1.jar!/jruby/rack/rails.rb:191:in `new'
        from <script>:2:in `(root)'
        from org/jruby/RubyKernel.java:2021:in `instance_eval'
        from file:/data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/lib/jruby-rack-1.0.0.1.jar!/vendor/rack-1.2.1/rack/builder.rb:46:in `initialize'
        from <script>:2:in `(root)'

        at org.jruby.rack.DefaultRackApplicationFactory$4.init(DefaultRackApplicationFactory.java:184)
        at org.jruby.rack.DefaultRackApplicationFactory.getApplication(DefaultRackApplicationFactory.java:59)
        at org.jruby.rack.SharedRackApplicationFactory.init(SharedRackApplicationFactory.java:27)
        at org.jruby.rack.RackServletContextListener.contextInitialized(RackServletContextListener.java:40)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4206)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4705)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
        at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:675)
        at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:601)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)
        at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
        at org.apache.catalina.core.StandardService.start(StandardService.java:525)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
        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:585)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: org.jruby.exceptions.RaiseException: (ArgumentError) JDBC Datasource not supported. Please use Commons DBCP or Tomcat Connection Pool
Jan 4, 2012 11:01:56 AM org.apache.catalina.core.ApplicationContext log
SEVERE: Error: application initialization failed
org.jruby.rack.RackInitializationException: unable to create shared application instance
        at org.jruby.rack.SharedRackApplicationFactory.init(SharedRackApplicationFactory.java:39)
        at org.jruby.rack.RackServletContextListener.contextInitialized(RackServletContextListener.java:40)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4206)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4705)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
        at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:675)
        at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:601)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)
        at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
        at org.apache.catalina.core.StandardService.start(StandardService.java:525)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
        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:585)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: org.jruby.rack.RackInitializationException: JDBC Datasource not supported. Please use Commons DBCP or Tomcat Connection Pool
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/gems/activerecord-oracle_enhanced-adapter-1.4.0/lib/active_record/connection_adapters/oracle_enhanced_jdbc_connection.rb:55:in `initialize'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/gems/activerecord-oracle_enhanced-adapter-1.4.0/lib/active_record/connection_adapters/oracle_enhanced_connection.rb:11:in `create'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/gems/activerecord-oracle_enhanced-adapter-1.4.0/lib/active_record/connection_adapters/oracle_enhanced_base_ext.rb:12:in `oracle_enhanced_connection'
        from org/jruby/RubyKernel.java:2056:in `send'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:223:in `new_connection'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:245:in `checkout_new_connection'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:188:in `checkout'
        from org/jruby/RubyKernel.java:1418:in `loop'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:184:in `checkout'
        from file:/data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/lib/jruby-complete-1.6.1.jar!/META-INF/jruby.home/lib/ruby/1.8/monitor.rb:191:in `mon_synchronize'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:183:in `checkout'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:98:in `connection'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:326:in `retrieve_connection'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:123:in `retrieve_connection'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:115:in `connection'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/migration.rb:435:in `initialize'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/migration.rb:400:in `up'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/vendor/rails/activerecord/lib/active_record/migration.rb:383:in `migrate'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/lib/database_version.rb:63:in `upgrade_and_start'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/lib/database_version.rb:75:in `automatic_setup'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/config/environment.rb:108:in `(root)'
        from org/jruby/RubyKernel.java:1063:in `load'
        from /data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/config/environment.rb:53:in `load_environment'
        from file:/data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/lib/jruby-rack-1.0.0.1.jar!/jruby/rack/rails.rb:46:in `to_app'
        from file:/data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/lib/jruby-rack-1.0.0.1.jar!/jruby/rack/rails.rb:191:in `new'
        from <script>:2:in `(root)'
        from org/jruby/RubyKernel.java:2021:in `instance_eval'
        from file:/data/apache/apache-tomcat-6.0.33/webapps/sonar/WEB-INF/lib/jruby-rack-1.0.0.1.jar!/vendor/rack-1.2.1/rack/builder.rb:46:in `initialize'
        from <script>:2:in `(root)'

        at org.jruby.rack.DefaultRackApplicationFactory$4.init(DefaultRackApplicationFactory.java:184)
        at org.jruby.rack.DefaultRackApplicationFactory.getApplication(DefaultRackApplicationFactory.java:59)
        at org.jruby.rack.SharedRackApplicationFactory.init(SharedRackApplicationFactory.java:27)
        ... 25 more
Caused by: org.jruby.exceptions.RaiseException: (ArgumentError) JDBC Datasource not supported. Please use Commons DBCP or Tomcat Connection Pool
Jan 4, 2012 11:01:58 AM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
Jan 4, 2012 11:02:11 AM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Jan 4, 2012 11:02:11 AM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()

I feel like I'm stuck between a rock and a hard place.

If anyone is able to offer some support or comments, then I'd be most appreciative. Oracle is not really my area of experise, AIX and DB2 are, so on this one, I'm a little out of my depth.

Thanks for any and all support offered,

-Chris






---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


Loading...