When I first began using the 0.0.2 release of Xang I ran into a fair amount of difficulty. Since then I have downloaded the cvs repository and rebuilt Xang with the Xerces 1.0.3 and Xalan 1.0.1 jars which shipped with Cocoon 1.74. I've been running both Cocoon and Xang with standalone Tomcat 3.1.
I no longer have any java/servlet problems. All of my recent problems have been with the contents of the various sample files. I had problems with the following file url in the file system.script.xml which appeared in the javascript function get() in both the fs2http and the hello samples. layout = "file:///"+Packages.org.apache.xang.util.ServletUtil.resolveURL(layout); When I modified the code to use an HTTP URL it worked. layout = "http://localhost:8080/"+Packages.org.apache.xang.util.ServletUtil.resolveURL(layout); I also had difficulty with the following definition which I found throughout fs2http.xap var fs_root_path = "d:/apache/htdocs/"; when I replaced it with my "docRoot", see below, it worked. var fs_root_path = "h:/devel3/jakarta-tomcat/webapps/ROOT/"; In both the fs2http and the hello version of editor_browser.xsl I found the following hardcoded references. When I modified them to conform to my own directory structure, I got better results. <!ENTITY baseResourcePath "/xap/apps/apache/" > <!ENTITY baseURL "/xap/apps/apache/hello/hello.xap/" > When I display the hello.xap page I get text that looks like this: "Apache Xang Welcome to the Next Web Revolution! Do Base64 stuff view script" The problem that I am having is that the URL listed when I mouseover the "view script" is http://localhost:8080/xang-hello/?do:method=script which returns the directory listing for the xang-hello directory rather than the following URL http://localhost:8080/xang-hello/hello.xap?do:method=script which generates an html page with what I presume are the appropriate javascript functions, and which I also presume satisfies the intention of the directive "method=script". Using the URL http://localhost:8080/xang-hello/hello.xap?do:method=browse I was able to get a directory listing, but the URL of the image folder.gif wasn't correct, and that fix required the modification of layouts\editor_browse.xsl. The text, <img border='0' src="&baseResourcePath;images/folder.gif" /> worked when modified to: <img border='0' src="&baseResourcePath;/images/folder.gif" /> I'm not sure that I can account for or explain these problems and or their solutions, I'm not really much of a web app designer or implementor. I just wanted to see if I could get Xang to work as advertised. With a fair amount of tweaking I can get both of the samples to do things, but I've been so busy working around the various problems that I'm no longer sure that I know what the actual intent of the Xang system is.
