This file contains hidden or 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
ERROR 24-10 19:21:27,157 (Logger.java:error:1095) Login failed | |
java.lang.RuntimeException: org.jboss.solder.beanManager.BeanManagerUnavailableException: Failed to locate BeanManager using any of these providers: org.jboss.solder.servlet.beanManager.ServletContextAttributeProvider(20), org.jboss.solder.beanManager.DefaultJndiBeanManagerProvider(11), org.jboss.solder.beanManager.ServletContainerJndiBeanManagerProvider(10) | |
at org.jboss.seam.security.IdentityImpl.authenticate(IdentityImpl.java:241) | |
at org.jboss.seam.security.IdentityImpl.login(IdentityImpl.java:160) | |
at org.jboss.seam.security.IdentityImpl$Proxy$_$$_WeldClientProxy.login(IdentityImpl$Proxy$_$$_WeldClientProxy.java) | |
at org.drools.guvnor.server.security.SecurityServiceImpl.tryAutoLoginAsGuest(SecurityServiceImpl.java:105) | |
at org.drools.guvnor.server.security.SecurityServiceImpl.getCurrentUser(SecurityServiceImpl.java:97) | |
at org.drools.guvnor.server.security.SecurityServiceImpl$Proxy$_$$_WeldClientProxy.getCurrentUser(SecurityServiceImpl$Prox |
This file contains hidden or 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
I followed this: | |
http://docs.jboss.org/seam/3/solder/latest/reference/en-US/html/servlet-installation.html#installation.pre-servlet-3 | |
in my web.xml and got: | |
java.lang.NullPointerException | |
at org.jboss.solder.servlet.event.ImplicitServletObjectsHolder.responseInitialized(ImplicitServletObjectsHolder.java:91) | |
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | |
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | |
at java.lang.reflect.Method.invoke(Method.java:597) |
This file contains hidden or 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 void testQueryPositional() throws Exception { | |
String str = "" + | |
"package org.drools.test \n" + | |
"import org.drools.Person \n" + | |
"global java.util.List list\n" + | |
"query peeps( String $name, String $likes, int $age ) \n" + | |
" Person( $name := name, $likes := likes, $age := age; ) \n"+ | |
"end\n"; | |
... | |
} |
This file contains hidden or 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
rule "multipleQueensHorizontal" | |
when | |
$q1 : Queen($id : id, $i : rowIndex) | |
$q2 : Queen(id > $id, rowIndex == $i) | |
then | |
System.out.println("Rule called for " + $q1 + " and " + $q2); | |
end |
This file contains hidden or 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
private static Method hackMethod; | |
static { | |
try { | |
hackMethod = Class.forName("org.drools.planner.core.score.buildin.simple.SimpleScoreCalculator").getMethod("increment"); | |
} catch (ClassNotFoundException e) { | |
throw new IllegalStateException("No such class", e); | |
} catch (NoSuchMethodException e) { | |
throw new IllegalStateException("No such method", e); |
This file contains hidden or 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
multipleQueensHorizontal because of col2@row4 and col7@row4 | |
2011-12-16 17:35:17,219 [main] TRACE - 1 = -1 | |
multipleQueensHorizontal because of col1@row2 and col6@row2 | |
2011-12-16 17:35:17,221 [main] TRACE - 1 = -2 | |
multipleQueensHorizontal because of col0@row0 and col5@row0 | |
2011-12-16 17:35:17,221 [main] TRACE - 1 = -3 | |
2011-12-16 17:35:17,221 [main] TRACE calculateScoreFromWorkingMemory = -3 | |
2011-12-16 17:35:17,221 [main] INFO Solver started: time spend (8), score (-3), new best score (-3), random seed (0). | |
2011-12-16 17:35:17,223 [main] TRACE Before doing move col5@row0 => row2 | |
retractLeftTuple with activation [Activation rule=multipleQueensHorizontal, act#=0, salience=0, tuple=[fact 0:22:32455963:32455963:25:DEFAULT:col5@row2] [fact 0:17:31497899:31497899:17:DEFAULT:col0@ |
This file contains hidden or 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
<build> | |
<resources> | |
<resource> | |
<directory>${basedir}/src/test/resources</directory> | |
</resource> | |
<resource> | |
<directory>${basedir}/src/test/filtered-resources</directory> | |
<filtering>true</filtering> | |
</resource> | |
</resources> |
This file contains hidden or 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
package org.jboss.qa.brms.persistencequery | |
import org.jboss.qa.brms.persistencequery.Fact; | |
query follows(String name, String next) | |
( or | |
Fact ( name, next; ) | |
( and | |
Fact( name, $middle; ) | |
follows( $middle, next; ) |
This file contains hidden or 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
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". | |
SLF4J: Defaulting to no-operation (NOP) logger implementation | |
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. | |
Exception in thread "main" javax.persistence.PersistenceException: [PersistenceUnit: org.drools.persistence.jpa] Unable to build EntityManagerFactory | |
at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:677) | |
at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:126) | |
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:52) | |
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:34) | |
at org.jboss.qa.brms.persistencequery.PersistenceQueryTest.newSession(PersistenceQueryTest.java:85) | |
at org.jboss.qa.brms.persistencequery.PersistenceQueryTest.main(PersistenceQueryTest.java:34) |
This file contains hidden or 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] BUILD FAILURE | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] Total time: 5.167s | |
[INFO] Finished at: Wed Jan 25 11:32:12 CET 2012 | |
[INFO] Final Memory: 11M/309M | |
[INFO] ------------------------------------------------------------------------ | |
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project drools-core: Compilation failure: Compilation failure: | |
[ERROR] /home/gdesmet/projects/jboss/droolsjbpm/drools/drools-core/src/main/java/org/drools/fluent/impl/MVELTestCommand.java:[27,23] package org.junit does not exist | |
[ERROR] /home/gdesmet/projects/jboss/droolsjbpm/drools/drools-core/src/main/java/org/drools/fluent/impl/MVELTestCommand.java:[27,0] static import only from classes and interfaces |