Have you configured the datasource in Tomcat server.xml ? If not, the
readme have all the steps you need to do.

Also, a simple way to get things going, is to run mvn inside
/java/das/samples/testing/tomcat, that will configure, start and
perform html unit tests on these samples, and you could also play with
them after that.

Let me know if you still see problems, I can take a look at it
tomorrow... it's getting late here... almost 2 am ... bet time :)

Thanks for trying :)


On 6/8/07, ant elder <[EMAIL PROTECTED]> wrote:
On 6/8/07, Luciano Resende (JIRA) <[email protected]> wrote:
>
>
>      [
> 
https://issues.apache.org/jira/browse/TUSCANY-800?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel]
>
> Luciano Resende resolved TUSCANY-800.
> -------------------------------------
>
>     Resolution: Fixed
>
> Patches from Amita applied under revision #545453. Integration tests with
> Tomcat passing successfully.
>
> > Introduce new DAS Sample APP to demonstrate DAS advanced features
> > -----------------------------------------------------------------
> >
> >                 Key: TUSCANY-800
> >                 URL: https://issues.apache.org/jira/browse/TUSCANY-800
> >             Project: Tuscany
> >          Issue Type: New Feature
> >          Components: Java DAS Samples
> >    Affects Versions: Java-DAS-beta1
> >            Reporter: Luciano Resende
> >            Assignee: Luciano Resende
> >             Fix For: Java-DAS-beta1
> >
> >         Attachments: ajaxDAS.lresende.20061005.zip, AjaxDasApr10.jar,
> AjaxDasJIRA800-Apr24-Amita.jar, AjaxDASWebSample.doc,
> JIRA-800-Mar23-Amita.jar, JIRA800-May17-CodeAndUT.zip,
> sample-ajax-das-1.0-incubator-SNAPSHOT.war,
> sample-ajax-das-Apr30-browser-independent.jar
> >
> >
> > Introduce a new DAS sample app to demonstrate DAS advanced features.
> > This sample app uses AJAX to perform all the DAS interactions with the
> persistence store (e.g case derby in tomcat) and an SDO graph is returned
> back to UI and XSLT transformation is performed to present the data to user.
> > Possible improvements to this would be to integrate OCC, and other
> advanced DAS features into the sample.


I gave this a try, nice sample, but for me everything is failing with the
exception below. (Guessing, does it need to deal with no pre-existing tables
for the 1st time its used?)

   ...ant

java.lang.NullPointerException
        at org.apache.tuscany.das.rdb.dbconfig.DBHelper.dropDatabaseTables
(DBHel
per.java:160)
        at
org.apache.tuscany.das.rdb.dbconfig.DBInitializer.initializeDatabase(
DBInitializer.java:130)
        at
org.apache.tuscany.das.rdb.dbconfig.DBInitializer.refreshDatabaseData
(DBInitializer.java:154)
        at org.apache.tuscany.samples.web.CommandServlet.refreshDB
(CommandServle
t.java:51)
        at org.apache.tuscany.samples.web.CommandServlet.init(
CommandServlet.jav
a:60)
        at org.apache.catalina.core.StandardWrapper.loadServlet
(StandardWrapper.
java:1161)
        at org.apache.catalina.core.StandardWrapper.allocate(
StandardWrapper.jav
a:806)
        at org.apache.catalina.core.StandardWrapperValve.invoke
(StandardWrapperV
alve.java:133)
        at org.apache.catalina.core.StandardContextValve.invoke
(StandardContextV
alve.java:175)
        at org.apache.catalina.core.StandardHostValve.invoke(
StandardHostValve.j
ava:128)
        at org.apache.catalina.valves.ErrorReportValve.invoke(
ErrorReportValve.j
ava:104)
        at org.apache.catalina.core.StandardEngineValve.invoke
(StandardEngineVal
ve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(
CoyoteAdapter.jav
a:216)
        at org.apache.coyote.http11.Http11Processor.process(
Http11Processor.java
:844)
        at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
ss(Http11Protocol.java:634)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(
JIoEndpoint.java:44
5)
        at java.lang.Thread.run(Thread.java:595)



--
Luciano Resende
Apache Tuscany Committer
http://people.apache.org/~lresende
http://lresende.blogspot.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to