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

  • Home
  • SEARCH
  • 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 624551
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T19:12:46+00:00 2026-05-13T19:12:46+00:00

I do have the home html file, when I give the context root http://localhost:8080/ccc

  • 0

I do have the home html file, when I give the context root http://localhost:8080/ccc the html file automatically loaded in browser. In the html file I have five links, each contains the ,
link in this format,
<a href="servlet_alias_name">Title</a> ,

when I click on the any one of the link, it says servlet_name not found…is it not possible to navigate from html to servlet via “a href” tag?

I’m using Sun Java App Server8.0, I have included the libraries too while deploying..

And It shows the following exception,

javax.servlet.ServletException: Error instantiating servlet class pagesvsnodes
    org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:189)
    com.sun.enterprise.web.connector.grizzly.ProcessorTask.doProcess(ProcessorTask.java:604)
    com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:475)
    com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:371)
    com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:264)
    com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:281)
    com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:83)
root cause

java.lang.NoClassDefFoundError: org/jfree/data/general/PieDataset
    java.lang.Class.getDeclaredConstructors0(Native Method)
    java.lang.Class.privateGetDeclaredConstructors(Class.java:2328)
    java.lang.Class.getConstructor0(Class.java:2640)
    java.lang.Class.newInstance0(Class.java:321)
    java.lang.Class.newInstance(Class.java:303)
  • 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-13T19:12:46+00:00Added an answer on May 13, 2026 at 7:12 pm

    If the servlet_alias_name is defined as a url-mapping in the deployment descriptor (/WEB-INF/web.xml) for your web application you should be able to access the servlet in this way. My guess is you haven’t defined a URL mapping and are trying to use the servlet-name element directly, which won’t work.

    For example, the following snippet would map the servlet class com.mycompany.SuperServlet to the logical name myServlet, then map the URL http://localhost:8080/ccc/servlet-alias-name to the logical name myServlet too. That would make requests to that URL invoke that servlet class.

    <servlet>
      <servlet-name>myServlet</servlet-name>
      <servlet-class>com.mycompany.myservlets.SuperServlet</servlet-class>
    </servlet>
    
    <servlet-mapping>
      <servlet-name>myServlet</servlet-name>
      <url-pattern>/servlet_alias_name</url-pattern>
    </servlet-mapping>
    

    Update – OK scratch all that.

    Your problem is that your webapp can’t find the org.jfree.data.general.PieDataset class at runtime, although it was there when the code was compiled, check the javadoc for NoClassDefFoundError.

    Have you included the libs in the deployed webapp?

    • as a jar in /WEB-INF/lib
    • as classes in /WEB-INF/classes

    Or are the libs supposed to be deployed and available globally on the appserver?

    Do you have the same versions of the libs in your build environment and in your runtime env?

    To debug this error when I’ve seen it on Tomcat, I go to the simple case (deploy jar with webapp) and try to get that to work. I’ve never found any particularly useful tooling for debugging this situation to be honest – anyone know of anything that helps?

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

Sidebar

Ask A Question

Stats

  • Questions 419k
  • Answers 419k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Take a look at the DrawItem event for the ComboBox.… May 15, 2026 at 10:16 am
  • Editorial Team
    Editorial Team added an answer No. This type of feature is not supported by the… May 15, 2026 at 10:16 am
  • Editorial Team
    Editorial Team added an answer In your ViewModel try doing this: public class LoginVM {… May 15, 2026 at 10:16 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.