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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T20:00:49+00:00 2026-06-10T20:00:49+00:00

I am trying to set up Spring AOP logging in OSGi bundle which is

  • 0

I am trying to set up Spring AOP logging in OSGi bundle which is deployed in Apache Karaf. This is related to my post here. The answer provided there didn’t help me. If I add maven dependency:

<dependency>
    <groupId>org.aspectj</groupId>
    <artifactId>com.springsource.org.aspectj.weaver</artifactId>
    <version>1.6.2.RELEASE</version>
    <scope>provided</scope>
</dependency>

I have to export a bunch of packages:

org.aspectj.lang.*,
org.aspectj.internal.lang.reflect.*,
org.aspectj.internal.lang.annotation.*,
org.aspectj.runtime.internal.*,
org.aspectj.runtime.*,
org.aspectj.weaver.reflect.*,
org.aspectj.apache.bcel.classfile.*,
org.aspectj.apache.bcel.*,
org.aspectj.bridge.*,
org.aspectj.util.*,
org.aspectj.weaver.*,
com.bea.jvm.*,

While the last one (com.bea.jvm.*) is breaking everything down. When I am trying to start my bundle it gives me the missing requirement error and says that this package is missing. (package=com.bea.jvm). But it is exported. Instead of above maven dependency I have also tried different others but the same issue.

What I am missing here? There aren’t much of information on the internet related to OSGi and AOP. Can someone help me? I’m stuck here…

  • 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-10T20:00:50+00:00Added an answer on June 10, 2026 at 8:00 pm

    Finally I found a solution. I needed to install these bundles:

    install http://repository.springsource.com/ivy/bundles/external/org.aspectj/com.springsource.org.aspectj.runtime/1.6.2.RELEASE/com.springsource.org.aspectj.runtime-1.6.2.RELEASE.jar
    install http://repository.springsource.com/ivy/bundles/external/org.aspectj/com.springsource.org.aspectj.weaver/1.6.2.RELEASE/com.springsource.org.aspectj.weaver-1.6.2.RELEASE.jar
    

    And import org.aopalliance.aop, package into my bundle and everything worked. Also there is no need to export this bunch of (org.aspectj) packages.

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

Sidebar

Related Questions

I am trying to use the Spring AOP for logging purposes. I have set
I am trying to create a logging OSGi bundle, which would be able to
I'm trying to set up the spring AOP example from this page: http://www.javabeat.net/articles/51-introduction-to-springs-aspect-oriented-programminga-4.html I'm
I have an OSGi bundle deployed on Apache Karaf . I have a simple
Trying to set up a new spring project and im having this issue where
I am trying to set up Spring AOP without any XML and wonder how
I'm trying to set up spring security, I have a controller which forwards to
We're trying to set up Spring-Test-MVC for our Spring-MVC web app. We started out
I am trying to set up a Spring project without Maven. My project has
I'm trying to set up a Spring JPA Hibernate simple example WAR for deployment

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.