This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

purnima na
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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( [:2.2.2.GA]
    at org.jboss.web.deployers.AbstractWarDeployer.deployWebModule( [:6.1.0.Final]
    at org.jboss.web.deployers.AbstractWarDeployer.deploy( [: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( [:1.0.2-alpha-4]
    at org.jboss.web.deployers.AbstractWarDeployer.deployWebModule( [:6.1.0.Final]
    ... 48 more

  • Any ideas on how to get beyond this?

    It is sorta covered in the JavaRanch Style Guide.
    • Post Reply Bookmark Topic Watch Topic
    • New Topic
    Boost this thread!