Problem with NetBeans 6.5 and built in glassfish

Hi all,

I’m giving NetBeans 6.5 a test drive today (upgrading from 6.1) and I
noticed that now you have the option of setting up your rails
application w/ WEBrick or the built in glassfish server. I gave the
glassfish server a try and it reported this exception. It seems like a
double slash // is somehow being used rather than a single slash. If
you look at the exception you see it once it hits my rails
application:

example -
from /C:/development/acp//config/environment.rb:1

Anyway, here is the full error message:

SEVERE: Exception in thread “pool-11-thread-1”
SEVERE: C:/tools/java/jruby-1.1.5/lib/ruby/1.8/pathname.rb:420:in
realpath_rec': SEVERE: No such file or directory - No such file or directory - C:/Program Files/glassfish-v3-prelude/glassfish/C: (Errno::ENOENT) SEVERE: from C:/tools/java/jruby-1.1.5/lib/ruby/1.8/pathname.rb:453:inrealpath’
SEVERE: from
C:/tools/java/jruby-1.1.5/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb:797:in
set_root_path!' SEVERE: from C:/tools/java/jruby-1.1.5/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb:756:ininitialize’
SEVERE: from /C:/development/acp//config/boot.rb:39:in run' SEVERE: from /C:/development/acp//config/boot.rb:39:inrun’
SEVERE: from /C:/development/acp//config/boot.rb:11:in boot!' SEVERE: from /C:/development/acp//config/boot.rb:109 SEVERE: from /C:/development/acp//config/boot.rb:11:inrequire’
SEVERE: from /C:/development/acp//config/environment.rb:11
SEVERE: from /C:/development/acp//config/environment.rb:1
SEVERE: …internal jruby stack elided…
SEVERE: from
Pathname.realpath_rec(C:/tools/java/jruby-1.1.5/lib/ruby/1.8/pathname.rb:453)
SEVERE: from
Pathname.realpath(C:/tools/java/jruby-1.1.5/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb:797)
SEVERE: from
Rails::Configuration.set_root_path!(C:/tools/java/jruby-1.1.5/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb:756)
SEVERE: from
Rails::Configuration.initialize(/C:/development/acp//config/boot.rb:39)
SEVERE: from
#Class:01x168f248.run(/C:/development/acp//config/boot.rb:39)
SEVERE: from
Rails::Boot.run(/C:/development/acp//config/boot.rb:11)
SEVERE: from
#Class:01x1ee1775.boot!(/C:/development/acp//config/boot.rb:109)
SEVERE: from
(unknown).(unknown)(/C:/development/acp//config/boot.rb:11)
SEVERE: from
Kernel.require(/C:/development/acp//config/environment.rb:11)
SEVERE: from
(unknown).(unknown)(/C:/development/acp//config/environment.rb:1)
SEVERE: from (unknown).(unknown)(:1)

Any ideas? Thanks,

Jin


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

Hi Jin,

Just shooting in the dark here, but can you try whether the “deploy all
rails applications at context root” setting in Tools → Servers → GFv3
→ JRuby has any effect on this? What about installing v3 to a directory
without spaces in path?

I’m not sure whether this is a problem in the v3 plugin or in the server
itself, but could you please file an issue for this into NB IssueZilla
(http://www.netbeans.org/community/issues.html – the right component
would be serverplugins/glassfish_v3), it will get dispatched as needed
then.

Erno

Jin L. wrote:

example -
C:/tools/java/jruby-1.1.5/lib/ruby/1.8/pathname.rb:453:in realpath' SEVERE: from /C:/development/acp//config/boot.rb:11:in require’
Rails::Configuration.initialize(/C:/development/acp//config/boot.rb:39)
SEVERE: from (unknown).(unknown)(:1)


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

I was pointed to this issue:

http://rubyforge.org/tracker/index.php?func=detail&aid=22836&group_id=5450&atid=21080

Although it is reported for the GlassFish gem, it might not be exclusive
to it. I’m not sure whether there are promoted v3 builds (newer than v3
prelude) available somewhere, but you might want to try GF gem 0.9.1
where it should be fixed.

Erno

Erno M. wrote:

component would be serverplugins/glassfish_v3), it will get dispatched

application w/ WEBrick or the built in glassfish server. I gave the
SEVERE: Exception in thread “pool-11-thread-1”
SEVERE: from
SEVERE: …internal jruby stack elided…
Rails::Configuration.initialize(/C:/development/acp//config/boot.rb:39)
SEVERE: from
http://xircles.codehaus.org/manage_email


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

This issue is exclusive to gem ver 0.9.0. It is fixed and will be part
of
0.9.1 release.

On GlassFish v3 prelude server you can deploy your Rails application on
context root using this command:

asadmin deploy --contextroot / myRailsApp/

myRailsAppp/ is the path to your rails appliccation.

-vivek.