Questions tagged [servlet-container]

For questions regarding servlet-container

78 questions
61
votes
6 answers

Tomcat is web server or application server?

Is Tomcat a web server or an application server?
Suresh S
  • 727
  • 1
  • 6
  • 3
18
votes
0 answers

Servlet Container (e.g.Tomcat) vs. NIO framework (e.g. Grizzly) For RESTful applications?

What is the pros and cons of using Servlet Containers (like Apache Tomcat) in contrast with using NIO frameworks (such as Netty and Grizzly) for hosting a JAX-RS RESTful service? I'm going to develop a RESTful application using Java. Java has JAX-RS…
sajjadG
  • 2,546
  • 2
  • 30
  • 35
8
votes
1 answer

Why does servletContext.getRealPath returns null on tomcat 8?

I have the following code line: servletContext.getRealPath("resources/images/video_icon.png") Wen I run application using jetty(using maven plugin) this code line return corect value. When I run application using tomcat 8(on tomcat 7 it works) -…
gstackoverflow
  • 36,709
  • 117
  • 359
  • 710
6
votes
4 answers

How to pass deployment dependant parameters to webapp

In projects I work(ed) on, deployment parameters - such as storage path or DB login - are usually given through a parameter file, which is stored in the war file. I find that unsuitable because those values needs to be changed each time the webapp…
Juh_
  • 14,628
  • 8
  • 59
  • 92
5
votes
2 answers

jsp container vs servlet container

I am studying about servlet technology in which I heared the term servlet container and jsp container, I am getting confused that both are same or not. A jsp page is handlded by jsp container but servlet is handled by servlet container. On searching…
Debabratta Jena
  • 431
  • 1
  • 4
  • 13
4
votes
2 answers

What is the lifecycle of a jsp PageContext object - is it threadsafe?

Are jsp PageContext objects created and destroyed as part of the http request-response cycle or are they cached and reused between requests. PageContext has life-cycle methods that suggest reuse between requests. ie initialize(), release(). If they…
murungu
  • 2,090
  • 4
  • 21
  • 45
4
votes
3 answers

Can anyone explain what happens when a play! app is deployed as a war file?

Play framework doesn't support the servlet specification, nevertheless among it's deployment options there's the possibility to package the whole app in a war file and deploy it to any servlet container. From verson 1.1, play uses netty as…
opensas
  • 60,462
  • 79
  • 252
  • 386
4
votes
0 answers

Tomcat Server Architecture - Web Container vs. Servlet Container vs. Servlet Engine vs. JSP Engine

Before closing or down-voting this question, please read it. I've done a pretty big research over internet and have skimmed through 5 popular books from O'Reilly, Apress, PACKT, including both - books on Servlet API and books on Tomcat Server. I…
Giorgi Tsiklauri
  • 9,715
  • 8
  • 45
  • 66
4
votes
1 answer

Get all users and roles in Java webapp

Questions: Is there a concept of user & role that is general to Servlet Containers? If so, is there a container agnostic way to access those users and roles? If not, is there a way to access Tomcat Realm users & roles? Background: I would like to…
Sean Connolly
  • 5,692
  • 7
  • 37
  • 74
3
votes
3 answers

Would it be possible having Spring libraries in common/shared context?

We have a portal application with one Main web app context and many minor web app contexts - plugins. Currently (very simplified) the Main one has own spring libraries and plugins would have to have them also if they wanted to use spring. In…
lisak
  • 21,611
  • 40
  • 152
  • 243
3
votes
1 answer

Jersey servlet class is constructed with every request

I am working on a very simple setup of tomcat and jersey servlet. I just noticed that servlet class constructed for every request. What I have read about servlets is that they are init() once, service() multiple times and destroy() once. Why is it…
Kuldeep Yadav
  • 1,664
  • 5
  • 23
  • 41
3
votes
0 answers

Failed to process JAR found at URL [] for ServletContainerInitializers

I'm upgrading a service from Tomcat 7 -> Tomcat 8, and I'm encountering this issue just now that I'm kinda at a loss for. Here is the stack trace: SEVERE: Failed to process JAR found at URL [] for ServletContainerInitializers for context with…
Waffles
  • 349
  • 1
  • 8
  • 19
3
votes
1 answer

Netbeans will not Deploy to Tomcat

I am struggling to get my Netbeans IDE to deploy my Java Web Project to a tomcat server (I normally use Eclipse). I have setup the tomcat server (7.0.55) within Netbeans (8.0.1) and can start and stop the server. Unfortunately, when I attempt to…
Kevin Bowersox
  • 93,289
  • 19
  • 159
  • 189
3
votes
3 answers

Container-level Versioned Libraries Shared by WARs

In a Java servlet container (preferably Tomcat, but if this can be done in a different container then say so) I desire something which is theoretically possible. My question here is whether tools exist to support it, and if so what tools (or what…
mcherm
  • 23,999
  • 10
  • 44
  • 50
3
votes
1 answer

Should I run Jenkins without a servlet container in production i.e using java -jar jenkins.war

I'm new to Java and Java web applications. I'm trying to understand why I should use a Java application server like Tomcat instead of running it from command line. Should I running Jenkins without a servlet container in production i.e using java…
Sunil Khiatani
  • 337
  • 4
  • 12
1
2 3 4 5 6