Sorry for this stupid fault, but that can happend when i'm testing and trying. But i have now already some new problems...
I now its realy bad, but if i have my first example, everything will be better.
The exception occured by calling buildsessionFactory.
By calling this fubnctions:
******************************************************************************************
public void configure() throws HibernateException {
Configuration cfg=new Configuration().addClass(Navigation.class);
_sessions = cfg.buildSessionFactory();
System.out.println("Session factory: "+_sessions);
}
public void exportTables() throws HibernateException {
Configuration cfg = new Configuration().addClass(Navigation.class);
new SchemaExport(cfg).create(true, true);
}
******************************************************************************
The Server prints:
*****************************************************************************
[02.09.03 09:47:22:197 CEST] 7817d261 WebGroup I SRVE0180I: [ERM] [/ERM] [Servlet.LOG]: NavControllerHibernate2: init
[02.09.03 09:47:22:306 CEST] 7817d261 WebGroup E SRVE0026E: [Servlet-Fehler]-[org/dom4j/Attribute]: java.lang.NoClassDefFoundError: org/dom4j/Attribute
at com.clavisNET.erm.general.NavControllerHibernate2.configure(NavControllerHibernate2.java:71)
at com.clavisNET.erm.general.NavControllerHibernate2.doPost(NavControllerHibernate2.java:90)
at com.clavisNET.erm.general.NavControllerHibernate2.doGet(NavControllerHibernate2.java:170)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:948)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:530)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:176)
at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:79)
at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:201)
at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:182)
at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:610)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:435)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:593)
*****************************************************************************
Thanks, i realy hope after this problem every thing is ok and i don't bother you again.
|