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

The Archive Base Latest Questions

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

As I continue to investigate using Ant Build Scripts, Spring and Glassfish I have

  • 0

As I continue to investigate using Ant Build Scripts, Spring and Glassfish I have run into another issue when deploying a WAR to Glassfish.

My build script seems to compile and produce a war file correctly, but when I come to deploy it using

<glassfish-deploy force="true" file="${dist.dir}/${name}.war" />

I get the following error message

[glassfish-deploy] remote failure: Error occurred during deployment: Exception while loading the app : java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: org.apache.catalina.LifecycleException: java.lang.ClassNotFoundException: uk.co.crowderconsult.spider.controllers.HelloController. Please see server.log for more details.

Of which I belive the underlying issue is

java.lang.ClassNotFoundException: uk.co.crowderconsult.spider.controllers.HelloController

However, the class that it can’t find is one of the ones I have written and contained within the WAR file. I checked by opening the WAR with winzip and the classfile is within there.

Normally I would figure that I hadn’t included something in the classpath, but
1) the class is in the file I’m trying to deploy so would expect it to be on the classpath anyway and
2) I don’t know how to set the classpath for glassfish’s deploy command.

I’ve also tried to deploy it using the command line asadmin task, and the admin console of glassfish, with the same results.

Can anyone point me in the right direction as I feel like I’m just going round in circles?! If any other information is required please let me know

Many thanks.

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

    When you say “it’s there”, I interpret that to mean there’s a HelloController.class in the WEB-INF/classes folder in the package path uk.co.crowderconsult.spider.controllers. Is that true? If yes, the class loader should find it. If not, that would explain why you have the CNFE.

    You are correct: if your WAR file is constructed properly, you shouldn’t have to do anything else to explain CLASSPATH to the web server.

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

Sidebar

Related Questions

I continue my understanding of MVVC with the code of MSDN and I have
Should developers avoid using continue in C# or its equivalent in other languages to
I have to continue to support VB6 applications. I've got both VB6 (Visual Studio
As I continue to build more and more websites and web applications I am
How to continue from where I have been searching to find the index? I
We continue to build our fairly small applications on Android, iPhone and other mobile
It is like continue getting data from mysql using PHP and simultaneously stream out
Is there any way to have VIM continue to apply formatting to the line
Continue from this topic link text Hi guys. I am using codeigniter and want
I continue to work on a printer for F# quoted expressions, it doesn't have

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.