-----Original Message-----
From: Peter White [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 16, 2003 6:18 PM
To: [EMAIL PROTECTED]
Subject: [OS-webwork] Struggling with WebWork2/XWork configuration...I've been struggling with getting WebWork2 running for the last 2 days and am currently stuck with the xwork.xml file not being recognized as evidenced by the following logfile segment:
SEVERE: Could not load XWork configuration file, failing
Sep 16, 2003 3:02:00 PM com.opensymphony.xwork.config.impl.DefaultConfiguration
<init>
SEVERE: Caught ConfigurationException while initializing ConfigurationProvider.
Sep 16, 2003 3:02:00 PM com.opensymphony.webwork.dispatcher.ServletDispatcher se
rvice
SEVERE: Could not execute action
com.opensymphony.xwork.config.ConfigurationException: Error loading configuratio
n file xwork.xml with nested exception java.lang.NullPointerException
at com.opensymphony.xwork.config.providers.XmlConfigurationProvider.init
(XmlConfigurationProvider.java:118)
at com.opensymphony.xwork.config.impl.DefaultConfiguration.reload(Defaul
tConfiguration.java:130)
at com.opensymphony.xwork.config.impl.DefaultConfiguration.<init>(Defaul
tConfiguration.java:48)
at com.opensymphony.xwork.config.ConfigurationManager.getConfiguration(C
onfigurationManager.java:53)
.
.
.My xwork.xml is listed as follows:
<!DOCTYPE xwork PUBLIC
"-//OpenSymphony Group//XWork 1.0//EN"
"http://localhost/fullcircle/xwork-1.0.dtd"
>
<xwork>
<include file="xwork-default.xml"/>
<package name="default" extends="xwork-default">
<action name="formTest" class="net.sf.fullcircle.businesstier.FormAction" method="processForm" >
<result name="success" type="dispatcher">
<param name="location">WEB-INF/success.jsp</param>
</result>
<interceptor-ref name="defaultStack"/>
<interceptor-ref name="token-session"/>
</action>
</package>
</xwork>My xwork.xml and xwork-default.xml both exist in tomcat's WEB-INF/classes directory so I'm assuming they'd be located since they're in the classpath. I'm really starting to get frustrated by this because I know it has to be a simple configuration issue - otherwise, everyone else would be having this problem. Does anyone have any idea what I'm doing wrong?
Thanks in advance!
Peter
Title: Message
When
you say it's in Tomcat's WEB-INF/classes, is this for your webapp, or some
Tomcat directory outside your webapp?
- [OS-webwork] Struggling with WebWork2/XWork configuratio... Peter White
- Re: [OS-webwork] Struggling with WebWork2/XWork con... Patrick Lightbody
- [OS-webwork] Steps towards a truly *generic* Co... James Cook
- [OS-webwork] Xwork Entry Point James Cook
- RE: [OS-webwork] Struggling with WebWork2/XWork con... Jason Carreira
- RE: [OS-webwork] Struggling with WebWork2/XWork con... Jason Carreira
- RE: [OS-webwork] Struggling with WebWork2/XWork... Peter White
- Re: [OS-webwork] Struggling with WebWork2/X... Pat Lightbody
- RE: [OS-webwork] Struggling with WebWor... Peter White
- RE: [OS-webwork] Struggling with WebWork2/XWork con... Jason Carreira
- RE: [OS-webwork] Struggling with WebWork2/XWork con... Jason Carreira