如何解决此错误消息“文件”/web/xxx.jsp“”未找到

时间:2015-11-05 18:00:04

标签: jsp wso2 wso2esb wso2carbon wso2as

我开始实施碳成分。因此实现并测试了后端运行时。现在需要创建前端UI组件。所以这是我的component.xml文件,它放在resources / META-INF。

<component xmlns="http://products.wso2.org/carbon">
<menus>
    <menu>
        <id>orderprocess_menu</id>
        <i18n-key>orderprocess.menu</i18n-key>
        <i18n-bundle>../web/org.wso2.carbon.OrderProcess.ui.i18n.Resources</i18n-bundle>
        <parent-menu>manage_menu</parent-menu>
        <link>../web/orderprocess/orderprocess.jsp</link>
        <region>region1</region>
        <order>50</order>
        <style-class>manage</style-class>
        <icon>../log-admin/images/log.gif</icon>
        <require-permission>/permission/protected/manage</require-permission>
    </menu>
</menus>

然后,在将生成的jar文件复制到dropins文件夹后,我可以在菜单栏中看到一个新项目。但问题是我点击它我得到一个像这样的运行时异常。

File &quot;/web/orderprocess/orderprocess.jsp&quot; not found
at org.apache.jasper.servlet.JspServlet.handleMissingResource(JspServlet.java:417)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:384)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at org.wso2.carbon.ui.JspServlet.service(JspServlet.java:155)
at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:80)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
...

仍然不知道如何解决这个问题。任何有关这方面的帮助将不胜感激。

注意:我尝试在 WSO2 ESB和WSO2 AS 上进行部署。

1 个答案:

答案 0 :(得分:0)

按如下方式更改

<component xmlns="http://products.wso2.org/carbon">
<menus>
    <menu>
        <id>orderprocess_menu</id>
        <i18n-key>orderprocess.menu</i18n-key>
        <i18n-bundle>org.wso2.carbon.OrderProcess.ui.i18n.Resources</i18n-bundle>
        <parent-menu>manage_menu</parent-menu>
        <link>../web/orderprocess/orderprocess.jsp</link>
        <region>region1</region>
        <order>50</order>
        <style-class>manage</style-class>
        <icon>../log-admin/images/log.gif</icon>
        <require-permission>/permission/protected/manage</require-permission>
    </menu>
</menus>