This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 124377 - After applying patch WEBrick no longer runs rails application
Summary: After applying patch WEBrick no longer runs rails application
Status: RESOLVED WORKSFORME
Alias: None
Product: ruby
Classification: Unclassified
Component: Rails (show other bugs)
Version: 6.x
Hardware: Macintosh All
: P1 blocker (vote)
Assignee: Torbjorn Norbye
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-21 18:16 UTC by javajini
Modified: 2008-01-08 16:57 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screenshot of the error (164.88 KB, image/png)
2007-12-21 18:18 UTC, javajini
Details

Note You need to log in before you can comment on or make changes to this bug.
Description javajini 2007-12-21 18:16:59 UTC
I am running Mac OS X 10.4.11 (8S2167) on a 2GHz Intel MacBook with a Core2Duo processor. I installed NetBeans 6.0 the
day it was released. After a week or so of use I saw the update icon at the bottom of the screen. After the patch,
neither of the rails apps that had been running fine before hand would run. The output window had the following message
in it when I tried to run either rails app from within NetBeans using WEBrick.

Exception in thread "main" java.lang.NoClassDefFoundError: org/jruby/Main
Comment 1 javajini 2007-12-21 18:18:34 UTC
Created attachment 54453 [details]
screenshot of the error
Comment 2 Torbjorn Norbye 2007-12-21 18:41:02 UTC
Hi Javajini,
I just tried it myself - ran stock NetBeans 6.0, then installed patch 1, restart the IDE and ran my Rails app - it
worked. My plugin manager looks different than yours - I'm not sure why all those entries in the plugin list are grayed
out. What does that mean? Jiri?   In my own plugin manager I have a single item like that - "Platform", which is gray -
I can't activate it, deactivate it or see why it's grayed out.

One quick thing you can try is to run NetBeans 6.0 with --userdir /tmp/foo or C:\nonexistent or something like that
(--userdir some-nonexistent-path) which will run "stock" NetBeans (the patch sits in your user directory). You can then
try updating again and see if that helps. If it does, wipe out your real user directory (its location is listed in the
About box). Maybe something failed during patch application?

Note - you need to have the "JRuby and Rails" distribution installed.
Comment 3 Petr Jiricka 2008-01-08 14:19:31 UTC
Also works fine for me. If this still happens for you, can you please also attach the log file? (View -> IDE Log File,
paste it to a text file and add this text file as an attachment to the issue.) Thanks.
Comment 4 Torbjorn Norbye 2008-01-08 16:57:29 UTC
I heard back from Kellie a while back via direct e-mail: "Thanks for the help. I deleted the ~/.netbeans directory and
ran NetBeans again and it works fine. I'm not sure what got hosed but that got me back in business. I'm pretty new to
NetBeans so I don't know how to close out the issue. If I need to do anything, please just let me know.". 

So closing the issue. Thanks for the report!