I figured out my problem.  Here is the answer.

The error was caused by the fact that JRun/ColdFUsion could not find
the ntvinv.dll in java.library.path.  ntvinv.dll is part of the
ColdFusion.war file for J2EE setups.

The problem was caused when I created a custom jvm.config file for my
JRun/ColdFusion instance and the java.library.path was set
incorrectly.  In the jvm.config file, I set the java.library.path as:

java.library.path={jrun.server.home}/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib,{jrun.server.home}/cfusion-ear/cfusion-war/WEB-INF/cfusion/jintegra/bin,{jrun.server.home}/cfusion-ear/cfusion-war/WEB-INF/cfusion/jintegra/bin/international

Take note of the {jrun.server.home}

When I ran the following code in a cfm template it shows that
jrun.server.home as:
d:/servers/jrun03

<cfscript>
sys = createobject("java", "java.lang.System");
// Set a system property
// sys.setProperty('myProperty', 'myPropertyValue');
// Assign local variable to properties structure
props = sys.properties;
</cfscript>
<!--- Dump all properties --->
<cfdump var="#props#">

So I figured I could use that value in the jvm.config file.  But
NOOOooo!  It appears to not work that way.

JRun was not picking it up in the jvm.config file and my
java.library.path was showing up with the value of {java.server.home}
missing like this:
java.library.path=/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib,/cfusion-ear/cfusion-war/WEB-INF/cfusion/jintegra/bin,/cfusion-ear/cfusion-war/WEB-INF/cfusion/jintegra/bin/international

So I had to type in the complete path in the java.library.path in the
jvm.config file like this:

java.library.path={xjrun.server.home}/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib,{xjrun.server.home}/cfusion-ear/cfusion-war/WEB-INF/cfusion/jintegra/bin,{xjrun.server.home}/cfusion-ear/cfusion-war/WEB-INF/cfusion/jintegra/bin/international,

There some food for thought.

Enjoy,
Troy Simpson



On 6/7/06, Troy Simpson <[EMAIL PROTECTED]> wrote:
> Has anyone seen this error before or might know what I need to be looking for?
>
> -----------------------
> Here is the test code that generates the error.
> The error occurs on the line 'o_domain = createObject("COM",
> "NTAdmin.NTContainerManagement");
> '
>
> <cfscript>
> o_NTAuth = createObject("java", "jrun.security.NTAuth");
> o_NTAuth.init("DOMAIN");
> o_NTAuth.isUserInDirectory("username");
> bInDir = "true";
>
> o_domain = createObject("COM", "NTAdmin.NTContainerManagement");
> //aGroups = arrayNew(1);
> //aGroups  = o_domain.EnumerateContainer("NIH", "GlobalGroup");
> </cfscript>
> <cfdump var="#o_NTAuth#" />
> <cfdump var='#o_NTAuth.isUserInDirectory("username")#' />
> <!--- <cfdump var="#aGroups#" /> --->
> <cfabort />
>
> ---------------------
> Here is the error:
> 06/07 11:19:05 info Deploying EJB "JRunSQLInvoker" from:
> file:/C:/JRun4/lib/jrun-comp.ear
> Server jrun03 ready (startup time: 17 seconds)
> 06/07 11:19:09 user FileServlet: init
> 06/07 11:19:12 Error [web-0] - no ntvinv in java.library.path The
> specific sequence of files included or processed is: D
> :\webapps\farcry03\www\index.cfm, line: 11
> 06/07 11:19:12 error no ntvinv in java.library.path
> java.lang.UnsatisfiedLinkError: no ntvinv in java.library.path
>        at java.lang.ClassLoader.loadLibrary(Unknown Source)
>        at java.lang.Runtime.loadLibrary0(Unknown Source)
>        at java.lang.System.loadLibrary(Unknown Source)
>        at com.linar.jintegra.NativeObjRef.q(Unknown Source)
>        at com.linar.jintegra.Dispatch.a(Unknown Source)
>        at com.linar.jintegra.Dispatch.isNativeMode(Unknown Source)
>        at com.linar.jintegra.Dispatch.createDispatch(Unknown Source)
>        at com.linar.jintegra.Dispatch.<init>(Unknown Source)
>        at 
> com.intrinsyc.typeInfo.IMacroViewerProxy.<init>(IMacroViewerProxy.java:32)
>        at com.intrinsyc.typeInfo.MacroViewer.<init>(MacroViewer.java:90)
>        at com.intrinsyc.typeInfo.MacroViewer.<init>(MacroViewer.java:69)
>        at 
> com.intrinsyc.typeInfo.InterfaceInfoFactory.getInfoGivenPROGID(InterfaceInfoFactory.java:50)
>        at coldfusion.runtime.com.ComProxy.<init>(ComProxy.java:113)
>        at coldfusion.runtime.CFPage.createObject(CFPage.java:5735)
>        at coldfusion.runtime.CFPage.CreateObject(CFPage.java:5676)
>        at coldfusion.runtime.CFPage.CreateObject(CFPage.java:5641)
>        at 
> cfApplication2ecfm1403523052.runPage(D:\webapps\farcry03\www\Application.cfm:11)
>        at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:152)
>        at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:349)
>        at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65)
>        at coldfusion.filter.CfincludeFilter.include(CfincludeFilter.java:33)
>        at 
> coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:157)
>        at 
> coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:51)
>        at coldfusion.filter.PathFilter.invoke(PathFilter.java:86)
>        at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:69)
>        at 
> coldfusion.filter.BrowserDebugFilter.invoke(BrowserDebugFilter.java:52)
>        at 
> coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28)
>        at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)
>        at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
>        at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
>        at 
> coldfusion.filter.RequestThrottleFilter.invoke(RequestThrottleFilter.java:115)
>        at coldfusion.CfmServlet.service(CfmServlet.java:107)
>        at 
> coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:78)
>        at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
>        at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
>        at 
> jrun.servlet.JRunRequestDispatcher.invokeNext(JRunRequestDispatcher.java:472)
>        at 
> jrun.servlet.JRunRequestDispatcher.forwardInvoke(JRunRequestDispatcher.java:441)
>        at 
> jrun.servlet.JRunRequestDispatcher.forward(JRunRequestDispatcher.java:175)
>        at jrun.servlet.file.FileServlet.service(FileServlet.java:316)
>        at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
>        at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
>        at 
> jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:257)
>        at 
> jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:541)
>        at jrun.servlet.http.WebService.invokeRunnable(WebService.java:172)
>        at 
> jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:426)
>        at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
>
> --
> Thanks,
> Troy Simpson
>


-- 
Thanks,
Troy

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:242862
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to