Note that there are some explanatory texts on larger screens.

plurals
  1. PODeploymentException while deploying the remote EJB
    text
    copied!<p>I am getting this exception while running a dynamic web project</p> <pre><code>Error installing to Real: name=vfsfile:/C:/jboss-5.0.1.GA_1/jboss-5.0.1.GA/server/default/deploy/BookMartEAR.ear/ state=PreReal mode=Manual requiredState=Real org.jboss.deployers.spi.DeploymentException: Error deploying BookMartEJB.jar: Container jboss.j2ee:ear=BookMartEAR.ear,jar=BookMartEJB.jar,name=BookMartBean,service=EJB3 failed to resolve persistence unit BookMartEjb . . . Caused by: java.lang.IllegalArgumentException: Can't find a persistence unit named 'BookMartEjb' in AbstractVFSDeploymentContext@26167457{vfsfile:/C:/jboss-5.0.1.GA_1/jboss-5.0.1.GA/server/default/deploy/BookMartEAR.ear/BookMartEJB.jar/} </code></pre> <p>The EJB, EAR and Web project names are as mentioned.</p> <p>The persistence.xml looks like this:</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;persistence version="1.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"&gt; &lt;persistence-unit name="BookMartEJB" transaction-type="JTA"&gt; &lt;jta-data-source&gt;MySqlDS&lt;/jta-data-source&gt; &lt;class&gt;com.misys.book.Book&lt;/class&gt; &lt;class&gt;com.misys.book.Sale&lt;/class&gt; &lt;class&gt;com.misys.book.Saleitem&lt;/class&gt; &lt;class&gt;com.misys.book.Customer&lt;/class&gt; &lt;class&gt;com.misys.book.User&lt;/class&gt; &lt;/persistence-unit&gt; &lt;/persistence&gt; </code></pre> <p>is there any problem with this xml file? I am using JBoss AS server, and MySql database.</p> <p>Kindly suggest where I could have gone wrong. Also, tell if any other information is required.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload