Forum: JRuby 1.2 RC1 Tomcat Error

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.
AD (Guest)
on 2009-03-04 04:25
(Received via mailing list)
Getting the following error with 1.2 RC1 on Solaris, any ideas ?

03-Mar-2009 06:08:59 org.apache.catalina.core.ApplicationContext log
SEVERE: Error: application initialization failed
javax.servlet.ServletException: getpwuid unimplemented unsupported on
this platform
        from
file:/apphome/coolstack/tomcat5/webapps/myapp/WEB-INF/lib/jruby-complete-1.2.0RC1.jar!/META-INF/jruby.home/lib/ruby/site_ruby/1.8/rubygems.rb:719:in
`each'
        from
file:/apphome/coolstack/tomcat5/webapps/myapp/WEB-INF/lib/jruby-complete-1.2.0RC1.jar!/META-INF/jruby.home/lib/ruby/site_ruby/1.8/rubygems.rb:719:in
`set_paths'
        from
file:/apphome/coolstack/tomcat5/webapps/myapp/WEB-INF/lib/jruby-complete-1.2.0RC1.jar!/META-INF/jruby.home/lib/ruby/site_ruby/1.8/rubygems/defaults/jruby.rb:17:in
`set_paths'
        from
file:/apphome/coolstack/tomcat5/webapps/myapp/WEB-INF/lib/jruby-complete-1.2.0RC1.jar!/META-INF/jruby.home/lib/ruby/site_ruby/1.8/rubygems.rb:526:in
`path'
        from
file:/apphome/coolstack/tomcat5/webapps/myapp/WEB-INF/lib/jruby-complete-1.2.0RC1.jar!/META-INF/jruby.home/lib/ruby/site_ruby/1.8/rubygems/defaults/jruby.rb:81:in
`installed_spec_directories'
        from
file:/apphome/coolstack/tomcat5/webapps/myapp/WEB-INF/lib/jruby-complete-1.2.0RC1.jar!/META-INF/jruby.home/lib/ruby/site_ruby/1.8/rubygems/source_index.rb:56:in
`from_installed_gems'
        from
file:/apphome/coolstack/tomcat5/webapps/myapp/WEB-INF/lib/jruby-complete-1.2.0RC1.jar!/META-INF/jruby.home/lib/ruby/site_ruby/1.8/rubygems.rb:736:in
`source_index'
        from
file:/apphome/coolstack/tomcat5/webapps/myapp/WEB-INF/lib/jruby-complete-1.2.0RC1.jar!/META-INF/jruby.home/lib/ruby/site_ruby/1.8/rubygems.rb:140:in
`activate'
         ... 13 levels...
        from
file:/apphome/coolstack/tomcat5/webapps/myapp/WEB-INF/lib/jruby-rack-0.9.3.jar!/rack/builder.rb:22:in
`instance_eval'
        from
file:/apphome/coolstack/tomcat5/webapps/myapp/WEB-INF/lib/jruby-rack-0.9.3.jar!/rack/builder.rb:22:in
`initialize'
        from <script>:3

        at
org.jruby.rack.SharedRackApplicationFactory.init(SharedRackApplicationFactory.java:42)
        at
org.jruby.rack.RackServletContextListener.contextInitialized(RackServletContextListener.java:38)
        at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3764)
        at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4216)
        at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
        at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
        at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
        at
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:626)
        at
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553)
        at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488)
        at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)
        at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
        at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
        at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)
        at
org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
        at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
        at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
        at
org.apache.catalina.core.StandardService.start(StandardService.java:448)
        at
org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at
org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
        at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
03-Mar-2009 06:09:02 org.apache.catalina.core.ApplicationContext log

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

    http://xircles.codehaus.org/manage_email
Nick S. (Guest)
on 2009-03-04 04:31
(Received via mailing list)
On Tue, Mar 3, 2009 at 8:25 PM, AD <removed_email_address@domain.invalid> wrote:
> Getting the following error with 1.2 RC1 on Solaris, any ideas ?
>
> 03-Mar-2009 06:08:59 org.apache.catalina.core.ApplicationContext log
> SEVERE: Error: application initialization failed
> javax.servlet.ServletException: getpwuid unimplemented unsupported on
> this platform

Yeah, we probably need to implement getpwuid for Solaris. Which
Solaris platform, x86, x86_64, or sparc? Please file a bug w/ the
trace below.

You could try to stub out Etc.getpwuid at the top of your Rails
environment.rb in the meantime.

/Nick

>        from 
file:/apphome/coolstack/tomcat5/webapps/myapp/WEB-INF/lib/jruby-complete-1.2.0RC1.jar!/META-INF/jruby.home/lib/ruby/site_ruby/1.8/rubygems/source_index.rb:56:in
>        from <script>:3
>        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>    http://xircles.codehaus.org/manage_email
>
>
>

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

    http://xircles.codehaus.org/manage_email
AD (Guest)
on 2009-03-04 04:45
(Received via mailing list)
x86_64  Solaris 10 Update 3

Bug filed.  http://jira.codehaus.org/browse/JRUBY-3464

What changed in regards to this code?  And how would i stub out
Etc.getpwuid ?

On Tue, Mar 3, 2009 at 9:30 PM, Nick S. <removed_email_address@domain.invalid>
wrote:
> trace below.
>>        from 
file:/apphome/coolstack/tomcat5/webapps/myapp/WEB-INF/lib/jruby-complete-1.2.0RC1.jar!/META-INF/jruby.home/lib/ruby/site_ruby/1.8/rubygems/defaults/jruby.rb:17:in
>> `activate'
>>        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4216)
>>        at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
>>        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
> ---------------------------------------------------------------------
> 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
AD (Guest)
on 2009-03-06 07:37
(Received via mailing list)
confirmed working in trunk, ticket closed.  Thanks Guys !

On Tue, Mar 3, 2009 at 9:44 PM, AD <removed_email_address@domain.invalid> wrote:
>>> 03-Mar-2009 06:08:59 org.apache.catalina.core.ApplicationContext log
>>
>>>        from 
file:/apphome/coolstack/tomcat5/webapps/myapp/WEB-INF/lib/jruby-complete-1.2.0RC1.jar!/META-INF/jruby.home/lib/ruby/site_ruby/1.8/rubygems/defaults/jruby.rb:81:in
>>>        from 
file:/apphome/coolstack/tomcat5/webapps/myapp/WEB-INF/lib/jruby-rack-0.9.3.jar!/rack/builder.rb:22:in
>>>        at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:626)
>>>        at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
>>> To unsubscribe from this list, please visit:
>>
>>
>>
>

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

    http://xircles.codehaus.org/manage_email
This topic is locked and can not be replied to.