problem with .net integration

View: New views
8 Messages — Rating Filter:   Alert me  

problem with .net integration

by Rick Root :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Alright so I wrote this custom tag that uses .net integration to
create IIS virtual directories.  IT worked great when I implemented it
last night.

This morning, I uninstalled coldfusion 8 standard, and installed CF 8
Enterprise in multi-server mode.

My web sites are flying now, but my code that creates virtual
directories is now broke.

It errors on this line:

<cfobject
    type=".net"
    class="System.DirectoryServices.DirectoryEntry"
    assembly="#dllPath#"
    name="site">


with this error:

System.DirectoryServices.DirectoryEntry null

and this from the stack trace:

java.lang.ClassNotFoundException:
System.DirectoryServices.DirectoryEntry at
coldfusion.runtime.dotnet.Assembly.loadClass(Assembly.java:232) at

I verified that the dll referenced in dllPath still exists, so I'm not
sure how to proceed debuggin this.

Rick


--
Rick Root
New Brian Vander Ark Album, songs in the music player and cool behind
the scenes video at www.myspace.com/brianvanderark

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:308742
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.4

Re: problem with .net integration

by Bilal Soylu :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Could it be that you have uninstalled the java to .net bridge class files?

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:308750
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.4

Re: problem with .net integration

by Rick Root :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Tue, Jul 8, 2008 at 2:37 PM, Bilal Soylu <cibert88@...> wrote:
> Could it be that you have uninstalled the java to .net bridge class files?

I uninstalled coldfusion 8 completely then installed CF Enterprise.

Unless the .NET integration service didn't get uninstalled and then
didn't get re-installed... but if that's the case I don't know how to
fix it.

--
Rick Root
New Brian Vander Ark Album, songs in the music player and cool behind
the scenes video at www.myspace.com/brianvanderark

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:308754
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.4

Re: problem with .net integration

by Gerald Guido :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

See if the service is running... In the control panel >>Administrative Tools
>> Services.. you should see "ColdFusion 8 .NET Service"



On Tue, Jul 8, 2008 at 2:47 PM, Rick Root <rick.root@...> wrote:

> On Tue, Jul 8, 2008 at 2:37 PM, Bilal Soylu <cibert88@...> wrote:
> > Could it be that you have uninstalled the java to .net bridge class
> files?
>
> I uninstalled coldfusion 8 completely then installed CF Enterprise.
>
> Unless the .NET integration service didn't get uninstalled and then
> didn't get re-installed... but if that's the case I don't know how to
> fix it.
>
> --
> Rick Root
> New Brian Vander Ark Album, songs in the music player and cool behind
> the scenes video at www.myspace.com/brianvanderark
>
>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:308760
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.4

Re: problem with .net integration

by Rick Root :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

So I uninstalled the .net integration service.  And then reinstalled
using the .net integration service installer.

HOWEVER, it requires that you install to a specific instance of CF.
If you're running multi-server it won't install to all instances.
That's really lame.

After installing it to the "Cfusion" instance it seems to work.

So I ran the installer 2 more times for the other two instances (they
are clustered).. but still no luck.

the documentation for the .net installer:

http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=othertechnologies_10.html

mentions this:

"The ColdFusion installer puts the .NET Integration software in the
cf_root\jnbridge directory. If you install the ColdFusion multiserver
configuration or the J2EE configuration, you can specify the directory
in which to install the .NET Integration software. "

Which doesn't really help at all especially since after running the
installer three times there is no "jnbridge" folder in any of my
instances.

help!

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:308767
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.4

Parent Message unknown RE: problem with .net integration

by Dave Watts :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> HOWEVER, it requires that you install to a specific instance of CF.
> If you're running multi-server it won't install to all instances.
> That's really lame.
>
> After installing it to the "Cfusion" instance it seems to work.
>
> So I ran the installer 2 more times for the other two
> instances (they are clustered).. but still no luck.
>
> the documentation for the .net installer:
>
> ...
>
> mentions this:
>
> "The ColdFusion installer puts the .NET Integration software
> in the cf_root\jnbridge directory. If you install the
> ColdFusion multiserver configuration or the J2EE
> configuration, you can specify the directory in which to
> install the .NET Integration software. "
>
> Which doesn't really help at all especially since after
> running the installer three times there is no "jnbridge"
> folder in any of my instances.

The "jnbridge" directory only exists in a standalone server install. In a
multiserver install, it will go to c:\coldfusion8dotnetservice instead, by
default.

When you reran the installer multiple times, did it let you choose different
directories? If you haven't tried that, go ahead and try it. My guess,
though, is that it still won't work, because each install will overwrite the
previously defined service information.

So, here's what I'd try:

1. Install it and hook it to one instance.
2. Edit the service registry key
(HKLM\System\CurrentControlSet\Services\ColdFusion 8 .NET Service) to change
the service name to something unique.
3. Install it again to a different directory, hooking it to a different
instance.
4. Edit that registry key.
5. Repeat steps 3 and 4 as needed.

Let me know how that works. I haven't tried it.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:308799
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.4

Re: problem with .net integration

by Rick Root :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks Dave, I'll give that a try when I get a chance.

If that's the only way to install .net integration *AFTER* the fact on
a multi-server installation, Adobe needs to do something about that!

Rick

On Tue, Jul 8, 2008 at 7:44 PM, Dave Watts <dwatts@...> wrote:

>> HOWEVER, it requires that you install to a specific instance of CF.
>> If you're running multi-server it won't install to all instances.
>> That's really lame.
>>
>> After installing it to the "Cfusion" instance it seems to work.
>>
>> So I ran the installer 2 more times for the other two
>> instances (they are clustered).. but still no luck.
>>
>> the documentation for the .net installer:
>>
>> ...
>>
>> mentions this:
>>
>> "The ColdFusion installer puts the .NET Integration software
>> in the cf_root\jnbridge directory. If you install the
>> ColdFusion multiserver configuration or the J2EE
>> configuration, you can specify the directory in which to
>> install the .NET Integration software. "
>>
>> Which doesn't really help at all especially since after
>> running the installer three times there is no "jnbridge"
>> folder in any of my instances.
>
> The "jnbridge" directory only exists in a standalone server install. In a
> multiserver install, it will go to c:\coldfusion8dotnetservice instead, by
> default.
>
> When you reran the installer multiple times, did it let you choose different
> directories? If you haven't tried that, go ahead and try it. My guess,
> though, is that it still won't work, because each install will overwrite the
> previously defined service information.
>
> So, here's what I'd try:
>
> 1. Install it and hook it to one instance.
> 2. Edit the service registry key
> (HKLM\System\CurrentControlSet\Services\ColdFusion 8 .NET Service) to change
> the service name to something unique.
> 3. Install it again to a different directory, hooking it to a different
> instance.
> 4. Edit that registry key.
> 5. Repeat steps 3 and 4 as needed.
>
> Let me know how that works. I haven't tried it.
>
> Dave Watts, CTO, Fig Leaf Software
> http://www.figleaf.com/
>
> Fig Leaf Software provides the highest caliber vendor-authorized
> instruction at our training centers in Washington DC, Atlanta,
> Chicago, Baltimore, Northern Virginia, or on-site at your location.
> Visit http://training.figleaf.com/ for more information!
>
>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:308807
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.4

Re: problem with .net integration

by Tim Knell :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Rick,
Did you ever get this to work?  I'm VERY interested as I'm in the same situation.

Thanks,
Tim.

>Thanks Dave, I'll give that a try when I get a chance.
>
>If that's the only way to install .net integration *AFTER* the fact on
>a multi-server installation, Adobe needs to do something about that!
>
>Rick
>
>
>>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:309276
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.4
LightInTheBox - Buy quality products at wholesale price