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 ConfigurationServiceImplementation | |
extends RemoteServiceServlet // The GWT servlet with a public final void doPost(...) method | |
implements ConfigurationService { | |
... | |
// We want to use the DI way here | |
@Inject private Repository repository; | |
public String save(IFramePerspectiveConfiguration configuration) { |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<beans xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xmlns:security="urn:java:org.jboss.seam.security" | |
xmlns:s="urn:java:ee" | |
xmlns:guvnorRepository="urn:java:org.drools.guvnor.server.repository" | |
xmlns:guvnorSecurity="urn:java:org.drools.guvnor.server.security" | |
xsi:schemaLocation=" | |
http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/beans_1_0.xsd | |
http://jboss.org/schema/weld/beans http://jboss.org/schema/weld/beans_1_1.xsd"> |
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
@RunWith(Arquillian.class) | |
public class PrototypeArqTest { | |
@Deployment | |
public static JavaArchive createTestArchive() { | |
return ShrinkWrap.create(JavaArchive.class, "test.jar") | |
.addClass(RulesRepositoryManager.class) | |
.addClass(RulesRepository.class) | |
.addClass(PrototypeArqTest.class) | |
.addAsManifestResource(new File("src/main/webapp/WEB-INF/beans.xml")); |
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
@RunWith(Arquillian.class) | |
public class WebappPrototypeArqTest { | |
@Deployment | |
public static WebArchive createDeployment() { | |
// TODO gwt dev is in the classpath so it shades tomcat and the arq container can't boot (nevermind the classpath of shrinkwrap!) | |
WebArchive webArchive = ShrinkWrap.create(WebArchive.class) | |
.addAsResource(new File("target/classes/")) | |
.addAsWebInfResource(new File("target/guvnor-webapp-5.3.0-SNAPSHOT/WEB-INF/web.xml"), "web.xml") |
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
// Using arquillian with tomcat6 embedded with this @Deployment | |
@Deployment | |
public static WebArchive createDeployment() { | |
return ShrinkWrap.create(ExplodedImporter.class, "guvnor-webapp-5.3.0-SNAPSHOT.war") | |
.importDirectory(new File("target/guvnor-webapp-5.3.0-SNAPSHOT/")) | |
.as(WebArchive.class); | |
} | |
// Debug logs from URLScanner.handle(): | |
Handle file META-INF/beans.xml from file:/home/gdesmet/projects/jboss/forked-guvnor/guvnor-webapp/target/classes/META-INF/beans.xml |
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
// Using arquillian with tomcat6 embedded with this @Deployment | |
@Deployment | |
public static WebArchive createDeployment() { | |
return ShrinkWrap.create(ExplodedImporter.class, "guvnor-webapp-5.3.0-SNAPSHOT.war") | |
.importDirectory(new File("target/guvnor-webapp-5.3.0-SNAPSHOT/")) | |
.as(WebArchive.class); | |
} | |
results in |
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
Loading module: org.drools.guvnor.Guvnor | |
Top URL: http://127.0.0.1:8888/org.drools.guvnor.Guvnor/Guvnor.html?gwt.codesvr=127.0.0.1:9997 | |
User agent: FF | |
Remote host: localhost.localdomain:58038 | |
Tab key: 0x95bfb190 | |
Session key: >K<mMIW"J'<2l2Zw | |
DEBUG: Validating newly compiled units. | |
ERROR: Errors in 'jar:file:/home/gdesmet/.m2/repository/com/google/gwt/gwt-user/2.3.0/gwt-user-2.3.0.jar!/com/google/gwt/editor/client/EditorDriver.java'. | |
ERROR: Errors in 'jar:file:/home/gdesmet/.m2/repository/com/google/gwt/gwt-user/2.3.0/gwt-user-2.3.0.jar!/com/google/gwt/editor/client/impl/AbstractSimpleBeanEditorDriver.java'. | |
ERROR: Errors in 'jar:file:/home/gdesmet/.m2/repository/com/google/gwt/gwt-user/2.3.0/gwt-user-2.3.0.jar!/com/google/gwt/editor/client/impl/BaseEditorDriver.java'. |
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
sun.misc.InvalidJarIndexException: Invalid index | |
at sun.misc.URLClassPath$JarLoader.getResource(URLClassPath.java:858) | |
at sun.misc.URLClassPath$JarLoader.getResource(URLClassPath.java:765) | |
at sun.misc.URLClassPath$JarLoader.findResource(URLClassPath.java:735) | |
at sun.misc.URLClassPath$1.next(URLClassPath.java:196) | |
at sun.misc.URLClassPath$1.hasMoreElements(URLClassPath.java:206) | |
at java.net.URLClassLoader$3$1.run(URLClassLoader.java:416) | |
at java.security.AccessController.doPrivileged(Native Method) | |
at java.net.URLClassLoader$3.next(URLClassLoader.java:413) | |
at java.net.URLClassLoader$3.hasMoreElements(URLClassLoader.java:438) |
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
[INFO] ------------------------------------------------------------- | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] Reactor Summary: | |
[INFO] | |
[INFO] Drools and jBPM integration multiproject .......... SUCCESS [0.431s] | |
[INFO] Drools Benchmark .................................. SUCCESS [3.974s] | |
[INFO] Drools grid ....................................... SUCCESS [0.045s] | |
[INFO] Drools :: Drools Grid Impl ........................ SUCCESS [2.651s] | |
[INFO] Drools container integration multiproject ......... SUCCESS [0.034s] | |
[INFO] Drools Spring ..................................... FAILURE [1.513s] |
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
/usr/lib/jvm/java-6-sun/bin/java -Didea.launcher.port=7534 -Didea.launcher.bin.path=/home/gdesmet/opt/ide/idea-IU-107.587/bin -Dfile.encoding=UTF-8 -classpath /home/gdesmet/opt/ide/idea-IU-107.587/lib/idea_rt.jar:/home/gdesmet/opt/ide/idea-IU-107.587/plugins/junit/lib/junit-rt.jar:/usr/lib/jvm/java-6-sun/jre/lib/management-agent.jar:/usr/lib/jvm/java-6-sun/jre/lib/plugin.jar:/usr/lib/jvm/java-6-sun/jre/lib/resources.jar:/usr/lib/jvm/java-6-sun/jre/lib/jce.jar:/usr/lib/jvm/java-6-sun/jre/lib/charsets.jar:/usr/lib/jvm/java-6-sun/jre/lib/deploy.jar:/usr/lib/jvm/java-6-sun/jre/lib/jsse.jar:/usr/lib/jvm/java-6-sun/jre/lib/javaws.jar:/usr/lib/jvm/java-6-sun/jre/lib/rt.jar:/usr/lib/jvm/java-6-sun/jre/lib/ext/localedata.jar:/usr/lib/jvm/java-6-sun/jre/lib/ext/sunpkcs11.jar:/usr/lib/jvm/java-6-sun/jre/lib/ext/sunjce_provider.jar:/usr/lib/jvm/java-6-sun/jre/lib/ext/dnsns.jar:/home/gdesmet/projects/jboss/forked-guvnor/guvnor-webapp/target/test-classes:/home/gdesmet/projects/jboss/forked-guvnor/guvnor-webapp/target/class |
OlderNewer