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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T11:59:58+00:00 2026-05-25T11:59:58+00:00

I have no idea where ContainerBaCommand is coming from, but here’s my error: I

  • 0

I have no idea where ContainerBaCommand is coming from, but here’s my error:

I first had to add javax.jar (which has the servlet ) class into the C:\JEE6SDKglassfish3\glassfish\lib\endorsed directory, and it gave me a new error, here:

Buildfile: C:\petstore~svn\trunk\ws\apps\petstore\build.xml

check:

tools:

-pre-deploy:

deploy:
     [exec] Deprecated syntax, instead use:
     [exec] asadmin --user admin --passwordfile c:/JEE6SDKglassfish3/glassfish/samples/bp-project/passwordfile --host localhost --port 4848 deploy [options] ...

     [exec] remote failure: Error occurred during deployment: Exception while loading the app : java.lang.IllegalStateException: ContainerBaCommand deploy failed.
     [exec] se.addChild: start: org.apache.catalina.LifecycleException: java.lang.IllegalArgumentException: java.lang.NoClassDefFoundError: javax/servlet/ServletContextListener. Please see server.log for more details.

BUILD FAILED
C:\petstore~svn\trunk\ws\bp-project\app-server-ant.xml:382: exec returned: 1

Total time: 47 seconds

All the files in the setup folder: http://tinyurl.com/3gbb6o4

Edit: Thanks so much Mark!

  • 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-25T11:59:58+00:00Added an answer on May 25, 2026 at 11:59 am

    I think the “ContainerBaCommand” is actually ContainerBase.addChild (these guys had a similar problem). I think sometimes Java standard output and standard errors get all mixed up on the console.

    I assume you are using something like this app-server-ant.xml. Your Ant error seems to be suggesting that the syntax that “asadmin” now uses to deploy your application has changed. I therefore think you need to re-write your deploy task from what it is currently:

    <exec executable="${asadmin}" failonerror="${failonerror}">
      <arg line=" deploy "/>
      <arg line=" --user ${javaee.server.username}" />
      <arg line=" --passwordfile ${javaee.server.passwordfile}" />
      <arg line=" --host ${javaee.adminserver.name}" />
      <arg line=" --port ${javaee.adminserver.port}" />
      <arg line=" --name ${module.name}"/>
      <arg line=" --force=true "/>
      <arg line=" --upload=true "/>
      <arg line=" --precompilejsp "/>
      <arg line=" --dbvendorname ${db.vendorname}"/>
      <arg line="${app.module}" />
    </exec>
    

    to:

    <exec executable="${asadmin}" failonerror="${failonerror}">
      <arg line=" --user ${javaee.server.username}" />
      <arg line=" --passwordfile ${javaee.server.passwordfile}" />
      <arg line=" --host ${javaee.adminserver.name}" />
      <arg line=" --port ${javaee.adminserver.port}" />
      <arg line=" deploy "/>
      <arg line=" --force=true "/>
      <arg line=" --precompilejsp "/>
      <arg line=" --name ${module.name}"/>
      <arg line=" --upload=true "/>
      <arg line=" --dbvendorname ${db.vendorname}"/>
      <arg line="${app.module}" />
    </exec>
    

    I’m surprised that you needed to copy javax.jar (which has the servlet class) into lib endorsed. The Servlet (and ServletContextListener for that matter) are very important classes for an application server. I would expect them to exist in the Glassfish class path already (in Glassfish 3.1 they are in ~glassfish/modules/javax.servlet.jar). I suspect copying your javax.jar into “lib/endorsed” is causing more problems than it would solve.

    I hope this helps.

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

Sidebar

Related Questions

I have idea to write errors from my application to the Windows Event Viewer
Anyone have idea how to pass value from iPhone application to the REST-Webservice using
I missed my workspace in which I was working. Any one have idea about
I have no idea how to pass a value from jtable1 to jtable2 .
I have no idea why this is happening. The error I get is the
In fact I have Idea about the exception handling. But while facing the interview
I have here a subdomain which i wish to pass on. here the example
I have an iphone application which has to support multitasking. But when i open
I need to invoke action on a web service, but i have no idea
I got an problem, im programing an antihack program but i dont have idea

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.