我正在尝试通过 SpagoBISDK 中的 .jar 文件将 SpagoBI 集成到我现有的 Web 应用程序中。
我下载了他们的 All-In-One-SpagoBI,其中包含他们的 BI 服务器,该服务器已经配置了 apache tomcat 6.0.18。当我通过 Web 浏览器上的此链接对其进行测试时,它运行良好:localhost:8080/SpagoBI
之后,我下载了他们的示例项目 SpagoBISDK.war。当我将 .war 文件放在“BI 服务器配置”的 apache-tomcat-6.0.18/webapps 文件夹中并启动 tomcat 时。当我通过 Web 浏览器上的此链接对其进行测试时,它运行良好:localhost:8080/SpagoBISDK。
下载 All-In-One-SpagoBI 的链接:http://forge.ow2.org/project/download.php?group_id=204&file_id= 18770
SpagoBISDK 下载链接:http://forge.ow2.org/project/download.php?group_id=204&file_id= 18561
注意:SpagoBISDK 需要 All-In-One-SpagoBI 才能工作。此外,SpagoBISDK.war 就像一个示例 Web 应用程序项目。
问题: 当我将SpagoBI.war作为项目导入Eclipse,使用“BI server-configured”apache-tomcat-6.0.18运行项目时,遇到如下错误:
INFO: Server startup in 444 ms
AxisFault
faultCode: {http://xml.apache.org/axis/}HTTP
faultSubcode:
faultString: (404)Not Found
faultActor:
faultNode:
faultDetail:
{}:return code: 404
<html><head><title>Apache Tomcat/6.0.18 - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 404 - /SpagoBI/sdk/TestConnectionService</h1><HR size="1" noshade="noshade"><p><b>type</b> Status report</p><p><b>message</b> <u>/SpagoBI/sdk/TestConnectionService</u></p><p><b>description</b> <u>The requested resource (/SpagoBI/sdk/TestConnectionService) is not available.</u></p><HR size="1" noshade="noshade"><h3>Apache Tomcat/6.0.18</h3></body></html>
{http://xml.apache.org/axis/}HttpErrorCode:404
(404)Not Found
at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:744)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:144)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
at org.apache.axis.client.Call.invoke(Call.java:2767)
at org.apache.axis.client.Call.invoke(Call.java:2443)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)
at it.eng.spagobi.sdk.test.stub.TestConnectionServiceSoapBindingStub.connect(TestConnectionServiceSoapBindingStub.java:100)
at it.eng.spagobi.sdk.proxy.TestConnectionServiceProxy.connect(TestConnectionServiceProxy.java:67)
at org.apache.jsp.documentsList_jsp._jspService(documentsList_jsp.java:95)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Unknown Source)
我搜索了其他人面临的类似问题。许多人提到网络服务的链接不正确。但是,我通过 web 浏览器运行 webapps 文件夹中的 SpagoBI.war 文件测试了链接(如上所述的第 2 步),它们运行良好。
如果有人能向我解释为什么会这样,我将不胜感激,并希望我该如何解决这个问题。
非常感谢!