[jboss-dev] Ongoing VFS testing on Branch_5_0

Ales Justin ales.justin at gmail.com
Wed Feb 4 10:37:32 EST 2009


AbstractWarDeployer::deploy has some bad assumptions.

          if (unit instanceof VFSDeploymentUnit)
          {
             VFSDeploymentUnit vfsUnit = (VFSDeploymentUnit)unit;
             URL expWarUrl = vfsUnit.getRoot().toURL();
             if (warName.endsWith("/") == false || 
warName.endsWith("!/") == true) // Hack for jar urls being exposed

This is pretty fragile to check if you need to unpack.

Rémy Maucherat wrote:
> On Wed, Feb 4, 2009 at 4:02 PM, Ales Justin <ales.justin at gmail.com> wrote:
>> I now get this:
>>
>> 15:58:20,468 ERROR [StandardContext] Error starting static Resources
>> java.lang.IllegalArgumentException: Document base
>> C:\projects\branches\jbossas\Branch_5_0\build\output\jboss-5.0.1.GA\server\default\deploy\jboss-seam-booking.ear\jboss-seam-booking.war
>> does not exist or is not a readable directory
> 
> Ok, so Tomcat likes to get an exploded folder in the temp folder ;)
> This used to work like that, so I guess there's a regression, I made
> no changes in the Tomcat deployer. Tomcat could run from VFS too, but
> this would break some stupid legacy features of the Servlet API, that
> are optional but people are still using anyway (getRealPath and
> friends).
> 
> Rémy
> 
> _______________________________________________
> jboss-development mailing list
> jboss-development at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/jboss-development
> 



More information about the jboss-development mailing list