Re: Help cactus.contextURL not being found in ANT

Marty La Jeunesse <[email protected]>
Newsgroups gmane.comp.jakarta.cactus.user
Message-ID <[email protected]>
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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.