[ 
https://issues.apache.org/jira/browse/WW-3486?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12922955#action_12922955
 ] 

Hugo Robayo commented on WW-3486:
---------------------------------

I modify struts.convention.exclude.packages constant name trying to fix this 
issue without successful result.


<!DOCTYPE struts PUBLIC 
        "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
        "http://struts.apache.org/dtds/struts-2.0.dtd";>
<struts>
        
        
        <!-- Include webwork default (from the Struts JAR). -->
        <include file="struts-default.xml"/>
        
        <constant name="struts.objectFactory.spring.autoWire" value="auto" />

    <!-- SOLO PARA DESARROLLO -->
    <constant name="struts.devMode" value="true" />
    <constant name="struts.convention.classes.reload" value="true" /> 
    
    
    <!-- Convention configuration -->
    <constant name="struts.convention.result.path" value="/WEB-INF/jsp" />
    <constant name="struts.convention.exclude.packages" 
value="org.apache.struts.*,org.apache.struts2.*,org.springframework.web.struts.*,org.springframework.web.struts2.*,org.hibernate.*,ec.gov.dirnea.common.*"
 />
        
        
</struts>


> NullPointerException on struts initialization 
> ----------------------------------------------
>
>                 Key: WW-3486
>                 URL: https://issues.apache.org/jira/browse/WW-3486
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Plugin - Convention
>    Affects Versions: 2.1.8.1, 2.2.1
>         Environment: Tomcat 5.5.26 jdk 1.6.0_01-b06 struts 2.2.1
>            Reporter: Hugo Robayo
>            Assignee: Lukasz Lenart
>            Priority: Blocker
>         Attachments: struts.xml
>
>
> When migrate from 2.1.8.1 to 2.2.1 the same project fails in initialization, 
> in the convention plugin PackageBasedconfigBuilder method buildconfiguration 
> line 592 it seems the method getPackge() return null. I solve the  problem 
> replace convention-plugin 2.2.1 for 2.1.8.1.
> I dont make extensive test but works fine replacing the library.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to