This question really has nothing to do with Shale, you will probably get
better responses to these questions on the facelets mailing lists.
A couple of things to to check in your web.xml.
In your web.xml you should have a context parameter saying what the suffix
is for your documents
<!-- Use Documents Saved as *.xhtml -->
<context-param>
<param-name>javax.faces.DEFAULT_SUFFIX</param-name>
<param-value>.xhtml</param-value>
</context-param>
also make sure in your web.xml that your urls are mapped to the facesservlet
and that everything goes through the extension filter.
<!-- extension mapping for adding <script/>, <link/>, and other resource
tags to JSF-pages -->
<filter-mapping>
<filter-name>extensionsFilter</filter-name>
<!-- servlet-name must match the name of your
javax.faces.webapp.FacesServlet entry -->
<servlet-name>FacesServlet</servlet-name>
</filter-mapping>
<!-- extension mapping for serving page-independent resources
(javascript, stylesheets, images, etc.) -->
<filter-mapping>
<filter-name>extensionsFilter</filter-name>
<url-pattern>/faces/*</url-pattern>
</filter-mapping>
and futher down.
<servlet>
<servlet-name>FacesServlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>0</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>FacesServlet</servlet-name>
<url-pattern>/faces/*</url-pattern>
</servlet-mapping>
On 7/21/07, Érico Teixeira <[EMAIL PROTECTED]> wrote:
Hi Lionel
I'm sorry the dealy for responding
I added el-ri.jar in my dependencies and a it worked
But I still can't make my project to work
As I said before I'm using a lot of frameworks on it
...
My problem now is that the project is not resolving
any .jsf redirection
I would like to ask to the list about this but it's
going to take some time and I'm really getting tired
of it because I should already have started the
developing fase and I'm still trying to build my
project structure ...
Anyway I would really appreciated if you have just a
little more pacience with me on this project ok ? :)
I'm not sure if my deployment descriptor is set
correctly becuase there are filters and servlets from
MyFaces, Shale and RI declared ... I believe that can
be one of the reasons for the problem ...
Anyway I would like to thank you for your time and
help
--- Lionel Port <[EMAIL PROTECTED]> wrote:
> Ignore the last two comments. I just noticed my
> build also has commons-el.
> The dependencies you have appear to be right. I'm
> running on weblogic so I
> can really tell you if its a tomcat issue or not.
>
> On 7/20/07, Lionel Port < [EMAIL PROTECTED]>
> wrote:
> >
> > I assume you have removed commons-el-1.0 from your
> pom of course.
> >
> > On 7/20/07, Lionel Port < [EMAIL PROTECTED]
> > wrote:
> > >
> > > did you do a clean before the package.
> > >
> > > i.e. mvn clean package
> > >
> > > That will get rid of the dependencies that are
> already copied to the
> > > target directory but not in your pom.
> > >
> > > On 7/20/07, Érico Teixeira
> <[EMAIL PROTECTED] > wrote:
> > > >
> > > > I got the EL RI depedencies from the
> repository and now I'm having
> > > > this error :
> > > >
> > > > java.lang.LinkageError: loader constraints
> violated when linking
> > > > javax/el/ExpressionFactory I searched trought
> the web and got the info that
> > > > there is a problem using EL RI with Tomcat 6
> > > >
> > > > I'm not sure if my project structure is going
> to work
> > > >
> > > > Can anyone help about this ? I starting to
> belive that I have
> > > > to change my project structure
> > > >
> > > > At this moment I'm using Shale, MyFaces,
> Facelets, Spring, Hibernate
> > > > and Maven
> > > >
> > > > When I compile my project with maven through
> command line I see that
> > > > in my war file deps I have el-api.jar ,
> el-impl.jar and
> > > > commons-el-1.0.jar
> > > >
> > > > Would that be one of the possible reasons for
> the problem ?
> > > > ...
> > > >
> > > > ----- Original Message ----
> > > > From: Lionel Port < [EMAIL PROTECTED]>
> > > > To: [email protected]
> > > > Sent: Tuesday, July 17, 2007 11:12:27 PM
> > > > Subject: Re: Integrating Shale with Facelets
> > > >
> > > > I've an test app working with shale and
> facelets. I don't think there
> > > > is
> > > > anything specific that needs to be done for
> shale. The dependencies I
> > > > have
> > > > are.
> > > >
> > > > <dependency>
> > > >
> <groupId>com.sun.facelets</groupId>
> > > >
> <artifactId>jsf-facelets</artifactId>
> > > > <version>1.1.11</version>
> > > > </dependency>
> > > >
> > > > <dependency>
> > > > <groupId>javax.el</groupId>
> > > > <artifactId>el-api</artifactId>
> > > > <version>1.0</version>
> > > > </dependency>
> > > >
> > > > <dependency>
> > > > <groupId>el-impl</groupId>
> > > > <artifactId>el-impl</artifactId>
> > > > <version>1.0</version>
> > > > </dependency>
> > > >
> > > >
> > > >
> > > >
> > > > On 7/18/07, Érico Teixeira
> <[EMAIL PROTECTED]> wrote:
> > > > >
> > > > > Hi
> > > > >
> > > > > I'm trying to create a
> > > > > project using Maven, Shale, Facelets and
> MyFaces
> > > > >
> > > > > I added the folowing dependency im my POM :
> > > > >
> > > > > <dependency>
> > > > >
> <groupId>com.sun.facelets </groupId>
> > > > >
> <artifactId>jsf-facelets</artifactId>
> > > > > <version>1.1.11</version>
> > > > > </dependency>
> > > > >
> > > > > <dependency>
> > > > > <groupId>commons-el</groupId>
> > > > >
> > > > > <artifactId>commons-el</artifactId>
> > > > > <version>1.0</version>
> > > > > </dependency>
> > > > >
> > > > > In my POM the Shale version is 1.0.4 and
> MyFaces is 1.1.5
> > > > >
> > > > > I configured aplplication FacesConfig with :
> > > > > <application>
> > > > > ...
> > > > > <view-handler>
> > > > >
> com.sun.facelets.FaceletViewHandler
> > > > > </view-handler>
> > > > > </application>
> > > > >
> > > > > In my deployment descriptor I have :
> > > > > <welcome-file-list>
> > > > >
> <welcome-file>index.jsp</welcome-file>
> > > > > </welcome-file-list>
> > > > >
> > > > > And the code in index.jsp :
> > > > > <jsp:forward page=" home.jsf " />
> > > > >
> > > > > I have my first xhtml file named
> > > > > home.xhtml
> > > > >
> > > > > When I compile and deploy my app through
> maven everything runs fine
> > > > >
> > > > > Then when I access my context through
> http://localhost:8080/myAppthis
> > > > > should redirect to home.xhtml but I receive
> the following error :
> > > > >
> > > > > com.sun.facelets.FaceletException: Could not
> instantiate feature[
> > > > > compiler.ExpressionFactory ]:
> com.sun.el.ExpressionFactoryImpl
> > > > >
> > > > > and in the component tree message shows :
> > > > >
> > > > > <ShaleViewRoot locale="pt_BR"
> renderKitId="HTML_BASIC"
> > > > rendered="true"
> > > > > transient="false" viewId="/home.xhtml"/>
> > > > >
> > > > > I don't know if I have to change my
> dependecies from commons to RI
> > > > and I
> > > > > have searched throught the web for de EL
> dependency from sun but
> > > > until now I
> > > > > got nothing...
> > > > >
> > > > > I'm not sure what is the cause of the
> problem yet....
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > >
>
____________________________________________________________________________________
> > > > > Boardwalk for $500? In 2007? Ha! Play
> Monopoly Here and Now (it's
> > > > updated
> > > > > for today's economy) at Yahoo! Games.
> > > > >
>
http://get.games.yahoo.com/proddesc?gamekey=monopolyherenow
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
>
____________________________________________________________________________________
>
=== message truncated ===
____________________________________________________________________________________
Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user
panel and lay it on us.
http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7