Hi In my current project I keep datastreams (METS, RELS-EXT, ALTO) as 'Managed' content. I created a Servlet that fetches a datastream when requested, so in my foxmlToSolr.xsl I call the servlet something like this:
<xsl:variable name="QueryString" select="concat('http://server:8080/servlet_path/datastream_name', $PID)"/> <xsl:variable name="articleText" select="document($QueryString))/servletResponse/content/text()"/> or: <xsl:variable name="articleText" select="document(concat('http://server:8080/servlet_path/datastream_name', $PID)))/servletResponse/content/text()"/> tried both...and It works fine with METS, RELS-EXT, but when I add a request for ALTO to the XSLT, Tomcat fails to start-up. The last lines in the log are always: 16:27:35.870 [main] DEBUG org.apache.axis.AxisEngine - Exit: AxisEngine::init 16:27:35.871 [main] DEBUG o.a.a.s.DefaultAxisServerFactory - Exit: DefaultAxisServerFactory::getServer 16:27:35.871 [main] DEBUG o.a.axis.transport.http.AxisServlet - Exit: getEngine() ..and there are no obvious hints in the log, no errors, no exceptions. It also fails to shut-down properly and gives "connection refused" error. Commenting out the line in the foxmlToSolr.xsl solves the problem. I had exactly the same problem when I tried to do <xsl:if statement> with document() in GSearch. It was something like this: <xsl:if test="document(concat('http://server:8080/servlet_path/METS', $PID)))/METS:mets/@PROFILE='profile_name' and document(concat('http://server:8080/servlet_path/METS', $PID)))//METS:agent='agent_name'"> It was breaking the Tomcat until I changed it to: <xsl:variable name="METSprofile" select="document(concat('http://server:8080/servlet_path/METS', $PID)))/METS:mets/@PROFILE='profile_name'"/> <xsl:variable name="Test" select="document(concat('http://server:8080/servlet_path/METS', $PID)))//METS:agent='agent_name'"/> <xsl:if test="$METSprofile='profile_name' and $jingestTest='true'"> With ALTO datastream I had changed the Servlet to fetch only text, not the whole ALTO datastream. It still breaks the Tomcat. I'm running out of ideas. Help much appreciated. Cheers Remi -- Remi Malessa DAMS Rhaglennydd Datblygu | Development Programmer DAMS Llyfrgell Genedlaethol Cymru | National Library of Wales Isadran Cyfrifiaduron | Computer Section ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Fedora-commons-developers mailing list Fedora-commons-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fedora-commons-developers