cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Re: XSP Error
Date Mon, 21 Aug 2000 18:50:01 GMT
I spoke too soon. Had I read my "Java and XML" book I cleverly purchased before running to
the mailing list I would have found my answer and a sample. Thanks Brett McLaughlin.

>>> JVANETTEN@ALLMERICA.COM 8/21/2000 2:11:07 PM >>>
Apache: 1.3.12
Jserv: 1.1.2
Cocoon: 1.7.4
jdk: 1.2.2
jsdk: 2.0

I am experimenting with XSP and all the sample that come with cocoon are working but when
I try to run the following:

<?xml version="1.0"?>
<?cocoon-process type="xsp"?>

<xsp:page language="java" xmlns:xsp="">
  <page title="Time of Day">
    String timeOfDay = (
      new SimpleDateFormat("aa")
    ).format(new Date());

      To the best of my knowledge, it's now
      <!-- Substitute time of day here -->

I get  the following error

Error found handling the request.
java.lang.Exception: XSP Java Compiler: Compilation failed for
66: Class _home._httpd._html._demos._Demo1.SimpleDateFormat not found.
      new SimpleDateFormat("aa")
1 error

	at org.apache.cocoon.processor.xsp.XSPProcessor.process(
	at org.apache.cocoon.Engine.handle(
	at org.apache.cocoon.Cocoon.service(
	at javax.servlet.http.HttpServlet.service(
	at org.apache.jserv.JServConnection.processRequest(

Am I missing an include statement somewhere ?? Could someone help me out?


To unsubscribe, e-mail: 
For additional commands, e-mail: 

View raw message