I need to use two different properties files in my struts project and im facing problem while configuring them in web.xml( im following struts 1.0.2 where the properties file configuration is made in web.xml instead of struts-config.xml)
where ABCResources and XYZResources are the names of my two different properites files which i have kept under classes folder.
But the above approach doesnt work and throws xml parsing error during server bootup (unmarshall exception)in weblogic 9.2 , I believe its mainly because of the duplicate 'application' entry.But the same approach worked fine in weblogic 8.1 . Please suggest if there is any work around for weblogic 9.2. Thanks [ July 25, 2008: Message edited by: Siva Ramky ]
In my project i need to use to different properties files and im facing problem while configuring them in web.xml( im following struts 1.0.2 where the properties file configuration is made in web.xml instead of struts-config.xml)
I never used Struts 1.0, but can you put those .propertise files in struts-config file using <message-resources parameter="MessageResources"/> tag and change your dtd definition to this :
I have already tried that approach by moving the properties entries to struts-config .. but there i encountered a different error as shown below..
<Servlet: "action" failed to preload on startup in Web application: "webapp". javax.servlet.UnavailableException: Input/output error reading configuration from resource path /WEB-INF/struts-config.xml at org.apache.struts.action.ActionServlet.init(ActionServlet.java:468) at javax.servlet.GenericServlet.init(GenericServlet.java:256) at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:278) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
This is an age-old project which needs some enhancement now. Still im looking for a workaround.