[opencms-dev] File not found error (solved) and other installation problems

Christian Steinert christian_steinert at web.de
Wed Mar 15 08:26:04 CET 2006


Dear Pedro,

This is very strange...
Your problem lies here, I'd say.

I don't get it, but there is some severe trouble with the beginning of 
your setup
> 77:	Exception while calling method "createPropertydefinition".
> 76:	Admin at Online>createPropertyDefinition Description
> 75:		... 11 more
> 74:		at
> org.opencms.db.CmsSecurityManager.createPropertyDefinition(CmsSecurityManager.java:1009)
> 73:		at
> org.opencms.db.CmsSecurityManager.checkOfflineProject(CmsSecurityManager.java:530)
> 72:	Caused by: org.opencms.file.CmsVfsException: This operation is not
> allowed in the "Online" project.
> 71:		at
> org.opencms.setup.CmsSetupWorkplaceImportThread.run(CmsSetupWorkplaceImportThread.java:186)
> 70:		at org.opencms.main.CmsShell.start(CmsShell.java:663)
> 69:		at org.opencms.main.CmsShell.executeCommands(CmsShell.java:842)
> 68:		at org.opencms.main.CmsShell.executeCommand(CmsShell.java:767)
> 67:		at
> org.opencms.main.CmsShell$CmsCommandObject.executeMethod(CmsShell.java:246)
> 66:		at java.lang.reflect.Method.invoke(Method.java:585)
> 65:		at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 64:		at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 63:		at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 62:		at
> org.opencms.main.CmsShellCommands.createPropertydefinition(CmsShellCommands.java:255)
> 61:		at
> org.opencms.file.CmsObject.createPropertyDefinition(CmsObject.java:588)
> 60:		at
> org.opencms.db.CmsSecurityManager.createPropertyDefinition(CmsSecurityManager.java:1013)
> 59:		at org.opencms.db.CmsDbContext.report(CmsDbContext.java:197)
> 58:		at org.opencms.db.CmsDbContext.throwException(CmsDbContext.java:213)
> 57:		at
> org.opencms.file.CmsVfsException.createException(CmsVfsException.java:79)
> 56:	org.opencms.file.CmsVfsException: Error creating the property
> definition "Title".
> 55:	Exception while calling method "createPropertydefinition".
> 54:	Admin at Online>createPropertyDefinition Title
> 53:	Admin at Online># Initialize the default property definitions
> 52:	Admin at Online>
> 51:		... 11 more
> 50:		at
> org.opencms.db.CmsSecurityManager.readProject(CmsSecurityManager.java:3573)
> 49:		at
> org.opencms.db.CmsDriverManager.readProject(CmsDriverManager.java:5173)
> 48:		at
> org.opencms.db.generic.CmsProjectDriver.readProject(CmsProjectDriver.java:1809)
> 47:	Caused by: org.opencms.db.CmsDbEntryNotFoundException: Project with
> name "_setupProject" not found.
> 46:		at
> org.opencms.setup.CmsSetupWorkplaceImportThread.run(CmsSetupWorkplaceImportThread.java:186)
> 45:		at org.opencms.main.CmsShell.start(CmsShell.java:663)
> 44:		at org.opencms.main.CmsShell.executeCommands(CmsShell.java:842)
> 43:		at org.opencms.main.CmsShell.executeCommand(CmsShell.java:767)
> 42:		at
> org.opencms.main.CmsShell$CmsCommandObject.executeMethod(CmsShell.java:246)
> 41:		at java.lang.reflect.Method.invoke(Method.java:585)
> 40:		at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 39:		at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 38:		at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 37:		at
> org.opencms.main.CmsShellCommands.setCurrentProject(CmsShellCommands.java:1014)
> 36:		at org.opencms.file.CmsObject.readProject(CmsObject.java:2319)
> 35:		at
> org.opencms.db.CmsSecurityManager.readProject(CmsSecurityManager.java:3575)
> 34:		at org.opencms.db.CmsDbContext.report(CmsDbContext.java:197)
> 33:		at org.opencms.db.CmsDbContext.throwException(CmsDbContext.java:213)
> 32:		at
> org.opencms.db.CmsDbEntryNotFoundException.createException(CmsDbEntryNotFoundException.java:74)
> 31:	org.opencms.db.CmsDbEntryNotFoundException: Error reading the project
> with the name "_setupProject".
> 30:	Exception while calling method "setCurrentProject".
> 29:	Admin at Online>setCurrentProject _setupProject
> 28:	Admin at Online># Switch to the setup project
> 27:	Admin at Online>
> 26:	[Project]:tempFileProject , Id=11 :The project for temporary Workplace
> files.
> 25:	Admin at Online>createTempfileProject
> 24:	Admin at Online># Create the setup project

I had no trouble whatsoever with installing 604 on Tomcat 4/Mysql 
4.1/Java 1.5.

What I really find strange is:

25:	Admin at Online>createTempfileProject
26:	[Project]:tempFileProject , Id=11 :The project for temporary Workplace files.
[...]
29:	Admin at Online>setCurrentProject _setupProject


Why would they create a project called "tempFileProject" and then switch to "_setupProject"???!!!
But for me the setup worked, my setup.log reads:

24:	Admin at Online># Create the setup project
25:	Admin at Online>createTempfileProject
26:	[Project]:tempFileProject , Id=3 :The project for temporary Workplace files.
27:	Admin at Online>
28:	Admin at Online># Switch to the setup project
29:	Admin at Online>setCurrentProject _setupProject
30:	[Project]:_setupProject , Id=2 :Initial site import
31:	Admin at _setupProject>
32:	Admin at _setupProject># Initialize the default property definitions
33:	Admin at _setupProject>createPropertyDefinition Title


Have you done any modifications or which Version of opencms do you use?
Anything strange that could come in the way?
Any old opencms files could be used instead?
Any problems with unpacking the Jar?
Any custom modifications?
Do you have some old mysql database driver in your tomcat classpath or something?

I am really guessing around, because something with your environment must be strange...
Is your tomcat installation fresh? Otherwise it might be worth a try to
just get a clean version of the tomcat zip and unpack it to try the setup there again.


Did you try to do the setup with the database root as opencms user? 
I know that this is not standard behaviour and potentially insecure, but it's worth a try.
You can edit your opencms.properties later and configure a less privileged user there after the setup.

That's really what I would try 1st: use root as opencms user during the setup process and see if it works.

Greetings
Christian




More information about the opencms-dev mailing list