[EMAIL PROTECTED] wrote:
I didn't receive any answer for this. Does anybody have an idea what
could cause Lenya not to be able to find an Ant task, particularly
when running under WebLogic?
"taskdef class org.apache.lenya.cms.ant.CopyResourcesTask cannot
be found"
IIRC this is a matter of setting the endorsed libs right within WebLogic
Hey, I'm beginning to think that, since nobody actually runs Lenya
under WebLogic, there should be a disclaimer on Lenya's front page
saying that Lenya can *only* be run under Jetty or Tomcat.
it does, because we did a project about 6 months ago where the customer
wanted to use WLS.
HTH
Michi
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 11, 2005 12:09 PM
To: [email protected]
Subject: Re: Lenya 1.2.4: CopyResourcesTask cannot be found
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]
--
Michael Wechner
Wyona - Open Source Content Management - Apache Lenya
http://www.wyona.com http://lenya.apache.org
[EMAIL PROTECTED] [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]