Questions tagged [servlet-3.0]

Java Servlets 3.0 is a new API that supports extensibility/pluggability, Ease of Development (EoD) using the newer language features, Async and Comet support, Security, and other features being as part of the revision for Java EE 6.

Version 3 of the servlet API adds the following to version 2.5

  • async response
  • multipart support
  • annotation configuration (no web.xml)
  • generics in the API
  • resources (including JSPs) in JARs under META-INF/resources

Links

941 questions
5
votes
1 answer

Programmatic Servlet 3.0 JSP jsp-property-group configuration

I am able to create servlets and filters in my ServletContainerInitializer, but is it possible to translate this last remaining piece of an old web.xml into Servlet 3.0 programmatic configuration?
rustyx
  • 80,671
  • 25
  • 200
  • 267
5
votes
3 answers

Primefaces FileUpload not working in Spring Boot

I'm running my JSF project launching it with Spring Boot and taking advantage of the whole Spring environment. The configuration is: Mojarra 2.2.8 + Primefaces 5.1 + Spring Boot 1.1.9. That's how my POM.xml file looks like:
Aritz
  • 30,971
  • 16
  • 136
  • 217
5
votes
1 answer

Spring & Servlet 3.0 Java Configuration Mess

Context: I switched from XML based to Java based Spring configuration. My application has a JSP based web layer, Spring MVC, Spring Security and Hibernate as persistence provider. I managed to separate the whole XML configuration in different config…
nyxz
  • 6,918
  • 9
  • 54
  • 67
5
votes
1 answer

Is there any short way to add multiple items

I am adding data to table. Table looks like this: I am getting multiple data from my JSP page that should be entered uniquely each time. Means in table prod_id and sc_id will remain same for this request. Suppose I am getting 3 items then I have to…
user3145373 ツ
  • 7,858
  • 6
  • 43
  • 62
5
votes
0 answers

Could not create new instance of class org.jboss.arquillian.test.impl.EventTestRunnerAdaptor

I am trying to run a test class and facing some problem related to arquillian. Here is the exception what I am getting. java.lang.RuntimeException: Could not create new instance of class org.jboss.arquillian.test.impl.EventTestRunnerAdaptor at…
5
votes
1 answer

Multipart Upload Servlet 3.0 - temporary files not deleting

I have an upload servlet that is working great but leaves it's temporary files lying around. I am trying to use the part.delete() to clean them up as I go, but they are not deleting. The docs say the container will delete them when it does GC. But…
PrecisionPete
  • 3,139
  • 5
  • 33
  • 52
5
votes
2 answers

Disable @WebFilter (embedded in dependency jar)

Is there a way to disable a embedded Servlet Filter? My project has a dependency jar that contains (inside the jar) a @WebFilter mapped to "/*". I need the jar (it has a lot of commons class of my company), but this new project does not need this…
ethanxyz_0
  • 713
  • 12
  • 37
5
votes
1 answer

Call to an asynchronous servlet on WebSphere 8 results in AsyncIllegalStateException

I'm getting the following exception while calling a servlet: com.ibm.ws.webcontainer.async.AsyncIllegalStateException: SRVE8010E: The current request does not support asynchronous servlet processing. The servlet looks like this: public class…
Maxim Suponya
  • 1,419
  • 2
  • 20
  • 43
5
votes
1 answer

Servlet 3: Async - cant PUSH partial response

I am using Tomcat 7. When my asynchronous servlet tries to PUSH partial response to client at different intervals, it does not work.. The response gets flushed only after the whole response is ready. How to PUSH partial response? Here is my…
5
votes
1 answer

Dynamic columns with richfaces 4

I need dynamic number of columns. Richfaces supplies it with in richfaces 3.3.3-final but for Richfaces 4 they seem to recommend . c:forEach I can't get it to work properly.Since I can't depend on the var from the datatable…
Karl Kildén
  • 2,415
  • 22
  • 34
5
votes
1 answer

struts2 Async Action

Looking to use Struts2 with Serlvet 3.0 Async support. My first approach was to just handle to writing to the outputstream in the action and returning null. This however returns with a 404 "resource not available". I am attempting to adapt a…
speajus
  • 93
  • 1
  • 6
5
votes
2 answers

AsyncContext and I/O error handling (when peer disconnects)

I'm implementing Server-Sent Events using Servlet 3.0's javax.servlet.AsyncContext interface. However I can't understand how I should handle I/O errors like peer disconnect. For a given AsyncContext ac = request.startAsync(), I can call…
Artyom
  • 31,019
  • 21
  • 127
  • 215
5
votes
1 answer

Servlet 3.0 async Supported disadvantages

In my application I have a homegrown framework which maps all the requests to a central ControllerServlet (nothing fancy, it has the basic functionality of almost any framework). I have to implement a Publisher-Subscriber messaging exchange feature…
Ionut
  • 2,788
  • 6
  • 29
  • 46
4
votes
4 answers

Parse JSON from GET response when headers are present

I am trying to json_decode the response I receive from a GET request to my server-side API but I am getting an empty string back. Would I be right in assuming that because the response contains all the header info that the JSON decoder cant cope?…
travega
  • 8,284
  • 16
  • 63
  • 91
4
votes
1 answer

@WebServlet with GlassFish server

The @WebServlet annotation has also this keys: displayName, smallIcon, largeIcon, description but after setting these attributes where can I get or see them?
xdevel2000
  • 20,780
  • 41
  • 129
  • 196