[JAVA] What to do if you get Application with name appName is already registered. When you try to start GlassFish

--Environment - OS : Windows7 - Eclipse : Kepler Service Release 2 - GlassFish : 4.1.1

Event

When I started GlassFish in Eclipse, I got an error and couldn't start it.

Error displayed in the dialog


cannot Deploy appName
deploy is failing=Error occurred during deployment: Application with name appName is already registered. Either specify that redeployment must be forced, or redeploy the application. Or if this is a new deployment, pick a different name. Please see server.log for more details.

Cause unknown

ʻThe application named appName is already registered. Even if it says `... No matter how many times I delete the application under GlassFish and clean it, it doesn't work ...

How to respond

  1. Stop GlassFish.
  2. Get the domain.xml of someone who successfully deployed the same application.
  3. Open the domain.xml you received.
  4. Copy the following.

Received domain.xml


<applications>
    <application .......Each setting value.........>
      <abridgement>
    </application>
  </applications>
  1. Paste it in the same location in your domain.xml.
  2. Deploy and launch GlassFish.
  3. Stop GlassFish> Clean> Deploy and start.

Recommended Posts

What to do if you get Application with name appName is already registered. When you try to start GlassFish
What to do if you get an "A server is already running." Error when you try to start the rails server
What to do if you get a java.io.IOException in GlassFish
What to do when you launch an application with rails
What to do if you get angry with OpenSSL with pyenv install
[Rails] What to do if you can't get parameters with form_with
What to do if you get an error when you hit Heroku logs
What to do when is invalid because it does not start with a'-'
What to do if you get a NoClassDefFoundError when trying to run eclipse on Java9
What to do if you get a port error when docker-compose up on Mac
What to do if you cannot execute with the command "Java package name / class name"
What to do if you get an error saying "Please enter a valid value" when getting with Rails datetime_field
What to do if you try to start GlassFish and it becomes java.lang.UnsupportedClassVersionError: org / glassfish / admin / cli / AsadminMain: Unsupported major.minor version 51.0
What to do if you get a "Cannot Pull Container Error" when starting ECS ​​Fargate
[Rails] What to do if you can't get an error message with the errors method
What to do if you get a gcc error in Docker
[Rails] What to do if data is not registered in DB
What to do if you get a DISPLAY error in gym.render ()
What to do if you get a JNI shared library error when trying to build in Eclipse
What to do if the app is not created with the latest Rails version installed when rails new
What to do if you get "Changes not staged for commit:" when you git status after git add.
What to do if you install Ubuntu
[IOS] What to do when the image is filled with one color
What to do if you get a groovy warning in Thymeleaf Layout
What to do if you get an error during rails db: reset
What to do if you get an uninitialized constant Likes Controller error
[Android Studio] What to try when you get into error spitting hell
Notes on what to do when EC2 is set up with t2.micro
What to do if tomcat process remains when tomcat is stopped in eclipse
What to do if you get a MiniMagick vulnerability alert on GitHub
What to do if zip dies if there is a pom when making an executable jar with gradle
What to do if Operation not permitted is displayed when you execute a command in the terminal
What to do if you get the error Too long with no output (exceeded 10m0s) on CircleCI
What to do when you want to delete a migration file that is "NO FILE"
What to do if you get Could not locate Gemfile or .bundle / directory
What to do if you get the error message unrecognized selector send to instance "***"
What to do if you push incorrect information
What to do if you get an error on heroku rake db: migrate
What to do if you get angry if you don't have nokogiri while installing wp2txt
What to do if you get To install the missing version, run `gem install bundler: 2.1.4`
What do you use when converting to String?
What to do if ffi installation fails when launching an application in Rails
What to do if you hit the wall of Too many symbol files when uploading with App Store Connect
What to do if you get an error saying "Could not find a JavaScript runtime." When starting rails server
[Solution] What to do if you get a Docker error'ERROR: Cannot connect to the Docker daemon at unix: ///var/run/docker.sock. Is the docker daemon running?'
After installing'devise''bootstrap' of gemfile with rails, what to do when url is an error
What to do if you get a wrong number of arguments error in binding.pry
What to do if you can't get the text of an element in Selenium
What to do when Address already in use is displayed after executing rails s
What to do if you get the error Couldn't find Item without an ID
What to do if the Rails server can't start
What to do if ClassNotFoundException occurs when starting Tomcat
What to do if you accidentally create a model
ParseException: What to do when Unparseable date is reached
How to make a jar with old Hadoop (hadoop-core-0.20.2-cdh3u6) in Gradle: (What to do if you get Could not expand ZIP ..)
[Java] [Spring] What to do if you cannot Autowire with Type Mismatch after annotating Spring Security
What to do if you change the Listen Address from the settings screen with Mattermost docker
What to do if you installed Ruby with rbenv but the version does not change
[Rails Tutorial Chapter 2] What to do when you make a mistake in the column name
What to do if you get a "302" error in your controller unit test code in Rails
[Rails] What to do when the view collapses when a message is displayed with the errors method