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 7416659
In Process

The Archive Base Latest Questions

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

I have created a Java Web project with just one class. If I compile

  • 0

I have created a Java Web project with just one class. If I compile and deploy the WAR to JBoss everything works fine. However, if I make the class @Stateless, JBoss deployment fails with the error.

java.lang.IllegalArgumentException: EntityManagerFactory cannot be null

I am (by now) sure that I must be doing something very stupid but I cannot see what my problem is.

Update: Must be something with the installation I have been given. Works fine on a local install of JBoss 6.

Larger stacke trace quote:

2012-01-28 01:43:54,913 INFO  [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) installing bean: jboss.j2ee:jar=JanTest.war,name=Service,service=EJB3
2012-01-28 01:43:54,914 INFO  [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner)   with dependencies:
2012-01-28 01:43:54,914 INFO  [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner)   and demands:
2012-01-28 01:43:54,914 INFO  [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner)  jboss-injector:topLevelUnit=JanTest.war,unit=JanTest.war,bean=Service,interceptor=org.jboss.weld.integration.ejb.SessionBeanInterceptor; Required: Described
2012-01-28 01:43:54,914 INFO  [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner)  jboss.ejb:service=EJBTimerService; Required: Described
2012-01-28 01:43:54,914 INFO  [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner)  jboss-injector:topLevelUnit=JanTest.war,unit=JanTest.war,bean=Service,interceptor=org.jboss.weld.integration.ejb.interceptor.Jsr299BindingsInterceptor; Required: Described
2012-01-28 01:43:54,914 INFO  [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner)  jboss-switchboard:appName=JanTest,module=JanTest; Required: Create
2012-01-28 01:43:54,915 INFO  [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner)   and supplies:
2012-01-28 01:43:54,915 INFO  [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner)  jndi:Service
2012-01-28 01:43:54,915 INFO  [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) Added bean(jboss.j2ee:jar=JanTest.war,name=Service,service=EJB3) to KernelDeployment of: JanTest.war
2012-01-28 01:43:55,175 INFO  [org.jboss.web.tomcat.service.deployers.TomcatDeployment] (HDScanner) deploy, ctxPath=/JanTest
2012-01-28 01:43:55,318 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] (HDScanner) Error installing to Create: name=jboss.j2ee:jar=JanTest.war,name=Service,service=EJB3 state=Configured: java.lang.IllegalArgumentException: EntityManagerFactory cannot be null
    at org.jboss.ejb3.timerservice.mk2.TimerServiceImpl.<init>(TimerServiceImpl.java:139) [:1.0.0-alpha-13]
    at org.jboss.ejb3.timerservice.mk2.TimerServiceFactoryImpl.createTimerService(TimerServiceFactoryImpl.java:79) [:1.0.0-alpha-13]
    at org.jboss.ejb3.TimerServiceContainer.createTimerService(TimerServiceContainer.java:234) [:1.7 ......
  • 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:32:37+00:00Added an answer on May 29, 2026 at 7:32 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 have recently created a web project in Java using eclipse. I have a
I have created some simple app in Java, and 'deployed' it using Java Web
I have created a simple web-service using Java. i want to load jars related
I have created a couple of java working sets for a project in my
I have just created a .properties file in Java and got it to work.
I've created a Dynamic Web Project in Eclipse. I have 2 beans, 1 @Entity
I have created a Dynamic Web Project in my Eclipse workspace. It is also
I am having a Java Web project with some class files, JSP files along
I have been trying to convert a web project that produces a war file
I have created an EAR with a web project, ejb3 project and the ejb

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.