JNDI context using ActiveRecord JDBC Adapter
--------------------------------------------

                 Key: JRUBY-3515
                 URL: http://jira.codehaus.org/browse/JRUBY-3515
             Project: JRuby
          Issue Type: Bug
          Components: ActiveRecord-JDBC
    Affects Versions: JRuby 1.2
            Reporter: Arun Gupta
             Fix For: JRuby 1.2


Deployed an WAR-based application on GlassFish v2.1 using JRuby 1.2.0 + Rails 
2.3.2 + ActiveRecord JDBC Adapter 0.9.1 and production segment as:

production:
  adapter: jdbcmysql
  encoding: utf8
  reconnect: false
  database: runner_production
  pool: 5
  username: duke
  password: glassfish
  socket: /tmp/mysql.sock
  jndi: jdbc/runner_production
  driver: com.mysql.jdbc.Driver

The deployment goes fine after following the workarounds mentioned at:

http://wiki.jruby.org/wiki/Rails_2.3.2

But invoking "http://localhost:8080/runner/runners"; shows the error message:

-- cut here --
We're sorry, but something went wrong.

We've been notified about this issue and we'll take a look at it shortly.
-- cut here -- 

This application works fine in Tomcat because it falls back on jdbcmysql 
adapter instead of JNDI. I can always create JNDI reference in Tomcat but would 
like to understand how to debug this error in GlassFish first.

For experimental purposes, I deployed the same application w/o "jndi" and 
"driver" entries and it worked fine.

The Admin Console Ping to JDBC connection pool is successful as well. I tried 
creating another JDBC connection pool/resource using Web-based Admin GUI, still 
the same result.

More details about how the app is created/configured etc are available at:

http://blogs.sun.com/arungupta/entry/totd_73_jruby_and_glassfish 

No error is shown in domains/domain1/logs/server.log or logs/development.log or 
logs/production.log.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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

    http://xircles.codehaus.org/manage_email


Reply via email to