我正在尝试通过SpagoBISDK内的.jar文件将SpagoBI集成到我现有的Web应用程序中。
我下载了他们的All-In-One-SpagoBI,它包含已经配置了apache tomcat 6.0.18的BI Server。它在我通过网络浏览器上的链接进行测试时工作正常:localhost:8080 / SpagoBI
之后,我下载他们的示例项目SpagoBISDK.war。当我将.war文件放在“BI服务器配置的”apache-tomcat-6.0.18 / webapps文件夹中并启动tomcat时。它在我通过网络浏览器上的链接进行测试时工作正常: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服务器配置”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浏览器测试了链接,并且它们工作正常。
我很感激,如果有人能向我解释为什么会这样,希望如何解决这个问题呢。
非常感谢!
答案 0 :(得分:1)
关于我的问题,我已经解决了。
默认情况下,Eclipse使用“使用工作空间元数据(不修改Tomcat安装)”。您必须将服务器位置更改为“使用Tomcat安装(控制Tomcat安装)”,以便在将SpagoBI SDK示例项目导出到Eclipse后将其工作。请参阅链接 - Tomcat started in Eclipse but unable to connect to http://localhost:8085/
如果您无法更改设置,则其他人提供了有关如何更改设置的说明。请参阅链接 - Eclipse "Server Locations" section disabled and need to change to use Tomcat installation
希望这有帮助!