[opencms-dev] opencms 9.5.0 cmsshell.sh
Kai Widmann
Widmann at mediaworx.com
Mon Jan 19 16:11:10 CET 2015
Hey Chris,
well, the error you are getting states that a class was not found.
Did you check if WEB-INF/classes/opencms/frontend/templatetwo/CmsPresetSelectWidget.class exists?
If not, is it in the VFS (I guess it should be in "org.opencms.frontend.templatetwo"). If the class is in the VFS but not in the real file system, maybe it wasn't written to disk because a publish job failed. Then a full publish might help.
If the class is in the VFS and the real FS, then I still think that there might be something wrong with the classpath.
Cheers
Kai
Von: opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org] Im Auftrag von Christoph Kukulies
Gesendet: Montag, 19. Januar 2015 14:30
An: opencms-dev at opencms.org
Betreff: Re: [opencms-dev] opencms 9.5.0 cmsshell.sh
Am 19.01.2015 um 13:49 schrieb Christoph Kukulies:
I'm still having errors during startup. It's probably not the java parameters but another problem related to solr.
Look here (what is logged, when I start cmsshell.sh):
19 Jan 2015 13:44:54,956 INFO [pencms.search.CmsSearchManager:2956] . Search Solr : Solr core container created using /var/lib/tomcat7/webapps/ROOT/WEB-INF/solr as Solr home and solr.xml as configuration file.
19 Jan 2015 13:44:55,255 ERROR [ org.apache.solr.core.SolrCore: 481] [descriptor] Solr index directory '/var/lib/tomcat7/webapps/ROOT/WEB-INF/index/Solr Online/index/' is locked. Throwing exception
19 Jan 2015 13:44:55,256 ERROR [apache.solr.core.CoreContainer:1449] Unable to create core: descriptor
org.apache.solr.common.SolrException: Index locked for write for core descriptor
Am 19.01.2015 um 13:49 schrieb Christoph Kukulies:
I'm still having errors during startup. It's probably not the java parameters but another problem related to solr.
Look here (what is logged, when I start cmsshell.sh):
19 Jan 2015 13:44:54,956 INFO [pencms.search.CmsSearchManager:2956] . Search Solr : Solr core container created using /var/lib/tomcat7/webapps/ROOT/WEB-INF/solr as Solr home and solr.xml as configuration file.
19 Jan 2015 13:44:55,255 ERROR [ org.apache.solr.core.SolrCore: 481] [descriptor] Solr index directory '/var/lib/tomcat7/webapps/ROOT/WEB-INF/index/Solr Online/index/' is locked. Throwing exception
OK, that one is because I had the servlet container running at the same time as I was trying to run cmsshell.sh.
That's why the solr index directory was locked. After stopping the service I ran the cmsshell.sh once again and it now
turns out that there is another error:
type init : added resource type "documentation-dummy-content" id=362 class=org.opencms.file.types.CmsResourceTypeXmlContent
19 Jan 2015 14:07:34,403 INFO [ncms.loader.CmsResourceManager:1416] . Resource type init : added resource type "documentation-demo-layout-element" id=372 class=org.opencms.file.types.CmsResourceTypeXmlContent
19 Jan 2015 14:07:34,403 INFO [ncms.loader.CmsResourceManager:1533] . Resource type init : finished
19 Jan 2015 14:07:34,860 ERROR [ypes.CmsResourceTypeXmlContent: 279] Invalid XML schema "/system/modules/org.opencms.frontend.templatetwo/schemas/config.xsd" configured for type name "ttconfig".
org.opencms.xml.CmsXmlException: Invalid custom widget class "org.opencms.frontend.templatetwo.CmsPresetSelectWidget" for element "Preset" in content definition "opencms://system/modules/org.opencms.frontend.templatetwo/schemas/config.xsd".
at org.opencms.xml.content.CmsDefaultXmlContentHandler.addWidget(CmsDefaultXmlContentHandler.java:1762)
at org.opencms.xml.content.CmsDefaultXmlContentHandler.initLayouts(CmsDefaultXmlContentHandler.java:2092)
at org.opencms.xml.content.CmsDefaultXmlContentHandler.initialize(CmsDefaultXmlContentHandler.java:1069)
at org.opencms.xml.CmsXmlContentDefinition.unmarshalInternal(CmsXmlContentDefinition.java:990)
at org.opencms.xml.CmsXmlContentDefinition.unmarshal(CmsXmlContentDefinition.java:387)
at org.opencms.file.types.CmsResourceTypeXmlContent.initialize(CmsResourceTypeXmlContent.java:270)
at org.opencms.loader.CmsResourceManager.initialize(CmsResourceManager.java:1169)
at org.opencms.main.OpenCmsCore.initConfiguration(OpenCmsCore.java:1353)
at org.opencms.main.OpenCmsCore.upgradeRunlevel(OpenCmsCore.java:1970)
at org.opencms.main.CmsShell.<init>(CmsShell.java:526)
at org.opencms.main.CmsShell.main(CmsShell.java:604)
Caused by: java.lang.ClassNotFoundException: org.opencms.frontend.templatetwo.CmsPresetSelectWidget
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:191)
at org.opencms.xml.content.CmsDefaultXmlContentHandler.addWidget(CmsDefaultXmlContentHandler.java:1754)
... 10 more
19 Jan 2015 14:07:34,897 ERROR [ypes.CmsResourceTypeXmlContent: 279] Invalid XML schema "/system/modules/org.opencms.frontend.templatetwo/schemas/listbox.xsd" configured for type name "ttlistbox".
org.opencms.xml.CmsXmlException: Invalid custom widget class "org.opencms.frontend.templatetwo.CmsCollectorSelectWidget" for element "Collector" in content definition "opencms://system/modules/org.opencms.frontend.templatetwo/schemas/listbox.xsd".
at org.opencms.xml.content.CmsDefaultXmlContentHandler.addWidget(CmsDefaultXmlContentHandler.java:1762)
at org.opencms.xml.content.CmsDefaultXmlContentHandler.initLayouts(CmsDefaultXmlContentHandler.java:2092)
at org.opencms.xml.content.CmsDefaultXmlContentHandler.initialize(CmsDefaultXmlContentHandler.java:1069)
--
Chris Christoph P. U. Kukulies kukulies (at) rwth-aachen.de
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20150119/a043f69d/attachment.htm>
More information about the opencms-dev
mailing list