[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-2838) JBDS EAR project unit test fails with IllegalStateException: could not locate rule file: /security.drl

Jay Balunas (JIRA) jira-events at lists.jboss.org
Fri Apr 4 14:28:21 EDT 2008


JBDS EAR project unit test fails with IllegalStateException: could not locate rule file: /security.drl
------------------------------------------------------------------------------------------------------

                 Key: JBSEAM-2838
                 URL: http://jira.jboss.com/jira/browse/JBSEAM-2838
             Project: JBoss Seam
          Issue Type: Bug
          Components: Test Harness, Tools
    Affects Versions: 2.0.2.CR1
         Environment: JBDS
            Reporter: Jay Balunas
            Priority: Minor
             Fix For: 2.0.2.CR2


After fixing JBSEAM-2837.

With JBDS 1.0 set up with Seam 2.0.2.CR1 the unit tests for the EAR project fail with the error below.  These test were for new-form and a new-action tests.

[Parser] Running:
  /jboss/projects/workspace/jbdsEar-test/temp-testng-customsuite.xml

WARN  [org.jboss.seam.init.Initialization] Did not install PojoCache due to NoClassDefFoundError: org/jgroups/MembershipListener
INFO  [org.ajax4jsf.cache.CacheManager] Selected [org.ajax4jsf.cache.LRUMapCacheFactory] cache factory
INFO  [org.ajax4jsf.cache.LRUMapCacheFactory] Creating LRUMap cache instance using parameters: {}
INFO  [org.ajax4jsf.cache.LRUMapCacheFactory] Creating LRUMap cache instance of default capacity
INFO  [org.ajax4jsf.cache.CacheManager] Selected [org.ajax4jsf.cache.LRUMapCacheFactory] cache factory
INFO  [org.ajax4jsf.cache.LRUMapCacheFactory] Creating LRUMap cache instance using parameters: {}
INFO  [org.ajax4jsf.cache.LRUMapCacheFactory] Creating LRUMap cache instance of default capacity
FAILED CONFIGURATION: @BeforeMethod begin
org.jboss.seam.InstantiationException: Could not instantiate Seam component: org.jboss.seam.security.identity
	at org.jboss.seam.Component.newInstance(Component.java:1970)
	at org.jboss.seam.contexts.Contexts.startup(Contexts.java:304)
	at org.jboss.seam.contexts.Contexts.startup(Contexts.java:278)
	at org.jboss.seam.contexts.Lifecycle.beginSession(Lifecycle.java:191)
	at org.jboss.seam.contexts.ServletLifecycle.beginSession(ServletLifecycle.java:124)
	at org.jboss.seam.mock.BaseSeamTest.begin(BaseSeamTest.java:912)
	at org.jboss.seam.mock.SeamTest.begin(SeamTest.java:28)
Caused by: java.lang.IllegalStateException: could not locate rule file: /security.drl
	at org.jboss.seam.drools.RuleBase.compileRuleBase(RuleBase.java:51)
	at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
	at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:125)
	at org.jboss.seam.Component.callComponentMethod(Component.java:2082)
	at org.jboss.seam.Component.callCreateMethod(Component.java:2005)
	at org.jboss.seam.Component.newInstance(Component.java:1976)
	at org.jboss.seam.Component.getInstance(Component.java:1873)
	at org.jboss.seam.Component.getInstance(Component.java:1840)
	at org.jboss.seam.Namespace.getComponentInstance(Namespace.java:55)
	at org.jboss.seam.Namespace.getComponentInstance(Namespace.java:50)
	at org.jboss.seam.el.SeamELResolver.resolveBase(SeamELResolver.java:166)
	at org.jboss.seam.el.SeamELResolver.getValue(SeamELResolver.java:53)
	at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53)
	at org.jboss.el.parser.AstIdentifier.getValue(AstIdentifier.java:44)
	at org.jboss.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
	at org.jboss.seam.core.Expressions$1.getValue(Expressions.java:111)
	at org.jboss.seam.Component$ELInitialValue.getValue(Component.java:2360)
	at org.jboss.seam.Component.initialize(Component.java:1389)
	at org.jboss.seam.Component.instantiateJavaBean(Component.java:1315)
	at org.jboss.seam.Component.instantiate(Component.java:1268)
	at org.jboss.seam.Component.newInstance(Component.java:1966)
	... 30 more
... Removed 28 stack frames
SKIPPED CONFIGURATION: @AfterMethod end
SKIPPED CONFIGURATION: @AfterClass cleanup
SKIPPED: test

===============================================
    org.domain.jbdsEar.test.HelloTest
    Tests run: 1, Failures: 0, Skips: 1
    Configuration Failures: 1, Skips: 2
===============================================


===============================================
jbdsEar-test
Total tests run: 1, Failures: 0, Skips: 1
Configuration Failures: 1, Skips: 2
===============================================



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the seam-issues mailing list