-
1. Re: CATALINA_HOME not found by TestSuite
vineet.reynolds Nov 27, 2012 9:56 PM (in response to personificator)What does your arquillian.xml look like? You might need to add a
default="true"
attribute to your container configuration element in arquillian.xml -
2. Re: CATALINA_HOME not found by TestSuite
personificator Nov 28, 2012 11:16 AM (in response to vineet.reynolds)I've messed around with it for while and always end up with the same error.
-
3. Re: CATALINA_HOME not found by TestSuite
vineet.reynolds Nov 28, 2012 11:49 AM (in response to personificator)It looks like the file is not in your test classpath. Seeing that you're using Ant, you might want to refer to this build.xml file. You'll notice that the contents of the test resource directory (src/test/resources containing the arquillian.xml file) are copied over to the test output directory, which is on the test classpath (see the junit task). That is sufficient for the file to be located and loaded.
-
4. Re: CATALINA_HOME not found by TestSuite
personificator Dec 3, 2012 4:51 PM (in response to vineet.reynolds)OK! Thanks for that link, i assumed it was useless for me because I'm not using IVY, but that helped a lot. Now i'm getting a
<error message="Illegal character(s) in message header value: Basic dG9tY2F0OnRvbWNhdA==
" type="java.lang.IllegalArgumentException">java.lang.IllegalArgumentException: Illegal character(s) in message header value: Basic dG9tY2F0OnRvbWNhdA==
Full Stack trace here:http://ideone.com/fXJBIb
I'm using Tomcat Managed 6 container, it looks like there is a bug for java, http://stackoverflow.com/questions/2054687/java-fetch-url-with-httpbasic-authentication
Any way around that without rebuilding the container sources?
Thanks for your reply.
-
5. Re: CATALINA_HOME not found by TestSuite
vineet.reynolds Dec 3, 2012 8:11 PM (in response to personificator)Oh well, looks like a bug in the JRE; you don't need to rebuild the container since the bug is triggered at the client-side. It seems to have been fixed in Java 7. Can you upgrade to a newer version of the JRE and use it to run Arquillian?
-
6. Re: CATALINA_HOME not found by TestSuite
personificator Dec 4, 2012 12:14 AM (in response to vineet.reynolds)No, i don't think i can... reasonably. All our apps are on Java 6. Seems strange that I can run the jsfunit example-arquillian tests using maven, http://ideone.com/lU35JJ
I must be doing something wrong still.
-
7. Re: CATALINA_HOME not found by TestSuite
vineet.reynolds Dec 4, 2012 12:57 AM (in response to personificator)Can you verify if you have the right/up-to-date versions of the Arquillian Tomcat container adapter and the Apache Commons Codec library in your test classpath? The Tomcat adapter declares a dependency of Commons Codec 1.5 in it's POM, and therefore requires that version or a higher compatible one. The adapter uses the encodeBase64String method in common-codec-1.5 that does not perform chunking, so if you're using an incompatible version you might hit this problem; chunking adds newlines to the encoded data and that is what is occurring here.
-
8. Re: CATALINA_HOME not found by TestSuite
haint Mar 19, 2013 6:12 AM (in response to vineet.reynolds)Thanks Vineet! It resolved my problem