Forum: JRuby JRoR app. deployment on Websphere AS 6.1 issue

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Bb4bdf2b184027bc38d4fb529770cde5?d=identicon&s=25 Wes Gamble (weyus)
on 2008-12-30 19:58
(Received via mailing list)
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(TM) 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 <null> 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
526d60de6472502bb570a9df2842b33b?d=identicon&s=25 Nick Sieger (Guest)
on 2008-12-30 20:43
(Received via mailing list)
On Tue, Dec 30, 2008 at 12:57 PM, Wes Gamble <weyus@att.net> wrote:
> incompatible with java.lang.String
>
> Here's my JVM info.:
>
> # java -version
> java version "1.4.2"
> Java(TM) 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
Bb4bdf2b184027bc38d4fb529770cde5?d=identicon&s=25 Wes Gamble (weyus)
on 2008-12-30 20:46
(Received via mailing list)
Hmmm....I've definitely run 1.1.x apps. in this same app server.  Hmmm.

Nick Sieger 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
76aed56df3e087c55e6961f9fca7a6aa?d=identicon&s=25 Michael Campbell (Guest)
on 2008-12-31 02:27
(Received via mailing list)
Wes Gamble 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
Bb4bdf2b184027bc38d4fb529770cde5?d=identicon&s=25 Wes Gamble (weyus)
on 2008-12-31 22:10
(Received via mailing list)
Yes, you're right.

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

Wes

Michael Campbell wrote:
> Wes Gamble 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
This topic is locked and can not be replied to.