[GLASSFISH-20593] [osgi-web] Regression - Unable to locate static and dynamic resources from WAB fragments Created: 30/May/13  Updated: 19/Sep/14  Resolved: 17/Jun/13

Status: Resolved
Project: glassfish
Component/s: OSGi-JavaEE
Affects Version/s: 4.1
Fix Version/s: 4.1

Type: Bug Priority: Critical
Reporter: Sanjeeb Sahoo Assignee: Sanjeeb Sahoo
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to GLASSFISH-20386 Deployment is slow because of WebappC... Resolved

 Description   

This is caused by a recent fix to WebappClassLoader while fixing GLASSFISH-20386. Resources from WEB-INF/lib/*.jar/META-INF/resources/ are no longer searched using getMetainfResources(). Instead, a new class called WebDirContext has been introduced which handled resource lookup from such jars in an optimized way. Currently, OSGi web container uses FileDirContext which needs to be changed a WebDirContext to get things working. I have a fix that works, but unfortunately there is no promoted 4.0.1 builds available in maven repository for us to compile against. This is needed because WebDirContext is newly introduced. This will also make the next version of osgi-web-container backward incompatible with glassfish 3.x releases.



 Comments   
Comment by TangYong [ 30/May/13 ]

>but unfortunately there is no promoted 4.0.1 builds available in maven repository for us to compile against.
For me, building from trunk behind proxy has made me very puzzle, so, I wish to have a promoted 4.0.1-bxxx available in maven repo very much.

Comment by Sanjeeb Sahoo [ 17/Jun/13 ]

Sending osgi-web-container/RELEASENOTE.txt
Sending osgi-web-container/pom.xml
Sending osgi-web-container/src/main/java/org/glassfish/osgiweb/OSGiWebDeploymentContext.java
Adding osgi-web-container/src/main/java/org/glassfish/osgiweb/OSGiWebDirContext.java
Sending osgi-web-container/src/main/java/org/glassfish/osgiweb/OSGiWebModuleDecorator.java
Transmitting file data .....
Committed revision 62225.

I have released osgi-web-container:2.0.0. Once it's integrated with gf trunk, we will resolve this issue.

Comment by Sanjeeb Sahoo [ 17/Jun/13 ]

integrated osgi-web-container:2.0.0 in svn #62234.

Generated at Sat Feb 28 00:34:52 UTC 2015 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.