Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Content Management (Extended ECM)
API, SDK, REST and Web Services
9.5 java module problems
ATHANASSIOS_FAMELIARIS
Hello all!I've been having a rough time with LL 9.5. We received the SDK 3 days ago and I still can't get it to work properly. MyHome is working fine, but the examples provides with the JavaModules project don't. Hello World for example with me a message "helloworld is not a registered action". I have the feeling that the plugins are not loaded. I have put breakpoints in the initialize methods of the plugin of a new module that I created and I get no break when I run though eclipse using debug. Also, from eclipse, none of the threads had any of the plugin methods (not my plugin or the plugins from the examples) on their stack!Any ideas? I would greately appreciate ANY tips! I'm on the verge of nervous breakdown after three days of getting nowhere! Thanks in advance!
Find more posts tagged with
Comments
Developers_Comparex_Africa_(x-comparexdevelopment_
I am also getting the same error messages... Do anyone know of a possible solution?
Developers_Comparex_Africa_(x-comparexdevelopment_
I found this with regard to the helloworld module. The URL embedded in the UI for the HelloWorld navigation menu is:
http://[livelink
path]/hello-Domain.do?request=helloworld.Personal&id=2003That URL generates the "helloworld error"; i.e.Livelink Error: System Error [helloworld is not a registered action for the Personal object within the hello-Domain domain] If you look at the code and then compose (i.e. hack) the URL to be what the tutorial says it should be, namely:
http://[livelink
path]/hello-Domain.do?request=hello-Action.hello-Objectthe page will be displayed without errors.
ATHANASSIOS_FAMELIARIS
Thanks for that, I found out myself a couple of days ago. I have found out some other interesting stuff:-Iif you want Tomcat to look for your JSPs in your JSP folder under your JavaModules directory structure, you need to setup the Livelink.xml file found in TOMCAT_HOME\conf\catalina\localhost\ to point to the JavaModuels directory, instead of OPENTEXTHOME\applications.-Thw crimson.jar that was mentioned elsewere needs to be in your classpath.-The xml files found in OPENTEXTHOME\config\JavaModules specify information for all the example modules that add nodes. For example ZipDoc.xml specifies how the create action url should be constructed. Both that and the xml create action are missin a ctt_ID parameter. Add that to the live for the create action, if you want to be able to add zipdoc and xml nodes.-Another point for zipDoc and xml is that you need to add a line in their webApp classes, in the initialize method:WebRegistry.addWebObject(context, ZipDocWebObject.class );And the equivalent for xml.
Justin_Lam_(eu0017479_-_(deleted))
Athanassios,I added a ctt_id=%1 parameter to the XML create action lines in the XML files. Was this what you meant ? Should the ctt_id be the same as the parentid parameter ?But it still doesn't work for me.When trying to create a ZipDoc I get the following detailed error:com.opentext.elf.webapp.ui.controller.ControllerException: Cannot create the Zip Document object.Node creation callback not ported: Recommender CallbacksAny help massively appreciated !
Jason_McPeak
Message from Jason McPeak <
JMcPeak@opentext.com
> via eLink
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">eLink
Justin,
Because of the problems of Java Modules not being able to execute OScript callbacks we put in a safety check - com.opentext.elf.webapp.common.OScriptStubFactory (AppServer side) and com.opentext.elf.plugin.core.OScriptStubFactory (backend side.)
Both classes use the [OTHome]\config\javaserver.stubs.xml file to determine if all needed callbacks were registered. Take a look at the source for these classes to see what they do.
To "bypass" this check, you'll need to comment out some lines in [OTHome]\config\javaserver.stubs.xml:
Comment out the this line
<nodeListener name="CompoundDoc" subTypes="136" copy="true" />
through this line:
<groupListener name="eLinkProtectUserCallback" update="true" delete="true" />
Restart and the ZipDoc code should work.
From:
eLink Discussion: Development Discussion [mailto:development@elinkkc.opentext.com]
Sent:
Wednesday, January 11, 2006 11:07 AM
To:
eLink Recipient
Subject:
Almost there...
Almost there...
Posted by
EU0017479
(Lam, Justin) on 01/11/2006 12:05 PM
In reply to:
Indeed...
Posted by
ap_stavzeti
(FAMELIARIS, ATHANASSIOS) on 03/11/2005 04:22 AM
Athanassios,
I added a ctt_id=%1 parameter to the XML create action lines in the XML files. Was this what you meant ? Should the ctt_id be the same as the parentid parameter ?
But it still doesn't work for me.
When trying to create a ZipDoc I get the following detailed error:
com.opentext.elf.webapp.ui.controller.ControllerException: Cannot create the Zip Document object.
Node creation callback not ported: Recommender Callbacks
Any help massively appreciated !
Justin_Lam_(eu0017479_-_(deleted))
Thanks very much Jason,I finally got them working !
Jason_McPeak
To properly fix all of those ctt_id problems edit this file: java.com.opentext.elf.webapp.node.component.CreateWebBean.javaand change this:if ( fCtt_ID == null ){ throw new ControllerException( "You must specify a valid ctt_ID value for the new object." );}to this:if ( null == fCtt_ID ){ fCtt_ID = fParentID; if ( null == fCtt_ID ) { throw new ControllerException( "You must specify a valid ctt_ID or parentID for the new object." ); }}