<!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>I solved the problem. I used the wrong csm object.
Now it works fine.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV>-----Ursprüngliche Nachricht----- </DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>Von:</B>
<A title=UweHeldt@gmx.de href="mailto:UweHeldt@gmx.de">Uwe Heldt</A> </DIV>
<DIV style="FONT: 10pt arial"><B>An:</B> <A title=opencms-dev@www.opencms.com
href="mailto:opencms-dev@www.opencms.com">opencms-dev@www.opencms.com</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>Gesendet:</B> Freitag, 1. Juni 2001
22:55</DIV>
<DIV style="FONT: 10pt arial"><B>Betreff:</B> [opencms-dev] creating a new
CmsFile in a java class</DIV>
<DIV><BR></DIV>
<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></BLOCKQUOTE></FONT></BODY></HTML>