<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hi,<br>
<br>
I probably forgot to remove the phase listener definition from
faces-config when removing the phase listener. I created an issue
for this <a class="moz-txt-link-freetext" href="https://issues.jboss.org/browse/WELD-1295">https://issues.jboss.org/browse/WELD-1295</a><br>
<br>
On 01/05/2013 01:19 PM, Luigi Bitonti wrote:<br>
</div>
<blockquote
cite="mid:1357388354.62966.YahooMailNeo@web121504.mail.ne1.yahoo.com"
type="cite">
<div style="color:#000; background-color:#fff; font-family:times
new roman, new york, times, serif;font-size:12pt">Hi All,<br>
<br>
I am "playing" with Weld Servlet 2.0.0.Beta2, deploying a JSF
application to Tomcat 7.0.32 and I believe I've found 2 issues.<br>
<br>
1) If use weld-servlet as artifact in Maven, i.e.<br>
<br>
...<br>
<dependency><br>
<groupId>org.jboss.weld.servlet</groupId><br>
<artifactId>weld-servlet</artifactId><br>
<version>2.0.0.Beta2</version><br>
...<br>
<br>
the presence of the el-api classes in the jar prevents the
application from deploying, as the classes are already present
in Tomcat. The exception is as follows:<br>
<br>
01-Jan-2013 13:44:53
org.apache.catalina.loader.WebappClassLoader validateJarFile<br>
INFO:
validateJarFile(E:\devel\java\tomcat\apache-tomcat-7.0.32\webapps\palindrome-weld2-jsf\WEB-INF\lib\weld-servlet-2.0.0.Beta2.jar)
- jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending
class: javax/el/Expression.class<br>
01-Jan-2013 13:44:54 org.apache.catalina.core.StandardContext
startInternal<br>
SEVERE: Error listenerStart<br>
01-Jan-2013 13:44:54 org.apache.catalina.core.StandardContext
startInternal<br>
<br>
<br>
<div>2) If I use weld-servlet-core, so that I can exclude the
el-api jar like this:</div>
<div><br>
</div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
times new roman,new york,times,serif; background-color:
transparent; font-style: normal;">...<br>
</div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
times new roman,new york,times,serif; background-color:
transparent; font-style: normal;"> <dependency><br>
<groupId>org.jboss.weld</groupId><br>
<artifactId>weld-core</artifactId><br>
<version>2.0.0.Beta2</version><br>
<exclusions><br>
<exclusion><br>
<groupId>javax.el</groupId><br>
<artifactId>el-api</artifactId><br>
</exclusion><br>
</exclusions><br>
</dependency><br>
<dependency><br>
<groupId>org.jboss.weld.servlet</groupId><br>
<artifactId>weld-servlet-core</artifactId><br>
<version>2.0.0.Beta2</version><br>
<exclusions><br>
<exclusion><br>
<groupId>javax.el</groupId><br>
<artifactId>el-api</artifactId><br>
</exclusion><br>
</exclusions><br>
</dependency><br>
</div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
times new roman,new york,times,serif; background-color:
transparent; font-style: normal;">...</div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
times new roman,new york,times,serif; background-color:
transparent; font-style: normal;"><br>
</div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
times new roman,new york,times,serif; background-color:
transparent; font-style: normal;">I get the following error at
application deployment:</div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
times new roman,new york,times,serif; background-color:
transparent; font-style: normal;"><br>
</div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
times new roman,new york,times,serif; background-color:
transparent; font-style: normal;">SEVERE: Exception sending
context initialized event to listener instance of class
com.sun.faces.config.ConfigureListener<br>
<br>
java.lang.RuntimeException:
com.sun.faces.config.ConfigurationException: <br>
Source Document:
<a class="moz-txt-link-freetext" href="jar:file:/E:/devel/java/tomcat/apache-tomcat-7.0.32/webapps/palindrome-weld2-jsf/WEB-INF/lib/weld-servlet-core-2.0.0.Beta2.jar!/META-INF/faces-config.xml">jar:file:/E:/devel/java/tomcat/apache-tomcat-7.0.32/webapps/palindrome-weld2-jsf/WEB-INF/lib/weld-servlet-core-2.0.0.Beta2.jar!/META-INF/faces-config.xml</a><br>
Cause: Unable to find class
'org.jboss.weld.jsf.WeldPhaseListener'<br>
at
com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:292)<br>
at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4791)<br>
...<br>
</div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
times new roman,new york,times,serif; background-color:
transparent; font-style: normal;"><br>
</div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
times new roman,new york,times,serif; background-color:
transparent; font-style: normal;">The JSF phase listener
existed in weld 1.x but has been removed from weld 2.x. If I
edit the faces-config.xml file and remove the phase listener
reference everything works as expected. I checked github and
the latest version of faces-config.xml has still got a
reference to the missing class.<br>
</div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
times new roman,new york,times,serif; background-color:
transparent; font-style: normal;"><br>
</div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
times new roman,new york,times,serif; background-color:
transparent; font-style: normal;">I hope this makes sense.
Apologies if this is not the right mailing list for this
message, or if it's a duplicate (I searched but I could not
find anything similar).</div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
times new roman,new york,times,serif; background-color:
transparent; font-style: normal;"><br>
</div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
times new roman,new york,times,serif; background-color:
transparent; font-style: normal;">Cheers,</div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
times new roman,new york,times,serif; background-color:
transparent; font-style: normal;">Luigi</div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
times new roman,new york,times,serif; background-color:
transparent; font-style: normal;"><br>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
weld-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:weld-dev@lists.jboss.org">weld-dev@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/weld-dev">https://lists.jboss.org/mailman/listinfo/weld-dev</a></pre>
</blockquote>
<br>
</body>
</html>