WebLogic 설정 팁
Confluence sends its log output to standard out, so by default Weblogic does not record it. To redirect Confluence's log output to a file follow these instructions Redirecting System.out and System.err to a File
Confluence must be deployed as an exploded war file to WebLogic.
Otherwise you may experience errors as such:
Weblogic 9.x 에 Confluence 배포하기
If you are seeing the following error -- or other NoSuchMethodErrors -- then this tip is for you!
It appears that WLS 9 ships with an incompatible version of org.objectweb.asm.* packages which clash with the ones required by Hibernate. You can fix this by adding to the weblogic.xml deployment descriptor the settings.
WebLogic 8.1 성능 문제
Creating a weblogic.xml file can improve the performance of Confluence within the WebLogic 8.1 series. This is particularly suitable in cases where WebLogic continually seeks to reload files from jars (which can be noticed when profiling Confluence in WebLogic and encountering excessive calls to java.util.zip.ZipFile.getEntry() ).
Find a typical example immediately below with an explanation of terms following:
This file should be created in the WEB-INF/ directory of your Confluence deployment.
The full weblogic.xml syntax is described in BEA's documentation. Here we describe some important parameters you should consider setting.
JSP reload 체크 사용중지하기
Performance can be considerably affected by Weblogic's tendency to scan JSPs for changes on every page load.
This can be disabled by setting pageCheckSeconds to -1.
servlet reload 체크 사용중지하기
Similar to the JSP reload checks, Weblogic will scan servlets for modifications every second (by default), hurting performance.
This can be prevented by setting the servlet-reload-check-secs element to -1.
Avoiding JSP recompiles on redeploy
If you Weblogic instance is often restarted, performance can be improved by explicitly setting a directory to save compile JSPs to (the workingDir parameter), and setting precompile to 'false'.
A JIRA user has reported that the following configuration can ensure that Chinese character sets are displayed correctly - add the following entry to the weblogic.xml file.
Most of this page duplicates JIRA documentation - you might also like to read http://www.atlassian.com/software/jira/docs/latest/servers/weblogic.html .
Confluence 2.x 에 대해 OSCache 사용중지하기
Confluence 2.0 uses oscache 2.1.1, which causes problems when Confluence is deployed in a weblogic container. This problem will show up by the Confluence css file taking a very long time (upwards of 30mins) to load. To fix this, you will need to disable the oscache, by removing the following entry from the WEB-INF/web.xml file.
We are currently investigating the root cause of this problem
Custom templates (decorators) do not work on WebLogic 8.1 SP2.
If, after creating a custom template, you see no result, check your velocity.log for a statement similar to:
where <space_key>, of course, matches your space key.
This problem does not occur on WebLogic 8.1 SP3.
WebLogic 8.1 Soap 이슈
WebLogic 8.1 ships with webservices.jar that conflicts with Axis' saaj.jar and prevents Axis 1.2 from working right out of the box. This conflict exists because WebLogic uses an older definition of javax.xml.soap.* package from Java Web Services Developer Pack Version 1.0, whereas Axis uses a newer revision from J2EE 1.4.
However, there are two alternative configuration changes that enable Axis based web services to run on Weblogic 8.1.
In a webapp containing Axis, set <prefer-web-inf-classes> element in WEB-INF/weblogic.xml to true. An example of weblogic.xml is shown below:
If set to true, the <prefer-web-inf-classes> element will force WebLogic's classloader to load classes located in the WEB-INF directory of a web application in preference to application or system classes. This is a recommended approach since it only impacts a single web module.
In a script used to start WebLogic server, modify CLASSPATH property by placing Axis's saaj.jar library in front of WebLogic's webservices.jar.
NOTE: This approach impacts all applications deployed on a particular WebLogic instance and may prevent them from using WebLogic's webservices.
For more information on how WebLogic's class loader works, see WebLogic Server Application Classloading.
WebLogic 8.1 & HTTP Compression
There may be problems with WebLogic 8.1 and HTTP compression (by default disabled). This issue is being investigated and tracked at ATLS:CONF-6304@JIRA
ATT: HSQL or Embedded Database users - Webapp redeployment problems
A customer has reported that it is not possible to redeploy Confluence when it has been set up against a HSQL or embedded database. In general we do not recommend customers use the embedded database on production systems. If you want the ability to redeploy Confluence (particulary if you have other applications deployed in your weblogic server), you must use an external database in order for it to work. Thanks to Eric Black for this tip.