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 8525091
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T07:52:28+00:00 2026-06-11T07:52:28+00:00

In our previous Seam 2 projects we had the following part in web.xml to

  • 0

In our previous Seam 2 projects we had the following part in web.xml to care for loading static resources such as css or img:

  <servlet>
    <servlet-name>Seam Resource Servlet</servlet-name>
    <servlet-class>org.jboss.seam.servlet.SeamResourceServlet</servlet-class>
  </servlet>
  <servlet-mapping>
    <servlet-name>Seam Resource Servlet</servlet-name>
    <url-pattern>/seam/resource/*</url-pattern>
  </servlet-mapping>

What is the replacement for that when using CDI + JSF2? Can it be done with standard Java EE 6 mechanism or do we need a CDI extension or any other additional library?

PS: The project is maven based and deployed on a tomcat 7, so if some extensions are needed, I’ll be very happy about according dependencies.

  • 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-11T07:52:30+00:00Added an answer on June 11, 2026 at 7:52 am

    Seam 2 was never been part of Java EE 5, so there’s no means of a “replacement” in Java EE 6. You probably need to look at Seam 3 or whatever successor Seam 2 has.

    “Static resources” are in a standard servlet container already fully automatically and transparently handled by the container’s builtin default servlet. Just drop the files directly in the public webcontent folder (there where you also put your JSP/Facelets files).

    JSF2 has however a new resource handling mechanism which allows automatic resource inclusion using @ResourceDependency and so on in components/renderers, but this is already taken into account by the FacesServlet itself and the new JSF 2.0 <h:head> and <h:body> components. I’m however not sure if that’s related to whatever Seam 2 did, I’ve never really used Seam.

    CDI has very little to do with this all, it’s a bean management API, not a static resource management API.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I currently had a problem similar to this previous question: Why would our Java
In our *EntryPoint.gwt.xml we include the following to get Cross-Site support: <add-linker name=xs />
Our previous webmaster set up this site and the caching he set up works
Brief backstory, our previous developer used ASIHTTPRequest to make POST requests and retrieve data
can anyone help. I have recently moved servers, its IIS7 rather that our previous
At my previous company, we created our RIAs using Flex with graphical assets created
In C# our maintainance project, we observered that the previous company has a root
I am trying to delete an old user from our perforce installation. A previous
Our users return to our web site from an external site, to a URL
Our web app uses SystemPropertyPlaceholder to load property files depending on the value of

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.