Hi all,
I'm having a problem that I wasn't having a short time ago.
This morning the URL request
http://localhost:8080/cocoon-2.1.2/mount/Ethnologue/checks/list-tables
worked fine. Now it gives me this error:
Failed to execute pipeline.
org.apache.cocoon.ProcessingException: Failed to execute pipeline.:
java.lang.RuntimeException:
org.apache.cocoon.ProcessingException: Language Exception:
org.apache.cocoon.components.language.LanguageException: Error compiling
count_rows_xsp: ERROR 1
(org\apache\cocoon\www\mount\ethnologue\sources\count_rows_xsp.java): ... // start
error (lines
3-3) "The declared package does not match the expected package
org.apache.cocoon.www.mount.ethnologue.sources" package
org.apache.cocoon.www.mount.Ethnologue.sources; // end error import java.io.File;
import
java.io.IOException; import java.io.StringReader; ... Line 3, column 0: The declared
package does
not match the expected package org.apache.cocoon.www.mount.ethnologue.sources
I don't think I changed *anything* in between. Except that I added
some Microsoft SQL - JDBC driver .jar's into Tomcat 4.1\common\lib.
And I took them out again to see if that could by some wild stretch
be the problem. No difference.
I'm running Cocoon 2.1.2.
Any ideas about what the above error *means*? I couldn't
find it in the Cocoon sources.
Here's the file ethnologue/sources/count-rows.xsp:
<?xml version="1.0" encoding="UTF-8"?>
<!-- count-rows?table=___
Output <table name="table-parameter" count="num of rows" />
L. Huttar, Aug 2003
-->
<xsp:page language="java" xmlns:xsp="http://apache.org/xsp"
xmlns:xsp-request="http://apache.org/xsp/request/2.0"
xmlns:esql="http://apache.org/cocoon/SQL/v2">
<table>
<esql:connection>
<esql:pool>ethnolog</esql:pool>
<esql:execute-query>
<esql:query>
SELECT count(*) TOTAL FROM <xsp-request:get-parameter name="table"/>
</esql:query>
<esql:results>
<esql:row-results>
<name>
<xsp-request:get-parameter name="table" />
</name>
<count>
<esql:get-string column="TOTAL" />
</count>
</esql:row-results>
</esql:results>
</esql:execute-query>
</esql:connection>
</table>
</xsp:page>
Here's the relevant ethnologue/sitemap.xmap section:
<map:match pattern="checks/list-columns">
<map:generate src="sources/ethnologue-schema.xml"/>
<!-- Generate cinclude statements for checks/count-columns from <table>
elements. -->
<map:transform src="transforms/list-columns-cinclude.xsl"
type="xslt-with-parameters"
label="raw"/>
<!-- Process cinclude statements. -->
<map:transform type="cinclude" label="raw2"/>
<!-- Transform XML data into formatted (x)html. -->
<map:transform src="styles/list-columns.xsl" type="xslt-with-parameters" />
<map:serialize/>
</map:match>
Here's what cinclude is receiving (I.e. the view at cocoon-view=raw)
<tables>
<cinclude:include src="cocoon:/checks/count-rows?table=Development_Status"/>
<cinclude:include src="cocoon:/checks/count-rows?table=Development_Type"/>
<cinclude:include src="cocoon:/checks/count-rows?table=Ethnologue_Continent"/>
<cinclude:include src="cocoon:/checks/count-rows?table=Ethnologue_Country"/>
<cinclude:include src="cocoon:/checks/count-rows?table=Function_in_Country"/>
<cinclude:include src="cocoon:/checks/count-rows?table=Identified_Language"/>
<cinclude:include src="cocoon:/checks/count-rows?table=Language_Contact"/>
<cinclude:include src="cocoon:/checks/count-rows?table=Language_Function"/>
<cinclude:include src="cocoon:/checks/count-rows?table=Language_in_Country"/>
<cinclude:include src="cocoon:/checks/count-rows?table=Writing_Script"/>
<cinclude:include src="cocoon:/checks/count-rows?table=Writing_System"/>
</tables>
Thanks for any help!
Lars
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]