Skip to content

Commit fd09691

Browse files
committed
Class loading from ServletContext ocpsoft#228
1 parent 9ccd96f commit fd09691

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎annotations-impl/src/main/java/org/ocpsoft/rewrite/annotation/scan/WebClassesFinder.java‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,13 +174,13 @@ private void handleClassEntry(URL entryUrl, String entryName, ClassVisitor visit
174174
*/
175175
try
176176
{
177-
classFileStream = entryUrl.openStream();
177+
classFileStream = servletContext.getResourceAsStream(entryName);
178178
}
179-
catch (IOException e)
179+
catch (Exception e)
180180
{
181181
if (log.isDebugEnabled())
182182
{
183-
log.debug("Cound not obtain InputStream for class file: " + entryUrl.toString(), e);
183+
log.debug("Cound not obtain InputStream for class file: " + entryName, e);
184184
}
185185
}
186186

0 commit comments

Comments
 (0)