For questions regarding servlet-container
Questions tagged [servlet-container]
78 questions
0
votes
1 answer
Serve files from a folder different of context directory in a servlet container
I got a situation that I must serve files from different folders then the one of the context my web app is running. As an example, suppose my web app is running in a servlet context on "/opt/tomcat/webapps/ROOT/" and I must serve files existent in…

Berne
- 617
- 1
- 7
- 17
0
votes
0 answers
Getting exception while doing super.init(webconfig) from init(webconfig) within class extends servletcontainer in karaf 4.4.3
we were upgrading to karaf 4.4.3. During karaf bundles startup, Getting exception while doing super.init(webconfig) from init(webconfig) within class extends servletcontainer in karaf 4.4.3. please help.
```
228 java.lang.IllegalStateException: No…

Ganesh ram
- 11
- 4
0
votes
2 answers
Difference between servletcontainer.init(webconfig) vs servletcontainer.init() vs servletcontainer.init(filterconfig)
Want to know the Difference between servletcontainer.init(webconfig) vs servletcontainer.init() vs servletcontainer.init(filterconfig) in prespective of pax web whiteboard in karaf OSGI
pls someone explain this.

Ganesh ram
- 11
- 4
0
votes
1 answer
Servletcontainer.init() not invoked after upgrade karaf from 4.3.7 to 4..4.3
`We were upgrading from karaf 4.3.7 to 4.4.3
we were facing an issue like servletcontainer.init(webconfig) not invoked after upgraded to 4.4.3 .
our class is below,
`import static…

Ganesh ram
- 11
- 4
0
votes
1 answer
Save data associated with webapplication without database
My task is to save and later read some arbitrary data in file inside webaplication. I cannot use hardcoded system paths, since there may be multiple instances of my webapp fired up on the same server. I have some limitations and cannot use database…

Eugene Loy
- 12,224
- 8
- 53
- 79
0
votes
0 answers
ServletContext: difference between interface vs implementation?
ServletContext interface docs:
The path must begin with a / and is interpreted as relative to the current context root, or relative to the /META-INF/resources directory of a JAR file inside the web application's /WEB-INF/lib directory. This method…

Blocked
- 340
- 2
- 5
- 20
0
votes
0 answers
How to Restrict access to web-inf folder from accessing outside without using security-constraint
My Web application structure is
> App1.war
> -WEB-INF
> - web.xml
> - classes
> - config etc.
and due to some other functionality implementation, we have added a filter
…

unknown
- 643
- 4
- 15
- 38
0
votes
0 answers
Jersey/JAX-RS WriterInterceptor and HTTP Status
I have a problem with Jersey, I am writing a WriterInterceptor which should save the answer to the database, the problem is that I cannot retrieve the httpstatus, to avoid saving the answer in case of an error, I tried @Context HttpServletResponse…

Oldboy
- 43
- 1
- 5
0
votes
2 answers
How java web application are bundled as jar
I know for any restful web service the packaging should be in .war format so that it can be delpoyed to any servlet container eg: tomcat or jetty. Currently i am working in some project and I cannot see any file with a .war extensio. All i see is a…

Aki
- 55
- 1
- 1
- 8
0
votes
0 answers
How to access deployed BrowserRouter used react project after depolying into tomcat server
I would like to use BrowserRouter for creating multi-page react appplication where I can access different modules with different router names.
I can switch between Home and About modules with http://localhost:3000/home and…

HimaaS
- 413
- 3
- 6
- 13
0
votes
0 answers
Error on starting standalone Jetty server with CDI and Jax-RS
I am trying to get the following project running in a standalone Jetty instance:
https://github.com/stilkov/jetty-weld-jersey-sample
Running the mentioned Maven goal jetty:run works as expected.
I am using Jetty_9_4_28_v20200408 (the mentioned…

user3058865
- 460
- 1
- 4
- 10
0
votes
1 answer
Get the error WFLYCTL0013: Operation ("deploy") failed because the class org.glassfish.jersey.servlet.ServletContainer can not be found
I hope someone can help me with my problem.
Currently I'm trying to deploy a Java EE project on a Wildfly 16 server. However, deployment aborts with the following error message:
ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC000001:…

André K
- 41
- 9
0
votes
0 answers
Getting HTTP 500 error for ServletContainer class not found in Rest API using Postman
I am very new to using Restful web services. I am trying to run a simple Restful API from Eclipse using Postman from Tutorialspoint UserManagement example.
I have created a WAR file using Eclipse, and to deploy war file into servlet container,…

Roy
- 73
- 2
- 8
0
votes
0 answers
Understanding the whole process of a "web transaction"
I was doing some researches in order to understand the hole image of a "web transaction": the request from client to a server then the response from the server to the client.
The technologies concerned by my reads are : servlets container, servlet,…

ziMtyth
- 1,008
- 16
- 32
0
votes
0 answers
Deploy a war file inside the embedded servlet container in a Spring Boot web application
I want to deploy one or more already existing war files into the embedded servlet container in the Spring Boot project.
Specifically, I want to fire up both the hawtio and the ActiveMQ Web Console wars inside the same application, in addition to…

stolsvik
- 5,253
- 7
- 43
- 52