Highlighted

CFX initialization error with sandbox security enabled

Explorer ,
Aug 21, 2015

Copy link to clipboard

Copied

I've found that CFX_HTTP5 works fine with CF10 if I have sandbox security turned off.  However when I turn the sandbox on, the CFM page containing the CFX_HTTP5 tag will return a blank page and generate an error in the application.log "Could not initialize class coldfusion.tagext.NativeCfx"

The top of the stack trace looks like this:

Could not initialize class coldfusion.tagext.NativeCfx The specific sequence of files included or processed is: D:\Staging\cfxtest.cfm, line: 13 "

java.lang.NoClassDefFoundError: Could not initialize class coldfusion.tagext.NativeCfx

    at coldfusion.tagext.CfxTag.doStartTag(CfxTag.java:108)

    at coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:2795)

The cfxhttp5.dll is in C:/ColdFusion10/cfusion/CustomTags folder

I have fiddled with read, read+execute permissions and sandbox file paths such as:

c:\coldfusion10\cfusion\lib and lib\-

C:/ColdFusion10/cfusion/CustomTags/ and /-

C:/ColdFusion10/cfusion/lib/CFXNeo.dll

Platform is CF10 Enterprise 64-bit w/HF16 on Windows 2012.  Java 1.8.0_45

TOPICS
Advanced techniques

Views

688

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

CFX initialization error with sandbox security enabled

Explorer ,
Aug 21, 2015

Copy link to clipboard

Copied

I've found that CFX_HTTP5 works fine with CF10 if I have sandbox security turned off.  However when I turn the sandbox on, the CFM page containing the CFX_HTTP5 tag will return a blank page and generate an error in the application.log "Could not initialize class coldfusion.tagext.NativeCfx"

The top of the stack trace looks like this:

Could not initialize class coldfusion.tagext.NativeCfx The specific sequence of files included or processed is: D:\Staging\cfxtest.cfm, line: 13 "

java.lang.NoClassDefFoundError: Could not initialize class coldfusion.tagext.NativeCfx

    at coldfusion.tagext.CfxTag.doStartTag(CfxTag.java:108)

    at coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:2795)

The cfxhttp5.dll is in C:/ColdFusion10/cfusion/CustomTags folder

I have fiddled with read, read+execute permissions and sandbox file paths such as:

c:\coldfusion10\cfusion\lib and lib\-

C:/ColdFusion10/cfusion/CustomTags/ and /-

C:/ColdFusion10/cfusion/lib/CFXNeo.dll

Platform is CF10 Enterprise 64-bit w/HF16 on Windows 2012.  Java 1.8.0_45

TOPICS
Advanced techniques

Views

689

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Aug 21, 2015 0
New Here ,
Jun 15, 2017

Copy link to clipboard

Copied

Hello. I'm running into the same issue trying to get cfx_http5 to work. Did you find a solution for this?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 15, 2017 0
elarin LATEST
New Here ,
Jun 16, 2017

Copy link to clipboard

Copied

I found the solution for this in my environment. In whatever sandbox you have defined, go to the "Others" tab and make sure the "loadLibrary.*" runtime permission is enabled.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 16, 2017 0