Categories
Archives
- January 2012
- December 2011
- September 2011
- August 2011
- July 2011
- June 2011
- April 2011
- March 2011
- December 2010
- November 2010
- August 2010
- January 2010
- December 2009
- August 2009
- July 2009
- June 2009
- May 2009
- March 2009
- January 2009
- December 2008
- November 2008
- October 2008
- September 2008
- July 2008
- April 2008
- March 2008
- February 2008
- December 2007
- November 2007
- October 2007
- September 2007
Category Archives: Java
Debugging Hibernate using Log4J Logs
People who work with Hibernate often want to see, what SQL it is prepairing behind the seen and how it is mapping in real for debug purpose. We can achieve this by enable log4j for Hibernate classes. This will give … Continue reading
Posted in debug, hibernate, Java
Leave a comment
java.security.NoSuchAlgorithmException: No implementation for AES/CBC/NoPadding found
Hi, From past few days I and my few team members were getting the following error during LDAP authentication: javax.net.ssl.SSLException: Algorithm missing: at com.sun.net.ssl.internal.ssl.SSLSocketImpl.f(DashoA12275) at com.sun.net.ssl.internal.ssl.SunJSSE_ax.a(DashoA12275) at com.sun.net.ssl.internal.ssl.SunJSSE_az.j(DashoA12275) at com.sun.net.ssl.internal.ssl.SunJSSE_az.a(DashoA12275) at com.sun.net.ssl.internal.ssl.SunJSSE_az.a(DashoA12275) at … Continue reading
Posted in Java, Troubleshoot
Leave a comment
Rename log4j.properties
Some time the need arises to have our log4j.properties with different name. By default, if no other configuration is given, log4j will search your classpath for a 'log4j.properties' file. Now to use your own named log4j property add the following … Continue reading
Posted in HowTo, Java, log4j
Leave a comment
Log4j errors : log4j:WARN No appenders could be found for logger, log4j:WARN Please initialize the log4j system properly
This is a very common problem, it occurs when log4j.properties not found in classpath. Create a file called log4j.properties. Place it in the root folder where your java classes are found. When log4j initializes, it will look for a file … Continue reading
Posted in Java, log4j
Leave a comment
HSQLDB : java.sql.SQLException: Access is denied in statement [SELECT * FROM TBALE]
This error appears when you have not specified required privileges to user in SCRIPT file for running the statements. Use the commands as follows just after user creation grant access as DBA like below: CREATE USER SA PASSWORD "" GRANT … Continue reading
Posted in Database, hsqldb, Java, Troubleshoot
Leave a comment
HSQLDB : java.sql.SQLException: User not found: SA
While running HSQLDB in standalone mode you may face the error java.sql.SQLException: User not found: SA This is because while creating the DB using script file you are not creating the user CREATE USER SA PASSWORD "" The above … Continue reading
Posted in Database, hsqldb, Java, Troubleshoot
Leave a comment
org.apache.jasper.JasperException: Failed to load or instantiate TagLibraryValidator class: org.apache.taglibs.standard.tlv.JstlCoreTLV
Today while running following JSP <%@ page session="false"%> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> <c:redirect url="/index.htm"/> I was hitting a error org.apache.jasper.JasperException: Failed to load or instantiate TagLibraryValidator class: org.apache.taglibs.standard.tlv.JstlCoreTLV I checked my classpath and found … Continue reading
Posted in Java, Troubleshoot
Leave a comment
Spring cross site scripting XSS issues solution
XSS (Cross-site Scripting) is one of the most common vulnerabilities with a web-application. And, it can be exploited by hackers very easily without using any sophisticated tool. How does it work? Most web-applications have forms (text-box etc.) to receive input-data … Continue reading
Posted in Articles, Java
5 Comments
How To: Read web/META-INF/MANIFEST.MF in Web Application
Hi All, As you all know In web application inside web directory there is a META-INF directory. Inside which we have MANIFEST.MF that holds version information. I have to read the MANIFEST.MF from this directrory. Need the manifest info for … Continue reading
Posted in HowTo, Java
2 Comments
svnant: java.lang.NoClassDefFoundError: com/trilead/ssh2/InteractiveCallback
Today I was integrating svn with ant using svnant plugin. I encountered the error java.lang.NoClassDefFoundError: com/trilead/ssh2/InteractiveCallback Basically I was operating on SSH layer so it needs a additional support for connecting to the server. this is looking for trilead-ssh2-build213.zip that … Continue reading
Posted in Java, Troubleshoot
2 Comments