Accessibility

TechNote (Archived)

NoClassDefFoundError reported when using cfobject with COM objects in ColdFusion MX 6.1

Issue


Macromedia ColdFusion MX 6.1 may report a NoClassDefFoundError when using cfobject to create or access COM objects on Windows platforms. This error only happens when sandbox security is implemented.

ColdFusion MX 6.1 customers may experience a NoClassDefFound error when attempting to use cfobject to create or access COM objects on Windows platforms when sandbox security is used. The error occurs even though the DLL exists and is in the correct location. Here is a portion of the stack trace from the error:

java.lang.NoClassDefFoundError
at com.intrinsyc.typeInfo.MacroViewer.<init>(MacroViewer.java:90)
at com.intrinsyc.typeInfo.MacroViewer.<init>(MacroViewer.java:69)
at com.intrinsyc.typeInfo.InterfaceInfoFactory.getInfoGivenPROGID(InterfaceInfoFactory.java:50)
at coldfusion.runtime.com.ComProxy.<init>(ComProxy.java:115)

ColdFusion MX uses an embedded OEM licensed version of Intrinsyc's J-Integra product for COM integration. In previous versions of ColdFusion MX, all of the J-Integra files were included in the file cf_root\lib\jintegra.jar. In ColdFusion MX 6.1, there are customized J-Integra classes written specifically for Macromedia. These classes (com.intrinsyc.typeInfo) are included in cf_root\lib\cfusion.jar, NOT in the jintegra.jar file. When the classes in cfusion.jar are called, they attempt to read the J-Integra license file (com/intrinsyc/license/jintegra.xml), which is in jintegra.jar. Unless the sandbox allows read access to jintegra.jar, the necessary classes in cfusion.jar cannot read the license file in jintegra.jar. This has been reported as Macromedia issue 53498.

Solution


Use the following steps to resolve this issue:

  1. Open the ColdFusion Administrator.
  2. Navigate to the sandbox in which you are trying to usecfobject.
  3. In the Files/Dirs section of the sandbox, add "read" permission to cf_root\lib\jintegra.jar.

  4. Restart ColdFusion.

After this change, the NoClassDefFoundError no longer occurs.

Additional Information


Related TechNotes


AlertThis content requires Flash

To view this content, JavaScript must be enabled, and you need the latest version of the Adobe Flash Player.

Download the free Flash Player now!

Get Adobe Flash Player

Creative Commons License

Search Support


Document Details

ID:tn_18947
Browser:Chrome
Internet Explorer
Netscape
Opera
Safari
Firefox

Products Affected: