Posts

Configuring Apache Tiles to Avoid Caching During Development

When you want to use Apache Tiles, you will find that your tiles are cached and are not refershed when you reload the page in web browser.

This is a non-issue in production environment because once your webapp is deployed in production you never change your Apache Tiles templates and pages. However, in a development environment this is cumbersome since you will have to redeploy your webapp each time you make a change in your templates.

I faced a similar problem recently and the I found out the I could use the 'useMutableTilesContainer' property in TilesConfigurer class and the 'cache' property in TilesViewResolver class.

You configuration should look something like this:

   <bean id="tilesConfigurer" class="org.springframework.web.servlet.view.tiles3.TilesConfigurer">
          <property name="definitions">
             <list>
                <value>/WEB-INF/path-to-your/tiles-definition.xml</value>
             &…

Dependencies Included!

Consider this:
What good is a phone without its battery? When we buy phones or any electronic that runs on a battery we expect batteries included with the product. 
As software developers, we face the same problem when we write Java application. We want to include dependencies with our final build. We build our project using Maven but our build won't run if we didn't to define dependencies paths for the runtime.
Maven can resolve dependencies while compiling/building the project for you but the final build in itself can't resolve dependencies unless you specify where the referenced classes are located. Here is how we typically define dependencies for the runtime:
java -cp MyProject.jar:MyCommonLibrary.jar:AnotherDependency.jar com.kondra.myproject.MainClass    
This is fine when you have a few dependencies. But that's never the case for software we write at Kondra. Most of the times we have 20 or 25 different dependencies and this means this command line will only get b…

What I've been up to!

I've not posted any post for quite sometime now. However, that is about to change. I'm writing apps with JavaScript now and I'm learning new stuff almost daily. I'm currently using RequireJS, AngularJS, Backbone, jQuery and NodeJS to build webapps at my work for our clients. This means my blog will now focus on these technologies a lot. I will try to share my learnings with you all. Thanks for leaving comments on my blog. I hope to continue writing stuff that software developers around the world find helpful.

Installing ColdFusion 9.0.1 Update

Image
Some people might face a problem when installing ColdFusion update on their Windows 2008 Server. This is because they will have to remove ColdFusion 9 connector settings and IIS6 Metabase Compatability from IIS 7.

So, here is what you need to do to update your CF 9:

Download the installer from http://www.adobe.com/support/coldfusion/downloads_updates.html#cf9
Remove existing ColdFusion connectors from IIS 7.Shutdown ColdFusion servicesRun the installer (downloaded in step one)
You'll note that after installation you'll get a message like this one:
Congratulations. Adobe ColdFusion 9.0.1 has been successfully installed to:
   C:\ColdFusion9
Press Done to quit the installer.
Notes =====
Solr Server has been upgraded. Reindex all the collections.
Connector has been upgraded. If you use IIS 6 Management Compatibility, to use IIS 7 support, unconfigure (already configured) websites. Then uncheck all IIS 6 Management Compatibility options (Start > Control Panel > Programs > Programs …

ColdFusion 9.0.1 Update Now Available

Adobe released update for ColdFusion 9 yesterday. I have installed the update on my server running Windows Server 2008 with IIS 7.

This update now supports running ColdFusion with IIS7 without installing IIS6 Metabase Compatibility. Finally! IIS7 is almost 4 years old!

Download the update from: http://www.adobe.com/support/coldfusion/downloads_updates.html#cf9

Note: If you are running IIS7 with IIS6 Metabase Compatibility, then you'll have to remove IIS6 MC and that will require a restart of the server.

This update is recommended as it includes many bug-fixes and security hot-fixes.

ColdFusion Manual Configuration & Issues with TCP ports 51011, 51010 and 51800 on IIS and Apache

Image
ColdFusion works by configuring your web server (IIS, or Apache) to execute files with known extensions (.cfm, .cfml, .cfc et al) to run as script. And for doing that ColdFusion comes with a small and important tool called “wsconfig”. Problem: At times, regardless of operating system and the web server you are using, the ColdFusion installation will fail to configure web-server due to your network settings or firewall/security settings. When running wsconfig tool, you may encounter errors similar to the following:Could not connect to any JRun/ColdFusion servers on host localhost. Possible causes: Server not running
- Start Macromedia JRun4 or ColdFusion server Server running
- JNDI listen port in jndi.properties blocked by TCP/IP filtering or firewall on server
- host restriction in security.properties blocking communication with server Snapshot above shows one of the common scenario when wsconfig will not configure IIS.Solution: H…

Introducing WordArt for ColdFusion

Image
WordArt for ColdFusion is available for free under new BSD License. WordArt CFC generates image for insertion of typography on a webpage by converting text to image in various styles. There are over 25 different options available in this first release of WordArt.