CQ5 WCM无法正常工作

时间:2013-08-06 04:50:18

标签: cq5

我试图双击cq-quickstart-5.4.0.jar开始。我已将名称更改为cq-author-4502.jar。但在启动之后,我在server.log中遇到错误 - 我在Windows 7上运行,java版本是1.6.0_15

    06.08.2013 00:22:15 *MARK * server: Server start

06.08.2013 00:22:15 * MARK * servletengine:Servlet引擎启动 06.08.2013 00:22:15 * MARK * servletengine:Servlet容器启动 06.08.2013 00:22:15 *警告* servletengine:无法确定192.168.1.102的主机名。 06.08.2013 00:22:15 * MARK * webapp-Content Repository Extreme:启动Web应用程序 06.08.2013 00:22:15 * MARK * webapp-Content Repository Extreme:启动servlet' Logging' 06.08.2013 00:22:15 * MARK * webapp-Content Repository Extreme:启动servlet' Repository' 06.08.2013 00:22:15 * MARK * webapp-Content Repository Extreme:启动servlet' JCRExplorer' 06.08.2013 00:22:15 ERROR webapp-Content Repository Extreme:启动servlet不可用:JCRExplorer javax.servlet.ServletException:无法创建servlet     在com.day.j2ee.servletengine.ServletRuntimeEnvironment.doStart(ServletRuntimeEnvironment.java:121)     在com.day.j2ee.servletengine.ServletRuntimeEnvironment.start(ServletRuntimeEnvironment.java:93)     在com.day.j2ee.servletengine.WebApplication.loadStartupServlets(WebApplication.java:702)     在com.day.j2ee.servletengine.WebApplication.start(WebApplication.java:631)     在com.day.j2ee.servletengine.ServletContainer.start(ServletContainer.java:318)     在com.day.j2ee.servletengine.ServletEngine.start(ServletEngine.java:285)     在com.day.j2ee.server.Server.start(Server.java:227)     在com.day.j2ee.server.Server.main(Server.java:607)     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)     at java.lang.reflect.Method.invoke(Unknown Source)     在com.day.launcher.Bootstrap.run(Bootstrap.java:118)     在com.day.crx.quickstart.Quickstart.run(Quickstart.java:680)     在com.day.crx.quickstart.Main。(Main.java:675)     在com.day.crx.quickstart.Main.main(Main.java:730) 06.08.2013 00:22:15 错误 webapp-Content Repository Extreme:根本原因 java.lang.IllegalStateException:存储库不可用。     在com.day.crx.j2ee.JCRExplorerServlet.doGetRepository(JCRExplorerServlet.java:386)     在com.day.crx.j2ee.JCRExplorerServlet.getRepository(JCRExplorerServlet.java:333)     在com.day.crx.j2ee.JCRExplorerServlet.init(JCRExplorerServlet.java:320)     在javax.servlet.GenericServlet.init(GenericServlet.java:211)     在com.day.j2ee.servletengine.ServletRuntimeEnvironment.doStart(ServletRuntimeEnvironment.java:113)     在com.day.j2ee.servletengine.ServletRuntimeEnvironment.start(ServletRuntimeEnvironment.java:93)     在com.day.j2ee.servletengine.WebApplication.loadStartupServlets(WebApplication.java:702)     在com.day.j2ee.servletengine.WebApplication.start(WebApplication.java:631)     在com.day.j2ee.servletengine.ServletContainer.start(ServletContainer.java:318)     在com.day.j2ee.servletengine.ServletEngine.start(ServletEngine.java:285)     在com.day.j2ee.server.Server.start(Server.java:227)     在com.day.j2ee.server.Server.main(Server.java:607)     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)     at java.lang.reflect.Method.invoke(Unknown Source)     在com.day.launcher.Bootstrap.run(Bootstrap.java:118)     在com.day.crx.quickstart.Quickstart.run(Quickstart.java:680)     在com.day.crx.quickstart.Main。(Main.java:675)     在com.day.crx.quickstart.Main.main(Main.java:730) 06.08.2013 00:22:15 * MARK * webapp-Content Repository Extreme:启动servlet' Webdav' 06.08.2013 00:22:15 * MARK * webapp-Content Repository Extreme:启动servlet' JCRWebdavServer' 06.08.2013 00:22:15 * MARK * webapp-Content Repository Extreme:启动servlet' CqResource' 06.08.2013 00:22:15 * MARK * webapp-Content Repository Extreme:启动servlet' PackageShare' 06.08.2013 00:22:15 * MARK * webapp-Content Repository Extreme:启动servlet' PackageManager' 06.08.2013 00:22:15 * MARK * webapp-CRX Launchpad Webapp:启动Web应用程序 06.08.2013 00:22:15 * MARK * webapp-CRX Launchpad Webapp:启动过滤器' CRXLaunchpadLicenseFilter' 06.08.2013 00:22:15 * MARK * webapp-CRX Launchpad Webapp:启动servlet' sling' 06.08.2013 00:22:16 错误 webapp-CRX Launchpad Webapp:sling:无法在crx-quickstart / launchpad中启动Sling javax.servlet.ServletException:Uncaught启动Apache Sling失败     在org.apache.sling.launchpad.base.webapp.SlingServletDelegate.init(SlingServletDelegate.java:241)     在javax.servlet.GenericServlet.init(GenericServlet.java:211)     在org.apache.sling.launchpad.webapp.SlingServlet.startSling(SlingServlet.java:358)     在org.apache.sling.launchpad.webapp.SlingServlet.startSling(SlingServlet.java:300)     在org.apache.sling.launchpad.webapp.SlingServlet.init(SlingServlet.java:111)     在javax.servlet.GenericServlet.init(GenericServlet.java:211)     在com.day.j2ee.servletengine.ServletRuntimeEnvironment.doStart(ServletRuntimeEnvironment.java:113)     在com.day.j2ee.servletengine.ServletRuntimeEnvironment.start(ServletRuntimeEnvironment.java:93)     在com.day.j2ee.servletengine.WebApplication.loadStartupServlets(WebApplication.java:702)     在com.day.j2ee.servletengine.WebApplication.start(WebApplication.java:631)     在com.day.j2ee.servletengine.ServletContainer.start(ServletContainer.java:318)     在com.day.j2ee.servletengine.ServletEngine.start(ServletEngine.java:285)     在com.day.j2ee.server.Server.start(Server.java:227)     在com.day.j2ee.server.Server.main(Server.java:607)     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)     at java.lang.reflect.Method.invoke(Unknown Source)     在com.day.launcher.Bootstrap.run(Bootstrap.java:118)     在com.day.crx.quickstart.Quickstart.run(Quickstart.java:680)     在com.day.crx.quickstart.Main。(Main.java:675)     在com.day.crx.quickstart.Main.main(Main.java:730) 06.08.2013 00:22:16 错误 webapp-CRX Launchpad Webapp:根本原因 java.lang.NoClassDefFoundError:org / apache / sling / launchpad / api / StartupMode     at org.apache.sling.launchpad.base.impl.StartupManager.detectMode(StartupManager.java:138)     在org.apache.sling.launchpad.base.impl.StartupManager。(StartupManager.java:78)     在org.apache.sling.launchpad.base.impl.Sling。(Sling.java:225)     在org.apache.sling.launchpad.base.webapp.SlingBridge。(SlingBridge.java:41)     在org.apache.sling.launchpad.base.webapp.SlingServletDelegate.init(SlingServletDelegate.java:204)     在javax.servlet.GenericServlet.init(GenericServlet.java:211)     在org.apache.sling.launchpad.webapp.SlingServlet.startSling(SlingServlet.java:358)     在org.apache.sling.launchpad.webapp.SlingServlet.startSling(SlingServlet.java:300)     在org.apache.sling.launchpad.webapp.SlingServlet.init(SlingServlet.java:111)     在javax.servlet.GenericServlet.init(GenericServlet.java:211)     在com.day.j2ee.servletengine.ServletRuntimeEnvironment.doStart(ServletRuntimeEnvironment.java:113)     在com.day.j2ee.servletengine.ServletRuntimeEnvironment.start(ServletRuntimeEnvironment.java:93)     在com.day.j2ee.servletengine.WebApplication.loadStartupServlets(WebApplication.java:702)     在com.day.j2ee.servletengine.WebApplication.start(WebApplication.java:631)     在com.day.j2ee.servletengine.ServletContainer.start(ServletContainer.java:318)     在com.day.j2ee.servletengine.ServletEngine.start(ServletEngine.java:285)     在com.day.j2ee.server.Server.start(Server.java:227)     在com.day.j2ee.server.Server.main(Server.java:607)     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)     at java.lang.reflect.Method.invoke(Unknown Source)     在com.day.launcher.Bootstrap.run(Bootstrap.java:118)     在com.day.crx.quickstart.Quickstart.run(Quickstart.java:680)     在com.day.crx.quickstart.Main。(Main.java:675)     在com.day.crx.quickstart.Main.main(Main.java:730) 引起:java.lang.ClassNotFoundException:org.apache.sling.launchpad.api.StartupMode     在java.net.URLClassLoader $ 1.run(未知来源)     at java.security.AccessController.doPrivileged(Native Method)     at java.net.URLClassLoader.findClass(Unknown Source)     at java.lang.ClassLoader.loadClass(Unknown Source)     在org.apache.sling.launchpad.base.shared.LauncherClassLoader.loadClass(LauncherClassLoader.java:133)     at java.lang.ClassLoader.loadClass(Unknown Source)     ......还有26个 06.08.2013 00:22:16 * MARK * webapp-Admin应用程序:启动Web应用程序 06.08.2013 00:22:16 * MARK * servletengine:地址0.0.0.0上的http监听器,端口4502已启动 06.08.2013 00:22:16 * MARK *服务器:服务器就绪 06.08.2013 00:24:41 * MARK * servletengine:Servlet抛出异常: javax.naming.NameNotFoundException     在com.day.util.jndi.provider.MemoryContextFacade.getBoundObject(MemoryContextFacade.java:73)     在com.day.util.jndi.provider.MemoryContextFacade.lookup(MemoryContextFacade.java:240)     在com.day.util.jndi.provider.MemoryContextFacade.lookup(MemoryContextFacade.java:247)     在javax.naming.InitialContext.lookup(未知来源)     在com.day.crx.launchpad.filters.CRXLaunchpadLicenseFilter.checkLicense(CRXLaunchpadLicenseFilter.java:207)     在com.day.crx.launchpad.filters.CRXLaunchpadLicenseFilter.doFilter(CRXLaunchpadLicenseFilter.java:98)     在com.day.j2ee.servletengine.FilterChainImpl.doFilter(FilterChainImpl.java:72)     在com.day.j2ee.servletengine.RequestDispatcherImpl.service(RequestDispatcherImpl.java:334)     在com.day.j2ee.servletengine.RequestDispatcherImpl.service(RequestDispatcherImpl.java:378)     在com.day.j2ee.servletengine.ServletHandlerImpl.execute(ServletHandlerImpl.java:315)     在com.day.j2ee.servletengine.DefaultThreadPool $ DequeueThread.run(DefaultThreadPool.java:134)     在java.lang.Thread.run(未知来源)

3 个答案:

答案 0 :(得分:0)

错误记录的关键部分是

  

06.08.2013 00:22:15 *警告* servletengine:无法确定主机名192.168.1.102。

尝试在C:\Windows\System32\drivers\etc\hosts文件中为本地主机添加主机名。

例如:

127.0.0.1         localhost
192.168.1.102     mybox

答案 1 :(得分:0)

我在Windows 7中运行cq 5.4,5.5和5.6。我不相信你的问题与操作系统有关。如果jar解压缩了crx目录,请导航到crx-quickstart \ server \ server.bat并以这种方式启动服务器。这有用吗?如果没有,请发布日志。

答案 2 :(得分:0)

您是否从原始位置移动了jar /提取的文件?