This page describes the steps necessary to use netui-blank webapp as a base for a Web Project in NetBeans 4.1. These steps are based upon the 1.0 release of Beehive and the documentation provided for that release. Currently, this points to the nightly documentation. These steps also assume that Tomcat(either bundled with NetBeans or an external server) is the target Servlet container
\[NOTE: Once we do the 1.0 release, we need to point the links to the official 1.0 documentation.\] |
\[NOTE: Don't forget to set values for server port, user and password\] |
<property name="manager.url" value="http://localhost:<PORT>/manager"/>
<property name="manager.username" value="USER"/>
<property name="manager.password" value="PASSWORD"/>
<taskdef name="deploy" classname="org.apache.catalina.ant.DeployTask">
<classpath>
<pathelement path="${os.CATALINA_HOME}/server/lib/catalina-ant.jar"/>
</classpath>
</taskdef>
<target name="install" description="Install application to servlet container">
<deploy url="${manager.url}"
username="${manager.username}"
password="${manager.password}"
path="/${context.path}"
localWar="file:${basedir}/${context.path}.war"/>
</target>
Now start Tomcat as usual and use install target to deploy your webapp to it.
\[NOTE: You can add other Tomcat ant tasks as well\] |
If you want debugging support you have to follow "this" tutorial.