[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-2838) JBDS EAR project unit test fails with IllegalStateException: could not locate rule file: /security.drl
by Jay Balunas (JIRA)
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
17 years, 10 months
[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-2482) Possible work around for Weblogic "varargs" EJB issue
by Jay Balunas (JIRA)
Possible work around for Weblogic "varargs" EJB issue
-----------------------------------------------------
Key: JBSEAM-2482
URL: http://jira.jboss.com/jira/browse/JBSEAM-2482
Project: JBoss Seam
Issue Type: Task
Components: Documentation, Examples
Affects Versions: 2.0.1.CR1
Reporter: Jay Balunas
Priority: Minor
Attachments: full-stack-of-ejb-transient-error.txt
There is a know issue with weblogic and support for EJBs that use variable arguments. This is documented in the reference guide for more details.
I've attached the full stack trace from the console.
The main errors revolve around EJB3 timers - there may be a way to disable timers through the weblogic.xml deployment descriptor, or perhaps a different file.
There are other warnings around EJB synchronization, but they may still function.
If solved the reference docs should be updated.
--
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
17 years, 10 months
[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-2657) Seam-mail fails when invoked from custom servlet bound with web:context-filter
by Przemyslaw Jaskierski (JIRA)
Seam-mail fails when invoked from custom servlet bound with web:context-filter
------------------------------------------------------------------------------
Key: JBSEAM-2657
URL: http://jira.jboss.com/jira/browse/JBSEAM-2657
Project: JBoss Seam
Issue Type: Feature Request
Affects Versions: 2.0.1.GA
Environment: Seam 2.0.1 and 2.0.2-SNAPSHOT from 13 feb 2008, plain Tomcat 6.0, JSF RI 1.2_07.
Reporter: Przemyslaw Jaskierski
(Reporting as FR as requested by Pete. Please, read linked thread for the full context).
I try to send an email from one of services. The same code:
renderer.render(/WEB-INF/emailTemplates/test.xhtml);
invoked from application-scoped component with method annotated as @Observer(foo)
1. works when a synchronous event is invoked in JSF action using Events.instance().raiseEvent(foo)
2. fails when invoked using Events.instance().raiseAsynchronousEvent(foo) from the same JSF action
3. fails when invoked as both synchronous and asynchronous events from custom servlet bound with web:context-filter.
Case 2. and 3. both lead to this exception:
java.lang.IllegalStateException: Application was not properly initialized at startup, could not find Factory: javax.faces.application.ApplicationFactory at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:267) at org.jboss.seam.mock.MockFacesContext.<init>(MockFacesContext.java:60) at org.jboss.seam.ui.facelet.FaceletsRenderer$RenderingContext.init(FaceletsRenderer.java:95) at org.jboss.seam.ui.facelet.FaceletsRenderer$RenderingContext.run(FaceletsRenderer.java:77) at org.jboss.seam.ui.facelet.FaceletsRenderer.render(FaceletsRenderer.java:169)
Pete's response:
(2) is untested and I wouldn't necessarily expect (3) to work. File a JIRA feature request for (3) please - but it will require some redesign on how we render mails (hopefully make it much more robust)
--
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
17 years, 10 months