Pafa中初使化视图分解器异常

10/27 11:00:56 [INFO] DefaultListableBeanFactory: Creating shared instance of singleton bean 'viewResolver'
10/27 11:00:56 [ERROR] DispatcherServlet: Context initialization failed
com.paic.pafa.app.lwc.core.beans.factory.BeanCreationException: PropertyAccessExceptionsException (1 errors); nested propertyAccessExceptions are: [com.paic.pafa.app.lwc.core.beans.TypeMismatchException: Invalid class name [
    com.paic.pafa.app.web.servlet.view.tiles.TilesJstlView
   ]:
    com.paic.pafa.app.web.servlet.view.tiles.TilesJstlView
   ]
PropertyAccessExceptionsException (1 errors)
com.paic.pafa.app.lwc.core.beans.TypeMismatchException: Invalid class name [
    com.paic.pafa.app.web.servlet.view.tiles.TilesJstlView
   ]:
    com.paic.pafa.app.web.servlet.view.tiles.TilesJstlView
   
java.lang.IllegalArgumentException: Invalid class name [
    com.paic.pafa.app.web.servlet.view.tiles.TilesJstlView
   ]:
    com.paic.pafa.app.web.servlet.view.tiles.TilesJstlView
   
 at com.paic.pafa.app.lwc.core.beans.propertyeditors.ClassEditor.setAsText(Ljava/lang/String;)V(ClassEditor.java:36)

该错误代码说的是容器在初使化“viewResolver”失败,可能是由于你将Web-context.xml配制文件进行了格式化,存在空格导制。

格式化之前:

       class="com.paic.pafa.app.web.servlet.view.InternalResourceViewResolver">
   
       com.paic.pafa.app.web.servlet.view.tiles.TilesJstlView
     

 

 

 

 

 

 

格式化之后: 

 

        class="com.paic.pafa.app.web.servlet.view.InternalResourceViewResolver">
   
        
               com.paic.pafa.app.web.servlet.view.tiles.TilesJstlView
        

   

 

 

 

 

 

 

 

 

转载于:https://www.cnblogs.com/dshjava/archive/2008/10/27/1320302.html

你可能感兴趣的:(java)