The server does not support version 3.2 of the J2EE EJB module specification.

Today, I deployed a Web project Test with Eclipse, and the following error was reported: T The server does not support version 3.2 of the J2EE EJB module specification.

The original Test was created with ejb3.2, but now jboss4.2 is only supported to ejb3.0.



The solution is as follows: 

There is a .settings folder in the project root directory, and there is an org.eclipse.wst.common.project.facet.core.xml file in this folder, the content is as follows: 

<?xml version="1.0" encoding="UTF-8"?>

<faceted-project>

  <runtime name="WildFly 8.x Runtime"/>

  <fixed facet="jst.ejb"/>

  <fixed facet="java"/>

  <installed facet="java" version="1.7"/>

  <installed facet="jst.ejb" version="3.2"/>

</faceted-project>

 

 把<installed facet="jst.ejb" version="3.2"/>改为  <installed facet="jst.ejb" version="3.0"/>

Then refresh reloads the configuration and celan recompiles. ready to deploy

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326733107&siteId=291194637