Hai,
I have a great problem.I have a class:
public class Fifa
{
private Session session = HibernateSessionFactory.currentSession();
....
...
}
In my Java Server Page I create a new object of Fifa:
<%
Fifa fifa = new Fifa();
%>
<html>
<head>
<title>Login</title>
</head>
<body>
<f:view>
<h3>JSF-Beispielanwendung zur Berechnung eines Flächeninhaltes:</h3>
<i>Dieses Programm berechnet aufgrund der Eingabe einer
Seitenlänge den Flächeninhalt eines Quadrates.</i>
<br><br>
<h:form id="inputForm">
Ihre Eingabe war: <h:outputText value="#{Login.benutzername}" />
<h:outputText value="#{Login.passwort}" />
<br>
</h:form>
</f:view>
</body>
</html>
Then I get the following exceptions:
javax.servlet.ServletException: org/hibernate/Session
javax.faces.webapp.FacesServlet.service(FacesServlet.java:121)
root cause
javax.faces.FacesException: org/hibernate/Session
org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:421)
org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:234)
org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:352)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:107)
I don't know what that is?I hope, that somebody can help me here.
Thank you.
erkan
|