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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T15:52:23+00:00 2026-06-02T15:52:23+00:00

I am writing a utility jar file to be shared into multiple project. Basically

  • 0

I am writing a utility jar file to be shared into multiple project. Basically it handles establishing database connection and making calculations and later return the values. Other projects will import my jar file and call my function.

Right now i am having problem when i tried to call one of the functions in the jar file.In eclipse there are no compile error but as i test it at app server i receives this error

22:16:35,177 DEBUG ExecutionContext:187 - Transitioning to lifecycle stage RequestComplete
22:16:35,178  WARN DefaultExceptionHandler:94 - Unhandled exception caught by the Stripes default exception handler.
net.sourceforge.stripes.exception.StripesServletException: ActionBean execution threw an exception.
    at net.sourceforge.stripes.controller.DispatcherServlet.service(DispatcherServlet.java:183)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    at net.sourceforge.stripes.controller.StripesFilter.doFilter(StripesFilter.java:247)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:185)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:151)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:405)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:269)
    at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:515)
    at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:302)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NoClassDefFoundError: com/my/rnd/test/utils/SimplePing
    at com.app.action.JbpmProcessInstanceActionBean.testTrigger(JbpmProcessInstanceActionBean.java:83)
    at com.app.action.JbpmProcessInstanceActionBean.loadProcInstanceList(JbpmProcessInstanceActionBean.java:72)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)

I export the jar file using eclipse and here’s the sample function of the SimplePing

public class SimplePing {

     /**
      * @param args
      */
     public  void testSimplePing() {
        // TODO Auto-generated method stub
        System.out.println("This is a simple ping .");
     }

}

It seems that the appserver unable to find my class even to it exists in the jar file.Any help is welcomed

  • 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-02T15:52:25+00:00Added an answer on June 2, 2026 at 3:52 pm

    If you look closely to the error stack you can see the following:

    Caused by: java.lang.NoClassDefFoundError: com/my/rnd/test/utils/SimplePing

    Which is a common error when you have one of the following conditions:

    1. You have a jar(s) missing in your lib
    2. You have some jar(s) missing from your classpath
    3. You have some dependencies missing from your MANIFEST file:

      ...
      Main-Class: fully.qualified.MainClass
      Class-Path: lib/dependency1-X.Y.jar lib/dependency2-W.Z.jar
      ...

    4. You have a JDK problem

    Eventually all connect to the same problem: A missing jar ( JDK or third-party related jar)
    You can also use maven plugin for eclipse which will manage your dependancies of your current project and your jarable one which is needed by your project, ofcourse if you are fond of Maven.

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

Sidebar

Related Questions

I find myself writing file and directory utility functions all the time, and I
I'm writing a utility that takes in a .resx file and creates a javascript
I'm writing an utility function that gets a integer from the database and returns
I'm writing a simple rc4 encryption/decryption utility as a first project. I'm stuck on
I'm writing a utility in C# that will make managing multiple Mercurial repositories easier
Writing a file utility to strip out all non-ASCII characters from files. I have
I'm writing a utility to count the lines in a given file via the
I am writing a utility that will zip a file (or set of files)
I'm writing a little utility that starts with selecting a file, and then I
I'm writing a utility program with C# in WPF that allows users to create

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.