• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

Need help in build applications using ant : getting exception

 
Ranch Hand
Posts: 299
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am going through site http://static.springsource.org/docs/Spring-MVC-step-by-step/part1.html . I am executing ant tasks one by one and they are successful untill i give ant list. When i execute ant list i get below error stack trace


I have gone through similar problems faced by people but the solutions given to them doesnot work for me. For eg similar issue,
but the discussion there didn't helped me.

Please fine below my build.xml and build.properties file

build.properties

build.xml



Please Note
My tomcat is installed in correct location as mentioned in build.xml file and also i have included

in my tomcat-users.xml file.

Please help
 
Greenhorn
Posts: 7
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
works for me, but are you sure about the port 80 in tomcat.manager.url in the build.properties because default it's 8080, unless you changed it in tomcat's server.xml
 
Maan Suraj
Ranch Hand
Posts: 299
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes I am sure. I changed the port to 80 from 8080. Also, i have deployed other application in the same tomcat and it works fine for me. It's only this ant build which fails
 
Andreas Koenig
Greenhorn
Posts: 7
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
After changing the port to 80 I get the same exception, maybe because it's default http-port. You should simply use another port.
 
Maan Suraj
Ranch Hand
Posts: 299
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well thanks. This did helped up to some extent. I changed the port to 8180 and ant build works fine now. Now i got to know that the error which i mentioned occurs if i start tomcat from eclipse. Neveetheless,I learnt about the other exception which occurs when port is 80. Let me explain it below

1) With port "80" and if i start tomcat from outside(not from eclipse), then i get below error if i execute "ant list"




Now i changed the port to 8180, do an ant build and it works absolutely fine.

But if i start tomcat from eclipse (even with new port 8180) ,and do an ant build, then still i get the same old exception which i mentioned in previous post

 
Andreas Koenig
Greenhorn
Posts: 7
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Don't know if you kept in mind that from within eclipse the webapps gets deployed temporarily inside the workspace, for me it's .metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps
 
Andreas Koenig
Greenhorn
Posts: 7
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
found a solution. the problem is like I said the webapps-folder within the workspace and the missing manager app. you need to add the folowing line to the server.xml in your workspaces server/tomcat folder

and restart the server
 
Maan Suraj
Ranch Hand
Posts: 299
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think we may be little closer to the solution. As you said, i gave below in my server.xml (in workspaces server/tomcat folder )




Now i get below exception


I even tried with giving below in tomcat-users.xml file(in workspaces server/tomcat folder )


 
Andreas Koenig
Greenhorn
Posts: 7
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
seems like it's nearly working. my tomcat-users.xml has the entries already, apparently imported when I created the server in eclipse. did you restartet the server after editing?
 
Maan Suraj
Ranch Hand
Posts: 299
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ya i restarted the server
 
Maan Suraj
Ranch Hand
Posts: 299
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well i just cleaned it and restarted the server....and now my build works fine Thanks a lot for some great suggestions
 
The first person to drink cow's milk. That started off as a dare from this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic