I am migrating an application from weblogic 8.1 to 10.3.
The application was working fine in 8.1.
I was using hibernate doclet to generate hbm.xml files. But in new 10.3 structure, I pasted hbm.xml files from my old project to new project instead of writing code in build.xml.
The hibernate version has been upgraded to 3.5.3.0.

While deploying on server, its giving an error as:
....................
<Warning> <HTTP> <BEA-101299> <The servlet-mapping for servlet-name "JSPClassServlet" will override the default mapping for *.jsp. This can lead to a show code vulnerability.>
<Jan 20, 2011 8:08:15 AM EST> <Error> <com.ashland.contractmfg.data.util.HibernateUtil > <BEA-000000> <SessionFactory creation failed
org.hibernate.id.IdentifierGenerationException: no natural-id property defined; need to specify [key] in generator parameters
at org.hibernate.id.SelectGenerator.determineNameOfPr opertyToUse(SelectGenerator.java:73)
at org.hibernate.id.SelectGenerator.access$100(Select Generator.java:52)
at org.hibernate.id.SelectGenerator$SelectGeneratorDe legate.<init>(SelectGenerator.java:117)
at org.hibernate.id.SelectGenerator$SelectGeneratorDe legate.<init>(SelectGenerator.java:98)
at org.hibernate.id.SelectGenerator.getInsertGenerate dIdentifierDelegate(SelectGenerator.java:64)
Truncated. see log file for complete stacktrace
>
<Jan 20, 2011 8:08:15 AM EST> <Notice> <LoggingService> <BEA-320400> <The log file C:\tools\bea-103\user_projects\domains\base_domain\servers\Admi nServer\logs\AdminServer.log will be rotated. Reopen the log file if tailing has stopped. This can happen on some platforms like Windows.>
<Jan 20, 2011 8:08:15 AM EST> <Notice> <LoggingService> <BEA-320401> <The log file has been rotated to C:\tools\bea-103\user_projects\domains\base_domain\servers\Admi nServer\logs\AdminServer.log00085. Log messages will continue to be logged in C:\tools\bea-103\user_projects\domains\base_domain\servers\Admi nServer\logs\AdminServer.log.>
<Jan 20, 2011 8:08:15 AM EST> <Error> <org.apache.struts.action.ActionServlet> <BEA-000000> <Unable to initialize Struts ActionServlet due to an unexpected exception or error thrown, so marking the servlet as unavailable. Most likely, this is due to an incorrect or missing library dependency.
java.lang.ExceptionInInitializerError
at com.ashland.contractmfg.data.util.HibernateUtil.<c linit>(HibernateUtil.java:45)
at com.ashland.contractmfg.web.ApplicationInitializer .init(ApplicationInitializer.java:71)
at org.apache.struts.action.ActionServlet.initModuleP lugIns(ActionServlet.java:869)
at org.apache.struts.action.ActionServlet.init(Action Servlet.java:336)
at javax.servlet.GenericServlet.init(GenericServlet.j ava:241)
Truncated. see log file for complete stacktrace

Caused By: org.hibernate.id.IdentifierGenerationException: no natural-id property defined; need to specify [key] in generator parameters
at org.hibernate.id.SelectGenerator.determineNameOfPr opertyToUse(SelectGenerator.java:73)
at org.hibernate.id.SelectGenerator.access$100(Select Generator.java:52)
at org.hibernate.id.SelectGenerator$SelectGeneratorDe legate.<init>(SelectGenerator.java:117)
at org.hibernate.id.SelectGenerator$SelectGeneratorDe legate.<init>(SelectGenerator.java:98)
at org.hibernate.id.SelectGenerator.getInsertGenerate dIdentifierDelegate(SelectGenerator.java:64)
Truncated. see log file for complete stacktrace
>
<Jan 20, 2011 8:08:15 AM EST> <Error> <HTTP> <BEA-101216> <Servlet: "action" failed to preload on startup in Web application: "contractmfg".
javax.servlet.UnavailableException
at org.apache.struts.action.ActionServlet.init(Action Servlet.java:368)
at javax.servlet.GenericServlet.init(GenericServlet.j ava:241)
at weblogic.servlet.internal.StubSecurityHelper$Servl etInitAction.run(StubSecurityHelper.java:283)
at weblogic.security.acl.internal.AuthenticatedSubjec t.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(Se curityManager.java:121)
Truncated. see log file for complete stacktrace
........................
The code written in hbm.xml file is:

< class
name = "com.ashland.contractmfg.data.dto.LoginAuditDt o"
table = "CTMFG_LOGIN_AUDIT"
>

< id
name = "record_Id"
column = "record_Id"
type = "java.lang.Integer"
>
< generator class = "select" >
</ generator >
</ id >


Pls suggest if anybody have any solutions.