[ 
https://issues.apache.org/jira/browse/WICKET-7163?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Daniel Stoch updated WICKET-7163:
---------------------------------
    Description: 
When trying to use AjaxDownloadBehavior in OSGi app ClassNotFoundException is 
raised:
{noformat}
Caused by: java.lang.ClassNotFoundException: javax.servlet.http.Cookie cannot 
be found by org.apache.wicket.extensions_9.21.0
...
{noformat}
The MANIFEST.MF in wicket-extensions module misses some required imports, at 
least:
{noformat}
javax.servlet (used by CharSetUtil)
javax.servlet.http
{noformat}
maybe not only these (?).

The problem I think is because a manifest generation rule in pom, where all 
"java*" packages are excluded. In contrast the similar rule is in wicket-core, 
but "javax.servlet,javax.servlet.http" are included explicite.

*wicket-core*
<osgi.import.package>!java*,!kotlin*,!sun.nio.ch,!com.sun.crypto.provider,org.slf4j*;version="[1.7,3)",javax.servlet,javax.servlet.http,*</osgi.import.package>

*wicket-extensions*
<osgi.import.package>!java*,!kotlin*,!sun.nio.ch,org.slf4j*;version="[1.7,3)",*</osgi.import.package>



  was:
When trying to use AjaxDownloadBehavior in OSGi app ClassNotFoundException is 
raised:
{noformat}
Caused by: java.lang.ClassNotFoundException: javax.servlet.http.Cookie cannot 
be found by org.apache.wicket.extensions_9.21.0
...
{noformat}
The MANIFEST.MF in wicket-extensions module misses some required imports, at 
least:
{noformat}
javax.servlet.http
{noformat}
maybe not only this one (?).

The problem I think is because a manifest generation rule in pom, where all 
"java*" packages are excluded. In contrast the similar rule is in wicket-core, 
but "javax.servlet,javax.servlet.http" are included explicite.

*wicket-core*
<osgi.import.package>!java*,!kotlin*,!sun.nio.ch,!com.sun.crypto.provider,org.slf4j*;version="[1.7,3)",javax.servlet,javax.servlet.http,*</osgi.import.package>

*wicket-extensions*
<osgi.import.package>!java*,!kotlin*,!sun.nio.ch,org.slf4j*;version="[1.7,3)",*</osgi.import.package>




> Missing imports for javax.servlet.http in wicket-extensions
> -----------------------------------------------------------
>
>                 Key: WICKET-7163
>                 URL: https://issues.apache.org/jira/browse/WICKET-7163
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket-extensions
>    Affects Versions: 9.21.0
>            Reporter: Daniel Stoch
>            Priority: Major
>
> When trying to use AjaxDownloadBehavior in OSGi app ClassNotFoundException is 
> raised:
> {noformat}
> Caused by: java.lang.ClassNotFoundException: javax.servlet.http.Cookie cannot 
> be found by org.apache.wicket.extensions_9.21.0
> ...
> {noformat}
> The MANIFEST.MF in wicket-extensions module misses some required imports, at 
> least:
> {noformat}
> javax.servlet (used by CharSetUtil)
> javax.servlet.http
> {noformat}
> maybe not only these (?).
> The problem I think is because a manifest generation rule in pom, where all 
> "java*" packages are excluded. In contrast the similar rule is in 
> wicket-core, but "javax.servlet,javax.servlet.http" are included explicite.
> *wicket-core*
> <osgi.import.package>!java*,!kotlin*,!sun.nio.ch,!com.sun.crypto.provider,org.slf4j*;version="[1.7,3)",javax.servlet,javax.servlet.http,*</osgi.import.package>
> *wicket-extensions*
> <osgi.import.package>!java*,!kotlin*,!sun.nio.ch,org.slf4j*;version="[1.7,3)",*</osgi.import.package>



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to