我正在尝试将最初在Websphere 8上运行的应用程序(在耳文件中)迁移到JBoss EAP 6.4。当我在Jboss的“ deployments”文件夹中获得“ deployed”状态时,该应用程序现在可以正常部署。我知道我有正确的URL,因为我从Tapestry得到了服务器日志上的答案。但我看不到该应用程序,只看到一个404未找到页面。
这是供您查看的耳夹的结构:
application.ear
.
.
...lib
...META-INF
...firstwar.war
.
.
...META-INF
...static
...WEB-INF
...secondwar.war
.
.
...META-INF
...WEB-INF
...core.jar
这是我的2个web.xml文件
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<display-name>wlp-ecrin-ggr-admin Tapestry 5 Application</display-name>
<context-param>
<!-- The only significant configuration for Tapestry 5, this informs Tapestry
of where to look for pages, components and mixins. -->
<param-name>tapestry.app-package</param-name>
<param-value>net.companyname.wlp.ecrin.ggr.admin.tapestry</param-value>
</context-param>
<context-param>
<param-name>tapestry.production-mode</param-name>
<param-value>true</param-value>
</context-param>
<context-param>
<param-name>com.ibm.ws.webcontainer.invokeFiltersCompatibility</param-name>
<param-value>true</param-value>
</context-param>
<filter>
<filter-name>Ecrin</filter-name>
<filter-class>org.apache.tapestry5.TapestryFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>Ecrin</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
</web-app>
<?xml version="1.0" encoding="ISO-8859-1"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4">
<listener>
<listener-class>net.company name.xa.eff.server.EasyFlowServerListener</listener-class>
</listener>
<servlet>
<!-- Identification -->
<servlet-name>startAdmin</servlet-name>
<servlet-class>net.companyname.wlp.ecrin.ggr.admin.StartAdmin</servlet-class>
<!-- Load this servlet when the application starts (call the init() method of the servlet) -->
<load-on-startup>5</load-on-startup>
</servlet>
</web-app>
非常感谢您的帮助,
PS:
我还认为问题出在Tapestry上,并尝试了此解决方案,但似乎没有效果https://wiki.apache.org/tapestry/HowToRunTapestry5OnJBoss6Dot1?action=recall&rev=1