The Source for Java Technology Collaboration
User: Password:



Roberto Chinnici's Blog

July 2006 Archives


Tracking JSR-223 Changes

Posted by robc on July 18, 2006 at 05:33 PM | Permalink | Comments (0)

In Mustang b91, the JSR-223 API was updated to fix some issues around the Invocable interface. Sundar's blog entry has all the details.

We updated the Phobos code in CVS to use the new API, but the latest binary build (dated 2006/7/10) predates this change.

The practical consequences for Phobos users are the following:

  • To run the 7/10 Phobos build on JDK 1.6 you need a Mustang build earlier than b91.
  • If you want to use the latest scripting engines from the scripting project with Phobos, you need to build Phobos from CVS and use Mustang b91 or later.
  • The next binary build of Phobos will require Mustang b91 or later.

Finally, this change won't impact anyone running Phobos on JDK 1.5.



New Phobos Build, Plus All The Source Code!

Posted by robc on July 12, 2006 at 04:18 PM | Permalink | Comments (1)

There is a new Phobos build in the documents and files section of our project site. The build is dated July 10, 2006 and is available in binary form for the Solarix/x86, Windows, Linux and Mac OS X platforms.

This build fixes most of the issues I described in my previous post. In particular:

  • The E4X extension to JavaScript is fully supported out of the box.
  • You can add new scripting engines simply by dropping the necessary files into the glassfish/lib directory. For instance, adding the ability to run Groovy scripts is as easy as going to the scripting project on java.net, building it and then copying the engines/groovy/build/groovy-engine.jar and engines/groovy/lib/groovy-all-1.0-jsr-05.jar to that directory.
  • The container now sets the context root automatically, so you don't need any extra code in application/startup.js. The file still needs to be there because it is used by GlassFish to identify Phobos applications as such.

Additionally, it is now possible run a Phobos application on any servlet container by packaging it up as a war file. You can download the war files for our two sample applications from this page. We tested them with GlassFish Milestone 7 and Tomcat 5.5.12. Please let us know if you find any problems with other servlet containers.

Finally, the source code for Phobos and the sample apps has been checked into the java.net CVS repository. As detailed on the getting started page, the GlassFish-specific code is in a branch of the GlassFish CVS repository. Like GlassFish, all the code is under an open source license, the OSI-certified CDDL.





Powered by
Movable Type 3.01D
 Feed java.net RSS Feeds