Tomcat not starting system error 1067
After installation of tomcat some times while starting the service u get the 1067 error saying not able to start . the error itself is generic.
check the tomcat log files for any error.
Diff cases why this error might occur
1. the jre is not set properly.
Sol: double click on the tomcat6w.exe in the java tab check in the jvm.dll is set to the proper value.if not select your jvm and try starting the tomcat.
2. inital heap not sufficient.
Sol: Got to registry( check if u r machine is 32 bit or 64 bit if 64 2 regedits are there check in C:\windows\syswow64\regedit).
click on HKEY_LOCAL_MACHINE\software\apache\tomcat\parameters\java (path might change based on tomcat version)
modify the jvmMs option to a next higher value( if 256 to 512) and restart the tomcat. if this options dosent exist add it.
if no error is logged in the log files. go to event viewer (start\controlpanel\admin tools\event viewer) and in system ull find an error event stating the reason.
Windows : Mangage services cmd line
If you are used to windows then to check u r services the usual way is services.msc or go from the start ( a longer way). but trust me when you are doing a lot of administration stuff on services everytime opening the services refreshing and searching the service is quite elaborated work.
The best way is to use cmd lines.
To start and stop a service we have two options
using the net commands or the sc command
net command
C:\> net start servicename
C:\> net stop servicename
sc commands
to check the service status and its details
C:\> sc query servicename
to delete a service
C:\> sc delete servicename
to start a service
C:\> sc start servicename
to stop a service
C:\> sc stop servicename
Kick off Log4j – my e-book on log4j
Ive written an ebook on log4j named kick off log4j. Its a simple ebook for developers who just want to start working on log4j. This book is based on the research ive done on log4j and ive wrote down at every level what ive being doing to help other developers not to search for examples on different topics. I do recommend the actual log4j books to have more insight onto it. But if u dont have time to go through the whole book to understand the technology and have to start working on it by looking at some examples this is the right place.
Any modifications/additions please feel free to let me know .
Flex legend not display issue
In flex 4 versions there are sometimes issue with displaying legends for a graph. Even though the legend is pointing to the right dataprovider not all the legend values are displayed. After some mouse events the legend values start to appear and disapper without any reason.
Without legend values the chart look somewhat like this.

This sometimes happen because of the FTE(Flash Text engine). The default renderer for the LegendItem being UIFTEText gives this issue. Modify the css file to use UIText rather than UIFTETExt as the flash text engine is having some issues in the legend item
mx|LegendItem {
textFieldClass: ClassReference("mx.core.UITextField");
}
This resolves the legend value display issue but FTE has its own advantages of unicode support those might not be available. This is a flex bug and will be updated in next version this workaround can be used until then.
Log trace in Flex
Flex debugger either with eclipse flex plugin or flash builder can be used to debug flex applications. If apart from debug variables u wanted to log some data that can be done using the trace() function.
To log from flex in to a external log file the following steps can be followed.
- Download flash debugger. http://www.adobe.com/support/flashplayer/downloads.html
- Create a mm.cfg file for flash debugger configuration. The default path where you can put it
In windows c:\users\username\
Linux /home/username
-
If mm.cfg not present create on and make sure these properties are there
mm.cfg
ErrorReportingEnable=1
TraceOutputFileEnable=1
-
The log file will be generated in
Windows : C:\Users\username\AppData\Roaming\Macromedia\Flash Player\Logs\flashlog.txt
Linux: /home/username/.macromedia/Flash_Player/Logs/flashlog.txt
For additional properties refer http://kb2.adobe.com/cps/403/kb403009.html