jee
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
- 200 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
- 1454 letture
- Italian
How to configure relative paths for Log4j using Spring
One of the most annoying problems of application deploying is how to correctly configure logging. In this article we'll see how Spring can help us in this area.
Absolute vs relative paths
The biggest issue of relative paths is that they must be manually modified for each application instance, thus requiring time and attention. Let's try to use relative paths instead.
Below you can see our first try, where we try to write on file (save this snippet in /WEB-INF/classes/log4j.properties):
- dimitri's blog
- Aggiungi un commento
- Leggi tutto
- 11036 letture
- Italian
Configurare path relativi per Log4j utilizzando Spring
Uno dei problemi più fastidiosi quando si esegue il deploy di una web application Java è la corretta configurazione del logging. In questo articolo vedremo come Spring ci può venire in aiuto.
Path assoluti vs path relativi
Il problema principale dei path assoluti è che vanno modificati per ogni installazione dell'applicazione, richiedendo tempo e attenzione. Proviamo allora a configurare la web application per utilizzare path relativi.
- dimitri's blog
- 8 commenti
- Leggi tutto
- 7796 letture
- English
Hibernate + PostgreSQL, prove di convivenza
Antefatto
Tempo, lavorando sul mio progettino open source StudioDix, sono incappato in un "problema" inusuale, relativo alla convivenza fra Hibernate (o più in generale a JDBC) e il noto database PostgreSQL.
- dimitri's blog
- Aggiungi un commento
- Leggi tutto
- 1327 letture
Potresti essere interessato anche a...
- Hibernate + PostgreSQL, prove di convivenza
- Configurare path relativi per Log4j utilizzando Spring
- How to configure relative paths for Log4j using Spring
- Absent Code attribute in method that is not native or abstract in class file javax/servlet/ServletException
- Absent Code attribute in method that is not native or abstract in class file javax/servlet/ServletException
