Hi again,
finally I got the mavenized tutorial in the subversion working.
So, again step by step:
1. get the remote-object-persistence-tutorial from source and replace
the dependencies with the latest versions (I used cayenne 3.0M5 - see
the appended pom's).
2. update the autogenerated classes with the 3.0M5 modeler (upgrading
the cayenne.xml to the latest version was done by the modeler automagically)
3. set up the database correctly (I used h2) und create the schema with
the modeler (generate db schema)
4. start the webapp via mvn jetty:run
Check if the webapplication is properly running:
A. no exceptions in the logs [1]
B. go to http://localhost:8080/cayenne-rop-server-tutorial/ should
show you 'Artists: No artists found'
5. start the client
Check if this was successful:
A. no exceptions in the logs [2]
B. if you uncomment the line with 'deleteChapter(context)' and run the
client again, then there should be 'Artists:Pablo Picasso' visible (e.g.
check with the browser)
Hope someone can benefit from this.
Regards,
Peter.
[1]
2009-04-25 23:07:31.806::INFO: Logging to STDERR via
org.mortbay.log.StdErrLog
[jetty:run]
Configuring Jetty for project: Cayenne ROP Server Tutorial
Webapp source directory =
/home/peterk/Dokumente/quell/cayenne-src/docs/quick-start-rop/cayenne-rop-server-tutorial/src/main/webapp
Reload Mechanic: automatic
web.xml file =
/home/peterk/Dokumente/quell/cayenne-src/docs/quick-start-rop/cayenne-rop-server-tutorial/src/main/webapp/WEB-INF/web.xml
Classes =
/home/peterk/Dokumente/quell/cayenne-src/docs/quick-start-rop/cayenne-rop-server-tutorial/target/classes
Configuring Jetty from xml configuration file =
/home/peterk/Dokumente/quell/cayenne-src/docs/quick-start-rop/cayenne-rop-server-tutorial/jetty-run-config.xml
Context path = /cayenne-rop-server-tutorial
Tmp directory = determined at runtime
Web defaults = org/mortbay/jetty/webapp/webdefault.xml
Web overrides = none
Webapp directory =
/home/peterk/Dokumente/quell/cayenne-src/docs/quick-start-rop/cayenne-rop-server-tutorial/src/main/webapp
Starting jetty 6.1.16 ...
2009-04-25 23:07:32.177::INFO: jetty-6.1.16
2009-04-25 23:07:32.480::INFO: No Transaction manager found - if your
webapp requires one, please configure one.
25.04.2009 23:07:32 org.apache.cayenne.conf.RuntimeLoadDelegate
startedLoading
INFO: started configuration loading.
25.04.2009 23:07:32 org.apache.cayenne.conf.RuntimeLoadDelegate
shouldLoadDataDomain
INFO: loaded domain: ROPServerTutorial
25.04.2009 23:07:33 org.apache.cayenne.conf.RuntimeLoadDelegate loadDataMap
INFO: loaded <map name='ROPServerTutorialDomainMap'
location='ROPServerTutorialDomainMap.map.xml'>.
25.04.2009 23:07:33 org.apache.cayenne.conf.RuntimeLoadDelegate
shouldLoadDataNode
INFO: loading <node name='ROPServerTutorialDomainNode'
datasource='ROPServerTutorialDomainNode.driver.xml'
factory='org.apache.cayenne.conf.DriverDataSourceFactory'>.
25.04.2009 23:07:33 org.apache.cayenne.conf.RuntimeLoadDelegate
shouldLoadDataNode
INFO: using factory: org.apache.cayenne.conf.DriverDataSourceFactory
25.04.2009 23:07:33 org.apache.cayenne.conf.DriverDataSourceFactory load
INFO: loading driver information from
'ROPServerTutorialDomainNode.driver.xml'.
25.04.2009 23:07:33
org.apache.cayenne.conf.DriverDataSourceFactory$DriverHandler init
INFO: loading driver org.h2.Driver
25.04.2009 23:07:33
org.apache.cayenne.conf.DriverDataSourceFactory$LoginHandler init
INFO: loading user name and password.
25.04.2009 23:07:33 org.apache.cayenne.access.QueryLogger logPoolCreated
INFO: Created connection pool:
jdbc:h2:/home/peterk/Dokumente/quell/cayenne-src/docs/quick-start-rop/db/h2db;MVCC=TRUE
Driver class: org.h2.Driver
Min. connections in the pool: 1
Max. connections in the pool: 1
25.04.2009 23:07:33 org.apache.cayenne.conf.RuntimeLoadDelegate
shouldLoadDataNode
INFO: loaded datasource.
25.04.2009 23:07:33 org.apache.cayenne.conf.RuntimeLoadDelegate initAdapter
INFO: no adapter set, using automatic adapter.
25.04.2009 23:07:33 org.apache.cayenne.conf.RuntimeLoadDelegate
shouldLinkDataMap
INFO: loaded map-ref: ROPServerTutorialDomainMap.
25.04.2009 23:07:33 org.apache.cayenne.conf.RuntimeLoadDelegate
finishedLoading
INFO: finished configuration loading in 436 ms.
2009-04-25 23:07:33.642::INFO: Started SelectChannelConnecto...0.0.0:8080
Started Jetty Server
[2]
25.04.2009 23:18:53 org.apache.cayenne.remote.hessian.HessianConnection
connect
INFO: Connecting to
[cayenne-user:******..ttp://localhost:8080/cayenne-rop-server-tutorial/cayenne-service]
- dedicated session.
25.04.2009 23:18:53 org.apache.cayenne.remote.hessian.HessianConnection
connect
INFO: === Connected, session:
org.apache.cayenne.remote.RemoteSessio..6e431[sessionId=1wpdq1onkfmua]
- took 295 ms.
25.04.2009 23:18:53 org.apache.cayenne.remote.BaseConnection sendMessage
INFO: --- Message 0: Bootstrap
25.04.2009 23:18:53 org.apache.cayenne.remote.BaseConnection sendMessage
INFO: === Message 0: Bootstrap done - took 170 ms.
25.04.2009 23:18:53 org.apache.cayenne.remote.BaseConnection sendMessage
INFO: --- Message 1: Query
25.04.2009 23:18:53 org.apache.cayenne.remote.BaseConnection sendMessage
INFO: === Message 1: Query done - took 61 ms.
25.04.2009 23:18:53 org.apache.cayenne.remote.BaseConnection sendMessage
INFO: --- Message 2: flush-cascade-sync
25.04.2009 23:18:53 org.apache.cayenne.remote.BaseConnection sendMessage
INFO: === Message 2: flush-cascade-sync done - took 59 ms.
25.04.2009 23:18:53 org.apache.cayenne.remote.BaseConnection sendMessage
INFO: --- Message 3: Query
25.04.2009 23:18:53 org.apache.cayenne.remote.BaseConnection sendMessage
INFO: === Message 3: Query done - took 23 ms.
25.04.2009 23:18:54 org.apache.cayenne.remote.BaseConnection sendMessage
INFO: --- Message 4: Query
25.04.2009 23:18:54 org.apache.cayenne.remote.BaseConnection sendMessage
INFO: === Message 4: Query done - took 18 ms.
25.04.2009 23:18:54 org.apache.cayenne.remote.BaseConnection sendMessage
INFO: --- Message 5: Query
25.04.2009 23:18:54 org.apache.cayenne.remote.BaseConnection sendMessage
INFO: === Message 5: Query done - took 23 ms.
This archive was generated by hypermail 2.0.0 : Sat Apr 25 2009 - 17:23:38 EDT