junit
Absent Code attribute in method that is not native or abstract in class file javax/servlet/ServletException
Purtroppo anche io ho dovuto fare i conti con questo temibile e incomprensibile errore... ma per fortuna ne sono uscito indenne! Ora vi spiegherò come.
Dipendenze javaee-api
Di recente ho dovuto creare delle semplici web application in Java, utilizzando Maven come strumento di build (e non solo). Dopo essermi documentato sulle dipendenze da includere ho scoperto che per una generica applicazione Java Enterprise Edition (JEE) dovrebbe bastare includere questo frammento di configurazione nel file pom.xml:
- dimitri's blog
- Aggiungi un commento
- Leggi tutto
- 218 letture
- English
Absent Code attribute in method that is not native or abstract in class file javax/servlet/ServletException
I had to face this strange and scary error... but I was lucky and smart enough to come out with a solution, and I want to share it with you.
javaee-api dependencies
Recently I had to create some simple Java web applications using Maven as build tool (and not only for builds). After reading the necessary documentation about dependencies to be included I discovered that for a generic Java Enterprise Edition (JEE) application this configuration fragment in pom.xml should be enough:
- dimitri's blog
- Aggiungi un commento
- Leggi tutto
- 1463 letture
- Italian
Appfuse, Maven, Eclipse e JUnit: happy together
Lately I've come back to Appfuse for some Java projects. I can't tell how much I adore Appfuse, but this time I won't bother you... However, back to the projects, I wanted to exploit the new features starting from scratch with a so-called Quickstart, importing files in Eclipse (another Java development pillar) and working on them. Well done, cool, seems to work...
Problem #1: how to import it in Eclipse?
It looks like the command:
- dimitri's blog
- Aggiungi un commento
- Leggi tutto
- 1244 letture
- Italian
Appfuse, Maven, Eclipse e JUnit: come risolvere i problemi di convivenza
Ultimamente ho ricominciato ad usare Appfuse per dei nuovi progetti Java. Non spenderò mai abbastanza parole per descrivere quando adoro Appfuse, ma stavolta voglio risparmiarvi la noia... Comunque, tornando al progetto in questione, ho voluto approfittare dell'occasione per partire da zero con un nuovo Quickstart, importarlo in Eclipse (altro pilastro dello sviluppo Java) e cominciare a lavorarci. Bene, fico, sembra funzionare...
- dimitri's blog
- Aggiungi un commento
- Leggi tutto
- 1328 letture
- English
Impariamo ad usare The Play Framework - IV parte
Nuovi test
In questo appuntamento vedremo come salvare nuove attività e modificare quelle già presenti nel database. Per fare questo dovremo usare il metodo save() fornito dalle API di Play e il cui scopo è di rendere persistenti le modifche ai dati; questo metodo fa parte del supporto a JPA di Play, il cui scopo è facilitare l'utilizzo di JPA (Java Persistence API); potete trovare un approfondimento sul sito stesso di Play.
- Aggiungi un commento
- Leggi tutto
- 952 letture
Impariamo ad usare The Play Framework - III parte
Test driven development
All'inizio di questa serie di appuntamenti abbiamo deciso di realizzare un'applicazione "vera", ciò vuol dire che durante il ciclo di vita del progetto dovremo utilizzare tutte quelle accortezze che ci permetteranno di garantire, entro un certo limite, la correttezza e l'aderenza ai requisiti concordati con un ipotetico cliente.
- Aggiungi un commento
- Leggi tutto
- 1227 letture
Potresti essere interessato anche a...
- Impariamo ad usare The Play Framework - III parte
- Impariamo ad usare The Play Framework - IV parte
- Appfuse, Maven, Eclipse e JUnit: come risolvere i problemi di convivenza
- Appfuse, Maven, Eclipse e JUnit: happy together
- Absent Code attribute in method that is not native or abstract in class file javax/servlet/ServletException
