I did find someone else with the same symptoms:
http://mail-archives.apache.org/mod_mbox/lenya-user/200411.mbox/%3c9F3019
[EMAIL PROTECTED]

but no solution. Also, I forgot to mention that I'm running under HTTPS, not that it should matter here.

-----Original Message-----
From: RDHarner
To: [email protected]
Sent: Tue, 11 Oct 2005 10:13:20 -0400
Subject: Lenya 1.2.4: CopyResourcesTask cannot be found

Hello Everyone,

I've been trying to get Lenya 1.2.4 to run under WebLogic 8.1 (a customer requirement) for several weeks now. I've solved a number of problems by copying certain Cocoon-supplied jar files into WebLogic's endorsed directory, but now I'm stuck. Whenever submitting the New Document page (Site Tab > File > New Document) I get the following exception:

org.apache.lenya.cms.task.ExecutionException: file:/lenya/webapp/lenya/pubs/default/config/tasks/targets.xml:74: taskdef class org.apache.lenya.cms.ant.CopyResourcesTask cannot be found at org.apache.lenya.cms.task.AntTask.executeAntTarget(AntTask.java:129)
at org.apache.lenya.cms.task.AntTask.execute(AntTask.java:229)
at org.apache.lenya.cms.task.DefaultTaskWrapper.execute(DefaultTaskWrapper.j
ava:248)
at org.apache.lenya.cms.cocoon.acting.TaskAction.act(TaskAction.java:62) at org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.invoke(Act
TypeNode.java:124)
at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.i
nvokeNodes(AbstractParentProcessingNode.java:46)
at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.in
voke(PreparableMatchNode.java:130)

That line 74 of targets.xml (unchanged from the default publication) says:

<taskdef name="copyresources" classname="org.apache.lenya.cms.ant.CopyResourcesTask"/>

(The WEB-INF/classes/org/apache/lenya/cms/ant/CopyResourcesTask.class file *does* exist and is the original.) A similar "CopyResourcesTask cannot be found" exception occurs in several other places, such as when changing a document's description using the Meta tab:

org.apache.cocoon.ProcessingException: Could not read resource cocoon://tabs/meta: org.apache.lenya.cms.task.ExecutionException: file:/lenya/webapp/lenya/pubs/default/config/tasks/targets.xml:74: taskdef class org.apache.lenya.cms.ant.CopyResourcesTask cannot be found at org.apache.cocoon.components.source.SourceUtil.handleSAXException(SourceU
til.java:446)
at org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:11 7) at org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipel
ine.processXMLPipeline(AbstractCachingProcessingPipeline.java:235)
at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(
AbstractProcessingPipeline.java:783)
at org.apache.cocoon.components.source.impl.SitemapSource.toSAX(SitemapSourc
e.java:413)
at org.apache.cocoon.components.source.SourceUtil.parse(SourceUtil.java:270)

at org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:11
5)

I don't know enough about Lenya's use of Ant tasks to know what is really going on here. Is there some special place you need to set a classpath for ant tasks used during runtime? Does ANT_HOME need to be set (if so, where? and pointing to what?).

My configuration:
Lenya 1.2.4, Cocoon 2.1.7
WebLogic 8.1 with JRE 1.4.1_05
OS: Solaris 2.9 on a Sun box

__________________________________________________________________
Look What The New Netscape.com Can Do!
Now you can preview dozens of stories and have the ones you select delivered to you without ever leaving the Top Home Page. And the new Tool Box gives you one click access to local Movie times, Maps, White Pages and more. See for yourself at http://netcenter.netscape.com/netcenter/


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to