X

web2.0

TOTD #104: Popular Ruby-on-Rails applications on GlassFish v3 – Redmine, Typo, Substruct

GlassFish v3 is opening up new frontiers by allowing to easily deploy Rails, Grails and Django applications, in addition to Java EE, without any additional packaging. You can even write a custom container to support new types of applications. Numerous entries on this blog have talked about how to deploy Rails applications on GlassFish v3. This Tip Of The Day (TOTD) will recap them and, once again, demonstrate how to easily get started with deploying some popular open source...

Friday, September 18, 2009 | web2.0 | Read More

TOTD #91: Applying Java EE 6 "web-fragment.xml" to Apache Wicket - Deploy on GlassFish v3

"Extensibility" is a major theme of Java EE 6. This theme enables seamless pluggability of other popular Web frameworks with Java EE 6.Before Java EE 6, these frameworks have to rely upon registering servlet listeners/filters in "web.xml" or some other similar mechanism to register the framework with the Web container. Thus your application and framework deployment descriptors are mixed together. As an application developer you need to figure out the magical descriptors of...

Tuesday, August 11, 2009 | web2.0 | Read More

TOTD #91: Retrieve JSON libraries using Maven dependency: json-lib

So you need to include JSON libraries in your Maven project. The only option that seems to be currently available is using href="http://json-lib.sourceforge.net/">json-lib with the following dependencies: style="text-align: left; background-color: rgb(204, 204, 255); width: 100%;" cellpadding="2" cellspacing="2">        <dependency>             <groupId>net.sf.json-lib</groupId>             <artifactId>json-lib</artifactId>             <version>2.3</version>            <cl...

Friday, August 7, 2009 | web2.0 | Read More

TOTD #89: How to add pagination to an Apache Wicket application

href="http://blogs.sun.com/arungupta/entry/totd_86_getting_started_with">TOTD #86 explained how to get started with deploying a href="http://wicket.apache.org/">Apache Wicket application on GlassFish. This Tip style="font-weight: bold;">Of style="font-weight: bold;">The style="font-weight: bold;">Day (TOTD) will show how to add pagination to your Wicket application. The blog entry "JPA/Hibernate and Wicket Repeating Views with Netbeans"href="http://jeff-schwartz.blogspot.com/...

Wednesday, August 5, 2009 | web2.0 | Read More

TOTD #88: How add pagination to Rails - will_paginate

This Tip style="font-weight: bold;">Of style="font-weight: bold;">The style="font-weight: bold;">Day (TOTD) explains how to add pagination to your Rails application.Create a simple Rails scaffold as: style="text-align: left; background-color: rgb(204, 204, 255); width: 100%;" cellpadding="2" cellspacing="2"> ~/samples/jruby >~/tools/jruby/bin/jruby -S rails paginate ~/samples/jruby/paginate >~/tools/jruby/bin/jruby script/generate scaffold book title:string author:string~/sam...

Monday, August 3, 2009 | web2.0 | Read More

TOTD #87: How to fix the error undefined method `new' for "Rack::Lock":String caused by Warbler/JRuby-Rack ?

If you are using Warbler to create a WAR file of your application and deploying on GlassFish or any other Servlet container, then you are likely seeing the following error during deployment: [#|2009-07-30T15:29:50.788-0700|SEVERE|sun-appserver2.1|javax.enterprise.system.container.web|_ThreadID=17; _ThreadName=httpWorkerThread-4848-0;_RequestID=1d7e8f18-1c9a-4924-bd0b-6a07eba425ba;|WebModule [/session]unable to create shared application instanceorg.jruby.rack.RackInitializat...

Friday, July 31, 2009 | web2.0 | Read More