Hi Chris, Did you finally manage to find a recommended way? I am struggling with the same problem in the context of Shale + MyFaces + Spring under Bea WL.
Thanks, Balazs Christian Kesselheim wrote: > > If I split up the spring jar and place just the spring-web*.jar files > on WEB-INF/lib, weblogic is giving me wicked error messages such as a > complete shutdown of the application without any meaningful error > message in the log: > > <May 10, 2005 1:51:25 PM CEST> <Error> <Deployer> <BEA-149201> <Failed > to complete the deployment task with ID 55 for the application test. > java.lang.NullPointerException > at > weblogic.servlet.internal.WebAppServletContext.destroy(WebAppServletCont > ext.java:5999) > at > weblogic.servlet.internal.ServletContextManager.destroyContext(ServletCo > ntextManager.java:196) > at > weblogic.servlet.internal.HttpServer.unloadWebApp(HttpServer.java:777) > at > weblogic.servlet.internal.WebAppModule.destroyContexts(WebAppModule.java > :761) > at > weblogic.servlet.internal.WebAppModule.rollback(WebAppModule.java:739) > ... > > I've now completely abandoned the spring jsf integration classes > (variable resolver and utils) and hacked together my own utilities in > combination with jsf-spring. Works like a charm. > > Chris > > On May 6, 2005, at 3:20 PM, Christian Kesselheim wrote: > >> 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(S >>> l >>>>> aveDeployer.java:2423) >>>>> at >>>>> >>> weblogic.management.deploy.slave.SlaveDeployer$Task.commit(SlaveDeploy >>> e >>>>> r.java:2138) >>>>> at >>>>> >>> weblogic.management.deploy.slave.SlaveDeployer$Task.checkAutoCommit(Sl >>> a >>>>> veDeployer.java:2237) >>>>> at >>>>> >>> weblogic.management.deploy.slave.SlaveDeployer$Task.prepare(SlaveDeplo >>> y >>>>> er.java:2132) >>>>> at >>>>> >>> weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(Sl >>> a >>>>> veDeployer.java:2384) >>>>> at >>>>> >>> weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(Slav >>> e >>>>> Deployer.java:866) >>>>> at >>>>> >>> weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeplo >>> y >>>>> er.java:594) >>>>> at >>>>> >>> weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDepl >>> o >>>>> yer.java:508) >>>>> at >>>>> >>> weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHand >>> l >>>>> 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(Sl >>> a >>>>> veDeployer.java:2396) >>>>> at >>>>> >>> weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(Slav >>> e >>>>> Deployer.java:866) >>>>> at >>>>> >>> weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeplo >>> y >>>>> er.java:594) >>>>> at >>>>> >>> weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDepl >>> o >>>>> yer.java:508) >>>>> at >>>>> >>> weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHand >>> l >>>>> 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.! >> >> > > ------------------------- > 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.! > > -- View this message in context: http://www.nabble.com/Startup-problem-on-Weblogic-8.1SP4-tf4736.html#a5439740 Sent from the MyFaces - Users forum at Nabble.com.

