我正试图安装SDX来构建cyberdocs platform。
我正试图用tomcat7安装到linux(Debian 3.9.8-1 x86_64gnu/linux)中。
我从http://download-mirror.savannah.gnu.org/releases/sdx/下载文件sdx-2.4.1.3-src.zip
当我提取内容时,会看到以下文件:
├── appendcp.bat
├── bin
├── build
├── build.bat
├── build.sh
├── build.xml
├── create-docs.bat
├── create-docs.sh
├── create-jar.bat
├── create-jar.sh
├── create-war.bat
├── create-war.sh
├── docs
├── INSTALL
├── legal
├── lib
├── LICENSE
├── README
├── run.bat
├── run.sh
├── sdx.bat
├── sdx.sh
├── src
└── tools
因此,我构建了war文件,然后运行以下命令来执行此操作:
sh build.sh webpp
然后我复制由命令生成的文件,在本例中为:sdx-2.4.1.3-vm1.4.war,我将此文件复制到
/usr/share/tomcat7/webapps/
所以我转到tomcat中的管理面板(localhost:8080/manager/html),选择war文件并部署:sdx-2.4.1.3-vm1.4.war
我重新启动tomcat,然后转到URL localhost:8080/sdx-2.4.1.3-vm1.4/
看看下一个麻烦:
SDX message
Source org.apache.cocoon.components.treeprocessor.sitemap.ErrorHandlerHelper
Exception org.apache.cocoon.ResourceNotFoundException
Message No pipeline matched request: index.html
Details org.apache.cocoon.ResourceNotFoundException: No pipeline matched request: index.html
extra info
org.apache.cocoon.ResourceNotFoundException: No pipeline matched request: index.html
还有一个严重的错误:
rg.apache.cocoon.ResourceNotFoundException: No pipeline matched request: index.html
at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:149)
at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:93)
at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:235)
at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:177)
at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:253)
at org.apache.cocoon.Cocoon.process(Cocoon.java:699)
at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1154)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1023)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:724)
更新:
我在8888端口运行了coocon服务器
所以,我试图复制coconn编译中生成的库(jar's)
到tomcat7中的libs目录:
root@demian:/home/cristian/src/cocoon-2.1.12/lib# cp core/*.jar /usr/share/tomcat7/lib/
root@demian:/home/cristian/src/cocoon-2.1.12/lib# cp optional/*.jar /usr/share/tomcat7/lib/
但找不到SDX服务器库的库孔。
帮我点忙?
如何解决它的麻烦?
我做错什么了?
谢谢你的时间和知识
最佳答案
发生此错误的原因是未配置站点地图,此应用程序的站点地图位于sdx/src/webapp/sitemap.xmap
,您需要编辑第616行,您可以看到如下文件:
<map:match pattern="">
<map:redirect-to uri="sdx/"/>
</map:match>
因此,您需要将url添加到入口点,如:
<map:match pattern="index.html">
<map:redirect-to uri="sdx/admin/superuser.xsp"/>
</map:match>