java - Netbeans deployment fails after class rename -
i writing test client webservice. it's netbeans 6.9.1 webapplication using jsf framework. have 1 managed bean calls webservice.
everything worked fine until noticed typo in bean class name. servicebean , renamed servicebean first letter upper case. used safe rename function of netbeans , both filename , class signature changed expected.
but had lot of trouble running application on glassfish 3.0.1.
i can build application netbeans without error (even "clean & build"). if deploy there following message in server log:
warnung: error in annotation processing: java.lang.noclassdeffounderror: jsf/servicebean (wrong name: jsf/servicebean) warnung: web9052: unable load class jsf.servicebean, reason: java.lang.classnotfoundexception: jsf.servicebean info: mojarra 2.0.2 (fcs b10) für kontext '/pidclient' wird initialisiert. schwerwiegend: unable load annotated class: jsf.servicebean, reason: java.lang.noclassdeffounderror: jsf/servicebean (wrong name: jsf/servicebean) info: loading application pidclient @ /pidclient
i have form on facelet page submitted managed bean. form loaded despite of above error if try submit following error:
warnung: /index.xhtml @19,94 value="#{servicebean.fldlname}": target unreachable, identifier 'servicebean' resolved null javax.el.propertynotfoundexception: /index.xhtml @19,94 value="#{servicebean.fldlname}": target unreachable, identifier 'servicebean' resolved null @ com.sun.faces.facelets.el.tagvalueexpression.gettype(tagvalueexpression.java:93) @ com.sun.faces.renderkit.html_basic.htmlbasicinputrenderer.getconvertedvalue(htmlbasicinputrenderer.java:95) @ javax.faces.component.uiinput.getconvertedvalue(uiinput.java:1008)
so follow-up error caused noclassdeffounderror above.
and strange part: if build project creates file servicebean.class if deploy project netbeans , deployment directory class renamed servicebean.class.
it seems deployment process renames file.
what problem? (netbeans 6.9.1, glassfish 3.0.1, windows 7)
update: gets better: renamed servicebean.java servicebean2.java. result: if "clean & build" war file contains servicebean2.class only. if deploy nb build dir contains servicebean2.class and servicebean.class. how rid of ghost?
i able replicate variation of problem. had clear netbeans compilation cache (which appears have issues on oses case-forgiving...)
to move past issue encountered, had to:
stop server
clean project
stop netbeans
delete %home%.netbeans\6.9\var\cache
start netbeans
when ran project having problems, netbeans recompiled project, started server , opened index.xhtml. able navigate through app after that.
i have opened http://netbeans.org/bugzilla/show_bug.cgi?id=198565 track issue. please monitor issue , add info think assist attempts resolve issue.
Comments
Post a Comment