Show better exception if deployment type is not supported
---------------------------------------------------------
Key: ARQ-684
URL:
https://issues.jboss.org/browse/ARQ-684
Project: Arquillian
Issue Type: Enhancement
Security Level: Public (Everyone can see)
Components: Deployable Containers SPI
Affects Versions: 1.0.0.CR6
Reporter: Karel Piwko
There are archives which are not supported by a container, e.g. an EAR on Tomcat.
There should be a better message is that happens than following:
{code}
[java] INFO: Starting Tomcat with: [java, -Dcom.sun.management.jmxremote.port=8089,
-Dcom.sun.management.jmxremote.ssl=false,
-Dcom.sun.management.jmxremote.authenticate=false, -Dbasedir=/home/tschloss/git/brms,
-Dlog.dir=log, -classpath,
/home/tschloss/QA/hudson/WORKSPACE/jboss-ews-1.0/tomcat6/bin/bootstrap.jar:/home/tschloss/QA/hudson/WORKSPACE/jboss-ews-1.0/tomcat6/bin/tomcat-juli.jar,
-Djava.endorsed.dirs=/home/tschloss/QA/hudson/WORKSPACE/jboss-ews-1.0/tomcat6/endorsed,
-Dcatalina.base=/home/tschloss/QA/hudson/WORKSPACE/jboss-ews-1.0/tomcat6,
-Dcatalina.home=/home/tschloss/QA/hudson/WORKSPACE/jboss-ews-1.0/tomcat6,
-Djava.io.tmpdir=/home/tschloss/QA/hudson/WORKSPACE/jboss-ews-1.0/tomcat6/temp,
org.apache.catalina.startup.Bootstrap, -config,
/home/tschloss/QA/hudson/WORKSPACE/jboss-ews-1.0/tomcat6/conf/server.xml, start]
[java] Dec 5, 2011 9:54:53 AM org.apache.catalina.core.AprLifecycleListener init
[java] INFO: The APR based Apache Tomcat Native library which allows optimal
performance in production environments was not found on the java.library.path:
/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/amd64/server:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/amd64:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/../lib/amd64:/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
[java] Dec 5, 2011 9:54:53 AM org.apache.coyote.http11.Http11Protocol init
[java] INFO: Initializing Coyote HTTP/1.1 on http-8080
[java] Dec 5, 2011 9:54:53 AM org.apache.catalina.startup.Catalina load
[java] INFO: Initialization processed in 734 ms
[java] Dec 5, 2011 9:54:53 AM org.apache.catalina.core.StandardService start
[java] INFO: Starting service Catalina
[java] Dec 5, 2011 9:54:53 AM org.apache.catalina.core.StandardEngine start
[java] INFO: Starting Servlet Engine: Apache Tomcat/6.0.32
[java] Dec 5, 2011 9:54:53 AM org.apache.catalina.startup.HostConfig deployDirectory
[java] INFO: Deploying web application directory host-manager
[java] Dec 5, 2011 9:54:54 AM org.apache.catalina.startup.HostConfig deployDirectory
[java] INFO: Deploying web application directory manager
[java] Dec 5, 2011 9:54:54 AM org.apache.catalina.startup.HostConfig deployDirectory
[java] INFO: Deploying web application directory ROOT
[java] Dec 5, 2011 9:54:54 AM org.apache.catalina.startup.HostConfig deployDirectory
[java] INFO: Deploying web application directory docs
[java] Dec 5, 2011 9:54:54 AM org.apache.catalina.startup.HostConfig deployDirectory
[java] INFO: Deploying web application directory examples
[java] Dec 5, 2011 9:54:54 AM org.apache.coyote.http11.Http11Protocol start
[java] INFO: Starting Coyote HTTP/1.1 on http-8080
[java] Dec 5, 2011 9:54:54 AM org.apache.catalina.core.ApplicationContext log
[java] INFO: Manager: init: Associated with Deployer
'Catalina:type=Deployer,host=localhost'
[java] Dec 5, 2011 9:54:54 AM org.apache.catalina.core.ApplicationContext log
[java] INFO: Manager: init: Global resources are available
[java] Dec 5, 2011 9:54:54 AM org.apache.jk.common.ChannelSocket init
[java] INFO: JK: ajp13 listening on /0.0.0.0:8009
[java] Dec 5, 2011 9:54:54 AM org.apache.catalina.core.ApplicationContext log
[java] INFO: Manager: list: Listing contexts for virtual host 'localhost'
[java] Dec 5, 2011 9:54:54 AM org.apache.jk.server.JkMain start
[java] INFO: Jk running ID=0 time=0/20 config=null
[java] Dec 5, 2011 9:54:54 AM org.apache.catalina.startup.Catalina start
[java] INFO: Server startup in 510 ms
[java] Dec 5, 2011 9:55:11 AM org.apache.catalina.core.ApplicationContext log
[java] INFO: Manager: deploy: Deploying web application at '/my-tests'
[java] Dec 5, 2011 9:55:11 AM org.apache.catalina.core.ApplicationContext log
[java] INFO: Manager: Uploading WAR file to
/home/tschloss/QA/hudson/WORKSPACE/jboss-ews-1.0/tomcat6/webapps/my-tests.war
[java] Dec 5, 2011 9:55:12 AM org.apache.catalina.startup.HostConfig deployWAR
[java] INFO: Deploying web application archive my-tests.war
[java] Dec 5, 2011 9:55:12 AM
org.jboss.arquillian.container.tomcat.ProtocolMetadataParser connect
[java] INFO: Connecting to JMX at
service:jmx:rmi:///jndi/rmi://localhost:8089/jmxrmi
[java] [2011-12-05 09:55:12,854] INFO -
[java] Starting [DummyTest]
[java] [2011-12-05 09:55:12,861] INFO - ==== dummyTest ====
[java] [2011-12-05 09:55:12,871] WARN - failed
org.jboss.qa.brms.bre.container.DummyTest - dummyTest
[java] Dec 5, 2011 9:55:12 AM org.apache.catalina.core.ApplicationContext log
[java] INFO: Manager: undeploy: Undeploying web application at '/my-tests'
[java] Dec 5, 2011 9:55:13 AM org.apache.catalina.startup.HostConfig checkResources
[java] INFO: Undeploying context [/my-tests]
[java] Dec 5, 2011 9:55:18 AM org.apache.catalina.core.ApplicationContext log
[java] INFO: Manager: deploy: Deploying web application at '/my-tests'
[java] Dec 5, 2011 9:55:18 AM org.apache.catalina.core.ApplicationContext log
[java] INFO: Manager: Uploading WAR file to
/home/tschloss/QA/hudson/WORKSPACE/jboss-ews-1.0/tomcat6/webapps/my-tests.war
[java] Dec 5, 2011 9:55:18 AM org.apache.catalina.startup.HostConfig deployWAR
[java] INFO: Deploying web application archive my-tests.war
[java] Dec 5, 2011 9:55:18 AM
org.jboss.arquillian.container.tomcat.ProtocolMetadataParser connect
[java] INFO: Connecting to JMX at
service:jmx:rmi:///jndi/rmi://localhost:8089/jmxrmi
[java] [2011-12-05 09:55:18,699] INFO -
[java] Starting [PersistenceTest]
[java] [2011-12-05 09:55:18,703] INFO - ==== testCEP ====
[java] [2011-12-05 09:55:18,707] WARN - failed Persistence - testCEP
[java] [2011-12-05 09:55:18,715] INFO - ==== testEMandEMF ====
[java] [2011-12-05 09:55:18,717] WARN - failed Persistence - testEMandEMF
[java] [2011-12-05 09:55:18,723] INFO - ==== testFireRules ====
[java] [2011-12-05 09:55:18,727] WARN - failed Persistence - testFireRules
[java] [2011-12-05 09:55:18,735] INFO - ==== testFireRulesSepparatedly ====
[java] [2011-12-05 09:55:18,738] WARN - failed Persistence -
testFireRulesSepparatedly
[java] [2011-12-05 09:55:18,744] INFO - ==== testInsert ====
[java] [2011-12-05 09:55:18,747] WARN - failed Persistence - testInsert
[java] [2011-12-05 09:55:18,753] INFO - ==== testInsertEvent ====
[java] [2011-12-05 09:55:18,755] WARN - failed Persistence - testInsertEvent
[java] Dec 5, 2011 9:55:18 AM org.apache.catalina.core.ApplicationContext log
[java] INFO: Manager: undeploy: Undeploying web application at '/my-tests'
[java] Dec 5, 2011 9:55:19 AM org.apache.catalina.startup.HostConfig checkResources
[java] INFO: Undeploying context [/my-tests]
[java] Tests run: 7, Failures: 7, Errors: 0, Skipped: 0, Time elapsed: 29.029 sec
<<< FAILURE!
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira