Showing posts with label tomcat. Show all posts
Showing posts with label tomcat. Show all posts

Wednesday, October 08, 2025

Maven deploy to Tomcat

 So, I'm finally moving off of NetBeans and into IntelliJ IDEA

The two main reasons for that are:

  1. NetBeans is really getting old any hardly any relevant updates
  2. All my other IDEs (PyCharm, Android Studio) are built on it
I long ago moved my projects from ant based to maven, not I struggled to get the tomcat plugin to properly deploy to my local tomcat.
Well, the re-deploy didn't work to be honest.
Reason was, that the plugin does not add the "upgrade=true" to the upload URL, and I failed to manually tweak it.

Then I found that the plugin will honor a property called maven.tomcat.update and a quick test from a command line showed that this really works.
But then, how to get it into the IDE itself. 

Took me a while, and the best way is to add it to your POM under properties, like below:

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<jakartaee>10.0.0</jakartaee>
<maven.tomcat.update>true</maven.tomcat.update>
</properties>

And voila, all uploads from the deploy target will now end with "&update=true".


Saturday, September 12, 2015

Windows 10 installed

While I finally made it to a Mac (MacBook Air 13) at work, I gave in and let Microsoft install Windows 10 over my Windows 7 on my home PC.

It went surprisingly smooth and without any problems.
Except that my Tomcat did successfully start under Window 10, because for some weird reasons Redmond decided to install and activate the Internet Information Services (which I previously did not have), and those blocked port 80 of course.
Simple de-install of those features, reboot and everything was running fine again. All apps and services I had running (or those I could think of within 30minutes) are running fine again.
Amazingly even my DB2 instance did not create any problems at all.

Now I only have to get used to the new UI, but even that seems easier than I thought.... well, as long as I have the keyboard.

Wednesday, January 02, 2008

Offline for a couple of days


Am Weissensee
Originally uploaded by roetzi24
I'm enjoying some days off at lake Weissensee in Carinthia, Austria - pondering how to implement an idea for a flickr application I had.

Anyone know a good site with hosted Tomcat or - even better - glassfish ?

Monday, August 13, 2007

Enabling directory listing in Tomcat

One and for all --- this is mainly for myself, because I tend to forget it and have to google it everytime I need it:

To enable/disable directory listings in Tomcat (5.x at least) I have to change the property listings of the default servlet in conf/web.xml

<servlet>
<servlet-name>default</servlet-name>
<servlet-class>org.apache.catalina.servlets.DefaultServlet</servlet-class>
<init-param>
<param-name>listings</param-name>
<param-value>false</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>

Tomcat FAQ - Miscellaneous Questions