Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Info
titleVersion status: 0.34.1 0 stable - used in production

Uses RestEASY 3.0-beta-4 .7.Final and Tapestry 5.34.x

for older versions check the version table

...

Code Block
        <dependency>
            <groupId>org.tynamo</groupId>
            <artifactId>tapestry-resteasy</artifactId>
            <version>0.34.1<0</version>
        </dependency>

No need to edit your web.xml.

...

Code Block
<dependency>
	<groupId>org.jboss.resteasy</groupId>
	<artifactId>resteasy-jackson-provider</artifactId>
	<version>3.0-beta-4<.7.Final</version>
</dependency>

You could use JAXB and Jackson together but be aware of the possible conflicts with the JAXB providers

...

 

The default mapping prefix under which your rest resources are available is "rest". You can easily change this by overriding the symbol in your application defaults:

Code Block
    @ApplicationDefaults
    public static void setApplicationDefaults(MappedConfiguration<String, Object> configuration) {
         configuration.add(ResteasySymbols.MAPPING_PREFIX, "/api");
    }

Notes:

If you get this exception:

...

Check google for more information: http://www.google.com/search?hl=en&q=com.sun.xml.stream.ZephyrParserFactory+cannot+be+cast+to+org.codehaus.stax2.XMLInputFactory2&aq=f&oq=&aqi=

 

version table

 

 

tapestry-resteasyTapestryRESTEasynotes:
0.0.15.1.x1.1.GAsee tapestry-resteasy-0.0.1 guide
0.2.15.2.x2.0.1.GA 
0.3.05.3.x2.3.0.GA 
0.3.15.3.x3.0-beta-4 
0.3.25.3.x3.0.1.Final

 

0.4.05.4.x3.0.7.Final