[JAVA] When the server fails to start in Eclipse

This is the first post. It's been almost 4 months since I started Java It's a memo for myself, but I hope it helps someone.

Suddenly I couldn't do it

I was creating a simple web application in Eclipse, and I was reworking it while starting it from time to time. If you add some files and run it on the server, "Well, it works" キャプチャ.PNG In this way, the server has failed to start.

** Since the details were not detailed at all ** I tried the following while feeling sick

  1. Clean the project and server
  2. Rebuild the server
  3. Change workspace and import project
  4. Restart your PC for the time being
  5. Create another project, create it, and copy the entire source code
  6. Reinstall Tomcat

I tried it, but it didn't work at all.

What went wrong after all

The Servlet annotation was duplicated.

To be honest, I don't know why it's not good to duplicate, but when I eliminated the duplication, it worked fine. ** It may have been duplicated when copying and pasting files to create multiple Servlets with similar functions. ** **

It took me a long time because the details of the error were not detailed at all, and when I searched for this kind of problem, I couldn't find it unexpectedly (Is the search power low ??).

If there are any deficiencies in the article or if you have any suggestions, please leave a comment.

Recommended Posts

When the server fails to start in Eclipse
To debug in eclipse
When the project is not displayed in eclipse
The right way to see the tomcat source in eclipse
When the hover of Eclipse is hard to see
What to do if the Rails server can't start
How to start tomcat local server without using eclipse
How to debug the generated jar file in Eclipse
When the server does not start with rails s
Install the plugin in Eclipse
What to do when "Fail to load the JNI shared library" is displayed in Eclipse
Failed to create the Java Virtual Machine when installing Eclipse.
How to set chrony when the time shifts in CentOS7
I want to bring Tomcat to the server and start the application
How to get the log when install4j does not start
How to run JUnit in Eclipse
Pass the i18n locale to JavaScript
Response when Tomcat server startup fails
Use the Findbugs plugin in Eclipse
How to set Lombok in Eclipse
What to do when the changes in the Servlet are not reflected
How to output the value when there is an array in the array
I tried to translate the error message when executing Eclipse (Java)
[jOOQ] How to CASE WHEN in the WHERE / AND / OR clause
Install lsb_release from the command line when lsb_release fails in docker environment
How to solve the unknown error when using slf4j in Java
ngrok --https communication in local environment (exposing the server to the outside)
How to write the view when Vue is introduced in Rails?
Settings to be made when HTML or JSP is formatted in Eclipse and the layout is disappointing
Shorten the UUID to base64 in Swift.
I summarized the points to note when using resources and resources in combination
[Using Eclipse] Precautions when moving the workspace being created to another PC
Java reference to understand in the figure
How to include Spring Tool in Eclipse 4.6.3?
Precautions when specifying the URL in render
The first thing to do when you want to be happy with Heroku on GitHub with Eclipse in Java
How to find the total number of pages when paging in Java
How to get the date in java
How to constrain the action of the transition destination when not logged in
How to not start Flyway when running unit tests in Spring Boot
I want to get the IP address when connecting to Wi-Fi in Java
I want to display an error message when registering in the database
What to do if tomcat process remains when tomcat is stopped in eclipse
[Ruby] How to prevent errors when nil is included in the operation
How to reference a column when overriding the column name method in ActiveRecord
[For beginners] How to debug in Eclipse
What to do if you get an "A server is already running." Error when you try to start the rails server
[Java] [Microsoft] Things to be aware of when including the JDBC driver for SQL Server in one jar
What to do when the value becomes null in the second getSubmittedValue () in JSF Validator
What to do when rails db: seed does not reflect in the database
[Grails] Error occurred running What to do when the Grails CLI does not start
How to set when "The constructor Empty () is not visible" occurs in junit
A note when I'm addicted to using Docker Hub Vault in server mode
What to do if ffi installation fails when launching an application in Rails
I wanted to start the AP server and debug with just the Maven command
Two ways to start a thread in Java + @
[JavaFX] How to write Eclipse permissions in build.gradle
Migration from Eclipse to IntelliJ (on the way)
How to color code console output in Eclipse
I tried to organize the session in Rails
3 ways to import the library in Android Studio