Skip to content

Instantly share code, notes, and snippets.

View slaskawi's full-sized avatar

Sebastian Łaskawiec slaskawi

  • MongoDB
  • Poland
View GitHub Profile
@Qualifier
@Retention(RUNTIME)
@Target({TYPE, METHOD, FIELD, PARAMETER})
public @interface CoffeeOrdered {
}
public class Waiter {
@CoffeeOrdered
@Inject
@Qualifier
@Retention(RUNTIME)
@Target({TYPE, METHOD, FIELD, PARAMETER})
public @interface CoffeeOrdered {
}
public class Waiter {
@Inject
@CoffeeOrdered
10:19:21,815 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 52) MSC000001: Failed to start service jboss.deployment.unit."CustomCacheStore-1.0.war".component.SpecificCacheManagerTest.START: org.jboss.msc.service.StartException in service jboss.deployment.unit."CustomCacheStore-1.0.war".component.SpecificCacheManagerTest.START: java.lang.IllegalStateException: JBAS011048: Failed to construct component instance
at org.jboss.as.ee.component.ComponentStartService$1.run(ComponentStartService.java:57) [jboss-as-ee-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [rt.jar:1.8.0_40]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [rt.jar:1.8.0_40]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0_40]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0_40]
at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_40]
at o
org.infinispan.jcache
JCacheFailoverIT.testRemoteListener
org.infinispan.server.test.client.rest
RESTReplicationIT(replmode-udp).testReplicationDelete
RESTReplicationIT(distmode-udp).testReplicationPost
RESTReplicationIT(replmode-udp).testReplicationDelete
RESTReplicationIT(replmode-udp).testReplicationPost
TestSuite: org.infinispan.atomic.sharded.collections
<subsystem xmlns="urn:infinispan:server:core:8.3" default-cache-container="local">
<cache-container name="cc1" default-cache="default" statistics="true">
...
</cache-container>
<cache-container name="cc2" default-cache="default" statistics="true">
...
</cache-container>
</subsystem>
<subsystem xmlns="urn:infinispan:server:endpoint:8.0">
<hotrod-connector socket-binding="hotrod" cache-container="local">
/opt/jdk1.8.0_40/bin/java -ea -Dlog4j.configurationFile=/home/slaskawi/work/infinispan/infinispan/server/router/../../etc/log4j2.xml -Dbuild.directory=/home/slaskawi/work/infinispan/infinispan/server/router/target -Xmx768m -Didea.launcher.port=7533 -Didea.launcher.bin.path=/opt/idea-IU-145.597.3/bin -Didea.junit.sm_runner -Dfile.encoding=UTF-8 -classpath /opt/idea-IU-145.597.3/lib/idea_rt.jar:/opt/idea-IU-145.597.3/plugins/junit/lib/junit-rt.jar:/opt/jdk1.8.0_40/jre/lib/resources.jar:/opt/jdk1.8.0_40/jre/lib/jce.jar:/opt/jdk1.8.0_40/jre/lib/jsse.jar:/opt/jdk1.8.0_40/jre/lib/javaws.jar:/opt/jdk1.8.0_40/jre/lib/deploy.jar:/opt/jdk1.8.0_40/jre/lib/plugin.jar:/opt/jdk1.8.0_40/jre/lib/management-agent.jar:/opt/jdk1.8.0_40/jre/lib/jfxswt.jar:/opt/jdk1.8.0_40/jre/lib/jfr.jar:/opt/jdk1.8.0_40/jre/lib/rt.jar:/opt/jdk1.8.0_40/jre/lib/charsets.jar:/opt/jdk1.8.0_40/jre/lib/ext/sunpkcs11.jar:/opt/jdk1.8.0_40/jre/lib/ext/sunjce_provider.jar:/opt/jdk1.8.0_40/jre/lib/ext/dnsns.jar:/opt/jdk1.8.0_40/jre/lib/ext/sunec.jar:/opt/
git clone https://github.com/infinispan/infinispan.git
cd infinispan
mvn clean install -DskipTests
wget -L "https://repository.jboss.org/nexus/service/local/artifact/maven/redirect?r=snapshots&g=org.infinispan.server&a=infinispan-server-build&v=9.0.0-SNAPSHOT&e=zip"
git clone https://github.com/jboss-dockerfiles/infinispan.git
cd infinispan
#Replace this line:
RUN INFINISPAN_SHA=$(curl $DISTRIBUTION_URL.sha1); curl -o /tmp/server.zip $DISTRIBUTION_URL && sha1sum /tmp/server.zip | grep $INFINISPAN_SHA \
&& unzip -q /tmp/server.zip -d $HOME && mv $HOME/infinispan-server-* $HOME/infinispan-server && rm /tmp/server.zip
#With this:
USER root
ADD infinispan-server-9.0.0-SNAPSHOT /opt/jboss/infinispan-server
#Since we are playing with development versions, we don't care about the permissions
RUN chmod -R 777 /opt/jboss/infinispan-server
RUN chmod +x /opt/jboss/infinispan-server/bin/*.sh