Re: RE: Cactus/Maven problem (KMM3962519V56871L0KM)

2005-10-26 Thread Citi Travel
Original Message Follows:

On Wed, 26 Oct 2005, Lewis, Lonnie R wrote:
Hm. That's odd. From examining the sourcecode, it doesn't handle DTD.
(not sure which version you're using).
It trims the output and checks if it starts with , but a
DOCTYPE declaration is found instead.
I can only think of the following two causes:
- cactus added support for a DOCTYPE and you're using a newer version of
cactus on the server than on the client;
- you've got some weird tomcat settings that add DOCTYPE automatically.
Btw, if you point your browser at that url (where you get the blank 
page),
and you do 'view source', i think you'll see the  tag.
Again, I'm not sure what causes this, perhaps some more experienced
user/developer can help you with that.
-- Kenney
> Thanks for the reply, Kenney. Running "clean:clean" as you suggested
> cleaned up the problem files. Thanks for the tip.
>
> Here is the stack trace:
> [cactus] Testcase: testDoRequiredBrowser took 15.753 sec
> [cactus]Caused an ERROR
> [cactus] Failed to get the test results at
> [http://localhost:8080/MyTest-cactus/test/filterRedirector.jsp]
> [cactus] org.apache.cactus.util.ChainedRuntimeException: Failed to
> get the test results at
> [http://localhost:8080/MyTest-cactus/test/filterRedirector.jsp]
> [cactus]at
> 
org.apache.cactus.internal.client.connector.http.DefaultHttpClient.doTes
> t_aroundBody0(DefaultHttpClient.java:92)
> [cactus]at
> 
org.apache.cactus.internal.client.connector.http.DefaultHttpClient.doTes
> t_aroundBody1$advice(DefaultHttpClient.java:288)
> [cactus]at
> 
org.apache.cactus.internal.client.connector.http.DefaultHttpClient.doTes
> t(DefaultHttpClient.java)
> [cactus]at
> 
org.apache.cactus.internal.client.connector.http.HttpProtocolHandler.run
> WebTest(HttpProtocolHandler.java:159)
> [cactus]at
> 
org.apache.cactus.internal.client.connector.http.HttpProtocolHandler.run
> Test_aroundBody0(HttpProtocolHandler.java:80)
> [cactus]at
> 
org.apache.cactus.internal.client.connector.http.HttpProtocolHandler.run
> Test_aroundBody1$advice(HttpProtocolHandler.java:288)
> [cactus]at
> 
org.apache.cactus.internal.client.connector.http.HttpProtocolHandler.run
> Test(HttpProtocolHandler.java)
> [cactus]at
> 
org.apache.cactus.internal.client.ClientTestCaseCaller.runTest(ClientTes
> tCaseCaller.java:144)
> [cactus]at
> 
org.apache.cactus.internal.AbstractCactusTestCase.runBareClient(Abstract
> CactusTestCase.java:215)
> [cactus]at
> 
org.apache.cactus.internal.AbstractCactusTestCase.runBare(AbstractCactus
> TestCase.java:133)
> [cactus] org.apache.cactus.internal.client.ParsingException: Not a
> valid response. First 100 characters of the reponse: [
> [cactus]
> [cactus]
> [cactus]
> [cactus]
> [cactus]
> [cactus]
> [cactus]
> [cactus]
> [cactus]
> [cactus]  "http://www.w3.org]
>
> >From what I've read, I agree that the problem is connecting to 
Tomcat. I
> also get this error in the sysout:
> [cactus]
> -
> [cactus] Running tests against Tomcat 5.0.28 @ http://localhost:8080
> [cactus]
> -
> [cactus] [VERBOSE] Starting up container
> [cactus] [DEBUG] Finding class
> org.apache.cactus.integration.ant.container.ContainerRunner
> [cactus] [DEBUG] Class
> org.apache.cactus.integration.ant.container.ContainerRunner loaded 
from
> ant loader
> [cactus] [DEBUG] Class java.net.HttpURLConnection loaded from 
parent
> loader
> [cactus] [DEBUG] Class java.lang.Runnable loaded from parent 
loader
> [cactus] [DEBUG] Class java.lang.InterruptedException loaded from
> parent loader
> [cactus] [DEBUG] Failed to connect to
> 
[http://localhost:8080/MyTest-cactus/ServletRedirector?Cactus_Service=RU
> N_TEST] (Connection refused: connect)
>
> As these test are running, I can bring up a browser and enter in the
> URL:
> http://localhost:8080/MyTest-cactus/ServletRedirector?Cactus_Service=RUN
> _TEST
> I get a blank page,  but no error.
> I have also tried: http://localhost:8080/
> MyTest-cactus/test/filterRedirector.jsp
> I also get a response, but it is an error containing: "Missing service
> name parameter [Cactus_Service] in HTTP request."
>
> I don't know, any ideas?
>
> Thanks again.
> -Lonnie
>
> -Original Message-
> From: Kenney Westerhof [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, October 26, 2005 3:45 AM
> To: Cactus Users List
> Subject: Re: Cactus/Maven pro

Re: Cactus/Maven problem (KMM3962506V56678L0KM)

2005-10-26 Thread Citi Travel
Original Message Follows:

First post, please be kind :-).
I'm running Cactus under Maven. I'm getting the common "[cactus]
org.apache.cactus.util.ChainedRuntimeException: Failed to get the test
results at
[http://localhost:8080/MyApp-cactus/test/filterRedirector.jsp]"; error.
Reading other postings, I'm trying to solve it by getting the logging
set up properly (I'm getting the also common "[cactus] log4j:WARN Please
initialize the log4j system properly." message).
So I'm trying to get the "logging_server.properties" and
"logging_client.properties" files put in the right place. I can't seem
to get this to work right; the changes I put in these property files
didn't seem to fixed the logging problem (could be I'm just not putting
the files in the right place). So, I checked the generated WAR file
(MyApp.war); my properties files are in there. Strangely, when I checked
the generated cactus war file (MyApp-cactus.war) they are there in
addition to another set of "logging_server.properties" and
"logging_client.properties" files. If I look at "extra" set, they appear
to be a default implementation; all loggers commented out. These may be
files I created a while ago, but they no longer exist on my hard drive
(I deleted them long ago). Well not if file form anyway, they may exist
in some jar, war, ear, or other archive somewhere but I can't find them.
I deleted my ".maven" work area (with the cache and repository
directories) and let maven rebuild it.
Also strangely, I had another file that I created and later deleted that
is still appearing in my WAR files.  Many questions here, is this a
maven problem or a cactus problem? Is this documented somewhere and I
just can't find it (if so, sorry for not RTFMing well enough)? Is there
a trick I'm just not getting to getting the logging working so I can
track down my "real" problem?
By the way, thanks for all the work you guys put into this product. I
(we) really appreciate it.
-Lonnie

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



RE: Cactus/Maven problem

2005-10-26 Thread Lewis, Lonnie R
Kenney,
Thanks again for the help. Actually, that "mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 26, 2005 12:08 PM
To: Cactus Users List
Subject: RE: Cactus/Maven problem

On Wed, 26 Oct 2005, Lewis, Lonnie R wrote:

Hm. That's odd. From examining the sourcecode, it doesn't handle DTD.
(not sure which version you're using).

It trims the output and checks if it starts with , but a
DOCTYPE declaration is found instead.

I can only think of the following two causes:

- cactus added support for a DOCTYPE and you're using a newer version of
cactus on the server than on the client;
- you've got some weird tomcat settings that add DOCTYPE automatically.

Btw, if you point your browser at that url (where you get the blank
page),
and you do 'view source', i think you'll see the  tag.

Again, I'm not sure what causes this, perhaps some more experienced
user/developer can help you with that.

-- Kenney

> Thanks for the reply, Kenney. Running "clean:clean" as you suggested
> cleaned up the problem files. Thanks for the tip.
>
> Here is the stack trace:
> [cactus] Testcase: testDoRequiredBrowser took 15.753 sec
> [cactus]Caused an ERROR
> [cactus] Failed to get the test results at
> [http://localhost:8080/MyTest-cactus/test/filterRedirector.jsp]
> [cactus] org.apache.cactus.util.ChainedRuntimeException: Failed to
> get the test results at
> [http://localhost:8080/MyTest-cactus/test/filterRedirector.jsp]
> [cactus]at
>
org.apache.cactus.internal.client.connector.http.DefaultHttpClient.doTes
> t_aroundBody0(DefaultHttpClient.java:92)
> [cactus]at
>
org.apache.cactus.internal.client.connector.http.DefaultHttpClient.doTes
> t_aroundBody1$advice(DefaultHttpClient.java:288)
> [cactus]at
>
org.apache.cactus.internal.client.connector.http.DefaultHttpClient.doTes
> t(DefaultHttpClient.java)
> [cactus]at
>
org.apache.cactus.internal.client.connector.http.HttpProtocolHandler.run
> WebTest(HttpProtocolHandler.java:159)
> [cactus]at
>
org.apache.cactus.internal.client.connector.http.HttpProtocolHandler.run
> Test_aroundBody0(HttpProtocolHandler.java:80)
> [cactus]at
>
org.apache.cactus.internal.client.connector.http.HttpProtocolHandler.run
> Test_aroundBody1$advice(HttpProtocolHandler.java:288)
> [cactus]at
>
org.apache.cactus.internal.client.connector.http.HttpProtocolHandler.run
> Test(HttpProtocolHandler.java)
> [cactus]at
>
org.apache.cactus.internal.client.ClientTestCaseCaller.runTest(ClientTes
> tCaseCaller.java:144)
> [cactus]at
>
org.apache.cactus.internal.AbstractCactusTestCase.runBareClient(Abstract
> CactusTestCase.java:215)
> [cactus]at
>
org.apache.cactus.internal.AbstractCactusTestCase.runBare(AbstractCactus
> TestCase.java:133)
> [cactus] org.apache.cactus.internal.client.ParsingException: Not a
> valid response. First 100 characters of the reponse: [
> [cactus]
> [cactus]
> [cactus]
> [cactus]
> [cactus]
> [cactus]
> [cactus]
> [cactus]
> [cactus]
> [cactus]  "http://www.w3.org]
>
> >From what I've read, I agree that the problem is connecting to
Tomcat. I
> also get this error in the sysout:
> [cactus]
> -
> [cactus] Running tests against Tomcat 5.0.28 @
http://localhost:8080
> [cactus]
> -
> [cactus] [VERBOSE] Starting up container
> [cactus] [DEBUG] Finding class
> org.apache.cactus.integration.ant.container.ContainerRunner
> [cactus] [DEBUG] Class
> org.apache.cactus.integration.ant.container.ContainerRunner loaded
from
> ant loader
> [cactus] [DEBUG] Class java.net.HttpURLConnection loaded from
parent
> loader
> [cactus] [DEBUG] Class java.lang.Runnable loaded from parent
loader
> [cactus] [DEBUG] Class java.lang.InterruptedException loaded from
> parent loader
> [cactus] [DEBUG] Failed to connect to
>
[http://localhost:8080/MyTest-cactus/ServletRedirector?Cactus_Service=RU
> N_TEST] (Connection refused: connect)
>
> As these test are running, I can bring up a browser and enter in the
> URL:
>
http://localhost:8080/MyTest-cactus/ServletRedirector?Cactus_Service=RUN
> _TEST
> I get a blank page,  but no error.
> I have also tried: http://localhost:8080/
> MyTest-cactus/test/filterRedirector.jsp
> I also get a response, but it is an error containing: "Missing service
> name parameter [Cactus_Service] in HTTP request."
>
> I don't know, any ideas?
>
> Thanks again.
> -Lonnie
>
> -Original Message-
> From: Kenney Westerhof [mail

RE: Cactus/Maven problem

2005-10-26 Thread Kenney Westerhof
On Wed, 26 Oct 2005, Lewis, Lonnie R wrote:

Hm. That's odd. From examining the sourcecode, it doesn't handle DTD.
(not sure which version you're using).

It trims the output and checks if it starts with , but a
DOCTYPE declaration is found instead.

I can only think of the following two causes:

- cactus added support for a DOCTYPE and you're using a newer version of
cactus on the server than on the client;
- you've got some weird tomcat settings that add DOCTYPE automatically.

Btw, if you point your browser at that url (where you get the blank page),
and you do 'view source', i think you'll see the  tag.

Again, I'm not sure what causes this, perhaps some more experienced
user/developer can help you with that.

-- Kenney

> Thanks for the reply, Kenney. Running "clean:clean" as you suggested
> cleaned up the problem files. Thanks for the tip.
>
> Here is the stack trace:
> [cactus] Testcase: testDoRequiredBrowser took 15.753 sec
> [cactus]Caused an ERROR
> [cactus] Failed to get the test results at
> [http://localhost:8080/MyTest-cactus/test/filterRedirector.jsp]
> [cactus] org.apache.cactus.util.ChainedRuntimeException: Failed to
> get the test results at
> [http://localhost:8080/MyTest-cactus/test/filterRedirector.jsp]
> [cactus]at
> org.apache.cactus.internal.client.connector.http.DefaultHttpClient.doTes
> t_aroundBody0(DefaultHttpClient.java:92)
> [cactus]at
> org.apache.cactus.internal.client.connector.http.DefaultHttpClient.doTes
> t_aroundBody1$advice(DefaultHttpClient.java:288)
> [cactus]at
> org.apache.cactus.internal.client.connector.http.DefaultHttpClient.doTes
> t(DefaultHttpClient.java)
> [cactus]at
> org.apache.cactus.internal.client.connector.http.HttpProtocolHandler.run
> WebTest(HttpProtocolHandler.java:159)
> [cactus]at
> org.apache.cactus.internal.client.connector.http.HttpProtocolHandler.run
> Test_aroundBody0(HttpProtocolHandler.java:80)
> [cactus]at
> org.apache.cactus.internal.client.connector.http.HttpProtocolHandler.run
> Test_aroundBody1$advice(HttpProtocolHandler.java:288)
> [cactus]at
> org.apache.cactus.internal.client.connector.http.HttpProtocolHandler.run
> Test(HttpProtocolHandler.java)
> [cactus]at
> org.apache.cactus.internal.client.ClientTestCaseCaller.runTest(ClientTes
> tCaseCaller.java:144)
> [cactus]at
> org.apache.cactus.internal.AbstractCactusTestCase.runBareClient(Abstract
> CactusTestCase.java:215)
> [cactus]at
> org.apache.cactus.internal.AbstractCactusTestCase.runBare(AbstractCactus
> TestCase.java:133)
> [cactus] org.apache.cactus.internal.client.ParsingException: Not a
> valid response. First 100 characters of the reponse: [
> [cactus]
> [cactus]
> [cactus]
> [cactus]
> [cactus]
> [cactus]
> [cactus]
> [cactus]
> [cactus]
> [cactus]  "http://www.w3.org]
>
> >From what I've read, I agree that the problem is connecting to Tomcat. I
> also get this error in the sysout:
> [cactus]
> -
> [cactus] Running tests against Tomcat 5.0.28 @ http://localhost:8080
> [cactus]
> -
> [cactus] [VERBOSE] Starting up container
> [cactus] [DEBUG] Finding class
> org.apache.cactus.integration.ant.container.ContainerRunner
> [cactus] [DEBUG] Class
> org.apache.cactus.integration.ant.container.ContainerRunner loaded from
> ant loader
> [cactus] [DEBUG] Class java.net.HttpURLConnection loaded from parent
> loader
> [cactus] [DEBUG] Class java.lang.Runnable loaded from parent loader
> [cactus] [DEBUG] Class java.lang.InterruptedException loaded from
> parent loader
> [cactus] [DEBUG] Failed to connect to
> [http://localhost:8080/MyTest-cactus/ServletRedirector?Cactus_Service=RU
> N_TEST] (Connection refused: connect)
>
> As these test are running, I can bring up a browser and enter in the
> URL:
> http://localhost:8080/MyTest-cactus/ServletRedirector?Cactus_Service=RUN
> _TEST
> I get a blank page,  but no error.
> I have also tried: http://localhost:8080/
> MyTest-cactus/test/filterRedirector.jsp
> I also get a response, but it is an error containing: "Missing service
> name parameter [Cactus_Service] in HTTP request."
>
> I don't know, any ideas?
>
> Thanks again.
> -Lonnie
>
> -Original Message-
> From: Kenney Westerhof [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, October 26, 2005 3:45 AM
> To: Cactus Users List
> Subject: Re: Cactus/Maven problem
>
> On Tue, 25 Oct 2005, Lewis, Lonnie R wrot

RE: Cactus/Maven problem

2005-10-26 Thread Lewis, Lonnie R
Thanks for the reply, Kenney. Running "clean:clean" as you suggested
cleaned up the problem files. Thanks for the tip.

Here is the stack trace:
[cactus] Testcase: testDoRequiredBrowser took 15.753 sec
[cactus]Caused an ERROR
[cactus] Failed to get the test results at
[http://localhost:8080/MyTest-cactus/test/filterRedirector.jsp]
[cactus] org.apache.cactus.util.ChainedRuntimeException: Failed to
get the test results at
[http://localhost:8080/MyTest-cactus/test/filterRedirector.jsp]
[cactus]at
org.apache.cactus.internal.client.connector.http.DefaultHttpClient.doTes
t_aroundBody0(DefaultHttpClient.java:92)
[cactus]at
org.apache.cactus.internal.client.connector.http.DefaultHttpClient.doTes
t_aroundBody1$advice(DefaultHttpClient.java:288)
[cactus]at
org.apache.cactus.internal.client.connector.http.DefaultHttpClient.doTes
t(DefaultHttpClient.java)
[cactus]at
org.apache.cactus.internal.client.connector.http.HttpProtocolHandler.run
WebTest(HttpProtocolHandler.java:159)
[cactus]at
org.apache.cactus.internal.client.connector.http.HttpProtocolHandler.run
Test_aroundBody0(HttpProtocolHandler.java:80)
[cactus]at
org.apache.cactus.internal.client.connector.http.HttpProtocolHandler.run
Test_aroundBody1$advice(HttpProtocolHandler.java:288)
[cactus]at
org.apache.cactus.internal.client.connector.http.HttpProtocolHandler.run
Test(HttpProtocolHandler.java)
[cactus]at
org.apache.cactus.internal.client.ClientTestCaseCaller.runTest(ClientTes
tCaseCaller.java:144)
[cactus]at
org.apache.cactus.internal.AbstractCactusTestCase.runBareClient(Abstract
CactusTestCase.java:215)
[cactus]at
org.apache.cactus.internal.AbstractCactusTestCase.runBare(AbstractCactus
TestCase.java:133)
[cactus] org.apache.cactus.internal.client.ParsingException: Not a
valid response. First 100 characters of the reponse: [
[cactus]
[cactus]
[cactus]
[cactus]
[cactus]
[cactus]
[cactus]
[cactus]
[cactus]
[cactus] http://www.w3.org]

>From what I've read, I agree that the problem is connecting to Tomcat. I
also get this error in the sysout:
[cactus]
-
[cactus] Running tests against Tomcat 5.0.28 @ http://localhost:8080
[cactus]
-
[cactus] [VERBOSE] Starting up container
[cactus] [DEBUG] Finding class
org.apache.cactus.integration.ant.container.ContainerRunner
[cactus] [DEBUG] Class
org.apache.cactus.integration.ant.container.ContainerRunner loaded from
ant loader
[cactus] [DEBUG] Class java.net.HttpURLConnection loaded from parent
loader
[cactus] [DEBUG] Class java.lang.Runnable loaded from parent loader
[cactus] [DEBUG] Class java.lang.InterruptedException loaded from
parent loader
[cactus] [DEBUG] Failed to connect to
[http://localhost:8080/MyTest-cactus/ServletRedirector?Cactus_Service=RU
N_TEST] (Connection refused: connect)

As these test are running, I can bring up a browser and enter in the
URL:
http://localhost:8080/MyTest-cactus/ServletRedirector?Cactus_Service=RUN
_TEST
I get a blank page,  but no error.
I have also tried: http://localhost:8080/
MyTest-cactus/test/filterRedirector.jsp
I also get a response, but it is an error containing: "Missing service
name parameter [Cactus_Service] in HTTP request."

I don't know, any ideas?

Thanks again.
-Lonnie

-Original Message-
From: Kenney Westerhof [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 26, 2005 3:45 AM
To: Cactus Users List
Subject: Re: Cactus/Maven problem

On Tue, 25 Oct 2005, Lewis, Lonnie R wrote:

Hi,

A ChainedRuntimeException is typically thrown from Ant, IIRC, which
indicates a client side problem - it probably can't connect or
something.

Have you tried running the tests without maven? Maybe you can run with
-X
and see more of the stacktrace - it should mention the reason.

Also, files ending up in the WAR that you didn't specify (you did a
maven
clean:clean?)  are probably the result of the cactifyEar ant task.
But logging.properties files on the server might just not help you
since this seems to be a client side problem.

Hope this helps a bit - maybe you can post the stacktrace here?

-- Kenney



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



Re: Cactus/Maven problem

2005-10-26 Thread Kenney Westerhof
On Tue, 25 Oct 2005, Lewis, Lonnie R wrote:

Hi,

A ChainedRuntimeException is typically thrown from Ant, IIRC, which
indicates a client side problem - it probably can't connect or something.

Have you tried running the tests without maven? Maybe you can run with -X
and see more of the stacktrace - it should mention the reason.

Also, files ending up in the WAR that you didn't specify (you did a maven
clean:clean?)  are probably the result of the cactifyEar ant task.
But logging.properties files on the server might just not help you
since this seems to be a client side problem.

Hope this helps a bit - maybe you can post the stacktrace here?

-- Kenney

> First post, please be kind :-).
> I'm running Cactus under Maven. I'm getting the common "[cactus]
> org.apache.cactus.util.ChainedRuntimeException: Failed to get the test
> results at
> [http://localhost:8080/MyApp-cactus/test/filterRedirector.jsp]"; error.
> Reading other postings, I'm trying to solve it by getting the logging
> set up properly (I'm getting the also common "[cactus] log4j:WARN Please
> initialize the log4j system properly." message).
> So I'm trying to get the "logging_server.properties" and
> "logging_client.properties" files put in the right place. I can't seem
> to get this to work right; the changes I put in these property files
> didn't seem to fixed the logging problem (could be I'm just not putting
> the files in the right place). So, I checked the generated WAR file
> (MyApp.war); my properties files are in there. Strangely, when I checked
> the generated cactus war file (MyApp-cactus.war) they are there in
> addition to another set of "logging_server.properties" and
> "logging_client.properties" files. If I look at "extra" set, they appear
> to be a default implementation; all loggers commented out. These may be
> files I created a while ago, but they no longer exist on my hard drive
> (I deleted them long ago). Well not if file form anyway, they may exist
> in some jar, war, ear, or other archive somewhere but I can't find them.
> I deleted my ".maven" work area (with the cache and repository
> directories) and let maven rebuild it.
> Also strangely, I had another file that I created and later deleted that
> is still appearing in my WAR files.  Many questions here, is this a
> maven problem or a cactus problem? Is this documented somewhere and I
> just can't find it (if so, sorry for not RTFMing well enough)? Is there
> a trick I'm just not getting to getting the logging working so I can
> track down my "real" problem?
>
> By the way, thanks for all the work you guys put into this product. I
> (we) really appreciate it.
>
> -Lonnie
>
>
>

--
Kenney Westerhof
http://www.neonics.com
GPG public key: http://www.gods.nl/~forge/kenneyw.key

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



Re: Cactus + maven

2005-06-02 Thread sheep
hi.
you should set cactus.contextURL = http://lcoalhost:8080/test-cactus in 
cactus.properties and put it in WEB/classes folder,if you don't have a folder 
named classes.you can put it in you  source code folder .good luck


sheep
- Original Message - 
From: "Flávio Silva" <[EMAIL PROTECTED]>
To: 
Sent: Wednesday, June 01, 2005 4:05 AM
Subject: Cactus + maven


> Hi,
> 
> I'm a new maven user and I getting the above error when run cactus
> tests. I have to configure the system property 'contextURL' or the
> cactus (or maven) will automatically configure it?
> 
> I've already tried set
> 'cactus.contextURL=http://localhost:8080/test-cactus' on my
> build.properties but it didn't work.
> 
> Someone has a tutorial or a hint? Tanks,
> 
> Flávio
> 
> Missing Cactus property [cactus.contextURL]
> org.apache.cactus.util.ChainedRuntimeException: Missing Cactus
> property [cactus.contextURL]
> at 
> org.apache.cactus.internal.configuration.BaseConfiguration.getContextURL(BaseConfiguration.java:59)
> at 
> org.apache.cactus.internal.configuration.AbstractWebConfiguration.getRedirectorURL_aroundBody0(AbstractWebConfiguration.java:46)
> at 
> org.apache.cactus.internal.configuration.AbstractWebConfiguration.getRedirectorURL_aroundBody1$advice(AbstractWebConfiguration.java:206)
> at 
> org.apache.cactus.internal.configuration.AbstractWebConfiguration.getRedirectorURL(AbstractWebConfiguration.java)
> at 
> org.apache.cactus.internal.client.connector.http.DefaultHttpClient.callRunTest(DefaultHttpClient.java:159)
> at 
> org.apache.cactus.internal.client.connector.http.DefaultHttpClient.doTest_aroundBody0(DefaultHttpClient.java:80)
> at 
> org.apache.cactus.internal.client.connector.http.DefaultHttpClient.doTest_aroundBody1$advice(DefaultHttpClient.java:206)
> at 
> org.apache.cactus.internal.client.connector.http.DefaultHttpClient.doTest(DefaultHttpClient.java)
> at 
> org.apache.cactus.internal.client.connector.http.HttpProtocolHandler.runWebTest(HttpProtocolHandler.java:159)
> at 
> org.apache.cactus.internal.client.connector.http.HttpProtocolHandler.runTest_aroundBody0(HttpProtocolHandler.java:80)
> at 
> org.apache.cactus.internal.client.connector.http.HttpProtocolHandler.runTest_aroundBody1$advice(HttpProtocolHandler.java:206)
> at 
> org.apache.cactus.internal.client.connector.http.HttpProtocolHandler.runTest(HttpProtocolHandler.java)
> at 
> org.apache.cactus.internal.client.ClientTestCaseCaller.runTest(ClientTestCaseCaller.java:144)
> at 
> org.apache.cactus.internal.AbstractCactusTestCase.runBareClient(AbstractCactusTestCase.java:215)
> at 
> org.apache.cactus.internal.AbstractCactusTestCase.runBare(AbstractCactusTestCase.java:133)
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

RE: Cactus + maven

2005-05-31 Thread Anagnost, Ted
Not sure if it will work but maybe put it in cactus.properties and make sure
that cactus.properties is in the classpath. 

-Original Message-
From: Flávio Silva [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 31, 2005 3:05 PM
To: [email protected]
Subject: Cactus + maven

Hi,

I'm a new maven user and I getting the above error when run cactus tests. I
have to configure the system property 'contextURL' or the cactus (or maven)
will automatically configure it?

I've already tried set
'cactus.contextURL=http://localhost:8080/test-cactus' on my build.properties
but it didn't work.

Someone has a tutorial or a hint? Tanks,

Flávio

Missing Cactus property [cactus.contextURL]
org.apache.cactus.util.ChainedRuntimeException: Missing Cactus property
[cactus.contextURL]
at
org.apache.cactus.internal.configuration.BaseConfiguration.getContextURL(Bas
eConfiguration.java:59)
at
org.apache.cactus.internal.configuration.AbstractWebConfiguration.getRedirec
torURL_aroundBody0(AbstractWebConfiguration.java:46)
at
org.apache.cactus.internal.configuration.AbstractWebConfiguration.getRedirec
torURL_aroundBody1$advice(AbstractWebConfiguration.java:206)
at
org.apache.cactus.internal.configuration.AbstractWebConfiguration.getRedirec
torURL(AbstractWebConfiguration.java)
at
org.apache.cactus.internal.client.connector.http.DefaultHttpClient.callRunTe
st(DefaultHttpClient.java:159)
at
org.apache.cactus.internal.client.connector.http.DefaultHttpClient.doTest_ar
oundBody0(DefaultHttpClient.java:80)
at
org.apache.cactus.internal.client.connector.http.DefaultHttpClient.doTest_ar
oundBody1$advice(DefaultHttpClient.java:206)
at
org.apache.cactus.internal.client.connector.http.DefaultHttpClient.doTest(De
faultHttpClient.java)
at
org.apache.cactus.internal.client.connector.http.HttpProtocolHandler.runWebT
est(HttpProtocolHandler.java:159)
at
org.apache.cactus.internal.client.connector.http.HttpProtocolHandler.runTest
_aroundBody0(HttpProtocolHandler.java:80)
at
org.apache.cactus.internal.client.connector.http.HttpProtocolHandler.runTest
_aroundBody1$advice(HttpProtocolHandler.java:206)
at
org.apache.cactus.internal.client.connector.http.HttpProtocolHandler.runTest
(HttpProtocolHandler.java)
at
org.apache.cactus.internal.client.ClientTestCaseCaller.runTest(ClientTestCas
eCaller.java:144)
at
org.apache.cactus.internal.AbstractCactusTestCase.runBareClient(AbstractCact
usTestCase.java:215)
at
org.apache.cactus.internal.AbstractCactusTestCase.runBare(AbstractCactusTest
Case.java:133)

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

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



RE: cactus maven plugin timeout value

2004-08-08 Thread Vincent Massol
Hi Denis,

> -Original Message-
> From: Denis McLaughlin [mailto:[EMAIL PROTECTED]
> Sent: mercredi 4 août 2004 23:29
> To: [EMAIL PROTECTED]
> Subject: cactus maven plugin timeout value
> 
> Hi all,
> 
>   I apologize if this question has come up before: I didn't see anything
> in the FAQ or in the mailing list archives that seemed like a match.
> 
>   We're using maven and cactus as part of a build and automated sanity
> cycle, driven by Cruisecontrol.  It's working very well, with one
> exception: the system we're executing this build and test cycle on is
> rather underpowered.  As a result of this, the JBoss startup time can
> exceed 5 and even 10 minutes.   It seems that the cactus maven plugin
> has a hardwired timeout value of 3 minutes (18ms): if the JBoss
> hasn't started in 3 minutes, the cactus test fails.
> 
>   I did see this email
> http://www.mail-archive.com/[EMAIL PROTECTED]/msg03300.html,
> which talks about using mechanisms other than timers to determine when
> the JBoss was started.  I'm all for that, but doing that exceeds my
> ability, and I'm in need of a more immediate fix.
> 
>   I directly modified the cactus maven plugin, adding a timeout="90"
> attribute to the  tag, and that sorted me right out.  If
> the long term plan is to move away from timers, then that's fine, I can
> sit tight and wait for that.  However, if there's interest in something
> more immediate, I can modify the cactus plugin.jelly to allow the user
> to override the timout using a cactus.containerset.timeout variable: it
> would be 18 (the current default) if not explicitly set, but if the
> user wanted to override it, then it would detect that and override it.
> 
>   Is there interest in this?

Yep, definitely. Please open a JIRA issue and attach a patch to it. Please
also add a patch for properties.xml and changes.xml (and project.xml to list
you as a contributor if you wish).

Thanks
-Vincent


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



RE: cactus-maven plugin: getting it working

2004-01-27 Thread Vincent Massol
Yeah, I need to update the nightly build of the maven project. Will do
soon.

Thanks
-Vincent

> -Original Message-
> From: Stephane Nicoll [mailto:[EMAIL PROTECTED]
> Sent: 27 January 2004 13:53
> To: Cactus Users List
> Subject: Re: cactus-maven plugin: getting it working
> 
> Darren,
> 
> Thanks for sharing this tip. Actually, it works pretty well if you
have
> a recent maven, a bootstrap from CVS for instance ;-)
> 
> Regards,
> 
> Stephane
> 
> On Mon, 2004-01-26 at 23:12, Darren Hartford wrote:
> > Hey all,
> > Using cactus-maven-1.6dev-20040115 got the following error. I know
some
> others have had it:
> >
> > ==SNIP==
> > BUILD FAILED
> > File..
file:/C:/blah/.maven/plugins/cactus-maven-1.6dev-20040115/
> > Element... ant:ear
> > Line.. 763
> > Column 53
> > Problem creating ear: c:\fileblah (Access is denied) (
> > and the archive is probably corrupt but I could not delete it)
> > ==END SNIP==
> >
> >
> > The work around seems to be to add this line to project.properties:
> > cactus.ear=${basedir}/target/${pom.artifactId}-cactus.ear
> >
> > And also these two to help out later on:
> > cactus.war.dir=${basedir}/target
> > cactus.war.name=${pom.artifactId}-cactus.war
> >
> >
> > This is really odd, as they are declared in the plugin.jelly file.
> Nonetheless, sharing my experience.
> > -D
> >
> >
> >
> >
-
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]



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



Re: cactus-maven plugin: getting it working

2004-01-27 Thread Stephane Nicoll
Darren,

Thanks for sharing this tip. Actually, it works pretty well if you have
a recent maven, a bootstrap from CVS for instance ;-)

Regards,

Stephane

On Mon, 2004-01-26 at 23:12, Darren Hartford wrote:
> Hey all,
> Using cactus-maven-1.6dev-20040115 got the following error. I know some others have 
> had it:
> 
> ==SNIP==
> BUILD FAILED
> File.. file:/C:/blah/.maven/plugins/cactus-maven-1.6dev-20040115/
> Element... ant:ear
> Line.. 763
> Column 53
> Problem creating ear: c:\fileblah (Access is denied) (
> and the archive is probably corrupt but I could not delete it)
> ==END SNIP==
> 
> 
> The work around seems to be to add this line to project.properties:
> cactus.ear=${basedir}/target/${pom.artifactId}-cactus.ear
> 
> And also these two to help out later on:
> cactus.war.dir=${basedir}/target
> cactus.war.name=${pom.artifactId}-cactus.war
> 
> 
> This is really odd, as they are declared in the plugin.jelly file.  Nonetheless, 
> sharing my experience.
> -D
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

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



RE: cactus maven plugin and resources

2004-01-24 Thread Vincent Massol

> -Original Message-
> From: Keith F Irwin [mailto:[EMAIL PROTECTED]
> Sent: 17 January 2004 22:59
> To: 'Cactus Users List'
> Subject: RE: cactus maven plugin and resources
> 
> Vincent--
> 
> Re: log resources for cactus runs only...
> 
> I snagged the code out of CVS this morning, hunted down all the
> dependencies, created build.properties, and produced the two jars, ran
> the maven plugin install, copied the jars into the repository, and
> removed all the other jars (just to see) and even changed my
> project.xml.
> 
> Maven insists on downloading a 2003 version of the 1.6dev branch
(maybe
> for some other issue), but now I get an aspectj error.  (See
postscript
> below.)

I think I know. You need to understand that maven downloads the
dependencies defined in project.xml. If it doesn't find them locally it
will try to fetch them onsite from ibiblio. My guess is you may have
made an error in renaming the jars, so that the name doesn't match the
one defined in the plugin's project.xml.

> 
> I do remember that when building, I got a "can't find aspectj.jar"
even
> though it seems to be on every path.

That's not a problem. I get it too.

> 
> I'll see if I can track that down.
> 
> Meanwhile, how do I know if my project/maven is using the "new" plugin
> jars?  (I'd like to be able to report that it worked or didn't work
> based on the right code. ;)

I don't understand the term "plugin jars". A plugin is a jar, there is
only one jar. If you want to be sure you're using the correct plugin,
simply delete the other versions from your maven installation dir and
delete the .maven/plugins dir.

-Vincent

> 
> I'll keep plugging away.
> 
> Keith
> 
> ps.  Exception:
> 
> Exception in thread "main" java.lang.NoSuchMethodError:
>
org.aspectj.runtime.reflect.Factory.makeSJP(Ljava/lang/String;Lorg/aspec
tj
> /lang/Signature;I)Lorg/aspectj/lang/JoinPoint$StaticPart;
> [cactus]at
>
org.apache.cactus.util.ClassLoaderUtils.(ClassLoaderUtils.java)
> 
> On Sat, 2004-01-17 at 00:06, Vincent Massol wrote:
> > > -Original Message-
> > > From: Keith Irwin [mailto:[EMAIL PROTECTED]
> > > Sent: 17 January 2004 01:14
> > > To: 'Cactus Users List'
> > > Subject: RE: cactus maven plugin and resources
> > >
> > > On Fri, 2004-01-16 at 14:13, Vincent Massol wrote:
> > > > *sigh*. The properties file I had attached got deleted (I really
> > need to
> > > > contact someone about the setting of this mailing list for
> > > > attachements).
> > > >
> > > > Try:
> > > > http://cvs.apache.org/~vmassol/logging_client.properties.sample
> > > > http://cvs.apache.org/~vmassol/logging_server.properties.sample
> > >
> > > Okay. I checked out cactus and got it to compile. Headed into
> > > ./integration/maven and ran "maven", but I'm not sure what to do
next
> > to
> > > test this.  Presumable copy something to somewhere?
> >
> > Ok here are the steps to perform (not real easy for now as we
haven't
> > yet integrated the maven plugin properly in the overall build):
> >
> > - go in jakarta-cactus/framework and type "ant dist"
> > - go in jakarta-cactus/integration/ant and type "ant dist"
> > - copy and rename the generated 2 jars into your local Maven
repository
> > (in [repository]/cactus/jars. Name them cactus-13-1.6dev.jar and
> > cactus-ant-13-1.6dev.jar.
> > - go in jakarta-cactus/integration/maven and type "maven
plugin:install"
> >
> > You can now use the Maven plugin for Cactus.
> >
> > Thanks
> > -Vincent
> >
> > >
> > > Keith
> > >
> > > > -Vincent
> > > >
> > > > > -Original Message-
> > > > > From: Vincent Massol [mailto:[EMAIL PROTECTED]
> > > > > Sent: 16 January 2004 23:11
> > > > > To: 'Cactus Users List'
> > > > > Cc: [EMAIL PROTECTED]
> > > > > Subject: RE: cactus maven plugin and resources
> > > > >
> > > > > Hi Keith,
> > > > >
> > > > > I've just added basic logging support to the Cactus plugin for
you
> > :-)
> > > > >
> > > > > The changes are in CVS HEAD for now (I'm doing a nightly build
> > which
> > > > > should be ready in about 1 hour).
> > > > >
> > > > > You have to specify 2 properties: cactus.logging.config

RE: cactus maven plugin and resources

2004-01-17 Thread Keith F Irwin
Vincent--

Re: log resources for cactus runs only...

I snagged the code out of CVS this morning, hunted down all the
dependencies, created build.properties, and produced the two jars, ran
the maven plugin install, copied the jars into the repository, and
removed all the other jars (just to see) and even changed my
project.xml.

Maven insists on downloading a 2003 version of the 1.6dev branch (maybe
for some other issue), but now I get an aspectj error.  (See postscript
below.)

I do remember that when building, I got a "can't find aspectj.jar" even
though it seems to be on every path.

I'll see if I can track that down.

Meanwhile, how do I know if my project/maven is using the "new" plugin
jars?  (I'd like to be able to report that it worked or didn't work
based on the right code. ;)

I'll keep plugging away.

Keith

ps.  Exception:

Exception in thread "main" java.lang.NoSuchMethodError:
org.aspectj.runtime.reflect.Factory.makeSJP(Ljava/lang/String;Lorg/aspectj/lang/Signature;I)Lorg/aspectj/lang/JoinPoint$StaticPart;
[cactus]at
org.apache.cactus.util.ClassLoaderUtils.(ClassLoaderUtils.java)

On Sat, 2004-01-17 at 00:06, Vincent Massol wrote:
> > -Original Message-
> > From: Keith Irwin [mailto:[EMAIL PROTECTED]
> > Sent: 17 January 2004 01:14
> > To: 'Cactus Users List'
> > Subject: RE: cactus maven plugin and resources
> > 
> > On Fri, 2004-01-16 at 14:13, Vincent Massol wrote:
> > > *sigh*. The properties file I had attached got deleted (I really
> need to
> > > contact someone about the setting of this mailing list for
> > > attachements).
> > >
> > > Try:
> > > http://cvs.apache.org/~vmassol/logging_client.properties.sample
> > > http://cvs.apache.org/~vmassol/logging_server.properties.sample
> > 
> > Okay. I checked out cactus and got it to compile. Headed into
> > ./integration/maven and ran "maven", but I'm not sure what to do next
> to
> > test this.  Presumable copy something to somewhere?
> 
> Ok here are the steps to perform (not real easy for now as we haven't
> yet integrated the maven plugin properly in the overall build):
> 
> - go in jakarta-cactus/framework and type "ant dist"
> - go in jakarta-cactus/integration/ant and type "ant dist"
> - copy and rename the generated 2 jars into your local Maven repository
> (in [repository]/cactus/jars. Name them cactus-13-1.6dev.jar and
> cactus-ant-13-1.6dev.jar.
> - go in jakarta-cactus/integration/maven and type "maven plugin:install"
> 
> You can now use the Maven plugin for Cactus.
> 
> Thanks
> -Vincent
> 
> > 
> > Keith
> > 
> > > -Vincent
> > >
> > > > -Original Message-
> > > > From: Vincent Massol [mailto:[EMAIL PROTECTED]
> > > > Sent: 16 January 2004 23:11
> > > > To: 'Cactus Users List'
> > > > Cc: [EMAIL PROTECTED]
> > > > Subject: RE: cactus maven plugin and resources
> > > >
> > > > Hi Keith,
> > > >
> > > > I've just added basic logging support to the Cactus plugin for you
> :-)
> > > >
> > > > The changes are in CVS HEAD for now (I'm doing a nightly build
> which
> > > > should be ready in about 1 hour).
> > > >
> > > > You have to specify 2 properties: cactus.logging.config.client and
> > > > cactus.logging.config.server. They need to point to logging
> properties
> > > > files. I've attached 2 examples (you'll need to replace the
> > > @target.dir@
> > > > by the real location).
> > > >
> > > > I haven't tested it yet. I'd be happy if you could verify if it
> works.
> > > >
> > > > Thanks
> > > > -Vincent
> > > >
> > > > > -Original Message-
> > > > > From: Keith Irwin [mailto:[EMAIL PROTECTED]
> > > > > Sent: 16 January 2004 22:03
> > > > > To: Cactus Users List
> > > > > Subject: cactus maven plugin and resources
> > > > >
> > > > > Folks--
> > > > >
> > > > > Kind of a best practices question:
> > > > >
> > > > > For unit tests, I'd like to include log4j.props and
> > > > > commons-logging.props to debug the test apparatus and to squelch
> > > those
> > > > > annoying warnings if you don't.
> > > > >
> > > > > However, I don't want these files in standard app builds
> (because

RE: cactus maven plugin and resources

2004-01-17 Thread Vincent Massol


> -Original Message-
> From: Keith Irwin [mailto:[EMAIL PROTECTED]
> Sent: 17 January 2004 01:14
> To: 'Cactus Users List'
> Subject: RE: cactus maven plugin and resources
> 
> On Fri, 2004-01-16 at 14:13, Vincent Massol wrote:
> > *sigh*. The properties file I had attached got deleted (I really
need to
> > contact someone about the setting of this mailing list for
> > attachements).
> >
> > Try:
> > http://cvs.apache.org/~vmassol/logging_client.properties.sample
> > http://cvs.apache.org/~vmassol/logging_server.properties.sample
> 
> Okay. I checked out cactus and got it to compile. Headed into
> ./integration/maven and ran "maven", but I'm not sure what to do next
to
> test this.  Presumable copy something to somewhere?

Ok here are the steps to perform (not real easy for now as we haven't
yet integrated the maven plugin properly in the overall build):

- go in jakarta-cactus/framework and type "ant dist"
- go in jakarta-cactus/integration/ant and type "ant dist"
- copy and rename the generated 2 jars into your local Maven repository
(in [repository]/cactus/jars. Name them cactus-13-1.6dev.jar and
cactus-ant-13-1.6dev.jar.
- go in jakarta-cactus/integration/maven and type "maven plugin:install"

You can now use the Maven plugin for Cactus.

Thanks
-Vincent

> 
> Keith
> 
> > -Vincent
> >
> > > -Original Message-----
> > > From: Vincent Massol [mailto:[EMAIL PROTECTED]
> > > Sent: 16 January 2004 23:11
> > > To: 'Cactus Users List'
> > > Cc: [EMAIL PROTECTED]
> > > Subject: RE: cactus maven plugin and resources
> > >
> > > Hi Keith,
> > >
> > > I've just added basic logging support to the Cactus plugin for you
:-)
> > >
> > > The changes are in CVS HEAD for now (I'm doing a nightly build
which
> > > should be ready in about 1 hour).
> > >
> > > You have to specify 2 properties: cactus.logging.config.client and
> > > cactus.logging.config.server. They need to point to logging
properties
> > > files. I've attached 2 examples (you'll need to replace the
> > @target.dir@
> > > by the real location).
> > >
> > > I haven't tested it yet. I'd be happy if you could verify if it
works.
> > >
> > > Thanks
> > > -Vincent
> > >
> > > > -Original Message-
> > > > From: Keith Irwin [mailto:[EMAIL PROTECTED]
> > > > Sent: 16 January 2004 22:03
> > > > To: Cactus Users List
> > > > Subject: cactus maven plugin and resources
> > > >
> > > > Folks--
> > > >
> > > > Kind of a best practices question:
> > > >
> > > > For unit tests, I'd like to include log4j.props and
> > > > commons-logging.props to debug the test apparatus and to squelch
> > those
> > > > annoying warnings if you don't.
> > > >
> > > > However, I don't want these files in standard app builds
(because
> > > > there's some other framework thing going on).
> > > >
> > > > So, I've added the resources to the  element such
that
> > the
> > > > files in question are included with regular unit test builds.
> > > >
> > > > However, the cactus unit test plugin seems to ignore this.
> > > >
> > > > Is there a preferred way to get this to work, or should I just
> > create
> > > a
> > > > preGoal for cactus:test and cactus:match (the ones I regularly
use)
> > to
> > > > copy the files over somehow?
> > > >
> > > > Thanks,
> > > >
> > > > Keith
> > > >
> > > >
> > > >
> >
-
> > > > To unsubscribe, e-mail:
[EMAIL PROTECTED]
> > > > For additional commands, e-mail:
[EMAIL PROTECTED]
> > >
> >
> >
> >
> >
-
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]



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



RE: cactus maven plugin and resources

2004-01-17 Thread Vincent Massol


> -Original Message-
> From: Keith Irwin [mailto:[EMAIL PROTECTED]
> Sent: 17 January 2004 00:02
> To: Cactus Users List
> Subject: RE: cactus maven plugin and resources
> 
> Vince--
> 
> Okay, I'll have to figure out how to check it out of CVS, compile,
etc,
> etc and see what I can get going.
> 
> Is the idea here that you the "client" should take care of the output
> when running "maven cactus" and the "server" is just stuff that shows
up
> in the app server output (or whatever you've configured)?

Client = JVM where the JUnit Test Runner executes
Server = container JVM

-Vincent

> 
> If so, makes sense.
> 
> Keith
> 
> On Fri, 2004-01-16 at 14:13, Vincent Massol wrote:
> > *sigh*. The properties file I had attached got deleted (I really
need to
> > contact someone about the setting of this mailing list for
> > attachements).
> >
> > Try:
> > http://cvs.apache.org/~vmassol/logging_client.properties.sample
> > http://cvs.apache.org/~vmassol/logging_server.properties.sample
> >
> > -Vincent
> >
> > > -Original Message-
> > > From: Vincent Massol [mailto:[EMAIL PROTECTED]
> > > Sent: 16 January 2004 23:11
> > > To: 'Cactus Users List'
> > > Cc: [EMAIL PROTECTED]
> > > Subject: RE: cactus maven plugin and resources
> > >
> > > Hi Keith,
> > >
> > > I've just added basic logging support to the Cactus plugin for you
:-)
> > >
> > > The changes are in CVS HEAD for now (I'm doing a nightly build
which
> > > should be ready in about 1 hour).
> > >
> > > You have to specify 2 properties: cactus.logging.config.client and
> > > cactus.logging.config.server. They need to point to logging
properties
> > > files. I've attached 2 examples (you'll need to replace the
> > @target.dir@
> > > by the real location).
> > >
> > > I haven't tested it yet. I'd be happy if you could verify if it
works.
> > >
> > > Thanks
> > > -Vincent
> > >
> > > > -Original Message-
> > > > From: Keith Irwin [mailto:[EMAIL PROTECTED]
> > > > Sent: 16 January 2004 22:03
> > > > To: Cactus Users List
> > > > Subject: cactus maven plugin and resources
> > > >
> > > > Folks--
> > > >
> > > > Kind of a best practices question:
> > > >
> > > > For unit tests, I'd like to include log4j.props and
> > > > commons-logging.props to debug the test apparatus and to squelch
> > those
> > > > annoying warnings if you don't.
> > > >
> > > > However, I don't want these files in standard app builds
(because
> > > > there's some other framework thing going on).
> > > >
> > > > So, I've added the resources to the  element such
that
> > the
> > > > files in question are included with regular unit test builds.
> > > >
> > > > However, the cactus unit test plugin seems to ignore this.
> > > >
> > > > Is there a preferred way to get this to work, or should I just
> > create
> > > a
> > > > preGoal for cactus:test and cactus:match (the ones I regularly
use)
> > to
> > > > copy the files over somehow?
> > > >
> > > > Thanks,
> > > >
> > > > Keith
> > > >
> > > >
> > > >
> >
-
> > > > To unsubscribe, e-mail:
[EMAIL PROTECTED]
> > > > For additional commands, e-mail:
[EMAIL PROTECTED]
> > >
> >
> >
> >
> >
-
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]



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



RE: cactus maven plugin and resources

2004-01-16 Thread Keith Irwin
On Fri, 2004-01-16 at 14:13, Vincent Massol wrote:
> *sigh*. The properties file I had attached got deleted (I really need to
> contact someone about the setting of this mailing list for
> attachements).
> 
> Try:
> http://cvs.apache.org/~vmassol/logging_client.properties.sample
> http://cvs.apache.org/~vmassol/logging_server.properties.sample

Okay. I checked out cactus and got it to compile. Headed into
./integration/maven and ran "maven", but I'm not sure what to do next to
test this.  Presumable copy something to somewhere?

Keith

> -Vincent
> 
> > -Original Message-
> > From: Vincent Massol [mailto:[EMAIL PROTECTED]
> > Sent: 16 January 2004 23:11
> > To: 'Cactus Users List'
> > Cc: [EMAIL PROTECTED]
> > Subject: RE: cactus maven plugin and resources
> > 
> > Hi Keith,
> > 
> > I've just added basic logging support to the Cactus plugin for you :-)
> > 
> > The changes are in CVS HEAD for now (I'm doing a nightly build which
> > should be ready in about 1 hour).
> > 
> > You have to specify 2 properties: cactus.logging.config.client and
> > cactus.logging.config.server. They need to point to logging properties
> > files. I've attached 2 examples (you'll need to replace the
> @target.dir@
> > by the real location).
> > 
> > I haven't tested it yet. I'd be happy if you could verify if it works.
> > 
> > Thanks
> > -Vincent
> > 
> > > -Original Message-
> > > From: Keith Irwin [mailto:[EMAIL PROTECTED]
> > > Sent: 16 January 2004 22:03
> > > To: Cactus Users List
> > > Subject: cactus maven plugin and resources
> > >
> > > Folks--
> > >
> > > Kind of a best practices question:
> > >
> > > For unit tests, I'd like to include log4j.props and
> > > commons-logging.props to debug the test apparatus and to squelch
> those
> > > annoying warnings if you don't.
> > >
> > > However, I don't want these files in standard app builds (because
> > > there's some other framework thing going on).
> > >
> > > So, I've added the resources to the  element such that
> the
> > > files in question are included with regular unit test builds.
> > >
> > > However, the cactus unit test plugin seems to ignore this.
> > >
> > > Is there a preferred way to get this to work, or should I just
> create
> > a
> > > preGoal for cactus:test and cactus:match (the ones I regularly use)
> to
> > > copy the files over somehow?
> > >
> > > Thanks,
> > >
> > > Keith
> > >
> > >
> > >
> -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


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



RE: cactus maven plugin and resources

2004-01-16 Thread Keith Irwin
Vince--

I can't compile cactus.  Seems it's looking for j2ee-13.jar from
.maven/repository/j2ee/jar but, alas, I don't have that and neither does
ibiblio.

Should I point at a different repository?

Keith

On Fri, 2004-01-16 at 14:10, Vincent Massol wrote:
> Hi Keith,
> 
> I've just added basic logging support to the Cactus plugin for you :-)
> 
> The changes are in CVS HEAD for now (I'm doing a nightly build which
> should be ready in about 1 hour).
> 
> You have to specify 2 properties: cactus.logging.config.client and
> cactus.logging.config.server. They need to point to logging properties
> files. I've attached 2 examples (you'll need to replace the @target.dir@
> by the real location).
> 
> I haven't tested it yet. I'd be happy if you could verify if it works.
> 
> Thanks
> -Vincent
> 
> > -Original Message-
> > From: Keith Irwin [mailto:[EMAIL PROTECTED]
> > Sent: 16 January 2004 22:03
> > To: Cactus Users List
> > Subject: cactus maven plugin and resources
> > 
> > Folks--
> > 
> > Kind of a best practices question:
> > 
> > For unit tests, I'd like to include log4j.props and
> > commons-logging.props to debug the test apparatus and to squelch those
> > annoying warnings if you don't.
> > 
> > However, I don't want these files in standard app builds (because
> > there's some other framework thing going on).
> > 
> > So, I've added the resources to the  element such that the
> > files in question are included with regular unit test builds.
> > 
> > However, the cactus unit test plugin seems to ignore this.
> > 
> > Is there a preferred way to get this to work, or should I just create
> a
> > preGoal for cactus:test and cactus:match (the ones I regularly use) to
> > copy the files over somehow?
> > 
> > Thanks,
> > 
> > Keith
> > 
> > 
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> __
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


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



RE: cactus maven plugin and resources

2004-01-16 Thread Keith Irwin
Vince--

Okay, I'll have to figure out how to check it out of CVS, compile, etc,
etc and see what I can get going.

Is the idea here that you the "client" should take care of the output
when running "maven cactus" and the "server" is just stuff that shows up
in the app server output (or whatever you've configured)?

If so, makes sense.

Keith

On Fri, 2004-01-16 at 14:13, Vincent Massol wrote:
> *sigh*. The properties file I had attached got deleted (I really need to
> contact someone about the setting of this mailing list for
> attachements).
> 
> Try:
> http://cvs.apache.org/~vmassol/logging_client.properties.sample
> http://cvs.apache.org/~vmassol/logging_server.properties.sample
> 
> -Vincent
> 
> > -Original Message-
> > From: Vincent Massol [mailto:[EMAIL PROTECTED]
> > Sent: 16 January 2004 23:11
> > To: 'Cactus Users List'
> > Cc: [EMAIL PROTECTED]
> > Subject: RE: cactus maven plugin and resources
> > 
> > Hi Keith,
> > 
> > I've just added basic logging support to the Cactus plugin for you :-)
> > 
> > The changes are in CVS HEAD for now (I'm doing a nightly build which
> > should be ready in about 1 hour).
> > 
> > You have to specify 2 properties: cactus.logging.config.client and
> > cactus.logging.config.server. They need to point to logging properties
> > files. I've attached 2 examples (you'll need to replace the
> @target.dir@
> > by the real location).
> > 
> > I haven't tested it yet. I'd be happy if you could verify if it works.
> > 
> > Thanks
> > -Vincent
> > 
> > > -Original Message-
> > > From: Keith Irwin [mailto:[EMAIL PROTECTED]
> > > Sent: 16 January 2004 22:03
> > > To: Cactus Users List
> > > Subject: cactus maven plugin and resources
> > >
> > > Folks--
> > >
> > > Kind of a best practices question:
> > >
> > > For unit tests, I'd like to include log4j.props and
> > > commons-logging.props to debug the test apparatus and to squelch
> those
> > > annoying warnings if you don't.
> > >
> > > However, I don't want these files in standard app builds (because
> > > there's some other framework thing going on).
> > >
> > > So, I've added the resources to the  element such that
> the
> > > files in question are included with regular unit test builds.
> > >
> > > However, the cactus unit test plugin seems to ignore this.
> > >
> > > Is there a preferred way to get this to work, or should I just
> create
> > a
> > > preGoal for cactus:test and cactus:match (the ones I regularly use)
> to
> > > copy the files over somehow?
> > >
> > > Thanks,
> > >
> > > Keith
> > >
> > >
> > >
> -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


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



RE: cactus maven plugin and resources

2004-01-16 Thread Vincent Massol
*sigh*. The properties file I had attached got deleted (I really need to
contact someone about the setting of this mailing list for
attachements).

Try:
http://cvs.apache.org/~vmassol/logging_client.properties.sample
http://cvs.apache.org/~vmassol/logging_server.properties.sample

-Vincent

> -Original Message-
> From: Vincent Massol [mailto:[EMAIL PROTECTED]
> Sent: 16 January 2004 23:11
> To: 'Cactus Users List'
> Cc: [EMAIL PROTECTED]
> Subject: RE: cactus maven plugin and resources
> 
> Hi Keith,
> 
> I've just added basic logging support to the Cactus plugin for you :-)
> 
> The changes are in CVS HEAD for now (I'm doing a nightly build which
> should be ready in about 1 hour).
> 
> You have to specify 2 properties: cactus.logging.config.client and
> cactus.logging.config.server. They need to point to logging properties
> files. I've attached 2 examples (you'll need to replace the
@target.dir@
> by the real location).
> 
> I haven't tested it yet. I'd be happy if you could verify if it works.
> 
> Thanks
> -Vincent
> 
> > -Original Message-
> > From: Keith Irwin [mailto:[EMAIL PROTECTED]
> > Sent: 16 January 2004 22:03
> > To: Cactus Users List
> > Subject: cactus maven plugin and resources
> >
> > Folks--
> >
> > Kind of a best practices question:
> >
> > For unit tests, I'd like to include log4j.props and
> > commons-logging.props to debug the test apparatus and to squelch
those
> > annoying warnings if you don't.
> >
> > However, I don't want these files in standard app builds (because
> > there's some other framework thing going on).
> >
> > So, I've added the resources to the  element such that
the
> > files in question are included with regular unit test builds.
> >
> > However, the cactus unit test plugin seems to ignore this.
> >
> > Is there a preferred way to get this to work, or should I just
create
> a
> > preGoal for cactus:test and cactus:match (the ones I regularly use)
to
> > copy the files over somehow?
> >
> > Thanks,
> >
> > Keith
> >
> >
> >
-
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> 



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



RE: cactus maven plugin and resources

2004-01-16 Thread Vincent Massol
Hi Keith,

I've just added basic logging support to the Cactus plugin for you :-)

The changes are in CVS HEAD for now (I'm doing a nightly build which
should be ready in about 1 hour).

You have to specify 2 properties: cactus.logging.config.client and
cactus.logging.config.server. They need to point to logging properties
files. I've attached 2 examples (you'll need to replace the @target.dir@
by the real location).

I haven't tested it yet. I'd be happy if you could verify if it works.

Thanks
-Vincent

> -Original Message-
> From: Keith Irwin [mailto:[EMAIL PROTECTED]
> Sent: 16 January 2004 22:03
> To: Cactus Users List
> Subject: cactus maven plugin and resources
> 
> Folks--
> 
> Kind of a best practices question:
> 
> For unit tests, I'd like to include log4j.props and
> commons-logging.props to debug the test apparatus and to squelch those
> annoying warnings if you don't.
> 
> However, I don't want these files in standard app builds (because
> there's some other framework thing going on).
> 
> So, I've added the resources to the  element such that the
> files in question are included with regular unit test builds.
> 
> However, the cactus unit test plugin seems to ignore this.
> 
> Is there a preferred way to get this to work, or should I just create
a
> preGoal for cactus:test and cactus:match (the ones I regularly use) to
> copy the files over somehow?
> 
> Thanks,
> 
> Keith
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


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

RE: cactus maven plugin: cactus test source?

2004-01-16 Thread Vincent Massol


> -Original Message-
> From: Keith Irwin [mailto:[EMAIL PROTECTED]
> Sent: 16 January 2004 22:08
> To: Cactus Users List
> Subject: cactus maven plugin: cactus test source?
> 
> Is there a reason none of the plugins produce a source code cross
> reference and/or javadoc for the cactus tests?

Yes, that's normal. It's not implemented. Plugins try to be as uncoupled
as possible. 

> 
> Any non-hack way to get that working?

No, there is no non-hack. For a hacky way, I guess you can check how the
jxr and javadoc plugin works and create pre goals to add the cactus
sources to the source directory these plugins process.

-Vincent

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



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