Re: MyFaces 1.2.0 and Tomcat 6.0.13

2007-07-27 Thread Werner Punz

Hi Gary, give this preliminary packaging a shot

http://people.apache.org/~werpu/myfaces12custom.zip



Werner


Gary Jackson schrieb:


I'm having some trouble using MyFaces 1.2.0 and Tomcat 6.0.13 in 
conjunction.  I get the following exception when I attempt to deploy a 
stripped down web application with only the jar files supplied by the 
myfaces-core-1.2.0 distribution:


java.lang.LinkageError: Class javax/el/ELContextListener violates loader 
constraints

at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at 
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)

at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1345) 

at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204) 


at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at 
org.apache.myfaces.webapp.StartupServletContextListener.getFacesInitializer(StartupServletContextListener.java:70) 

at 
org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServletContextListener.java:57) 



The following lines show up in the host-manager log:

Jul 26, 2007 10:11:06 PM 
org.apache.myfaces.config.annotation.DefaultLifecycleProviderFactory 
getLifecycleProvider

INFO: No ExternalContext using fallback LifecycleProvider.
Jul 26, 2007 10:11:06 PM 
org.apache.myfaces.config.annotation.DefaultLifecycleProviderFactory 
getLifecycleProvider
INFO: Using LifecycleProvider 
org.apache.myfaces.config.annotation.AllAnnotationLifecycleProvider


I have looked at the following issues:

https://issues.apache.org/jira/browse/TOMAHAWK-1059 (el dependency)
https://issues.apache.org/jira/browse/MYFACES-1686 (packaging issue)

I have attempted to fix these by including the missing dependencies, but 
 that has had no effect.  The problem appears only when I include the 
myfaces-api and -impl jar files.


Any help is appreciated.





Re: MyFaces 1.2.0 and Tomcat 6.0.13

2007-07-27 Thread Gary Jackson

Werner Punz wrote:

Hi Gary, give this preliminary packaging a shot

http://people.apache.org/~werpu/myfaces12custom.zip


That didn't fix it, but getting to the latest Java 5.0 did (update 7 to 
update 12).  Thanks for the help!


--
Gary