Re: Remote Example

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Thu Apr 23 2009 - 07:56:23 EDT

  • Next message: Aristedes Maniatis: "Re: Remote Example"

    It worked in 2.0, and hasn't been updated for 3.0 yet. You may try it
    with Cayenne 2.0.4 instead (it is actually shipped with 2.0). The user
    facing API is mostly the same, even though the backend has evolved a
    lot.

    Andrus

    On Apr 23, 2009, at 2:43 PM, Peter wrote:

    > Hi all!
    >
    > I tried to compile and run the cayenne example for remoting [1].
    > After some changes to the pom I got it compiling, but I am sure I
    > changed the wrong things so it gives me an exception if I start the
    > server via 'mvn jetty:run' [2].
    > So, where can I get the cayenne-jdk1.5 and cayenne-jdk1.4 jars?
    > I only see cayenne-jdk1.5-unpublished and cayenne-jdk1.6-unpublished
    > in
    > the sources.
    >
    > Has anyone successfully tried this example?
    >
    >
    > Regards,
    > Peter.
    >
    > [1]
    > http://svn.apache.org/repos/asf/cayenne/main/trunk/docs/quick-start-rop/
    >
    > [2]INFO: loading <node name='ROPServerTutorialDomainNode'
    > datasource='ROPServerTutorialDomainNode.driver.xml' factory='org.apac
    > 2009-04-23 11:01:11.119::WARN: failed CayenneFilter
    > java.lang.NoClassDefFoundError: org/objectstyle/ashwood/graph/Digraph
    > at org.apache.cayenne.access.DataNode.<init>(DataNode.java:112)
    > at
    > org
    > .apache
    > .cayenne
    > .conf.RuntimeLoadDelegate.createDataNode(RuntimeLoadDelegate.java:241)
    > at
    > org
    > .apache
    > .cayenne
    > .conf
    > .RuntimeLoadDelegate.shouldLoadDataNode(RuntimeLoadDelegate.java:291)
    > at
    > org.apache.cayenne.conf.ConfigLoader
    > $NodeHandler.init(ConfigLoader.java:345)
    > at
    > org.apache.cayenne.conf.ConfigLoader
    > $DomainHandler.startElement(ConfigLoader.java:222)
    > at
    > com
    > .sun
    > .org
    > .apache
    > .xerces
    > .internal
    > .parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:501)
    > at
    > com
    > .sun
    > .org
    > .apache
    > .xerces
    > .internal
    > .impl
    > .XMLNSDocumentScannerImpl
    > .scanStartElement(XMLNSDocumentScannerImpl.java:4
    > at
    > com
    > .sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl
    > $FragmentContentDriver.next(XMLDocumentFrag
    > at
    > com
    > .sun
    > .org
    > .apache
    > .xerces
    > .internal
    > .impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)
    > at
    > com
    > .sun
    > .org
    > .apache
    > .xerces
    > .internal
    > .impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140)
    > at
    > com
    > .sun
    > .org
    > .apache
    > .xerces
    > .internal
    > .impl
    > .XMLDocumentFragmentScannerImpl
    > .scanDocument(XMLDocumentFragmentScannerImp
    > at
    > com
    > .sun
    > .org
    > .apache
    > .xerces
    > .internal.parsers.XML11Configuration.parse(XML11Configuration.java:
    > 807)
    > at
    > com
    > .sun
    > .org
    > .apache
    > .xerces
    > .internal.parsers.XML11Configuration.parse(XML11Configuration.java:
    > 737)
    > at
    > com
    > .sun
    > .org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:
    > 107)
    > at
    > com
    > .sun
    > .org
    > .apache
    > .xerces
    > .internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
    > at
    > com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl
    > $JAXPSAXParser.parse(SAXParserImpl.java:522)
    > at
    > org.apache.cayenne.conf.ConfigLoader.loadDomains(ConfigLoader.java:78)
    > at
    > org
    > .apache
    > .cayenne
    > .conf.DefaultConfiguration.initialize(DefaultConfiguration.java:152)
    > at
    > org
    > .apache
    > .cayenne
    > .conf.Configuration.initializeSharedConfiguration(Configuration.java:
    > 159)
    > at
    > org
    > .apache
    > .cayenne
    > .conf.ServletUtil.initializeSharedConfiguration(ServletUtil.java:83)
    > at
    > org
    > .apache
    > .cayenne
    > .conf
    > .WebApplicationContextFilter.init(WebApplicationContextFilter.java:59)
    > at
    > org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97)
    > ....
    >
    >



    This archive was generated by hypermail 2.0.0 : Thu Apr 23 2009 - 07:56:58 EDT