Questions tagged [servlet-container]

For questions regarding servlet-container

78 questions
1
vote
1 answer

Unable to use beans with jsf 2.3 in servlet container

I started to test JSF 2.3 a short time ago. But I can't get one of the most important features to work. The use of ManagedBeans. I tried a lot, using different servlet containers (Tomcat 8&9, Jetty 9.2).But nothing helped. Hope somebody can see my…
spellsleeper
  • 61
  • 1
  • 7
1
vote
1 answer

ServletContainerInitializer Not Working

package sampleJSN; import java.io.IOException; import java.util.Set; import javax.servlet.ServletConfig; import javax.servlet.ServletContainerInitializer; import javax.servlet.ServletContext; import javax.servlet.ServletException; import…
1
vote
1 answer

Confused about servlet mapping

I configured a servlet as the default servlet in web.xml. myServlet / When I requested for JSP like requesting http://localhost:8080/abc.jsp, I got…
RichardMZ
  • 100
  • 7
1
vote
1 answer

Winstone vs Tomcat

Could someone help me understand or rather provide a comparison between using winstone vs tomcat from both functionality perspective as well as performance perspective.
1
vote
1 answer

Can Jersey's ServletContainer init method be overridden?

Writing a Web Service in Java (Jersey/Maven). I'd like to construct a class that builds a number of databases before the application is deployed - as all of its resources depend on those databases. Although there is a textual representation of the…
user3113547
1
vote
0 answers

What components in Tomcat architecture avoid scalability?

I need to know what components in Tomcat servlet container avoids scalability. In Tomcat clustering, what components(Server, Engine, etc.) in it's architecture have problem in terms of scalability? I hope I could explain my question clearly.
1
vote
0 answers

Spring mvc / Tomcat Servlet Container: multi threading initialization (and who spawns them?)

I have tried to look online, and found only few places that says spring is actually multi-threaded. Even those, seems to hint it simply uses a multi-threaded servlet container (as far as I understood, the single-threaded servlet containers are…
saw
  • 165
  • 1
  • 11
1
vote
4 answers

doGet or doPost method invocation

How does the servlet container know whether to call doGet or doPost method. When I make a get request doGet is called, When I make a post request doPost is called , but where is the logic to decide this .
Count
  • 1,395
  • 2
  • 19
  • 40
1
vote
1 answer

how does Tomcat serve different applications with in the same servlet container?

My question is based on understanding of how webserver - servlet container interacts. So please correct me if my basic understanding is wrong. consider a request coming in: www.bank.com/credit-cards. As soon as the Tomcat Server gets the request,…
brain storm
  • 30,124
  • 69
  • 225
  • 393
1
vote
0 answers

Deploy idea web module on jetty

I deleted the content of the project's artifacts folder and now the server throws a configuration error: deployment source 'Hello World IDEA JETTY:war exploded2' is not valid How can I redeploy the web server module onto the server?
AlikElzin-kilaka
  • 34,335
  • 35
  • 194
  • 277
1
vote
1 answer

Run a command via Runtime.exec from java code inside Web Archive (WAR deployed in Jetty)

My PC in running under Windows7 64 bit, and I have an utility (.exe, very legacy [~WinXP age], no sources available) that I'd like to invoke from java code deployed into Jetty. If I launch utility from console I get no errors. If I launch utility…
Nikolai Shevchenko
  • 7,083
  • 8
  • 33
  • 42
1
vote
2 answers

Where to invoke ExecutorService.shutdown() in web application

I wonder what is correct place to shutdown ExecutorService in a web application? According to docs ExecutorService should be shutdown, but what is correct place in the code to do that in a web application? UPDATE: Sorry for unclarity. Let's…
1
vote
1 answer

Programmatically get error-page from web.xml

I often have redirects like r.sendRedirect("error.jsp"); Anyway the web.xml already defines error-pages. javax.servlet.ServletException /error.jsp How can I…
Grim
  • 1,938
  • 10
  • 56
  • 123
1
vote
1 answer

Dropwizard/Jersey - switch from InMemoryTestContainer to Grizzly

Background: According to this issue http://java.net/jira/browse/JERSEY-623, InMemoryTestContainer won't be able to support resource with injectable constructor. So if you have, say, HttpServletRequest injected in your resource class, you will need…
Shengjie
  • 12,336
  • 29
  • 98
  • 139
1
vote
3 answers

how to specify the servlet path in the servlet itself

I am having this question can we specify the servlet path in the servlet itself something like (path = /myServlet) public MyNormalServlet extends HttpServlet....{ . . . } So If call from browser say "http://localhost:8080/myServlet" this servlet of…
Mahesh More
  • 919
  • 2
  • 8
  • 20