Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8943031
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T11:40:29+00:00 2026-06-15T11:40:29+00:00

I am new to developing on JSF (and new to web development in general)

  • 0

I am new to developing on JSF (and new to web development in general) and I am trying to put an image on a page.
I’m developing my JSF app in Eclipse and running it on Glassfish 3.1.2. I have registered Glassfish as a server in Eclipse, and running the app via Eclipse.

I use the following markup on my xhtml page:

<h:graphicImage library="images" name="logo.png"/>

I copied the image in META-INF/resources/images/logo.png .
The image does not appear on the page and when I view the page source I see the element

<img src="RES_NOT_FOUND" />

indicating that the image is not found.

When I export my app to a war file and deploy it onto Glassfish via the autodeploy folder, I get the same results – the page displays, but the image does not appear.

Can anyone advise why the image resource is not found?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T11:40:30+00:00Added an answer on June 15, 2026 at 11:40 am

    I copied the image in META-INF/resources/images/logo.png

    This location will only work if the project represents a standalone module JAR which ultimately ends up in /WEB-INF/lib of the WAR.

    This does not seem to the case in your particular case. Nothing in your question indicates that you’re indeed developing a module JAR file. Apparently you’ve placed it straight in the WAR this way. This is not right.

    You need to put the /resources folder straight in the public web content, not in the META-INF folder.

    WebContent
     |-- META-INF
     |-- WEB-INF
     |    |-- faces-config.xml
     |    `-- web.xml
     |-- resources
     |    `-- images
     |         `-- logo.png
     `-- index.xhtml
    

    See also:

    • Structure for multiple JSF projects with shared code
    • Why some resource files are put under META-INF directory

    Unrelated to the concrete problem, using images as library name does not look entirely right. Just use

    <h:graphicImage name="images/logo.png"/>
    

    See also:

    • What is the JSF resource library for and how should it be used?
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm developing new web app with Struts2 framework, eclipse, and I've mapped the db
I am developing a web application using JSF and JPA(Eclipse link). I have two
I'm developing a JSF 2.0 application on Glassfish v3 and i'm trying to handle
I'm developing a web application using Java EE6 and JSF 2.0. I have a
I'm developing a simple login/logout application with JSF 2.0, GlassFish 3, Eclipse IDE. For
i'm developing a new piece of our jdk 1.4.2, JSF + iBatis Web Application.
I am new to developing applications, and I have been trying to familiarize myself
I am new with developing web applications with Google App Engine. I wanted to
I'm developing a java EE web app using JSF with a shopping cart style
I'm new in developing iOS app. So I've recently faced a problem with localization

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.