» tagged pages
» logout

sorted by: recent | see : popular
Content Tagged with SASH + SourceLabs

SASH2-Migration-Guide

SASH 2.0 Migration Guide

Introduction

This guide documents how to upgrade your existing SASH installation or application to version 2.0.

Maven Repositories

The Maven 2 repository that hosts SASH has been updated to host the new artifacts for version 2.0. The new version is at:
http://maven.sourcelabs.com/sash-2.0/repository/
(The JDK 1.4-compatible build of SASH 2.0 has its own repository at:
http://maven.sourcelabs.com/sash-2.0-jdk14/repository/

Please use this instead if you are not using JDK 1.5 or higher.)

SASH dependencies that are not built by SourceLabs now have their own repository at:
http://maven.sourcelabs.com/sash-2.0/nonbuilt/
Both of these repositories should be added to any Ant build script or Maven POM file you are currently using. The old repositories will, of course, still work. However, if you are using more than one component of SASH, it is highly recommended that you do not try to run builds of each from different SASH versions.

SASH Components

This section collects possible upgrade issues for each of the four major SASH components. We highly recommend you read this list before migrating your applications.

Spring

The JARs in Spring have changed for 2.0. The most prominent change is that support for different data layers, including JDBC, Hibernate, and JDO, has been split out into separate JARs, and their contents are no longer provided with Spring 2.0.

The DTD for Spring configuration files has also changed, and a new XSD schema has been provided as well. We recommend updating your existing configuration files with these new schemas to sort out any potential issues; also, we recommend using the XSD schema whenever possible.

The Spring reference documentation lists other potential migration issues here.

We also recommend the following KB articles:

Axis

SASH 2.0 upgrades Axis from version 1.3 to 1.4. There are no API or functionality changes between these two versions, only bug fixes and performance and stability improvements. Any existing applications should continue to run normally with the new version of Axis without any changes. If any problems do appear, please contact SourceLabs Support.

Struts

The JARs in Struts have changed for 2.0. There is no longer one unified struts.jar; the components, including tiles and taglibs, have been separated into different packages.

As of version 1.3, Struts uses a new default controller. Previous versions used RequestProcessor; the new version is ComposableRequestProcessor. 1.2 applications that did not previously specify a controller are not required to specify one now, and users with specified controllers are also okay. However, several Struts plugins, especially the Spring integration suite, require a Spring-specific RequestProcessor implementation. Applications wishing to integrate Spring and Struts are encouraged to read the documentation carefully.

Applications using Tiles are required to specify a new configuration parameter in the web.xml:

     <init-param>
         <param-name>chainConfig</param-name>
         <param-value>org/apache/struts/tiles/chain-config.xml</param-value>
     </init-param>

Finally, the Struts community has provided a list of upgrade issues from version 1.2 to version 1.3 here.

Hibernate

CGLIBLazyInitializer cannot access a public member if parent class is not public.

Commons Logging

The following property has now been removed from Commons Logging:

org.apache.commons.logging.LogFactory

Instead use the following property with a Logger instead of a LogFactory:

org.apache.commons.logging.Log

Commons Validator

One item to note with Validator is that the JavaScript libraries are shipped inside the JAR file with SASH. They are in the org/apache/commons/validator/javascript/ directory of the jar file and if you want to use them you should unpack them from there.

ehcache

SASH 2.0 provides version 1.2.4 of ehcache, which no longer assumes a default configuration. Since ehcache is the default cache implementation used by Hibernate, this can cause spurious NullPointerExceptions. Hibernate provides a default configuration file in etc/ehcache.xml which you should customize to your needs.

quartz

Quartz is an enterprise-class job scheduler for integration with stand-alone Java applications and full-scale J2EE applications.

SourceLabs includes Quartz in its Self Support Suite for Linux and Open Source Java offering.

cglib

cglib is a set of utility classes that can be used to generate and load Java classes at runtime.

SourceLabs includes CGLib in its Self Support for Linux and Open Source Java offering.

SourceLabs

SourceLabs is the developer of the Continuous Support System, a set of tools and services which is used to support open source software such as Linux. The company also sells subscriptions for enterprise support, maintenance, and upgrades for open source software, including SASH, and offers an Open Source Management System.

SourceLabs Self-Support Suite for Linux and Open Source Java (Spring, Hibernate, Tomcat, Struts, etc.)

SourceLabs has self-service tools for Java and Linux support available here The tools include diagnostics which monitor the JVM, Syslog messages, Log4J entries and other data sources, a tool for searching, filtering, and reporting events from these sources, and a tool that searches across a repository of over 16 million datapoints from the open source community to help IT professionals find and fix problems faster and more effectively.

SourceLabs Enterprise Support.

SourceLabs provides premium mission-critical support and maintenance services to some of the world’s largest corporations using its Continuous Support System, a suite of technologies designed to enable proactive identification and resolution of problems before they occur, real-time alerts of production issues, gathering of symptoms of application state at the time a problem was encountered, and sophisticated data analysis using a repository of over 300,000 issues to leverage past experience to identify and resolve root causes faster.

SWiK

SourceLabs builds and maintains the SWiK wiki as a free service to the open source community.

SWiK content is free, licensed under a creative commons attribute and share alike license.

External Links

velocity

Velocity is a Java-based template engine.

SourceLabs covers Velocity in its Self-Support Suite for Linux and Open Source Java