JRoR app. deployment on Websphere AS 6.1 issue

All,

I’m using Goldspike with JRuby 1.1.6 (yeah, I know, old…) to generate
a WAR file out of my JRoR app. and deploy it to Websphere 6.1.

When the app. starts up, I get these errors in the Websphere
SystemErr.log file:

[12/30/08 12:45:23:122 CST] 00000038 SystemErr R
java.lang.ClassCastException:
org.jruby.RubyNameError$RubyNameErrorMessage incompatible with
java.lang.String
[12/30/08 12:45:23:123 CST] 00000038 SystemErr R at
org.jruby.webapp.RailsFactory.logRubyException(RailsFactory.java:159)
[12/30/08 12:45:23:123 CST] 00000038 SystemErr R at
org.jruby.webapp.RailsFactory.makeObject(RailsFactory.java:138)
[12/30/08 12:45:23:123 CST] 00000038 SystemErr R at
org.jruby.webapp.util.CustomObjectPool.addObjectInternal(CustomObjectPool.java:111)
[12/30/08 12:45:23:123 CST] 00000038 SystemErr R at
org.jruby.webapp.util.CustomObjectPool.access$200(CustomObjectPool.java:15)
[12/30/08 12:45:23:123 CST] 00000038 SystemErr R at
org.jruby.webapp.util.CustomObjectPool$PoolSizeManager.run(CustomObjectPool.java:193)

Here’s my JVM info.:

java -version

java version “1.4.2”
Java™ 2 Runtime Environment, Standard Edition (build 1.4.2)
Classic VM (build 1.4.2, J2RE 1.4.2 IBM AIX build ca142-20070317 (SR8)
(JIT enabled: jitc))

Is JRuby 1.1.6 ok with JDK 1.4.2?

I also see the following in the output log:

[12/30/08 12:43:32:784 CST] 00000029 ApplicationMg A WSVR0200I:
Starting application: AAFES_VSS
[12/30/08 12:43:32:807 CST] 00000029 ApplicationMg A WSVR0204I:
Application: AAFES_VSS Application build level: Unknown
[12/30/08 12:43:33:782 CST] 00000029 WebGroup A SRVE0169I:
Loading Web Module: AAFES_VSS.war.
[12/30/08 12:43:34:118 CST] 00000029 WebApp A SRVE0180I:
[AAFES_VSS#AAFES_VSS.war] [/AAFES_vss] [Servlet.LOG]: Ruby is running in
standalone mode
[12/30/08 12:43:34:564 CST] 00000029 WebApp W Error while
adding servlet mapping --> /* Please set fileServingEnabled=false in the
ibm-web-ext.xmi file which is under WEB-INF folder.
[12/30/08 12:43:34:580 CST] 00000029 VirtualHost I SRVE0250I: Web
Module has been bound to
default_host[:19080,:80,:19443,:45060,:45061,:443].
[12/30/08 12:43:34:616 CST] 00000029 ApplicationMg A WSVR0221I:
Application started: AAFES_VSS
[12/30/08 12:43:48:458 CST] 00000038 WebApp A SRVE0180I:
[AAFES_VSS#AAFES_VSS.war] [/AAFES_vss] [Servlet.LOG]: JRuby init time:
12893ms
[12/30/08 12:43:55:520 CST] 00000023 ConfigFileHel I ConfigFileHelper
checkForAutoRefreshWorkSpace Master repository refresh
[12/30/08 12:43:56:215 CST] 00000023 ApplicationDe I
ApplicationDeploymentController perform ApplicationDeploymentController:
performing appcontexts refresh
[12/30/08 12:43:57:553 CST] 00000023 ServletWrappe I SRVE0242I:
[isclite] [/ibm/console] [/secure/javascriptToSession.jsp]:
Initialization successful.
[12/30/08 12:44:22:306 CST] 00000027 ServletWrappe I SRVE0242I:
[AAFES_VSS] [/AAFES_vss] [files]: Initialization successful.
[12/30/08 12:44:22:323 CST] 00000027 ServletWrappe I SRVE0242I:
[AAFES_VSS] [/AAFES_vss] [rails]: Initialization successful.
[12/30/08 12:44:28:664 CST] 00000023 ApplicationDe I
ApplicationDeploymentController perform ApplicationDeploymentController:
performing appcontexts refresh
[12/30/08 12:44:52:345 CST] 00000027 WebApp A SRVE0180I:
[AAFES_VSS#AAFES_VSS.war] [/AAFES_vss] [Servlet.LOG]: rails: Warning:
All JRuby processes in the pool are in use

I will look into fixing the fileServingEnabled=false thing, but “All
JRuby processes in the pool are in use” looks suspicious. Can anyone
tell if that’s a real problem or not?

Thanks,
Wes


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

On Tue, Dec 30, 2008 at 12:57 PM, Wes G. [email protected] wrote:

incompatible with java.lang.String

Here’s my JVM info.:

java -version

java version “1.4.2”
Java™ 2 Runtime Environment, Standard Edition (build 1.4.2)
Classic VM (build 1.4.2, J2RE 1.4.2 IBM AIX build ca142-20070317 (SR8) (JIT
enabled: jitc))

Is JRuby 1.1.6 ok with JDK 1.4.2?

No, unfortunately the entire JRuby 1.1 series requires 1.5 or greater.
You could try Goldspike with JRuby 1.0.3, which is the last
1.4-compatible release.

/Nick


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

Hmmm…I’ve definitely run 1.1.x apps. in this same app server. Hmmm.

Nick S. wrote:

[12/30/08 12:45:23:122 CST] 00000038 SystemErr R
[12/30/08 12:45:23:123 CST] 00000038 SystemErr R at
Is JRuby 1.1.6 ok with JDK 1.4.2?
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

Yes, you’re right.

I was using Java 1.5 but didn’t realize it.

Wes

Michael C. wrote:

Wes G. wrote:

All,

I’m using Goldspike with JRuby 1.1.6 (yeah, I know, old…) to
generate a WAR file out of my JRoR app. and deploy it to Websphere 6.1.

Isn’t WAS 6.1 on Java 1.5?


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

Wes G. wrote:

All,

I’m using Goldspike with JRuby 1.1.6 (yeah, I know, old…) to generate
a WAR file out of my JRoR app. and deploy it to Websphere 6.1.

Isn’t WAS 6.1 on Java 1.5?


Twitter: http://twitter.com/campbellmichael


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email