forrest-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul.Div...@alcatel-lucent.fr
Subject Re: [apache-forrest-0.8] problem with java script file location
Date Thu, 26 Apr 2007 07:20:38 GMT
After http://mysite/nobelists.htm , I redo the operation with 

http://mysite/nobelists.js


the result in the log file is.


WARN    (2007-04-26) 09:13.46:114   [core.manager] (Unknown-URI) 
Unknown-Thread/CoreServiceManager: ComponentLocator exception from parent 
SM during lookup.
org.apache.avalon.framework.service.ServiceException: Component for key 
'org.apache.excalibur.source.SourceResolver' not found. (Key='Cocoon')
        at 
org.apache.cocoon.core.container.SingleComponentServiceManager.lookup(SingleComponentServiceManager.java:68)
        at 
org.apache.cocoon.core.container.CoreServiceManager.lookup(CoreServiceManager.java:355)
        at 
org.apache.cocoon.transformation.helpers.DefaultIncludeCacheManager.service(DefaultIncludeCacheManager.java:384)
        at 
org.apache.avalon.framework.container.ContainerUtil.service(ContainerUtil.java:143)
        at 
org.apache.cocoon.core.container.ComponentFactory.setupInstance(ComponentFactory.java:150)
        at 
org.apache.cocoon.core.container.ComponentFactory.newInstance(ComponentFactory.java:133)
        at 
org.apache.cocoon.core.container.handler.ThreadSafeComponentHandler.doInitialize(ThreadSafeComponentHandler.java:54)
        at 
org.apache.cocoon.core.container.handler.AbstractComponentHandler.initialize(AbstractComponentHandler.java:274)
        at 
org.apache.cocoon.core.container.CoreServiceManager.initialize(CoreServiceManager.java:243)
        at 
org.apache.cocoon.components.container.CocoonServiceManager.initialize(CocoonServiceManager.java:81)
        at 
org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:244)
        at org.apache.cocoon.Cocoon.initialize(Cocoon.java:257)
        at 
org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:244)
        at 
org.apache.cocoon.core.CoreUtil.createProcessor(CoreUtil.java:758)
        at 
org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:223)
        at 
org.mortbay.jetty.servlet.ServletHolder.start(ServletHolder.java:220)
        at 
org.mortbay.jetty.servlet.ServletHandler.initializeServlets(ServletHandler.java:445)
        at 
org.mortbay.jetty.servlet.WebApplicationHandler.initializeServlets(WebApplicationHandler.java:150)
        at 
org.mortbay.jetty.servlet.WebApplicationContext.start(WebApplicationContext.java:458)
        at org.mortbay.http.HttpServer.start(HttpServer.java:663)
        at org.mortbay.jetty.Server.main(Server.java:429)
WARN    (2007-04-26) 09:13.46:302   [core.manager] (Unknown-URI) 
Unknown-Thread/CoreServiceManager: ComponentLocator exception from parent 
SM during lookup.
org.apache.avalon.framework.service.ServiceException: Component for key 
'org.apache.cocoon.components.fam.SitemapMonitor' not found. 
(Key='Cocoon')
        at 
org.apache.cocoon.core.container.SingleComponentServiceManager.lookup(SingleComponentServiceManager.java:68)
        at 
org.apache.cocoon.core.container.CoreServiceManager.lookup(CoreServiceManager.java:355)
        at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.service(TreeProcessor.java:198)
        at 
org.apache.avalon.framework.container.ContainerUtil.service(ContainerUtil.java:143)
        at 
org.apache.cocoon.core.container.ComponentFactory.setupInstance(ComponentFactory.java:150)
        at 
org.apache.cocoon.core.container.ComponentFactory.newInstance(ComponentFactory.java:133)
        at 
org.apache.cocoon.core.container.handler.ThreadSafeComponentHandler.doInitialize(ThreadSafeComponentHandler.java:54)
        at 
org.apache.cocoon.core.container.handler.AbstractComponentHandler.initialize(AbstractComponentHandler.java:274)
        at 
org.apache.cocoon.core.container.CoreServiceManager.initialize(CoreServiceManager.java:243)
        at 
org.apache.cocoon.components.container.CocoonServiceManager.initialize(CocoonServiceManager.java:81)
        at 
org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:244)
        at org.apache.cocoon.Cocoon.initialize(Cocoon.java:257)
        at 
org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:244)
        at 
org.apache.cocoon.core.CoreUtil.createProcessor(CoreUtil.java:758)
        at 
org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:223)
        at 
org.mortbay.jetty.servlet.ServletHolder.start(ServletHolder.java:220)
        at 
org.mortbay.jetty.servlet.ServletHandler.initializeServlets(ServletHandler.java:445)
        at 
org.mortbay.jetty.servlet.WebApplicationHandler.initializeServlets(WebApplicationHandler.java:150)
        at 
org.mortbay.jetty.servlet.WebApplicationContext.start(WebApplicationContext.java:458)
        at org.mortbay.http.HttpServer.start(HttpServer.java:663)
        at org.mortbay.jetty.Server.main(Server.java:429)
WARN    (2007-04-26) 09:13.46:552   [core.manager] (Unknown-URI) 
Unknown-Thread/CoreServiceManager: ComponentLocator exception from parent 
SM during lookup.
org.apache.avalon.framework.service.ServiceException: Component for key 
'org.apache.cocoon.components.language.generator.ServerPagesSelector' not 
found. (Key='Cocoon')
        at 
org.apache.cocoon.core.container.SingleComponentServiceManager.lookup(SingleComponentServiceManager.java:68)
        at 
org.apache.cocoon.core.container.CoreServiceManager.lookup(CoreServiceManager.java:355)
        at 
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.service(ProgramGeneratorImpl.java:133)
        at 
org.apache.avalon.framework.container.ContainerUtil.service(ContainerUtil.java:143)
        at 
org.apache.cocoon.core.container.ComponentFactory.setupInstance(ComponentFactory.java:150)
        at 
org.apache.cocoon.core.container.ComponentFactory.newInstance(ComponentFactory.java:133)
        at 
org.apache.cocoon.core.container.handler.ThreadSafeComponentHandler.doInitialize(ThreadSafeComponentHandler.java:54)
        at 
org.apache.cocoon.core.container.handler.AbstractComponentHandler.initialize(AbstractComponentHandler.java:274)
        at 
org.apache.cocoon.core.container.CoreServiceManager.initialize(CoreServiceManager.java:243)
        at 
org.apache.cocoon.components.container.CocoonServiceManager.initialize(CocoonServiceManager.java:81)
        at 
org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:244)
        at org.apache.cocoon.Cocoon.initialize(Cocoon.java:257)
        at 
org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:244)
        at 
org.apache.cocoon.core.CoreUtil.createProcessor(CoreUtil.java:758)
        at 
org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:223)
        at 
org.mortbay.jetty.servlet.ServletHolder.start(ServletHolder.java:220)
        at 
org.mortbay.jetty.servlet.ServletHandler.initializeServlets(ServletHandler.java:445)
        at 
org.mortbay.jetty.servlet.WebApplicationHandler.initializeServlets(WebApplicationHandler.java:150)
        at 
org.mortbay.jetty.servlet.WebApplicationContext.start(WebApplicationContext.java:458)
        at org.mortbay.http.HttpServer.start(HttpServer.java:663)
        at org.mortbay.jetty.Server.main(Server.java:429)
WARN    (2007-04-26) 09:13.54:286   [core.manager] 
(/web2.0/simile/exhibit/nobelists.js) PoolThread-4/CoreServiceManager: 
ComponentLocator exception from parent SM during lookup.
org.apache.avalon.framework.service.ServiceException: Component for key 
'org.apache.cocoon.components.treeprocessor.TreeBuilder/sitemap-1.0' not 
found. (Key='Cocoon')
        at 
org.apache.cocoon.core.container.SingleComponentServiceManager.lookup(SingleComponentServiceManager.java:68)
        at 
org.apache.cocoon.core.container.CoreServiceManager.lookup(CoreServiceManager.java:355)
        at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.getTreeBuilder(TreeProcessor.java:375)
        at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.buildConcreteProcessor(TreeProcessor.java:720)
        at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.setupConcreteProcessor(TreeProcessor.java:394)
        at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:288)
        at org.apache.cocoon.Cocoon.process(Cocoon.java:557)
        at 
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:364)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at 
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:354)
        at 
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:294)
        at 
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567)
        at org.mortbay.http.HttpContext.handle(HttpContext.java:1808)
        at 
org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:525)
        at org.mortbay.http.HttpContext.handle(HttpContext.java:1758)
        at org.mortbay.http.HttpServer.service(HttpServer.java:879)
        at 
org.mortbay.http.HttpConnection.service(HttpConnection.java:790)
        at 
org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:952)
        at org.mortbay.http.HttpConnection.handle(HttpConnection.java:807)
        at 
org.mortbay.http.SocketListener.handleConnection(SocketListener.java:197)
        at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:289)
        at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:501)
WARN    (2007-04-26) 09:13.55:052   [core.manager] 
(/web2.0/simile/exhibit/nobelists.js) PoolThread-4/CoreServiceManager: 
ComponentLocator exception from parent SM during lookup.
org.apache.avalon.framework.service.ServiceException: Component for key 
'org.apache.cocoon.caching.Cache' not found. (Key='Cocoon')
        at 
org.apache.cocoon.core.container.SingleComponentServiceManager.lookup(SingleComponentServiceManager.java:68)
        at 
org.apache.cocoon.core.container.CoreServiceManager.lookup(CoreServiceManager.java:355)
        at 
org.apache.cocoon.core.container.CoreServiceManager.lookup(CoreServiceManager.java:355)
        at 
org.apache.cocoon.components.pipeline.impl.BaseCachingProcessingPipeline.parameterize(BaseCachingProcessingPipeline.java:61)
        at 
org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.parameterize(AbstractCachingProcessingPipeline.java:115)
        at 
org.apache.avalon.framework.container.ContainerUtil.parameterize(ContainerUtil.java:228)
        at 
org.apache.cocoon.core.container.ComponentFactory.setupInstance(ComponentFactory.java:157)
        at 
org.apache.cocoon.core.container.ComponentFactory.newInstance(ComponentFactory.java:133)
        at 
org.apache.cocoon.core.container.handler.NonThreadSafePoolableComponentHandler.getFromPool(NonThreadSafePoolableComponentHandler.java:165)
        at 
org.apache.cocoon.core.container.handler.NonThreadSafePoolableComponentHandler.doGet(NonThreadSafePoolableComponentHandler.java:238)
        at 
org.apache.cocoon.core.container.handler.AbstractComponentHandler.get(AbstractComponentHandler.java:181)
        at 
org.apache.cocoon.core.container.CoreServiceManager.lookup(CoreServiceManager.java:427)
        at 
org.apache.cocoon.core.container.DefaultServiceSelector.select(DefaultServiceSelector.java:141)
        at 
org.apache.cocoon.components.treeprocessor.sitemap.ComponentsSelector.select(ComponentsSelector.java:109)
        at 
org.apache.cocoon.components.treeprocessor.InvokeContext.getProcessingPipeline(InvokeContext.java:158)
        at 
org.apache.cocoon.components.treeprocessor.sitemap.GenerateNode.invoke(GenerateNode.java:70)
        at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:55)
        at 
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:116)
        at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:55)
        at 
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:116)
        at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:77)
        at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:155)
        at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:77)
        at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:95)
        at 
org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:292)
        at 
org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.buildPipeline(ConcreteTreeProcessor.java:239)
        at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.buildPipeline(TreeProcessor.java:302)
        at 
org.apache.cocoon.components.source.impl.SitemapSource.init(SitemapSource.java:266)
        at 
org.apache.cocoon.components.source.impl.SitemapSource.<init>(SitemapSource.java:146)
        at 
org.apache.cocoon.components.source.impl.SitemapSourceFactory.getSource(SitemapSourceFactory.java:65)
        at 
org.apache.cocoon.components.source.CocoonSourceResolver.resolveURI(CocoonSourceResolver.java:159)
        at 
org.apache.cocoon.components.source.CocoonSourceResolver.resolveURI(CocoonSourceResolver.java:189)
        at 
org.apache.forrest.locationmap.LocationMapModule.getLocationMap(LocationMapModule.java:95)
        at 
org.apache.forrest.locationmap.LocationMapModule.getAttribute(LocationMapModule.java:203)
        at 
org.apache.cocoon.components.treeprocessor.variables.PreparedVariableResolver.processModule(PreparedVariableResolver.java:246)
        at 
org.apache.cocoon.components.treeprocessor.variables.PreparedVariableResolver.resolve(PreparedVariableResolver.java:197)
        at 
org.apache.cocoon.components.treeprocessor.sitemap.SelectNode.invoke(SelectNode.java:77)
        at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:77)
        at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:155)
        at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:77)
        at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:95)
        at 
org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:292)
        at 
org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:223)
        at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:289)
        at org.apache.cocoon.Cocoon.process(Cocoon.java:557)
        at 
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:364)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at 
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:354)
        at 
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:294)
        at 
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567)
        at org.mortbay.http.HttpContext.handle(HttpContext.java:1808)
        at 
org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:525)
        at org.mortbay.http.HttpContext.handle(HttpContext.java:1758)
        at org.mortbay.http.HttpServer.service(HttpServer.java:879)
        at 
org.mortbay.http.HttpConnection.service(HttpConnection.java:790)
        at 
org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:952)
        at org.mortbay.http.HttpConnection.handle(HttpConnection.java:807)
        at 
org.mortbay.http.SocketListener.handleConnection(SocketListener.java:197)
        at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:289)
        at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:501)
WARN    (2007-04-26) 09:13.56:317   [access] 
(/web2.0/simile/exhibit/nobelists.js) PoolThread-4/CocoonServlet: Error 
during resolving of the input stream
        at <map:read> - 
file:/D:/DATA/apache/apache-forrest-0.8/main/webapp/resources.xmap:140:84
        at <map:mount> - 
file:/D:/DATA/apache/apache-forrest-0.8/main/webapp/sitemap.xmap:594:76

Paul





"Ross Gardler" <rgardler@apache.org>
Sent by: ross.gardler@googlemail.com
25/04/2007 15:18
Please respond to user
 
        To:     user@forrest.apache.org
        cc: 
        Subject:        Re: [apache-forrest-0.8] problem with java script 
file location


On 25/04/07, Paul.Divine@alcatel-lucent.fr
<Paul.Divine@alcatel-lucent.fr> wrote:
> I try to access a html file with th address
>
> http://mysite/nobelists.htm
>
> A small window diplay the following message
>
> We cannot locate the data file
> http://mysite/nobelists.js
> Check that the file name is correct
>
> In the file there is the following line
>    <link href="nobelists.js" type="application/json" rel="exhibit/data" 
/>
> and the file nobelists.js is in the same directory as nobelists.htm
>
>
> The same configuration with forrest 0.7 works well.

The handling of javascript files has not been (intentionally?) changed
in 0.8, but the handling of resources generally has changed. We now
use the locationmap to resolve resources such as JS files.

Theoretically, if you follow the upgrade instructions for 0.8 anything
that worked in 0.7 will continue to work. Of course, there may be
boundary cases where we missed something in the upgrade instructions.

So, my first question is, have you followed the upgrade instructions
[1] to the letter?

The correct location for script files is "resources/scripts", you
mention in your mail that you tried this but it does not work for you.
Do you have a project sitemap? If so is there anything in there that
may be blocking the request for your *.js files?

To debug the problem turn on debugging for the locationmap (see the
FAQ for info on logging [2]). Do "forrest run"  then request your js
file with http://localhost:8888/nobelist.js

Your locationmap log will now show what was processed in order to try
and resolve this location. There will be loads of results since this
is a first request and caching has not been initialised yet, but
towards the end you should find it looking for project.js.nobelist and
this should resolve to your resources/scripts directory.

You won't see this as it isn't working for you so we need to see why not.

The locationmap logs are hard to decipher so feel free to post
snippets here to ask how to make sense of them.

Ross

[1] http://forrest.apache.org/docs_0_80/upgrading_08.html
[2] http://forrest.apache.org/docs_0_80/faq.html#logs


Mime
View raw message