I don't know - if you're not using AppFuse it's very difficult for me
to suggest solutions.
Sorry,
Matt
On Nov 9, 2007, at 11:10 PM, thufail wrote:
Hi,
Matt, the same error of Lazy exist, I dont know what to do please
suggest some thing.
Matt Raible-3 wrote:
<filter-mapping>
<filter-name> jpaFilter</filter-name>
<url-pattern>/*</url-pattern>
<dispatcher>REQUEST</dispatcher>
<dispatcher>FORWARD</dispatcher>
</filter-mapping>
On Nov 9, 2007, at 10:22 PM, thufail wrote:
Hi,
I am not using AppFuse. I am using JSF Facelets.
<dispatcher>..</dispachter> has to be added in the filter as init-
param or
where we have to add it. If i add it shows error.
mraible wrote:
Are you using AppFuse? If so, what version? The
OpenEntityManagerInViewFilter should solve this issue for JPA. You
may
have to add <dispatcher>FORWARD</dispatcher> (and REQUEST) if
you're
seeing this issue on a forward.
Matt
On Nov 9, 2007 9:29 PM, thufail <[EMAIL PROTECTED]> wrote:
Hi Matt,
Thanks for your reply. The problem i am facing is using
JPA. In
my
applicationContext.xml, i wont specify anythig like
sessionFactory(datasource, HibernateTransactionManager et.,)
which is
specified in Hibernate, instead i use entityManagerFactory and
jpa based
transactionManager for JPA. There is also filter available for
jpa but
eventhough it shows the LazyIni... error.
The main problem according to me is that i am using JPA but it is
searching
for Hibernate configuration, i am unaware how to manage this one.
This
error
happens only when i use relational db. If i try to retrieve a
single
table
without any relation the whole data is retrieved and displayed in
the
view.
If u have any suggestion please offer.
This is the configuration i have done in app..Context.xml
<bean id="entityManagerFactory"
class="org.springframework.orm.jpa.LocalEntityManagerFactoryBean">
<property name="persistenceUnitName"
value="ngsubsPersistence"/>
</bean>
<!-- Spring JPA Transaction Manager -->
<bean id="txManager"
class="org.springframework.orm.jpa.JpaTransactionManager">
<property name="entityManagerFactory"
ref="entityManagerFactory"/>
</bean>
JPA filter
<filter>
<filter-name>jpaFilter</filter-name>
<filter-
class>org.springframework.orm.jpa.support.OpenEntityManagerInViewF
il
ter
</filter-class>
</filter>
<filter-mapping>
<filter-name>jpaFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
This shows same LazyIni... exception.
Regars
Thufail.
--
View this message in context:
http://www.nabble.com/LazyInitializationException-again-
tf4654121s2369.html#a13679278
Sent from the AppFuse - User mailing list archive at Nabble.com.
------------------------------------------------------------------
--
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
http://raibledesigns.com
-------------------------------------------------------------------
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
View this message in context: http://www.nabble.com/
LazyInitializationException-again-tf4654121s2369.html#a13679505
Sent from the AppFuse - User mailing list archive at Nabble.com.
--------------------------------------------------------------------
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
View this message in context: http://www.nabble.com/
LazyInitializationException-again-tf4654121s2369.html#a13679672
Sent from the AppFuse - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]