How To

Find the answers to your Go questions, including FAQs, how-tos, tips and tricks

This is a public Discussion Area  publicRSS

How To

    Wei Xu
    Could not found the files on mapped network drive under...
    How To posted September 17, 2009 by Wei Xu , tagged agent, Windows
    1102 Views
    Title:
    Could not found the files on mapped network drive under windows
    Problem:

    put the 3rd party library files on a shared folder, let's say \\lib-server\libraries, and map \\lib-server as z: drive, so we can access z:\libraries for library files

    and my ant is using the classpath z:\libraries to build the project, it works fine when I run it in command line, but failed when running in Cruise.

    the output showing error message:
    [javac] ***\***\***\TestImpl.java:2: package oracle.jbo.server does not exist
    [javac] import oracle.jbo.server.EntityImpl;
    [javac] ^

    Solution Description:

    That's because the agent is running in windows service mode. and based on http://support.microsoft.com/kb/180362, Cruise could not access mapped network drive when it runs in service mode.

    So you can choose either solutions from the following:

    1. use unc path. e.g. \\lib-server\libraries

    2. start cruise agent using command line instead of windows service