Thanks for your time on this Anthony.

I checked the logs, and you are onto something - there is a difference
when starting as a service vs. start.jar.
Start.jar loads cleanly, no errors.

The jetty-service log indicates a clean launch (I had already hard
coded the paths).

The bluedragon.log file has errors on service start (not on start.jar
starts).
Here is the pertinent part when loading from the service:

18/12/08 06:48.29: -] connection pool validation queries ENABLED
18/12/08 06:48.29: -] mailServer started $Revision: 1.1 $ Working in
[D:\Explorers_Log\logs\openbd\cfmail]
18/12/08 06:48.29: -] CFIMAP Caching Engine Initialised.
18/12/08 06:48.29: -] cfApplicationManager.DefaultClientStorage=
[cookie]
18/12/08 06:48.29: -] cfApplicationManager.Using J2EE Sessions? false
18/12/08 06:48.29: -] Generating UUID for CFTOKEN value
18/12/08 06:48.29: -] ERROR - failed to initialize CFREGISTRY.
18/12/08 06:48.29: java.io.IOException: Native library does not exist:
$./etc/openbd/bin/cfregistry.dll
        at com.nary.io.FileUtils.resolveNativeLibPath(Unknown Source)
        at com.naryx.tagfusion.cfm.registry.cfREGISTRY.init(Unknown Source)
        at com.naryx.tagfusion.cfm.tag.tagChecker.initialiseTags(Unknown
Source)
        at com.naryx.tagfusion.cfm.engine.cfEngine.<init>(Unknown Source)
        at com.naryx.tagfusion.cfm.engine.cfEngine.init(Unknown Source)
        at com.naryx.tagfusion.cfm.cfServlet.init(Unknown Source)
        at org.mortbay.jetty.servlet.ServletHolder.initServlet
(ServletHolder.java:431)
        at org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:
263)
        at org.mortbay.component.AbstractLifeCycle.start
(AbstractLifeCycle.java:42)
        at org.mortbay.jetty.servlet.ServletHandler.initialize
(ServletHandler.java:643)
        at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
        at org.mortbay.jetty.webapp.WebAppContext.startContext
(WebAppContext.java:1233)
        at org.mortbay.jetty.handler.ContextHandler.doStart
(ContextHandler.java:516)
        at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:
459)
        at org.mortbay.component.AbstractLifeCycle.start
(AbstractLifeCycle.java:42)
        at org.mortbay.jetty.handler.HandlerCollection.doStart
(HandlerCollection.java:152)
        at org.mortbay.component.AbstractLifeCycle.start
(AbstractLifeCycle.java:42)
        at org.mortbay.jetty.handler.HandlerWrapper.doStart
(HandlerWrapper.java:130)
        at org.mortbay.jetty.Server.doStart(Server.java:222)
        at org.mortbay.component.AbstractLifeCycle.start
(AbstractLifeCycle.java:42)
        at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:985)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.mortbay.start.Main.invokeMain(Main.java:194)
        at org.mortbay.start.Main.start(Main.java:523)
        at org.mortbay.start.Main.main(Main.java:119)
        at org.mortbay.jetty.win32service.JettyServiceWrapperListener.start
(JettyServiceWrapperListener.java:47)
        at org.tanukisoftware.wrapper.WrapperManager$12.run
(WrapperManager.java:2788)

18/12/08 06:48.29: -] cfChart: storage=[file]
18/12/08 06:48.29: -] cfChart: storage cache size=[0]
18/12/08 06:48.29: -] scheduleEngine started $Revision: 1.1 $.
Logging in [D:\Explorers_Log\logs\openbd\cfschedule\schedule.log]
18/12/08 06:48.29: -] cfCacheContent: InMemoryCache=50
18/12/08 06:48.30: -] expressionEngine loaded: 345 functions
18/12/08 06:48.30: -] cfEngine: Show Debug output on error? true
18/12/08 06:48.30: -] cfEngine: Assertions disabled
18/12/08 06:48.30: -] cfEngine: Combined Form/Url Scope? false
18/12/08 06:48.30: -] Auto-configure of ODBC datasources is enabled
18/12/08 06:48.30: -] Failed to resolve ODBCNativeLib path [$./etc/
openbd/bin/ODBCNativeLib.dll] ODBC auto-configuration disabled
18/12/08 06:48.30: -] Native library does not exist: $./etc/openbd/bin/
ODBCNativeLib.dll
18/12/08 06:48.30: -] Open BlueDragon has initialised. Ready for
requests.

This makes some sense - cfregistry tags work when using start.jar and
not when called when the app is started as a service.  Also, the auto
detect from ODBC was/is not working when started as a service, only
when started manually.

Perhaps these clues would help indicated where the paths are not
compatable with windows service?

Thanks,

Rob
--~--~---------~--~----~------------~-------~--~----~
Open BlueDragon Public Mailing List
 http://groups.google.com/group/openbd?hl=en
 official blog @ http://blog.openbluedragon.org/
!! save a network - trim replies before posting !!
-~----------~----~----~----~------~----~------~--~---

Reply via email to