Well I resolved my own issue... I turned on AxLogDeclines On and noticed that my included file didn't have a stylesheet applied to it.
-----Original Message----- From: Jason Mills [mailto:[EMAIL PROTECTED] Sent: Monday, February 23, 2004 5:30 PM To: [EMAIL PROTECTED] Subject: axkit uri: problems I am fairly new to axkit package/application server and have been writing code on the platform in order to become more comfortable with its operation in order develop sites in the future using axkit as application server/platform. One of the things I have been working on it getting used to using taglibs and I think I may have ran into either a configuration blunder that I'm not familiar with inside mod_perl or a bug with Axkit or maybe even both. In particular I am trying to get the <util:include-uri/> functionality to work using axkit: URIs. Here is my code: ==== foo.xml === <?xml version="1.0"?> <testing>this is a test</testing> ==== foo.xsp === <xsp:page xmlns:xsp="http://apache.org/xsp/core/v1" xmlns:util="http://apache.org/xsp/util/v1" > <page> <time>Current time is: <util:time format="%H %M %S"/></time> <otherstuff><util:include-uri href="axkit:foo.xml"/></otherstuff> </page> </xsp:page> The premise being that I should be able to call foo.xsp (http://localhost/axkit/tests/foo.xsp) and then axkit would include the foo.xml file (located in the same directory) into the xml ouput of my XSP page. This is all fine and well in theory, but when I put it to practice I get a nice little error of: axkit:foo.xml internal request didn't store anything in dom_tree or xml_string However, if I change the my request string with util:include-uri to http://localhost/axkit/tests/foo.xml it works as prescribed. Further hacking has revealed to me that when calling util:include-uri AxKit::XSP::Util calls get_axkit_uri() from AxKit.pm which in turn calls run_axkit_engine() which stores the retrieved document in an Apache::SubRequest->pnotes table once this has returned get_axkit_uri() retrieves the document content from pnotes() and then returns a string containing the document content. After adding a small amount of debug code (print's to file handles) I was able to determine that pnotes simply wasn't storing the document content but when switch to the notes() (won't store objects) function it worked. So is it a bug, configuration problem, or am I just plain missing something? --- Configuration and debug output --- === Header output === Server: Apache/1.3.29 (Unix) AxKit/1.62 mod_perl/1.29 === httpd -V === Server version: Apache/1.3.29 (Unix) Server built: Feb 12 2004 09:36:27 Server's Module Magic Number: 19990320:15 Server compiled with.... -D HAVE_MMAP -D HAVE_SHMGET -D USE_SHMGET_SCOREBOARD -D USE_MMAP_FILES -D HAVE_FCNTL_SERIALIZED_ACCEPT -D HAVE_SYSVSEM_SERIALIZED_ACCEPT -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT -D DYNAMIC_MODULE_LIMIT=64 -D HARD_SERVER_LIMIT=256 -D HTTPD_ROOT="/opt/apache1" -D SUEXEC_BIN="/opt/apache1/bin/suexec" -D DEFAULT_PIDLOG="logs/httpd.pid" -D DEFAULT_SCOREBOARD="logs/httpd.scoreboard" -D DEFAULT_LOCKFILE="logs/httpd.lock" -D DEFAULT_ERRORLOG="logs/error_log" -D TYPES_CONFIG_FILE="conf/mime.types" -D SERVER_CONFIG_FILE="conf/httpd.conf" -D ACCESS_CONFIG_FILE="conf/access.conf" -D RESOURCE_CONFIG_FILE="conf/srm.conf" === mod_perl build options === perl ./Makefile.PL \ USE_APXS=1 \ WITH_APXS=/opt/apache1/bin/apxs \ EVERYTHING=1 \ PERL_STACKED_HANDLERS=1 \ PERL_USELARGEFILES=0 == httpd.conf == <Directory "/storage/webroot/axkit"> Options Indexes FollowSymLinks AllowOverride All Order allow,deny Allow from all AddHandler axkit .xml .xsp .xsl AxDebugLevel 10 AxNoCache On AxStackTrace On AxErrorStyleSheet text/xsl /axkit/error/errors.xsl AxAddXSPTaglib +AxKit::XSP::Util AxAddXSPTaglib +AxKit::XSP::Param AxAddXSPTaglib +AxKit::XSP::PerForm AxAddXSPTaglib +AxKit::XSP::Exception AxAddXSPTaglib +AxKit::XSP::ESQL AxAddStyleMap text/xsl +Apache::AxKit::Language::LibXSLT AxAddStyleMap application/x-xsp +Apache::AxKit::Language::XSP AxAddStyleMap application/x-xpathscript +Apache::AxKit::Language::XPathScript AxAddURIProcessor application/x-xsp NULL '\.xsp$' </Directory> == Error log output == [Mon Feb 23 08:46:21 2004] [notice] Apache/1.3.29 (Unix) AxKit/1.62 mod_perl/1.29 configured -- resuming normal operations [Mon Feb 23 08:46:21 2004] [notice] Accept mutex: sysvsem (Default: sysvsem) [Mon Feb 23 08:46:28 2004] [warn] [client 172.17.36.87] [AxKit] fast handler called for /axkit/tests/foo.xsp [Mon Feb 23 08:46:28 2004] [warn] [client 172.17.36.87] [AxKit] Content Provider Override: Apache::AxKit::Provider::File [Mon Feb 23 08:46:28 2004] [warn] [client 172.17.36.87] [AxKit] decoding from UTF-8 [Mon Feb 23 08:46:28 2004] [warn] [client 172.17.36.87] [AxKit] [req] File Provider given $r: /storage/webroot/axkit/tests/foo.xsp [Mon Feb 23 08:46:28 2004] [warn] [client 172.17.36.87] [AxKit] checking if we process this resource [Mon Feb 23 08:46:28 2004] [warn] [client 172.17.36.87] [AxKit] media: screen, preferred style: #default [Mon Feb 23 08:46:28 2004] [warn] [client 172.17.36.87] [AxKit] Cache: key = 6330122662ac0cf840dcff85405db180 [Mon Feb 23 08:46:28 2004] [warn] [client 172.17.36.87] [AxKit] getting styles and external entities from the XML [Mon Feb 23 08:46:28 2004] [warn] [client 172.17.36.87] [AxKit] styles not cached - calling $provider->get_styles() [Mon Feb 23 08:46:28 2004] [warn] [client 172.17.36.87] [AxKit] using XS get_styles (libxml2) [Mon Feb 23 08:46:28 2004] [warn] [client 172.17.36.87] [AxKit] encoding to UTF-8 [Mon Feb 23 08:46:28 2004] [warn] [client 172.17.36.87] [AxKit] calling xs_get_styles_fh() [Mon Feb 23 08:46:28 2004] [warn] [client 172.17.36.87] [AxKit] calling xs_get_styles_str() [Mon Feb 23 08:46:28 2004] [warn] [client 172.17.36.87] [AxKit] xs_get_styles returned: , , {http://apache.org/xsp/core/v1}page [Mon Feb 23 08:46:28 2004] [warn] [client 172.17.36.87] [AxKit] Calling GetMatchingProcessors with (screen, , , , {http://apache.org/xsp/core/v1}page) [Mon Feb 23 08:46:28 2004] [warn] [client 172.17.36.87] [AxKit] get_styles: loading style modules [Mon Feb 23 08:46:28 2004] [warn] [client 172.17.36.87] [AxKit] get_styles: looking for mapping for style type: 'application/x-xsp' [Mon Feb 23 08:46:28 2004] [warn] [client 172.17.36.87] [AxKit] cache doesn't exist [Mon Feb 23 08:46:28 2004] [warn] [client 172.17.36.87] [AxKit] some condition failed. recreating output [Mon Feb 23 08:46:28 2004] [warn] [client 172.17.36.87] [AxKit] styles: Apache::AxKit::Language::XSP(NULL) [Mon Feb 23 08:46:28 2004] [warn] [client 172.17.36.87] [AxKit] Style Provider Override: Apache::AxKit::Provider::File [Mon Feb 23 08:46:28 2004] [warn] [client 172.17.36.87] [AxKit] [uri] File Provider looking up uri NULL [Mon Feb 23 08:46:28 2004] [warn] [client 172.17.36.87] [AxKit] [uri] File Provider set filename to /storage/webroot/axkit/tests/NULL [Mon Feb 23 08:46:28 2004] [warn] [client 172.17.36.87] [AxKit] about to execute: Apache::AxKit::Language::XSP::handler [Mon Feb 23 08:46:28 2004] [warn] [client 172.17.36.87] [AxKit] Cache: key = bca643c164bb4709300749964046dc9f [Mon Feb 23 08:46:28 2004] [warn] [client 172.17.36.87] [AxKit] XSP: parsing fh [Mon Feb 23 08:46:28 2004] [warn] [client 172.17.36.87] [AxKit] XSP: Parser returned doc [Mon Feb 23 08:46:28 2004] [warn] [client 172.17.36.87] [AxKit] Recompiling XSP script --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]