facebook

A problem in JSF [Closed]

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #208831 Reply

    Clarence Ho
    Member

    In my project, I added “JSF capabilities” under MyEclipse and try to develop a JSP using faces component. I can successfully compile and deploy the jsp onto my Tomcat server. However, when I run the jsp, I got the following error message from Tomcat:
    java.lang.NoClassDefFoundError: javax/servlet/jsp/jstl/core/Config
    com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:135)
    com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
    com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
    com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
    javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
    Do I missed somethying? Kindly advice asap.
    Thanks. Clarence

    #208832 Reply

    Riyad Kalla
    Member

    Clarence,
    We didn’t get a chance to roll out our “Add JSTL Capabilities” wizard to the Beta 1 release, which would normally add the missing JAR that you need. But since JSTL isn’t specifically part of the JSF spec, we broke it out into a separate wizard that will hopefully be there in Beta2. That way if you are using a normal web app, Struts app or JSF app, you’ll be able to add JSTL support to it.

    As a workaround you can download JSTL and add the standard.jar and jstl.jar files to your WEB-INF/lib directory. Sorry for the inconvenience.

    #210417 Reply

    Tom
    Member

    Could the lack of JSTL (1.1?) support quoted below effect use of Struts Console?

    Eclipse crashes when I use it regardless of whether I “Add JSTL 1.0 libs” to the Project.

    Here’s what I do – system info below:

    1) I start with a completely fresh install of Eclipse 3.0.0 and MyEclipse 3.8 Beta 2 and (only) the Struts Console plugin.
    2) I create a J2EE WEB project from scratch (with or without JSTL 1.0) and add MyEclipse-Struts and then MyEclipse JSF capabilities.
    3) Struts Console does not appear as a choice to edit faces-config.xml
    4) Struts Console does appear as an option to edit struts-config.xml
    5) When I try to edit struts-config.xml with the Struts Console, Eclipse crashes with an advisory popup about an SWT error and a recommendation to exit the workbench, and .log contains: java.lang.ClassNotFoundException: sun.awt.X11.XEmbeddedFrame

    The result is the same after exiting the workbench and stopping Eclipse and deleting the Console Plugin folder, then restarting Eclipse and deleting the Project, then closing and exiting Eclipse and re-adding the Console plugin, then recreating the Project from scratch with JSTL 1.0, or creating the project without JSTL 1.0 then adding JSTL 1.0 explicitly.

    Thanks in advance for any clues!!

    MyEclipse Forum post System information:
    Red Hat EL AS 3 Linux
    Eclipse version and build id: 3.0.0 – 200406251208
    MyEclipse version and build id: 3.7.202
    Eclipse and MyEclipse are freshly installed (by a user, not root)
    Added plugins:
    JSF Console 4.7
    No plugins in the <eclipse>/plugins directory like org.eclipse.pde…
    Using JDK version 1.4.2_04
    Installed JREs include (only) j2sdk1.4.2_04
    Using Tomcat 5.0.25
    Using Resin 3.0.8
    Only entries like that above in file <workspace>/.metadata/.log

    #210420 Reply

    Riyad Kalla
    Member

    Tom as I understand your question this is totally a Struts Console/Eclipse question, or am I missing something? I’m going to close this thread (Because the original poster’s question was answered) and would encourage any users that can help Tom to definately do so. Closing the thread helps the support team know which posts we need to attend and which are done (our volume is increasing so much that we really need to be as fast at this as we can).

    In the mean time, are you sure you are installing Struts Console correctly? http://www.jamesholmes.com/struts/console/help.html#eclipse, did you check with Mr. Holmes maybe about any issues?

    If we determine that this is a Struts Console/ME problem, I”m happy to reopen this thread, just let me know.

    #210422 Reply

    Tom
    Member

    Hello,

    Yes, I have been in touch with James Holmes, and he corraborates your put, as follows below, so I will be in touch with Eclipse:

    Thanks once again for the prompt, courteous and spot-on support!!!!

    Tom Starr

    —————————

    James Holmes wrote:
    > Hi Tom,
    >
    > Thanks for all the feedback. I encourage this and appreciate it. It helps
    > me resolve any outstanding issues.
    >
    > There is an outstanding issue with the SWT_Swing bridge in Eclipse under
    > Linux. As far as I know, it is an Eclipse SWT bug and not a Struts/Faces
    > Console issue. Basically Struts and Faces consoles are written in Swing and
    > Eclipse 3.0 added support for embedding Swing interfaces inside SWT. I
    > believe the XEmbeddedFrame exception you are getting has something to do
    > with incomplete/broken SWT_Swing code under Linux. The plugins seem to run
    > fine under Windows. Unfortunately I don’t have a linux machine to test
    > things.
    >
    > I have been meaning to check the Eclipse bug database to see if there is
    > already a bug open for this issue and if not open one. I just haven’t had a
    > chance yet. If you’re feeling ambitious and want to help by all means check
    > into it and let me know.

    @support-rkalla wrote:

    Tom as I understand your question this is totally a Struts Console/Eclipse question, or am I missing something? I’m going to close this thread (Because the original poster’s question was answered) and would encourage any users that can help Tom to definately do so. Closing the thread helps the support team know which posts we need to attend and which are done (our volume is increasing so much that we really need to be as fast at this as we can).

    In the mean time, are you sure you are installing Struts Console correctly? http://www.jamesholmes.com/struts/console/help.html#eclipse, did you check with Mr. Holmes maybe about any issues?

    If we determine that this is a Struts Console/ME problem, I”m happy to reopen this thread, just let me know.

    #210425 Reply

    Riyad Kalla
    Member

    Tom,
    The problem is that for the Swing/SWT bridge on Linux requires JDK 1.5, maybe you can drop Mr. Holmes a line and let him know.

    Here’s the bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=67626

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: A problem in JSF [Closed]

You must be logged in to post in the forum log in