AW: [opencms-dev] database export/import

Dernen, Michael Michael.Dernen at framfab.de
Tue Sep 26 10:53:32 CEST 2000


Hello,

Maybe your exportpath is set not correctly.
If you have still problems to import resources or 
if you can't see the files you want to import in
the webinterface it is likely that your exportpath
is not correct. The exportpath must end with a slash
like this : "/usr/opencms_4.1.34/export/". You can 
check your actual export path if you invoke the
CmsShell by typing on the console (first cd to the opencms folder):
java com.opencms.core.CmsShell config/opencms.properties
Then you can login as Admin with the command:
login Admin admin
and check your exportpath with:
readExportPath
If your exportpath misses the ending slash rewrite it correctly
with the command:
writeExportPath "/usr/opencms_4.1.34/export/"
Then exit the shell by typing exit and try to import or export
resources again.
If the ending slash is missing the system tries to read or 
write to the parent folder of your export folder, maybe this 
causes problems.

Good Luck, 
Michael

-----Ursprüngliche Nachricht-----
Von: Carmen Koelbl [mailto:cak at odn.de]
Gesendet: Dienstag, 26. September 2000 10:58
An: opencms-dev at www.opencms.com
Betreff: [opencms-dev] database export/import


Hello,

I still have difficulties with the datebasefunction in the webinterface.
after I loged in as admin in the webinterface i changed to administration 
-> database ->export, but if I try to export a file I get the message 
that  the database couldn't be imported or exported because I must have 
administration privileges.
What did I do wrong again.

The (still empty) export-folder is " /usr/opencms_4.1.34/export"

The error message says:

[CmsException]: 0 Unknown exception
Detailed Error: NO MESSAGE
Caught Exception: java.io.FileNotFoundException: 
/usr/opencms_4.1.34/export.zip (Permission denied)

	at java.lang.Throwable.<init>(Throwable.java:96)
	at java.lang.Exception.<init>(Exception.java:44)
	at com.opencms.core.CmsException.<init>(CmsException.java:283)
	at com.opencms.file.CmsExport.getExportResource(CmsExport.java:341)
	at com.opencms.file.CmsExport.<init>(CmsExport.java:127)
	at 
com.opencms.file.mySql.CmsResourceBroker.exportResources(CmsResourceBroker.j
ava:2333)
	at com.opencms.file.CmsObject.exportResources(CmsObject.java:833)
	at
com.opencms.workplace.CmsAdminDatabase.getContent(CmsAdminDatabase.java:98)
	at
com.opencms.template.CmsXmlTemplate.getContent(CmsXmlTemplate.java:125)
	at 
com.opencms.template.CmsRootTemplate.getMasterTemplate(CmsRootTemplate.java:
87)
	at
com.opencms.launcher.A_CmsLauncher.callCanonicalRoot(A_CmsLauncher.java:95)
	at
com.opencms.launcher.CmsXmlLauncher.generateOutput(CmsXmlLauncher.java:172)
	at
com.opencms.launcher.CmsXmlLauncher.launch(CmsXmlLauncher.java:212)
	at
com.opencms.launcher.A_CmsLauncher.initlaunch(A_CmsLauncher.java:262)
	at com.opencms.core.OpenCms.showResource(OpenCms.java:324)
	at com.opencms.core.OpenCmsServlet.doPost(OpenCmsServlet.java:483)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:278)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:311)
	at
org.apache.jserv.JServConnection.processRequest(JServConnection.java:317)
	at
org.apache.jserv.JServConnection.run(JServConnection.java(Compiled Code))
	at java.lang.Thread.run(Thread.java(Compiled Code))
java.io.FileNotFoundException: /usr/opencms_4.1.34/export.zip (Permission 
denied)
	at java.io.FileOutputStream.open(Native Method)
	at java.io.FileOutputStream.<init>(FileOutputStream.java:108)
	at java.io.FileOutputStream.<init>(FileOutputStream.java:68)
	at com.opencms.file.CmsExport.getExportResource(CmsExport.java:338)
	at com.opencms.file.CmsExport.<init>(CmsExport.java:127)
	at 
com.opencms.file.mySql.CmsResourceBroker.exportResources(CmsResourceBroker.j
ava:2333)
	at com.opencms.file.CmsObject.exportResources(CmsObject.java:833)
	at
com.opencms.workplace.CmsAdminDatabase.getContent(CmsAdminDatabase.java:98)
	at
com.opencms.template.CmsXmlTemplate.getContent(CmsXmlTemplate.java:125)
	at 
com.opencms.template.CmsRootTemplate.getMasterTemplate(CmsRootTemplate.java:
87)
	at
com.opencms.launcher.A_CmsLauncher.callCanonicalRoot(A_CmsLauncher.java:95)
	at
com.opencms.launcher.CmsXmlLauncher.generateOutput(CmsXmlLauncher.java:172)
	at
com.opencms.launcher.CmsXmlLauncher.launch(CmsXmlLauncher.java:212)
	at
com.opencms.launcher.A_CmsLauncher.initlaunch(A_CmsLauncher.java:262)
	at com.opencms.core.OpenCms.showResource(OpenCms.java:324)
	at com.opencms.core.OpenCmsServlet.doPost(OpenCmsServlet.java:483)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:278)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:311)
	at
org.apache.jserv.JServConnection.processRequest(JServConnection.java:317)
	at
org.apache.jserv.JServConnection.run(JServConnection.java(Compiled Code))
	at java.lang.Thread.run(Thread.java(Compiled Code))



More information about the opencms-dev mailing list