{"issue":{"milestone":null,"user":{"id":908533,"login":"d01","url":"https://api.github.com/users/d01","avatar_url":"https://secure.gravatar.com/avatar/0638dac302f63d03a79ba17cb59daf65?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"0638dac302f63d03a79ba17cb59daf65"},"title":"warning: already initialized constant VERSION","created_at":"2011-12-07T17:03:49Z","updated_at":"2011-12-19T18:27:48Z","labels":[],"state":"open","id":2476977,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"html_url":"https://github.com/jruby/warbler/issues/65","closed_at":null,"body":"I see a worrying message when starting our warbled application in Tomcat that I do not see in Webrick. \r\n\r\nIt is:\r\n\r\n<<<OMITTED>>>/WEB-INF/gems/gems/rack-1.2.4/lib/rack.rb:14 warning: already initialized constant VERSION\r\n\r\nOur app is a Rails 3.0 app running in config.threadsafe! with Warbler 1.3.2 and JRuby 1.6.5 in --1.9 mode.  I see some references to this message on the web but nothing so far seems to describe our situation and I have not yet understood how to understand why this is happening or prevent it. \r\n\r\nDue to the circumstances it does appear to be something caused by using Warbler, and I suppose it is either a warning message that needs to be corrected or evidence of a serious problem. \r\n\r\nDo you have any idea what could be causing this?\r\n\r\nThe full output of our startup is here:\r\n\r\n<<<OMITTED>>>/Applications/apache-tomcat-7.0.23/bin/catalina.sh run\r\nDec 7, 2011 11:47:20 AM org.apache.catalina.core.AprLifecycleListener init\r\nINFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/lib/jvm/java-6-openjdk/jre/lib/amd64/server:/usr/lib/jvm/java-6-openjdk/jre/lib/amd64:/usr/lib/jvm/java-6-openjdk/jre/../lib/amd64:/usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/amd64/server:/usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/amd64:/usr/lib/jvm/java-6-sun-1.6.0.26/jre/../lib/amd64:.::/usr/java/packages/lib/amd64:/usr/lib/x86_64-linux-gnu/jni:/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu:/usr/lib/jni:/lib:/usr/lib\r\nDec 7, 2011 11:47:20 AM org.apache.coyote.AbstractProtocol init\r\nINFO: Initializing ProtocolHandler [\"http-bio-8080\"]\r\nDec 7, 2011 11:47:20 AM org.apache.coyote.AbstractProtocol init\r\nINFO: Initializing ProtocolHandler [\"ajp-bio-8009\"]\r\nDec 7, 2011 11:47:20 AM org.apache.catalina.startup.Catalina load\r\nINFO: Initialization processed in 360 ms\r\nDec 7, 2011 11:47:20 AM org.apache.catalina.core.StandardService startInternal\r\nINFO: Starting service Catalina\r\nDec 7, 2011 11:47:20 AM org.apache.catalina.core.StandardEngine startInternal\r\nINFO: Starting Servlet Engine: Apache Tomcat/7.0.23\r\nDec 7, 2011 11:47:20 AM org.apache.catalina.startup.HostConfig deployDescriptor\r\nINFO: Deploying configuration descriptor <<<OMITTED>>>/conf/Catalina/localhost/ROOT.xml\r\n<<<OMITTED>>>/WEB-INF/gems/gems/rack-1.2.4/lib/rack.rb:14 warning: already initialized constant VERSION\r\nDec 7, 2011 11:47:38 AM org.apache.catalina.startup.HostConfig deployDirectory\r\nINFO: Deploying web application directory <<<OMITTED>>>/apache-tomcat-7.0.23/webapps/manager\r\nDec 7, 2011 11:47:38 AM org.apache.catalina.startup.HostConfig deployDirectory\r\nINFO: Deploying web application directory <<<OMITTED>>>/apache-tomcat-7.0.23/webapps/examples\r\nDec 7, 2011 11:47:38 AM org.apache.catalina.startup.HostConfig deployDirectory\r\nINFO: Deploying web application directory <<<OMITTED>>>/apache-tomcat-7.0.23/webapps/docs\r\nDec 7, 2011 11:47:38 AM org.apache.catalina.startup.HostConfig deployDirectory\r\nINFO: Deploying web application directory <<<OMITTED>>>/apache-tomcat-7.0.23/webapps/host-manager\r\nDec 7, 2011 11:47:38 AM org.apache.coyote.AbstractProtocol start\r\nINFO: Starting ProtocolHandler [\"http-bio-8080\"]\r\nDec 7, 2011 11:47:38 AM org.apache.coyote.AbstractProtocol start\r\nINFO: Starting ProtocolHandler [\"ajp-bio-8009\"]\r\nDec 7, 2011 11:47:38 AM org.apache.catalina.startup.Catalina start\r\nINFO: Server startup in 17550 ms\r\nConnected to server\r\n","number":65,"url":"https://api.github.com/repos/jruby/warbler/issues/65","comments":5,"assignee":null},"comment":{"user":{"id":908533,"login":"d01","url":"https://api.github.com/users/d01","avatar_url":"https://secure.gravatar.com/avatar/0638dac302f63d03a79ba17cb59daf65?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"0638dac302f63d03a79ba17cb59daf65"},"created_at":"2011-12-19T18:27:48Z","updated_at":"2011-12-19T18:27:48Z","id":3207264,"body":"@guilleiguaran - want to be sure, are you asking for a reopen of this issue (\"rack-1.2.4/lib/rack.rb:14 warning: already initialized constant VERSION\") in activerecord-jdbc-adapter? \r\n\r\nBTW, the other issues I've mentioned have been opened elsewhere.","url":"https://api.github.com/repos/jruby/warbler/issues/comments/3207264"},"action":"created"}