ops4j / org.ops4j.pax.web

OSGi R7 Http Service, Whiteboard and Web Applications (OSGi CMPN Release chapters 102, 140 and 128) implementation using Jetty 9, Tomcat 9 or Undertow 2.
https://ops4j1.jira.com/wiki/display/paxweb/Pax+Web
Other
144 stars 183 forks source link

Cannot import org.apache.jasper.compiler, org.apache.jasper.el and org.apache.el [PAXWEB-199] #530

Closed ops4j-issues closed 13 years ago

ops4j-issues commented 14 years ago

lu4242N created PAXWEB-199

I'm trying to use pax web to run myfaces and I have seen this packages are not exported. This cause problems with JSF because instances of classes on this packages are Serialized and then restored, so if the package is not exported a ClassCastException is thrown. The file osgi.bni should look like this:

Export-Package:\
$ {bundle.namespace}

; version="$ {pom.version}

",\
javax.el.*; version="2.1.0",\
javax.servlet.jsp; version="2.1.0",\
javax.servlet.jsp.el; version="2.1.0",\
javax.servlet.jsp.resources; version="2.1.0",\
javax.servlet.jsp.tagext; version="2.1.0",\
org.apache.jasper.compiler; version="6.0.18",\
org.apache.jasper.el; version="6.0.18",\
org.apache.el; version="6.0.18"

Thanks


Affects: 0.7.2 Fixed in: 0.8.0 Votes: 0, Watches: 0

ops4j-issues commented 13 years ago

Achim Nierbeck commented

I created a branch at github:

http://github.com/ops4j/org.ops4j.pax.web/tree/webSecureContext

this fix is also contained within this branch

ops4j-issues commented 13 years ago

Achim Nierbeck commented

is fixed and can be found in the master branche at github
http://github.com/ops4j/org.ops4j.pax.web