cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Bennett" <sbenne...@attbi.com>
Subject Using Fins with Cocoon
Date Sat, 17 May 2003 04:17:25 GMT
Newbie question. Thanks for any help. The error log is empty.

I am trying to get the fins samples to work with the following:
Tomcat 4.1.18
Cocoon 2.0.4
JFreeChart 0.9.8
JCommon 0.8.0
Fins 0.1.0

I am able to get to the fins samples
http://localhost:8080/cocoon/fins/samples/index.html
and can click on the links to the XML on that page and see the XML files displayed (though
that is basically read the XML file and serialize it). It looks to me like the "chart" transformer
is not working properly 
<map:transformer name="chart" src="it.ipzs.charts.JFCTransformer" logger="core"/>

Here is debug output to the "core.log" file. It looks like the files are being lost.

CONTEXT PATH: /cocoon
SERVLET PATH: /fins/samples/sjpeg-line
PATH INFO: null

REMOTE HOST: localhost
REMOTE ADDRESS: 127.0.0.1
REMOTE USER: null
REQUEST SESSION ID: null
REQUEST PREFERRED LOCALE: en_US
SERVER HOST: localhost
SERVER PORT: 8080

METHOD: GET
CONTENT LENGTH: -1
PROTOCOL: HTTP/1.1
SCHEME: http
AUTH TYPE: null

CURRENT ACTIVE REQUESTS: 1
REQUEST PARAMETERS:

HEADER PARAMETERS:

PARAM: 'accept' VALUES: '[*/*]'
PARAM: 'referer' VALUES: '[http://localhost:8080/cocoon/fins/samples/sjpeg-line]'
PARAM: 'accept-language' VALUES: '[en-us]'
PARAM: 'accept-encoding' VALUES: '[gzip, deflate]'
PARAM: 'user-agent' VALUES: '[Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR
1.0.3705)]'
PARAM: 'host' VALUES: '[localhost:8080]'
PARAM: 'connection' VALUES: '[Keep-Alive]'

SESSION ATTRIBUTES:


DEBUG   (2003-05-16) 23:03.49:250   [core.manager] (/cocoon/fins/samples/sjpeg-line) Thread-8/ResourceLimitingPool:
Got a org.apache.cocoon.components.pipeline.CachingEventPipeline from the pool.
DEBUG   (2003-05-16) 23:03.49:250   [core.manager] (/cocoon/fins/samples/sjpeg-line) Thread-8/ResourceLimitingPool:
Got a org.apache.cocoon.components.pipeline.CachingStreamPipeline from the pool.
WARN    (2003-05-16) 23:03.49:250   [core.manager] (/cocoon/fins/samples/sjpeg-line) Thread-8/ExcaliburComponentSelector:
Looking up component on an uninitialized ComponentLocator with hint [fins/samples/sitemap.xmap]
DEBUG   (2003-05-16) 23:03.49:250   [core.manager] (/cocoon/fins/samples/sjpeg-line) Thread-8/ResourceLimitingPool:
Got a org.apache.cocoon.components.pipeline.CachingEventPipeline from the pool.
DEBUG   (2003-05-16) 23:03.49:250   [core.manager] (/cocoon/fins/samples/sjpeg-line) Thread-8/ResourceLimitingPool:
Got a org.apache.cocoon.components.pipeline.CachingStreamPipeline from the pool.
DEBUG   (2003-05-16) 23:03.49:250   [core.manager] (/cocoon/fins/samples/sjpeg-line) Thread-8/ExcaliburComponentSelector:
UnnamedSelector: ComponentSelector could not find the component for hint [wildcard]
DEBUG   (2003-05-16) 23:03.49:250   [core.manager] (/cocoon/fins/samples/sjpeg-line) Thread-8/ExcaliburComponentSelector:
UnnamedSelector: ComponentSelector could not find the component for hint [wildcard]
DEBUG   (2003-05-16) 23:03.49:250   [core.manager] (/cocoon/fins/samples/sjpeg-line) Thread-8/ExcaliburComponentSelector:
UnnamedSelector: ComponentSelector could not find the component for hint [wildcard]
DEBUG   (2003-05-16) 23:03.49:250   [core.manager] (/cocoon/fins/samples/sjpeg-line) Thread-8/ExcaliburComponentSelector:
UnnamedSelector: ComponentSelector could not find the component for hint [wildcard]
DEBUG   (2003-05-16) 23:03.49:250   [core.manager] (/cocoon/fins/samples/sjpeg-line) Thread-8/ExcaliburComponentSelector:
UnnamedSelector: ComponentSelector could not find the component for hint [wildcard]
DEBUG   (2003-05-16) 23:03.49:250   [core.manager] (/cocoon/fins/samples/sjpeg-line) Thread-8/ExcaliburComponentSelector:
UnnamedSelector: ComponentSelector could not find the component for hint [wildcard]
DEBUG   (2003-05-16) 23:03.49:250   [core.manager] (/cocoon/fins/samples/sjpeg-line) Thread-8/ExcaliburComponentSelector:
UnnamedSelector: ComponentSelector could not find the component for hint [wildcard]
DEBUG   (2003-05-16) 23:03.49:250   [core.manager] (/cocoon/fins/samples/sjpeg-line) Thread-8/ExcaliburComponentSelector:
UnnamedSelector: ComponentSelector could not find the component for hint [wildcard]
DEBUG   (2003-05-16) 23:03.49:250   [core.manager] (/cocoon/fins/samples/sjpeg-line) Thread-8/sitemap_xmap:
Matched wildcard pattern sjpeg-*
DEBUG   (2003-05-16) 23:03.49:250   [core.manager] (/cocoon/fins/samples/sjpeg-line) Thread-8/AbstractSitemap:

Current Sitemap Parameters:
PARAM: '0' VALUE: 'sjpeg-line'
PARAM: '1' VALUE: 'line'

DEBUG   (2003-05-16) 23:03.49:250   [core.manager] (/cocoon/fins/samples/sjpeg-line) Thread-8/sitemap_xmap:
Component generator:file(Parameters.EMPTY_PARAMETERS)
DEBUG   (2003-05-16) 23:03.49:250   [core.manager] (/cocoon/fins/samples/sjpeg-line) Thread-8/AbstractSitemap:
Substitute evaluated value for 1 as line
DEBUG   (2003-05-16) 23:03.49:250   [core.manager] (/cocoon/fins/samples/sjpeg-line) Thread-8/sitemap_xmap:
Source= documents/charts/line.xml
DEBUG   (2003-05-16) 23:03.49:250   [core.manager] (/cocoon/fins/samples/sjpeg-line) Thread-8/AbstractSitemap:
Substitute evaluated value for 1 as line
DEBUG   (2003-05-16) 23:03.49:250   [core.manager] (/cocoon/fins/samples/sjpeg-line) Thread-8/ExcaliburComponentSelector:
UnnamedSelector: ComponentSelector could not find the component for hint [file]
DEBUG   (2003-05-16) 23:03.49:265   [core.manager] (/cocoon/fins/samples/sjpeg-line) Thread-8/ResourceLimitingPool:
Got a org.apache.cocoon.generation.FileGenerator from the pool.
DEBUG   (2003-05-16) 23:03.49:265   [core.manager] (/cocoon/fins/samples/sjpeg-line) Thread-8/sitemap_xmap:
Component serializer:chart-jpeg(Parameters.EMPTY_PARAMETERS)
DEBUG   (2003-05-16) 23:03.49:265   [core.manager] (/cocoon/fins/samples/sjpeg-line) Thread-8/ResourceLimitingPool:
Got a it.ipzs.charts.JFCSerializer from the pool.
DEBUG   (2003-05-16) 23:03.49:265   [core.store.transient] (/cocoon/fins/samples/sjpeg-line)
Thread-8/MRUMemoryStore: NOT Found key: PK_G-file-8014578722682933504_
DEBUG   (2003-05-16) 23:03.49:265   [core.store.persistent] (/cocoon/fins/samples/sjpeg-line)
Thread-8/FilesystemStore: NOT Found file: PK_G-file-8014578722682933504_
DEBUG   (2003-05-16) 23:03.49:265   [core.event-pipeline] (/cocoon/fins/samples/sjpeg-line)
Thread-8/CachingEventPipeline: Caching content for further requests of 'sjpeg-line'.
DEBUG   (2003-05-16) 23:03.49:265   [core.manager] (/cocoon/fins/samples/sjpeg-line) Thread-8/ResourceLimitingPool:
Got a org.apache.cocoon.components.sax.XMLByteStreamCompiler from the pool.
DEBUG   (2003-05-16) 23:03.49:265   [core.manager] (/cocoon/fins/samples/sjpeg-line) Thread-8/ResourceLimitingPool:
Got a org.apache.avalon.excalibur.xml.JaxpParser from the pool.
DEBUG   (2003-05-16) 23:03.49:265   [core.manager] (/cocoon/fins/samples/sjpeg-line) Thread-8/ResourceLimitingPool:
Put a org.apache.avalon.excalibur.xml.JaxpParser back into the pool.
DEBUG   (2003-05-16) 23:03.49:265   [core.manager] (/cocoon/fins/samples/sjpeg-line) Thread-8/ResourceLimitingPool:
Put a org.apache.cocoon.components.sax.XMLByteStreamCompiler back into the pool.
DEBUG   (2003-05-16) 23:03.49:265   [core.event-pipeline] (/cocoon/fins/samples/sjpeg-line)
Thread-8/CachingEventPipeline: Recycling of CachingEventPipeline
DEBUG   (2003-05-16) 23:03.49:265   [core.manager] (/cocoon/fins/samples/sjpeg-line) Thread-8/ResourceLimitingPool:
Put a org.apache.cocoon.generation.FileGenerator back into the pool.
DEBUG   (2003-05-16) 23:03.49:265   [core.manager] (/cocoon/fins/samples/sjpeg-line) Thread-8/ResourceLimitingPool:
Put a org.apache.cocoon.components.pipeline.CachingEventPipeline back into the pool.
DEBUG   (2003-05-16) 23:03.49:265   [core.stream-pipeline] (/cocoon/fins/samples/sjpeg-line)
Thread-8/CachingStreamPipeline: Recycling of CachingStreamPipeline
DEBUG   (2003-05-16) 23:03.49:265   [core] (/cocoon/fins/samples/sjpeg-line) Thread-8/JFCSerializer:
Recycle
DEBUG   (2003-05-16) 23:03.49:265   [core] (/cocoon/fins/samples/sjpeg-line) Thread-8/JFCFactory:
Recycle
DEBUG   (2003-05-16) 23:03.49:265   [core] (/cocoon/fins/samples/sjpeg-line) Thread-8/JFCFactory:
Setup
DEBUG   (2003-05-16) 23:03.49:265   [core.manager] (/cocoon/fins/samples/sjpeg-line) Thread-8/ResourceLimitingPool:
Put a it.ipzs.charts.JFCSerializer back into the pool.
DEBUG   (2003-05-16) 23:03.49:265   [core.manager] (/cocoon/fins/samples/sjpeg-line) Thread-8/ResourceLimitingPool:
Put a org.apache.cocoon.components.pipeline.CachingStreamPipeline back into the pool.
DEBUG   (2003-05-16) 23:03.49:265   [core.event-pipeline] (/cocoon/fins/samples/sjpeg-line)
Thread-8/CachingEventPipeline: Recycling of CachingEventPipeline
DEBUG   (2003-05-16) 23:03.49:265   [core.manager] (/cocoon/fins/samples/sjpeg-line) Thread-8/ResourceLimitingPool:
Put a org.apache.cocoon.components.pipeline.CachingEventPipeline back into the pool.
DEBUG   (2003-05-16) 23:03.49:265   [core.stream-pipeline] (/cocoon/fins/samples/sjpeg-line)
Thread-8/CachingStreamPipeline: Recycling of CachingStreamPipeline
DEBUG   (2003-05-16) 23:03.49:265   [core.manager] (/cocoon/fins/samples/sjpeg-line) Thread-8/ResourceLimitingPool:
Put a org.apache.cocoon.components.pipeline.CachingStreamPipeline back into the pool.



I have added what I need to link in the sub-sitemap and added the transformer and serializer
as suggested at http://www.sidimar.ipzs.it/site/install.html

When I click the link to display JPEG images, I see the icon for a missing image.
Here is the log for JPEG
----------------------
DEBUG   (2003-05-16) 23:03.43:796   [access] (/cocoon/fins/samples/sjpeg-line) Thread-8/AbstractEnvironment:
Changing Cocoon context
DEBUG   (2003-05-16) 23:03.43:796   [access] (/cocoon/fins/samples/sjpeg-line) Thread-8/AbstractEnvironment:
  from context(file:/C:/jakarta-tomcat-4.1.18/webapps/cocoon/) and prefix()
DEBUG   (2003-05-16) 23:03.43:796   [access] (/cocoon/fins/samples/sjpeg-line) Thread-8/AbstractEnvironment:
  to context(sitemap.xmap) and prefix()
DEBUG   (2003-05-16) 23:03.43:796   [access] (/cocoon/fins/samples/sjpeg-line) Thread-8/AbstractEnvironment:
  at URI fins/samples/sjpeg-line
DEBUG   (2003-05-16) 23:03.43:796   [access] (/cocoon/fins/samples/sjpeg-line) Thread-8/AbstractEnvironment:
New context is file:/C:/jakarta-tomcat-4.1.18/webapps/cocoon/
DEBUG   (2003-05-16) 23:03.43:796   [access] (/cocoon/fins/samples/sjpeg-line) Thread-8/AbstractEnvironment:
Changing Cocoon context
DEBUG   (2003-05-16) 23:03.43:796   [access] (/cocoon/fins/samples/sjpeg-line) Thread-8/AbstractEnvironment:
  from context(file:/C:/jakarta-tomcat-4.1.18/webapps/cocoon/) and prefix()
DEBUG   (2003-05-16) 23:03.43:796   [access] (/cocoon/fins/samples/sjpeg-line) Thread-8/AbstractEnvironment:
  to context(fins/samples/sitemap.xmap) and prefix(fins/samples)
DEBUG   (2003-05-16) 23:03.43:796   [access] (/cocoon/fins/samples/sjpeg-line) Thread-8/AbstractEnvironment:
  at URI fins/samples/sjpeg-line
DEBUG   (2003-05-16) 23:03.43:796   [access] (/cocoon/fins/samples/sjpeg-line) Thread-8/AbstractEnvironment:
New context is file:/C:/jakarta-tomcat-4.1.18/webapps/cocoon/fins/samples/
DEBUG   (2003-05-16) 23:03.43:796   [access] (/cocoon/fins/samples/sjpeg-line) Thread-8/AbstractEnvironment:
Resolving 'documents/charts/line.xml' in context 'file:/C:/jakarta-tomcat-4.1.18/webapps/cocoon/fins/samples/'
DEBUG   (2003-05-16) 23:03.43:796   [access] (/cocoon/fins/samples/sjpeg-line) Thread-8/AbstractEnvironment:
Resolved to 'file:/C:/jakarta-tomcat-4.1.18/webapps/cocoon/fins/samples/documents/charts/line.xml'
DEBUG   (2003-05-16) 23:03.43:843   [access] (/cocoon/fins/samples/sjpeg-line) Thread-8/AbstractEnvironment:
Set the URI Prefix (OLD=fins/samples/, NEW=)
DEBUG   (2003-05-16) 23:03.43:843   [access] (/cocoon/fins/samples/sjpeg-line) Thread-8/AbstractEnvironment:
Reset context to file:/C:/jakarta-tomcat-4.1.18/webapps/cocoon/
DEBUG   (2003-05-16) 23:03.43:843   [access] (/cocoon/fins/samples/sjpeg-line) Thread-8/AbstractEnvironment:
Set the URI Prefix (OLD=, NEW=)
DEBUG   (2003-05-16) 23:03.43:843   [access] (/cocoon/fins/samples/sjpeg-line) Thread-8/AbstractEnvironment:
Reset context to file:/C:/jakarta-tomcat-4.1.18/webapps/cocoon/
DEBUG   (2003-05-16) 23:03.49:250   [access] (/cocoon/fins/samples/sjpeg-line) Thread-8/AbstractEnvironment:
Changing Cocoon context
DEBUG   (2003-05-16) 23:03.49:250   [access] (/cocoon/fins/samples/sjpeg-line) Thread-8/AbstractEnvironment:
  from context(file:/C:/jakarta-tomcat-4.1.18/webapps/cocoon/) and prefix()
DEBUG   (2003-05-16) 23:03.49:250   [access] (/cocoon/fins/samples/sjpeg-line) Thread-8/AbstractEnvironment:
  to context(sitemap.xmap) and prefix()
DEBUG   (2003-05-16) 23:03.49:250   [access] (/cocoon/fins/samples/sjpeg-line) Thread-8/AbstractEnvironment:
  at URI fins/samples/sjpeg-line
DEBUG   (2003-05-16) 23:03.49:250   [access] (/cocoon/fins/samples/sjpeg-line) Thread-8/AbstractEnvironment:
New context is file:/C:/jakarta-tomcat-4.1.18/webapps/cocoon/
DEBUG   (2003-05-16) 23:03.49:250   [access] (/cocoon/fins/samples/sjpeg-line) Thread-8/AbstractEnvironment:
Changing Cocoon context
DEBUG   (2003-05-16) 23:03.49:250   [access] (/cocoon/fins/samples/sjpeg-line) Thread-8/AbstractEnvironment:
  from context(file:/C:/jakarta-tomcat-4.1.18/webapps/cocoon/) and prefix()
DEBUG   (2003-05-16) 23:03.49:250   [access] (/cocoon/fins/samples/sjpeg-line) Thread-8/AbstractEnvironment:
  to context(fins/samples/sitemap.xmap) and prefix(fins/samples)
DEBUG   (2003-05-16) 23:03.49:250   [access] (/cocoon/fins/samples/sjpeg-line) Thread-8/AbstractEnvironment:
  at URI fins/samples/sjpeg-line
DEBUG   (2003-05-16) 23:03.49:250   [access] (/cocoon/fins/samples/sjpeg-line) Thread-8/AbstractEnvironment:
New context is file:/C:/jakarta-tomcat-4.1.18/webapps/cocoon/fins/samples/
DEBUG   (2003-05-16) 23:03.49:265   [access] (/cocoon/fins/samples/sjpeg-line) Thread-8/AbstractEnvironment:
Resolving 'documents/charts/line.xml' in context 'file:/C:/jakarta-tomcat-4.1.18/webapps/cocoon/fins/samples/'
DEBUG   (2003-05-16) 23:03.49:265   [access] (/cocoon/fins/samples/sjpeg-line) Thread-8/AbstractEnvironment:
Resolved to 'file:/C:/jakarta-tomcat-4.1.18/webapps/cocoon/fins/samples/documents/charts/line.xml'
DEBUG   (2003-05-16) 23:03.49:265   [access] (/cocoon/fins/samples/sjpeg-line) Thread-8/AbstractEnvironment:
Set the URI Prefix (OLD=fins/samples/, NEW=)
DEBUG   (2003-05-16) 23:03.49:265   [access] (/cocoon/fins/samples/sjpeg-line) Thread-8/AbstractEnvironment:
Reset context to file:/C:/jakarta-tomcat-4.1.18/webapps/cocoon/
DEBUG   (2003-05-16) 23:03.49:265   [access] (/cocoon/fins/samples/sjpeg-line) Thread-8/AbstractEnvironment:
Set the URI Prefix (OLD=, NEW=)
DEBUG   (2003-05-16) 23:03.49:265   [access] (/cocoon/fins/samples/sjpeg-line) Thread-8/AbstractEnvironment:
Reset context to file:/C:/jakarta-tomcat-4.1.18/webapps/cocoon/
----------------------

When click the link to display SVG images, I only get a status message that says "no element
found: line 2, column 0"
Here is the log for SVG
----------------------
DEBUG   (2003-05-16) 23:00.52:296   [access] (/cocoon/fins/samples/svg-bar3D) Thread-9/AbstractEnvironment:
Changing Cocoon context
DEBUG   (2003-05-16) 23:00.52:296   [access] (/cocoon/fins/samples/svg-bar3D) Thread-9/AbstractEnvironment:
  from context(file:/C:/jakarta-tomcat-4.1.18/webapps/cocoon/) and prefix()
DEBUG   (2003-05-16) 23:00.52:296   [access] (/cocoon/fins/samples/svg-bar3D) Thread-9/AbstractEnvironment:
  to context(sitemap.xmap) and prefix()
DEBUG   (2003-05-16) 23:00.52:296   [access] (/cocoon/fins/samples/svg-bar3D) Thread-9/AbstractEnvironment:
  at URI fins/samples/svg-bar3D
DEBUG   (2003-05-16) 23:00.52:296   [access] (/cocoon/fins/samples/svg-bar3D) Thread-9/AbstractEnvironment:
New context is file:/C:/jakarta-tomcat-4.1.18/webapps/cocoon/
DEBUG   (2003-05-16) 23:00.52:296   [access] (/cocoon/fins/samples/svg-bar3D) Thread-9/AbstractEnvironment:
Changing Cocoon context
DEBUG   (2003-05-16) 23:00.52:296   [access] (/cocoon/fins/samples/svg-bar3D) Thread-9/AbstractEnvironment:
  from context(file:/C:/jakarta-tomcat-4.1.18/webapps/cocoon/) and prefix()
DEBUG   (2003-05-16) 23:00.52:296   [access] (/cocoon/fins/samples/svg-bar3D) Thread-9/AbstractEnvironment:
  to context(fins/samples/sitemap.xmap) and prefix(fins/samples)
DEBUG   (2003-05-16) 23:00.52:296   [access] (/cocoon/fins/samples/svg-bar3D) Thread-9/AbstractEnvironment:
  at URI fins/samples/svg-bar3D
DEBUG   (2003-05-16) 23:00.52:296   [access] (/cocoon/fins/samples/svg-bar3D) Thread-9/AbstractEnvironment:
New context is file:/C:/jakarta-tomcat-4.1.18/webapps/cocoon/fins/samples/
DEBUG   (2003-05-16) 23:00.52:296   [access] (/cocoon/fins/samples/svg-bar3D) Thread-9/AbstractEnvironment:
Resolving 'documents/charts/bar3D.xml' in context 'file:/C:/jakarta-tomcat-4.1.18/webapps/cocoon/fins/samples/'
DEBUG   (2003-05-16) 23:00.52:296   [access] (/cocoon/fins/samples/svg-bar3D) Thread-9/AbstractEnvironment:
Resolved to 'file:/C:/jakarta-tomcat-4.1.18/webapps/cocoon/fins/samples/documents/charts/bar3D.xml'
DEBUG   (2003-05-16) 23:00.52:312   [access] (/cocoon/fins/samples/svg-bar3D) Thread-9/AbstractEnvironment:
Set the URI Prefix (OLD=fins/samples/, NEW=)
DEBUG   (2003-05-16) 23:00.52:312   [access] (/cocoon/fins/samples/svg-bar3D) Thread-9/AbstractEnvironment:
Reset context to file:/C:/jakarta-tomcat-4.1.18/webapps/cocoon/
DEBUG   (2003-05-16) 23:00.52:312   [access] (/cocoon/fins/samples/svg-bar3D) Thread-9/AbstractEnvironment:
Set the URI Prefix (OLD=, NEW=)
DEBUG   (2003-05-16) 23:00.52:312   [access] (/cocoon/fins/samples/svg-bar3D) Thread-9/AbstractEnvironment:
Reset context to file:/C:/jakarta-tomcat-4.1.18/webapps/cocoon/
-----------------------------------------

Any ideas? Thanks.

steve
Mime
View raw message