tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Charl Gerber <charlger...@yahoo.com>
Subject Re: Error 401 deploying war to Tomcat with Ant
Date Mon, 14 Sep 2009 20:13:49 GMT
Nevermind.... 

Turns out oracle database had a web page running at same port (8080). Via web browser I correctly
saw Tomcat, via ant task it went to oracle.

Stopped Oracle and all was back to normal. 

doh.



--- On Mon, 14/9/09, Charl Gerber <charlgerber@yahoo.com> wrote:

> From: Charl Gerber <charlgerber@yahoo.com>
> Subject: Error 401 deploying war to Tomcat with Ant
> To: users@tomcat.apache.org
> Date: Monday, 14 September, 2009, 10:04 PM
> Hi Everyone,
> 
> Using Tomcat 6.0.20, Ant 1.7.1 and Java 1.6_14. Windows
> Vista Home premium.
> 
> I had ant deploy tasks that worked fine. I removed my Java
> installation and upgraded to 1.6_16. All of a sudden all my
> apps (without having changed code, properties, config or
> anything) could not be deployed anymore, see exception
> below.
> 
> I know 401 is authentication, but I didn't change anything
> and an echo in the ant script just before I deploy confirms
> I am using the right url and credentials.
> 
> I rolled back to Java 1.6_14 and still same problem. I can
> access the url and enter the username & password and its
> fine, just from the ant task it doesn't work anymore. My
> guess is some security setting or certificate or something?
> Anyone that can help please?
> 
> BUILD FAILED
> java.io.IOException: Server returned HTTP response code:
> 401 for URL: http://localhost:8080/manager/deploy?path=%2Fmpro&update=true
>         at
> sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1313)
>         at
> org.apache.catalina.ant.AbstractCatalinaTask.execute(AbstractCatalinaTask.java:223)
>         at
> org.apache.catalina.ant.DeployTask.execute(DeployTask.java:201)
>         at
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
>         at
> sun.reflect.GeneratedMethodAccessor2.invoke(Unknown
> Source)    
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at
> java.lang.reflect.Method.invoke(Method.java:597)
>         at
> org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
>         at
> org.apache.tools.ant.Task.perform(Task.java:348)
>         at
> org.apache.tools.ant.Target.execute(Target.java:357)
>         at
> org.apache.tools.ant.Target.performTasks(Target.java:385)
>         at
> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
>         at
> org.apache.tools.ant.Project.executeTarget(Project.java:1306)
>         at
> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
>         at
> org.apache.tools.ant.Project.executeTargets(Project.java:1189)
>         at
> org.apache.tools.ant.Main.runBuild(Main.java:758)
>         at
> org.apache.tools.ant.Main.startAnt(Main.java:217)
>         at
> org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
>         at
> org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message