We are getting Java.Lang.RuntimeException error in all the website pages. Following is the snippet from the cd_core log.
I have seen the license file has been commented out from storage config. Could it be a reason? Or is it the cd_linking.jar not available in the lib?
2013-12-04 01:00:35,496 ERROR ComponentLink - Error while constructing linking: Could not initialize class com.tridion.storage.StorageManagerFactory
java.lang.NoClassDefFoundError: Could not initialize class
com.tridion.storage.StorageManagerFactory
at com.tridion.linking.ComponentLink.init(ComponentLink.java:124) ~[cd_linking.jar:na]
at com.tridion.linking.ComponentLink.<init>(ComponentLink.java:86) [cd_linking.jar:na]
2013-12-04 01:00:35,496 ERROR ComponentLink - No LinkInfo is found in the bindings, could not retrieve ComponentLinkInfo
UPDATE 1 - As I said, the licence file is commented out.
<Storage Type="persistence" Id="sessionDb" dialect="MSSQL" Class="com.tridion.storage.persistence.JPADAOFactory">
<Pool Type="jdbc" Size="5" MonitorInterval="60" IdleTimeout="120" CheckoutTimeout="120" />
- <DataSource Class="com.microsoft.sqlserver.jdbc.SQLServerDataSource">
<Property Name="serverName" Value="abc" />
<Property Name="portNumber" Value="test123" />
<Property Name="databaseName" Value="testdb" />
<Property Name="user" Value="testuser" />
<Property Name="password" Value="test" />
</DataSource>
</Storage>
</Wrapper>
</Wrappers>
- <Storages>
- <Storage Type="persistence" Id="TridionDB" dialect="MSSQL" Class="com.tridion.storage.persistence.JPADAOFactory">
<Pool Type="jdbc" Size="5" MonitorInterval="60" IdleTimeout="120" CheckoutTimeout="120" />
- <DataSource Class="com.microsoft.sqlserver.jdbc.SQLServerDataSource">
<Property Name="serverName" Value="xyz" />
<Property Name="portNumber" Value="test" />
<Property Name="databaseName" Value="testdb1" />
<Property Name="user" Value="testuser1" />
<Property Name="password" Value="testpwd" />
</DataSource>
</Storage>
- <Storage Type="filesystem" Class="com.tridion.storage.filesystem.FSDAOFactory" Id="LocalFileSystem" defaultStorage="true" LocalFileSystemsystem="false">
<Root Path="b:/root/path" />
</Storage>
- <Storage Type="filesystem" Class="com.tridion.storage.filesystem.FSDAOFactory" Id="LocalFileSystemData">
<Root Path="c:/root/path" />
</Storage>
</Storages>
</Global>
- <ItemTypes defaultStorageId="TridionDB">
- <!--
<Item typeMapping="Publication" storageId="LocalFileSystem" />
<Item typeMapping="ComponentPresentation" itemExtension=".Asp" storageId="LocalFileSystem" />
<Item typeMapping="BinaryMeta" storageId="LocalFileSystem" />
<Item typeMapping="BinaryVariant" storageId="LocalFileSystem" />
<Item typeMapping="ComponentMeta" storageId="LocalFileSystem" />
<Item typeMapping="ComponentPresentationMeta" storageId="LocalFileSystem" />
<Item typeMapping="ItemMeta" storageId="LocalFileSystem" />
<Item typeMapping="ComponentPresentation" itemExtension=".Jsp" storageId="LocalFileSystem" />
<Item typeMapping="LinkInfo" storageId="LocalFileSystem" />
<Item typeMapping="PageMeta" storageId="LocalFileSystem" />
<Item typeMapping="Reference" storageId="LocalFileSystem" />
<Item typeMapping="Schema" storageId="LocalFileSystem" />
<Item typeMapping="XSLT" storageId="LocalFileSystem" />
<Item typeMapping="ComponentPresentation" itemExtension=".Txt" storageId="LocalFileSystem" />
<Item typeMapping="ComponentPresentation" itemExtension=".Xml" storageId="LocalFileSystem" />
<Item typeMapping="Page" storageId="LocalFileSystem" />
<Item typeMapping="Binary" storageId="LocalFileSystem" />
-->
</ItemTypes>
- <!--
Specifies the location of the license file.
<License Location="cd_licenses.xml"/>
-->
UPDATE 2 -
<! --DD4T-->
<Publication Id="42" d efaultStorageId="Tri dionDB" cached="fale">
<Item storageId ="defaultFile" typeMapping="Binary" cached="true" />
ComponentLink.java
so yourcd_linking.jar
is definitely found. But it could not initialize classcom.tridion.storage.StorageManagerFactory
so it seems you have an error in your storagecd_storage_conf.xml
, could you edit your question and add your Storages and ItemTypes configuration?