NavigationMonthly archive
|
Error org.springframework.web.util.Log4jConfigListenerCannot start java web application in STS (tcServer, Tomcat). This error occurs when starting a tcServer.
I have been able to fix this problem by running "maven clean" and "maven install" from STS and then restarting the server.
Subversion and Maven Tips and Tricks to save time updatingLately I've been programming with a mid-sized group of developers. We are working on Windows for our development environment. Using subversion for source code control and maven for our build process. Because we have enough developers that there are code check-ins almost 24x7 it is important that other developers update their local code every day.
For a few days I had been manually updating the code from our repository by using TortoiseSVN and then running a command line "mvn clean install". Although this only took a few minutes to do each day I decided to write a batch file to automate this process. What I wanted was something that would run:
This was simple enough to do in a single batch file. However once the process completed the cmd window would close so that I couldn't read any messages that were output. To get around this I created three batch files. The first file that runs is named DailyUpdate.bat and includes one line:
the file svnUpdate.bat has two lines
the final file mvnCleanInstall.bat has one line:
Now the cmd window stays open after this completes. I simplified the process for updating to the latest code and doing a local build. Normally I have a shortcut to DailyUpdate.bat in my windows startup directory so that it runs every time I start up my machine. There are some weeks where I don't want this running on startup, in that case I remove the shortcut.
Golf September 2010September 2010. We ended with a 7 under. Winning score was 14 under. We had a shotgun start on hole 7. The weather was perfect. Mike won a Ping wedge, we also won an auction for a foursome round.
Sending email from localhostI have recently used Simplenews module to publish and send newsletters to lists of subscribers. Simplenews has a feature to send an email to a test user, I wanted to use this to see exactly how the newletters would look. I do much of my development from a local machine and I found that my test emails from my local machine were being incorrectly categorized as spam. Basically I couldn't receive any email which I sent.
I looked at my mail.log file to see the exact details of what was happening. Below is a section of what I found
....to=<test@example.com>, relay=mx1.balanced.blingy.mail.example.com[208.108.38.62]:25, delay=1.5, delays=0.33/0.05/0.94/0.17, dsn=5.0.0, status=bounced (host mx1.balanced.blingy.mail.example.com[
I spent a few hours seaching on the internet for a way that I could send email from my localhost without having it bounce back as spam. A friend pointed my to this information from page 9 of the MAMP manual:
This was very helpful because it helped move me toward a fix. After a lot of searching and trial and error I finally came to a solution. I didn't hit too many deadends along the way either, which was nice. The solution was to change the configuration of my local postfix installation. These are configured in the file /private/etc/postfix/main.cf and they affect how email is handled from my local machine. I added the following four lines to the end of my main.cf file After making this change I have had no problems sending Simplenew test emails from my local machine and they are no longer categories as spam. I have been receiving the test emails in less than one minute. Once I'm satisified that the test email renders as expected I migrate my newletter to a hosted webserver. * the actual URLs that I worked with have been replaced with
Nice Menus Duplicate issueNice menus appear to output duplicate menus i.e. the same menu is output twice. This happens in certain configurations and can be difficult to fix if you do not know where to look. For example, in the image below, the menu item "Menu to Front" is output twice. This site is configured with 1 menu item enabled in the Primary Links menu. There is also a nice_menus block enabled which has its Source Menu Tree set to Primary Links.
Nice_menus is working exactly as it should. The reason this happens is that the Theme is outputting the Primary Links menu and Nice_menus is also outputting the Primary Links menu. I know of two configurations that can fix this which will allow the menu to appear only once. Method 1: Configure your Theme not to output the menu. In effect Nice_menus will be outputting your menu and the menu will appear only once.
Method 2: You can create a new menu, a menu that your Theme does not natively output. You will then configure Nice_menus to output this menu.
I prefer method 2 above because not every theme will have the configuration option. It also seems more intuitive to keep the expected Primary Link settings as provided by the theme.
Create Photo GalleryCreating a Photo Gallery in Drupal is very easy. There is a very good tutorial which explains exactly what to do. I highly recommend this tutorial. The following pages distill the tutorial.
Monthly archive blockIf you look at any website today you may notice that many have links to archived content. I find this feature extremely useful because it is a very intuitive way to view content. Implementing a Monthly archive block in Drupal is very easy. In fact it took me only about 15 minutes to implement and to post about my experience. I followed the tutorial Drupal archive list. The steps are very easy to follow. You will need to do some minimal Views configuration and you need to configure the block to appear on your site. But that is all. I am very happy with my results and I think everyone doing this will be happy with their results too.
Drupal photo galleryThe photo gallery on DrupalGanger was built with the help of Jeff Eaton's tutorial. The tutorial teaches a great way to display photos on a Drupal site. Now that I've used this photo gallery for a few months I highly recommend the tutorial.
What is a DrupalGanger?It is a play on the English word "doppelganger". A doppelganger is a look alike or double of a person. The word is borrowed from the German language, and literally means double goer. I guess it is only fitting since "Drupal" is a play on the English pronunciation of the Dutch word "druppel", which means "drop" Up and running.DrupalGanger uses the Drupal content management system for web development projects. A core installation of Drupal offers a ton of features. Additional features can be added by installing any one of the hundreds of custom modules. Drupal has a steep learning curve but eventually it is easy to use. There is a great community of Drupal users, developers, and coders at http://drupal.org/ |