我试图通过SpagoBISDK中的.jar文件将SpagoBI集成到我现有的Web应用程序中。
1.我下载了他们的All-In-One-SpagoBI,其中包括已经配置了apache tomcat 6.0.18的BI服务器。它工作正常,因为我通过Web浏览器上的此链接进行了测试:localhost:8080/SpagoBI
1.之后,我下载了他们的示例项目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
注意:All-In-One-SpagoBI是SpagoBISDK工作所必需的。此外,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)通过Web浏览器测试了链接,它们工作正常。
如果有人能向我解释为什么会这样,我将不胜感激,希望我能如何解决这个问题。
多谢了!
1条答案
按热度按时间qyzbxkaa1#
关于我的问题,我已经解决了。
1.默认情况下,Eclipse使用“Use workspace metadata(doesn 't modify Tomcat installation)"。您必须将服务器位置更改为“Use Tomcat installation(takes control of Tomcat installation)”,以便SpagoBI SDK样例项目在导出到Eclipse后能够正常工作。请参阅链接-Tomcat started in Eclipse but unable to connect to http://localhost:8085/
1.如果您无法更改设置,其他人提供了如何更改的说明。请参阅链接-Eclipse "Server Locations" section disabled and need to change to use Tomcat installation
希望这有帮助!