Hai all,
I got an "Unable to locate MessageSource with name 'messageSource':" while running my application.
The ApplicationContext.xml is
<?xml version="1.0" encoding="UTF-8"?>...
Type: Posts; User: Dinesh_Kumar; Keyword(s):
Hai all,
I got an "Unable to locate MessageSource with name 'messageSource':" while running my application.
The ApplicationContext.xml is
<?xml version="1.0" encoding="UTF-8"?>...
Hi all ,
I had an exception while retrieving values using hibernate.
The Exception is:
javax.servlet.ServletException: Error in EventDAO.findByPK() ::...
Hi all ,
If anybody find out solution for my previous problems, which i have posted earlier. If anyone have an idea please reply me.
thanks in advance,
Dinesh
Hi Ben Alex,
Thanks for your reply.
I attached the applicationContext-acegi.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN"...
Hi all,
I would like to implement Acegi for my application.I have two tables.
One is User table
CREATE TABLE `tbl_user` (
`userid` int(11) NOT NULL auto_increment,
`loginname`...
Hi all ,
If i use getHibernateTemplate.find() instead of getCurrentSession() means,
Will spring manage the opening and closing session and closing connections from its connection pools...
Hi all,
How can i remove the following Exception ,
No CurrentSessionContext configured!
I have already posted all config files and Dao's in previous replies.
I am using spring2.0 jars but...
Hi all .
I am new to Quartz implementation with DB.
I had the following exception ,after triggering ten times by Quartz.
ApplicationContext.xml is
<beans>
<bean...
thanks for the reply
if i remove the current_session_context_class
I got an Exception
com.oneaccess.common.exception.DataAccessException: Exception in retrieveUser ::...
thanks for your reply.
I have tried but i have written a code like this.
public User findByUserId(int userId)throws DataAccessException{
OneAccessLogger.warn("findByUserId :: UserDao",...
Hai all,
i got the following error when using dbcp datasource in tomcat5.
.
applicationContext-db.xml is
<beans>
Thank you for your guidelines
I will review the link ,you have sent about OSIV.
Let you know , if i will have any clarification.
Thanks,
Dinesh
Thank you !
I will try that in my application.
I would like to know about OpenSessionInViewInterceptor(OSIV) in Detail.
I have seen one forum that OSIV resolve the LazyInitializationException....
Thank you for giving valuable information .
How can I avoid LazyInitializationexception without putting lazy='false' in a Set or Class of hibernate mapping
Do you have any example code or link...
Here is the mapping file.
<class name="com.oneaccess.hibernate.model.User" table="user" mutable="true" entity-name="user" lazy="false">
<id name="userId" type="int">
...
the tables are :
create table t_sapsystem
( sap_system_id int unsigned not null auto_increment,
sap_system_name varchar(30) not null,
url varchar(30) not null,
thank you very much for replying me.
I dont know how to check with sql Analyzer .
do u identify any mistakes in code(from mapping and persistence) .
I have written the two mapping file:
one is TSapsystemAndSite
the mapping File will be :
<hibernate-mapping>
I have tried that but it is not updated
The code will be
In Service Layer
TSapsystemAndSite sapSystemAndSite=sapSystemAndSiteDao.findBySapsystemId(sapSystemId);...
Please tell me what is wrong in my coding ,which was posted .
In Service I have tried to change the SiteId in TsapsystemAndSite .But i m using the existing Sapsystemid ,which was in table .
I need...
Beyond my coding ,i need a sample example for updating a table,which have composite-id in a hibernate Mapping .
Please help me for that
thanks in Advance
Thank you very much for replying me .
this is the Service layer I have written for Update
public void insertorupdate(SapSystemBean sapSystemBean,int sapSystemId) throws DataAccessException{...
I need a help to update a table ,which have primary key Pair.
I have written a code as :
Mapping for SapSystemandSite which has composite-id
<hibernate-mapping>
<class...
Thank you very much.
It is working well.