I have a Java based API from Plumtree Software.  I know ColdFusion, but have
very little Java knowledge.  I have to utilize this piece of software and
its API.  So, I am still trying to make this API work with ColdFusion.
Plumtree won't offer any support as they don't support ColdFusion.  So, here
I am as a last resort for help.


I have some JSP examples that are provided by Plumtree that I am trying to
duplicate to just get started.  In these JSP examples, after all of the
library import calls is the following line of code ...


     IPortletContext context =
PortletContextFactory.createPortletContext(request,response);


So, I assume I need to create a new object based upon the
PortletContextFactory class (it is a class in a jar which I have put in the
CFMX admin class path and then restarted) and then execute the
createPortletContext method of that object as follows?


     <cfobject action="" type="java"
class="com.plumtree.remote.portlet.PortletContextFactory"
name="oPortletContextFactory">
     <cfset context =
oPortletContextFactory.createPortletContext(request,response)>


First off, this throws an exception on the <cfobject tag stating "Object
Instantiation Exception: An exception occurred when instantiating a java
object.  The cause of this exception was that:
com/plumtree/openfoundation/web/IXPRequest."  I have checked the class path
to the PortletContextFactory class and that is correct.  So, what else could
I be missing?


Second, in the second line, what is the request and response parameters
being passed?  Is this a Java thing and if so, how is this handled within
CF?


I am really lost here and my Java knowledge is so limited that I may really
be missing something very simple here.  Anybody have any suggestions?


Thanks
-- Jeff
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to