2

私は WSO2Carbon バージョン 4.0.3 を使用しており、WSO2 WSAS アプリケーション サーバーと WSO2 ESB をインストールして構成しました。

RESTful (JAX-RS) サンプル Web サービスを作成し、それを WSO2 Application Aerver (WSO2 AS) にデプロイしました。ブラウザを使用してデプロイされたサービスをテストしたところ、正常に動作しました。

実験中に、サンプル Web サービスとのやり取りに WSO2 ESB を使用することにしました。WSO2 Carbon 管理コンソールを使用して、Web サービスへのエンドポイントを正常に作成しました。

ここで、管理コンソールのメニューを使用して作成されたエンドポイントを表示しようとすると、空白のページのみが表示されます。wso2server コンソール ログを見ると、エンドポイントにアクセスしようとするたびに次の例外がスローされることがわかりました。

[2013-01-16 11:07:43,064] ERROR {org.apache.tiles.jsp.context.JspTilesRequestContext} -  JSPException while including path '/endpoints/index.jsp'. 
javax.servlet.jsp.JspException: ServletException while including page.
    at org.apache.tiles.jsp.context.JspUtil.doInclude(JspUtil.java:102)
    at org.apache.tiles.jsp.context.JspTilesRequestContext.include(JspTilesRequestContext.java:88)
    at org.apache.tiles.jsp.context.JspTilesRequestContext.dispatch(JspTilesRequestContext.java:82)
    at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:465)
    at org.apache.tiles.jsp.taglib.InsertAttributeTag.render(InsertAttributeTag.java:140)
    at org.apache.tiles.jsp.taglib.InsertAttributeTag.render(InsertAttributeTag.java:117)
    at org.apache.tiles.jsp.taglib.RenderTagSupport.execute(RenderTagSupport.java:171)
    at org.apache.tiles.jsp.taglib.RoleSecurityTagSupport.doEndTag(RoleSecurityTagSupport.java:75)
    at org.apache.tiles.jsp.taglib.ContainerTagSupport.doEndTag(ContainerTagSupport.java:80)
    at org.apache.jsp.admin.layout.template_jsp._jspx_meth_tiles_insertAttribute_7(template_jsp.java:539)
    at org.apache.jsp.admin.layout.template_jsp._jspService(template_jsp.java:290)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
    at org.wso2.carbon.ui.JspServlet.service(JspServlet.java:161)
    at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:80)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
    at org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:36)
    at org.eclipse.equinox.http.servlet.internal.ServletRegistration.handleRequest(ServletRegistration.java:90)
    at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:111)
    at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:67)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
    at org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)
    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.ApplicationDispatcher.invoke(ApplicationDispatcher.java:690)
    at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:477)
    at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:402)
    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:329)
    at org.eclipse.equinox.http.servlet.internal.RequestDispatcherAdaptor.forward(RequestDispatcherAdaptor.java:30)
    at org.eclipse.equinox.http.helper.ContextPathServletAdaptor$RequestDispatcherAdaptor.forward(ContextPathServletAdaptor.java:258)
    at org.apache.tiles.servlet.context.ServletTilesRequestContext.forward(ServletTilesRequestContext.java:198)
    at org.apache.tiles.servlet.context.ServletTilesRequestContext.dispatch(ServletTilesRequestContext.java:185)
    at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:419)
    at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:370)
    at org.wso2.carbon.ui.action.ActionHelper.render(ActionHelper.java:52)
    at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:101)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)

この例外を解決するのを手伝ってくれる人はいますか?

WSO2 のドキュメントはかなり曖昧で不足しており、例や情報がさまざまな個々のブログに散らばっています。WSO2 ESB のセットアップ、シーケンス、メディエーター、それらがどのように相互に作用するか、それらを構成する必要がある理由などについての情報をまとめて収集するのは難しいと感じています。

4

1 に答える 1

2

構成にエラーがあったときに例外が発生するのを見てきました。Service Bus -> Source View に移動して、作成したものが実際に存在するかどうかを確認できますか? 表示される場合は、削除してみてください。例外が解消される可能性があります。この方法で作成したエンドポイントを削除できない場合は、次の方法で削除してみてください。

$ESB_HOME/repository/deployment/server/synapse-configs/default/endpoints/

エラーを再現するために、試していたエンドポイント構成を投稿すると役立つ場合があります。

于 2013-01-17T17:02:14.650 に答える