Archive for October, 2008|Monthly archive page

FREE BETA: Sun Certified Developer for Java Web Services (SCDJWS)

Sun Microsytems has announced the new FREE BETA Sun Certified Developer for Java Web Services exam. This new exam tests on the Java 2 Platform, Enterprise Edition 5.

As a FREE BETA test you don’t need a voucher to take the exam.

Beta Dates: October 31st, 2008 thru November 21st, 2008

Registration Exam Start Date: October 29th, 2008 – November 7th, 2008

Recommended Prerequisites

  • Prior to attempting this certification, candidates MUST be certified as a Sun Certified Programmer (SCJP), any edition
  • Candidates should have at least six to twelve months experience developing Java Web Service

To see the test objectives go to the site: http://www.sun.com/training/certification/beta_scdjws.html

I hope to take this Beta Exam so probably I will post some material I got here! Stay tuned.

See you!

Leo

Advertisements

Installing OpenOffice.org 3 on Ubuntu

Today I spent some time installing the new OpenOffice.org version 3 on my Ubuntu Hardy. Following are the steps I did to get it installed:

1. Download the file OOo_3.0.0_LinuxIntel_install_en-US_deb.tar.gz from OpenOffice.org site.

2. Unpack the downloaded file:

tar zxf OOo_3.0.0_LinuxIntel_install_en-US_deb.tar.gz -C ~

3. Change to directory OOO300_m9_native_packed-1_en-US.9358

cd OOO300_m9_native_packed-1_en-US.9358

4. Install all the deb packages

sudo dpkg -i DEBS/*.deb

5. Now, you need to change your Gnome menu entries to use the new OpenOffice.org 3. Edit the file /usr/bin/ooffice

sudo gedit /usr/bin/ooffice

And change the second line to:

/opt/openoffice.org3/program/soffice "$@"

6. Salve the file and it’s done. Now you can access your OpenOffice icon and it should open the new OpenOffice.org 3

All the best!

Leo

Launched the Java 6 Update 10

Sun has launched the Java 6 Update 10 that solves several issues and also brings some new features.

New features:

  • Next Generation Java Plug-in
  • New Direct3D Accelerated Rendering Pipeline for Microsoft Windows Platforms, Enabled by Default
  • Applet Deployment using Java Network Launch Protocol
  • Java Web App and Next Generation Web Browser Plugin
  • Java Kernel
  • Java Quick Starter
  • JRE Update (static vs patch in place)
  • Windows JRE Autodownload Files (online update only)
  • Unsigned Java Applet Window Change on Windows

Also with this version you can create Translucent and Shaped Windows.

I am updating my Ubunty Hardy to test the new features.

See you!

Warbler 0.9.9 default servlet filter config doesn’t work with Websphere 6.1

Many people have been facing some issue when trying to deploy a JRuby on Rails package using Warbler on WebSphere AS 6.1.

One workaround is to copy the file JRUBY_HOME/lib/ruby/gems/1.8/gems/warbler-0.9.9/web.xml.erb to your app/config diretory and change it to use a Servlet instead of a Filter as below:

<!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>
  <% webxml.context_params.each do |k,v| %>
  <context-param>
      <param-name><%= k %></param-name>
      <param-value><%= v %></param-value>
  </context-param>
  <% end %>

  <listener>
      <listener-class><%= webxml.servlet_context_listener %></listener-class>
  </listener>

  <servlet>
      <servlet-name>Rails</servlet-name>
      <servlet-class>org.jruby.rack.RackServlet</servlet-class>
  </servlet>

  <servlet-mapping>
      <servlet-name>Rails</servlet-name>
      <url-pattern>/*</url-pattern>
  </servlet-mapping>

  <% if webxml.jndi then webxml.jndi.each do |jndi| %>
  <resource-ref>
      <res-ref-name><%= jndi %></res-ref-name>
      <res-type>javax.sql.DataSource</res-type>
      <res-auth>Container</res-auth>
  </resource-ref>
  <% end; end %>
</web-app>

Also instead of changing the web.xml.erb file to use Servlet you can configure your WebSphere AS to work with Rack Filter. To do that you have to:

1. Start the Websphere server and open the Administration Console
2. Set a Websphere web container custom property com.ibm.ws.webcontainer.invokefilterscompatibility = true.

If you have some difficult to find where to set this configuration tell me and I will give you the step-by-step.

I hope this tip be useful for everyone that is getting to work with JRuby On Rails on WebSphere.

All the best,

Leo