Results 1 to 7 of 7
  1. #1
    lineker is offline Member
    Join Date
    Jul 2013
    Posts
    10
    Rep Power
    0

    Default jsf config error - MOZILLA_FIVE_HOME

    Hello,

    I am new to jsf.
    I want to open a project.
    Here are my steps

    1-) File->New->Dynamic Web Project
    2-) At opened form I select Configuration: JavaServer Faces v2.2 Project
    3-) I click on Next button 2 times and reached to form Jsf Capabilities
    4-) At articles, it says me to click on download button at the right of 1st textbox. Download starts but I got followğng error:

    Unhandled event loop exception
    No more handles [Unknown Mozilla path (MOZILLA_FIVE_HOME not set)]


    I searched google and found an offer to set following

    export MOZILLA_FIVE_HOME=/usr/lib/mozilla

    I did it, restarted eclipse but same error exists!

  2. #2
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    4,365
    Rep Power
    6

    Default Re: jsf config error - MOZILLA_FIVE_HOME

    The JSF bit is a red herring though, this is not related to JSF at all. It seems to be an Eclipse under Linux specific issue to do with an internal browser the IDE uses (probably for doing previews of web projects). I would rather try the Eclipse forums for suggestions and tech support.

    My first hit when I google the error:

    https://groups.google.com/forum/#!to...nd/5SjPTy0MmEo

    Suggests to install libwebkitgtk. How will probably depend on what distribution you have.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  3. #3
    lineker is offline Member
    Join Date
    Jul 2013
    Posts
    10
    Rep Power
    0

    Default Re: jsf config error - MOZILLA_FIVE_HOME

    Dear gimbal2,

    After writing my thread I searched from google and downloaded libwebkitgtk.
    Now I am not getting error at 4th stepped I wrote at my 1st thread.
    But now my project is not opened.
    I check

    Window -> Web Browser

    I see 3 options:


    0 Internal Web Browser
    1 Default system web browser
    2 Firefox


    0 Internal Web Browser is selected

    Tomcat is started, I wrote a simple code 'Hello World' with file name HelloWord.jsp.
    When I select 'Publish' from Tomcat nothing is displayed.

    I am writing 'http://localhost' to browser and see :

    It works!

    This is the default web page for this server.

    The web server software is running but no content has been added, yet.


    I am writing 'http://localhost:8080' to browser and see :

    HTTP Status 404 - /

    type Status report

    message /

    description The requested resource (/) is not available.
    Apache Tomcat/7.0.12


    I am writing 'http://localhost:8080/demo4/HelloWorld.jsp' to browser and see :

    type Exception report

    message

    description The server encountered an internal error () that prevented it from fulfilling this request.

    exception

    org.apache.jasper.JasperException: java.lang.NullPointerException
    org.apache.jasper.servlet.JspServletWrapper.handle JspException(JspServletWrapper.java:534)
    org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:457)
    org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:391)
    org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:334)
    javax.servlet.http.HttpServlet.service(HttpServlet .java:722)
    org.apache.tomcat.websocket.server.WsFilter.doFilt er(WsFilter.java:52)

    root cause

    java.lang.NullPointerException
    javax.faces.webapp.UIComponentClassicTagBase.setJs pId(UIComponentClassicTagBase.java:1856)
    org.apache.jsp.HelloWorld_jsp._jspx_meth_f_005fvie w_005f0(HelloWorld_jsp.java:97)
    org.apache.jsp.HelloWorld_jsp._jspService(HelloWor ld_jsp.java:71)
    org.apache.jasper.runtime.HttpJspBase.service(Http JspBase.java:70)
    javax.servlet.http.HttpServlet.service(HttpServlet .java:722)
    org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:419)
    org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:391)
    org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:334)
    javax.servlet.http.HttpServlet.service(HttpServlet .java:722)
    org.apache.tomcat.websocket.server.WsFilter.doFilt er(WsFilter.java:52)

    note The full stack trace of the root cause is available in the Apache Tomcat/7.0.12 logs.
    Apache Tomcat/7.0.12

  4. #4
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    4,365
    Rep Power
    6

    Default Re: jsf config error - MOZILLA_FIVE_HOME

    Okay, the problem was solved. Good luck figuring out your latest problem. If after investing enough personal time into it you still can't figure it out, feel free to come back and ask for help. I would start by finding the HelloWorld_jsp.java file that the stacktrace is pointing you to and looking what is on line 97 to figure out what might be causing the crash.

    I would also advise you to upgrade to a more recent version of Tomcat, your version is way too old and dozens of bugs have been fixed since then.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  5. #5
    lineker is offline Member
    Join Date
    Jul 2013
    Posts
    10
    Rep Power
    0

    Default Re: jsf config error - MOZILLA_FIVE_HOME

    Hi gimbal2,

    Thanks for support. I will only ask 1 simple question.
    Although I downloaded tomcat 7.0.50 I see 7.0.12.
    how can it be?I added 2 pictures.

    jsf config error - MOZILLA_FIVE_HOME-tomcat2.pngjsf config error - MOZILLA_FIVE_HOME-tomcat.png

  6. #6
    lineker is offline Member
    Join Date
    Jul 2013
    Posts
    10
    Rep Power
    0

    Default Re: jsf config error - MOZILLA_FIVE_HOME

    I am sending 1 more picture.

    Althugh I select 7.0.50 folder, I see 7.0.12 and bottom right which is the issue I can not explain

    jsf config error - MOZILLA_FIVE_HOME-tomcat3.png

  7. #7
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    4,365
    Rep Power
    6

    Default Re: jsf config error - MOZILLA_FIVE_HOME

    Because you did something wrong. I can't say what, I don't know what you did. It looks like you managed to install a Tomcat 7.0.12 in a directory named 7.0.50.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

Similar Threads

  1. config.ini file?
    By JavaJimme in forum JDBC
    Replies: 2
    Last Post: 05-09-2013, 05:47 PM
  2. Issues With Config??
    By Spindraft in forum New To Java
    Replies: 11
    Last Post: 11-02-2012, 04:05 AM
  3. tools4j-config
    By java software in forum Java Software
    Replies: 0
    Last Post: 02-05-2012, 06:56 PM
  4. Tomcat 5.0 and struts-config.xml
    By ajeeb in forum Advanced Java
    Replies: 1
    Last Post: 06-07-2009, 05:53 PM
  5. struts-config.xml
    By Heather in forum Web Frameworks
    Replies: 2
    Last Post: 01-17-2008, 12:23 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •