tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From my koseli <mykos...@gmail.com>
Subject Re: need help debugging why a simple app install fails
Date Sun, 12 Aug 2012 19:08:11 GMT
On Sun, Aug 12, 2012 at 10:52 AM, my koseli <mykoseli@gmail.com> wrote:

>
>
> On Fri, Aug 10, 2012 at 8:08 AM, Ognjen Blagojevic <
> ognjen.d.blagojevic@gmail.com> wrote:
>
>> Hi my,
>>
>> On 10.8.2012 6:13, my koseli wrote:
>>
>>> I tried  adding "/text" to the end of manager url but that didnt work.
>>>
>>> There is nothing interesting in the /var/log/tomcat6/ also.
>>>
>>> When I do *build* I do get warning as below but I am not sure how serious
>>> this warning is.
>>>
>>
>> I just tested some more with 6.0.26, and indeed InstallTask seems to be
>> problematic, so just use DeployTask as recommended by Tomcat docs:
>>
>>
>> ====
>>     <taskdef name="manager-deploy" classname="org.apache.**
>> catalina.ant.DeployTask">
>>         <classpath refid="catalina-ant-classpath"**/>
>>     </taskdef>
>>     <taskdef name="manager-undeploy" classname="org.apache.**
>> catalina.ant.UndeployTask">
>>         <classpath refid="catalina-ant-classpath"**/>
>>     </taskdef>
>>
>>     <target name="manager-deploy" description="Install application in
>> Tomcat">
>>         <manager-deploy url="${tomcat.manager.url}"
>>
>>                  username="${tomcat.manager.**username}"
>>                  password="${tomcat.manager.**password}"
>>                  path="/${name}"
>>                  war="${name}.war"/>
>>     </target>
>>
>>     <target name="manager-undeploy" description="Install application in
>> Tomcat">
>>         <manager-undeploy url="${tomcat.manager.url}"
>>
>>                  username="${tomcat.manager.**username}"
>>                  password="${tomcat.manager.**password}"
>>                  path="/${name}"/>
>>     </target>
>> ----
>>
>> -Ognjen
>>
>>
>>
>> ------------------------------**------------------------------**---------
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.**apache.org<users-unsubscribe@tomcat.apache.org>
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>
>
>
> I changed the build.xml to below but I still get the error. Any idea?
>
>> <target name="manager-deploy" description="Install application in Tomcat">
>>         <manager-deploy url="${tomcat.manager.url}"
>>                  username="${tomcat.manager.username}"
>>                  password="${tomcat.manager.password}"
>>                  path="/${name}"
>>                  war="${name}.war"/>
>>     </target>
>
>
>
> Not sure what is causing this. Any idea?
>
>
> Trying the default build file: build.xml
>>
>> Buildfile: /home/user/springapp2/build.xml
>>
>> Detected Java version: 1.6 in: /usr/lib/jvm/java-6-openjdk/jre
>> Detected OS: Linux
>> parsing buildfile /home/user/springapp2/build.xml with URI =
>> file:/home/user/springapp2/build.xml
>> Project base dir set to: /home/user/springapp2
>> parsing buildfile
>> jar:file:/usr/share/ant/lib/ant.jar!/org/apache/tools/ant/antlib.xml with
>> URI = jar:file:/usr/share/ant/lib/ant.jar!/org/apache/tools/ant/antlib.xml
>> from a zip file
>>  [property] Loading /home/user/springapp2/build.properties
>> Override ignored for property "tomcat.manager.url"
>> Override ignored for property "tomcat.manager.username"
>> Override ignored for property "tomcat.manager.password"
>> Build sequence for target(s) `manager-deploy' is [manager-deploy]
>> Complete build sequence is [manager-deploy, reload, start, install,
>> build, deploy, manager-undeploy, list, usage, stop, deploywar, ]
>> manager-deploy:
>>
>>
>
>> BUILD FAILED
>> /home/user/springapp2/build.xml:74: java.io.FileNotFoundException:
>> springapp2.war (No such file or directory)
>> at java.io.FileInputStream.open(Native Method)
>> at java.io.FileInputStream.<init>(FileInputStream.java:137)
>> at java.io.FileInputStream.<init>(FileInputStream.java:96)
>> at org.apache.catalina.ant.DeployTask.execute(DeployTask.java:169)
>> at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
>> at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
>>
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:616)
>> 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:1360)
>> at org.apache.tools.ant.Project.executeTarget(Project.java:1329)
>> at
>> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
>> at org.apache.tools.ant.Project.executeTargets(Project.java:1212)
>> at org.apache.tools.ant.Main.runBuild(Main.java:801)
>> at org.apache.tools.ant.Main.startAnt(Main.java:218)
>> at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
>> at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
>>
>>

This is the tutorial I am trying to follow:
http://static.springsource.org/docs/Spring-MVC-step-by-step/part1.html

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