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 127213 - can not build war file
Summary: can not build war file
Status: RESOLVED DUPLICATE of bug 126899
Alias: None
Product: ruby
Classification: Unclassified
Component: Rails (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P1 blocker (vote)
Assignee: Erno Mononen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-12 16:17 UTC by luixx
Modified: 2008-02-13 12:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description luixx 2008-02-12 16:17:49 UTC
Hi, i wanted to create a war file for a rails project. I am doing the same like you do on your tutorial
http://www.netbeans.org/kb/60/ruby/setting-up.html .The problem is that the rake gets canceled. the error code is

ake aborted!
Error: failed to create archive, error code 256
rake aborted!
named class doesn't start with '{' 

the funny thing is on serveral machine it does not work at all and on some if you restart the rake over and over again
it works (3 people tested it seperately on 5 machines).
Comment 1 Erno Mononen 2008-02-12 16:32:52 UTC
Could you please specify the exact versions of the IDE, Rails and JRuby that you are using? One thing to notice is that 
the plugin used for creating the war file (Goldspike) requires network access, although you would most likely be seeing 
a different error if that was the problem.
Comment 2 luixx 2008-02-13 07:55:50 UTC
I am using Netbeans 6.0, JRuby 1.0.2 and Rails 1.2.5  Could you please explain why network access is reuired ? I just
want to build a war file ...

Thank you
Comment 3 Erno Mononen 2008-02-13 10:05:12 UTC
Thanks for the info. Network access is required because the Goldspike plugin downloads libraries from the internet when 
creating a war file. I remember seeing a similar error reported a while back, it was caused by having insufficient 
permissions. Do you have write access to the files that are being packaged? If not, this is probably a duplicate of 
issue 126899.
Comment 4 luixx 2008-02-13 10:29:36 UTC
Thank you very much for the answer. I think that explains why it will not work. There is only one last thing. How is it
possible to create a war file without network access. We do have network access here but it runs over a proxy and you
need an user and a password to get permission to the network/internet. I did not find anything where i can put these
information and the war building process is not asking after it. I think it is not very good that you need internet
access if you just want to test on a local machine.

Do you have suggestions how to solve the problem ? 

Thank you very much for your help i really appriciate it.
Comment 5 Erno Mononen 2008-02-13 11:02:23 UTC
I'm not sure whether it is possible to do it with Goldspike, meaning that don't know how to do it from the IDE 
currently - the IDE depends on Goldspike for this functionality. However, it should be possible with Warbler - here are 
a few links to resources on it:

Announcement:
http://blog.nicksieger.com/articles/2007/09/04/warbler-a-little-birdie-to-introduce-your-rails-app-to-java

Wiki:
wiki.jruby.org/wiki/Warbler 

Documentation:
http://caldersphere.rubyforge.org/warbler/

A blog entry explaining how to use it with JRuby 1.0.3:
http://fuzzypanic.blogspot.com/2008/01/jruby-war-packaging.html

I hope this helps. If you have any further questions, you might want to subscribe to users@ruby.netbeans.org (if you're 
not subscribed already) and ask there.

So I'm closing this as a duplicate of issue 126899, if I understood correctly that and network access were the problems 
you had, is that right?

*** This issue has been marked as a duplicate of 126899 ***
Comment 6 luixx 2008-02-13 12:14:44 UTC
Yes that is right.

Thank you very much for your support