Deploy/os/Windows

From Omar Wiki

Revision as of 02:27, 28 November 2006; view current revision
←Older revision | Newer revision→
Jump to: navigation, search

Special Instructions

Please include any special instructions when running on windows platform here. If something needs a lot of detail then consider adding a separate section.

Temp Files and Temp Directories

On Windows we have seen some issues with temporary directories specified by java.io.tmpdir System property to not exist and causing the following error doing File.createTempFile() calls:

   java.io.IOException: The system cannot find the path specified

The error is often not obvious because the error message from JDK does not indicate what the path is.

The solution to this problem is to turn on DEBUG logging to print the value of java.io.tmpdir property and then make sure to mnually create the directory before restarting the server.

Path Separator: Forward Slash or Backward Slash?

  • Avoid directory or filenames with space characters whenever possible, specially in omar.home.
  • In local.build.properties forward slash (/) for the paths. Here is an example:
   omar.name=omar
   dist.version=3.0-final1
   #Use '/' on windows. Avoid directories with space in name
   omar.home=C:/cygwin/home/najmi/${omar.name}/${dist.version}
   #Use '/' on windows. Avoid directories with space in name
   omar.home.template=C:/cygwin/home/najmi/${omar.name}/${dist.version}
   catalina.home=C:/Progra~1/netbeans-5.5/enterprise3/apache-tomcat-5.5.17
   #catalina.base=${catalina.home}
   catalina.base=C:/Documents and Settings/najmi/.netbeans/5.5/apache-tomcat-5.5.17_base
   omar.reports.unittest.dir.prefix=build/reports/unit
   omar.reports.unittest.dir.link=false
   omar.reports.unittest.dir.zip=false
   localCall=true
   jwsdp.home=c:/sun/jwsdp-1.6
   #
   # For using Tomcat 5.5.x
   #
   appserver-jndi-context.filename=jndi-context-5.5.x.xml
  • In conf/*.properties use forward slash (/) for the paths.