users@glassfish.java.net

Problem with Active Record

From: <glassfish_at_javadesktop.org>
Date: Thu, 04 Dec 2008 15:39:05 PST

We are using NetBeans 6.5 to develop with jruby and glassfish. We have the following gem's installed

activerecord-jdbcmysql-adapter
activerecord-jdbc-adapter
jdbcmysql-adapter

On the local machine this builds and runs just fine. But when we go to deploy it on Glassfish V3b24, I get the following error in the log file:

[#|2008-12-04T17:28:34.242-0600|SEVERE|GlassFish10.0|javax.enterprise.system.container.web|_ThreadID=16;_ThreadName=Thread-4;|WebModule[/Run325Apps_F08]Exception caught
org.jruby.rack.RackInitializationException: Please install the jdbcmysql adapter: `gem install activerecord-jdbcmysql-adapter` (no such file to load -- active_record/connection_adapters/jdbcmysql_adapter)
        from D:/webroots/glassfishwebroot/fall08-325.mcs.uww.edu/applications/Run325Apps_F08/WEB-INF/gems/gems/activerecord-2.1.0/lib/active_record/connection_adapters/abstract/connection_specification.rb:216:in `establish_connection'
        from D:/webroots/glassfishwebroot/fall08-325.mcs.uww.edu/applications/Run325Apps_F08/WEB-INF/gems/gems/activerecord-2.1.0/lib/active_record/connection_adapters/abstract/connection_specification.rb:209:in `establish_connection'
        from D:/webroots/glassfishwebroot/fall08-325.mcs.uww.edu/applications/Run325Apps_F08/WEB-INF/gems/gems/rails-2.1.0/lib/initializer.rb:332:in `initialize_database'
        from D:/webroots/glassfishwebroot/fall08-325.mcs.uww.edu/applications/Run325Apps_F08/WEB-INF/gems/gems/rails-2.1.0/lib/initializer.rb:120:in `process'
        from D:/webroots/glassfishwebroot/fall08-325.mcs.uww.edu/applications/Run325Apps_F08/WEB-INF/gems/gems/rails-2.1.0/lib/initializer.rb:93:in `run'
        from D:/webroots/glassfishwebroot/fall08-325.mcs.uww.edu/applications/Run325Apps_F08/WEB-INF/config/environment.rb:13
        from D:/webroots/glassfishwebroot/fall08-325.mcs.uww.edu/applications/Run325Apps_F08/WEB-INF/config/environment.rb:29:in `load'
        from D:/webroots/glassfishwebroot/fall08-325.mcs.uww.edu/generated/jsp/Run325Apps_F08/loader/jruby/rack/rails.rb:29:in `load_environment'
        from D:/webroots/glassfishwebroot/fall08-325.mcs.uww.edu/generated/jsp/Run325Apps_F08/loader/jruby/rack/rails.rb:152:in `new'
        from <script>:3
        from D:/webroots/glassfishwebroot/fall08-325.mcs.uww.edu/generated/jsp/Run325Apps_F08/loader/rack/builder.rb:22:in `instance_eval'
        from D:/webroots/glassfishwebroot/fall08-325.mcs.uww.edu/generated/jsp/Run325Apps_F08/loader/rack/builder.rb:22:in `initialize'
        from <script>:3

        at org.jruby.rack.DefaultRackApplicationFactory$4.init(DefaultRackApplicationFactory.java:154)
        at org.jruby.rack.DefaultRackApplicationFactory.getApplication(DefaultRackApplicationFactory.java:53)
        at org.jruby.rack.PoolingRackApplicationFactory.getApplication(PoolingRackApplicationFactory.java:92)
        at org.jruby.rack.DefaultRackDispatcher.process(DefaultRackDispatcher.java:31)
        at org.jruby.rack.RackFilter.doFilter(RackFilter.java:51)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:250)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:218)
        at org.apache.catalina.core.StandardWrapperValve.preInvoke(StandardWrapperValve.java:460)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:139)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:186)
        at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
        at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
        at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:96)
        at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:187)
        at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
        at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:651)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1030)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:142)
        at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
        at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:651)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1030)
        at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:307)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:226)
        at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:175)
        at com.sun.grizzly.http.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:621)
        at com.sun.grizzly.http.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:552)
        at com.sun.grizzly.http.DefaultProcessorTask.process(DefaultProcessorTask.java:800)
        at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:152)
        at com.sun.enterprise.v3.services.impl.GlassfishProtocolChain.executeProtocolFilter(GlassfishProtocolChain.java:70)
        at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:103)
        at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:89)
        at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:67)
        at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:56)
        at com.sun.grizzly.util.WorkerThreadImpl.processTask(WorkerThreadImpl.java:309)
        at com.sun.grizzly.util.WorkerThreadImpl.run(WorkerThreadImpl.java:168)
Caused by: org.jruby.exceptions.RaiseException
        at Kernel.raise(D:/webroots/glassfishwebroot/fall08-325.mcs.uww.edu/applications/Run325Apps_F08/WEB-INF/gems/gems/activerecord-2.1.0/lib/active_record/connection_adapters/abstract/connection_specification.rb:232)
        at #<Class:01x1aa5257>.establish_connection(D:/webroots/glassfishwebroot/fall08-325.mcs.uww.edu/applications/Run325Apps_F08/WEB-INF/gems/gems/activerecord-2.1.0/lib/active_record/connection_adapters/abstract/connection_specification.rb:216)
        at #<Class:01x1aa5257>.establish_connection(D:/webroots/glassfishwebroot/fall08-325.mcs.uww.edu/applications/Run325Apps_F08/WEB-INF/gems/gems/activerecord-2.1.0/lib/active_record/connection_adapters/abstract/connection_specification.rb:209)
        at #<Class:01x1aa5257>.establish_connection(D:/webroots/glassfishwebroot/fall08-325.mcs.uww.edu/applications/Run325Apps_F08/WEB-INF/gems/gems/rails-2.1.0/lib/initializer.rb:332)
        at Rails::Initializer.initialize_database(D:/webroots/glassfishwebroot/fall08-325.mcs.uww.edu/applications/Run325Apps_F08/WEB-INF/gems/gems/rails-2.1.0/lib/initializer.rb:120)
        at Rails::Initializer.process(D:/webroots/glassfishwebroot/fall08-325.mcs.uww.edu/applications/Run325Apps_F08/WEB-INF/gems/gems/rails-2.1.0/lib/initializer.rb:93)
        at #<Class:01xc47ee4>.run(D:/webroots/glassfishwebroot/fall08-325.mcs.uww.edu/applications/Run325Apps_F08/WEB-INF/config/environment.rb:13)
        at (unknown).(unknown)(D:/webroots/glassfishwebroot/fall08-325.mcs.uww.edu/applications/Run325Apps_F08/WEB-INF/config/environment.rb:29)
        at Kernel.load(D:/webroots/glassfishwebroot/fall08-325.mcs.uww.edu/generated/jsp/Run325Apps_F08/loader/jruby/rack/rails.rb:29)
        at JRuby::Rack::RailsServletHelper.load_environment(D:/webroots/glassfishwebroot/fall08-325.mcs.uww.edu/generated/jsp/Run325Apps_F08/loader/jruby/rack/rails.rb:152)
        at #<Class:01x1a1d061>.new(<script>:3)
        at (unknown).(unknown)(D:/webroots/glassfishwebroot/fall08-325.mcs.uww.edu/generated/jsp/Run325Apps_F08/loader/rack/builder.rb:22)
        at Kernel.instance_eval(D:/webroots/glassfishwebroot/fall08-325.mcs.uww.edu/generated/jsp/Run325Apps_F08/loader/rack/builder.rb:22)
        at Kernel.instance_eval(D:/webroots/glassfishwebroot/fall08-325.mcs.uww.edu/generated/jsp/Run325Apps_F08/loader/rack/builder.rb:22)
        at Rack::Builder.initialize(<script>:3)
        at (unknown).(unknown)(:1)

Does anyone have any ideas or suggestions? We are stumped
[Message sent by forum member 'axelseaa' (axelseaa)]

http://forums.java.net/jive/thread.jspa?messageID=320173