[JBoss Seam] - Need your ideas regarding an error creating identities
by grettke_spdr
We are running a Seam 1.2.1 GA app on WAS 6.1. Most everything has worked as expected until today users were not able to log on anymore.
This error occurs when the user tries to log on. One thing to note, when I run the application my local server instance it works fine. This leads me to believe that there is an issue with the server, so my goal is to at least start looking in the right direction.
Looking at the log files we found the following errors:
org.jboss.seam.InstantiationException: Could not instantiate Seam component: org.jboss.seam.security.identity
Caused by: javax.faces.el.EvaluationException: Cannot get value for expression '#{securityRules}'
<<START Believe this is the websphere specific stuff>>
Caused by: java.lang.IllegalStateException:
Session Object Internals:
id : q-OvJrT25EJG0Hq54-RgGMV
hashCode : 613533358
create time : Tue Nov 06 09:12:18 CST 2007
last access : Tue Nov 06 09:12:18 CST 2007
max inactive interval : 3600
user name : anonymous
valid session : false
new session : true
overflowed : false
app name : default_hostrms
non-serializable app specific session data : null
serializable app specific session data : {}
<<END Believe this is the websphere specific stuff>>
Our security rules are specified within a file called security.drl and have thus far worked correctly. The compnents.xml specifies this file as:
<drools:rule-base name="securityRules">
<drools:rule-files>/security.drl</drools:rule-files>
</drools:rule-base>
This is a Seam POJO app.
Any ideas?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4102608#4102608
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4102608
18 years, 6 months
[EJB 3.0] - Re: Packaging Hibernate Mapping Files and persistence.xml
by jaikiran
I haven't tried using the mapping-file element in any of my applications, yet, so i might not be of great help. Could you try adding the exclude-unlisted-classes attribute to the persistence.xml:
<?xml version="1.0" encoding="UTF-8"?>
| <persistence xmlns="http://java.sun.com/xml/ns/persistence"
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
| version="1.0">
| <persistence-unit name="rb">
| <provider>org.hibernate.ejb.HibernatePersistence</provider>
| <jta-data-source>java:/RBDBPool</jta-data-source>
| <mapping-file>com/pioneer/riskbudgeting/dao/userprofile/hbm/userprofile.xml</mapping-file>
| <mapping-file>com/pioneer/riskbudgeting/dao/accesscontrol/hbm/accesscontrol.hbm.xml</mapping-file>
| <mapping-file>com/pioneer/riskbudgeting/dao/benchmark/hbm/rb/benchmark.xml</mapping-file>
| <mapping-file>com/pioneer/riskbudgeting/dao/immunisation/hbm/immunisation.xml</mapping-file>
| <mapping-file>com/pioneer/riskbudgeting/dao/performance/hbm/performance.xml</mapping-file>
| <mapping-file>com/pioneer/riskbudgeting/dao/portfolio/hbm/portfolio.xml</mapping-file>
| <mapping-file>com/pioneer/riskbudgeting/dao/portfoliometadata/hbm/portfoliometadata.xml</mapping-file>
| <mapping-file>com/pioneer/riskbudgeting/dao/pricing/hbm/rb/pricing.xml</mapping-file>
| <mapping-file>com/pioneer/riskbudgeting/dao/report/hbm/report.xml</mapping-file>
| <mapping-file>com/pioneer/riskbudgeting/dao/riskfactor/hbm/riskfactor.xml</mapping-file>
| <mapping-file>com/pioneer/riskbudgeting/dao/riskfactorschema/hbm/riskfactorschema.xml</mapping-file>
| <mapping-file>com/pioneer/riskbudgeting/dao/statistics/hbm/statistics.xml</mapping-file>
| <mapping-file>com/pioneer/riskbudgeting/dao/strategyattribute/hbm/strategyattribute.xml</mapping-file>
|
| <exclude-unlisted-classes/>
|
| </persistence-unit>
| </persistence>
Also, can you post the output of the following steps:
- From the command prompt, go to the folder containing your persistence archive (the 20.rb-ejb.jar).
- Run
jar -tf 20.rb-ejb.jar
Post the output here. That will show us how the jar is packaged.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4102604#4102604
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4102604
18 years, 6 months