Skip to content

Instantly share code, notes, and snippets.

@aslakknutsen
aslakknutsen / JMSDescriptor.java
Created April 10, 2011 13:28
Simple HornetQ Descriptor Impl
/*
* JBoss, Home of Professional Open Source
* Copyright 2011 Red Hat Inc. and/or its affiliates and other contributors
* as indicated by the @authors tag. All rights reserved.
* 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
@aslakknutsen
aslakknutsen / Infinispan Demo
Created April 11, 2011 21:22
Exception after undeploy
23:17:22,953 INFO [org.jboss.as.server.deployment] (pool-2-thread-4) Content added at location /home/aslak/dev/servers/demo/jboss-server-2/standalone/data/content/18/91e38bc3db00ca389453c5fa3125d820fb0a22/content
23:17:22,958 INFO [org.jboss.as.server.deployment] (MSC service thread 1-1) Starting deployment of "cf4cfbe0-69fc-4a92-a635-d6f8bb11426a.war"
23:17:23,508 INFO [org.jboss.weld] (MSC service thread 1-3) Processing CDI deployment: cf4cfbe0-69fc-4a92-a635-d6f8bb11426a.war
23:17:23,794 INFO [org.jboss.weld] (MSC service thread 1-3) Starting Services for CDI deployment: cf4cfbe0-69fc-4a92-a635-d6f8bb11426a.war
23:17:23,807 INFO [org.jboss.weld] (MSC service thread 1-4) Starting weld service
23:17:24,506 INFO [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (MSC service thread 1-2) Starting JGroups Channel
23:17:24,507 INFO [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (MSC service thread 1-2) Unable to use any JGroups configuration mechanisms provided in properties {}. U
00:21:23,921 INFO [weld.Version] WELD-000900 1.1.0 (Final)
00:21:24,228 INFO [weld.Bootstrap] WELD-000101 Transactional services not available. Injection of @Inject UserTransaction not available. Transactional observers will be invoked synchronously.
00:21:24,471 INFO [solder.Version] Seam Solder 3.0.0.CR4 (build id: 3.0.0.CR4)
Exception in thread "Thread-0" com.google.common.collect.ComputationException: java.lang.ArrayStoreException: sun.reflect.annotation.TypeNotPresentExceptionProxy
at com.google.common.collect.ComputingConcurrentHashMap.compute(ComputingConcurrentHashMap.java:218)
at com.google.common.collect.ComputingConcurrentHashMap.apply(ComputingConcurrentHashMap.java:100)
at com.google.common.collect.MapMaker$ComputingMapAdapter.get(MapMaker.java:515)
at org.jboss.weld.resources.ClassTransformer.loadClass(ClassTransformer.java:183)
at org.jboss.weld.bootstrap.BeanDeployer.addClass(BeanDeployer.java:96)
at org.jboss.weld.bootstrap.BeanDeployer.addClasses(BeanDeployer.java:133)
@aslakknutsen
aslakknutsen / After
Created April 27, 2011 18:51
arquillian-core modules
[INFO] Arquillian Build
[INFO] Arquillian Core API
[INFO] Arquillian Core SPI
[INFO] Arquillian Core Implementation Base
[INFO] Arquillian Aggregator
[INFO] Arquillian Core Aggregator
[INFO] Arquillian Config API
[INFO] Arquillian Config Implementation Base
[INFO] Arquillian Config Aggregator
[INFO] Arquillian Test API
@aslakknutsen
aslakknutsen / gist:946571
Created April 28, 2011 15:27
Arquillian Dependencies
Compile
org.jboss.arquillian.container:arquillian-container-test-spi
org.jboss.arquillian.container:arquillian-container-spi
org.jboss.arquillian.test:arquillian-test-spi
Runtime
org.jboss.arquillian.core:arquillian-core-api
org.jboss.arquillian.core:arquillian-core-spi
org.jboss.arquillian.core:arquillian-core-impl-base
@aslakknutsen
aslakknutsen / OppsTestCase.java
Created May 9, 2011 10:26
JOops Test Impl, Auto discover dependencies (based on examples-domain from Arquillian-Core)
/*
* JBoss, Home of Professional Open Source
* Copyright 2011 Red Hat Inc. and/or its affiliates and other contributors
* as indicated by the @authors tag. All rights reserved.
* 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
@aslakknutsen
aslakknutsen / build.gradle
Created May 20, 2011 17:51
Gradle vs Maven
dependencies {
compile project(':test:api')
compile project(':test:impl-base') // Needed to extend TestExtension and include
compile project(':container:spi')
compile project(':container:test-api')
compile project(':container:test-spi')
compile libraries.shrinkwrap_impl
testCompile project(':core:impl-base')
@aslakknutsen
aslakknutsen / build.groovy
Created May 22, 2011 22:44
Auto generated Multi version testing tasks with Gradle
description: 'JUnit Implementation for the Arquillian Project'
dependencies {
compile project(':test:spi')
provided libraries.junit
testCompile project(':core:impl-base')
testCompile project(':test:impl-base')
testCompile libraries.mockito
@aslakknutsen
aslakknutsen / settings.xml
Created May 26, 2011 07:25
Maven Settings
<?xml version="1.0" encoding="UTF-8"?>
<settings xmlns="http://maven.apache.org/settings/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
<servers>
<server>
<id>jboss-developer-repository-group</id>
<username>aslak</username>
@aslakknutsen
aslakknutsen / WebAppDescriptorProto.java
Created June 14, 2011 19:02
A non hierarchy take on Descriptors
/*
* JBoss, Home of Professional Open Source
* Copyright 2011 Red Hat Inc. and/or its affiliates and other contributors
* as indicated by the @authors tag. All rights reserved.
* 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