In my begin method I pile in a slew of request parameters including cactus.contextURL:

public void begin(WebRequest request) { request.addParameter("sqldrivername",System.getProperty("sqldrivername"));
request.addParameter("initialContextFactory",System.getProperty("initialContextFactory"));
request.addParameter("urlPkgPrefixes",System.getProperty("urlPkgPrefixes"));
request.addParameter("providerUrl",System.getProperty("providerUrl"));
request.addParameter("databaseUrl",System.getProperty("databaseUrl"));
request.addParameter("databaseUserid",System.getProperty("databaseUserid"));
request.addParameter("databasePassword",System.getProperty("databasePassword"));
request.addParameter("userid",System.getProperty("userid"));
request.addParameter("password",System.getProperty("password"));
request.addParameter("cactus.contextURL",System.getProperty("cactus.contextURL"));
}

I feed all the system properties in the cactus ant task. In this task I also use a containerset task with a generic element that specifies server and port.

Hope that helps.


[EMAIL PROTECTED] wrote:
The situation:

I  am trying to specify the cactus.contextURL.  The default contextURL is
the name of the cactified war file, eg http://localhost/project-cactified/,
and I want/need to change it to http://localhost/

I've tried adding the cactus.properties to the <cactus> element as a
<cactusproperty>, as a pathelement of the <classpath>, even added it to the
<containerclasspath> out of desperation.

All of them end up with a "Failed to start container..." trying to hit
[http://localhost:80/project-cactified/ServletRedirector?Cactus_Service=RUN_TEST].

I simply need to know where I can successfully set
cactus.contextURL=http://localhost/

Many thanks,
Albert.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to