For questions regarding servlet-container
Questions tagged [servlet-container]
78 questions
3
votes
2 answers
what are differences between the non-Java EE 5 servlet and Java EE 5 servlet containers?
I have been going through the JAX-WS RI documentation and came across the terms non-Java EE 5 servlet and Java EE 5 servlet containers.
The documentation/samples discusses how to use JAX-WS in a non-Java EE 5 servlet container using a proprietary…

user68883
- 828
- 1
- 10
- 26
3
votes
2 answers
Servlet context and ServletConfig are the interfaces,How web container implements these?
As far as I know servletContext & servletConfig are two interfaces that are used to pass initialization parameters to the servlet using the web.xml deployment descriptor
1.servletContext
ServletConfigTest
…

Skabdus
- 220
- 3
- 13
3
votes
2 answers
ServletContext getRealPath method - what is a virtual path?
I am reading the documentation for the getRealPath(String s) and I became confused when I read this statement
Returns a String containing the real path for a given virtual path. For example, the path /index.html returns the absolute file path on…

KyelJmD
- 4,682
- 9
- 54
- 77
2
votes
3 answers
Is using Thread.sleep() advisable in the below scenario
I have a webservice which calls this method
public void process(Incoming incoming) {
// code to persist data
...
Thread.sleep(20000);
// check persisted data and if status != CANCELLED then process
}
Requirement is that I have to wait…

David John
- 179
- 1
- 11
2
votes
0 answers
What are servletcontainer specific libraries?
In posts like https://stackoverflow.com/a/4076706/5467214 or https://stackoverflow.com/a/8743562/5467214 I keep reading about "servletcontainer specific libraries", that shouldn't be included manually in JavaEE projects, if I understood it…

scholt
- 180
- 4
- 19
2
votes
2 answers
What server does jhipster use?
I know you can build a WAR file to deploy to an application server, but what kind of server is created when you run the main Application class?
/**
* Main method, used to run the application.
*/
public static void main(String[] args) throws…

uylmz
- 1,480
- 2
- 23
- 44
2
votes
0 answers
How to continue serving requests in Java Servlet container while load balancer removes the server from the pool based on a health check?
I want to continue serving requests while my load balancer removes the server from the pool based on a health check. If I know the server is being shut down, I can change the health check to unhealthy and give it time to be removed without dropping…

devth
- 2,738
- 4
- 31
- 51
2
votes
1 answer
Web server with REST api - Spring Boot - Mulitple servlet containers
In my architecture, I am using spring as both a web server, serving static html and javascript pages, and as a rest api.
Currently, my spring app listens on port 8080. Even though I can easily change it to port 80, I think the api and the web server…

saw
- 165
- 1
- 11
2
votes
1 answer
Why should I use cookies other than for storing a session id?
For HTTP as far as I understand are two ways to store data belonging to a client and bring some kind of state into a otherwise stateless Browser-webcontainer-connection: 1) Data stored in cookies on the client-side - or 2) A session ID stored in a…

Kris
- 4,595
- 7
- 32
- 50
2
votes
1 answer
Get All ServletContexts loaded in JVM (servlet-container)
Given a servlet-container (JBoss, Tomcat, Jetty, etc) is it possible to find all servletcontexts (or servletconfigs) currently instantiated by the JVM or more specifically the servlet-container? If so, how?

dsutherland
- 792
- 6
- 15
2
votes
2 answers
Serving static resources at /static/* context while keeping my servlet handling /* context
My problem is simple. I want to have my static resources served at /static/* context, but my specific servlet serving /* context. Since /static/* is a subset of /* it does not work.
My web.xml looks like this:

Archer
- 5,073
- 8
- 50
- 96
1
vote
1 answer
How is client-side rendering done in Eclipse RAP?
I read about Eclipse RAP and understood what a "servlet container" is: some kind of a java applet on a server instead of a client.
I don't understand how RAP applications are rendered on browsers... are they pure Javascript, HTML5, Java applets, or…

Marco A.
- 43,032
- 26
- 132
- 246
1
vote
1 answer
Tomcat persisting sessions problem with generated classes
We have several generated classes, these classes will be regenerated in every startup phase of our web-application. Tomcat has the support for persisting sessions, so when tomcat shutsdown or restarts the classes are persisted.
Our generated classes…

Christopher Klewes
- 11,181
- 18
- 74
- 102
1
vote
2 answers
Loading derby.war (derby servlet server) before other web applications in Tomcat
Apache Derby has an option to run its "Network Server" as a web application in a servlet container (derby.war).
The problem is then how to deploy other applications that depend on derby in the same container to load after derby loads (preferable in…

Adam Gent
- 47,843
- 23
- 153
- 203
1
vote
2 answers
aws serverless spring boot set up is failing
here is my setup below,
@SpringBootApplication
@ComponentScan(basePackages = "com.amazonaws.serverless.sample.springboot.controller")
public class Application extends SpringBootServletInitializer {
public static void main(String[] args) {
…

Farhan
- 105
- 1
- 10