Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » j2ee preview + myfaces
j2ee preview + myfaces [message #218592] Fri, 01 August 2008 17:52 Go to next message
Eclipse UserFriend
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 19:19 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1354
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 20:24 Go to previous messageGo to next message
Eclipse UserFriend
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 20:46 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1354
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 19:01 Go to previous message
Eclipse UserFriend
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 Apr 20 03:05:57 GMT 2024

Powered by FUDForum. Page generated in 0.03153 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top