On 8/30/06, Matt Raible <[EMAIL PROTECTED]> wrote:
I believe this is the correct forum,

Yep.

I had to remove this reference in struts-default.xml for things to work.

Thanks, I removed that in r438570, so don't bother with a ticket.

struts.compatibilityMode.WebWork=true

If you update to the current head, or tomorrow morning's nighly JAR,
you can remove this setting now.


Messages:       The default() is not defined in action class
org.appfuse.webapp.action.FileUploadAction

Is there a default method in that class?

Did that used to map to execute or something in WW? If so, it doesn't
anymore, and we need to add that to the release notes.

-Ted.

On 8/30/06, Matt Raible <[EMAIL PROTECTED]> wrote:
I believe this is the correct forum, but if I should ask 2.0.0
questions on the user mailing list (or in IRC), please let me know.

I was successfully able to upgrade AppFuse from WW 2.2.2 to 2.2.3 w/o
any issues.  I then tried to upgrade to Stuts 2.0.0 (from SVN) and had
the following issues:

1. WARN - XmlConfigurationProvider.verifyResultType(298) | Result
class [org.apache.struts2.views.jasperreports.JasperReportsResult]
doesn't exist (ClassNotFoundException) at result-type -
file:/opt/dev/Tools/jakarta-tomcat-5.0.28/work/Catalina/localhost/appfuse-struts/loader/struts-default.xml:23:108,
ignoring
java.lang.ClassNotFoundException:
org.apache.struts2.views.jasperreports.JasperReportsResult

I had to remove this reference in struts-default.xml for things to work.

Index: struts-default.xml
===================================================================
--- struts-default.xml  (revision 438253)
+++ struts-default.xml  (working copy)
@@ -20,8 +20,6 @@
             <result-type name="plaintext"
class="org.apache.struts2.dispatcher.PlainTextResult" />

             <!-- third party integration -->
-            <result-type name="jasper"
class="org.apache.struts2.views.jasperreports.JasperReportsResult"/>
-
             <result-type name="jsf"
class="org.apache.struts2.jsf.FacesResult" />
         </result-types>

2. When I try to go to
http://localhost:8080/appfuse/uploadFile!default.html, I get the
following error:

Struts Problem Report

The Struts has detected an unhandled exception:
Messages:       The default() is not defined in action class
org.appfuse.webapp.action.FileUploadAction
File:   com/opensymphony/xwork2/DefaultActionInvocation.java
Line number:    337
Stacktraces
java.lang.IllegalArgumentException: The default() is not defined in
action class org.appfuse.webapp.action.FileUploadAction

I have the following in struts.properties:

struts.compatibilityMode.WebWork=true

As well as in FileUploadAction.java, I have:

    public String doDefault() {
        return INPUT;
    }

Am I doing something wrong here?  Should I enter these issues into JIRA?

Thanks,

Matt

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
HTH, Ted.
* http://www.husted.com/struts/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to