-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: private Session session = HibernateSessionFactory.currentSes
PostPosted: Fri Dec 23, 2005 11:25 am 
Newbie

Joined: Fri Dec 23, 2005 11:15 am
Posts: 1
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


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 23, 2005 2:01 pm 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
http://hibernate.org/42.html
http://hibernate.org/43.html


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.