cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rice Yeh" <rice...@gmail.com>
Subject when is blockcontext allowed?
Date Sun, 25 Feb 2007 12:22:18 GMT
Hi,
  I met the java.net.MalformedURLException for url "blockcontext:/xs.party/"
which is used for setting up a block bean. In the
cocoon-servlet-service-sample, "blockcontext" is used for context-path in
setting a block bean. When is blockcontext allowed?

Rice

2007-02-25 20:10:21.684::WARN:  Nested in
org.springframework.beans.factory.Bean
CreationException: Error creating bean with name 'xs.party': Invocation of
init
method failed; nested exception is
org.springframework.beans.factory.BeanCreatio
nException: Could not create configuration for TreeProcesoor; nested
exception i
s java.net.MalformedURLException: Could not resolve blockcontext:/xs.party/:
java.net.MalformedURLException: Could not resolve blockcontext:/xs.party/
        at
org.apache.cocoon.servletservice.ServletServiceContext.getResource(Se
rvletServiceContext.java:134)
        at
org.apache.cocoon.sitemap.SitemapServlet$RequestProcessor.createTreeP
rocessorConfiguration(SitemapServlet.java:134)
        at
org.apache.cocoon.sitemap.SitemapServlet$RequestProcessor.getProcesso
r(SitemapServlet.java:82)
        at org.apache.cocoon.servlet.RequestProcessor.<init>(
RequestProcessor.ja
va:99)
        at org.apache.cocoon.sitemap.SitemapServlet$RequestProcessor
.<init>(Site
mapServlet.java:71)
        at org.apache.cocoon.sitemap.SitemapServlet.init(SitemapServlet.java
:52)

        at javax.servlet.GenericServlet.init(GenericServlet.java:241)
        at org.apache.cocoon.servletservice.spring.ServletFactoryBean.init
(Servl
etFactoryBean.java:117)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1160)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1122)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.initializeBean(AbstractAutowireCapableBeanFactory.java:1085)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.createBean(AbstractAutowireCapableBeanFactory.java:429)
        at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getOb
ject(AbstractBeanFactory.java:250)
        at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistr
y.getSingleton(DefaultSingletonBeanRegistry.java:141)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:247)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:161)
        at
org.springframework.beans.factory.support.DefaultListableBeanFactory.
preInstantiateSingletons(DefaultListableBeanFactory.java:270)
        at
org.springframework.context.support.AbstractApplicationContext.refres
h(AbstractApplicationContext.java:346)
        at
org.springframework.web.context.support.AbstractRefreshableWebApplica
tionContext.refresh(AbstractRefreshableWebApplicationContext.java:156)
        at
org.springframework.web.context.ContextLoader.createWebApplicationCon
text(ContextLoader.java:246)
        at
org.springframework.web.context.ContextLoader.initWebApplicationConte
xt(ContextLoader.java:184)
        at
org.springframework.web.context.ContextLoaderListener.contextInitiali
zed(ContextLoaderListener.java:49)
        at org.mortbay.jetty.handler.ContextHandler.startContext
(ContextHandler.
java:511)
        at org.mortbay.jetty.servlet.Context.startContext(Context.java:135)
        at org.mortbay.jetty.webapp.WebAppContext.startContext(
WebAppContext.jav
a:1191)
        at org.mortbay.jetty.handler.ContextHandler.doStart(
ContextHandler.java:
481)
        at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java
:434
)
        at org.mortbay.component.AbstractLifeCycle.start(
AbstractLifeCycle.java:
40)
        at org.mortbay.jetty.handler.HandlerCollection.doStart
(HandlerCollection
.java:147)
        at org.mortbay.jetty.handler.ContextHandlerCollection.doStart
(ContextHan
dlerCollection.java:120)
        at org.mortbay.component.AbstractLifeCycle.start(
AbstractLifeCycle.java:
40)
        at org.mortbay.jetty.handler.HandlerCollection.doStart
(HandlerCollection
.java:147)
        at org.mortbay.component.AbstractLifeCycle.start(
AbstractLifeCycle.java:
40)
        at org.mortbay.jetty.handler.HandlerWrapper.doStart(
HandlerWrapper.java:
117)
        at org.mortbay.jetty.Server.doStart(Server.java:210)
        at org.mortbay.component.AbstractLifeCycle.start(
AbstractLifeCycle.java:
40)
        at org.mortbay.jetty.plugin.Jetty6PluginServer.start
(Jetty6PluginServer.
java:134)
        at org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty
(AbstractJettyMo
jo.java:332)
        at org.mortbay.jetty.plugin.AbstractJettyMojo.execute
(AbstractJettyMojo.
java:277)
        at org.mortbay.jetty.plugin.AbstractJettyRunMojo.execute
(AbstractJettyRu
nMojo.java:195)
        at org.mortbay.jetty.plugin.Jetty6RunMojo.execute(Jetty6RunMojo.java
:183
)
        at org.apache.maven.plugin.DefaultPluginManager.executeMojo
(DefaultPlugi
nManager.java:412)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals
(Defa
ultLifecycleExecutor.java:534)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandalone
Goal(DefaultLifecycleExecutor.java:488)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal
(Defau
ltLifecycleExecutor.java:458)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:306)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
ts(DefaultLifecycleExecutor.java:273)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute
(DefaultLi
fecycleExecutor.java:140)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java
:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java
:430)

        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)

Mime
View raw message