This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@GenericConfiguration | |
@Retention(RUNTIME) | |
@Target( { TYPE, METHOD, PARAMETER, FIELD }) | |
public @interface Service {} | |
@Produces | |
@Service @S3 | |
public BlobStoreContext getS3BlobStoreContext(BlobStoreContextFactory factory) { | |
return factory.openContext(...); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class CatFilter implements Filter | |
{ | |
@Inject | |
Sewer sewer; | |
public void init(FilterConfig filterConfig) throws ServletException | |
{ | |
isSewerNameOk(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static final Asset JETTY_WEB = new ByteArrayAsset("<Configure id=\"webAppCtx\" class=\"org.mortbay.jetty.webapp.WebAppContext\"><Call class=\"org.jboss.weld.environment.jetty.WeldServletHandler\" name=\"process\"><Arg><Ref id=\"webAppCtx\"/></Arg></Call></Configure>".getBytes()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Get any deployment descriptors in the bean deployment archive. | |
* | |
* The container will normally return a single deployment descriptor per bean | |
* deployment archive (the physical META-INF/beans.xml or WEB-INF/beans.xml), | |
* however it is permitted to return other deployment descriptors defined | |
* using other methods. | |
* | |
* @return the URLs pointing to the deployment descriptor, | |
* or an empty set if none are present |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
WARNING: No container configuration found for URI: java:urn:org.jboss.arquillian.container.jetty.embedded_6_1 | |
java.lang.IllegalStateException: Service org.jboss.arquillian.container.jetty.embedded_6_1.JettyEmbeddedConfiguration does not implement expected type org.jboss.arquillian.spi.ContainerConfiguration | |
at org.jboss.arquillian.spi.util.ServiceLoader.reload(ServiceLoader.java:190) | |
at org.jboss.arquillian.spi.util.ServiceLoader.getProviders(ServiceLoader.java:282) | |
at org.jboss.arquillian.impl.DynamicServiceLoader.all(DynamicServiceLoader.java:39) | |
at org.jboss.arquillian.impl.XmlConfigurationBuilder.build(XmlConfigurationBuilder.java:102) | |
at org.jboss.arquillian.junit.Arquillian.<init>(Arquillian.java:84) | |
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) | |
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) | |
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NamedThingy CONTEXT_XML = new NamedThing() { | |
public String getName() { return "META-INF/context.xml"; } | |
public String getAsset() { return blah; } | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SEVERE: Unable to replace Tomcat AnnotationProcessor. CDI injection will not be available in Servlets, Filters, or Listeners | |
java.lang.RuntimeException: Cannot create WeldForwardingAnnotationProcessor | |
at org.jboss.weld.environment.tomcat.WeldForwardingAnnotationProcessor.createInstance(WeldForwardingAnnotationProcessor.java:77) | |
at org.jboss.weld.environment.tomcat.WeldForwardingAnnotationProcessor.replaceAnnotationProcessor(WeldForwardingAnnotationProcessor.java:64) | |
at org.jboss.weld.environment.servlet.Listener.contextInitialized(Listener.java:150) | |
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3972) | |
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4467) | |
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791) | |
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771) | |
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* JBoss, Home of Professional Open Source | |
* Copyright 2010, Red Hat, Inc., and individual contributors | |
* by the @authors tag. See the copyright.txt in the distribution for a | |
* full listing of individual contributors. | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* http://www.apache.org/licenses/LICENSE-2.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[pmuir@dotterel pastecode]$ cat target/failsafe-reports/TestSuite.txt | |
------------------------------------------------------------------------------- | |
Test set: TestSuite | |
------------------------------------------------------------------------------- | |
Tests run: 6, Failures: 2, Errors: 0, Skipped: 1, Time elapsed: 14.201 sec <<< FAILURE! | |
exactSearchTest(org.jboss.weld.examples.pastecode.test.selenium.PasteCodeTest) Time elapsed: 1.279 sec <<< FAILURE! | |
java.lang.AssertionError: A page should contain 'Posted by graham ...' expected:<true> but was:<false> | |
at org.testng.Assert.fail(Assert.java:89) | |
at org.testng.Assert.failNotEquals(Assert.java:443) | |
at org.testng.Assert.assertTrue(Assert.java:37) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
------------------------------------------------------------------------------- | |
Test set: TestSuite | |
------------------------------------------------------------------------------- | |
Tests run: 6, Failures: 2, Errors: 0, Skipped: 2, Time elapsed: 19.391 sec <<< FAILURE! | |
newPublicPostTest(org.jboss.weld.examples.pastecode.test.selenium.PasteCodeTest) Time elapsed: 0.988 sec <<< FAILURE! | |
java.lang.AssertionError: A page should contain text 'Posted by PublicTester just now' expected:<true> but was:<false> | |
at org.testng.Assert.fail(Assert.java:89) | |
at org.testng.Assert.failNotEquals(Assert.java:443) | |
at org.testng.Assert.assertTrue(Assert.java:37) | |
at org.jboss.weld.examples.pastecode.test.selenium.PasteCodeTest.newPublicPostTest(PasteCodeTest.java:119) |
OlderNewer