8 Replies Latest reply on Nov 12, 2009 8:27 AM by longbeach

    Struts 2.1.8 and JBoss 5.1.0 GA jdk6: VFS error

    longbeach

      Hi,

      I got this error when trying to deploy my EAR application :

      5:17:32,154 INFO [BeanSelectionProvider] Loading global messages from messages
      15:17:35,182 INFO [ResolverUtil] Scanning for classes in [/K:/ENI/DeveloppementEJB3/jboss-5.1.0.GA.jdk6/server/default/deploy/VenteEnLigne.ear/VenteEnLigneWebStruts2.war/WEB-INF/classes/com/eni/dvtejb/clientStruts2/action/] matching criteria: org.apache.struts2.config.ClasspathPackageProvider$1@16867a4
      15:17:35,182 ERROR [ResolverUtil] Could not search jar file 'K:\ENI\DeveloppementEJB3\jboss-5.1.0.GA.jdk6\server\default\deploy\VenteEnLigne.ear\VenteEnLigneWebStruts2.war\WEB-INF\classes\com\eni\dvtejb\clientStruts2\action' for classes matching criteria: org.apache.struts2.config.ClasspathPackageProvider$1@16867a4 due to an IOException
      java.io.FileNotFoundException: K:\ENI\DeveloppementEJB3\jboss-5.1.0.GA.jdk6\server\default\deploy\VenteEnLigne.ear\VenteEnLigneWebStruts2.war\WEB-INF\classes\com\eni\dvtejb\clientStruts2\action (The system cannot find the path specified)
       at java.io.FileInputStream.open(Native Method)
       at java.io.FileInputStream.<init>(Unknown Source)
       at com.opensymphony.xwork2.util.ResolverUtil.loadImplementationsInJar(ResolverUtil.java:407)
       at com.opensymphony.xwork2.util.ResolverUtil.findInPackage(ResolverUtil.java:350)
      
      


      Is has already been reported in the Strus forum :
      https://issues.apache.org/struts/browse/WW-2948 (Struts 2.1.6)
      http://jira.opensymphony.com/browse/XW-678 (Struts 2.1.6)

      Apparently it is due to the Virtual File System in JBoss.

      Of course the folder exists and the classes are there.
      This is the filter i use in web.xml :
      <filter>
       <filter-name>struts2</filter-name>
       <filter-class>
       org.apache.struts2.dispatcher.FilterDispatcher
       </filter-class>
       <init-param>
       <param-name>actionPackages</param-name>
       <param-value>com.eni.dvtejb.clientStruts2.action</param-value>
       </init-param>
       </filter>
      


      I am stuck. Any work around ? Thanks.