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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T15:25:16+00:00 2026-06-11T15:25:16+00:00

I have this very odd problem with Java (using Eclipse as IDE). I’m working

  • 0

I have this very odd problem with Java (using Eclipse as IDE). I’m working on an EJB & Servlet assignment and I exported the EJB interface & helper classes as a JAR file. When I import the JAR into the Servlet project, I can’t access one of the public methods. I tested the JAR file by starting another project and I can access all the helper class’s public methods in the JAR.

The key difference between the Servlet project and the tester project is that the Servlet project was using an older version of the JAR. I added 1 new public method and re-export & re-import the JAR and the problem persisted.

package helper;

public class RespCodeType {

private String code,msg,output;

public RespCodeType()
{
    code = "";
    msg = "";
    output ="";
}

public String getCode() {
    return code;
}

public void setCode(String code) {
    this.code = code;
}

public String getMsg() {
    return msg;
}

public void setMsg(String msg) {
    this.msg = msg;
}

public String getOutput() {
    setOutput(new String("Result: " + code + ". " + msg + "."));
    return output;
}

public void setOutput(String output) {
    this.output = output;
}
}

I added the “output” getter & setter but for some reason it just won’t access it when I export & import the modified JAR.

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

    It turns out that I imported the JAR incorrectly. I initially placed a copy of the JAR under WEB-INF/lib which conflicted with the later import which I simply copied to the workspace directory and added to build path. Once I deleted the JAR from WEB-INF/lib the problem is resolved.

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

Sidebar

Related Questions

This is my first question on S.O. I have a very odd problem. Below
I'm using Django's message framework, and I have a very odd problem where my
Very odd problem as this is working perfectly on our old Classic ASP site.
Today I ran into a very odd problem using Javascript's prototype and the this
This is very odd. I have never had this issue with ShowDialog in C#.
I have this very simple example that I am using to learn structs in
I have this very straight forward question regarding Thread and Timer classes in Java
I have a very odd problem. A class property is mysteriously reset between method
We have a very odd problem here with SVN. Let me first explain the
I am having a very strange problem, I have this file for User#show view:

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.