[weld-issues] [JBoss JIRA] (WELD-617) Can not find beans when deploying compressed Archive to Tomcat

Ales Justin (Updated) (JIRA) jira-events at lists.jboss.org
Tue Nov 15 04:20:41 EST 2011


     [ https://issues.jboss.org/browse/WELD-617?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ales Justin updated WELD-617:
-----------------------------

    Fix Version/s: 1.1.4.Final
                       (was: 1.2.0.Beta1)

    
> Can not find beans when deploying compressed Archive to Tomcat
> --------------------------------------------------------------
>
>                 Key: WELD-617
>                 URL: https://issues.jboss.org/browse/WELD-617
>             Project: Weld
>          Issue Type: Bug
>          Components: Servlet Container Support
>    Affects Versions: 1.0.1.Final
>            Reporter: Aslak Knutsen
>            Assignee: Ales Justin
>            Priority: Minor
>             Fix For: 1.1.4.Final
>
>
> When deploying a compressed Archive on Tomcat, WebAppBeanDeploymentArchive.scan fails to find and classes.
> In WebAppBeanDeploymentArchive.scan we try to get the File object representation of the WEB-INF/classes directory so we can recursively scan for classes, but in Tomcat this is a URL to jndi backed by a DirContext.
> WebAppBeanDeploymentArchive.scan 
> { // inside scan
>   File webInfClasses = Servlets.getRealFile(servletContext, WEB_INF_CLASSES);
>   { // inside getRealFile
>     String realPath = servletContext.getRealPath(path);
>     realPath == null
>     URL resourcePath = servletContext.getResource(path);
>     resourcePath == jndi:/localhost/test/WEB-INF/classes
>   }
>   webInfClasses == null
> }
> End result is no classes are found.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the weld-issues mailing list