License     Codehaus     OpenEJB     OpenJMS     OpenORB     Tyrex     
 

Main
  Home
  About
  Features
  Download
  Maven 2 support
  API
  DTD & Schemas
  Recent changes
  RSS news feed

Development/Support
  Mailing Lists
  SVN/JIRA
  Contributing
  Support
  Prof. services

Related projects
  Spring ORM support
  Spring XML factories

XML
  Using XML
  XML Mapping
  XML FAQ
  XML HOW-TOs
  Custom Handlers
  Best practice

XML Code Generator
  Code Generator
  Properties
  Custom bindings
  Ant task
  Schema Support
  Example

JDO
  Introduction
  Using JDO
  JDO Config
  Types
  JDO Mapping
  JDO FAQ
  JDO Examples
  JDO HOW-TOs
  Other Features
  JDO sample JAR

Advanced JDO
  Caching
  OQL
  Trans. & Locks
  Design
  KeyGen
  Long Trans.
  Nested Attrs.
  Pooling Examples
  LOBs
  Best practice

More
  Presentations
  The Examples
  3rd Party Tools
  JDO Tests
  XML Tests
  Configuration
  Tips & Tricks
  Full JavaDoc
  CastorWiki
 
 

About
  License
  Contributors
  Marketplace
  Status, Todo
  Changelog
  Library
  Contact
  Project Name

  



Download Castor & dependencies to 3rd-party products

Documentation Author(s):
Werner Guttmann


Releases
    Latest Stable Release
        Castor
        XML code generation - Ant task
        Samples
        Commons
    Latest Milestone Release
        Castor
        XML code generation - Ant task
        Samples
        Castor XML Spring factory beans
        Spring ORM for Castor JDO
        Commons
    Past Releases
SVN Snapshots
Dependent Libraries
    Castor XML
    Castor JDO
    Castor DSML
Maven 2 dependencies


Releases

Please carefully make yourself familiar with the license model of Castor, available here.

Latest Stable Release

Castor

Lastest Released Version: Castor 1.0.5
Release date: 11 Nov 2006
-What changed?
-The Castor JAR (XML, JDO, DAX)
http://dist.codehaus.org/castor/1.0.5/castor-1.0.5.jar
 
-The Castor JAR (XML only)
http://dist.codehaus.org/castor/1.0.5/castor-1.0.5-xml.jar
 
-The Castor JARs, docs, DTDs, command line tools and examples
http://dist.codehaus.org/castor/1.0.5/castor-1.0.5.tgz
http://dist.codehaus.org/castor/1.0.5/castor-1.0.5.zip
 
-Full documentation including all JavaDocs and specs (big)
http://dist.codehaus.org/castor/1.0.5/castor-1.0.5-doc.tgz
http://dist.codehaus.org/castor/1.0.5/castor-1.0.5-doc.zip
 
-Full SVN snapshot: all sources, docs, libraries (big)
http://dist.codehaus.org/castor/1.0.5/castor-1.0.5-src.tgz
http://dist.codehaus.org/castor/1.0.5/castor-1.0.5-src.zip
 

XML code generation - Ant task

-Ant task definition for the source generator
http://dist.codehaus.org/castor/1.0.5/castor-1.0.5-srcgen-ant-task.jar
 

Samples

-Self-executable JDO examples using Apache Derby (big)
http://dist.codehaus.org/castor/1.0.5/castor-1.0.5-examples.zip
 

Commons

-The Castor Commons JAR
http://dist.codehaus.org/castor/1.0.5/castor-1.0.5-commons.jar
 
As of release 0.9.9.1, a new JAR file with the suffix '-commons' has been introduced, holding classes that can be used independend of Castor XML and Castor JDO. With 0.9.9.1 release it only contains Base64Decoder, Base64Encoder, IdentityMap and IdentitySet classes but more (e.g. Castor's cache) will follow with future releases. As this classes are also required for Castor XML and/or Castor JDO they are also included in the other JARs (XML, JDO) that require them. Therefore you don't need to change your class path if it includes one of the other Castor JARs (XML, JDO). Its only intention is to provide you with a small JAR containing classes that are commonly needed by applications even if they do not need Castor's XML and/or JDO part.

The tarball and zips includes all the JARs required by Castor, the docs and API JavaDocs. To fully install Castor, simply extract all the JARs into your classpath.

The SVN snapshot includes additional JARs required to build Castor. It is self sufficient and does not require any external components, except for javac.

The documentation set includes JavaDocs for the API and JavaDocs for the full source code, including class usage. A small documentation set without the full source JavaDocs is available in the tarball and zips.

All the JARs included with Castor and used for building Castor are available for distribution free of charge, subject to the respective license agreements.

All implementation JARs (i.e. non APIs) are available under an open source license and available from our FTP server. Open source licenses in use include Apache (ASF), Exolab, Mozilla (MPL), and public domain. All licenses are fully compatible with each other.

The example JAR includes fully functional samples that demonstrate the use of various features of Castor, including marshalling and unmarshalling to/from XML, data persistence using JDO, source code generation from an XML Schema instance.

The example wep application (in form of a WAR archive) includes fully functional samples that demonstrate the use of Castor from within a standard J2EE web application. The WAR file can be deployed to any J2EE compliant web application container (including amongst others Tomcat, WebSphere, JBoss, Weblogic, etc.) using the standard way of deployment of your web application server.

Latest Milestone Release

Castor

Lastest Milestone Version: Castor 1.0.5
Release date: 11 Nov 2006
-What changed?
-The Castor JAR (XML, JDO, DAX)
http://dist.codehaus.org/castor/1.0.5/castor-1.0.5.jar
 
-The Castor JAR (XML only)
http://dist.codehaus.org/castor/1.0.5/castor-1.0.5-xml.jar
 
-The Castor JARs, docs, DTDs, command line tools and examples
http://dist.codehaus.org/castor/1.0.5/castor-1.0.5.tgz
http://dist.codehaus.org/castor/1.0.5/castor-1.0.5.zip
 
-Full documentation including all JavaDocs and specs (big)
http://dist.codehaus.org/castor/1.0.5/castor-1.0.5-doc.tgz
http://dist.codehaus.org/castor/1.0.5/castor-1.0.5-doc.zip
 
-Full SVN snapshot: all sources, docs, libraries (big)
http://dist.codehaus.org/castor/1.0.5/castor-1.0.5-src.tgz
http://dist.codehaus.org/castor/1.0.5/castor-1.0.5-src.zip
 

XML code generation - Ant task

-Ant task definition for the source generator
http://dist.codehaus.org/castor/1.0.5/castor-1.0.5-srcgen-ant-task.jar
 

Samples

-Self-executable JDO examples using Apache Derby (big)
http://dist.codehaus.org/castor/1.0.5/castor-1.0.5-examples.zip
 
-Castor examples - sources (incl. xml, JDO, source generator)
http://dist.codehaus.org/castor/1.0.5/castor-1.0.5-examples-sources.jar
 

Castor XML Spring factory beans

-Spring factory beans for Castor XML
http://snapshots.repository.codehaus.org/org/codehaus/castor/spring-xml/1.0-SNAPSHOT/
 

The JARs in this directory carry a timestamp in their name. Please make sure that you always use the latest JAR file, unless you require a specific version.

For those of you working with Maven 2, please add the following dependency to your POM to include the Spring factory beans for Castor XML with your project:

<dependency>
   <groupId>org.codehaus.castor</groupId>
   <artifactId>spring-xml</artifactId>
   <version>0.8-SNAPSHOT</version>
</dependency>

As we are currently providing snapshot releases only for the factory beans, you will have to add the following <repository> element to your POM as well, so that Maven 2 knows about the Codehaus Snapshot repository when trying to resolve and download dependencies.

<repository>
    <id>codehaus-snapshots</id>
    <name>Maven Codehaus Snapshots</name> 
    <url>http://snapshots.maven.codehaus.org/maven2/</url> 
</repository>

Spring ORM for Castor JDO

-Spring ORM implementation for Castor JDO
http://snapshots.repository.codehaus.org/org/codehaus/castor/castor-spring/1.0-SNAPSHOT/
 

The JARs in this directory carry a timestamp in their name. Please make sure that you always use the latest JAR file, unless you require a specific version.

For those of you working with Maven 2, please add the following dependency to your POM to include the Spring ORM package for Castor JDO with your project:

<dependency>
   <groupId>org.codehaus.castor</groupId>
   <artifactId>castor-spring</artifactId>
   <version>RC2-SNAPSHOT</version>
</dependency>

As we are currently providing snapshot releases only for the factory beans, you will have to add the following <repository> element to your POM as well, so that Maven 2 knows about the Codehaus Snapshot repository when trying to resolve and download dependencies.

<repository>
    <id>codehaus-snapshots</id>
    <name>Maven Codehaus Snapshots</name> 
    <url>http://snapshots.maven.codehaus.org/maven2/</url> 
</repository>

Commons

-The Castor Commons JAR
http://dist.codehaus.org/castor/1.0.5/castor-1.0.5-commons.jar
 
As of release 0.9.9.1, a new JAR file with the suffix '-commons' has been introduced, holding classes that can be used independend of Castor XML and Castor JDO. With 0.9.9.1 release it only contains Base64Decoder, Base64Encoder, IdentityMap and IdentitySet classes but more (e.g. Castor's cache) will follow with future releases. As this classes are also required for Castor XML and/or Castor JDO they are also included in the other JARs (XML, JDO) that require them. Therefore you don't need to change your class path if it includes one of the other Castor JARs (XML, JDO). Its only intention is to provide you with a small JAR containing classes that are commonly needed by applications even if they do not need Castor's XML and/or JDO part.

Past Releases

You may be able to find some past releases on the HTTP Server:

http://dist.codehaus.org/castor/

SVN Snapshots

To obtain the latest SVN version, please use a SVN-enabled client to access our SVN server. Instructions for doing so can be found here.

For those of you behind a firewall with the SVN port non-accessible, please download Castor from the SVN server using the HTTP interface at http://cvs.castor.codehaus.org/viewrep/castor/castor/trunk as provided by FishEye (tm):

-zip
-tgz
-tbz2

Dependent Libraries

JARs required to build Castor and dependencies for various packages are contained in the lib directory. JARs required for distribution are marked with bold text:

ant-1.6.jarThe Ant build tool
ant-1.6-launcher.jarThe Ant launcher tool
cglib-full-2.0.2.jarCGLIB (Castor JDO only)
commons-logging-1.1.jarJakarta Commons Loggin
jdbc-se2.0.jarJDBC 2.0 standard extension (JDO)
jndi_1.2.1.jarThe JNDI API (DSML/JNDI)
jta1.0.1.jarThe JTA API (transactions) (Castor JDO only)
jtf-0.1.jarThe Java Testing Framework
junit_3.8.1.jarJUnit testing framework (for CTF suites)
ldapjdk.jarMozilla Directory SDK (DSML/MDS)
ldapsp.jarJNDI LDAP service provider from Mozilla
log4j-1.2.13.jarLog4J
servlet.jarUsed by the Servlet examples
xerces-J_1.4.0.jarXerces XML library
adaptx-0.9.13.jarXSL(T) processor, used for building documentation
derby-10.1.2.1.jarApache Derby JDBC driver (used in default example)

and optionally

jakarta-oro-2.0.5.jarSupport for regular expressions
jakarta-regexp-1.1.jarSupport for regular expressions

The last two JAR files are required when using patterns with XML Schema type definitions.

Castor XML

Castor XML is dependent on the latest release of Xerces available from the library directory and Apache Xerces. Other XML parser may be used instead of Xerces, however, Xerces is required to provide the XML serializer package for XML document production.

Castor JDO

Castor JDO uses Castor XML for processing the XML mapping file and thus has the same dependency on Xerces as explained above.

In addition applications that rely on Java 1.3 and earlier that use Castor JDO must include jdbc-se2.0.jar or any alternative JAR that includes the javax.sql.DataSource interface.

The JDO examples uses Apache Derby and depends on the JDBC driver provided with the examples archive. This driver is only required for running the samples, and is not required otherwise, especially if you use a different database server.

Castor DSML

Castor DSML is dependent on the latest release of Xerces available from the library directory and XML Apache. Other XML parser may be used instead of Xerces, however, Xerces is required to provide the XML serializer package for XML document production.

Castor DSML has two implementations, one that uses JNDI and one that uses the Mozilla Directory SDK. Applications that use the JNDI package (org.exolab.castor.dsml.jndi) are required to include jndi.jar or any alternative JAR that includes the JNDI 1.2 API. Applications that use the Mozilla Directory SDK (org.exolab.castor.dsml.mozilla) are required to include ldapjdk.jar or any alternative JAR that includes version 4.0 of the Mozilla Directory SDK.

We recommend using the Mozilla Directory SDK as the JNDI LDAP service provider and have positive experience using it with OpenLDAP. The JNDI LDAP service provider is included in the ldapsp.jar.

Maven 2 dependencies

As of release 1.0.3, the Castor team has started to make selected build and release artefacts available through Maven. The following table summarizes the build artefacts currently available.

Description Dependency
Castor XML Spring factory beans
<dependency>
   <groupId>org.codehaus.castor</groupId>
   <artifactId>spring-xml</artifactId>
   <version>0.8-SNAPSHOT</version>
</dependency>
Spring ORM for Castor JDO
<dependency>
   <groupId>org.codehaus.castor</groupId>
   <artifactId>castor-spring</artifactId>
   <version>RC2-SNAPSHOT</version>
</dependency>

For those artefacts available as snapshot releases only, please make sure that your project POMS include the following <repository> definition:

<repository>
    <id>codehaus-snapshots</id>
    <name>Maven Codehaus Snapshots</name> 
    <url>http://snapshots.maven.codehaus.org/maven2/</url> 
</repository>

 
   
  
   
 


Copyright © 1999-2005 ExoLab Group, Intalio Inc., and Contributors. All rights reserved.
 
Java, EJB, JDBC, JNDI, JTA, Sun, Sun Microsystems are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and in other countries. XML, XML Schema, XSLT and related standards are trademarks or registered trademarks of MIT, INRIA, Keio or others, and a product of the World Wide Web Consortium. All other product names mentioned herein are trademarks of their respective owners.