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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T16:17:16+00:00 2026-05-25T16:17:16+00:00

I created a Bundle in Eclipse, and used the Launch the Framework link for

  • 0

I created a Bundle in Eclipse, and used the “Launch the Framework” link for the “Overview” tab. I have created an interface (TestService) in my bundle, and code that should generate a proxy for it (in Helper). I call this code in the Activator of the Bundle, and get:

Caused by: javassist.NotFoundException: com.test.services.TestService
at javassist.ClassPool.get(ClassPool.java:436)
at com.test.services.Helper.get(Helper.java:46)

It throws right at the first ClassPool.get():

ClassPool pool = ClassPool.getDefault();
CtClass result = pool.get(TestService.class.getName());
...

TestService is public and in the same package, and Bundle, as the Helper, which generates the Exception. Obviously, it’s not good enough to just do “ClassPool.getDefault()”. So what do I need to do so that ClassPool sees the classes inside the Bundle? Do I have to import my own packages?

  • 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-25T16:17:16+00:00Added an answer on May 25, 2026 at 4:17 pm

    I use javassist in some OSGi bundles to modify/generate Java classes on the fly. You can just look here. Hope it helps you.

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

Sidebar

Related Questions

I have a Java application. I created a OSGi bundle and in Activator.start i
I'm trying to combine Eclipse RCP with RMI. For that purpose I created six
I have got an app that saves audio on sd card. I've created a
I have an application that uses org.eclipse.jface.preference.FieldEditorPreferencePage in order to create preference pages. During
I have created a settings bundle with a single preference value, a text field
I created a single page (with code behind .vb) and created Public intFileID As
I am trying to to build a Felix bundle in Eclipse. This basically includes
I've created one main bundle in which one I've installed the equinox p2. Then
I created an eclipse run configuration for a number of bundles. One of the
here I uploaded my Android project made in Eclipse. The idea is that i

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.