myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Timbul (JIRA)" <myfaces-...@incubator.apache.org>
Subject [jira] Commented: (MYFACES-665) StartupServletContextListener crashes if all jars placed in webapp
Date Wed, 05 Oct 2005 09:15:58 GMT
    [ http://issues.apache.org/jira/browse/MYFACES-665?page=comments#action_12331366 ] 

Thomas Timbul commented on MYFACES-665:
---------------------------------------

please see http://opensource2.atlassian.com/projects/spring/browse/SPR-1348

> StartupServletContextListener crashes if all jars placed in webapp
> ------------------------------------------------------------------
>
>          Key: MYFACES-665
>          URL: http://issues.apache.org/jira/browse/MYFACES-665
>      Project: MyFaces
>         Type: Bug
>   Components: Implementation
>  Environment: at least resin 3.0.14 (maybe other containers)
>     Reporter: Thomas Timbul
>     Priority: Critical

>
> This problem seems to be related to http://issues.apache.org/jira/browse/MYFACES-630
> This also happens in the StartupServletContextListener.
> This problem occurs when BOTH jars are placed in the webapp classpath ONLY. (myfaces-api
is NOT in the container classpath)
> The only working configuration seems to be
> myfaces-api in container classpath.
> myfaces-impl in webapp classpath.
> I previously posted this as an error in the wiki (#631), which of course shouldn't be
posted here as was pointed out to me, but it seems to be an implementation problem(?)
> Alternatively I could suggest that this is a problem with Spring. The spring jar happens
to be in the container classpath, but I am using spring's DelegatingVariableResolver in the
application.
> So the issue could result from Spring (in container) to load faces (in webapp) ?? I do
not know.
> Trace from resin 3.0.14:
> [09:29:29.453] Loading Spring root WebApplicationContext
> [09:29:36.171] java.lang.NoClassDefFoundError: javax/faces/el/VariableResolver
> [09:29:36.171]  at java.lang.ClassLoader.defineClass1(Native Method)
> [09:29:36.171]  at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
> [09:29:36.171]  at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
> [09:29:36.171]  at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
> [09:29:36.171]  at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
> [09:29:36.171]  at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
> [09:29:36.171]  at java.security.AccessController.doPrivileged(Native Method)
> [09:29:36.171]  at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> [09:29:36.171]  at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> [09:29:36.171]  at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
> [09:29:36.171]  at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> [09:29:36.171]  at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
> [09:29:36.171]  at java.lang.Class.forName0(Native Method)
> [09:29:36.171]  at java.lang.Class.forName(Class.java:242)
> [09:29:36.171]  at com.caucho.loader.DynamicClassLoader.loadClass(DynamicClassLoader.java:1014)
> [09:29:36.171]  at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> [09:29:36.171]  at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
> [09:29:36.171]  at java.lang.Class.forName0(Native Method)
> [09:29:36.171]  at java.lang.Class.forName(Class.java:242)
> [09:29:36.171]  at com.caucho.loader.DynamicClassLoader.loadClass(DynamicClassLoader.java:1014)
> [09:29:36.171]  at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> [09:29:36.171]  at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
> [09:29:36.171]  at java.lang.Class.forName0(Native Method)
> [09:29:36.171]  at java.lang.Class.forName(Class.java:242)
> [09:29:36.171]  at com.caucho.loader.DynamicClassLoader.loadClass(DynamicClassLoader.java:1014)
> [09:29:36.171]  at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> [09:29:36.171]  at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
> [09:29:36.171]  at java.lang.Class.forName0(Native Method)
> [09:29:36.171]  at java.lang.Class.forName(Class.java:242)
> [09:29:36.171]  at org.apache.myfaces.util.ClassUtils.classForName(ClassUtils.java:131)
> [09:29:36.171]  at org.apache.myfaces.util.ClassUtils.simpleClassForName(ClassUtils.java:157)
> [09:29:36.171]  at org.apache.myfaces.config.FacesConfigurator.getApplicationObject(FacesConfigurator.java:506)
> [09:29:36.171]  at org.apache.myfaces.config.FacesConfigurator.configureApplication(FacesConfigurator.java:446)
> [09:29:36.171]  at org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.java:130)
> [09:29:36.171]  at org.apache.myfaces.webapp.StartupServletContextListener.initFaces(StartupServletContextListener.java:63)
> [09:29:36.171]  at org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServletContextListener.java:46)
> [09:29:36.171]  at com.caucho.server.webapp.Application.start(Application.java:1539)
> [09:29:36.171]  at com.caucho.server.deploy.DeployController.startImpl(DeployController.java:563)
> [09:29:36.171]  at com.caucho.server.deploy.StartAutoRedeployAutoStrategy.startOnInit(StartAutoRedeployAutoStrategy.java:72)
> [09:29:36.171]  at com.caucho.server.deploy.DeployController.startOnInit(DeployController.java:451)
> [09:29:36.171]  at com.caucho.server.deploy.DeployContainer.start(DeployContainer.java:157)
> [09:29:36.171]  at com.caucho.server.webapp.ApplicationContainer.start(ApplicationContainer.java:610)
> [09:29:36.171]  at com.caucho.server.host.Host.start(Host.java:385)
> [09:29:36.171]  at com.caucho.server.deploy.DeployController.startImpl(DeployController.java:563)
> [09:29:36.171]  at com.caucho.server.deploy.StartAutoRedeployAutoStrategy.startOnInit(StartAutoRedeployAutoStrategy.java:72)
> [09:29:36.171]  at com.caucho.server.deploy.DeployController.startOnInit(DeployController.java:451)
> [09:29:36.171]  at com.caucho.server.deploy.DeployContainer.start(DeployContainer.java:157)
> [09:29:36.171]  at com.caucho.server.host.HostContainer.start(HostContainer.java:468)
> [09:29:36.171]  at com.caucho.server.resin.ServletServer.start(ServletServer.java:934)
> [09:29:36.171]  at com.caucho.server.deploy.DeployController.startImpl(DeployController.java:563)
> [09:29:36.171]  at com.caucho.server.deploy.AbstractDeployControllerStrategy.start(AbstractDeployControllerStrategy.java:56)
> [09:29:36.171]  at com.caucho.server.deploy.DeployController.start(DeployController.java:459)
> [09:29:36.171]  at com.caucho.server.resin.ResinServer.start(ResinServer.java:465)
> [09:29:36.171]  at com.caucho.server.resin.Resin.init(Resin.java)
> [09:29:36.171]  at com.caucho.server.resin.Resin.main(Resin.java:612)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message