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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T18:16:23+00:00 2026-06-10T18:16:23+00:00

I am developing a Java EE enterprise application using NetBeans IDE. I can develop

  • 0

I am developing a Java EE enterprise application using NetBeans IDE. I can develop and test my whole application on the Glassfish instance bundled with NetBeans IDE, but I face kind of vague errors when I try to deploy my application on our production Glassfish server. Every time I try to deploy the .ear package on the server, Glassfish reports this error:

SEVERE: Exception while loading the app
SEVERE: Exception while shutting down application container
SEVERE: Exception while shutting down application container : java.lang.NullPointerException
SEVERE: java.lang.RuntimeException: Error occurred during deployment: Exception while shutting down application container : java.lang.NullPointerException. Please see server.log for more details.

The application is developed from scratch on NetBeans 7.2, Java EE 6, JDK 7 and deployed on GlassFish 3.1.2.2. Changing the log levels to ALL does not make GlassFish produce more helpful error message. There are other solutions mentioned on the web, including creating an empty, 0-byte beans.xml file and using another application server such as JBoss. I didn’t try JBoss or other app servers, but cannot find what causes the error on Glassfish.

  • 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-06-10T18:16:25+00:00Added an answer on June 10, 2026 at 6:16 pm

    Strangely, the 32-bit JDK running on 64-bit Debian 6 system was causing the error. I have tried every possible relevant and non-relevant thing I could think of, including using the same JDK update, changing /etc/hosts to match the development system, installing NetBeans with bundled Glassfish on the production server (!), using an invalid IP address instead of a valid one, using Oracle Glassfish server instead of the community version, etc. None of them helped. The problem got fixed only after I noticed the 32-bit JDK and replaced it with a 64-bit version.

    The error, its vague reporting and somehow non-relevant cause wasted 5 days of my time. I decided to share my experience, hopefully it helps someone in a similar frustrating situation.

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

Sidebar

Related Questions

I am developing a Java web application in Netbeans IDE 7.1.1 . The IDE
I'm developing java enterprise web application using EJB 3.1 and I wonder which technology
I am developing a Java Enterprise application and I would like to unit test
I'm developing Java application using Eclipse IDE. problem is my PC is every low
I am developing an enterprise application using Spring, Java, JSPs, Tiles, and JQuery. I
i'm developing an application on top of netbeans API using Glassfish 3.1.2. My netbeans
I am using netbeans for developing java dextop application,I have created a JFilechooser which
I´m developing a Java EE application and I'm using Struts. When I use html
I'm developing a java application which will run on LAN, i do test today
i'm developing a java application using the jstun library (hxxp://jstun.javawi.de/), and i need to

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.