Verified and committing updated versions for international module now.
It's all working.<br><br><div class="gmail_quote">On Mon, May 24, 2010 at 6:09 PM, Dan Allen <span dir="ltr"><<a href="mailto:dan.j.allen@gmail.com">dan.j.allen@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Actually, the problem is explained here:<div><br><div><a href="http://community.jboss.org/message/544577#544577" target="_blank">http://community.jboss.org/message/544577#544577</a></div><div><br></div><div>...and it's cleared up now.<br>
<br><div class="gmail_quote"><div><div></div><div class="h5">On Mon, May 24, 2010 at 4:09 PM, Lincoln Baxter, III <span dir="ltr"><<a href="mailto:lincolnbaxter@gmail.com" target="_blank">lincolnbaxter@gmail.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><div></div><div class="h5">
See the included Test Case for an example: (Below)<br><br>The Latest SNAPSHOT of Seam XML and the Alpha2 of Arquillian (or SNAPSHOT), exceptions occur when attempting to run any test suite. Any thoughts?<br><br> <dependency><br>
<groupId>org.jboss.seam.xml</groupId><br> <artifactId>seam-xml-bean-config</artifactId><br> <version>3.0.0-SNAPSHOT</version><br> <scope>test</scope><br>
</dependency><br><br><br> <dependency><br> <groupId>org.jboss.arquillian</groupId><br> <artifactId>arquillian-junit</artifactId><br> <version>1.0.0.Alpha2</version><br>
<scope>test</scope><br> </dependency><br>... etc<br><br>Exception:<br><br>org.jboss.arquillian.impl.event.FiredEventException: java.lang.RuntimeException: Could not get Deployment<br>
at org.jboss.arquillian.impl.event.MapEventManager.fire(MapEventManager.java:68)<br>
at org.jboss.arquillian.impl.context.AbstractEventContext.fire(AbstractEventContext.java:115)<br> at org.jboss.arquillian.impl.EventTestRunnerAdaptor.beforeClass(EventTestRunnerAdaptor.java:78)<br> at org.jboss.arquillian.junit.Arquillian$2.evaluate(Arquillian.java:151)<br>
at org.jboss.arquillian.junit.Arquillian$3$1.evaluate(Arquillian.java:170)<br> at org.jboss.arquillian.junit.Arquillian$MultiStatementExecutor.execute(Arquillian.java:272)<br> at org.jboss.arquillian.junit.Arquillian$3.evaluate(Arquillian.java:166)<br>
at org.junit.runners.ParentRunner.run(ParentRunner.java:236)<br> at org.jboss.arquillian.junit.Arquillian.run(Arquillian.java:118)<br> at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:46)<br>
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)<br> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)<br> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)<br>
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)<br> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)<br>Caused by: java.lang.RuntimeException: Could not get Deployment<br>
at org.jboss.arquillian.impl.DeploymentAnnotationArchiveGenerator.generateApplicationArchive(DeploymentAnnotationArchiveGenerator.java:78)<br> at org.jboss.arquillian.impl.ClientDeploymentGenerator.generate(ClientDeploymentGenerator.java:57)<br>
at org.jboss.arquillian.impl.handler.ArchiveGenerator.callback(ArchiveGenerator.java:52)<br> at org.jboss.arquillian.impl.handler.ArchiveGenerator.callback(ArchiveGenerator.java:42)<br> at org.jboss.arquillian.impl.event.MapEventManager.fire(MapEventManager.java:63)<br>
... 14 more<br>Caused by: java.lang.reflect.InvocationTargetException<br> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)<br>
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br> at java.lang.reflect.Method.invoke(Method.java:597)<br> at org.jboss.arquillian.impl.DeploymentAnnotationArchiveGenerator.generateApplicationArchive(DeploymentAnnotationArchiveGenerator.java:55)<br>
... 18 more<br>Caused by: java.lang.IllegalArgumentException: org/jboss/seam/international/test/timezone/override.xml not found in classloader sun.misc.Launcher$AppClassLoader@77cde100<br> at org.jboss.shrinkwrap.impl.base.Validate.notNull(Validate.java:44)<br>
at org.jboss.shrinkwrap.impl.base.asset.ClassLoaderAsset.<init>(ClassLoaderAsset.java:64)<br> at org.jboss.shrinkwrap.impl.base.asset.ClassLoaderAsset.<init>(ClassLoaderAsset.java:48)<br> at org.jboss.shrinkwrap.impl.base.container.ContainerBase.addManifestResource(ContainerBase.java:464)<br>
at org.jboss.seam.international.test.timezone.DefaultTimeZoneOverrideTest.createTestArchive(DefaultTimeZoneOverrideTest.java:45)<br> ... 23 more<br><br>org.jboss.arquillian.impl.event.FiredEventException: java.lang.IllegalStateException: No org.jboss.shrinkwrap.api.Archive found in context<br>
at org.jboss.arquillian.impl.event.MapEventManager.fire(MapEventManager.java:68)<br> at org.jboss.arquillian.impl.context.AbstractEventContext.fire(AbstractEventContext.java:115)<br> at org.jboss.arquillian.impl.EventTestRunnerAdaptor.afterClass(EventTestRunnerAdaptor.java:86)<br>
at org.jboss.arquillian.junit.Arquillian$3$2.evaluate(Arquillian.java:174)<br> at org.jboss.arquillian.junit.Arquillian$MultiStatementExecutor.execute(Arquillian.java:272)<br> at org.jboss.arquillian.junit.Arquillian$3.evaluate(Arquillian.java:166)<br>
at org.junit.runners.ParentRunner.run(ParentRunner.java:236)<br> at org.jboss.arquillian.junit.Arquillian.run(Arquillian.java:118)<br> at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:46)<br>
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)<br> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)<br> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)<br>
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)<br> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)<br>Caused by: java.lang.IllegalStateException: No org.jboss.shrinkwrap.api.Archive found in context<br>
at org.jboss.arquillian.impl.Validate.stateNotNull(Validate.java:75)<br> at org.jboss.arquillian.impl.handler.ContainerUndeployer.callback(ContainerUndeployer.java:58)<br> at org.jboss.arquillian.impl.handler.ContainerUndeployer.callback(ContainerUndeployer.java:47)<br>
at org.jboss.arquillian.impl.event.MapEventManager.fire(MapEventManager.java:63)<br> ... 13 more<br><br><br><br>/*<br> * JBoss, Home of Professional Open Source<br> * Copyright 2010, Red Hat, Inc., and individual contributors<br>
* by the @authors tag. See the copyright.txt in the distribution for a<br> * full listing of individual contributors.<br> *<br> * This is free software; you can redistribute it and/or modify it<br> * under the terms of the GNU Lesser General Public License as<br>
* published by the Free Software Foundation; either version 2.1 of<br> * the License, or (at your option) any later version.<br> *<br> * This software is distributed in the hope that it will be useful,<br> * but WITHOUT ANY WARRANTY; without even the implied warranty of<br>
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU<br> * Lesser General Public License for more details.<br> *<br> * You should have received a copy of the GNU Lesser General Public<br> * License along with this software; if not, write to the Free<br>
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA<br> * 02110-1301 USA, or see the FSF site: <a href="http://www.fsf.org" target="_blank">http://www.fsf.org</a>.<br> */<br>package org.jboss.seam.international.test.timezone;<br>
<br>import javax.inject.Inject;<br><br>import org.jboss.arquillian.api.Deployment;<br>import org.jboss.arquillian.junit.Arquillian;<br>import org.jboss.seam.international.test.MockLogger;<br>import org.jboss.seam.international.timezone.DefaultTimeZoneProducer;<br>
import org.jboss.shrinkwrap.api.ArchivePaths;<br>import org.jboss.shrinkwrap.api.ShrinkWrap;<br>import org.jboss.shrinkwrap.api.spec.JavaArchive;<br>import org.jboss.shrinkwrap.impl.base.asset.ByteArrayAsset;<br>import org.joda.time.DateTimeZone;<br>
import org.junit.Assert;<br>import org.junit.Test;<br>import org.junit.runner.RunWith;<br><br>@RunWith(Arquillian.class)<br>public class DefaultTimeZoneOverrideTest<br>{<br> @Deployment<br> public static JavaArchive createTestArchive()<br>
{<br> return ShrinkWrap.create("test.jar", JavaArchive.class).addClasses(MockLogger.class, DefaultTimeZoneProducer.class).addManifestResource(new ByteArrayAsset(new byte[0]), ArchivePaths.create("beans.xml")).addManifestResource("org/jboss/seam/international/test/timezone/override.xml", ArchivePaths.create("seam-beans.xml"));<br>
}<br><br> @Inject<br> DateTimeZone timeZone;<br><br> @Test<br> public void testDefaultTimeZoneProducerDirect()<br> {<br> Assert.assertNotNull(timeZone);<br> Assert.assertEquals("America/Tijuana", timeZone.getID());<br>
}<br>}<br><font color="#888888"><br><br><br clear="all"><br>-- <br>Lincoln Baxter, III<br><a href="http://ocpsoft.com" target="_blank">http://ocpsoft.com</a><br><a href="http://scrumshark.com" target="_blank">http://scrumshark.com</a><br>
"Keep it Simple"<br>
</font><br></div></div><div class="im">_______________________________________________<br>
seam-dev mailing list<br>
<a href="mailto:seam-dev@lists.jboss.org" target="_blank">seam-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/seam-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/seam-dev</a><br>
<br></div></blockquote></div><br><br clear="all"><div class="im"><br>-- <br>Dan Allen<br>Senior Software Engineer, Red Hat | Author of Seam in Action<br>Registered Linux User #231597<br><br><a href="http://mojavelinux.com" target="_blank">http://mojavelinux.com</a><br>
<a href="http://mojavelinux.com/seaminaction" target="_blank">http://mojavelinux.com/seaminaction</a><br><a href="http://www.google.com/profiles/dan.j.allen" target="_blank">http://www.google.com/profiles/dan.j.allen</a><br>
</div></div></div>
</blockquote></div><br><br clear="all"><br>-- <br>Lincoln Baxter, III<br><a href="http://ocpsoft.com">http://ocpsoft.com</a><br><a href="http://scrumshark.com">http://scrumshark.com</a><br>"Keep it Simple"<br>