Hi David When running TCK in Tomcat you have to manually add some jars to lib folder, CDI API is a one of them. Others are JSR299 API and SPI jars.
Also you have to specify "tomcat.home" property. When running in Eclipse via TestNG plugin, you can pass over via -Dtomcat.home VM parameter. One other thing is that you have to configure your tomcat tomcat-users.xml file with correct user. Otherwise, it is not possible to deploy war from Tomcat deployer. (AFAK User : tests password : secret role:manager-gui for Tomcat 7) web-profile-suite.xml may not reflect latest suite file, 1.0.4 CR2. You can download it from https://repository.jboss.org/nexus/content/groups/public/org/jboss/jsr299/tck/ Thanks, --Gurkan ----- Original Message ---- From: David Blevins <[email protected]> To: [email protected] Sent: Wed, January 26, 2011 6:19:55 AM Subject: Running TCK in Tomcat Attempting to run the in-Tomcat version of the tck. Not having any luck. Doesn't seem like the expected files are being copied into Tomcat. Namely, it seems to be missing the CDI API jar. Before I spend much time digging into this, can someone verify that these are the correct steps (taken from this email http://markmail.org/message/fjvba7dow55dirt7) --diff-- Index: webbeans-tck/src/test/resources/META-INF/openwebbeans/openwebbeans.properties =================================================================== --- webbeans-tck/src/test/resources/META-INF/openwebbeans/openwebbeans.properties (revision 1063398) +++ webbeans-tck/src/test/resources/META-INF/openwebbeans/openwebbeans.properties (working copy) @@ -36,7 +36,7 @@ org.apache.webbeans.spi.ScannerService=org.apache.webbeans.test.tck.mock.TCKMetaDataDiscoveryImpl #Used for Standalone -org.apache.webbeans.spi.deployer.useEjbMetaDataDiscoveryService=true +org.apache.webbeans.spi.deployer.useEjbMetaDataDiscoveryService=false #Used for WebProfile TCK #org.apache.webbeans.spi.deployer.useEjbMetaDataDiscoveryService=false \ No newline at end of file Index: webbeans-tck/src/test/resources/META-INF/jboss-test-harness.properties =================================================================== --- webbeans-tck/src/test/resources/META-INF/jboss-test-harness.properties (revision 1063398) +++ webbeans-tck/src/test/resources/META-INF/jboss-test-harness.properties (working copy) @@ -22,11 +22,11 @@ org.jboss.testharness.spi.Containers=org.apache.webbeans.test.tck.ContainersImpl org.jboss.jsr299.tck.spi.EL=org.apache.webbeans.test.tck.ELImpl -org.jboss.testharness.standalone=true +org.jboss.testharness.standalone=false #jboss-as.dir=/tmp #jboss.force.restart=false org.jboss.testharness.libraryDirectory=target/dependency/lib -org.jboss.testharness.runIntegrationTests=false +org.jboss.testharness.runIntegrationTests=true org.jboss.testharness.api.TestLauncher=org.jboss.testharness.impl.runner.servlet.ServletTestLauncher Index: webbeans-tck/pom.xml =================================================================== --- webbeans-tck/pom.xml (revision 1063398) +++ webbeans-tck/pom.xml (working copy) @@ -347,7 +347,7 @@ <artifactId>maven-surefire-plugin</artifactId> <configuration> <suiteXmlFiles> - <suiteXmlFile>standalone-suite.xml</suiteXmlFile> + <suiteXmlFile>webprofile-suite.xml</suiteXmlFile> </suiteXmlFiles> <systemProperties> --diff-- Then in webbeans-tck I run maven like so: mvn install -Ptck -Dtomcat.home=/Users/dblevins/apache-tomcat-6.0.20/ -David
