On Wed, 16 Mar 2005 11:42:44 +0200, Varga Sandor <[EMAIL PROTECTED]> wrote:

Hello Bill!
I want to try using DBForms with Jetty.
The first attempt with bookstore.war was not succesfull, I received some errors.
I read Your letter in which You say that You started Your application with Jetty.
Could You describe what I have to do to work the bookstore, or other dbforms-based application with Jetty.
Thank You for Your help.
Varga Sandor.

Varga,
What specific errors did you get?
As I recall, the only setup I needed to do to make my home-grown web application work was to configure it. This is done by placing a file into the etc directory. Then when you start up the application:


My application is "prayerdb". So, the file is named prayerdb.xml . I start Jetty like this (also includes the admin tool) from the installation root directory:

[/home/jawa/jetty-5.1.3rc0]
$ java -jar start.jar etc/prayerdb.xml  etc/admin.xml

There are more sophisticated ways to do this. I think Jetty also supports hot reloading like Tomcat does. But, I was desperate to just get something working. Jetty start.jar leaves your terminal window stuck running Jetty. This is convenient for testing, to stop it you just hit control-c. I am sure there are easy ways to stop this behavior as well.

I have not tried any of the examples, because it seems that it takes a long time to get them running. I have worked at dbforms since November as I have had time, it is only this week that I have gotten anything repeatable working. For now, I am going to stop playing around and leverage my success to get some real work done, after that I will circle back and make my setup better.


My configuration file:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN" "http://jetty.mortbay.org/configure.dtd";>
<Configure class="org.mortbay.jetty.Server">
<Call name="addListener">
<Arg>
<New class="org.mortbay.http.SocketListener">
<Set name="Port">
<SystemProperty name="jetty.port"
default="8090"/>
</Set>
</New>
</Arg>
</Call>


  <Call name="addWebApplication">
    <Arg>/prayerdb/</Arg>
    <Arg><SystemProperty name="jetty.home"
          default="."/>/../webapps/prayerdb/build
    </Arg>
  </Call>
 </Configure>


------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ DbForms Mailing List

http://www.wap-force.net/dbforms

Reply via email to