cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yangontha Maung <thirimo...@yahoo.com>
Subject static web site creation by ant - error
Date Thu, 26 Feb 2004 06:28:19 GMT
Cocoon 2.1.4
Trying to create static web pages by ant

Mounted the /usr/local/spider at the main
sitemap.xmap.

I can run cocoon servlet and server the page
http://myserver:8888/spider/hello.html

Now I want that hello.html to save somwhere on the
server.

So I created
build.xml at /usr/local/spider as follows:-

<?xml version="1.0"?>
<project default="spider" basedir=".">
<property name="cocoon.context"
value="../cocoon/build/webapp"/>
<path id="cocoon.classpath">
<dirset dir="${cocoon.context}/WEB-INF/classes"/>
<fileset dir="${cocoon.context}/WEB-INF/lib"
includes="*.jar"/>
</path>

<taskdef name="cocoon" 
  classname="org.apache.cocoon.CocoonTask"
  classpathref="cocoon.classpath"/>

<target name="spider">

<cocoon verbose="true"
  classpathref="cocoon.classpath"
  follow-links="true"
  precompile-only="false"
  confirm-extensions="false"
  context-dir="${cocoon.context}"
  config-file="WEB-INF/cocoon.xconf"
  work-dir="build/work"
  dest-dir="build/dest"
  default-filename="hello.html"
  accept="*/*">

<broken-links type="xml"
  file="brokenlinks.xml"
  generate="false"
  extension=".err"/>

<logging
  log-kit="${cocoon.context}/WEB-INF/logkit.xconf"
  logger="cli"
  level="DEBUG"/>

<uris name="site" follow-links="true">
  <uri type="replace"
    src-prefix="spider/"
    src="hello.html"
    dest="${cocoon.context}/build/dest/"/>
  </uris>
</cocoon>
</target>
</project>


Then run
ant apider
The message says build successful. But there are a lot
of error messages. And the expected file is not
created.

Please help me where I go wrong and what to do to
create the static web page (hello.html) somewhere.

rgds,

++++++++++++++


   [cocoon]     at
org.apache.avalon.framework.context.DefaultContext.get(Defaul
tContext.java:157)
   [cocoon]     at
org.apache.avalon.framework.context.DefaultContext.get(Defaul
tContext.java:160)
   [cocoon]     at
org.apache.cocoon.components.ComponentContext.get(ComponentCo
ntext.java:144)
   [cocoon]     at
org.apache.cocoon.portal.coplet.adapter.impl.PortletAdapter.c
ontextualize(PortletAdapter.java:109)
   [cocoon]     at
org.apache.avalon.framework.container.ContainerUtil.contextua
lize(ContainerUtil.java:154)
   [cocoon]     at
org.apache.avalon.excalibur.component.DefaultComponentFactory
.newInstance(DefaultComponentFactory.java:281)
   [cocoon]     at
org.apache.avalon.excalibur.component.ThreadSafeComponentHand
ler.initialize(ThreadSafeComponentHandler.java:143)
   [cocoon]     at
org.apache.avalon.excalibur.component.ExcaliburComponentSelec
tor.addComponent(ExcaliburComponentSelector.java:738)
   [cocoon]     ... 29 more
   [cocoon] FATAL_E 2004-02-26 14:15:00.074 [cli     ]
(): Exception caught
   [cocoon]
org.apache.avalon.framework.configuration.ConfigurationException:
Co
uld not load class
org.apache.cocoon.portal.coplet.adapter.impl.PortletAdapter
f
or component named 'portlet' at
file:/usr/local/spider/../cocoon/build/webapp/WE
B-INF/cocoon.xconf:1565:121
   [cocoon]     at
org.apache.cocoon.components.ExtendedComponentSelector.config
ure(ExtendedComponentSelector.java:276)
   [cocoon]     at
org.apache.avalon.framework.container.ContainerUtil.configure
(ContainerUtil.java:239)
   [cocoon]     at
org.apache.avalon.excalibur.component.DefaultComponentFactory
.newInstance(DefaultComponentFactory.java:305)
   [cocoon]     at
org.apache.avalon.excalibur.component.ThreadSafeComponentHand
ler.initialize(ThreadSafeComponentHandler.java:143)
   [cocoon]     at
org.apache.avalon.excalibur.component.ExcaliburComponentManag
er.initialize(ExcaliburComponentManager.java:558)
   [cocoon]     at
org.apache.cocoon.components.CocoonComponentManager.initializ
e(CocoonComponentManager.java:547)
   [cocoon]     at
org.apache.avalon.framework.container.ContainerUtil.initializ
e(ContainerUtil.java:282)
   [cocoon]     at
org.apache.cocoon.Cocoon.initialize(Cocoon.java:340)
   [cocoon]     at
org.apache.avalon.framework.container.ContainerUtil.initializ
e(ContainerUtil.java:282)
   [cocoon]     at
org.apache.cocoon.bean.CocoonWrapper.initialize(CocoonWrapper
.java:186)
   [cocoon]     at
org.apache.cocoon.bean.CocoonBean.initialize(CocoonBean.java:
132)
   [cocoon]     at
org.apache.cocoon.bean.helpers.AntDelegate.process(AntDelegat
e.java:76)
   [cocoon]     at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
   [cocoon]     at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
sorImpl.java:39)
   [cocoon]     at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
hodAccessorImpl.java:25)
   [cocoon]     at
java.lang.reflect.Method.invoke(Method.java:324)
   [cocoon]     at
org.apache.cocoon.CocoonTask.run(CocoonTask.java:320)
   [cocoon]     at
org.apache.cocoon.CocoonTask.execute(CocoonTask.java:292)
   [cocoon]     at
org.apache.cocoon.CocoonTask.execute(CocoonTask.java:243)
   [cocoon]     at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.ja
va:269)
   [cocoon]     at
org.apache.tools.ant.Task.perform(Task.java:364)
   [cocoon]     at
org.apache.tools.ant.Target.execute(Target.java:301)
   [cocoon]     at
org.apache.tools.ant.Target.performTasks(Target.java:328)
   [cocoon]     at
org.apache.tools.ant.Project.executeTarget(Project.java:1215)
   [cocoon]     at
org.apache.tools.ant.Project.executeTargets(Project.java:1063
)
   [cocoon]     at
org.apache.tools.ant.Main.runBuild(Main.java:632)
   [cocoon]     at
org.apache.tools.ant.Main.startAnt(Main.java:183)
   [cocoon]     at
org.apache.tools.ant.launch.Launcher.run(Launcher.java:197)
   [cocoon]     at
org.apache.tools.ant.launch.Launcher.main(Launcher.java:56)
   [cocoon] Caused by:
org.apache.avalon.framework.component.ComponentException:
 Could not set up Component for hint [ portlet] (key
[portlet])
   [cocoon]     at
org.apache.avalon.excalibur.component.ExcaliburComponentSelec
tor.addComponent(ExcaliburComponentSelector.java:756)
   [cocoon]     at
org.apache.cocoon.components.ExtendedComponentSelector.config
ure(ExtendedComponentSelector.java:268)
   [cocoon]     ... 28 more
   [cocoon] Caused by:
org.apache.avalon.framework.context.ContextException:
Una
ble to resolve context key: servlet-config
   [cocoon]     at
org.apache.avalon.framework.context.DefaultContext.get(Defaul
tContext.java:157)
   [cocoon]     at
org.apache.avalon.framework.context.DefaultContext.get(Defaul
tContext.java:160)
   [cocoon]     at
org.apache.cocoon.components.ComponentContext.get(ComponentCo
ntext.java:144)
   [cocoon]     at
org.apache.cocoon.portal.coplet.adapter.impl.PortletAdapter.c
ontextualize(PortletAdapter.java:109)
   [cocoon]     at
org.apache.avalon.framework.container.ContainerUtil.contextua
lize(ContainerUtil.java:154)
   [cocoon]     at
org.apache.avalon.excalibur.component.DefaultComponentFactory
.newInstance(DefaultComponentFactory.java:281)
   [cocoon]     at
org.apache.avalon.excalibur.component.ThreadSafeComponentHand
ler.initialize(ThreadSafeComponentHandler.java:143)
   [cocoon]     at
org.apache.avalon.excalibur.component.ExcaliburComponentSelec
tor.addComponent(ExcaliburComponentSelector.java:738)
   [cocoon]     ... 29 more
   [cocoon]
org.apache.avalon.framework.configuration.ConfigurationException:
Co
uld not load class
org.apache.cocoon.portal.coplet.adapter.impl.PortletAdapter
f
or component named 'portlet' at
file:/usr/local/spider/../cocoon/build/webapp/WE
B-INF/cocoon.xconf:1565:121

BUILD SUCCESSFUL
Total time: 17 seconds
[root@innlay spider]#




__________________________________
Do you Yahoo!?
Get better spam protection with Yahoo! Mail.
http://antispam.yahoo.com/tools

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message