jruby/warbler — Issue #65: warning: already initialized constant VERSION
Author: d01
Created: 2011-12-07 17:03:49+00:00
State: open

I see a worrying message when starting our warbled application in Tomcat that I do not see in Webrick.

It is:

<<>>/WEB-INF/gems/gems/rack-1.2.4/lib/rack.rb:14 warning: already initialized constant VERSION

Our 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.

Due 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.

Do you have any idea what could be causing this?

The full output of our startup is here:

<<>>/Applications/apache-tomcat-7.0.23/bin/catalina.sh run
Dec 7, 2011 11:47:20 AM org.apache.catalina.core.AprLifecycleListener init
INFO: 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
Dec 7, 2011 11:47:20 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
Dec 7, 2011 11:47:20 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
Dec 7, 2011 11:47:20 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 360 ms
Dec 7, 2011 11:47:20 AM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Dec 7, 2011 11:47:20 AM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.23
Dec 7, 2011 11:47:20 AM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor <<>>/conf/Catalina/localhost/ROOT.xml
<<>>/WEB-INF/gems/gems/rack-1.2.4/lib/rack.rb:14 warning: already initialized constant VERSION
Dec 7, 2011 11:47:38 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory <<>>/apache-tomcat-7.0.23/webapps/manager
Dec 7, 2011 11:47:38 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory <<>>/apache-tomcat-7.0.23/webapps/examples
Dec 7, 2011 11:47:38 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory <<>>/apache-tomcat-7.0.23/webapps/docs
Dec 7, 2011 11:47:38 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory <<>>/apache-tomcat-7.0.23/webapps/host-manager
Dec 7, 2011 11:47:38 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8080"]
Dec 7, 2011 11:47:38 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-bio-8009"]
Dec 7, 2011 11:47:38 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 17550 ms
Connected to server