Domanda

I am creating an application using the linkedin-j Java library and JavaLoader, and I am finding that whenever I drop it into a server running ColdFusion 9.0.1, I start getting the following error:

coldfusion.util.DumpHelper
(java.lang.ClassNotFoundException)

I am not doing anything crazy with the library. I have narrowed it down to being caused by the following code:

var l_user = api_client.getProfileForCurrentUser();

api_client is an instance of the client object in linkedin-j. I don't know a whole lot of Java, but I don't see anything in there that should break ColdFusion's utils.

Upon testing, this doesn't appear to happen when using Railo.

È stato utile?

Soluzione

(From the comments ...)

You might try setting loadColdFusionClassPath=true when you instantiate the javaLoader.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top