GratisJSP
MenuCreate GratisJSP Account
Contact  Terms & Conditions  Help   

Account
Login

Help


Logging
To make your application log you must follow these steps:
  1. Do NOT include a log4j JAR file (it already is in the common classloader).
  2. Do NOT include log4j.properties or log4j.xml
  3. Import org.apache.log4j.* in your JSP and Java files. (You do need log4j jar file in your classpath to compile, but do NOT include it in the WAR file.)
  4. Create a logger with package name "org.gratisjsp.<your GratisJSP username>" in your JSP and Java files.
You read the log file by selecting List apps in the left menu. Click Browse and navigate to the logs directory.

Database access
When accessing the database you must use the existing connection pool. Using a connection pool will improve performance of your application and save system resources. There is a Datasource and connection pool configured in GratisJSP Tomcat ready for this purpose. Download and examine the example.zip file.
Do NOT use Hibernate together with Tomcat, and hence not in GratisJSP either. For some reason hibernate in Tomcat causes memory leakage.

© GratisJSP Terms & Conditions