You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Niklas Herder <he...@dsv.su.se> on 2007/04/03 20:36:07 UTC

Re: struts.xml problem

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

This is due to a bug in xwork2:
https://issues.apache.org/struts/browse/WW-1635?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_39748


Adam Ruggles skrev:
> Can you confirm that you have struts2-core-2.0.6.jar in you lib folder
> and it contains the struts-default.xml file in the root  folder in the
> jar file.
> 
> alex xander wrote:
>> hi, im using struts 2.x
>> and i have some problem here.
>> i  break up my struts.xml into smaller piece
>> when i used struts 2.0.1 it works fine,
>> but when i change into struts 2.0.6 there is some problem
>> and here is the problem
>> my struts.xml
>> <struts>
>>     <include file="struts-default.xml"/>
>>     <package name="default" extends="struts-default">
>>         .......
>>     </package>
>>      <include file="struts-pensiun.xml"/>
>> </struts>
>>
>> struts-pensiun.xml
>>
>> <struts>
>>     <package name="jangkawaktu" extends="default"
>> namespace="/backend/parameter/jangkawaktu">
>>         <action name="create"
>> class="com.bba.parameter.jangkawaktu.actions.JangkaWaktuForm">
>>                 <result name="success" type="velocity">save.vm</result>
>>                 <result name="error"
>> type="velocity">../../error.vm</result>
>>         </action>
>>     </package>
>> </struts>
>>
>> and here is the error
>>
>> [ERROR] ConfigurationUtil - Unable to find parent package default
>> [ERROR] XmlConfigurationProvider - Unable to find parent packages default
>> [ERROR] pensiun] - Exception starting filter struts <Error building
>> results for
>> action save in namespace /backend/parameter/jangkawaktu - action -
>> file:/E:/data
>> %20kerja/tomcat-pensiunan/webapps/pensiun/WEB-INF/classes/struts-pensiun.xml:14:
>>
>> 91>Error building results for action save in namespace
>> /backend/parameter/jangka
>> waktu - action -
>> file:/E:/data%20kerja/tomcat-pensiunan/webapps/pensiun/WEB-INF/
>> classes/struts-pensiun.xml:14:91
>>
>> i can't resolve the problem, why my struts-pensiun.xml can't find the
>> default package.
>>  is there something i miss
>>
>>  
>> ---------------------------------
>> Don't pick lemons.
>> See all the new 2007 cars at Yahoo! Autos.
>>   
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 


- --
Niklas Herder
Stockholms Universitet
Institutionen för data- och systemvetenskap
Forum 100
SE-164 40 KISTA
SWEDEN

+46(0)8-161438

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGEp6W1wuvxhRaYCkRAozSAKDny2qT3IPCDK5Cx25mNgjQA3xD0gCgwwu3
hrWP+gjG4/mvlhIfVozLyrs=
=5eom
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org