File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JBoss/WildFly and the fly likes Exception Can't find a persistence unit named 'null' Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Exception Can Watch "Exception Can New topic
Author

Exception Can't find a persistence unit named 'null'

purnima na
Greenhorn

Joined: Nov 25, 2012
Posts: 2
Hi,

The application works fine in Jboss 4.3.When migrating the application from Jboss 4.3 to Jboss 6,I am getting the below exception
I have added in web.xml and renamed persistence.xml to some other name.Still the below error is not resolved.


  • Caused by: org.jboss.deployers.spi.DeploymentException: Error creating web module vfs:///C:/BupaEnv/EnterprisePlatform-4.3.0.GA_CP04/jboss-as/server/default/deploy/quicksilver.war
    at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49) [:2.2.2.GA]
    at org.jboss.web.deployers.AbstractWarDeployer.deployWebModule(AbstractWarDeployer.java:810) [:6.1.0.Final]
    at org.jboss.web.deployers.AbstractWarDeployer.deploy(AbstractWarDeployer.java:481) [:6.1.0.Final]
    ... 47 more
    Caused by: java.lang.IllegalArgumentException: Can't find a persistence unit named 'null' in AbstractVFSDeploymentContext@13067275{vfs:///C:/BupaEnv/EnterprisePlatform-4.3.0.GA_CP04/jboss-as/server/default/deploy/quicksilver.war}
    at org.jboss.jpa.resolvers.BasePersistenceUnitDependencyResolver.resolvePersistenceUnitSupplier(BasePersistenceUnitDependencyResolver.java:107) [:1.0.2-alpha-4]
    at org.jboss.web.deployers.AbstractWarDeployer.deployWebModule(AbstractWarDeployer.java:791) [:6.1.0.Final]
    ... 48 more


  • Any ideas on how to get beyond this?

    Thanks
     
    wood burning stoves
     
    subject: Exception Can't find a persistence unit named 'null'
     
    Similar Threads
    Configuring SQL Server 2008 to JBOSS
    JBOSS 4.3.0 EAP Clustering with Apache HTTP Server 2.2.11
    out of memory error occurs while redepolying in jboss 6.1
    Exception while deploying the bean
    JBoss and log4j (I want a separate log4j configuration for my application)