java.lang.NoClassDefFoundError: javax/servlet/http/HttpServletRequest

I'm developing a servlet that receives a multipart request with content of multiple files, and I'm using apache commons file upload libraries. When I call parseRequest(request); method servlet...

What could be the cause of RejectedExecutionException

I am getting this exception on my tomcat server (+liferay) java.util.concurrent.RejectedExecutionException my class is like that : public class SingleExecutor extends ThreadPoolExecutor { ...

mysql in xampp starts and stops in five seconds

I installed xampp in windows XP. I am able to start apache and tomcat. But when I start mysql, it gets started but stops after five seconds. So, I am not able to work with PHPMyAdmin. I checked...

CreateProcess error=206, The filename or extension is too long when running main() method

I have this error in eclipse helios: Exception occurred executing command line. Cannot run program "C:\Program Files (x86)\Java\jre6\bin\javaw.exe" (in directory...

How to resolve Tomcat 6 400 Bad Request Error

Recently I have posted regarding "How can I remove the application name from a Grails application’s URL?". The solution for this was first shutdown your tomcat [from the bin directory (sh...

Deploying RichFaces 3.3.3 to Tomcat having MyFaces 2.2, PrimeFaces, OmniFaces etc

I have the following configuration ( don't get scared by the stack traces :) ) Tomcat 7.0.53 + All our jars - including MyFaces 2.2.3 / Omnifaces / PrimeFaces / etc...) are located apart of the...

MySQL JDBC Driver 5.1.33 - Time Zone Issue

Some background: I have a Java 1.6 webapp running on Tomcat 7. The database is MySQL 5.5. Previously, I was using Mysql JDBC driver 5.1.23 to connect to the DB. Everything worked. I recently...

org.springframework.web.util.NestedServletException: Request processing failed; nested exception is java.lang.NumberFormatException: null

Im trying to do full text search with spring data mongodb with all attributes of my model. this the model: @Document public class Offre { @Id private String id; @TextIndexed private String...

EC2 Instance is running very slow

I am running an EC2 Instance on Ubuntu Server machine. Tomcat and MySQL are installed and deployed java web-application on it since 1 month. It was running good with great performance for almost 1...

LoggerFactory is not a Logback LoggerContext but Logback is on the classpath. Either remove Logback or the competing implementation

I try to start my spring boot in tomcat server but when I'm adding some external jars to my project : appsert-rt.jar gf-client.jar javaee.jar it gives me that error : Exception in thread...

How to change port number for tomcat server using maven

I am writing a Rest service using spring mvc framework and maven. I am using tomcat server for now. My pom for the project is <?xml version="1.0" encoding="UTF-8"?> <project...

Caused by: org.hibernate.TransactionException: JDBC begin transaction failed:

We are getting error Caused by: org.hibernate.TransactionException: JDBC begin transaction failed: Please find below 8820042 WARN o.h.e.jdbc.spi.SqlExceptionHelper - SQL Error: 0, SQLState:...

RESTEASY003210: Could not find resource for full path : Tomcat

I am getting the following error: This is the stack trace: javax.ws.rs.NotFoundException: RESTEASY003210: Could not find resource for full path:...

Installing scoped npm packages from Artifactory

I am trying to get scoped npm packages to work with Artifactory behind Apache. I can publish a scoped package to Artifactory and it creates the following path in the npm-local repo:...

server.session.timeout in application.yml is not used when deployed to a tomcat as a war

I have this configuration in my application.yml server: contextPath: /appname session: timeout: 7200 # 2 hours in seconds This works fine when i run in Intellij IDEA, but when i...

WebSocket with embedded Tomcat is 404

I made two classes: Main class with embedded Tomcat(8.5.20) ServerEndpoint of Websocket I run the main class on IntelliJ IDEA and run this JavaScript: new WebSocket('ws://localhost:8080/ws') in...

Spring Mvc Java Could not resolve view with name 'home' in servlet with name 'dispatcher'

I have problem with my first app. I try to solve this for several hours. Any idea?? HTTP Status 500 – Internal Server Error Type Exception Report Message Could not resolve view with name 'home'...

Spring Boot - enable and configure SSL certificate

I have this certificates / files in order to enable SSL for my application: I found out that this properties are needed for Spring Boot to enable...

Field authenticationManager in *** required a bean of type 'org.springframework.security.authentication.AuthenticationManager' that could not be found

I have following class: @Configuration @EnableAuthorizationServer public class AuthServerConfig extends AuthorizationServerConfigurerAdapter { @Autowired private AuthenticationManager...

SpringBoot - HelloWorld

I want to create a simple hello world app with SpringBoot where localhost:8080/welcome.html will show us Hello World. I think I did all good but I can't see HelloWorld, just Whitelabel error...

how to slove Failed to start component [StandardEngine[Catalina].StandardHost[localhost]?

when I run my tomcat server sometimes it gets errors like Failed to start component [StandardEngine[Catalina].StandardHost[localhost] and Unable to complete the scan for annotations for web...

CORS error connecting Angular to Spring (localhost 8080 <--> localhost 4200)

I am trying to connect my Frontend in Angular 8 to my backend written in Java using Spring. My Spring backend is running on Tomcat server at localhost:8080 and Angular is open on...

Using virtual directory to host SPA and backend API on same Azure Web App

I'm trying to serve my Angular SPA and run the Spring-boot backend API on the same Azure Web app so they share the same domain. I've created a virtual directory api/ for running my backend and...

Redis spring session bean not updated

I am trying to switch my http session to redis in my spring boot application. When the first request comes to backend it's being filtered by authentication filter. One duty of this filter is to...

Updating spring boot static resources after deploying JAR file

I have developed a REST API with Spring Boot. I've used Angular for front-end and added its files to resources/static. Everything is working fine. I currently deploy my application in fat JAR...

Error Mapping Geometry type Point in PostgreSQL

Problem when mapping an entity with a geometric field Geometry Point. When accessing the table repository, using the standard function findAll() getting "null" , although there are records in the...

Spring Boot 2.5.x: Required request part 'file' is not present

I have a file uploading api which was working perfectly fine under the spring boot version 2.1.13. After upgrading the version to 2.5.2, it started to throw an exception. Looking at the...

Issue with GeoServer login with SSL

I have a tomcat apache installed with ssl on Centos and I have deployed GeoServer as webapp into tomcat…when I access GeoServer through tomcat as https://XXXX.XXXXXXXXX.com/geoserver/web/ and...

Spring Boot logging showing ?(question mark) character in log. How to fix it?

Below is the console log of spring boot logging - . ____ _ __ _ _ /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ \\/ ___)| |_)| | | | |...

Having an issue with Spring-boot's built-in logger when deploying app to tomcat server

I am building a Spring Boot application with a MongoDB database and I am running into an issue when the application is deployed to the server and starts logging. I have done some digging on the...