PDA

View Full Version : [JAVA] Problema con Glassfish ed Entity. Aiuto please!


amaranto87
15-01-2010, 17:48
Ciao,
sto programmando un'applicazione utilizzando java Enterprise. Per mappare i miei dati su database ho usato le cosiddette Entity. Dopo aver fatto il deploy e provato in parte la mia applicazione i dati sul database e le classi entity corrispondevano.
Dopo ho voluto aggiungere ad una entità l'attributo foto con i relativi metodi get e set, però sul mio database la colonna foto non veniva creata. Per farla aggiungere al mio database ho dovuto annotare l'attributo foto con l'annotazione @Column.
Adesso però ho il problema che il server non vede i metodi get e set e non so il perchè.
Di seguito posto l'eccezione:

org.apache.jasper.JasperException: PWC6033: Unable to compile class for JSP

PWC6197: An error occurred at line: 37 in the jsp file: /VisualizzaTutteChitarre.jsp
PWC6199: Generated servlet error:
string:///VisualizzaTutteChitarre_jsp.java:100: cannot find symbol
symbol : method getFoto()
location: class ejb.Chitarra

PWC6197: An error occurred at line: 37 in the jsp file: /VisualizzaTutteChitarre.jsp
PWC6199: Generated servlet error:
string:///VisualizzaTutteChitarre_jsp.java:100: cannot find symbol
symbol : method getFoto()
location: class ejb.Chitarra

PWC6197: An error occurred at line: 67 in the jsp file: /VisualizzaTutteChitarre.jsp
PWC6199: Generated servlet error:
string:///VisualizzaTutteChitarre_jsp.java:118: cannot find symbol
symbol : method getFoto()
location: class ejb.Chitarra