sangeetha
asked on
To girinois || TimYates :-)
With reference to my previous Q, Please tell me where i am wrong.
----------------
My web.xml
----------------
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<filter>
<filter-name> Filter </filter-name>
<filter-class>de.grassgmbh .kalendart ool.filter s.MyFilter </filter-c lass>
</filter>
<servlet>
<servlet-name>action</serv let-name>
<servlet-class>org.apache. struts.act ion.Action Servlet</s ervlet-cla ss>
<init-param>
<param-name>config</param- name>
<param-value>/WEB-INF/stru ts-config. xml</param -value>
</init-param>
<init-param>
<param-name>debug</param-n ame>
<param-value>3</param-valu e>
</init-param>
<init-param>
<param-name>detail</param- name>
<param-value>3</param-valu e>
</init-param>
<load-on-startup>0</load-o n-startup>
</servlet>
<servlet-mapping>
<servlet-name>action</serv let-name>
<url-pattern>*.do</url-pat tern>
</servlet-mapping>
</web-app>
------------------------
My struts-config.xml
------------------------
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
<struts-config>
<data-sources />
<form-beans >
<form-bean name="filterForm" type="de.grassgmbh.kalenda rtool.form .FilterFor m" />
<form-bean name="registerMaskForm" type="de.grassgmbh.kalenda rtool.form .RegisterM askForm" />
</form-beans>
<global-exceptions />
<global-forwards />
<action-mappings >
<action
attribute="filterForm"
input="/jsp/ManageCapacity /FilterLis t.jsp"
name="filterForm"
path="/filter"
scope="request"
type="de.grassgmbh.kalenda rtool.acti on.FilterA ction"
unknown="false"
validate="false">
<forward
name="success"
path="/jsp/ManageCapacity/ ShowList.j sp"
redirect="true"
contextRelative="false" />
</action>
<action
attribute="registerMaskFor m"
input="/jsp/ManageCapacity /RegisterM askList.js p"
name="registerMaskForm"
path="/registerMask"
scope="request"
type="de.grassgmbh.kalenda rtool.acti on.Registe rMaskActio n"
unknown="false"
validate="false">
<forward
name="reg_success"
path="/jsp/ManageCapacity/ ShowList.j sp"
redirect="true"
contextRelative="false" />
</action>
</action-mappings>
<controller
bufferSize="4096"
debug="0"
locale="false"
nocache="false"
inputForward="false" />
<message-resources null="true" parameter="de.grassgmbh.ka lendartool .resources " />
<plug-in className="org.apache.stru ts.validat or.Validat orPlugIn">
<set-property property="pathnames" value="/WEB-INF/validator- rules.xml, /WEB-INF/v alidation. xml"/>
</plug-in>
</struts-config>
Thanks.
----------------
My web.xml
----------------
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<filter>
<filter-name> Filter </filter-name>
<filter-class>de.grassgmbh
</filter>
<servlet>
<servlet-name>action</serv
<servlet-class>org.apache.
<init-param>
<param-name>config</param-
<param-value>/WEB-INF/stru
</init-param>
<init-param>
<param-name>debug</param-n
<param-value>3</param-valu
</init-param>
<init-param>
<param-name>detail</param-
<param-value>3</param-valu
</init-param>
<load-on-startup>0</load-o
</servlet>
<servlet-mapping>
<servlet-name>action</serv
<url-pattern>*.do</url-pat
</servlet-mapping>
</web-app>
------------------------
My struts-config.xml
------------------------
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
<struts-config>
<data-sources />
<form-beans >
<form-bean name="filterForm" type="de.grassgmbh.kalenda
<form-bean name="registerMaskForm" type="de.grassgmbh.kalenda
</form-beans>
<global-exceptions />
<global-forwards />
<action-mappings >
<action
attribute="filterForm"
input="/jsp/ManageCapacity
name="filterForm"
path="/filter"
scope="request"
type="de.grassgmbh.kalenda
unknown="false"
validate="false">
<forward
name="success"
path="/jsp/ManageCapacity/
redirect="true"
contextRelative="false" />
</action>
<action
attribute="registerMaskFor
input="/jsp/ManageCapacity
name="registerMaskForm"
path="/registerMask"
scope="request"
type="de.grassgmbh.kalenda
unknown="false"
validate="false">
<forward
name="reg_success"
path="/jsp/ManageCapacity/
redirect="true"
contextRelative="false" />
</action>
</action-mappings>
<controller
bufferSize="4096"
debug="0"
locale="false"
nocache="false"
inputForward="false" />
<message-resources null="true" parameter="de.grassgmbh.ka
<plug-in className="org.apache.stru
<set-property property="pathnames" value="/WEB-INF/validator-
</plug-in>
</struts-config>
Thanks.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
When i save the web.xml file, it shows the following error in my 'Console' Window:
16:15:59,300 INFO [TomcatDeployer] undeploy, ctxPath=/KalendarTool, warUrl=file:/C:/Programme/ jboss/serv er/default /deploy/Ka lendarTool .war/
16:15:59,347 INFO [TomcatDeployer] deploy, ctxPath=/KalendarTool, warUrl=file:/C:/Programme/ jboss/serv er/default /deploy/Ka lendarTool .war/
16:15:59,660 INFO [PropertyMessageResources] Initializing, config='org.apache.struts. action.Act ionResourc es', returnNull=true
16:15:59,707 ERROR [Digester] Begin event threw exception
java.lang.reflect.Invocati onTargetEx ception
at sun.reflect.NativeMethodAc cessorImpl .invoke0(N ative Method)
at sun.reflect.NativeMethodAc cessorImpl .invoke(Na tiveMethod AccessorIm pl.java:39 )
at sun.reflect.DelegatingMeth odAccessor Impl.invok e(Delegati ngMethodAc cessorImpl .java:25)
at java.lang.reflect.Method.i nvoke(Meth od.java:32 4)
at org.apache.commons.beanuti ls.Propert yUtils.set SimpleProp erty(Prope rtyUtils.j ava:1789)
// blah...blah............
at org.jboss.deployment.scann er.Abstrac tDeploymen tScanner$S cannerThre ad.run(Abs tractDeplo ymentScann er.java:19 1)
Caused by: java.lang.LinkageError: loader constraints violated when linking org/apache/struts/action/A ctionMappi ng class
at java.lang.Class.forName0(N ative Method)
at java.lang.Class.forName(Cl ass.java:1 41)
at org.apache.struts.config.F ormBeanCon fig.class$ (FormBeanC onfig.java :190)
at org.apache.struts.config.F ormBeanCon fig.setTyp e(FormBean Config.jav a:190)
... 97 more
16:15:59,707 ERROR [ActionServlet] Parsing error processing resource path
java.lang.reflect.Invocati onTargetEx ception
at org.apache.commons.digeste r.Digester .createSAX Exception( Digester.j ava:2540)
at org.apache.commons.digeste r.Digester .createSAX Exception( Digester.j ava:2566)
at org.apache.commons.digeste r.Digester .startElem ent(Digest er.java:12 76)
at org.apache.crimson.parser. Parser2.ma ybeElement (Parser2.j ava:1635)
// blah...blah...
16:15:59,722 INFO [Engine] StandardContext[/KalendarT ool]Markin g servlet action as unavailable
16:15:59,722 ERROR [Engine] StandardContext[/KalendarT ool]Servle t /KalendarTool threw load() exception
javax.servlet.UnavailableE xception: Parsing error processing resource path
at org.apache.struts.action.A ctionServl et.handleC onfigExcep tion(Actio nServlet.j ava:1035)
16:15:59,300 INFO [TomcatDeployer] undeploy, ctxPath=/KalendarTool, warUrl=file:/C:/Programme/
16:15:59,347 INFO [TomcatDeployer] deploy, ctxPath=/KalendarTool, warUrl=file:/C:/Programme/
16:15:59,660 INFO [PropertyMessageResources]
16:15:59,707 ERROR [Digester] Begin event threw exception
java.lang.reflect.Invocati
at sun.reflect.NativeMethodAc
at sun.reflect.NativeMethodAc
at sun.reflect.DelegatingMeth
at java.lang.reflect.Method.i
at org.apache.commons.beanuti
// blah...blah............
at org.jboss.deployment.scann
Caused by: java.lang.LinkageError: loader constraints violated when linking org/apache/struts/action/A
at java.lang.Class.forName0(N
at java.lang.Class.forName(Cl
at org.apache.struts.config.F
at org.apache.struts.config.F
... 97 more
16:15:59,707 ERROR [ActionServlet] Parsing error processing resource path
java.lang.reflect.Invocati
at org.apache.commons.digeste
at org.apache.commons.digeste
at org.apache.commons.digeste
at org.apache.crimson.parser.
// blah...blah...
16:15:59,722 INFO [Engine] StandardContext[/KalendarT
16:15:59,722 ERROR [Engine] StandardContext[/KalendarT
javax.servlet.UnavailableE
at org.apache.struts.action.A
have you tried rebooting tomcat?
ASKER
I doubled the points. I have *many* questions to compete with my points. :-D
Thanks for your wnoderful help so far. :-)
Thanks for your wnoderful help so far. :-)
ASKER
Yeahh.. i tried, but same result :-(
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Please have a look here:
https://www.experts-exchange.com/questions/21098845/Forming-Struts-Form-Form-Bean-Form-Action.html
Thanks.
https://www.experts-exchange.com/questions/21098845/Forming-Struts-Form-Form-Bean-Form-Action.html
Thanks.
ASKER
Any updates on this problem? Are you still getting the same error message?
ASKER
sorry for late...it worked after i restart the application and deployed again. thanks for your help.
:)
ASKER
--------------------------
KalendarTool
|
|____ src
| |
| |___ de.grassgmbh.kalendartool
| | |
| | |____ resources.properties
| |
| |___ de.grassgmbh.kalendartool.
| | |
| | |___ FilterForm.java
| | |___ RegisterMaskForm.java
| |
| |___ de.grassgmbh.kalendartool.
| | |
| | |___ FilterAction.java
| | |___ RegisterMaskAction.java
| |
| |___ de.grassgmbh.kalendartool.
| |
| |___ MyFilter.java
|
|_____ We-Root
|
|____ WEB-INF
| |
| |____ struts-config.xml, web.xml, etc..
|
|____ jsp
|
|____ ManageCapacity
|
|____ FilterList.jsp
|____ RegisterMaskList.jsp
|____ ShowList.jsp
and I have ShowList.jsp as follows:
--------------------------
---------------------- --------------------------
| FilterList.jsp | | RegisterMaskList.jsp |
| | | |
---------------------- --------------------------
--------------------------
| |
| show the list here |
| |
| |
--------------------------