...
Code Block |
---|
log4j:WARN No appenders could be found for logger (org.apache.commons.httpclient.params.DefaultHttpParams). log4j:WARN Please initialize the log4j system properly. log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info. |
Workaround 1
Change name of config file. e.g.
Code Block |
---|
cp client/target/cloud-client-ui-4.2.0-SNAPSHOT/WEB-INF/classes/log4j{,-cloud,}.xml |
2) Problem: Server will not start and throws following exception
java.lang.OutOfMemoryError: Java heap space
Workaround 2
Set CATALINA_BASE e.g.
Code Block | ||
---|---|---|
| ||
export CATALINA_BASE=X:/path/to/dir/contains/conf/log4j-cloud.xml |
X: is the windows disk label , PropertiesUtil will find : CATALINA_HOME or CATALINA_BASE .
2) Problem: Server will not start and throws following exception
java.lang.OutOfMemoryError: Java heap space
Workaround:
This problem can Workaround:
This problem can arise when launching the server with too small of a heap. If you are launching using Maven, use MAVEN_OPTS to increase the stack size.
...
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms384m
-Xmx2048m
7) Problem : can not find sudo command
Workaround , create a bash file named as /bin/sudo with script content :
Code Block | ||
---|---|---|
| ||
#!/usr/bin/bash
cygstart --action=runas "$@" |
then chmod +x /bin/sudo