Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7417433
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T07:42:03+00:00 2026-05-29T07:42:03+00:00

I am having problems deploying a Java EE 6 application on JBoss 6. The

  • 0

I am having problems deploying a Java EE 6 application on JBoss 6. The startup process works fine until after the persistence unit is bound to its JNDI name. The DB connection has been established.

Then I get an error, saying

2012-01-26 13:29:31,451 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] (HDScanner) Error installing to Create: name=jboss.j2ee:jar=Content_Hub.war,name=AgofResource,service=EJB3 state=Configured: java.lang.IllegalArgumentException: EntityManagerFactory cannot be null

Can anyone provide a clue, what might cause this error?

Update:

Here is my persistence.xml:

<persistence-unit name="cmsPU" transaction-type="JTA">
  <jta-data-source>java:/tteamdb</jta-data-source>
  <class>xxxx.entity.AgofEntry</class>
  <exclude-unlisted-classes>true</exclude-unlisted-classes>
  <properties>
    <property name="hibernate.connection.driver_class" value="oracle.jdbc.driver.OracleDriver" />
    <property name="hibernate.connection.url" value="xxxx" />
    <property name="hibernate.dialect" value="org.hibernate.dialect.OracleDialect" />
    <!-- user/pass for DB , too-->  
  </properties>
</persistence-unit>

Data source is also configured in JBoss.

I tried to add a components.xml, but that does not seem to affect the error in any way:

<components xmlns="http://jboss.com/products/seam/components" xmlns:persistence="http://jboss.com/products/seam/persistence">
  <persistence:entity-manager-factory name="entityManagerFactory" persistence-unit-name="cmsPU" />
  <persistence:managed-persistence-context name="em" auto-create="true" entity-manager-factory="#{entityManagerFactory}" />
</components>

I am actually not using an EntityManagerFactory anywhere. Just a plain EntityManager like this:

@PersistenceContext(unitName = "cmsPU")
private EntityManager em;
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T07:42:04+00:00Added an answer on May 29, 2026 at 7:42 am

    The problem occurred only in the particular installation of JBoss. Worked fine with a local install. I’ll post a comment should I ever find the reason for the error.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm having problems deploying my application to a production server (shared hosting). Everything works
I'm having problems with deploying an application on Windows that displays an animated gif.
I'm having some problems with deploying my application and while troubleshooting, I came across
I'm having problems when deploying my web application in my tomcat 7 web server.
I'm having problems deploying a simple WebServices app (like Hello World simple) to OC4J.
We are having some problems deploying our WCF services into IIS7. We have two
Having a problem deploying an MVC application. Basically the site loads correctly, the home
I'm having problems deploying my website to the live server using VWD 2010 Express.
I'm having some problems publishing an asp.net mvc3 application. When deployed, the application fails
We've having trouble deploying a web service that works in our development environment, but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.