I am in troubles with Tridion Linking. I am trying to install it in my .NET web application, but actually, Tridion Linking is not working, it is throwing an exception. The issue seems to come from Java layer. I can instantiate an object of, for example, PageLink type, however, problems comes when I try to access the methods which are defined in this type (GetLinkAsString method for example):
Response.Write(componentLink.GetLinkAsString("tcm:xx-xx-64","tcm:xx-xx", "tcm:0-0-0", "onClick=\"alert('I am a link')\"","Link for the text",true,false));
Finally, in presentation server (in my .NET web application) I have kept it simple, only API role installed and the same source files (DLLs, JARs) than in other environements where all works fine. I have edited the needed config files (XMLs) too (properly I think).
I see the following error:
Unhandled Execution Error
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: Java.Lang.RuntimeException
[RuntimeException]
Codemesh.JuggerNET.NTypeValue.Throw(Int64 inst) +514
Codemesh.JuggerNET.JavaClass.ThrowTypedException(Int64 inst) +1243
Codemesh.JuggerNET.JavaMethod.CallString(JavaProxy jpo, JavaMethodArguments args) +849
Com.Tridion.Linking.ComponentLink.GetLinkAsString(String sourcePageURI, String targetComponentURI, String excludeTemplateURI, String linkTagAttributes, String linkText, Boolean showTextOnFail, Boolean showAnchor) +244
ASP.dglb_compo_link_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in d:\websites\sites\xxxxx\xxxx\culture\compo_link.aspx:11
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +131
System.Web.UI.Page.Render(HtmlTextWriter writer) +40
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5290
I have Tridion 2011 SP 1 HR 1 with Java 6 u27 (updated to 6 u45) version installed (both 32 bits and 64 bits).
Only API Role installed. Basic configuration:
DLL (6 files): netrtsn.dll, Tridion.ContentDelivery.AmbientData.dll, Tridion.ContentDelivery.Configuration.dll, Tridion.ContentDelivery.dll, Tridion.ContentDelivery.Interop.dll xmogrt.dll
JAR (47 files): activation.jar, antlr.jar, aopalliance.jar, cd_broker.jar, cd_cache.jar, cd_core.jar, cd_datalayer.jar, cd_dynamic.jar, cd_linking.jar, cd_model.jar, cd_tcdl.jar, cd_wai.jar, commons-collections.jar, commons-dbcp.jar, commons-pool.jar, dom4j.jar, easylicense.jar, ejb3-persistence.jar, hibernate-annotations.jar, hibernate-commons-annotations.jar, hibernate-core.jar, hibernate-entitymanager.jar, hibernate-validator.jar, javassist.jar, jaxb-api.jar, jaxb-impl.jar, jcl-over-slf4j.jar, jdbcpool.jar, jta.jar, logback-classic.jar, logback-core.jar, persistence-api.jar, serializer.jar, slf4j-api.jar, spring-aop.jar, spring-asm.jar, spring-beans.jar, spring-context-support.jar, spring-context.jar, spring-core.jar, spring-expression.jar, spring-jdbc.jar, spring-orm.jar, spring-tx.jar, sqljdbc4.jar, stax-api.jar, xalan.jar.
CONFIG (5 files): cd_dynamic_conf.xml, cd_licenses.xml, cd_link_conf.xml, cd_storage_conf.xml, cd_wai_conf.xml
Default configuration: only edited cd_store_conf.
WEB CONFIG: Default configuration. Only applied:
<configuration>
<system.web>
<pages>
<controls>
<add tagPrefix="tridion" namespace="Tridion.ContentDelivery.Web.UI" assembly="Tridion.ContentDelivery" />
</controls>
</pages>
</system.web>
</configuration>
Any ideas?