首先,我安装了tomcat 7,然后我可以根据以下网址部署adf应用程序:https://blogs.oracle.com/adfthoughts/entry/running_adf_essentials_in_tomcat 但我希望服务器运行一个j2ee应用程序,它具有jpa和hibernate等模型项目,所以我需要TomEE。我在win7系统上安装了TomEE 1.5.2版本,我应用了与tomcat 7相同的步骤,结果是失败。
Plz帮助我,我得到以下错误:
Caused by: org.apache.tomee.catalina.TomEERuntimeException: org.apache.openejb.OpenEJBException: Cannot unmarshall the JSP tag library definition file: jar:file:/u02/RTE/apache-tomee-plus-1.5.2/webapps/rcf-dvt-demo/WEB-INF/lib/adf-richclient-impl-12-abrams-SNAPSHOT.jar!/META-INF/afu.tld: unexpected element (uri:"http://java.sun.com/xml/ns/javaee", local:"code"). Expected elements are <{^@}text>
at org.apache.tomee.catalina.TomcatWebAppBuilder.loadApplication(TomcatWebAppBuilder.java:1903)
at org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:1073)
at org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:1033)
at org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:124)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5179)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
... 11 more
答案 0 :(得分:0)
我认为问题不在ADF中,你的问题在于Tomee用于EJB(JPA)openEJB的实现,看看你是否正确配置了EJB层?