Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
etdavis #1
Problem instantiating Java Bean
I'm trying to create instantiate a java bean to connect to Novells eDirectory
server. I downloaded the java beans from novell at
[url]http://developer.novell.com/ndk/bns_ldap.htm[/url] . Here's the CF Code:
<cfobject
action = "create"
type = "java"
class = "NWIDirQuery"
name = "query">
Initially, I thought simply placing the .jar files in the JVM classpath would
be sufficient, but I kept getting the "Class not found" error. I then used
WinZip to explode the file. Now I get the error:
Object Instantiation Exception.
An exception occurred when instantiating a java object. The cause of this
exception was that: NWIDirQuery (wrong name:
com/novell/beans/NWIDirQuery/NWIDirQuery).
I'm using a non-J2EE install of ColdFusion MX 6,1,0,83762 on Windows 2003 Std.
I have very little experience using Java with CF. Any help would be greatly
appreciated.
etdavis Guest
-
webservice returning bean
Hello All, I have one web service which returns java bean, this bean internally incorporated different beans so my response is like this:... -
500 Java bean field access exception. - Help me
Hi, Brother?s, i have one problem, if i click in Settings in Serve Settings return the error: 500 Java bean field access exception. Java bean... -
Problem instantiating COM object from custom ActiveX DLL
I've been provided with a custom ActiveX DLL (written in C++) that reads a certiifcate to generate a signature for a passed XML string, and I'm... -
trying to return a bean from a java web service...
hi.. i've been trying to return a bean from a java web service in dotnet, although the add web reference works i keep getting... -
instantiating the ASP.DLL
Is there a way to do a CreateObject("") on the ASP.DLL? TIA Chris -
BSterner #2
Re: Problem instantiating Java Bean
You need to specify the full package name when you're instantiating the object.
eg)
<cfobject
action = "create"
type = "java"
class = "com.novell.beans.NWIDirQuery.NWIDirQuery"
name = "query">
BSterner Guest
-
etdavis #3
Re: Problem instantiating Java Bean
Thanks, for the help. I am now able to instantiate the object.
NWIDirQ1 = createObject("Java","com/novell/beans/NWIDirQuery/NWIDirQuery");
etdavis Guest



Reply With Quote

