Nathan,

Thanks for pointing out what should have been obvious. It's been a while since I did anything w/ CF, and it shows.

In my defense, the errorneous code I was using came right from the docs. Chapter 32 Integrating J2EE and Java:

<snip>
Invoking objects

The cfobject tag makes Java objects available in ColdFusion. It can access any Java class that is available on the JVM classpath or in either of the following locations:

In a Java archive (.jar) file in web_root/WEB-INF/lib
In a class (.class) file in web_root/WEB-INF/classes

For example:

<cfobject type="Java" class="MyClass" name="myObj">
</snip>

See, no action attribute!

Thanks Again, Albert

At 10:21 AM 8/4/2003 -0700, Nathan wrote:
As the error message says, you don't have the ACTION attribute of CFOBJECT.
You might try just using createObject() as you do in execute.cfm.

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Behalf Of Al Bupp
> Sent: Monday, August 04, 2003 8:14 AM
> To: [EMAIL PROTECTED]
> Subject: [CFCDev] CFOBJECT Validation Error
>
>
> Greeting Folks,
>
> I'm new to this list. Hate to jump right in w/ a question, but
> I'm sure you
> all know how it is sometimes...
>
> I've got a CF page which is attempting to create an object which
> maps to a
> java class which has been saved to the app's session scope. The CF code
> looks like this:
>
> In execute.cfm
> </cfscript>
> // instantiate response object
> Session.bapiResp = CreateObject("java",
> "com.backsoft.ws.BapiSalesorderCreatefromdat2ResponseBean");
> ret = Session.bapiResp.init();
>
> // call the business interface
> Session.bapiResp = impl.bapiSalesorderCreatefromdat2(bapiReq);
> </cfscript>
>
> In show_results.cfm
> <cfobject type="java"
> class="com.backsoft.ws.BapiSalesorderCreatefromdat2ResponseBean"
> name="bapiResp">
>
> This last line of code results in the following CF error message:
> <error>
> Attribute validation error for tag CFOBJECT.
> The tag has an invalid attribute combination: class,name,type. Possible
> combinations are:
> Required attributes: 'action,class,name'. Optional attributes:
> 'context,locale,server,type'.
> Required attributes: 'component,name'. Optional attributes: 'type'.
> Required attributes: 'name,webservice'. Optional attributes: 'type'.
> </error>
>
> Can anyone offer a suggestion about how to resolve this problem?
>
> Thanks in advance, Albert
>

----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the word 'unsubscribe cfcdev'
in the message of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).

----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the word 'unsubscribe cfcdev' in the message of the email.


CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).

Reply via email to