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
0
votes
0 answers

Embedded jetty not reading web-fragment.xml for IntegrationTest

I have one jar file with set of Servlets, Filters and a web-fragment.xml file defined inside META-INF folder. I'm including this jar in my second war project. The war project has the web.xml with metadata-complete=false, and I'm using gradle to…
Haridas N
  • 529
  • 5
  • 20
0
votes
1 answer

is it possible to add jar(with web-fragment.xml) at runtime(means after startup)

I want to add pluggable jar i.e. the jar with web-fragment.xml after server is up-and-running. and perform the scanning of this jar and initialize servlet components defined in web-fragment.xml of newly added jar. If this is not possible please…
himukr
  • 91
  • 1
  • 6
0
votes
1 answer

Cannot load static resources when using web fragments and spring

I have a main spring hello webapp, which has an include in the web.xml to include a web-fragment. I can't seem to get access tot he static resources in the jar, im using tomcat 7, servlet 3, Spring 3.2.3.RELEASE and my jar structure is…
user1555190
  • 2,803
  • 8
  • 47
  • 80
0
votes
1 answer

Jetty adding web fragment to web context programmatically

I've started to use embedded Jetty Server to start some 3rd-party WAR. So I use WebAppContext: Server server = new Server(port); WebAppContext ctx = new…
Mark Bramnik
  • 39,963
  • 4
  • 57
  • 97
0
votes
1 answer

CDI and web fragments: not working without beans.xml

I have three maven projects: core (packagetype=JAR) with src/main/resources/beans.xml bean-discovery-mode="annotated" webfragment (packagetype=JAR) with src/main/resources/beans.xml bean-discovery-mode="annotated" webproject (packagetype=WAR) with…
Ginkgochris
  • 455
  • 4
  • 25
0
votes
1 answer

How to Deploy and Debug "Web Fragment Project" in eclipse (WTP) , having a server running a "closed" WAR file

In my development team, we have framework and business developers. The framework is a JEE6 webapp already, and business developers uses the framework to build their web pages via web interface provided by the framework and to intermediate the calls…
1 2
3