servlet
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
- 202 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
- 1456 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
- 11041 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
- 7799 letture
- English
UrlRewriteFilter - un mod_rewrite per le servlet
Oggi vi voglio parlare di un attrezzo molto utile che ho scoperto di recente: UrlRewriteFilter. Si tratta di un servlet filter il cui scopo è emulare il funzionamento dell'onnipresente mod_rerwrite di Apache.
- dimitri's blog
- Aggiungi un commento
- Leggi tutto
- 1770 letture
Potresti essere interessato anche a...
- UrlRewriteFilter - un mod_rewrite per le servlet
- 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
