Corinis FAQ

Installation/Configuration

Q: I recently upgraded my corinis jars and when I am in the CMS I do not get the edit/... buttons

It seems that your database isnt upgraded correctly. Use the steps explained under [Upgrade] to upgrade your database. Make sure to renew the corinis caches afterwards (remove the WEB-INF/cache/* directories).

Q: When running I get an error: Compiler not found in JAVA_HOME or similar.

A: copy the tools.jar from your j2sdk directory into the tomcat/common/lib directory.

Q: When running the setup.jsp it does not seem to be able to connect to the database.

A: Make sure you got the rights set up, the database server is running and the database exists. If you havent done so: # mysql -u root mysql> create database corinis; Query OK, 1 row affected (0.00 sec) mysql>

Q: I dont' see any tumbnails in the photolibrary and when I klick und the photo - there is no photo

A: Check in the Configuration XML: 1st: does the temp path exist (/CORINIS/CORE/UPLOAD/TEMPPATH), 2nd check if

/CORINIS/MODULES/WEBALBUM/ALBUMWEBROOT in the Confirguration XML points to the correct path

Q: When trying to login I get: java.lang.NoClassDefFoundError?: javax/servlet/ServletContext

A: make sure you got the servlet.jar from the tomcat common/lib dir in your classpath.

Q: I am geting errors like: Fatal Database error java.lang.NullPointerException? Query: select distinct corinismachine.* from corinismachine where (corinismachine.domain = 'localhost')

java.lang.NullPointerException
	at corinis.modules.abstracts.data.DataView.deleteStatement(DataView.java:585)
	at corinis.modules.abstracts.data.DataView.deleteEntry(DataView.java:1417)
	at corinis.modules.core.CorinisContext.updateCache(CorinisContext.java:395)
	at corinis.Core.<init>(Core.java:172)
	at corinis.Core.<init>(Core.java:85)
	at org.apache.jsp.getEntry_jsp._jspService(getEntry_jsp.java:91)
	...

A: Open your configuration.xml (corinis.xml) and make sure this part is correct:

    <CORE>
      <DEBUG>true</DEBUG>
      <TIMEOUT>60</TIMEOUT>
      <TEMPPATH>c:\\temp\\</TEMPPATH>
      <MACHINE>127.0.0.1</MACHINE>
          <MACHINES>
                  <NAME>127.0.0.1</NAME>
          </MACHINES>
    </CORE>
   In case the MACHINE and MACHINES tags are missing, add them.

Q: When running the configurator (setup.jsp) I get an Excpetions like java.lang.NoClassDefFoundError?: javax/xml/parsers/DocumentBuilderFactory

Step 1: Parsing configuration file test.xml... Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/parsers/DocumentBuilderFactory
        at omnis.Configurator.a(Configurator.java)
        at omnis.Configurator.<init>(Configurator.java)
        at omnis.Configurator.<init>(Configurator.java)
        at omnis.Configurator.main(Configurator.java)

A: This happens when xerces.jar or xercesImpl.jar are missing in the Classpath. Make sure they are in the tomcat/common/lib folder.

Q: After running the CCM for some time, it seems to be getting slower and slower. Why (I am using mysql)?

A: The Corinis CCM uses Connection Pooling, it opens quite some connections to the database in order to be able to respond quicker (by this the overhead of connecting to the db falls away). It may be that because of your configuration the maximum numbers of concurrent conections to the database are exhaustet.

In this case you have to raise the value of max_connections in my.cnf (compare it to the configuration in the corinis.xml). When using Linux this value can easily be raised from the Default(100) to 500-1000 (depending on the ram instaled).

To find out what you max_connections is right now use "mysqladmin variables" (using linux you can also use: "mysqladmin variables | grep max_connections"; depending on your configuration you might want to add -u USERNAME -p PASSWORD)

Usage

Q: I am using FireFox?|Mozilla|Gecko based browser, and I can't copy/pase in the richedit fields!

A: This is a normal behaviour. Just follow the information on the follow up site after you clicked OK.

or

A: Open your user.js file (found in Application Data/Firefox or ~/.firefox) and add:

user_pref("capability.policy.policynames", "allowclipboard");
user_pref("capability.policy.allowclipboard.sites", "http://my.admin.domain.tld http://localhost:8080");
user_pref("capability.policy.allowclipboard.Clipboard.cutcopy", "allAccess");
user_pref("capability.policy.allowclipboard.Clipboard.paste", "allAccess");

You can add more sites in case you have more domains with richtext-editing.

Q: I am getting OutOfMemory? Errors

A: Corinis uses a lot of caching to be able to server content as fast as possible. This requires quite a lot of memory, so when starting the servlet container make sure to use the java parameters:

  • -server (Use the server java implementation)
  • -Xmx200m (Set the memory used by java to 200MB - 64MB is default - set it higher for larger sites)

Implementation/CMS

Q: I created a new Template but when creating a document based on it, I only get white pages.

A: There are two reasons why this happens: either because the template file is not found, or because it is not xml-compatible. When saving the template, make sure it says OK and not FAILED Also make sure the configuration is correkt and the files are read from there (you can also see if the files exist in the folder). If you changed something/installed recently, restart tomcat and try again.

Q: There is some mysterious additional output, which I didn't define in the XSL

A: Check your template-match tag - is it set to '/' ? If not - this could be the problem - since according to XSL-standard every XML-data not catched via a template-match tag is printed as is. So if you have:

...
<xsl:template match = "somepath/somefurtherpath">
   <xsl:value-of select="somenode"/>
</xsl:template>

for handling the following xsl-tree

<SOMEPATH>
   <SOMENODE1/>
   <SOMEFURTHERPATH>
      <SOMENODE/>
   </SOMEFURTHERPATH>
</SOMEPATH>

you might consider to change the xsl as follows - since otherwise "SOMENODE1" for example isn't included in the template-match and will therefore be printed as is:

...
<xsl:template match = "/">
   <xsl:value-of select="/somepath/somefurtherpath/somenode"/>
</xsl:template>

Q: The entered text in my fields seemed to be not saved since the field-values aren't shown in output and when I edit the document again the field value is gone

A: Check your template and look if not 2 field have the same name

Q: How do I set the style of the links in my documents (when edited with the editor)?

A: First of all: this is ONLY possible if you dont use TagLib (might change doh). After initializing the Cms do:

Cms cms = (Cms)core.getModule(Cms.class);

cms.setInternalLinkStyle("index.jsp?Document_id=$id");
// or
cms.setInternalLinkStyle("/cms/$path");

As for the useage:

Converts a given internal Link id to a valid link using an optional given style.

  • $id - will be replaced by the id of the document
  • $path - will be replaced by the full path to the document (f.e. /area1/doc2)

Module Development

Q: When using popcalendar (or the cms variant) + movewindow - either one dont work

A: Use the following order to get it working: <script language='javascript' src='../../includes/global_functions.js'></script> <LINK REL="stylesheet" type="text/css" href="../../includes/popcalendar.css" /> <script language='javascript' src='../../includes/popcalendar.js'></script> <%

// we use a floating window

String windowName[] = {"createDirWindow","createDocWindow","createLinkWindow"};

%> <%@include file="../../includes/dhtml/movewindow.ijsp"%>