<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 5.50.4134.600" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#c0c0c0>
<DIV><FONT face=Arial size=2>Hi all,</FONT></DIV>
<DIV><FONT face=Arial size=2>i'am trying to create an new CmsFile in a java
class. I using the following statement: <EM>CmsFile file = fCms.createFile(path,
templateFile, content, "page").</EM></FONT></DIV>
<DIV><FONT face=Arial size=2>The path is set to
"moduledemos/com.opencms.document.test010603". These folder exists in my test
project.</FONT></DIV>
<DIV><FONT face=Arial size=2>And when i start the programm from my test project,
i got the follwoing exception:</FONT></DIV>
<DIV><FONT face=Arial size=2><EM>[ModuleFileBuilder] Exception while creating
overview template: [CmsException]:<BR>2 Not found. Detailed Error:
[com.opencms.file.mySql.CmsDbAccess]
/moduledemos/com.opencms.document.test010603/.</EM></FONT></DIV>
<DIV><FONT face=Arial size=2> </DIV>
<DIV>Could it be that the statements tries to create the file in the online
project instead of the test project? When i start the shell, and call the
"readFolder" command, i got the same exception. After publishing the test
project the command executed succesfully. What could it be?. Have i to switch to
project in the java class??</DIV>
<DIV> </DIV>
<DIV>Regards Uwe</DIV></FONT></BODY></HTML>