db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John H. Embretsen (JIRA)" <j...@apache.org>
Subject [jira] Updated: (DERBY-3187) SimpleApp (demo) does not work in a client setting
Date Thu, 08 Nov 2007 15:26:50 GMT

     [ https://issues.apache.org/jira/browse/DERBY-3187?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

John H. Embretsen updated DERBY-3187:

    Attachment: d3187-v01.diff

Thanks Myrna for clarifying the difference in behavior between the VMs. Based on this information,
I have decided to pursue option 1 for fixing this issue.

Attaching a patch d3187-v01.diff which reverts revision 497686, i.e. the changes introduced
in DERBY-2216 to enable J2ME support in SimpleApp.java. The patch also updates LAST-MODIFIED
meta information in java/demo/simple/example.html.

With this patch, the simple demo works in both the "embedded" and "derbyclient" environments
as described in example.html.

I will create another Jira issue for adding a simple demo suitable for J2ME/Java ME platforms.
Please review/commit :)

> SimpleApp (demo) does not work in a client setting
> --------------------------------------------------
>                 Key: DERBY-3187
>                 URL: https://issues.apache.org/jira/browse/DERBY-3187
>             Project: Derby
>          Issue Type: Sub-task
>          Components: Demos/Scripts
>    Affects Versions:
>         Environment: derbyclient (no derby.jar in the classpath)
>            Reporter: John H. Embretsen
>            Assignee: John H. Embretsen
>         Attachments: d3187-v01.diff
> Since J2ME support was added to the simple demo (bin-releases: demo/programs/simple/SimpleApp.java)
in DERBY-2216 (first available in, the demo has not worked in a pure client setting
as described in the documentation (bin-releases: demo/programs/simple/example.html). This
is a regression from
> $ export CLASSPATH=.:$DERBY_INSTALL/lib/derbyclient.jar
> $ cd $DERBY_INSTALL/demo/programs/simple
> $ java SimpleApp derbyclient
> SimpleApp starting in derbyclient mode.
> Loaded the appropriate driver.
> Connected to and created database derbyDB
> Created table derbyDB
> Inserted 1956 Webster
> Inserted 1910 Union
> Updated 1956 Webster to 180 Grand
> Updated 180 Grand to 300 Lakeshore
> Verified the rows
> Dropped table derbyDB
> Closed result set and statement
> Committed transaction and closed connection
> SimpleApp finished
> $ java SimpleApp derbyclient
> Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/derby/jdbc/EmbeddedSimpleDataSource

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message