Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Catalina-ant tasks
Catalina-ant tasks [message #5869] Mon, 07 July 2003 18:48
Eclipse UserFriend
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
Previous Topic:PHP plugin
Next Topic:JSP editor eclipse
Goto Forum:
  


Current Time: Thu Dec 26 15:06:39 GMT 2024

Powered by FUDForum. Page generated in 0.02661 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top