Okay, ignore this whole thread ... I have it figured out.


Thanks
-- Jeff

  _____  

From: Jeff Chastain [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 16, 2004 7:54 PM
To: CF-Talk
Subject: RE: CFMX & Java API

Okay, I have answered my first question.  The first error message was being
generated because I needed a second jar library included in the classpath.
Once that was in place, the first line passed.

Now, the second error that I was afraid would appear.  ColdFusion does not
know what the 'response' variable is, which is not all that unexpected.  So,
are there any Java types out there that could help with this aspect of
translation?

Thanks
-- Jeff

  _____  

From: Jeff Chastain [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 16, 2004 7:20 PM
To: CF-Talk
Subject: OT: CFMX & Java API

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