tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anil Philip" <anil.phi...@openwave.com>
Subject trying to deploy servlet, ant install fails
Date Fri, 28 Jan 2005 16:29:47 GMT
Hello,

The build.xml supplied in the Tomcat 5.5.4 (Windows XP) documentation has
this line in the 'install' target:

       localWar="file://${build.home}"/>

 

Following the "development processes" Tomcat document, when I do an: ant
install

I get the following error:

 

C:\CRUDRE\build.xml:369: java.io.IOException: Server returned HTTP response
code

: 401 for URL:
http://localhost:80/manager/deploy?path=%2Fcrudre&war=file%3A%2F%

2FC%3A%5CCRUDRE%2Fbuild

 

However 

- doing a google search it says this 401 error is an authentication problem
but I am able to run the manager from the Start menu and in the
build.properties, I specify the same password/username that I did in the
popup dialog.

- when I did an 'ant all', it built successfully.

 

Any help, appreciated.

Thanks,

Anil Philip

 

 

======= tomcat-users.xml=======

<?xml version='1.0' encoding='utf-8'?>

<tomcat-users>

  <role rolename="tomcat"/>

  <role rolename="role1"/>

  <role rolename="manager"/>

  <role rolename="admin"/>

  <user username="tomcat" password="tomcat" roles="tomcat,manager"/>

  <user username="both" password="tomcat" roles="tomcat,role1"/>

  <user username="role1" password="tomcat" roles="role1"/>

  <user username="admin" password="admin" roles="admin,manager"/>

</tomcat-users>

=========application-dir\build.properties===========

<property name="manager.password"   value="admin"/>

  <property name="manager.url"   value="http://localhost:80/manager"/>

  <property name="manager.username"   value="admin"/>

===============================

 

============ ant all ===================

C:\CRUDRE>ant all

Buildfile: build.xml

 

clean:

   [delete] Deleting directory C:\CRUDRE\build

 

prepare:

    [mkdir] Created dir: C:\CRUDRE\build

    [mkdir] Created dir: C:\CRUDRE\build\WEB-INF

    [mkdir] Created dir: C:\CRUDRE\build\WEB-INF\classes

     [copy] Copying 13 files to C:\CRUDRE\build

 

compile:

    [javac] Compiling 3 source files to C:\CRUDRE\build\WEB-INF\classes

 

all:

 

BUILD SUCCESSFUL

 


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message