Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8794923
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T23:19:02+00:00 2026-06-13T23:19:02+00:00

I am having trouble in deploying to remote machine with tomcat installed as aservice.

  • 0

I am having trouble in deploying to remote machine with tomcat installed as aservice.
My tomcat-users is as follows:

<tomcat-users>
<role rolename="manager"/>
<user username="admin" password="admin" roles="tomcat, admin, manager-gui, manager-script"/>

</tomcat-users>

My settings.xml is:

<settings>
<pluginGroups>
<pluginGroup>org.apache.tomcat.maven</pluginGroup>
</pluginGroups>
<servers>
<server>
  <id>tomcat7</id>
  <username>admin</username>
  <password>admin</password>
</server>

</servers>

</settings>

And my pom.xml has the following:

            <plugin>
                <groupId>org.apache.tomcat.maven</groupId>
                <artifactId>tomcat7-maven-plugin</artifactId>
                <configuration>
                    <server>tomcat7</server>
                    <url>http://localhost:8081/manager/text</url>
                    <warFile>target/editor-${project.version}.war</warFile>
                </configuration>

And I keep on getting the 401 Unauthorized on the output of maven console. Can you tell me what am I doing wrong?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T23:19:03+00:00Added an answer on June 13, 2026 at 11:19 pm

    try to run mvn with -x -e
    then you will see what kind of info is sending to server. my guess is that the server doesnt get username/pass. which means something wrong with the configuration file i.e:settings.xml

    how does tomcat7-maven-plugin knows where settings.xml is ?

    EDIT: check out this which-maven-settings-xml-files

    elek offered there to run mvn with -X and in the begining you see
    “Reading user settings from .user/.m2/settings.xml..

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm having trouble deploying .NET application which uses Microsoft Access automation. I've installed the
I'm running a tomcat-6 server on Gentoo. I'm having trouble deploying Nexus to my
Recently one of our Tomcat servers started having trouble deploying WAR files. We have
I am having trouble deploying a Silverlight5 application. I'm releasing to a Windows server
I am having trouble deploying express app on nodester. After successfully running the default
I'm having some serious trouble properly deploying Web Application Bundle (OSGi-fied WAR) on GlassFish
Having trouble framing this assertion in Rspec for my rails app. A User has
We've having trouble deploying a web service that works in our development environment, but
I'm having trouble getting django-social-auth to work with a Django app that I'm deploying
I am completely new to WCF and deploying of services. I am having trouble

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.