Česky   |  Deutsch   |  English   |  Español   |  Français   |  Indonesia   |  日本語   |  한글   |  Polski   |  Português (BR)   |  Türkçe   |  中文   |  正體中文   |  Your Language  
PlanetNetbeans
Planet NetBeans is an aggregation of NetBeans related musings from all over the Blogosphere.
Feeds
[RSS 1.0 Feed] [RSS 2.0 Feed]
[FOAF Subscriptions] [OPML Subscriptions]
Do you blog about NetBeans ? Add your blog to PlanetNetBeans.
Feed Subscriptions
arrow.JARa's Bilingual Weblogfeed subscription
arrowAPIDesign - Blogsfeed subscription
arrowAdam Bienfeed subscription
arrowAdam Myatt's Weblogfeed subscription
arrowAlex Kotchnev's blogfeed subscription
arrowAmateur's Codingfeed subscription
arrowAmit Kumar Saha's Blogfeed subscription
arrowAn Open Source Fasciculefeed subscription
arrowAnother Random Developer Blog » NetBeansfeed subscription
arrowAnuradha G Blogfeed subscription
arrowBernhard's Weblogfeed subscription
arrowBig Al's Blogfeed subscription
arrowBistro!feed subscription
arrowBrian Leonard's Blogfeed subscription
arrowCarsten Zerbst's Weblogfeed subscription
arrowCharlie Hunt's Weblogfeed subscription
arrowChris Webster's Weblogfeed subscription
arrowCode Snakesfeed subscription
arrowComputer says null;feed subscription
arrowCraig McClanahan's Weblogfeed subscription
arrowDavid Coldrick's Weblogfeed subscription
arrowDevel Blogfeed subscription
arrowDevlin's Labfeed subscription
arrowDiego Torres Milano's blogfeed subscription
arrowGeertjan's Blogfeed subscription
arrowGregg Sporar's Blogfeed subscription
arrowHans Muller's Blogfeed subscription
arrowHulles - NetBeansfeed subscription
arrowInsert Witty Irony Herefeed subscription
arrowInside of the NetBeans Mobilityfeed subscription
arrowInsider Scoop From the Tutorial Divasfeed subscription
arrowInspiration and Expression » Netbeansfeed subscription
arrowJames' Blogfeed subscription
arrowJan (Hanz) Jancura's Blogfeed subscription
arrowJanice Campbell's Weblogfeed subscription
arrowJava and Nigerian Developers » Netbeansfeed subscription
arrowJean-Francois Denise : JMX, NetBeans and more!feed subscription
arrowJesse Glickfeed subscription
arrowJohn O'Connerfeed subscription
arrowJonathan H Fisher - Blog » Netbeansfeed subscription
arrowJun Qian (钱骏) 's Weblogfeed subscription
arrowLudovic Champenois's Blogfeed subscription
arrowLukas Hasik's Weblogfeed subscription
arrowMartin Adamek's Blogfeed subscription
arrowMartin Grebacfeed subscription
arrowMasaki Katakai's Weblogfeed subscription
arrowMilan's blogfeed subscription
arrowMiles to go ...feed subscription
arrowMobility Everywherefeed subscription
arrowNETBEANS 6.1feed subscription
arrowNetBeans Adventures, Java and morefeed subscription
arrowNetBeans Community Docs Blogfeed subscription
arrowNetBeans Guru » NetBeansfeed subscription
arrowNetBeans Profilerfeed subscription
arrowNetBeans Support Weblogfeed subscription
arrowNetBeans for PHPfeed subscription
arrowNetbeansfeed subscription
arrowNetbeans6/6.1beta my best practicesfeed subscription
arrowOctavian Tanase's Weblogfeed subscription
arrowPatrick Keegan's Blogfeed subscription
arrowPavel Buzek's Weblogfeed subscription
arrowRamon.Ramosfeed subscription
arrowRechtacek'sfeed subscription
arrowRich Unger's Blogfeed subscription
arrowRoumen's Weblogfeed subscription
arrowSatya's Blogfeed subscription
arrowSeapegasus Blogfeed subscription
arrowShuttle between Galaxiesfeed subscription
arrowStan's Weblogfeed subscription
arrowThe Netbeans Experiencefeed subscription
arrowThe Next Wavefeed subscription
arrowThe Portal Postfeed subscription
arrowTim Boudreau's Blogfeed subscription
arrowTom Ball's Blogfeed subscription
arrowTomasz Slota's Weblogfeed subscription
arrowToni Epple » netbeansfeed subscription
arrowTor Norbye's Weblogfeed subscription
arrowVadiraj's Blogfeed subscription
arrowVincent Brabant's Blogfeed subscription
arrowVirtual Stevefeed subscription
arrowVivek's Weblogfeed subscription
arrowWeb Cornucopiafeed subscription
arrowWhisht Windfeed subscription
arrowWinston Prakash's Weblogfeed subscription
arrowXzajo's Weblogfeed subscription
arrow[digital:meditation]feed subscription
arrowcldfeed subscription
arrowdavidsalter.co.uk - NetBeansfeed subscription
arrowmkleintfeed subscription
arrowsandip chitale's blogfeed subscription
arrowtm's weblogfeed subscription
Where's my Blog?!

Powered by:    Planet

Last updated:
July 05, 2008 10:11 PM
All times are UTC

sponsored by Sun Microsystems

visit NetBeans website
Adam Bien - July 05, 2008 02:43 PM
Java FX - Shapes, Binding, Animation Screencast By Josh Marinacci

Short and nice tutorial, which gives you an overview about Binding, Shapes and Animation (timelines and tweens) by Josh Marinacci

Janice Campbell's Weblog - July 04, 2008 06:36 PM
Independence Day

Today is Independence Day in the US. Families and friends gather together to barbecue, swim, play sports, picnic in parks, eat watermelon, enjoy each other's company, and watch fireworks displays.

The founders of this country fought for people to be able to think freely and pursue their beliefs without repercussions.

Today, I honor Amaury Rodríguez Pérez, a developer and NetBeans fan from Cuba, who, because of US export laws, is unable to freely download NetBeans. My hope is that one day the political issues between our two countries will be healed. Hope for equality, liberty and justice around the world.

Amaury and his son Adrian showing off the NetBeans 6 and Translation Team tshirts.


Bistro! - July 04, 2008 02:36 PM
Blogging at 300 km/h


It's not even Wifi. I love being a geek!

Adam Bien - July 04, 2008 12:54 PM
The Synergy Between Operations And Development, Or Why Glassfish Takes Off

It seems like the software development process is driven by developers :-). Fast booting, text-based configuration, IDE-integration and hot deployment - or better no deployment are key to developer acceptance in appserver market. Small footprint and modularization can be derived from the previous requirements. Nonetheless, the development phase ends with the delivery of your software to your customer - and so operations. Often developers choose "lightweight" application servers for development - and deployed to application servers maintained by the operations. The problem is: although with Java EE 5 there are no more problems with porting an application from one server to another, but the servers can still behave different. So there is always some fraction here.

The operators prefer application servers with good monitoring capabilities, easy visual administration (or easy console administration - it really depends on the company) - but just don't care about boot times, hot deployment etc. Glassfish is the first, server I know, that tries to satisfy developers as well as operations. And it is opensource on top... It is small enough to use it for your day to day job, and it can scale to an enterprise system. Furthermore - Glassfish comes with excellent monitoring capabilities, nice visual console - even the documentation is directly accessible from the admin console ...as PDF. This is what administrators like - but it is still possible to configure Glassfish using XML and command line interface.

By scaling, I do not only mean "throughput", but deploying EJB 3, WebBeans (Seam), JCA, JMS connectors etc. if needed as well. Also the acronyms sounds scary, it is really easy to access e.g. an SAP system via JCA (or JRA), or communicate with a mainframe via JMS. Btw. even really simple applications are easier to build with EJB 3, than without.

So, "Tomcat Today, Glassfish Tomorrow - or I would rather say: Glassfish v2 Today, Glassfish v3 Tomorrow :-)".  And...even Rod Johnson likes Glassfish :-).

Bistro! - July 04, 2008 11:03 AM
DZone article on GlassFish

I quickly slapped together a GlassFish article for DZone. It mainly focuses on the current GlassFish v2 release. Somehow in the process of publishing this, it didn't come clear that I was on the GlassFish team (although it was clear to the editor I exchanged emails with). I wonder if the rather very favorable comments would have been the same if my role had been better advertised. I've updated my profile to make my affiliation clear.

NetBeans Guru » NetBeans - July 04, 2008 07:37 AM
NetBeans Quiz | No more Quizzing!

Hey, Finally, NetBeans Quizzes comes to an end, the much awaited Grand Finale, promises to be the most spectacular end of a long series of quizzes spanning 11 weeks with 1 quiz per week, 11 winners and 96295 participants! What amazing statistics! Anyways, time to tell you about the winner of the last quiz; Week 11 - Winner: Sourav [...]

cld - July 04, 2008 04:45 AM
Gadget of the Week : City 2.0

This week's Gadget-of-the-Week is a emerging as technology-rich, carbon-light, alternative energy version that is City 2.0. More...

NetBeans Community Docs Blog - July 04, 2008 03:30 AM
Últimas Contribuciones

Surprised!

No need to be, its meant for Spanish NetBeans Users! ;-) I am just joking, actually in English, we say Latest Contributions! Yes, time has come again to update you about the latest from the Community Docs Program.

Lets give a warm welcome to NetBeans Dream Team member -
Aristides Villarreal Bravo, for contributing Spanish version of an already existing platform tutorial, written in English, based on Visual Library API!

Tutorial de NetBeans Visual Library en Español
Also, there have been some more contributions over the past few days, post FY(07-08)! You may have a look at them, and as always you are the ultimate judges, so use the tutorials, tips and Tricks, FAQs and comment/suggest what ever you feel like?

Happy NetBeaning!

Geertjan's Blog - July 03, 2008 11:09 PM
Further with Spring RCP

In addition to Getting Started with Spring RCP, I've now also written Getting Further with Spring RCP. It's pretty interesting what Spring RCP can do for your Swing applications. This part covers Spring RCP dialogs, the Form Builder, and rules based validation, with this result:

I'm looking forward to getting even further with it...

cld - July 03, 2008 08:21 PM
Two New Articles : Java/Scripting Language Mechanics, Using JMaki and PHP

Two new articles on scripting languages. The first discusses the mechanics in Java to interface/integrate scripting languages and Java. The second article offers a tutorial/article showing how to use JMaki, PHP, MySQL to build a web app. More...

Lukas Hasik's Weblog - July 03, 2008 11:45 AM
NetCAT 6.5 - invitation to the program

This message shouldn't be missed by those that would like to influence the NetBeans 6.5 release quality. It was sent to nbusers mailing list

Hello folks,

  NetBeans IDE 6.5 is approaching its stabilization phase and we are glad to extend to you an opportunity to participate in our 2 months NetBeans 6.5 Community Acceptance Testing (NetCAT) program [1].

  With NetBeans 6.5, we have incorporated many features requested by the community. Just to listen the biggest and most noticeable ones:

  * Scripting languages support (PHP, Ruby, Groovy, JavaScript)
  * Enhanced DB tooling and improved integration with MySQL
  * Background compilation, new Generic Language Framework APIs
  * Support for custom project structures
  * New UML drawing area control
  * and much more...

  Now we need your help. If you have an experience with NetBeans and want to contribute some time and effort, go for it and register [2] now! We are looking for 60 dedicated users willing to help NetBeans 6.5 become the best IDE. Applications are being accepted until next Monday - July 7, 2008.

  Each participant committed to providing timely feedback during this program will be given a chance to significantly influence the quality of the NetBeans 6.5 release. Besides, there are some gifts prepared for all helpful members.

Ready to contribute? We look forward to hearing from you!

Best regards,
Jiri Kovalsky
NetCAT 6.5 coordinator

[1] http://qa.netbeans.org/processes/cat/65/index.html
[2] http://qa.netbeans.org/processes/cat/65/application.html 

Adam Bien - July 03, 2008 08:38 AM
OSGI Was Supported By Sun Long Before J2EE...

It's actually funny, or tragic. Sun started in August 1999, the Java Embedded Server 1.0 product (JES) for residential gateways.
In May, 2000 JES 2.0 software became even OSGi compliant. I gave some workshops in 2001 / 2003 timeline, but actually no one was really interested in OSGI at the time.
Why Sun is just not waiting for about 10 years, until they announce their products? :-) The same (tragic) story, like with JavaBlend and JINI... Sometimes it is interesting to delve into the history of Java.

Geertjan's Blog - July 03, 2008 06:55 AM
Sources for Spring RCP Tooling Live on java.net

I made a small typo (springrpctooling instead of springrcptooling), but aside from that glitch, it's all good and the sources are now available here, graduated from the Java Tools incubator:

https://springrpctooling.dev.java.net/index.html

cld - July 03, 2008 06:35 AM
NetBeans Common LISP ?

Looking at various LISP environments are pushing me toward looking at a NetBeans LISP IDE extension. More....

Insider Scoop From the Tutorial Divas - July 02, 2008 05:30 PM
Using the IRB in the NetBeans IDE

Accessing the IRB Console from the IDE

The Ruby support in the NetBeans 6.1 IDE includes the Interactive Ruby (IRB) Console. To open the console, choose Window > Other > Ruby Shell from the main menu. The console opens in the bottom window.

The IRB console

The interpreter that is used by the console depends on the main project's Ruby Platform setting (the bold project node in the Projects window is the main project). To see the Ruby Platform setting, right-click on project's node and choose Properties. If your project is a Ruby project, select Run in the Categories pane to see the Ruby Platform setting. You can switch to a different platform, if you want.

The tab for the IRB console window indicates which the interpreter it is using. In the above screenshot, you can see that the IDE is using the Built-In JRuby platform.

To exit from the IRB console, type exit or quit, and close the window.

Using Gems in the IRB Console

Before you can use gems in the IRB, you have to load RubyGems. Most platforms take care of this for you. For those that do not, such as the built-in JRuby platform, you must load it yourself. If you do not load RubyGems, you will see an error similar to the following output.

>> require 'renum'
  LoadError: no such file to load -- renum
  from (irb):2:in `require'
  from (irb):2:in `signal_status'

The quickest way load RubyGems is to type the following statement in the console.

>> require 'rubygems'

If you do not want to type that every time you open an IRB console, you can add -rubygems to the Ruby Options text box in the project's Properties dialog box.

Setting -rubygems in the Properties dialog box

Using .irbrc Files for Common Settings

Another way to load RubyGems every time you open the console, is to add or copy over an .irbrc file to the project's top level folder and add require 'rubygems' to that file. To create an .irbrc file, right-click the project node and choose New > Other from the pop-up menu. Select Other in the Categories pane, select Empty File in the File Types pane, and click Next. Name the file .irbrc and click Finish.

If you have IRB settings that you would like applied to all your projects, such as loading RubyGems, you can put the settings in an .irbrc file in your home directory. In order to get the IDE to read this file when opening the IRB console, you must create a HOME system environment variable (be sure to make it all capital letters) that provides the path to your home directory, and restart the IDE.

Note that you will not see the .irbrc file in the Projects window or the Files window. To learn how to configure the IDE so that you can see this file, see MRHAKI's blog that shows how.

Using the JRuby IRB Console

The IDE also offers support for the JRuby IRB console. With this console, you get code completion, as shown below. You can type the first few characters and press Tab to see a list of suggestions.

JRuby IRB console

The JRuby IRB console also has a history feature. Pressing the Up-Arrow key scrolls through through the command history and pressing the Down-Arrow key scrolls back. You can press Return to re-execute a command.

To enable the JRuby IRB console, add the following flag to your NetBeans IDE startup command or add it to the netbeans_default_options entry in the netbeans-install-dir/etc/netbeans.conf file, and restart the IDE. One problem with this option, is that you get the JRuby IRB console, regardless of which platform your project is using.

-J-Dirb.jruby=true

James' Blog - July 02, 2008 02:51 PM
NetBeans & PHP Team Blog

Hi all,

As you probably know, PHP is major story for NetBeans 6.5. Some engineers have already started breaking in users by blogging about NetBeans and PHP. This is something you should be reading.

See it here:

http://blogs.sun.com/netbeansphp/

Cheers!

--James

Adam Bien - July 02, 2008 10:02 AM
Netbeans 6.1 Editor - One Of My Favorite Shortcuts / "Hidden" Functionalities

Netbeans 6.1 is able to automatically assign a return value and create a variable for you. This is really convenient. To try it out do the following:

  1. Type e.g. new java.util.Date();  (or new Date() with strg+space -> it will import it for you), or invoke an arbitrary method with a return value (e.g toString()).
  2. Then go with the cursor to Date()  (or the method).
  3. You should see a yellow bulb on the left. Either click on the bulb, or click alt+enter.
  4. Netbeans should suggest you: "Assign Return Value To New Variable" just press Enter.
  5. Netbeans will create a variable, derive the name and the type. The end result is:  Date date = new Date();
Small thing - but safes time.

Geertjan's Blog - July 01, 2008 04:49 PM
Win Cool NetBeans Stuff

Lloyd and I will be recording another NetBeans Podcast during this week. You can expect several new segments in the upcoming podcasts, such as a recurring segment by Jaroslav Tulach (the original NetBeans API architect) where he will share a tip related to his upcoming API Design book.

However, you have all of this week to... send the ANSWER to the previous NetBeans Podcast puzzler! The puzzler was set in the 42nd minute of the podcast and this time you can win... a copy of Rich Client Programming: Plugging into the NetBeans Platform (by Jaroslav, Tim, and myself, among others), together with a t-shirt.

Click the pretty picture below, listen to the puzzler and solve it and send the answer to nbpodcast AT netbeans DOT org.

NetBeans Podcast Episode #43 (45 min, size: 46.5 MB)

For a complete breakdown of everything that happens during this podcast, see the related NetBeans Zone announcement.

Good luck!

NetBeans Support Weblog - July 01, 2008 04:37 PM
Useful resources

The following are some useful resources to obtain information on NetBeans:

Resource

Notes

netbeans.org

Start here...



Obtain professional support

Sun Microsystems support offerings for the NetBeans IDE...

Sun Developer Services Buying Guide (PDF)



my.netbeans.org
Your own customized netbeans.org...
netbeans.tv

connecting the diverse and worldwide community of People...



Community

Register to Join the NetBeans Community...

Mailing Lists
If you are a NetBeans IDE user, and want support, first subscribe to the nbusers list, then post your question there...
Report a bug
To file an issue in the netbeans.org bugtracking system (Issuezilla) :


Community wiki
Releases, planning , faqs, builds, sources, articles and more...
Community Docs NetBeans documentation contributed by the community


Articles
This is a repository for articles about NetBeans IDE that supplements the standard documentation set...
NetBeans zone
The social network for developers...From lengthy articles to tips & tricks -- they're all welcome there, so long as they relate to NetBeans IDE or the NetBeans Platform.
javapassion
Tutorials and articles
Planet NetBeans
Blogs...

Adam Bien - July 01, 2008 09:01 AM
EJB 3 (@Session) For Absolute Beginners - 3 Minutes Bootstrap, 5 Steps

Requirements:

  1. Installled JDK 1.5 (better 1.6) 
  2. An IDE of your choice e.g. vi, emacs, netbeans 6.1 (SE or EE), Eclipse Genymede (SE or EE)
  3. @Stateless, @Local Annotations in classpath
  4. An Java EE 5 capable application server of your choice. It will work with Glassfish v1+ (better v2), JBoss 4.2+, WLS 10+ and probably Geronimo (not tried yed)

What is to do:

  1. In the IDE you will have to point to a JAR containing the two annotations. If you have the Reference Implementation installed (Glassfish), put just: glassfish\lib\javaee.jar to the classpath. IDEs with built in EE support have already everything you need. However for the very first time I would prefer to develop "from scratch" an EJB.
  2. Create an interface with a method (without a method is a little bit odd :-)):
    import javax.ejb.Remote;

    @Remote
    public interface HelloWorld {
        public void sayHello();
    }
  3. Create a class which implements this interface. You will be forced by a good IDE (probly not by vi or emacs) to implement this interface:
    import javax.ejb.Stateless;

    @Stateless
    public class HelloWorldBean implements HelloWorld {
       
         public void sayHello() {
            System.out.println("Hello!");
        }
    }
  4. Compile everything and JAR the output (in Netbeans just "build", in Eclipse "Export -> JAR")
  5. Copy the JAR into the autodeploy folder of WLS 10 (bea10\user_projects\domains\YOUR_DOMAIN\autodeploy), or glassfish\domains\domain1\autodeploy in the case of Glassfish v2, or jboss-4.2.2.GA\server\default\deploy in case of JBoss
  6. Inspect the log files, you are done :-)

What you have gained:

  1. It's threadsafe (in multicore environments as well) 
  2. Remoting: you can access the interface remotely
  3. It's transactional - transactions are started for you
  4. It's pooled - you can control the concurrency and prevent "denial of service" attacks.
  5. It's monitored: and EJB have to be visible through JMX. Application servers provide additional monitoring services as well.
  6. Dependency Injection just works - you can inject persistence, other beans, legacy pojos (I will cover this in some upcomings posts)
  7. It's portalble and so vendor-neutral. Deployment to different application servers just works
  8. There is NO XML.
  9. Its easily accessible (via DI), from Restful services, JSF, Servlets etc.
  10. Clustering and security are beneficial as well - but not the main reason to use EJBs

Geertjan's Blog - June 30, 2008 09:41 PM
Spring RCP Meets NetBeans IDE

Spring RCP tooling in the Plugin Portal, since today, which makes sense in combination with Getting Started with Spring RCP, a tutorial that is available on Javalobby.

Seapegasus Blog - June 30, 2008 08:29 PM
Brave NetBeans World

When you look at all the great video tutorials, podcasts, and tips and tricks that Roumen did for NetBeans, what could we give Roumen in return for his work to thank him?

Today I thought: What about this link to James Wallis' Brave N00b World? I bet he'd enjoy that. :-D

In case you wonder what kind of job opening Roumen would need to smuggle into the company database to get to make a living studying the world of the World of Warcraft: It's metaverse evangelist, apparently!

PS: Don't worry, despite the Roumen-shaped hole on NetBeans.org, Geertjan and Lloyd will continue to provide you with NetBeans podcasts and video tutorials etc as Roumen already mentioned. Stay tuned! :-)

Miles to go ... - June 30, 2008 12:00 PM
Substruct on GlassFish v3 - Ruby-on-Rails E-Commerce Application


Substruct is an open-source E-Commerce project written using Ruby-on-Rails framework. It provides a simple e-commerce platform, content management system and customer response system - all in one.


I found out about this application from Sang "Passion" Shin's Lab 5542 (part of FREE 20-week course on Ruby-on-Rails starting on Jul 15, 2008). But instead of using standard WEBrick/Mongrel deployment, I describe the steps to deploy this application using GlassFish v3 Gem. The GlassFish Gem installation is described here.

  1. Download and install Substruct

    ~/samples/jruby >gunzip -c substruct_rel_1-0-a3.tar.gz  | tar xvf -
    substruct_rel_1-0-a3/
    substruct_rel_1-0-a3/app/
    substruct_rel_1-0-a3/app/controllers/
    substruct_rel_1-0-a3/app/controllers/application.rb
    . . .
    substruct_rel_1-0-a3/vendor/rails/railties/test/rails_info_test.rb
    substruct_rel_1-0-a3/vendor/rails/railties/test/secret_key_generation_test.rb
    substruct_rel_1-0-a3/vendor/rails/Rakefile
    substruct_rel_1-0-a3/vendor/rails/release.rb
  2. Install the required gems for Substruct

    ~/samples/jruby >~/testbed/jruby-1.1.2/bin/jruby -S gem install RedCloth fastercsv mime-types mini_magick ezcrypto jruby-openssl --no-ri --no-rdoc
    JRuby limited openssl loaded. gem install jruby-openssl for full support.
    http://wiki.jruby.org/wiki/JRuby_Builtin_OpenSSL
    Bulk updating Gem source index for: http://gems.rubyforge.org/
    Successfully installed RedCloth-3.0.4
    Successfully installed fastercsv-1.2.3
    Successfully installed mime-types-1.15
    Successfully installed rubyforge-1.0.0
    Successfully installed hoe-1.5.3
    Successfully installed mini_magick-1.2.3
    Successfully installed ezcrypto-0.7
    Successfully installed jruby-openssl-0.2.3
    8 gems installed
  3. Create the database

    ~/samples/jruby/substruct_rel_1-0-a3 >~/testbed/jruby-1.1.2/bin/jruby -S rake db:create
    (in /Users/arungupta/samples/jruby/substruct_rel_1-0-a3)
    [SUBSTRUCT WARNING]
    Mail server settings have not been initialized.
    Check to make sure they've been set in the admin panel.
  4. And bootstrap it as

    ~/samples/jruby/substruct_rel_1-0-a3 >~/tesbted/jruby-1.1.2/bin/jruby -S rake substruct:db:bootstrap
    (in /Users/arungupta/samples/jruby/substruct_rel_1-0-a3)
    Checking requirements...
    Initializing database...
    [SUBSTRUCT WARNING]
    Mail server settings have not been initialized.
    Check to make sure they've been set in the admin panel.
    -- create_table("content_nodes", {:force=>true})
       -> 0.3020s
    -- add_index("content_nodes", ["name"], {:name=>"name"})
       -> 0.0140s
    -- add_index("content_nodes", ["type", "id"], {:name=>"type"})
    . . .
    -- initialize_schema_information()
       -> 0.0200s
    -- columns("schema_info")
       -> 0.0650s
    Clearing previous data...
    Removing all sessions...
    Loading default data...
    ...done.
    ================================================================================

    Thanks for trying Substruct 1.0.a3

    Now you can start the application with 'script/server'
    visit: http://localhost:3000/admin, and log in with admin / admin.

    For help, visit the following:
      Official Substruct Sites
        - http://substruct.subimage.com
        - http://code.google.com/p/substruct/
      Substruct Google Group - http://groups.google.com/group/substruct

    - Subimage LLC - http://www.subimage.com
  5. And finally run it on the GlassFish as:

    ~/samples/jruby >~/testbed/jruby-1.1.2/bin/jruby -S glassfish_rails substruct_rel_1-0-a3
    May 28, 2008 1:47:46 PM com.sun.enterprise.glassfish.bootstrap.ASMain main
    INFO: Launching GlassFish on HK2 platform
    May 28, 2008 1:47:46 PM com.sun.enterprise.glassfish.bootstrap.ASMainHK2 findDerbyClient
    INFO: Cannot find javadb client jar file, jdbc driver not available
    May 28, 2008 1:47:47 PM com.sun.enterprise.v3.services.impl.GrizzlyProxy start
    INFO: Listening on port 3000
    May 28, 2008 1:47:47 PM com.sun.enterprise.v3.services.impl.GrizzlyEmbeddedHttpConfigurator configureSSL
    WARNING: pewebcontainer.all_ssl_protocols_disabled
    May 28, 2008 1:47:47 PM com.sun.enterprise.v3.services.impl.GrizzlyEmbeddedHttpConfigurator configureSSL
    WARNING: pewebcontainer.all_ssl_ciphers_disabled
    May 28, 2008 1:47:47 PM com.sun.enterprise.v3.services.impl.GrizzlyProxy start
    INFO: Listening on port 3131
    May 28, 2008 1:47:47 PM com.sun.enterprise.v3.services.impl.GrizzlyProxy start
    INFO: Listening on port 3838
    May 28, 2008 1:47:48 PM com.sun.enterprise.v3.admin.adapter.AdminConsoleAdapter setContextRoot
    INFO: Admin Console Adapter: context root: /admin
    May 28, 2008 1:47:48 PM com.sun.enterprise.rails.RailsDeployer registerAdapter
    INFO: Loading application substruct_rel_1-0-a3 at /
    May 28, 2008 1:47:48 PM 
    INFO: Starting Rails instances
    May 28, 2008 1:47:56 PM com.sun.grizzly.jruby.RubyObjectPool$1 run
    INFO: Rails instance instantiation took : 8800ms
    May 28, 2008 1:47:56 PM com.sun.enterprise.v3.server.AppServerStartup run
    INFO: Glassfish v3 started in 10403 ms

The welcome screenshot looks like



Now copy GlassFish logo image file to "public/images" directory of your application and add the following line to "app/views/layouts/main.rhtml" file (on line 36):

<a href="http://glassfish.org"><%= image_tag('/images/glassfish-logo.gif', :alt => 'GlassFish') %></a>

The modified view looks like as shown below:



The updated output looks like:



I tried only the basic deployment and that seem to work. If you try slightly more advanced usecases then the functionality provided by RedCloth, fastercsv, mime-types, mini_magick and ezcrypto gems can be exercised as well. If you are running Substruct, try it and let us know.

If your Rails application does not work on the gem, file bugs here with "jruby" as "subcomponent" (default version is "v3").

Also check out Redmine on GlassFish v3.

Technorati: rubyonrails glassfish netbeans substruct webtier

Masaki Katakai's Weblog - June 30, 2008 11:33 AM
How to build localized NetBeans 6.1 for your language

If you want to build localized jar files of NetBeans Platform on your local environment, please try the following step. You can use these jar files with your NetBeans Platform based applications. To build localized jar files, you need to build NetBeans 6.1 first, then build localized jar files. The detail instruction of l10n-kit and localizing NetBeans is described in

General information about NetBeans sources and build instruction is described in 1. Get NetBeans sources.
% hg clone http://hg.netbeans.org/release61
destination directory: release61
requesting all changes
adding changesets
adding manifests
adding file changes
added 77536 changesets with 361898 changes to 79879 files
77396 files updated, 0 files merged, 0 files removed, 0 files unresolved
%
2. Edit release61/nbbuild/user.build.properties. If necessary, please define cluster in nb.clusters.list.
build.compiler=extJavac
javac.compilerargs=-J-Xmx512m
nb.clusters.list=nb.cluster.nb,nb.cluster.platform,nb.cluster.ide,nb.cluster.java
3. Set ant option then run ant
% export ANT_OPTS="-Xmx196m"
% cd release61
% ant
4. Run build-nbms. To run the target of building localized jar file, it seems that we need to build nbms files. Run build-nbms target too.
% ant build-nbms
5. Get localized files under release61/.
% hg clone http://hg.netbeans.org/release61/l10n
destination directory: l10n
requesting all changes
adding changesets
adding manifests
adding file changes
added 177 changesets with 27064 changes to 21005 files
20706 files updated, 0 files merged, 0 files removed, 0 files unresolved
%
When you want to localize files, pick up l10n-kit of NetBeans Platform. Once you localize them, put your files into src/<lang> directory. For example, if you localize Spanish files, put your files into src/es.

6. Run ant under l10n/.
% cd l10n
% ant
Localized jar files will be created under dist/ directory. ja, zh_CN and pt_BR files are created by default. If you want only specific language, please use locales property like below.
% ant -Dlocales=ja
7. Copy localized jar files into your NetBeans 6.1 installation directory.
8. Run NetBeans in proper locale environment. Or use --locale option to specify the language option.
% netbeans --locale zh:TW

James' Blog - June 30, 2008 10:32 AM
FY08 Ends Today

Hi all

Today is the last day of Fiscal Year 2008 (for Sun Microsystems. It was a good year with some impressive acquisitions (think MySQL). I has also been a good year for NetBeans. We saw record downloads. We also saw many significant changes to the IDE (think PHP and JavaScript). NetBeans IDE has never been as good as it is now.

FY 2008 was was also a very good year for the NetBeans Community Docs program. The original Contribution Coordinator, Amit Kumar Saha, gained employment at Sun Microsystems India, and a new Contribution Coordinator was appointed, Varun Nischal. He has done an excellent job.

The NetBeans Community Docs Program had 134 contributions for FY 2008

FY 2008 was also a good year for blogging. I wrote 182 entries to James' Blog during FY 2008 and a few more to the NB Community Docs blog.

Tomorrow it all starts again: FY 2009 will be upon us.

See you then.

Cheers!

--James

Adam Bien - June 30, 2008 08:37 AM
GlassFish & MySQL Unlimited - I Miss One Feature

It seems like Sun started a commercial support strategy for Glassfish and MySQL bundle called "Unlimited".

An excerpt:

"...At a Glance

  • Unlimited server deployments of GlassFish Enterprise Server and MySQL Enterprise
  • Reliable, extensible, record-setting application server
  • The world's most popular open source database—the defacto standard for massive scale in the network economy
  • 90% lower total cost of ownership than traditional database and application server solutions, same enterprise-class support
  • Global mission-critical support & services from 1000s of trained field services personnel
  • No counting sockets or cores
  • No counting support incidents
  • No counting servers
  • No auditing or true-ups

..."

I would like to see the point: "Global mission-critical support..." extended to something like: "Global mission-critical support, without necessary reproduction of errors with additional, docs, proofs and reproduction samples". I had to open cases for different other application servers and it was as time-consuming, as fixing the error myself. The quality of commercial support is really crucial. Right now, the overall quality of commercial support of the competition is not very high it often operates in "Inversion Of Control" mode. You have to provide the isolated sample app with reproduction code, unit tests and even documentation first, before the support-machinery actually kicks in. It can take even weeks, until a problem is recognized (not solved!) as such.

Let see, but this could be a huge opportunity for Glassfish. See also: "The End Of Commercial Java EE 5 Servers?"

Java and Nigerian Developers » Netbeans - June 30, 2008 07:30 AM
South Africa != Africa

I read an article of recent talking about the price of iPhone been dropped to $200 dollars IN SOUTH AFRICA. This really is d last straw that broke the camels back. When will manufacturers realise that Africa is bigger than south africa. Sun Microsystems is also guilty, developers and technology users elsewhere have been ignored. [...]

NetBeans for PHP - June 29, 2008 09:47 PM
Ubuntu, PHP, NetBeans - part I

This article is about installing PHP environment - PHP, Apache, MySQL and xDebug in Ubuntu 8.04. Everything is available through the default Ubuntu repositories, so it should not be hard. I did this last week, when I prepared a machine for our UI study. It's expected that you have already installed Ubuntu or you use VirtuaBox and you have installed Ubuntu as a virtual machine.

Open a terminal. You will need to install all the parts as root, so you have to execute commands trough sudo or  you can in the terminal write command

$ sudo bash

and from this time all what you do in this terminal you do as root. There are the steps for installing the PHP development environment:

  1. Install Appache web server

    apt-get install apache2

  2. Install MySQL server

    apt-get install mysql-server

    The installation of MySQL server will ask for password for root user. It's not mandatory, but I recommend to enter a password.

  3. Install PHP 5

    apt-get install php5

  4. Install MySQL extension for PHP

    apt-get install php5-mysql

  5. Install xDebug extension for PHP - the extension for debugging.

    apt-get install php5-xdebug

  6. This all what you have to install. Now we will set up Apache and PHP.

  7. Setup the Apache web server to use users web sites

    After installing Apache the server should be running. If you click this link http://localhost/ the Firefox is opened and you should see the same content as is on the picture. 

    Localhost

    But when you try the url, which acces web sites in your home folder, it fails. Instead petr write your username:).


    To get it work you have to:
    • Enable userdir module in Apache web server

      a2enmod userdir

    • Create public_html folder in your homedir (do it uder your account, not as root)

      mkdir public_html

    • Restart Apache web server

      /etc/init.d/apache2 restart

      If you do it correctly after refreshing Firefox you should see empty content of the folder as on the picture.



  8. Enable remote debugging in xDebug

    In the folder public_html create index.php file with content:
    <?php
         phpinfo();
    ?>
    
    Refresh Firefox and you should see how the PHP runtime is setup. Search for the property xdebug.remote_enable property. By default this property is switched off as you can see on the picture.


    To enable this property you have to open file /etc/php5/conf.d/xdebug.ini and add line

    xdebug.remote_enable=on

    and restart the Apache web server

    /etc/init.d/apache2 restart

This is all. Now you are ready to start develop a PHP application. Next I will write how to instal JRE (Java Runtime Environment) or JDK (Java Development Kit) and NetBeans PHP. Also I will describe how to check, whether the debugging and MySQL database work well.

Another Random Developer Blog » NetBeans - June 29, 2008 09:15 PM
Contract First Web Services with Spring 2 and JAX-WS


[Read more]

Technorati Tags:: Java, jax-ws, NetBeans, soap, soaphandler, Spring, web services

James' Blog - June 29, 2008 07:23 PM
NB Community Docs: Varun Nischal

Hi all,

Normally I wouldn't be blogging about NetBeans Community Docs here - since we have a NB Community Docs Blog - but now I think it's necessary to recognize a very significant contributor: Varun Nischal. Varun, as you already know, is the Contribution Coordinator for NB Community Docs. He is also a master contributor. In June alone, he has contributed eight docs. Here is the list:

I like the idea than Varun has chosen to lead by example. I also think that the NB Community owes Varun a huge thanks for what he has done. Not only for his contributions (there are many more), but for his excellent work as Contribution Coordinator.

--James