beanlerinde sorun yok gibi.web.xml dosyanıda gönderebilirmisin

2009/9/28 merve t <mervet2...@gmail.com>

> hello,
> i am developing a jsf application.
>
> it was working fine something has changed and it started not to work.
>
> i am getting an exception like:
>
> javax.servlet.ServletException: Cant instantiate class: kaynakpack.UyeBean.. 
> kaynakpack.UyeBean
>       javax.faces.webapp.FacesServlet.service(FacesServlet.java:256)
>
>
> where may the mistake be?
> page is attached as a jpg.
> sorry about variable names which is not in english.
> thanks
>
>
> my UyeBean class is:
>
> package kaynakpack;
>
> public class UyeBean {
>     private String uyeAdi;
>     private String uyeSoyadi;
>     private String kullaniciAdi;
>
>     private String uyeParola;
>     private String uyeResimUrl;
>     private String uyeTelefon;
>     private String uyeMail;
>     private int uyeId;
>     private String string="onaylandi";
>
>     public UyeBean(String kullaniciAdi, String uyeParola) {
>
>         this.kullaniciAdi=kullaniciAdi;
>         this.uyeParola=uyeParola;
>     }
>     public UyeBean(String uyeAdi,String uyeSoyadi,
>             String kullaniciAdi, String uyeParola,
>             String uyeResimUrl, String uyeTelefon,
>
>             String uyeMail, int uyeId) {
>         this.uyeAdi=uyeAdi;
>         this.uyeSoyadi=uyeSoyadi;
>         this.kullaniciAdi=kullaniciAdi;
>         this.uyeParola=uyeParola;
>         this.uyeResimUrl=uyeResimUrl;
>
>         this.uyeTelefon=uyeTelefon;
>         this.uyeMail=uyeMail;
>         this.uyeId=uyeId;
>     }
>     public String getUyeAdi() {
>         return (this.uyeAdi);
>     }
>     public void setUyeAdi(String uyeAdi) {
>
>         this.uyeAdi = uyeAdi;
>     }
>     public String getUyeSoyadi() {
>         return (this.uyeSoyadi);
>     }
>     public void setUyeSoyadi(String uyeSoyadi) {
>         this.uyeSoyadi = uyeSoyadi;
>     }
>
>     public String getKullaniciAdi() {
>             return (this.kullaniciAdi);
>     }
>     public void setKullaniciAdi(String kullaniciAdi) {
>         this.kullaniciAdi = kullaniciAdi;
>     }
>     public String getUyeParola() {
>
>         return (this.uyeParola);
>     }
>     public void setUyeParola(String uyeParola) {
>         this.uyeParola = uyeParola;
>     }
>     public String getUyeResimUrl() {
>         return (this.uyeResimUrl);
>
>     }
>     public void setUyeResimUrl(String uyeResimUrl) {
>         this.uyeResimUrl = uyeResimUrl;
>     }
>     public String getUyeTelefon() {
>         return (this.uyeTelefon);
>     }
>     public void setUyeTelefon(String uyeTelefon) {
>
>         this.uyeTelefon = uyeTelefon;
>     }
>     public String getUyeMail() {
>         return (this.uyeMail);
>     }
>     public void setUyeMail(String uyeMail) {
>         this.uyeMail = uyeMail;
>     }
>
>     public int getUyeId() {
>         return (this.uyeId);
>     }
>     public void setUyeId(int uyeId) {
>         this.uyeId = uyeId;
>     }
>     public String kontrolEt(){
>         String donus="";
>
>         VeriErisim ve=new VeriErisim();
>         try{
>             if(ve.bilgilerDogruMu(getKullaniciAdi(), getUyeParola()))
>             {
>                 donus="onaylandi";
>             }else{
>                 donus="reddedildi";
>
>             }
>
>         }catch(Exception hata){
>             hata.printStackTrace();
>         }
>         return donus;
>     }
> }
>
> my faces-config.xml file is:
>
>
> <?xml version='1.0' encoding='UTF-8'?>
>
> <!-- =========== FULL CONFIGURATION FILE ================================== 
> -->
>
> <faces-config version="1.2"
>     xmlns="http://java.sun.com/xml/ns/javaee";
>
>     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>     xsi:schemaLocation="http://java.sun.com/xml/ns/javaee 
> http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd";>
>
> <managed-bean>
>         <managed-bean-name>uyeBean</managed-bean-name>
>         <managed-bean-class>kaynakpack.UyeBean</managed-bean-class>
>         <managed-bean-scope>session</managed-bean-scope>
>
>         <managed-property>
>             <property-name>kullaniciAdi</property-name>
>             <property-class>java.lang.String</property-class>
>             <value>mhbmn</value>
>
>         </managed-property>
>         <managed-property>
>             <property-name>uyeParola</property-name>
>             <property-class>java.lang.String</property-class>
>             <value>mnbmn</value>
>
>             </managed-property>
>     </managed-bean>
> <navigation-rule>
>         <from-view-id>/baslangic.jsp</from-view-id>
>         <navigation-case>
>             <from-outcome>onaylandi</from-outcome>
>
>             <to-view-id>/forumanasayfa.jsp</to-view-id>
>         </navigation-case>
>     </navigation-rule>
> </faces-config>
>
>
>
>
>
> >
>


-- 
Kerbela çölünde bir Hüseyin´im
Damla suya kul eyledi dert beni.

Evlad-ı Kerbelayız.

+905556129172

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Java EE (J2EE) Programming with Passion!" group.
To post to this group, send email to
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to