|
|
|
|||||
|
I have config IceGrid as windows service with icepatch2.
It is throws exception when we use icegrid patchs application, after check code,I found error cause when invoke OS::mkdir(path) and path is root,so I add a condition . It's works fine icepatch2 util.cpp void IcePatch2::createDirectoryRecursive(const string& pa) { const string path = simplify(pa); string dir = getDirname(path); if(!dir.empty()) { createDirectoryRecursive(dir); } if(!isRoot(path+"/")) //add this condision { if(OS::mkdir(path, 0777) == -1) { if(errno != EEXIST) { throw "cannot create directory `" + path + "':\n" + lastError(); } } } } |
|
|||||
|
icegrid
icegridnode inclue icepatch client function,
when icegridnode run as windows services(current work dir diff from run as application) so IceGrid.Node.Data should set ad "IceGrid.Node.Data=D:\DemoGrid\db\node" (original is db/node). then createDirectoryRecursive(..) will Recursive until path="d:" OS::mkdir("d:" , 0777) thows exception IceGrid.InstanceName=DemoGrid # # The IceGrid locator proxy. # Ice.Default.Locator=DemoGrid/Locator:default -p 12000 # # IceGrid registry configuration. # IceGrid.Registry.Client.Endpoints=default -p 12000 IceGrid.Registry.Server.Endpoints=default IceGrid.Registry.Internal.Endpoints=default IceGrid.Registry.Admin.Endpoints=default IceGrid.Registry.Data=D:\DemoGrid\db\registry IceGrid.Registry.PermissionsVerifier=DemoGrid/NullPermissionsVerifier IceGrid.Registry.AdminPermissionsVerifier=DemoGrid/NullPermissionsVerifier # # IceGrid node configuration. # IceGrid.Node.Name=localhost IceGrid.Node.Endpoints=default IceGrid.Node.Data=D:\DemoGrid\db\node IceGrid.Node.CollocateRegistry=1 #IceGrid.Node.Output=db #IceGrid.Node.RedirectErrToOut=1 # # Trace properties. # IceGrid.Node.Trace.Activator=1 IceGrid.Node.Trace.Patch=1 #IceGrid.Node.Trace.Adapter=2 #IceGrid.Node.Trace.Server=3 |
|
|||||
|
I have fill out mysignature information
I have fill out mysignature information
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| IcePatch2 - Decompressor | panchubi | Help Center | 1 | 01-31-2007 02:21 PM |
| Icepatch2 in java | panchubi | Help Center | 1 | 01-24-2007 07:38 PM |
| Using IcePatch2 with Java | zhi | Help Center | 1 | 12-18-2006 01:13 AM |
| How to modify server properties on the fly? | ymcao_cn | Help Center | 4 | 07-26-2006 09:10 PM |
| a problem about how to modify a value at the iterator’s current position! | fw_csha | Help Center | 1 | 03-01-2005 10:34 AM |