No, I haven't. I'm no running on jsf-spring instead.
Perhaps I'll try this later.

Best regards,

Chris


On May 6, 2005, at 2:58 PM, Deadman, Hal wrote:

Did you try putting spring-web.jar and spring-webmvc.jar in the war and
the other spring-*.jar files in the EAR? I am just curious if that works
because it sounds like a problem that I will run into at some point. My
first JSF application was not in an EAR otherwise I would have had the
same problem.


Hal

-----Original Message-----
From: Christian Kesselheim [mailto:[EMAIL PROTECTED]
Sent: Friday, May 06, 2005 8:22 AM
To: MyFaces Discussion
Subject: Re: Startup problem on Weblogic 8.1SP4

The whole issue goes away if I comment out my

         <application>
                 <locale-config />

<view-
handler>org.apache.myfaces.application.jsp.JspTilesViewHandlerImpl</
view-handler>

<variable-
resolver>org.springframework.web.jsf.DelegatingVariableResolver</
variable-resolver>
         </application>

in faces-context.xml!

Hence, I guess that having the spring jar files inside the EAR
classloader and the myfaces jar files inside the WAR classloader of
weblogic make the whole classloading break apart.
As I can't really put myfaces libraries into the EAR classloader
(myfaces expects them in WEB-INF lib, extracting some resources at
runtime), I'll try to either split up my spring jar or use the
spring-jsf library instead.

Best regards,

Chris


On May 6, 2005, at 1:47 PM, Christian Kesselheim wrote:

Hi!

I've got a little problem with an application based on both
myfaces-1.0.9 and spring running on Weblogic 8.1SP4.
My JSF UI is packed into a WAR, which is then in turn wrapped into
the
applications EAR. The build is done via Maven; so is the generation
of
all JAR/WAR/EAR manifest files.

Followed the "getting started" instructions on the myfaces website,
I
included all necessary jars in my WEB-INF/lib (including
jsp-2.0.jar).
When deploying the application, weblogic starts choking:

<May 6, 2005 1:37:43 PM CEST> <Warning> <HTTP> <BEA-101162> <User
defined listener
org.apache.myfaces.webapp.StartupServletContextListener failed:
java.lang.NoClassDefFoundError: javax/servlet/jsp/el/ELException.>
<May 6, 2005 1:37:43 PM CEST> <Warning> <HTTP> <BEA-101162> <User
defined listener
org.apache.myfaces.webapp.StartupServletContextListener failed:
java.lang.NoClassDefFoundError: javax/servlet/jsp/el/ELException.>
....
<May 6, 2005 1:37:44 PM CEST> <Error> <Deployer> <BEA-149201>
<Failed
to complete the deployment task with ID 34 for the application
myapp-0.1-SNAPSHOT.
weblogic.management.DeploymentException:
Exception:weblogic.management.ApplicationException: start() failed.
        Module: myapp       Error:
weblogic.management.DeploymentException:
javax/servlet/jsp/el/ELException - with nested exception:
[java.lang.NoClassDefFoundError: javax/servlet/jsp/el/ELException]

        at

weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.doCommit(Sl
aveDeployer.java:2423)
        at

weblogic.management.deploy.slave.SlaveDeployer$Task.commit(SlaveDeploye
r.java:2138)
        at

weblogic.management.deploy.slave.SlaveDeployer$Task.checkAutoCommit(Sla
veDeployer.java:2237)
        at

weblogic.management.deploy.slave.SlaveDeployer$Task.prepare(SlaveDeploy
er.java:2132)
        at

weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(Sla
veDeployer.java:2384)
        at

weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(Slave
Deployer.java:866)
        at

weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeploy
er.java:594)
        at

weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeplo
yer.java:508)
        at

weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandl
er.java:25)
        at
weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
        at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
--------------- nested within: ------------------
weblogic.management.ManagementException:  - with nested exception:
[weblogic.management.DeploymentException:
Exception:weblogic.management.ApplicationException: start() failed.
        Module: myapp       Error:
weblogic.management.DeploymentException:
javax/servlet/jsp/el/ELException - with nested exception:
[java.lang.NoClassDefFoundError: javax/servlet/jsp/el/ELException]
]
        at

weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(Sla
veDeployer.java:2396)
        at

weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(Slave
Deployer.java:866)
        at

weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeploy
er.java:594)
        at

weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeplo
yer.java:508)
        at

weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandl
er.java:25)
        at
weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
        at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)


On the other hand, when inverting weblogic classloader hierarchy via weblogic.xml

<weblogic-web-app>
        <description>Here goes my description</description>
        <weblogic-version>8.1</weblogic-version>
        <container-descriptor>

<prefer-web-inf-classes>true</prefer-web-inf-classes>
        </container-descriptor>
</weblogic-web-app>

everything goes fine (at least for myfaces). Unfortunately, messing
with weblogic classloader hierarchy opens a whole other can of
worms,
so I'ld like to know if there's any standard way to deal with this
kinda problem. Any idea :)?

Best regards,

Christian Kesselheim

-------------------------
infeurope S.A.
62, rue Charles Martel
L-2134 Luxembourg
Luxembourg
Tel: (+352) 25.22.33.1
Fax: (+352) 25.22.33.222

Web: www.infeurope.lu
-------------------------

Any views expressed are purely those of the writer and may not in
any
circumstances be regarded as stating an official position of
infeurope
S.A.!



------------------------- infeurope S.A. 62, rue Charles Martel L-2134 Luxembourg Luxembourg Tel: (+352) 25.22.33.1 Fax: (+352) 25.22.33.222

Web: www.infeurope.lu
-------------------------

Any views expressed are purely those of the writer and may not in any
circumstances be regarded as stating an official position of infeurope
S.A.!




------------------------- infeurope S.A. 62, rue Charles Martel L-2134 Luxembourg Luxembourg Tel: (+352) 25.22.33.1 Fax: (+352) 25.22.33.222

Web: www.infeurope.lu
-------------------------

Any views expressed are purely those of the writer and may not in any
circumstances be regarded as stating an official position of infeurope S.A.!




Reply via email to