You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by barry kimelman <ba...@hotmail.com> on 2011/05/10 01:13:18 UTC

Problem building application with tomcat 7 on windows 7

My system is a laptop running windows 7 professional 64 bit.
 
I downloaded tomcat 7.0.12 64 bit version for windows 7. After installation I tried several of the sample servlets and jsps. All the tests worked as expected.
 
When I attempt to build my application which used to build and run with no problems under tomcat 6 I receive the following errors.
 
C:\barry\hockey3>ant install
Buildfile: C:\barry\hockey3\build.xml
Trying to override old definition of datatype resources
 
prepare:
 
compile:
    [javac] C:\barry\hockey3\build.xml:298: warning: 'includeantruntime' was not set, defaulting to
build.sysclasspath=last; set to false for repeatable builds
 
install:
 
BUILD FAILED
C:\barry\hockey3\build.xml:374: java.io.FileNotFoundException: http://localhost:8080/manager/deploy
path=%2Fhockey3&war=file%3A%2F%2FC%3A%5Cbarry%5Chockey3%2Fbuild
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1434)
        at org.apache.catalina.ant.AbstractCatalinaTask.execute(AbstractCatalinaTask.java:228)
        at org.apache.catalina.ant.DeployTask.execute(DeployTask.java:211)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
        at sun.reflect.GeneratedMethodAccessor4.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:390)
        at org.apache.tools.ant.Target.performTasks(Target.java:411)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
        at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
        at org.apache.tools.ant.Main.runBuild(Main.java:809)
        at org.apache.tools.ant.Main.startAnt(Main.java:217)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
 
Total time: 1 second
 
C:\barry\hockey3>
 
C:\barry\hockey3>dir
 
Directory of C:\barry\hockey3
 
05/09/2011  05:00 PM    <DIR>          .
05/09/2011  05:00 PM    <DIR>          ..
02/27/2010  08:33 PM    <DIR>          build
05/09/2011  04:59 PM               226 build.properties
05/09/2011  04:56 PM            17,227 build.xml
02/27/2010  08:33 PM    <DIR>          src
02/27/2010  08:33 PM    <DIR>          web
               2 File(s)         17,453 bytes
               5 Dir(s)  216,042,860,544 bytes free
 
C:\barry\hockey3>
 
 
I have kept the same directory structure that I was using under Tomcat6 and yet I receive this error.
 
Any ideas as to why I am receiving this error ?
 
 
Thanks for your assistance.

 		 	   		  

Re: Problem building application with tomcat 7 on windows 7

Posted by Konstantin Kolinko <kn...@gmail.com>.
2011/5/10 Caldarale, Charles R <Ch...@unisys.com>:
>> From: barry kimelman [mailto:barryk_tomcat@hotmail.com]
>> Subject: Problem building application with tomcat 7 on windows 7
>
>> BUILD FAILED
>> C:\barry\hockey3\build.xml:374: java.io.FileNotFoundException:
>> http://localhost:8080/manager/deploypath=%2Fhockey3&
>> war=file%3A%2F%2FC%3A%5Cbarry%5Chockey3%2Fbuild
>
> Just a guess, but the role name(s) for the manager webapp changed in Tomcat 7; if you still have the old one configured in your ant properties, that might result in the failure you're seeing.
>

The URLs have changes as well.
See the docs for the correct ones,

http://tomcat.apache.org/migration.html
http://tomcat.apache.org/tomcat-7.0-doc/deployer-howto.html
http://tomcat.apache.org/tomcat-7.0-doc/manager-howto.html

Best regards,
Konstantin Kolinko

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


RE: Problem building application with tomcat 7 on windows 7

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: barry kimelman [mailto:barryk_tomcat@hotmail.com] 
> Subject: Problem building application with tomcat 7 on windows 7

> BUILD FAILED
> C:\barry\hockey3\build.xml:374: java.io.FileNotFoundException:
> http://localhost:8080/manager/deploypath=%2Fhockey3&
> war=file%3A%2F%2FC%3A%5Cbarry%5Chockey3%2Fbuild

Just a guess, but the role name(s) for the manager webapp changed in Tomcat 7; if you still have the old one configured in your ant properties, that might result in the failure you're seeing.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.


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