5 Replies Latest reply on Jan 28, 2016 8:18 AM by Sampada Wagde

    JBoss 7.0.2 + Spring 3.1.1 ::: ClassNotFoundException: org.jboss.virtual.VFS

    Ranendra Das Newbie

      Hello,


      I am doing an assignment with heavy uses of Spring MVC portlet with annotation and all these latest features of spring, I already developed few portlets.

      But there is a problem, that every portlet has got its own Spring Jar files, ideally I want only one spring jar file and which will used by all the portlets across LR+JBoss.


      Now I created a framework, but I run my portlets with Annotation related mapping - I get exception


      <!-- Scans the classpath of this application for @Components to deploy as beans -->

      <context:component-scan base-package="com.se.oneprm" />

      <!-- Configures the @Controller programming model -->

      <mvc:annotation-driven />


      gives me - "Caused by: java.lang.ClassNotFoundException: org.jboss.virtual.VFS from [Module "org.spring.portal:main" from local module loader @9f671b (roots: C:\Apps\Liferay\Liferay-6.1.0\jboss-7.0.2\modules)]"

       

      I kept all my spring jars in org/spring/portal/main folder.

       

       

      But if I put direct Controller mapping then its ok? Basically annotation is not working. How can I make it work


      I want only one location of Spring jars inside Liferay-JBOSS which will be used all the portlets.


      Let me know if anyone has got any solution.


      Thanks,

      RD