[ 
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: 10.3.1.4
>         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 
> 10.3.1.4), 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 10.2.2.0.
> $ export CLASSPATH=.:$DERBY_INSTALL/lib/derbyclient.jar
> $ cd $DERBY_INSTALL/demo/programs/simple
> 10.2.2.0:
> $ 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
> 10.3.1.4:
> $ 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.

Reply via email to