wood burning stoves 2.0*
The moose likes Ant, Maven and Other Build Tools and the fly likes Modifying appserver.home property in build.properties file NOT working Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Modifying appserver.home property in build.properties file NOT working" Watch "Modifying appserver.home property in build.properties file NOT working" New topic
Author

Modifying appserver.home property in build.properties file NOT working

Melinda Savoy
Ranch Hand

Joined: Jun 21, 2005
Posts: 386

I am going through a spring tutorial and I'm trying to modify the appserver.home property with an absolute path value in the build.properties file so that it can find my tomcat server.

This is what I'm trying to change it to:



The original setting was appserver.home=${user.home}/server/apache-tomcat-7.0.25

The ${user.home} value is defined as: C:\Users\Melinda and because my server is not installed in this directory then I get the following error when I try to refresh my build file:

springapp C:\Users\Melinda\workspace\SpringTutorial\springapp\"C:\server\apache-tomcat-7.0.25"\lib does not exist.

I'm sure I'm doing something stupid.

Any help/direction would be appreciated.

Thank you.
Melinda Savoy
Ranch Hand

Joined: Jun 21, 2005
Posts: 386

Sorry guys. I just found another post that resolved my issue. In the build.xml file the following classname is deprecated:

<taskdef name="install" classname="org.apache.catalina.ant.DeployTask">
<classpath refid="catalina-ant-classpath"/>
</taskdef>

The classname needed to be corrected to: "org.apache.catalina.ant.DeployTask"

Thanks anyway. Sorry for the post.
Jan Cumps
Bartender

Joined: Dec 20, 2006
Posts: 2491
    
    8

Melinda Savoy wrote:Sorry guys. I just found another post that resolved my issue. In the build.xml file the following classname is deprecated:

<taskdef name="install" classname="org.apache.catalina.ant.DeployTask">
<classpath refid="catalina-ant-classpath"/>
</taskdef>

The classname needed to be corrected to: "org.apache.catalina.ant.DeployTask"

Thanks anyway. Sorry for the post.


That is two times the same: org.apache.catalina.ant.DeployTask ?


OCUP UML fundamental and ITIL foundation
youtube channel
Melinda Savoy
Ranch Hand

Joined: Jun 21, 2005
Posts: 386

Sorry, Jan. The initial post should have stated:

org.apache.catalina.ant.InstallTask and then correct with

org.apache.catalina.ant.DeployTask

My apologies for my confusing post. Regards.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Modifying appserver.home property in build.properties file NOT working
 
Similar Threads
Ant script not finding my build.properties file
Failed build : InstallTask cannot be found
Error building a Project using Ant
Build failure in Step-by-step tutorial
Springapp Tutorial FileNotFoundException at Step 1.11, running ant deploy reload