Why a System bundled interface is not visible from a plug-in even it is explicitly imported? [Updated]

Kinto Soft
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 10, 2013

Hi,

My plug-in uses the following interface:

org.apache.jasper.runtime.JspSourceDependent

According to this Atlassian's instructions:

https://developer.atlassian.com/display/DOCS/Managing+Dependencies#ManagingDependencies-UsingContainer-providedPackages

I added the following dependency in the pom.xml:

<dependency>
    <groupId>org.apache.tomcat</groupId>
    <artifactId>jasper</artifactId>
    <version>6.0.20</version>
    <scope>provided</scope>
</dependency>

and imported full package for the latest version:

<instructions>
	<Import-Package>
		org.apache.jasper*;version="0.0.0",
		*;version="0.0.0";resolution:=optional

But I got a java.lang.NoClassDefFoundError!!

Any idea?

Thanks,

Pablo

2 answers

0 votes
Kinto Soft
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 12, 2013

The picture showing the problem

0 votes
Kinto Soft
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 10, 2013

This screenshot shows how while the org.apache.jasper package is exported from the System Bundle, it is DISABLED in the Import-Package section of the plug-in, even with the dependency and the import declared in the pom.xml.

Furthermore, the disabled package has "resolution: optional", but is explicitly declared. How is it possible???

I've included

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events