Followers

Thursday, February 24, 2011

Yummy Spring Rolls!

Hi Java Enthusiasts,


Once in a birthday party of a friend we visited one of the posh Restaurants of Hyderabad. Now, when in a party (F.R.E.E) we often resort to a methodology which never comes to our mind when we have to pay for ourselves. Here, therefore, we fell to our whims and fancies and thereby started to order "The Starters".  I was so hungry that I could have started with biscuits or even desserts, if you insisted. One of my eligible friends shouted, "I wish for Spring Rolls". 
And, today here I am. With Spring. Here in this article I am listing out the probable issues for the newbies in Spring world!


Helper Logs:
Server version: Tomcat 6.0.24
Spring version: 2.5
Notations used:
#Issue -- Mentions and describes the problem faced.
#(...) -- Describes the solution to the issue.
#Web-reference -- Refers to an article or forum thread discussing the same issue.


--------------------------------------------------------------------------------------------------------


#Issue -- The filename or extension too long: Unable to Create directory
Error trace: Cannot create spring-framework-3.1.0.M1\projects\org.springframework.integration-tests\src\test\java\org\springframework\context\annotation\jsr330\ClassPathBeanDefinitionScannerJsr330ScopeIntegrationTests.java


#(As a work around we have copied the original zip file to C: drive, shortened the name of the file and then unzipped it, thereby reducing the file path + file name by 50 characters.
Path limit is 248 characters.
Path+Filename limit is 260 characters.
Windows XP has a 255 character limit.
Windows Vista has a 260 character limit.)


#Web-reference: here


--------------------------------------------------------------------------------------------------------


#Issue -- Problems arising due to difference in versions of Server and Spring distribution @Omega location parallel work.


Error description:
I have been working on this project at Omega location also. I was not observing an appropriate response and results as in the tutorial. I wondered what were the problems.
#(Version matters. Sometimes in over enthusiasm, we tend to download and use the latest versions of the software and dependency libraries and jars. At the location Omega, I was using Tomcat 7 which has deprecated "InstallTask" and changed the user-Manager configurations. Therefore many features like the "List" were not working)


#Web-reference: here


--------------------------------------------------------------------------------------------------------


#Issue - Problems getting the third party jars.
#(Download the Spring 2.5 Final version with dependency jars. In the later versions the extra jars were pruned and the jar structure was made more complex and use oriented and less in number)


#Web-reference: here or to directly download the file here.


--------------------------------------------------------------------------------------------------------


#Issue
...\Spring\SpringTest\build.xml:85: taskdef class org.apache.catalina.ant.InstallTask cannot be found
#(InstallTask has been deprecated in Tomcat server 7, replaced by DeployTask. If you are working with versions before 7, it works fine)


#Web-reference: here


--------------------------------------------------------------------------------------------------------


#Issue
...\Spring\SpringTest\build.xml:85: java.lang.UnsupportedClassVersionError: Bad version number in .class file
#(Java version conflict caused due to multiple JVMs active within the system. One should always uninstall all the the JVMs and download the latest one and install. In the eclipse IDE we can then work with prior versions since the JVMs have backward compatibility for the compiler)


#Web-reference: here


--------------------------------------------------------------------------------------------------------


#Issue
Error trace: SEVERE: Servlet.service() for servlet jsp threw exception
org.apache.jasper.JasperException: /index.jsp(1,1) The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application


#(The dependent jars with the Spring 2.5.0 binary distribution has the jstl.jar and the standard.jar of the version 1.2. Using the both the jars of the version 1.1 resolves the issue. Please download jakarta-taglibs-standard-1.1.0.zip from here)


#Web-reference: here


--------------------------------------------------------------------------------------------------------


Yours JavaMad,
Sunit Ronnie Ghosh.

Thursday, January 20, 2011

Java Blog@Oracle , JavaSpotLight #13

Hi Java Enthusiasts,

Podcast #13 from Oracle's Java blog is out now, posted on Jan 19, 2011. In the 20:44 minute long podcast, the discussion focused on,


1. JDK 7 is feature complete: 

The JDK 7 project has reached Feature Complete (FC). This means that development and QA have finished all planned feature and test development work in the release and are moving the focus to testing and bug fixing on all supported JDK 7 platforms. This is a major step towards JDK 7 General Availability (GA) and implies that we are tracking close to the plan published on openjdk.java.net.

For more info, click here.


2. WebLogic 10.3.4 released:

Version 10.3.4 of Oracle WebLogic Server is now available along with the rest of the Fusion Middleware set of products. Here are some of the new features in this release :
• Exalogic Elastic Cloud Software Support
• Support for TopLink JPA 2.0 with patch 9923849
• Enhanced support for Oracle RAC with a Grid Link Data Source
• Certification with JAX-RS Jersey

For more info, please click here.


3. JPA 2.1 and JAX-RS 2.0 JSRs filed:

The formal work on Java EE 7 has started with the filing of two new JSRs :
JSR 338: Java Persistence 2.1
The Java Persistence API is the Java API for the management of persistence and object/relational mapping in Java EE and Java SE environments.

JSR 339: JAX-RS 2.0: The Java API for RESTful Web Services
This JSR will develop the next version of JAX-RS, the API for for RESTful (Representational State Transfer) Web Services in the Java Platform.

More info here.


4. Mac OSX Port:

The goal of this Project is to produce a high-quality, open source version of JDK 7 for the Mac. The final release has the following goals:

  • Pass all appropriate certification tests for Java SE 7
  • Include a complete, native Cocoa-based UI Toolkit
  • Provide excellent performance

More info here.


5. Feature Interview of Roberto Chinnici on Java EE Platform Lead on the futures in Java EE


Thanks and warm wishes!
Sunit Ronnie Ghosh

Saturday, January 15, 2011

Java Blog@Oracle , JavaSpotLight #12

Hi Java Enthusiasts,

Podcast #12 from Oracle's Java blog is out now, posted on Jan 13, 2011. In the 30:16 minute long podcast, the discussion focused on,


1. GlassFish webinar series : 

With GlassFish 3.1 soon to be released, and Java EE 6 still a very popular topic, the GlassFish Webinar Series has you covered on lots of different topics. That's no less than 12 webinars scheduled before the end of May to cover the Java EE programming model, various tools, what's new in GlassFish 3.1, clustering, admin, productivity, Coherence*Web integration, HK2, Security, Embedded and more.

Free registration for the webinar link is also available.

For more info, click here.


2. Roller 5 on multiple Java EE AppServers:

Apache Roller is a full-featured, multi-user and group-blog server suitable for blog sites, large and small. Roller is a Java web application that runs on any Java EE server and any relational database and will soon ship version 5. Some of Roller's key features are, Multi-user blogging, Group blogging with three permisson levels (editor, author and limited), Support for comment moderation, control over blog layout/style via templates, Built-in search engine, Pluggable cache and rendering system, Support for blog clients that support MetaWeblog API and all blogs have entry and comment feeds in both RSS 2.0 and Atom 1.0 formats

It powers internal and external employee blogs at Sun, IBM and other companies as well as the JRoller.com Java blogging community. It also powers the Oracle Java blog (and all of blogs.sun.com - 5k+ blogs, 145k entries, hundreds of thousands of hits every day).

For more info, please click here and here.


3. Update on GlassFish 3.1:

GlassFish 3.1 Open Source Edition is scheduled to ship in February 2011. Building on the modular, Java EE 6 based GlassFish Server Open Source Edition 3.0, version 3.1 is the next major release of GlassFish Server Open Source Edition. This release is currently under development and will focus on the following features:

  • Clustering and Centralized Administration
  • High Availability

More info here.


4. Interview with Adam Bien:

Adam Bien has started Java development with JDK 1.0 in 1996. And since then, he has spent his whole career as a freelancer working on the server side with Java with efforts towards client side too. Following things were discussed during the interview.

  • Swing and JavaFX 2.0 with java API with emphasis on Java FX script.
  • With Java FX 2.0, with the Java API we can work with Groovy, Scala and the four guys, JRuby.
  • Ease of Java EE 6 and 7 development.
  • Apple's donation of Mac OS X to OpenJDK.


5. Oracle Magazine January/Februray 2011 - Simplicity by Design


6. 10 Things Java Should Steal from Ruby:

This was a session that was done by Bruce Tate in August of 2006. Discussion on how things look today is given below:

  • Continuations which are basically syntactic method of implementing certain types of optimization, are not deemed to be a part of Java.
  • Meta-programming is not available to Java because of the very nature of how statically typed the language is.
  • Conventions over XML, ease of development in Java EE 5, which had to do with convention of a configuration as well as annotations rather than XML if you wanted to change that default behavior.

There were few other points which can be heard in the podcast.


Thanks and warm wishes!
Sunit Ronnie Ghosh