Rails + GlassFish + NetBeans 6.7 beta = stuck!

View: New views
5 Messages — Rating Filter:   Alert me  

Rails + GlassFish + NetBeans 6.7 beta = stuck!

by Arun Gupta :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On my MacBookPro, NB 6.7 beta does not seem to pick/configure the
default JDK. The default on my box is JDK 6 but NB still configures JDK
1.5.0 as the default Java platform in the IDE. And then there seems to
be no intuitive way to change the default platform from within the IDE.
Anyway, filed a bug:

http://www.netbeans.org/issues/show_bug.cgi?id=164133

Moving forward

Trying to create a Rails application and run on GlassFish gem using NB
6.7 beta. Because I could not find a way to change the default Java
platform (other than explicitly passing --jdkhome or editing
netbeans.conf) to JDK 6, the Rails application can not run on GlassFish Gem.

A different error is encountered with NB 6.5.1:

-- cut here --
/Applications/NetBeans/NetBeans
6.5.1.app/Contents/Resources/NetBeans/ruby2/jruby-1.1.4/lib/ruby/site_ruby/1.8/rubygems.rb:578:in
`report_activate_error': Could not find RubyGem test-spec (>= 0)
(Gem::LoadError)

         from /Applications/NetBeans/NetBeans
6.5.1.app/Contents/Resources/NetBeans/ruby2/jruby-1.1.4/lib/ruby/site_ruby/1.8/rubygems.rb:134:in
`activate'
         from /Applications/NetBeans/NetBeans
6.5.1.app/Contents/Resources/NetBeans/ruby2/jruby-1.1.4/lib/ruby/site_ruby/1.8/rubygems.rb:158:in
`activate'
         from /Applications/NetBeans/NetBeans
6.5.1.app/Contents/Resources/NetBeans/ruby2/jruby-1.1.4/lib/ruby/site_ruby/1.8/rubygems.rb:157:in
`each'
         from /Applications/NetBeans/NetBeans
6.5.1.app/Contents/Resources/NetBeans/ruby2/jruby-1.1.4/lib/ruby/site_ruby/1.8/rubygems.rb:157:in
`activate'
         from /Applications/NetBeans/NetBeans
6.5.1.app/Contents/Resources/NetBeans/ruby2/jruby-1.1.4/lib/ruby/site_ruby/1.8/rubygems.rb:158:in
`activate'
         from /Applications/NetBeans/NetBeans
6.5.1.app/Contents/Resources/NetBeans/ruby2/jruby-1.1.4/lib/ruby/site_ruby/1.8/rubygems.rb:157:in
`each'
         from /Applications/NetBeans/NetBeans
6.5.1.app/Contents/Resources/NetBeans/ruby2/jruby-1.1.4/lib/ruby/site_ruby/1.8/rubygems.rb:157:in
`activate'
         from /Applications/NetBeans/NetBeans
6.5.1.app/Contents/Resources/NetBeans/ruby2/jruby-1.1.4/lib/ruby/site_ruby/1.8/rubygems.rb:49:in
`gem'
         from /Applications/NetBeans/NetBeans
6.5.1.app/Contents/Resources/NetBeans/ruby2/jruby-1.1.4/bin/glassfish_rails:18
-- cut here --

How do I proceed ?

-Arun
--
Application Platform, Sun Microsystems, Inc.
Blog: http://blogs.sun.com/arungupta

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@...
For additional commands, e-mail: dev-help@...


Re: Rails + GlassFish + NetBeans 6.7 beta = stuck!

by Petr Jiricka :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Apr 30, 2009, at 2:25 AM, Arun Gupta wrote:

> On my MacBookPro, NB 6.7 beta does not seem to pick/configure the  
> default JDK. The default on my box is JDK 6 but NB still configures  
> JDK 1.5.0 as the default Java platform in the IDE. And then there  
> seems to be no intuitive way to change the default platform from  
> within the IDE. Anyway, filed a bug:
>
> http://www.netbeans.org/issues/show_bug.cgi?id=164133

This is a known issue, fixed in the post-beta builds: http://www.netbeans.org/issues/show_bug.cgi?id=159846 
.

>
>
> Moving forward
>
> Trying to create a Rails application and run on GlassFish gem using  
> NB 6.7 beta. Because I could not find a way to change the default  
> Java platform (other than explicitly passing --jdkhome or editing  
> netbeans.conf) to JDK 6, the Rails application can not run on  
> GlassFish Gem.
>
> A different error is encountered with NB 6.5.1:
>
> -- cut here --
> /Applications/NetBeans/NetBeans 6.5.1.app/Contents/Resources/
> NetBeans/ruby2/jruby-1.1.4/lib/ruby/site_ruby/1.8/rubygems.rb:578:in  
> `report_activate_error': Could not find RubyGem test-spec (>= 0)  
> (Gem::LoadError)
>
>        from /Applications/NetBeans/NetBeans 6.5.1.app/Contents/
> Resources/NetBeans/ruby2/jruby-1.1.4/lib/ruby/site_ruby/1.8/
> rubygems.rb:134:in `activate'
>        from /Applications/NetBeans/NetBeans 6.5.1.app/Contents/
> Resources/NetBeans/ruby2/jruby-1.1.4/lib/ruby/site_ruby/1.8/
> rubygems.rb:158:in `activate'
>        from /Applications/NetBeans/NetBeans 6.5.1.app/Contents/
> Resources/NetBeans/ruby2/jruby-1.1.4/lib/ruby/site_ruby/1.8/
> rubygems.rb:157:in `each'
>        from /Applications/NetBeans/NetBeans 6.5.1.app/Contents/
> Resources/NetBeans/ruby2/jruby-1.1.4/lib/ruby/site_ruby/1.8/
> rubygems.rb:157:in `activate'
>        from /Applications/NetBeans/NetBeans 6.5.1.app/Contents/
> Resources/NetBeans/ruby2/jruby-1.1.4/lib/ruby/site_ruby/1.8/
> rubygems.rb:158:in `activate'
>        from /Applications/NetBeans/NetBeans 6.5.1.app/Contents/
> Resources/NetBeans/ruby2/jruby-1.1.4/lib/ruby/site_ruby/1.8/
> rubygems.rb:157:in `each'
>        from /Applications/NetBeans/NetBeans 6.5.1.app/Contents/
> Resources/NetBeans/ruby2/jruby-1.1.4/lib/ruby/site_ruby/1.8/
> rubygems.rb:157:in `activate'
>        from /Applications/NetBeans/NetBeans 6.5.1.app/Contents/
> Resources/NetBeans/ruby2/jruby-1.1.4/lib/ruby/site_ruby/1.8/
> rubygems.rb:49:in `gem'
>        from /Applications/NetBeans/NetBeans 6.5.1.app/Contents/
> Resources/NetBeans/ruby2/jruby-1.1.4/bin/glassfish_rails:18
> -- cut here --
>
> How do I proceed ?
>

So does it work when you use the --jdkhome parameter and point it to  
JDK 6? Is that a suitable workaround?

Petr

> -Arun
> --
> Application Platform, Sun Microsystems, Inc.
> Blog: http://blogs.sun.com/arungupta
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@...
> For additional commands, e-mail: dev-help@...
>


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@...
For additional commands, e-mail: dev-help@...


Re: Rails + GlassFish + NetBeans 6.7 beta = stuck!

by Arun Gupta :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


>>
>
> So does it work when you use the --jdkhome parameter and point it to JDK
> 6? Is that a suitable workaround?
Yes. How will it be fixed in the IDE itself ?

-Arun

--
Application Platform, Sun Microsystems, Inc.
Blog: http://blogs.sun.com/arungupta

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@...
For additional commands, e-mail: dev-help@...


Re: Rails + GlassFish + NetBeans 6.7 beta = stuck!

by Petr Jiricka :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

In the latest builds it already honors your default JDK setting, so  
this workaround is only needed for beta. However, you are right that  
there is no way to do this from NetBeans itself.

Petr

On Apr 30, 2009, at 5:47 PM, Arun Gupta wrote:

>
>>>
>> So does it work when you use the --jdkhome parameter and point it  
>> to JDK 6? Is that a suitable workaround?
> Yes. How will it be fixed in the IDE itself ?
>
> -Arun
>
> --
> Application Platform, Sun Microsystems, Inc.
> Blog: http://blogs.sun.com/arungupta
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@...
> For additional commands, e-mail: dev-help@...
>


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@...
For additional commands, e-mail: dev-help@...


Re: Rails + GlassFish + NetBeans 6.7 beta = stuck!

by Arun Gupta :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks!

Filed http://www.netbeans.org/issues/show_bug.cgi?id=164245 for that.

-Arun

Petr Jiricka wrote:

> In the latest builds it already honors your default JDK setting, so this
> workaround is only needed for beta. However, you are right that there is
> no way to do this from NetBeans itself.
>
> Petr
>
> On Apr 30, 2009, at 5:47 PM, Arun Gupta wrote:
>
>>
>>>>
>>> So does it work when you use the --jdkhome parameter and point it to
>>> JDK 6? Is that a suitable workaround?
>> Yes. How will it be fixed in the IDE itself ?
>>
>> -Arun
>>
>> --
>> Application Platform, Sun Microsystems, Inc.
>> Blog: http://blogs.sun.com/arungupta
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@...
>> For additional commands, e-mail: dev-help@...
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@...
> For additional commands, e-mail: dev-help@...
>

--
Application Platform, Sun Microsystems, Inc.
Blog: http://blogs.sun.com/arungupta

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@...
For additional commands, e-mail: dev-help@...