Questions tagged [web-fragment]

Web fragments, a new feature of Servlet 3.0 technology, solves this problem by modularizing deployment descriptors.

Web fragments, a new feature of Servlet 3.0 technology, solves this problem by modularizing deployment descriptors. A web fragment can be considered a logical segment of a web.xml file. There can be multiple web fragments, each representing a logical segment, and the set of web fragments can be viewed as constituting an entire web.xml file.

Docs: http://www.oracle.com/technetwork/articles/javaee/javaee6overview-part2-136353.html#webfrags

36 questions
1
vote
1 answer

Eclipse says: Web Fragment Module 3.0 requires Java 1.6 or newer, but my project facets are not set

I'm working on a java maven project and eclipse complains with this message on the title. But if I look at my project facets, they're not checked, as you can see on this image: Also on my pom.xml, I see nothing about this configuration:
Henrique Ordine
  • 3,337
  • 4
  • 44
  • 70
0
votes
0 answers

How to add web fragment project which has filter as dependency to spring boot project

How and where to configure metadata-complete =false and absolute-ordering values in springboot since it doesnot have web.xml
sam
  • 1
  • 1
0
votes
0 answers

Tomcat web-fragment_3_0.xsd parsing error

I have recently shifted my application to use rest calls instead of ESB. After changes war is giving error during start up. org.apache.tomcat.util.digester.Digester.warning Parse Warning Error at line 25 column 19: schema_reference.4: Failed to read…
SSharma2203
  • 217
  • 4
  • 18
0
votes
0 answers

ServletContainerInitializer ignored by Tomee because of jar name and web-fragment "ordering"

The library I'm maintaining contains a implementation of ServletContainerInitializer which is declared in META-INF/services/javax.servlet.ServletContainerInitializer file. This library is used by web applications running on Tomee 8 (Apache Tomcat…
Simon Hill
  • 66
  • 5
0
votes
1 answer

JNDI Resources in web-fragment

I'm working on a web-fragment to isolate a specialized process needed in only one part of our overall production process. I'm trying to define a JNDI resource specific to the web-fragment, but I keep running into a brick wall. The application is…
Paul Stoner
  • 1,359
  • 21
  • 44
0
votes
1 answer

Eclipse WTP shows "Fragment was not found at expected path" for included file from another maven project

I have a simple maven web project composed of two modules (full source code at https://github.com/0xfthul/bug): bug-fragment: a web fragment project bug-war: a war that tries to include one file from the fragment in index.jsp Eclipse is showing…
0xfthul
  • 23
  • 3
0
votes
0 answers

Spring-MVC - Load static resource from web-jar causes exception in WebSphere Liberty

We are porting a JEE-enterprise application from WebSphere to Liberty 19.0.0.6. For sharing static resources (PNG image here) we use a web-fragment jar-library with the images located in META-INF/resources package. Our UI uses Spring-MVC with the…
TSCHAB
  • 1
  • 3
0
votes
1 answer

Servlet 3.0 web-fragment serve static content

I have a web-fragment containing swagger-ui used by many web projects (WARs). The static content of the swagger-ui resides in META-INF/resources. Some of the web projects only provide a REST-API and have no own UI. For this kind of projects the…
DaRich
  • 937
  • 8
  • 13
0
votes
1 answer

Given a JAR file, allegedly contains web server, how do I deploy it?

I've been handed a JAR file, told it contains a web application, and instructed to deploy it. I'm familiar with java as a language, but I have next to no experience with its web ecosystem. Trying to run it as an executable, I find out it has no main…
user2085282
  • 1,077
  • 1
  • 8
  • 16
0
votes
1 answer

Servlet 3 web fragments - not serving static content from folder in META-INF

I am having trouble deciding if I don't correctly understand the Servlet 3.0 spec or if there is a bug in Tomcat. Here is my situation. I have a web application that includes a jar project. The web application defines a set of REST endpoints using…
chriso153
  • 23
  • 5
0
votes
0 answers

Hot redeploy files in web fragment project in IntelliJ

I have a project with different modules. In fact, I have 4 modules: presentation-jsf repository-oracle service webapp See the image below: I am developing a library to use by another teams of the company I am working at. For that reason, we can…
ferran87
  • 635
  • 1
  • 6
  • 17
0
votes
1 answer

ordering in Web-fragment.xml

I am preparing for OCEJWCD. And I came accorss this question. And no idea what will be the answer.I thought the correct answer is that the order can not be predicted. Which is wrong.Can someone plzz help me to understand it, Q: In an application…
Jeena
  • 309
  • 1
  • 5
  • 14
0
votes
1 answer

Wildfly Clustering Does not work with web-fragment.xml

I am trying to setup a clustering environment with Wildfly-10. I have a web-fragment.xml for general purpose configuration and a web.xml for project specific configuration. With these configurations, clustering does not work. But if I delete…
xxlali
  • 996
  • 2
  • 15
  • 43
0
votes
1 answer

Multiple web fragments with the same res-ref-name

What would happen if I have multiple web-fragments which declare resource-refs with the same res-ref-name in case of: The resource-refs have the same res-type The resource-refs have different res-type Also what would happen if there is a…
Svetlin Zarev
  • 14,713
  • 4
  • 53
  • 82
0
votes
0 answers

How to pack jar dependecies in JavaEE web-fragment project?

I have a web-fragment project. The output of this project is a JAR FILE called fragment.jar. This fragment.jar is then copied into my MAIN PROJECT's WEB-INF/lib. Of course, output of the main project called is a war file called web.war. The…
user1930502