Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » j2ee preview + myfaces
j2ee preview + myfaces [message #218592] Fri, 01 August 2008 13:52 Go to next message
Eclipse User
Originally posted by: lucio_piccoli.hotmail.com

hi all

i am unable to do afaces.jsp->run as->server->j2ee preview.

i followed the tutorial

http://help.eclipse.org/stable/index.jsp?topic=/org.eclipse. jst.jsf.doc.user/html/tasks/add_jsf_facet.html

but i am getting various errors ranging from missing classes to security
exceptions.

this what i have currently.

WARNING: Unknown element (deferred-value) in attribute
01-Aug-2008 18:43:32 org.mortbay.jetty.servlet.ServletHandler handle
WARNING: EXCEPTION
javax.servlet.ServletException: javax/servlet/jsp/tagext/JspIdConsumer
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java :272)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)

when i add the jsp-api.jar to the classpath i get a security exception on
the another classs.
surely it cant be so difficult to run a faces page on jetty.

any help most apprecaited.

-lp
Re: j2ee preview + myfaces [message #218600 is a reply to message #218592] Fri, 01 August 2008 15:19 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry Isaacs
Messages: 1298
Registered: July 2009
Senior Member
As far as I'm aware, the Jetty based J2EE Preview server is limited to
using the Servlet 2.4 version of the servlet-api.jar and JSP 2.0 version
of the jsp-api.jar. If you need to take advantage of Servlet 2.5 and/or
JSP 2.1, which using a JSF 1.2 library will require, you will have to
use a different server that supports those spec levels.

Cheers,
Larry

luciop wrote:
> hi all
>
> i am unable to do afaces.jsp->run as->server->j2ee preview.
>
> i followed the tutorial
>
> http://help.eclipse.org/stable/index.jsp?topic=/org.eclipse. jst.jsf.doc.user/html/tasks/add_jsf_facet.html
>
>
> but i am getting various errors ranging from missing classes to security
> exceptions.
>
> this what i have currently.
>
> WARNING: Unknown element (deferred-value) in attribute
> 01-Aug-2008 18:43:32 org.mortbay.jetty.servlet.ServletHandler handle
> WARNING: EXCEPTION javax.servlet.ServletException:
> javax/servlet/jsp/tagext/JspIdConsumer
> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java :272)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
>
> when i add the jsp-api.jar to the classpath i get a security exception
> on the another classs.
> surely it cant be so difficult to run a faces page on jetty.
>
> any help most apprecaited.
>
> -lp
>
Re: j2ee preview + myfaces [message #218606 is a reply to message #218600] Fri, 01 August 2008 16:24 Go to previous messageGo to next message
Eclipse User
Originally posted by: lucio_piccoli.hotmail.com

i think your correct.

i check the eclipse plugins directory and i have a

org.mortbay.jetty_5.1.14.v200806031611.jar

which seems to indicate it is jetty 5. Now that is an old version jetty.

Is is simply to upgrade the jetty to v6 (which does support jsf 1.2) or is
it just too difficult?

-lp
Re: j2ee preview + myfaces [message #218613 is a reply to message #218606] Fri, 01 August 2008 16:46 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry Isaacs
Messages: 1298
Registered: July 2009
Senior Member
luciop wrote:
> i think your correct.
>
> i check the eclipse plugins directory and i have a
> org.mortbay.jetty_5.1.14.v200806031611.jar
>
> which seems to indicate it is jetty 5. Now that is an old version jetty.
>
> Is is simply to upgrade the jetty to v6 (which does support jsf 1.2) or
> is it just too difficult?
>
> -lp
>
>

I believe the J2EE Preview server is hard coded to that internal Eclipse
supplied version of Jetty. However, you can execute Window ->
Preferences and on the Server -> Server Runtime Environments page click
the Add button. Click the "Download additional server adapters" link
and a dialog should appear and eventually list a Jetty Generic Server
Adapter you can try. I haven't used it, so I can't offer any further
info about it. As a "generic" adapter, it may not offer identical
behavior with respect to the J2EE Preview server.

Cheers,
Larry
Re: j2ee preview + myfaces [message #218660 is a reply to message #218613] Sun, 03 August 2008 15:01 Go to previous message
Eclipse User
Originally posted by: lucio_piccoli.hotmail.com

nice one larry.

the jetty 6 server works great now.

-lp
Previous Topic:Tests does not exist
Next Topic:some server config is not exist in eclipse-jee-ganymede
Goto Forum:
  


Current Time: Sat Jul 26 13:21:31 EDT 2014

Powered by FUDForum. Page generated in 0.02334 seconds