Title: Message
What's the path to your Tomcat? Does it have a space in it?
 
Is your xwork.xml all lowercase, or is it Xwork.xml?
 
grasping at straws....
-----Original Message-----
From: Peter White [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 17, 2003 12:18 AM
To: [EMAIL PROTECTED]
Subject: RE: [OS-webwork] Struggling with WebWork2/XWork configuration...

It's located in /tomcat/webapps/myapp/WEB-INF/classes. Regarding Patrick's suggestion, the jar files are only located in my application's WEB-INF/lib and not in Tomcat's common/lib directory.


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jason Carreira
Sent: Tuesday, September 16, 2003 8:40 PM
To: [EMAIL PROTECTED]
Subject: RE: [OS-webwork] Struggling with WebWork2/XWork configuration...

When you say it's in Tomcat's WEB-INF/classes, is this for your webapp, or some Tomcat directory outside your webapp?
-----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

Reply via email to