Catalina-ant tasks [message #5869] |
Mon, 07 July 2003 18:48 |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: lebowitz.finaltouch.com
I've had some difficulty getting the catalina-ant tasks to run within
Eclipse. In this instance, I'm running Tomcat 4.1.24 on a remote server.
I've installed the manager extensions, and provide the following resource:
<Resource name="UserDatabase" auth="Container"
type="org.apache.catalina.UserDatabase" description="User database that can
be updated and saved">
</Resource>
<ResourceParams name="UserDatabase">
<parameter>
<name>factory</name>
<value>org.apache.catalina.users.MemoryUserDatabaseFactory</value >
</parameter>
<parameter>
<name>pathname</name>
<value>conf/tomcat-users.xml</value>
</parameter>
</ResourceParams>
The tomcat-users.xml file is quite simple:
<tomcat-users>
<role rolename="tomcat"/>
<role rolename="manager"/>
<role rolename="admin"/>
<user username="tomcat" password="tomcat" roles="tomcat,admin,manager"/>
</tomcat-users>
My defined ant task :
<taskdef name="reload" classname="org.apache.catalina.ant.ReloadTask" />
<target name="reload" description="Reload example web application on tomcat"
>
<reload url="${manager.url}"
username="${username}"
password="${password}"
path="${context.path}" />
</target>
Output in Eclipse.
reload:
[reload] Error in class org.apache.catalina.ant.ReloadTask
[reload] BUILD FAILED: file:I:/Test/build.xml:80:
java.lang.NullPointerException
The logs on the remote server don't reveal too much:
Manager: restart: Reloading web application at '/Test'
Any suggestions on what I might have missed here? I've used the
catalina-ant tasks successfully in the past but this was a fresh install...
something is clearly missing.
Rob
|
|
|
Powered by
FUDForum. Page generated in 0.02762 seconds