Error with struts 2 framwork in netbeans project

253 views
Skip to first unread message

khushal barvaliya

unread,
Oct 6, 2009, 3:02:17 AM10/6/09
to indijava

how to solve exception package com.opensymphony.xwork2 does not exist in netbeans project for
struts 2 fram work


--
Thanks & Regards,
Khushal Barvaliya
B.E. (Comp.)
Miocraft Technology, Rajkot.
E-mail:khushal.ba...@gmail.com

Vatsal Parekh

unread,
Oct 6, 2009, 4:59:05 AM10/6/09
to indi...@googlegroups.com
Hi Khushal how are you?
I am Vatsal (Vishal's friend).
Just google about that package "com.opensymphony.xwork2" then just find JAR which contains
that package and just download and include it in your project's
"<%PROJECT-PATH%>/WEB-INF/lib" folder.

links :

khushal barvaliya

unread,
Oct 6, 2009, 6:48:44 PM10/6/09
to indijava
struts.xml file code

error ocured at browser like requested Resources is not available with struts 2 application in netbeans


<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd ">
<struts>
    <include file="struts-default.xml"/>
    <package name="Struts2Example" extends="struts-default">
       <action name="entername">
           <result>/nameinput.jsp</result>
       </action>
       <action name="sayhellow" class="Struts2Example.Hello">
           <result name="input" >../nameinput.jsp</result>
           <result>/response.jsp</result>

       </action>
    </package>
</struts>

khushal barvaliya

unread,
Oct 7, 2009, 9:31:33 AM10/7/09
to indijava

javax.servlet.ServletException: java.lang.IncompatibleClassChangeError: Found interface com.opensymphony.xwork2.util.ValueStackFactory
class was expected
how to solve this error in struts 2 netbeans

Vatsal Parekh

unread,
Oct 10, 2009, 3:52:06 AM10/10/09
to indi...@googlegroups.com
Hi Khushal , good noon. Just handle the "your xml file" properly don't put it directly to the browser request instead it, parse it properly either by javascript or java. This problem occurs generally due to direct availability of an xml file in response of the request sent by browser to the server.
Reply all
Reply to author
Forward
0 new messages