You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by HuiSion Teh <hu...@magix.com.sg> on 2000/09/09 12:43:58 UTC

XSP could not compile error - Cocoon 1.8 Dev

hi

The following code is ok:
	<para>
		<xsp:attribute name="font">red</xsp:attribute>
		This is a test
	</para>

The following code is NOT ok and generate the attached error:
	<util:include-uri>
		<xsp:attribute name="href">http://localhost:8080/test.xml</xsp:attribute>
	</util:include-uri>

I suspect there is a bug in the util taglib or bug in my use of Java 1.3.0
Linux beta from SUN.

Pls help...I am using Cocoon 1.8-dev and
	Tomcat Web Server/3.1 (JSP 1.1; Servlet 2.2; Java 1.3.0beta_refresh; Linux
2.2.14-5.0 i386; 	java.vendor=Sun Microsystems Inc.)

Regards

================================================
java.lang.Exception: XSP Java Compiler: Compilation failed for _test.java
164: No method matching valueOf() found in class java.lang.String.
      String __name = String.valueOf();
                                    ^
1 error


	at
org.apache.cocoon.processor.xsp.language.java.XSPJavaProcessor.compile(XSPJa
vaProcessor.java:141)
	at
org.apache.cocoon.processor.xsp.XSPProcessor.process(XSPProcessor.java:489)
	at org.apache.cocoon.Engine.handle(Engine.java:333)
	at org.apache.cocoon.Cocoon.service(Cocoon.java:167)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
	at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
	at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:160)
	at
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338
)
	at java.lang.Thread.run(Thread.java:484)