|
GettingStarted
How to get started
Featured ModulesActually Piriti consists of these artifacts:
PrerequisitesTo use Piriti make sure you have the following dependencies on your classpath: For maven users add the following dependencies to your pom (Piriti is in Maven Central):<dependency>
<groupId>name.pehl</groupId>
<artifactId>piriti-user</artifactId>
<version>0.8</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>name.pehl</groupId>
<artifactId>piriti-dev</artifactId>
<version>0.8</version>
<scope>provided</scope>
</dependency>
<!-- For Restlet support -->
<dependency>
<groupId>name.pehl</groupId>
<artifactId>piriti-restlet</artifactId>
<version>0.8</version>
<scope>provided</scope>
</dependency>UsageTo actually use Piriti make sure that you inherit one or all of the following modules: <inherits name="name.pehl.piriti.json.JSON" /> <inherits name="name.pehl.piriti.xml.XML" /> | |
► Sign in to add a comment
I had to add the parent repo in order for maven to find the dependancies that piriti code needs.
I think it would be much better use standard maven repository not your own. See http://www.thewebsemantic.com/2009/04/11/your-very-own-google-code-maven-repo/ and the discussion.
I also had to add dependencies on commons-lang and commons-lang3
Otherwise, there was an exception on Reader / Write generation (because it could not find functions from those packages).
For maven I had to put the versions tag too: <version>0.7.0b1</version>
Otherwise it was not working for me and he couldnt find any dependencies at all...
I seem to get an inheritance failure. In name.pehl.piriti.json.JSON.gwt.xml it seems to be looking for "name.pehl.totoe.json.JsonParser? (line 11)." In totoe-0.2.4.jar, I can only find name.pehl.totoe.json.JSON.gwt.xml
Is this a version issue?
Hi ..
Is this code supported to serialization?
public class A { String name; public class state{ String x; String y; public state(xx,yy){x=xx, y=yy }; } private State intern = new State("nice","day"); . . . }Regards Facundo
Hi!
I'm getting java.lang.NoClassDefFoundError?: org/apache/velocity/context/Context during the initialization of my READER. Is there another dependency you haven't listed above?
Best Regards, Clark
Hi , I'm having a problem running Piriti.
I'm having a problem with XmlReaderGenerator?, I did include the piriti-dev-0.8.jar & piriti-user-0.8.jar also added the other dependencies and the : <inherits name="name.pehl.piriti.xml.XML" /> but still getting error.
This is the error that I'm getting
17:39:31.117 ERROR? [xxxxxxxxx.MainTouch?] Unable to load class 'name.pehl.piriti.rebind.xml.XmlReaderGenerator?' java.lang.ClassNotFoundException?: name.pehl.piriti.rebind.xml.XmlReaderGenerator?
Above poster: Include the piriti-dev jar also.