Quantcast
Channel: Active questions tagged servlets - Stack Overflow
Browsing all 714 articles
Browse latest View live
↧

How to decode a string when the charset is different between client and...

I am using tomcat + jsp model1, and the encoding of the server is UTF-8.And I'm getting two requests POST x-www-form-urlencoded, GET to a specific jsp path, and I'm sending the parameters encoded in...

View Article


BeanAlreadyExistsException - Oracle WebLogic

I deployed an app on my web server and now I am trying to deply another one on the web server and I am getting a BeanAlreadyExistsException. I thought it might be due to the fact that I have two beans...

View Article


how to add primefaces to my jsp and servlets nav bar

I have almost all my project in jsp and servlets, and now I would like to add a page which is in primefaces to my navigation bar...and whatever I have tried, it doesn't add it to my project...am I...

View Article

Can we response to to the browser by a servlet before forwarding request to...

public class ForwardServlet extends HttpServlet { @Override protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {...

View Article

Error Running Servlet on Tomcat 9: Seeking Solutions

Http not found?[enter image description here](https://i.stack.imgur.com/7iudz.png)I don't see any errors, but it keeps saying not found when run it on tomcat 9 server, you can see my project folder...

View Article


Getting "java.lang.ClassNotFoundException" for Servlet Class in Apache Tomcat...

HTTP Status 500 – Internal Server ErrorType Exception ReportMessage Error instantiating servlet class [com.demo.servletprg.MyServlet]Description The server encountered an unexpected condition that...

View Article

problem in running servlet by click on button in jsp file using json parameters

When I click on the button in index.jsp, the servlet dosen't run.(Nothing actually happens)I installed jdk17 and intellij and tomcat9.All thing I do is: When I run the project in chrome the address is...

View Article

Image may be NSFW.
Clik here to view.

BundleContext's getServiceReference of an HttpService returns null

I'm creating a web service with Java but already at the very start am having problems.In the line of code below where I ask the context to get me the ServiceReference, it returns null.import...

View Article


Image not displayed on JSP page

I have a simple JSP page that has one image that is part of the JSP page but that image is not displayed when I view the webpage. I can view the webpage but it does not include the image. I have my img...

View Article


how to know that file download is completed or initiated in java servlet to...

this Question is to sync the loading image and download initiated or completed because some report download takes time to load due to too much data because it need to be run in loop until it write the...

View Article

Image may be NSFW.
Clik here to view.

Tomcat and Java Servlet Getting 404

Issue:I am trying use the html form to make a get request to my java servlet but I am getting a 404 error.I have tried changing the path from the action tag to /Main and /Assignment9Test/Main and...

View Article

Image may be NSFW.
Clik here to view.

My class files inside WEB-INF/classes gets deleted when i load my webapp in...

I'm using Tomcat 5, when I start the server and load my app from webapp folder, my JSP loads but class files inside the WEB-INF/classes is being erased automatically and when I load the class files it...

View Article

Why does my servlet return 403 in Wildfly but 200 in tomcat? [duplicate]

I've created what I think is the simplest war possible, and when I deploy it to tomcat 9.0.43, it works fine. But I can't get it to work with Wildfly 32.0.0.1 beta.I'm using annotated Servlets, so my...

View Article


Unit Testing Unit test Servlet with Mockito: Mocked Behavior Not Executing

I'm encountering an issue while writing a unit test for my servlet using Mockito. I'm attempting to mock the behavior of a Business Object (BO) object using doAnswer to set a test value to a Value...

View Article

Tomcat v9.0 server is failing to start on eclipse EE

Tomcat 9.0 server is failing to start if I create a servlet and servlet mapping in web.xml file, If I removed the servlet and servlet mapping on web.xml file server is running ?Why that happens ?I have...

View Article


Why reactive gateway in spring boot is not supported to external tomcat...

2024-04-27T20:19:27.808+05:30 INFO 4868 --- [GATEWAY] [ main] com.hajeri.gateway.GatewayApplication : Starting GatewayApplication using Java 21.0.1 with PID 4868 (C:\Users\Admin\Desktop\Deploy Hajeri...

View Article

Invalid Communication between Servlet and Corba [duplicate]

i get this error when i try to add some data in the buffer of the corba server ERROR : org.omg.CORBA.ORBPackage.InvalidName: IDL:omg.org/CORBA/ORB/InvalidName:1.0 org.omg.CORBA.ORBPackage.InvalidName:...

View Article


I'm trying to upgrade my tomcat from 7 to tomcat 10 with open jdk 14. My...

I've included all the jars which are necessary for jakarta and compiled my files with latest jars. Still getting classcastexception. unable to load dispatcher servlet.trying to upgrade from tomcat 7 to...

View Article

ServletContext matched by more than 1 path

The javadoc for ServletContext.getContextPath() says thatIt is possible that a servlet container may match a context by more than one context path.I was trying to find any explanation how this could...

View Article

Access UriInfo from a HttpServlet [duplicate]

I need to acess the UriInfo from my HttpServlet, but whenever I try to inject it, the object is null.Is there a way to access it from a HttpServlet? Am I missing something?import...

View Article
Browsing all 714 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>