Forum: JRuby 1.3 wierd rack error in redeploy on Glassfish 2.1

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.
Mikael R. (Guest)
on 2009-06-09 00:28
(Received via mailing list)
Hi Guys

I just have deployed my first Jruby1.3 rails app on a glasshfish 2.1
server. It works fine but there seems to be some issues when i  do a
redeploy of the same app.

I Get this error below. The way around it i found is to delete the
application completly from the doimain and then deploy it again then it
seems to work.

Anyone know if this is a known issue ?

running (jruby 1.3.0 (ruby 1.8.6p287) (2009-06-03 5dc2e22) (Java
HotSpot(TM) Client VM 1.6.0_10-rc2) [x86-java])

Timestamp

Jun 8, 2009 21:56:31.881
Log Level

SEVERE
Logger

javax.enterprise.system.container.web
Name-Value Pairs

_ThreadID=29;_ThreadName=Thread-2136;_RequestID=eab9820f-ad6a-4482-938b-0265ddfadb01;
Record Number

213
Message ID

WebModule[]unable to create shared application instance
org.jruby.rack.RackInitializationException
Complete Message

Fcntl not supported on this platform from
D:/prog/Sun/AppServer/domains/domain1/generated/jsp/j2ee-modules/Raven/loader/jruby/rack/rails.rb:43:in
`require_frameworks_with_servlet_env' from
D:/prog/Sun/AppServer/domains/domain1/applications/j2ee-modules/Raven/WEB-INF/gems/gems/rails-2.3.2/lib/initializer.rb:134:in
`process' from
D:/prog/Sun/AppServer/domains/domain1/applications/j2ee-modules/Raven/WEB-INF/gems/gems/rails-2.3.2/lib/initializer.rb:113:in
`run' from
D:\prog\Sun\AppServer\domains\domain1\applications\j2ee-modules\Raven\WEB-INF/config/environment.rb:9
from
D:\prog\Sun\AppServer\domains\domain1\applications\j2ee-modules\Raven\WEB-INF/config/environment.rb:26:in
`load' from
D:/prog/Sun/AppServer/domains/domain1/generated/jsp/j2ee-modules/Raven/loader/jruby/rack/rails.rb:26:in
`load_environment' from
D:/prog/Sun/AppServer/domains/domain1/generated/jsp/j2ee-modules/Raven/loader/jruby/rack/rails.rb:151:in
`new' from <script>:2 from
D:/prog/Sun/AppServer/domains/domain1/generated/jsp/j2ee-modules/Raven/loader/rack/builder.rb:29:in
`instance_eval' from
D:/prog/Sun/AppServer/domains/domain1/generated/jsp/j2ee-modules/Raven/loader/rack/builder.rb:29:in
`initialize' from <script>:2 at
org.jruby.rack.DefaultRackApplicationFactory$4.init(DefaultRackApplicationFactory.java:153)
at
org.jruby.rack.DefaultRackApplicationFactory.getApplication(DefaultRackApplicationFactory.java:50)
at
org.jruby.rack.SharedRackApplicationFactory.init(SharedRackApplicationFactory.java:26)
at
org.jruby.rack.RackServletContextListener.contextInitialized(RackServletContextListener.java:39)
at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4632)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:5312)
at com.sun.enterprise.web.WebModule.start(WebModule.java:353) at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:989)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:973)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:704)
at
com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1627)
at
com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1232)
at
com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:182)
at
com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:278)
at
com.sun.enterprise.admin.event.AdminEventMulticaster.invokeModuleDeployEventListener(AdminEventMulticaster.java:1005)
at
com.sun.enterprise.admin.event.AdminEventMulticaster.handleModuleDeployEvent(AdminEventMulticaster.java:992)
at
com.sun.enterprise.admin.event.AdminEventMulticaster.processEvent(AdminEventMulticaster.java:470)
at
com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent(AdminEventMulticaster.java:182)
at
com.sun.enterprise.admin.server.core.DeploymentNotificationHelper.multicastEvent(DeploymentNotificationHelper.java:308)
at
com.sun.enterprise.deployment.phasing.DeploymentServiceUtils.multicastEvent(DeploymentServiceUtils.java:231)
at
com.sun.enterprise.deployment.phasing.ServerDeploymentTarget.sendStartEvent(ServerDeploymentTarget.java:298)
at
com.sun.enterprise.deployment.phasing.ApplicationStartPhase.runPhase(ApplicationStartPhase.java:132)
at
com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108)
at
com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:966)
at
com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeploymentService.java:609)
at
com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeploymentService.java:653)
at
com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.start(ApplicationsConfigMBean.java:773)
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
com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:381)
at
com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:364)
at
com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:477)
at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
at
com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
at sun.reflect.GeneratedMethodAccessor14.invoke(Unknown Source) at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597) at
com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:90)
at $Proxy1.invoke(Unknown Source) at
com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:304)
at
com.sun.enterprise.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:174)
at
com.sun.enterprise.deployment.client.DeploymentClientUtils.startApplication(DeploymentClientUtils.java:159)
at
com.sun.enterprise.deployment.client.DeployAction.run(DeployAction.java:538)
at java.lang.Thread.run(Thread.java:619) Caused by:
org.jruby.exceptions.RaiseException: Fcntl not supported on this
platform at
Kernel.raise(D:/prog/Sun/AppServer/domains/domain1/applications/j2ee-modules/Raven/WEB-INF/gems/gems/rails-2.3.2/lib/initializer.rb:269)
at
Rails::Initializer.require_frameworks(D:/prog/Sun/AppServer/domains/domain1/generated/jsp/j2ee-modules/Raven/loader/jruby/rack/rails.rb:43)
at
Rails::Initializer.require_frameworks_with_servlet_env(D:/prog/Sun/AppServer/domains/domain1/applications/j2ee-modules/Raven/WEB-INF/gems/gems/rails-2.3.2/lib/initializer.rb:134)
at
Rails::Initializer.process(D:/prog/Sun/AppServer/domains/domain1/applications/j2ee-modules/Raven/WEB-INF/gems/gems/rails-2.3.2/lib/initializer.rb:113)
at
#<Class:01x1cfdfdb>.run(D:\prog\Sun\AppServer\domains\domain1\applications\j2ee-modules\Raven\WEB-INF/config/environment.rb:9)
at
(unknown).(unknown)(D:\prog\Sun\AppServer\domains\domain1\applications\j2ee-modules\Raven\WEB-INF/config/environment.rb:26)
at
Kernel.load(D:/prog/Sun/AppServer/domains/domain1/generated/jsp/j2ee-modules/Raven/loader/jruby/rack/rails.rb:26)
at
JRuby::Rack::RailsServletHelper.load_environment(D:/prog/Sun/AppServer/domains/domain1/generated/jsp/j2ee-modules/Raven/loader/jruby/rack/rails.rb:151)
at #<Class:01x17c6554>.new(<script>:2) at
(unknown).(unknown)(D:/prog/Sun/AppServer/domains/domain1/generated/jsp/j2ee-modules/Raven/loader/rack/builder.rb:29)
at
Kernel.instance_eval(D:/prog/Sun/AppServer/domains/domain1/generated/jsp/j2ee-modules/Raven/loader/rack/builder.rb:29)
at
Kernel.instance_eval(D:/prog/Sun/AppServer/domains/domain1/generated/jsp/j2ee-modules/Raven/loader/rack/builder.rb:29)
at Rack::Builder.initialize(<script>:2) at (unknown).(unknown)(:1)




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

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