-
1. Getting Exception while running a JSFUnit test bundled as war
susmit_shukla Apr 1, 2011 1:21 PM (in response to susmit_shukla)On more digging, found that application under test is not able to read the jar file from temp war location and this is the error:
2011-03-31 18:45:35,220 ERROR - Failed startup of context ShrinkWrapWebAppContext@1bdbfec@1bdbfec/test,file:/C:/Documents%20and%20Settings/user/Local%20Settings/Temp/Jetty_localhost_9090_export4261762815131158333test.war__test__wkwmj1/webapp/;jar:file:/C:/Documents%20and%20Settings/user/Local%20Settings/Temp/Jetty_localhost_9090_export4261762815131158333test.war__test__wkwmj1/webapp/WEB-INF/lib/org.glassfish.com.sun.faces-2.1.1.FCS.jar!/META-INF/resources;,file:/C:/DOCUME~1/user/LOCALS~1/Temp/export4261762815131158333test.war
com.comp.content.repository.ContentRuntimeException: Error : The file is not jar file C:\Documents%20and%20Settings\user\Local%20Settings\Temp\Jetty_localhost_9090_export4261762815131158333test.war__test__wkwmj1\webapp\WEB-INF\lib\com.comp.abc.sdk-1.0.3.jar
at com.comp.content.repository.Base4RepositoryFactory.getFiles(BaseRepositoryFactory.java:143)
Application is not able to read the jar file because spaces are encoded
Can we change the temp location where war is copied/extracted while deploying to jetty through arquillian?
-
2. Getting Exception while running a JSFUnit test bundled as war
susmit_shukla Apr 1, 2011 2:06 PM (in response to susmit_shukla)Found it,
Jetty uses java.io.tempdir system property, passed it to surefire plugin in pom and the location of temp war extraction got changed