am trying it now,
i have installed the gem, headed to my rails app folder path, typed
glassfish and requested a page , the page jst keeps trying to load and
nothing happens , here is the output on my console:
khelll@khelll-laptop:~/projects/jd1g$ glassfish
Nov 8, 2008 6:19:28 PM com.sun.enterprise.glassfish.bootstrap.ASMain
main
INFO: Launching GlassFish on Apache Felix OSGi platform
Nov 8, 2008 6:19:28 PM com.sun.enterprise.glassfish.bootstrap.ASMainOSGi
findDerbyClient
INFO: Cannot find javadb client jar file, jdbc driver not
available
Welcome to Felix.
Nov 8, 2008 6:19:29 PM OSGiModuleImpl start
INFO: Started bundle org.glassfish.core.kernel [23]
Nov 8, 2008 6:19:29 PM OSGiModuleImpl start
INFO: Started bundle org.glassfish.common.common-util [14]
Nov 8, 2008 6:19:29 PM OSGiModuleImpl start
INFO: Started bundle GlassFish-Application-Common-Module [19]
Nov 8, 2008 6:19:29 PM APIClassLoaderService createAPIClassLoader
INFO: APIClassLoader = Class Loader for Bundle
[GlassFish-Application-Common-Module [19] ]
Nov 8, 2008 6:19:29 PM HK2Main$HK2ServiceTrackerCustomizer
addingService
INFO: registering service =
org.apache.felix.framework.StartLevelImpl@95b8a,
contract = org.osgi.service.startlevel.StartLevel, name = null
Nov 8, 2008 6:19:29 PM HK2Main$HK2ServiceTrackerCustomizer
addingService
INFO: registering service =
org.apache.felix.framework.PackageAdminImpl@db14d4, contract =
org.osgi.service.packageadmin.PackageAdmin, name = null
Nov 8, 2008 6:19:29 PM OSGiModuleImpl
start
INFO: Started bundle org.glassfish.branding.branding
[22]
no resource bundle found for version, using default GlassFish
version
Nov 8, 2008 6:19:29 PM AppServerStartup
run
INFO: [Thread[GlassFish Kernel Main Thread,5,main]]
started
Nov 8, 2008 6:19:29 PM OSGiModuleImpl
start
INFO: Started bundle org.glassfish.common.internal-api
[15]
Nov 8, 2008 6:19:29 PM OSGiModuleImpl
start
INFO: Started bundle org.glassfish.admin.config-api
[25]
Nov 8, 2008 6:19:29 PM OSGiModuleImpl
start
INFO: Started bundle org.glassfish.deployment.deployment-autodeploy
[16]
Nov 8, 2008 6:19:29 PM OSGiModuleImpl
start
INFO: Started bundle org.glassfish.deployment.deployment-common
[17]
Nov 8, 2008 6:19:29 PM OSGiModuleImpl
start
INFO: Started bundle org.glassfish.flashlight.flashlight-framework
[18]
Nov 8, 2008 6:19:29 PM com.sun.enterprise.v3.services.impl.GrizzlyProxy
start
INFO: Listening on port
3000
Nov 8, 2008 6:19:29 PM
com.sun.enterprise.v3.services.impl.GrizzlyService
postConstruct
INFO: Network listener http-listener-2 on port 8181 disabled per
domain.xml
Nov 8, 2008 6:19:29 PM com.sun.enterprise.v3.services.impl.GrizzlyProxy
start
INFO: Listening on port
4848
Nov 8, 2008 6:19:29 PM
com.sun.enterprise.v3.admin.adapter.AdminConsoleAdapter
setStateMsg
INFO: The Admin Console Application is not yet
installed.
Nov 8, 2008 6:19:31 PM OSGiModuleImpl
start
INFO: Started bundle org.glassfish.scripting.gf-jruby-connector
[8]
Nov 8, 2008 6:19:31 PM OSGiModuleImpl
start
INFO: Started bundle org.glassfish.scripting.grizzly-jruby-module
[9]
Nov 8, 2008 6:19:32 PM com.sun.grizzly.jruby.rack.RackApplicationChooser
getFactory
INFO: Detected Rails
application
Nov 8, 2008 6:19:32 PM com.sun.grizzly.jruby.rack.RackApplicationChooser
getFactory
INFO: Rails Version:
2.1
Nov 8, 2008 6:19:32 PM com.sun.grizzly.pool.DynamicPool
logDynamicStatus
INFO: Pool started without dynamic resizing enabled. Pool will not
attempt
to determine the upper and lower bounds that it should be using, and
will
stay at 1
Nov 8, 2008 6:19:41 PM
SEVERE: /home/khelll/projects/jd1g/lib/overrides.rb:34 warning: already
initialized constant ABBR_MONTHNAMES
Nov 8, 2008 6:19:41 PM
SEVERE: /home/khelll/projects/jd1g/lib/overrides.rb:35 warning: already
initialized constant ABBR_DAYNAMES
Nov 8, 2008 6:19:41 PM
SEVERE: /home/khelll/projects/jd1g/lib/overrides.rb:37 warning: already
initialized constant MONTHNAMES
Nov 8, 2008 6:19:41 PM
SEVERE: /home/khelll/projects/jd1g/lib/overrides.rb:39 warning: already
initialized constant DAYNAMES
Nov 8, 2008 6:19:42 PM
com.sun.grizzly.jruby.rack.RackApplicationPoolAdapter
initializeObject
SEVERE: Error initializing rack
application!
Nov 8, 2008 6:19:42
PM
SEVERE: com.sun.grizzly.jruby.rack.RackInitializationException: no such
file
to load – rack
from
:1
Nov 8, 2008 6:19:42 PM
SEVERE: at
com.sun.grizzly.jruby.rack.DefaultRackApplicationFactory.createApplication(DefaultRackApplicationFactory.java:171)
Nov 8, 2008 6:19:42
PM
SEVERE: at
com.sun.grizzly.jruby.rack.DefaultRackApplicationFactory.newApplication(DefaultRackApplicationFactory.java:72)
Nov 8, 2008 6:19:42
PM
SEVERE: at
com.sun.grizzly.jruby.rack.RackApplicationPoolAdapter.initializeObject(RackApplicationPoolAdapter.java:43)
Nov 8, 2008 6:19:42
PM
SEVERE: at
com.sun.grizzly.jruby.rack.RackApplicationPoolAdapter.initializeObject(RackApplicationPoolAdapter.java:16)
Nov 8, 2008 6:19:42
PM
SEVERE: at
com.sun.grizzly.pool.DynamicPool$1.run(DynamicPool.java:394)
Nov 8, 2008 6:19:42
PM
SEVERE: at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
Nov 8, 2008 6:19:42
PM
SEVERE: at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
Nov 8, 2008 6:19:42
PM
SEVERE: at
java.lang.Thread.run(Thread.java:619)
Nov 8, 2008 6:19:42
PM
SEVERE: Caused by:
org.jruby.exceptions.RaiseException
Nov 8, 2008 6:19:42
PM
SEVERE: at
Kernel.raise(/home/khelll/projects/jruby/lib/ruby/gems/1.8/gems/activesupport-2.1.2/lib/active_support/dependencies.rb:513)
Nov 8, 2008 6:19:42
PM
SEVERE: at
Object.require(:1)
Nov 8, 2008 6:19:42
PM
SEVERE: at
(unknown).(unknown)(:1)
Nov 8, 2008 6:19:42 PM com.sun.grizzly.jruby.RailsAdapter
INFO: Jruby version is:
1.1.5
Nov 8, 2008 6:19:42 PM org.glassfish.scripting.rails.RailsDeployer
load
INFO: Loading Rails application jd1g at
/
Nov 8, 2008 6:19:42 PM com.sun.enterprise.v3.server.AppServerStartup
run
INFO: GlassFish v3 Prelude startup time : Felix(632ms) startup
services(12719ms) total(13351ms)
Nov 8, 2008 6:19:42 PM
SEVERE: Exception in thread "pool-8-thread-1"
Nov 8, 2008 6:19:42 PM
SEVERE: java.lang.IllegalStateException: Rack initialization failed!
Nov 8, 2008 6:19:42 PM
SEVERE: at
com.sun.grizzly.jruby.rack.RackApplicationPoolAdapter.initializeObject(RackApplicationPoolAdapter.java:49)
Nov 8, 2008 6:19:42 PM
SEVERE: at
com.sun.grizzly.jruby.rack.RackApplicationPoolAdapter.initializeObject(RackApplicationPoolAdapter.java:16)
Nov 8, 2008 6:19:42 PM
SEVERE: at
com.sun.grizzly.pool.DynamicPool$1.run(DynamicPool.java:394)
Nov 8, 2008 6:19:42 PM
SEVERE: at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
Nov 8, 2008 6:19:42 PM
SEVERE: at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
Nov 8, 2008 6:19:42 PM
SEVERE: at java.lang.Thread.run(Thread.java:619)
___________________________
Eng Khaled al Habache