well, we might changed something else as well within weblogic.xml:

 <container-descriptor>
   <session-monitoring-enabled>true</session-monitoring-enabled>
   <!-- Ant should be used from Cocoon/Lenya and not from WLS -->
   <prefer-web-inf-classes>true</prefer-web-inf-classes>
 </container-descriptor>

HTH

Michi



[EMAIL PROTECTED] wrote:

Michi,

Thanks for your quick reply. I've heard several people say that one must get the endorsed jar files right, but apparently nobody knows exactly which jar files should be there. By my count there are 96 jar files in the WEB-INF/lib directory. If you don't all the right ones in, Lenya throws exceptions all over the place and is completely unusable. If you put them all in, Lenya slows way down (BEA claims to have optimized some of its own such jar files to work better with WebLogic) and is again unusable.

I already have all of the following in the endorsed directory, copied from Lenya's WEB-INF/lib directory:

   xalan-2.6.1-dev-20041008T0304.jar
   xercesImpl-2.6.2.jar xml-apis.jar
   xml-apis.jar
   rhino1.5r4-continuations-20040629T1232.jar
   jakarta-bcel-20040329.jar
   jakarta-regexp-1.3.jar

I also tried copying ant.jar to the endorsed directory to fix this CopyResourcesTask problem, but it didn't fix the CopyResourcesTask problem so I pulled it out again.

Brief history: Putting xalan, xerces and xml-apis.jar into the endorsed dir fixed my "unable to find transformer handler" problem when logging in. Putting rhino into the endorsed dir fixed my java.lang.ClassCastException problem with "org.mozilla.javascript.optimizer.InvokerImpl.createInvoker" when saving document changes. I forget what problem bcel and regex solved when I copied them to endorsed. I also tried setting prefer-web-inf-classes to true in WEB-INF/weblogic.xml (which should be equivalent to copying *all* of the WEB-INF/lib jar files into WebLogic's endorsed dir), but that caused an extreme slowdown and caused the aforementioned "createInvoker" problem to recurr.

Does anybody have any version of Lenya working under WebLogic now? 6 months ago doesn't count unless you can still look at its configuration :-)


[EMAIL PROTECTED] wrote:

[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: user@lenya.apache.org
> 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: user@lenya.apache.org
> 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)
<snip>
>
> 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
<snip>
>
> 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
>

--
Michael Wechner
Wyona      -   Open Source Content Management   -    Apache Lenya
http://www.wyona.com                      http://lenya.apache.org
[EMAIL PROTECTED]                        [EMAIL PROTECTED]




__________________________________________________________________
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]

Reply via email to