Wednesday April 30, 2008
OSX #8: Java SE 6 U5 on Mac OS X Leopard
Yesterday, Apple released
Java SE version 1.6.0_05 for 64-bit Intel-based Mac OS X 10.5.2 or
later. Download
it here!
It's restricted to 64-bit machines and Charles
is unhappy about it. Hopefully, they'll release a 32-bit
version as well.
Type "sw_vers" in a terminal to check the Mac OS X version as shown
below:
| ~
>sw_vers ProductName: Mac OS X ProductVersion: 10.5.2 BuildVersion: 9C31 |



| /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/bin
>./java -version java version "1.6.0_05" Java(TM) SE Runtime Environment (build 1.6.0_05-b13-120) Java HotSpot(TM) 64-Bit Server VM (build 1.6.0_05-b13-52, mixed mode) |
| /Applications/Utilities/Java/Java Preferences.app/Contents/MacOS >./"Java Preferences" |

Posted by Arun Gupta in General | Comments[1]
|
|
|
|
|
Tuesday April 29, 2008
JavaOne Adrenaline - 6:40 min / mile
It must be JavaOne
adrenaline - This morning I ran 2 0.75 miles with 7:03 min pace and 2
0.5 miles with 6:40 min pace.
My typical speed is 8:30 min/mile and I've never exceeded 7:30 min pace
ever. So this is really cool and exciting!
Follow Sun
Bloggers on JavaOne 2008, Twitter Feeds
and Facebook
Group.
Community
One is next Monday (5/5), register
now!

Full speed ahead ...
Technorati: conf
javaone
javaone2008
running
Posted by Arun Gupta in Running | Comments[0]
|
|
|
|
|
Monday April 28, 2008
TOTD #32: Rails Deployment on GlassFish v3 from NetBeans IDE
Rails
powered by the GlassFish Application Server explains all the
benefits of using GlassFish for developing and deploying your Rails
applications. If you are using NetBeans
6.1 builds then you can deploy your Rails application
directly on GlassFish
v3 from within NetBeans
IDE. No longer you need
to have different development and deployment options.
This blog explains how to install a bleeding-edge GlassFish v3 plugin
and use it to deploy your Rails app natively on GlassFish (no WAR or
anything :). Let's get started! Note, this plugin is bleeding edge and
will soon be released on the Beta Update Center.












Please leave suggestions on other TOTD (Tip Of The Day) that you'd like to see. A complete archive is available here.
Technorati: totd glassfish v3 netbeans rubyonrailsPosted by Arun Gupta in web2.0 | Comments[4]
|
|
|
|
|
Sunday April 27, 2008
GlassFish events @ JavaOne 2008
Start counting in days now before the JavaOne frenzy
begins! In the mean while, here is a quick summary of GlassFish related
events:
| Sunday (5/4) | GlassFish Unconference (free registration) |
| Monday (5/5) | GlassFish Day (free registration - also gives you free access to JavaOne Pavilion and General Sessions on Tuesday), Party @ Thirsy Bear in the evening (just show up) |
| Tuesday - Thursday (5/6 - 5/8) |
Talk to us @ Booth |
| Tuesday (5/6), 7:30pm | GlassFish Application Server: Open Source, Fast, Easy and Reliable (BOF-7900) |
| Tuesday - Friday (5/6 - 5/9) |
Attend sessions - A simple query shows 26 records and I'm sure there are some missing :) |
| Sunday - Friday (5/4 - 5/9) |
Mingle with GlassFish community all days |
Posted by Arun Gupta in General | Comments[0]
|
|
|
|
|
Friday April 25, 2008
Welcome JWBlogs to Blogosphere!

Over the past 10 years JavaWorld.com
is a great source for Java developers focusing on four areas - Java
SE, Java
EE, Java
ME and Developer
Tools. The 10 most recently published articles and tutorials
can be easily
subscribed.
As of yesterday they started a new blog platform - JWBlogs! The
formal announcement in their newsletter
said:
The goal of the
JavaWorld blogs is to provide a daily mix of valuable reading from
around the Java world. Some of the blogs we're starting out with are
syndicated, while others are exclusive to JavaWorld.
I am delighted to be "picked" for the first iteration.
This means
you'll hear a lot about GlassFish,
NetBeans, JRuby, Metro, Groovy, jMaki and many
other technologies in GlassFish
ecosystem - now at JavaWorld as well. Of course, you can
continue to read all the latest & greatest about GlassFish @ TheAquarium,
Adoption Stories,
GlassFish
for Business and about NetBeans @ Planet NetBeans.
Subscribe to their aggregated
feed and send feedback to jwblogs@javaworld.com.
Technorati: javaworld
blogosphere
jwblogs
glassfish
netbeans
community
Posted by Arun Gupta in General | Comments[1]
|
|
|
|
|
Thursday April 24, 2008
Roses from Frontyard - Digital Pictures
A rose, not only by any name, but in any shape or color will smell as
sweet and also look as beautiful :)
Here are some pictures of roses from my front yard. The pictures were
taken around 7pm yesterday and purposely shown in 640 x 480 size in
order to provide visual pleasure! I've higher resolution pictures
available as well, in case you are interested.
All the pictures below keep the flower in center of the frame. I'll try
another set next week with Rule of
Thirds.
Technorati: photography
digital
d80 flowers roses
Posted by Arun Gupta in photography | Comments[5]
|
|
|
|
|
Wednesday April 23, 2008
TOTD #31: CRUD Application using Grails - Hosted on GlassFish and MySQL
TOTD
#30 explained how to create CRUD application using Grails and hosted using
in-built Jetty servlet
engine and in-memory HSQLDB
database. Jetty and HSQLDB are built into Grails and allows to start easily.
You can also use GlassFish and
MySQL for deploying your applications in
production environment.
This blog entry walks you through the steps of deploying a Grails
application on GlassFish and MySQL.
| ~/testbed/grails-1.0.2/samples/crud
>sudo
/usr/local/mysql/bin/mysqld_safe --user root --console Starting mysqld daemon with databases from /usr/local/mysql/data |
| ~/testbed/grails-1.0.2/samples/crud >/usr/local/mysql/bin/mysqladmin create crudProd --user root |
| dataSource
{ pooled = false driverClassName = "com.mysql.jdbc.Driver" username = "root" password = "" dialect = "org.hibernate.dialect.MySQL5InnoDBDialect" } hibernate { cache.use_second_level_cache=true cache.use_query_cache=true cache.provider_class='org.hibernate.cache.EhCacheProvider' } // environment specific settings environments { development { dataSource { dbCreate = "create-drop" // one of 'create', 'create-drop','update' url = "jdbc:hsqldb:mem:devDB" } } test { dataSource { dbCreate = "update" url = "jdbc:hsqldb:mem:testDb" } } production { dataSource { dbCreate = "update" url = "jdbc:mysql://localhost/crudProd" } } } |
| ~/testbed/grails-1.0.2/samples/crud
>grails war Welcome to Grails 1.0.2 - http://grails.org/ Licensed under Apache Standard License 2.0 Grails home is set to: /Users/arungupta/testbed/grails-1.0.2 Base Directory: /Users/arungupta/testbed/grails-1.0.2/samples/crud Note: No plugin scripts found Running script /Users/arungupta/testbed/grails-1.0.2/scripts/War.groovy Environment set to production [delete] Deleting: /Users/arungupta/.grails/1.0.2/projects/crud/resources/web.xml [delete] Deleting directory /Users/arungupta/.grails/1.0.2/projects/crud/classes . . . [propertyfile] Updating property file: /Users/arungupta/testbed/grails-1.0.2/samples/crud/staging/WEB-INF/classes/application.properties [mkdir] Created dir: /Users/arungupta/testbed/grails-1.0.2/samples/crud/staging/WEB-INF/plugins [copy] Warning: /Users/arungupta/testbed/grails-1.0.2/samples/crud/plugins not found. [jar] Building jar: /Users/arungupta/testbed/grails-1.0.2/samples/crud/crud-0.1.war [delete] Deleting directory /Users/arungupta/testbed/grails-1.0.2/samples/crud/staging Done creating WAR /Users/arungupta/testbed/grails-1.0.2/samples/crud/crud-0.1.war |
| ~/testbed/grails-1.0.2/samples/crud
>~/testbed/glassfish/v3/p2b9/glassfish/bin/asadmin
deploy crud-0.1.war crud-0.1 deployed successfully Command deploy executed successfully. |




Please leave suggestions on other TOTD that you'd like to see. A complete archive is available here.
Posted by Arun Gupta in web2.0 | Comments[4]
|
|
|
|
|
Tuesday April 22, 2008
TOTD #30: CRUD Application using Grails - Hosted on Jetty and HSQLDB
After a simple
Grails application, let's create a CRUD
application. Such an application allows to perform basic database
operations to read table rows from the database, create new rows, and
edit and delete existing rows. This blog shows how such an application
can be created using Grails, hosted on built-in Jetty servlet engine
and use in-memory HSQLDB
database for persistence.
A follow-up entry will show how this application can be deployed in
production mode on GlassFish
and using MySQL database.
| ~/testbed/grails-1.0.2/samples
>grails create-app
crud Welcome to Grails 1.0.2 - http://grails.org/ Licensed under Apache Standard License 2.0 Grails home is set to: /Users/arungupta/testbed/grails-1.0.2 Base Directory: /Users/arungupta/testbed/grails-1.0.2/samples Note: No plugin scripts found Running script /Users/arungupta/testbed/grails-1.0.2/scripts/CreateApp.groovy Environment set to development [mkdir] Created dir: /Users/arungupta/testbed/grails-1.0.2/samples/crud/src [mkdir] Created dir: /Users/arungupta/testbed/grails-1.0.2/samples/crud/src/java [mkdir] Created dir: /Users/arungupta/testbed/grails-1.0.2/samples/crud/src/groovy [mkdir] Created dir: /Users/arungupta/testbed/grails-1.0.2/samples/crud/grails-app [mkdir] Created dir: /Users/arungupta/testbed/grails-1.0.2/samples/crud/grails-app/controllers [mkdir] Created dir: /Users/arungupta/testbed/grails-1.0.2/samples/crud/grails-app/services [mkdir] Created dir: /Users/arungupta/testbed/grails-1.0.2/samples/crud/grails-app/domain [mkdir] Created dir: /Users/arungupta/testbed/grails-1.0.2/samples/crud/grails-app/taglib [mkdir] Created dir: /Users/arungupta/testbed/grails-1.0.2/samples/crud/grails-app/utils [mkdir] Created dir: /Users/arungupta/testbed/grails-1.0.2/samples/crud/grails-app/views [mkdir] Created dir: /Users/arungupta/testbed/grails-1.0.2/samples/crud/grails-app/views/layouts [mkdir] Created dir: /Users/arungupta/testbed/grails-1.0.2/samples/crud/grails-app/i18n [mkdir] Created dir: /Users/arungupta/testbed/grails-1.0.2/samples/crud/grails-app/conf [mkdir] Created dir: /Users/arungupta/testbed/grails-1.0.2/samples/crud/test [mkdir] Created dir: /Users/arungupta/testbed/grails-1.0.2/samples/crud/test/unit [mkdir] Created dir: /Users/arungupta/testbed/grails-1.0.2/samples/crud/test/integration [mkdir] Created dir: /Users/arungupta/testbed/grails-1.0.2/samples/crud/scripts [mkdir] Created dir: /Users/arungupta/testbed/grails-1.0.2/samples/crud/web-app [mkdir] Created dir: /Users/arungupta/testbed/grails-1.0.2/samples/crud/web-app/js [mkdir] Created dir: /Users/arungupta/testbed/grails-1.0.2/samples/crud/web-app/css [mkdir] Created dir: /Users/arungupta/testbed/grails-1.0.2/samples/crud/web-app/images [mkdir] Created dir: /Users/arungupta/testbed/grails-1.0.2/samples/crud/web-app/META-INF [mkdir] Created dir: /Users/arungupta/testbed/grails-1.0.2/samples/crud/lib [mkdir] Created dir: /Users/arungupta/testbed/grails-1.0.2/samples/crud/grails-app/conf/spring [mkdir] Created dir: /Users/arungupta/testbed/grails-1.0.2/samples/crud/grails-app/conf/hibernate [propertyfile] Creating new property file: /Users/arungupta/testbed/grails-1.0.2/samples/crud/application.properties [copy] Copying 2 files to /Users/arungupta/testbed/grails-1.0.2/samples/crud [copy] Copying 2 files to /Users/arungupta/testbed/grails-1.0.2/samples/crud/web-app/WEB-INF [copy] Copying 5 files to /Users/arungupta/testbed/grails-1.0.2/samples/crud/web-app/WEB-INF/tld [copy] Copying 87 files to /Users/arungupta/testbed/grails-1.0.2/samples/crud/web-app [copy] Copying 17 files to /Users/arungupta/testbed/grails-1.0.2/samples/crud/grails-app [copy] Copying 1 file to /Users/arungupta/testbed/grails-1.0.2/samples/crud [copy] Copying 1 file to /Users/arungupta/testbed/grails-1.0.2/samples/crud [copy] Copying 1 file to /Users/arungupta/testbed/grails-1.0.2/samples/crud [propertyfile] Updating property file: /Users/arungupta/testbed/grails-1.0.2/samples/crud/application.properties Created Grails Application at /Users/arungupta/testbed/grails-1.0.2/samples/crud |
| ~/testbed/grails-1.0.2/samples/crud
>grails
create-domain-class state Welcome to Grails 1.0.2 - http://grails.org/ Licensed under Apache Standard License 2.0 Grails home is set to: /Users/arungupta/testbed/grails-1.0.2 Base Directory: /Users/arungupta/testbed/grails-1.0.2/samples/crud Note: No plugin scripts found Running script /Users/arungupta/testbed/grails-1.0.2/scripts/CreateDomainClass.groovy Environment set to development [copy] Copying 1 file to /Users/arungupta/testbed/grails-1.0.2/samples/crud/grails-app/domain Created for State [copy] Copying 1 file to /Users/arungupta/testbed/grails-1.0.2/samples/crud/test/integration Created Tests for State |
| class
State { } |
| class
State { String name String abbrev } |
| class
BootStrap { def init = { servletContext -> new State(name:"California", abbrev:"CA").save() new State(name:"New York", abbrev:"NY").save() new State(name:"Texas", abbrev:"TX").save() new State(name:"Wisconsin", abbrev:"WI").save() } def destroy = { } } |
| ~/testbed/grails-1.0.2/samples/crud
>grails
create-controller state Welcome to Grails 1.0.2 - http://grails.org/ Licensed under Apache Standard License 2.0 Grails home is set to: /Users/arungupta/testbed/grails-1.0.2 Base Directory: /Users/arungupta/testbed/grails-1.0.2/samples/crud Note: No plugin scripts found Running script /Users/arungupta/testbed/grails-1.0.2/scripts/CreateController.groovy Environment set to development [copy] Copying 1 file to /Users/arungupta/testbed/grails-1.0.2/samples/crud/grails-app/controllers Created Controller for State [mkdir] Created dir: /Users/arungupta/testbed/grails-1.0.2/samples/crud/grails-app/views/state [copy] Copying 1 file to /Users/arungupta/testbed/grails-1.0.2/samples/crud/test/integration Created ControllerTests for State |
| class
StateController { def index = { } } |
| class
StateController { def scaffold = State } |
| ~/testbed/grails-1.0.2/samples/crud
>grails run-app Welcome to Grails 1.0.2 - http://grails.org/ Licensed under Apache Standard License 2.0 Grails home is set to: /Users/arungupta/testbed/grails-1.0.2 Base Directory: /Users/arungupta/testbed/grails-1.0.2/samples/crud Note: No plugin scripts found Running script /Users/arungupta/testbed/grails-1.0.2/scripts/RunApp.groovy Environment set to development Running Grails application.. 2008-04-18 17:26:29.962::INFO: Logging to STDERR via org.mortbay.log.StdErrLog 2008-04-18 17:26:29.075::INFO: jetty-6.1.4 2008-04-18 17:26:29.155::INFO: No Transaction manager found - if your webapp requires one, please configure one. 2008-04-18 17:26:30.886:/crud:INFO: Set web app root system property: 'crud' = [/Users/arungupta/testbed/grails-1.0.2/samples/crud/web-app/] 2008-04-18 17:26:30.886:/crud:INFO: Initializing Log4J from [file:/Users/arungupta/.grails/1.0.2/projects/crud/resources/log4j.properties] 2008-04-18 17:26:30.945:/crud:INFO: Initializing Spring root WebApplicationContext [0] spring.GrailsWebApplicationContext Refreshing org.codehaus.groovy.grails.commons.spring.GrailsWebApplicationContext@848dfb: display name [org.codehaus.groovy.grails.commons.spring.GrailsWebApplicationContext@848dfb]; startup date [Fri Apr 18 17:26:32 PDT 2008]; parent: org.springframework.web.context.support.XmlWebApplicationContext@cddcc3 [1] spring.GrailsWebApplicationContext Bean factory for application context [org.codehaus.groovy.grails.commons.spring.GrailsWebApplicationContext@848dfb]: org.springframework.beans.factory.support.DefaultListableBeanFactory@11f136 2008-04-18 17:26:34.655:/crud:INFO: Initializing Spring FrameworkServlet 'grails' 2008-04-18 17:26:35.716::INFO: Started SelectChannelConnector@0.0.0.0:8080 Server running. Browse to http://localhost:8080/crud |





Please leave suggestions on other TOTD that you'd like to see. A complete archive is available here.
Technorati: groovy grails glassfish jetty hsqldb scripting crudPosted by Arun Gupta in web2.0 | Comments[6]
|
|
|
|
|
Monday April 21, 2008
JRuby and GlassFish v2 - Another successful deployment @ WorldxChange Communication NZ
![]() |
From proof-of-concept to production in 8 weeks, WorldxChange Communication NZ's online billing system is another succes story of JRuby and GlassFish v2. The portal is designed solely using NetBeans 6.1 IDE. |
Posted by Arun Gupta in web2.0 | Comments[1]
|
|
|
|
|
![]() |
![]() |
Posted by Arun Gupta in General | Comments[0]
|
|
|
|
|
Tuesday April 15, 2008
jMaki Webtop on GlassFish - Ajax World Keynote Video
jMaki Webtop
is a light-weight Mashup
Framework based on jMaki
widgets. The webtop was demonstrated
at Ajax World East 2008 keynote. The key features are:
Posted by Arun Gupta in web2.0 | Comments[1]
|
|
|
|
|
Monday April 14, 2008
GlassFish @ Silicon Valley Web Developer JUG - Tomorrow (Apr 15, 2008)
![]() |
Project GlassFish: On a mission
to please Developers is the topic of talk at Silicon
Valley Web Developer JUG tomorrow (Apr 15, 2008). Hear all about GlassFish v2, it's exciting set of features such as Metro, High Availability, Clustering, Grizzly, Scripting, SIP container, Tools integration (such as NetBeans and Eclipse) and many others that together deliver a compact and high-fidelity Java EE Application server. You'll also learn about GlassFish v3 and how, through modularization and embedability, it enables support for non-Java EE containers such as Rails, Phobos and others. |
![]() |
Posted by Arun Gupta in General | Comments[0]
|
|
|
|
| Rails and Java EE integration - Native Rails on GlassFish v3
The last part of this tri-series blog (Part
1, Part
2) will show how a Rails application can be deployed on
GlassFish - without the need of Goldspike,
Warbler
or any other gem or plugin. Yes, that's a native Rails app deployment
on GlassFish v3.
GlassFish
v3 is next version of GlassFish v2 and the focus is
modularization, enablement of non-Java EE containers and modularity - download
b09.
Rails
powered by GlassFish provides all the details on why
GlassFish provides an industry-grade and functionally-rich Application
Server.
Now detailed steps:
|
~/testbed/jruby-1.1/samples/rails >../../bin/jruby -S rails
railsee3 create create app/controllers create app/helpers create app/models . . . create log/production.log create log/development.log create log/test.log |
| <!DOCTYPE
web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd"> <web-app> <servlet> <servlet-name>HelloServlet</servlet-name> <servlet-class>server.HelloServlet</servlet-class> </servlet> <servlet-mapping> <servlet-name>HelloServlet</servlet-name> <url-pattern>/hello</url-pattern> </servlet-mapping> </web-app> |
| <?xml
version="1.0" encoding="UTF-8"?> <!DOCTYPE sun-web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Application Server 9.0 Servlet 2.5//EN" "http://www.sun.com/software /appserver/dtds/sun-web-app_2_5-0.dtd"> <sun-web-app error-url=""> <context-root>/servlet</context-root> <class-loader delegate="true"/> </sun-web-app> |
| JRUBY_HOME="/Users/arungupta/testbed/jruby-1.1" |
| ~/testbed/jruby-1.1/samples/rails
>~/testbed/glassfish/v3/p2b9/glassfish/bin/asadmin
deploy --force=true railsee3 railsee3 deployed successfully Command deploy executed successfully. |


| ~/testbed/jruby-1.1/samples/rails/railsee3
>../../../bin/jruby
script/generate controller home index JRuby limited openssl loaded. gem install jruby-openssl for full support. http://wiki.jruby.org/wiki/JRuby_Builtin_OpenSSL exists app/controllers/ exists app/helpers/ create app/views/home exists test/functional/ create app/controllers/home_controller.rb create test/functional/home_controller_test.rb create app/helpers/home_helper.rb create app/views/home/index.html.erb |
| class
HomeController < ApplicationController include Java def index url = java.net.URL.new("http://localhost:8080/servlet/hello"); conn = url.open_connection; reader = java.io.BufferedReader.new(java.io.InputStreamReader.new(conn.get_input_stream)); @servlet_output = ""; input_line = reader.read_line; while input_line != nil @servlet_output << input_line; input_line = reader.read_line; end reader.close; end end |
| <h1>Home#index</h1> <p>Find me in app/views/home/index.html.erb</p> <%= @servlet_output %> |

Posted by Arun Gupta in web2.0 | Comments[15]
|
|
|
|
|
Friday April 11, 2008
Getting Started with Grails on GlassFish
This blog has published good
amount of content on how Ruby-on-Rails
applications can be deployed on GlassFish.
Grails is another
popular MVC-based framework that leverages the Groovy
language. Basically, Grails : Groovy :: Rails : Ruby.
Starting today, I plan to start publishing content on Grails and talk
about how GlassFish
v3 is turning out to be a home for several scripting
languages - Ruby/JRuby/Rails, JavaScript/Phobos,
Groovy/Grails and more to be added.
This blog shows how to get started with Grails and deploy a simple
application on GlassFish v3. Lets go!
| ~/testbed/grails-1.0.2
>export
GRAILS_HOME=`pwd` ~/testbed/grails-1.0.2 >export PATH=$GRAILS_HOME/bin:$PATH |
| ~/testbed/grails-1.0.2
>grails Welcome to Grails 1.0.2 - http://grails.org/ Licensed under Apache Standard License 2.0 Grails home is set to: /Users/arungupta/testbed/grails-1.0.2 No script name specified. Use 'grails help' for more info |
| ~/testbed/grails-1.0.2/samples
>grails create-app
helloworld Welcome to Grails 1.0.2 - http://grails.org/ Licensed under Apache Standard License 2.0 Grails home is set to: /Users/arungupta/testbed/grails-1.0.2 Base Directory: /Users/arungupta/testbed/grails-1.0.2/samples Note: No plugin scripts found Running script /Users/arungupta/testbed/grails-1.0.2/scripts/CreateApp.groovy Environment set to development [mkdir] Created dir: /Users/arungupta/testbed/grails-1.0.2/samples/helloworld/src [mkdir] Created dir: /Users/arungupta/testbed/grails-1.0.2/samples/helloworld/src/java [mkdir] Created dir: /Users/arungupta/testbed/grails-1.0.2/samples/helloworld/src/groovy [mkdir] Created dir: /Users/arungupta/testbed/grails-1.0.2/samples/helloworld/grails-app [mkdir] Created dir: /Users/arungupta/testbed/grails-1.0.2/samples/helloworld/grails-app/controllers [mkdir] Created dir: /Users/arungupta/testbed/grails-1.0.2/samples/helloworld/grails-app/services [mkdir] Created dir: /Users/arungupta/testbed/grails-1.0.2/samples/helloworld/grails-app/domain [mkdir] Created dir: /Users/arungupta/testbed/grails-1.0.2/samples/helloworld/grails-app/taglib [mkdir] Created dir: /Users/arungupta/testbed/grails-1.0.2/samples/helloworld/grails-app/utils [mkdir] Created dir: /Users/arungupta/testbed/grails-1.0.2/samples/helloworld/grails-app/views [mkdir] Created dir: /Users/arungupta/testbed/grails-1.0.2/samples/helloworld/grails-app/views/layouts [mkdir] Created dir: /Users/arungupta/testbed/grails-1.0.2/samples/helloworld/grails-app/i18n [mkdir] Created dir: /Users/arungupta/testbed/grails-1.0.2/samples/helloworld/grails-app/conf [mkdir] Created dir: /Users/arungupta/testbed/grails-1.0.2/samples/helloworld/test [mkdir] Created dir: /Users/arungupta/testbed/grails-1.0.2/samples/helloworld/test/unit [mkdir] Created dir: /Users/arungupta/testbed/grails-1.0.2/samples/helloworld/test/integration [mkdir] Created dir: /Users/arungupta/testbed/grails-1.0.2/samples/helloworld/scripts [mkdir] Created dir: /Users/arungupta/testbed/grails-1.0.2/samples/helloworld/web-app [mkdir] Created dir: /Users/arungupta/testbed/grails-1.0.2/samples/helloworld/web-app/js [mkdir] Created dir: /Users/arungupta/testbed/grails-1.0.2/samples/helloworld/web-app/css [mkdir] Created dir: /Users/arungupta/testbed/grails-1.0.2/samples/helloworld/web-app/images [mkdir] Created dir: /Users/arungupta/testbed/grails-1.0.2/samples/helloworld/web-app/META-INF [mkdir] Created dir: /Users/arungupta/testbed/grails-1.0.2/samples/helloworld/lib [mkdir] Created dir: /Users/arungupta/testbed/grails-1.0.2/samples/helloworld/grails-app/conf/spring [mkdir] Created dir: /Users/arungupta/testbed/grails-1.0.2/samples/helloworld/grails-app/conf/hibernate [propertyfile] Creating new property file: /Users/arungupta/testbed/grails-1.0.2/samples/helloworld/application.properties [copy] Copying 2 files to /Users/arungupta/testbed/grails-1.0.2/samples/helloworld [copy] Copying 2 files to /Users/arungupta/testbed/grails-1.0.2/samples/helloworld/web-app/WEB-INF [copy] Copying 5 files to /Users/arungupta/testbed/grails-1.0.2/samples/helloworld/web-app/WEB-INF/tld [copy] Copying 87 files to /Users/arungupta/testbed/grails-1.0.2/samples/helloworld/web-app [copy] Copying 17 files to /Users/arungupta/testbed/grails-1.0.2/samples/helloworld/grails-app [copy] Copying 1 file to /Users/arungupta/testbed/grails-1.0.2/samples/helloworld [copy] Copying 1 file to /Users/arungupta/testbed/grails-1.0.2/samples/helloworld [copy] Copying 1 file to /Users/arungupta/testbed/grails-1.0.2/samples/helloworld [propertyfile] Updating property file: /Users/arungupta/testbed/grails-1.0.2/samples/helloworld/application.properties Created Grails Application at /Users/arungupta/testbed/grails-1.0.2/samples/helloworld |
| total
56 drwxr-xr-x 14 arungupta arungupta 476 Apr 10 10:44 . drwxr-xr-x 3 arungupta arungupta 102 Apr 10 10:44 .. -rw-r--r-- 1 arungupta arungupta 5911 Apr 10 10:44 .classpath -rw-r--r-- 1 arungupta arungupta 553 Apr 10 10:44 .project -rw-r--r-- 1 arungupta arungupta 115 Apr 10 10:44 application.properties -rw-r--r-- 1 arungupta arungupta 1464 Apr 10 10:44 build.xml drwxr-xr-x 10 arungupta arungupta 340 Apr 10 10:44 grails-app -rw-r--r-- 1 arungupta arungupta 1805 Apr 10 10:44 helloworld.launch -rw-r--r-- 1 arungupta arungupta 2287 Apr 10 10:44 helloworld.tmproj drwxr-xr-x 2 arungupta arungupta 68 Apr 10 10:44 lib drwxr-xr-x 2 arungupta arungupta 68 Apr 10 10:44 scripts drwxr-xr-x 4 arungupta arungupta 136 Apr 10 10:44 src drwxr-xr-x 4 arungupta arungupta 136 Apr 10 10:44 test drwxr-xr-x 8 arungupta arungupta 272 Apr 10 10:44 web-app |
| ~/testbed/grails-1.0.2/samples/helloworld
>grails run-app Welcome to Grails 1.0.2 - http://grails.org/ Licensed under Apache Standard License 2.0 Grails home is set to: /Users/arungupta/testbed/grails-1.0.2 Base Directory: /Users/arungupta/testbed/grails-1.0.2/samples/helloworld Note: No plugin scripts found Running script /Users/arungupta/testbed/grails-1.0.2/scripts/RunApp.groovy Environment set to development [mkdir] Created dir: /Users/arungupta/.grails/1.0.2/projects/helloworld/classes [groovyc] Compiling 6 source files to /Users/arungupta/.grails/1.0.2/projects/helloworld/classes [mkdir] Created dir: /Users/arungupta/.grails/1.0.2/projects/helloworld/resources/grails-app/i18n [native2ascii] Converting 10 files from /Users/arungupta/testbed/grails-1.0.2/samples/helloworld/grails-app/i18n to /Users/arungupta/.grails/1.0.2/projects/helloworld/resources/grails-app/i18n [copy] Copying 1 file to /Users/arungupta/.grails/1.0.2/projects/helloworld/classes [copy] Copying 1 file to /Users/arungupta/.grails/1.0.2/projects/helloworld/resources [copy] Copying 1 file to /Users/arungupta/.grails/1.0.2/projects/helloworld Running Grails application.. 2008-04-10 10:47:51.501::INFO: Logging to STDERR via org.mortbay.log.StdErrLog 2008-04-10 10:47:51.603::INFO: jetty-6.1.4 2008-04-10 10:47:51.755::INFO: No Transaction manager found - if your webapp requires one, please configure one. 2008-04-10 10:47:52.503:/helloworld:INFO: Set web app root system property: 'helloworld' = [/Users/arungupta/testbed/grails-1.0.2/samples/helloworld/web-app/] 2008-04-10 10:47:52.503:/helloworld:INFO: Initializing Log4J from [file:/Users/arungupta/.grails/1.0.2/projects/helloworld/resources/log4j.properties] 2008-04-10 10:47:52.582:/helloworld:INFO: Initializing Spring root WebApplicationContext [0] spring.GrailsWebApplicationContext Refreshing org.codehaus.groovy.grails.commons.spring.GrailsWebApplicationContext@dccb42: display name [org.codehaus.groovy.grails.commons.spring.GrailsWebApplicationContext@dccb42]; startup date [Thu Apr 10 10:47:53 PDT 2008]; parent: org.springframework.web.context.support.XmlWebApplicationContext@188af2 [0] spring.GrailsWebApplicationContext Bean factory for application context [org.codehaus.groovy.grails.commons.spring.GrailsWebApplicationContext@dccb42]: org.springframework.beans.factory.support.DefaultListableBeanFactory@413ebc 2008-04-10 10:47:55.602:/helloworld:INFO: Initializing Spring FrameworkServlet 'grails' 2008-04-10 10:47:55.652::INFO: Started SelectChannelConnector@0.0.0.0:8080 Server running. Browse to http://localhost:8080/helloworld 2008-04-10 10:48:15.133:/helloworld:INFO: GSP servlet initialized |

| ~/testbed/grails-1.0.2/samples/helloworld
>grails war Welcome to Grails 1.0.2 - http://grails.org/ Licensed under Apache Standard License 2.0 Grails home is set to: /Users/arungupta/testbed/grails-1.0.2 Base Directory: /Users/arungupta/testbed/grails-1.0.2/samples/helloworld Note: No plugin scripts found Running script /Users/arungupta/testbed/grails-1.0.2/scripts/War.groovy Environment set to production [delete] Deleting: /Users/arungupta/.grails/1.0.2/projects/helloworld/resources/web.xml [delete] Deleting directory /Users/arungupta/.grails/1.0.2/projects/helloworld/classes [delete] Deleting directory /Users/arungupta/.grails/1.0.2/projects/helloworld/resources [mkdir] Created dir: /Users/arungupta/.grails/1.0.2/projects/helloworld/classes [groovyc] Compiling 6 source files to /Users/arungupta/.grails/1.0.2/projects/helloworld/classes [mkdir] Created dir: /Users/arungupta/.grails/1.0.2/projects/helloworld/resources/grails-app/i18n [native2ascii] Converting 10 files from /Users/arungupta/testbed/grails-1.0.2/samples/helloworld/grails-app/i18n to /Users/arungupta/.grails/1.0.2/projects/helloworld/resources/grails-app/i18n [copy] Copying 1 file to /Users/arungupta/.grails/1.0.2/projects/helloworld/classes [copy] Copying 1 file to /Users/arungupta/.grails/1.0.2/projects/helloworld/resources [mkdir] Created dir: /Users/arungupta/testbed/grails-1.0.2/samples/helloworld/staging [copy] Copying 93 files to /Users/arungupta/testbed/grails-1.0.2/samples/helloworld/staging [copy] Copied 19 empty directories to 1 empty directory under /Users/arungupta/testbed/grails-1.0.2/samples/helloworld/staging [copy] Copying 12 files to /Users/arungupta/testbed/grails-1.0.2/samples/helloworld/staging/WEB-INF/grails-app [copy] Copying 26 files to /Users/arungupta/testbed/grails-1.0.2/samples/helloworld/staging/WEB-INF/classes [mkdir] Created dir: /Users/arungupta/testbed/grails-1.0.2/samples/helloworld/staging/WEB-INF/spring [copy] Copying 1 file to /Users/arungupta/testbed/grails-1.0.2/samples/helloworld/staging/WEB-INF/classes [mkdir] Created dir: /Users/arungupta/testbed/grails-1.0.2/samples/helloworld/staging/WEB-INF/templates/scaffolding [copy] Copying 6 files to /Users/arungupta/testbed/grails-1.0.2/samples/helloworld/staging/WEB-INF/templates/scaffolding [copy] Copying 49 files to /Users/arungupta/testbed/grails-1.0.2/samples/helloworld/staging/WEB-INF/lib [copy] Copying 1 file to /Users/arungupta/testbed/grails-1.0.2/samples/helloworld/staging/WEB-INF [delete] Deleting: /Users/arungupta/.grails/1.0.2/projects/helloworld/resources/web.xml [copy] Warning: /Users/arungupta/testbed/grails-1.0.2/samples/helloworld/plugins not found. [propertyfile] Updating property file: /Users/arungupta/testbed/grails-1.0.2/samples/helloworld/staging/WEB-INF/classes/application.properties [mkdir] Created dir: /Users/arungupta/testbed/grails-1.0.2/samples/helloworld/staging/WEB-INF/plugins [copy] Warning: /Users/arungupta/testbed/grails-1.0.2/samples/helloworld/plugins not found. [jar] Building jar: /Users/arungupta/testbed/grails-1.0.2/samples/helloworld/helloworld-0.1.war [delete] Deleting directory /Users/arungupta/testbed/grails-1.0.2/samples/helloworld/staging Done creating WAR /Users/arungupta/testbed/grails-1.0.2/samples/helloworld/helloworld-0.1.war |
| ~/testbed/glassfish/v3/p2-b08/glassfish
>bin/startserv
--verbose Apr 10, 2008 11:03:28 AM com.sun.enterprise.admin.launcher.GFLauncherLogger info INFO: JVM invocation command line: /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/bin/java -cp /Users/arungupta/testbed/glassfish/v3/p2-b08/glassfish/modules/glassfish-10.0-SNAPSHOT.jar . . . INFO: Listening on port 8080 Apr 10, 2008 11:03:29 AM com.sun.enterprise.v3.services.impl.GrizzlyEmbeddedHttpConfigurator configureSSL WARNING: HTTP listener on port: 8181 is secured, but SSL configuration is not found! Apr 10, 2008 11:03:29 AM com.sun.enterprise.v3.services.impl.GrizzlyProxy start INFO: Listening on port 8181 Apr 10, 2008 11:03:29 AM com.sun.enterprise.v3.services.impl.GrizzlyProxy start INFO: Listening on port 4848 Apr 10, 2008 11:03:29 AM com.sun.enterprise.v3.admin.adapter.AdminConsoleAdapter setContextRoot INFO: Admin Console Adapter: context root: /admin Apr 10, 2008 11:03:29 AM com.sun.enterprise.v3.server.AppServerStartup run INFO: com.sun.enterprise.v3.services.impl.GrizzlyService@b24c9a startup done in 681 ms Apr 10, 2008 11:03:29 AM com.sun.enterprise.v3.services.impl.ApplicationLoaderService postConstruct INFO: loader service postConstruct started at 1207850609785 Apr 10, 2008 11:03:29 AM com.sun.enterprise.v3.server.AppServerStartup run INFO: Application Loader startup done in 717 ms Apr 10, 2008 11:03:29 AM com.sun.enterprise.v3.server.AppServerStartup run INFO: Glassfish v3 started in 717 ms Apr 10, 2008 11:03:29 AM com.sun.enterprise.v3.admin.adapter.AdminConsoleAdapter ready INFO: AdminConsoleAdapter is ready ... |
| ~/testbed/grails-1.0.2/samples/helloworld
>~/testbed/glassfish/v3/p2-b08/glassfish/bin/asadmin
deploy helloworld-0.1.war helloworld-0.1 deployed successfully properties=(name=helloworld-0.1) Command deploy executed successfully. |

| C~/testbed/grails-1.0.2/samples/helloworld
>grails
create-controller hello Welcome to Grails 1.0.2 - http://grails.org/ Licensed under Apache Standard License 2.0 Grails home is set to: /Users/arungupta/testbed/grails-1.0.2 Base Directory: /Users/arungupta/testbed/grails-1.0.2/samples/helloworld Note: No plugin scripts found Running script /Users/arungupta/testbed/grails-1.0.2/scripts/CreateController.groovy Environment set to development [copy] Copying 1 file to /Users/arungupta/testbed/grails-1.0.2/samples/helloworld/grails-app/controllers Created Controller for Hello [mkdir] Created dir: /Users/arungupta/testbed/grails-1.0.2/samples/helloworld/grails-app/views/hello [copy] Copying 1 file to /Users/arungupta/testbed/grails-1.0.2/samples/helloworld/test/integration Created ControllerTests for Hello |
| ~/testbed/grails-1.0.2/samples/helloworld
>vi
grails-app/controllers/HelloController.groovy class HelloController { def world = { render "Hello World!" } //def index = { } } |



Posted by Arun Gupta in web2.0 | Comments[3]
|
|
|
|
|
Thursday April 10, 2008
Kenya sings for India - Pangea Day, May 10, 2008
Learn
more about Pangea Day
- 4 hours, 24 films and a new way to see the world!
Technorati: kenya india youtube nationalanthem
janaganamana
pangeaday
Posted by Arun Gupta in General | Comments[0]
|
|
|
|
|
Today's Page Hits: 107
Total # blog entries: 1002