CF8 dotNet Issues

From BriansWiki

Jump to: navigation, search

[edit] Missing dotnet_coreproxy.config

Well I was excited to use the new .net integration features of Coldfusion 8 so I quickly setup a class that I could use to update our Active Directory entries based on our Employee database. I was stymied however by "java.lang.ClassNotFoundException" errors; whats up with that?

After simplifying my test to the extreme I concluded that this must be a configuration problem with the .net installation. We are running a multi server install of CF 8 and we have had repeated problems with configuration files not being copied into all instances.

I found an error.log file in the "ColfFusion8DotNetservice" folder that revealed the following:

2/19/2008 8:31:59 AM
.NET exception = System.IO.FileNotFoundException
.NET exception message = Could not find file 'D:\JRun4\servers\TWCNY_Intranet\cfusion.ear\cfusion.war\WEB-INF\cfusion\lib\dotnet_coreproxy.config'.
.NET-side stack trace =    at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
   at com.jnbridge.jnbproxy.JNBProxy.Main(String[] args)

So a quick search revealed that the missing "dotnet_coreproxy.config" file was located in the D:\JRun4\servers\cfusion\cfusion-ear\cfusion-war\WEB-INF\cfusion\lib folder; the default instance as usual. Coldfusion's multi server installations is a piece of crap and I wish I had a refund for all the time I have spent debugging problems they created. I mean how hard is a file copy operation anyway?

The solution is to copy the wayward config file to the appropriate instances lib folder and .net was happy.

Personal tools