Howto run the html examples with persistent http connection: ============================================================ NOTE: http callbacks are tested with tomcat 3.2.x, 4.x and 5.x Download tomcat from http://jakarta.apache.org (jserv was OK as well) See: http://www.xmlblaster.org/xmlBlaster/doc/requirements/client.browser.html http://www.xmlblaster.org/xmlBlaster/doc/requirements/client.java.applet.html http://www.xmlblaster.org/xmlBlaster/demo/http/index.html 1. Run (after compiling with 'build.sh all' or 'build.bat all'): 'build.bat deploy_war' (Windows) 'build.sh deploy_war' (UNIX) This assumes tomcat in $HOME/jakarta_tomcat and creates $HOME/jakarta_tomcat/webapps/xmlBlaster.war If you have another installation directory, set it like set TOMCAT_HOME=C:\tomcat this will be recognized by build.xml 2. Start xmlBlaster java org.xmlBlaster.Main -plugin/xmlrpc/port 8081 (We tell XmlRpc not to use tomcats 8080 port) 3. Start a publisher, so that we have some dynamic data: java http.dhtml.systemInfo.SystemInfoPublisher 4. Start tomcat Our xmlBlaster/demo/http/WEB-INF/web.xml is configured to use the SOCKET protocol to communicate from the servlet to xmlBlaster, like this no specific tomcat configuration is needed. $TOMCAT_HOME/bin/startup.sh ( If you want to switch to CORBA: Before you need to edit tomcat.sh and add out jar file in front of the tomcat CLASSPATH: export CLASSPATH=${XMLBLASTER_HOME}/lib/jacorb/jacorb.jar:${XMLBLASTER_HOME}/lib/jacorb/logkit-1.2.jar:${XMLBLASTER_HOME}/lib/jacorb/avalon-framework-4.1.5.jar:${XMLBLASTER_HOME}/lib/xmlBlaster.jar:$CLASSPATH ) 5a. Start you browser and the DHTML demo: http://127.0.0.1:8080/xmlBlaster/dhtml/systemInfo/systemInfo.html?ActionType=login&xmlBlaster.loginName=karl&xmlBlaster.passwd=secret 5b. Start the persistent HTTP applet demo with: http://localhost:8080/xmlBlaster/HelloWorld3.html Configure the servlet ===================== You can configure the servlet client parameters in WEB-INF/web.xml e.g. to find xmlBlaster on another host. Try java HelloWorld3 -help to get a list of supported parameters and use them in web.xml to configure the servlet (omit the leading dash '-'). Start it in the background on Linux: ==================================== java org.xmlBlaster.Main -Xms12M -Xmx32M -plugin/xmlrpc/port 8081 -useKeyboard false > /tmp/xmlBlaster.log 2>&1 & # start tomcat with xmlBlaster.war startup.sh > /tmp/tomcat.log 2>&1 & java html.systemInfo.SystemInfoPublisher -logging WARNING > /tmp/SystemInfoPublisher.log 2>&1 & Using tomcat 3.2.4 serlvet enginge (http://jakarta.apache.org): =============================================================== These are optional tasks: - tomcat/conf/server.xml: - xmlBlaster/demo/http/WEB-INF contains already: svg image/svg+xml svg image/xml+svg Add xmlBlaster CLASSPATH: export CLASSPATH=${XMLBLASTER_HOME}/lib/jacorb/jacorb.jar:${XMLBLASTER_HOME}/lib/jacorb/logkit-1.2.jar:${XMLBLASTER_HOME}/lib/jacorb/avalon-framework-4.1.5.jar:${XMLBLASTER_HOME}/lib/xmlBlaster.jar:$CLASSPATH For deployment see WEB-INF/web.xml Run the dynamic HTML demo: ========================== http://127.0.0.1:8080/xmlBlaster/dhtml/systemInfo/systemInfo.html?ActionType=login&xmlBlaster.loginName=karl&xmlBlaster.passwd=secret Run the SVG demo: ================= Tested with Linux/mozilla 0.91 and Adobes SVG Viewer plugin (2001-12-15) Download from http://www.adobe.com/svg/viewer/install/old.html http://127.0.0.1:8080/xmlBlaster/svg/systemInfo/systemInfo.html?ActionType=login&xmlBlaster.loginName=karl&xmlBlaster.passwd=secret Static SVG examples: http://www.skeeter-s.com/svg/ http://www.grinta.net/svg/examples/ http://www.croczilla.com/svg http://www.skeeter-s.com/svg/mozilly-new.xml (MozillaNativeSvg versus AdobeSvgPlugin To compile Mozilla native: ========================== Add $HOME/.mozconfig --------------------- ac_add_options --enable-svg mk_add_options MOZ_INTERNAL_LIBART_LGPL=1 MOZ_INTERNAL_LIBART_LGPL=1 --------------------- # Options for "configure" (same as command-line options). ac_add_options --disable-mailnews ac_add_options --disable-ldap ac_add_options --enable-svg ac_add_options --enable-mathml ac_add_options --enable-crypto ac_add_options --enable-optimize=-O2 ac_add_options --enable-reorder ac_add_options --disable-debug ac_add_options --enable-strip ac_add_options --disable-pedantic ac_add_options --disable-tests ac_add_options --enable-extensions=default,inspector