Friday, April 9, 2010

Testing ZUL on GAE

I have ZK Studio installed on a virtual machine running Ubuntu and I have installed the Google Plugin for Eclipse.

I have created a New Web Application Project and integrated ZK with the Google App Engine.

My first guestbook example from the GAE introduction was replace with a new test environment at this URL:

http://guest-of-fredpallesen.appspot.com/

If I go to /test on my localhost - I get to /test/index.html - but out in the real-world I have to give the absolute URL.

http://guest-of-fredpallesen.appspot.com/test - fails
http://guest-of-fredpallesen.appspot.com/test/index.html - works
http://guest-of-fredpallesen.appspot.com/test/zul - fails
http://guest-of-fredpallesen.appspot.com/test/zul/index.zul - works
http://guest-of-fredpallesen.appspot.com/dinitrol - works

Running the project locally all links works fine.

Stating the server at localhost:8888 I get some warnings:

WARNING: Component captcha ignored.
Reason:  java.awt.Font is a restricted class. 


WARNING: Component jasperreport ignored. 
Reason: unable to load org.zkoss.zkex.zul.Jasperreport due to java.lang.NoClassDefFoundError: net/sf/jasperreports/engine/JRDataSource

Running the system I get another warning:

WARNING: Failed to configure fileupload.

Not that I use any of this so I may find out how to remove the jar's.

Next task: to test the datanucleus.appengine.datastore ;-)

No comments: