Hi All,

 

While migrating from Struts 1.0.2 to Struts 1.1 (on Weblogic 6.1SP3,
Solaris 6), I am stuck with this problem. This mailing list is now my
last resort.

 

Here is my struts-config.xml

 

<?xml version="1.0" encoding="ISO-8859-1" ?>

<!DOCTYPE struts-config PUBLIC

          "-//Apache Software Foundation//DTD Struts Configuration
1.1//EN"

          "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd";>

 

<!--

     This is the Struts configuration file for the example application,

     using the proposed new syntax.

-->

 

 

<struts-config>

 

  <!-- ========== Form Bean Definitions
=================================== -->

  <form-beans>

<!-- Login form -->

   <form-bean     name="login"

                      type="com.ptc.ams.forms.LogonForm" >

                 <set-property property="username" value="test" />

  </form-bean>      

 

</form-beans>

 

  <!-- ========== Action Mapping Definitions
============================== -->

  <action-mappings>

    <action    path="/logon"

               type="com.ptc.ams.actions.LogonAction"

               name="login"

               input="/src/index.jsp"

               scope="request"

               validate="true">

       <forward name="success" path="/src/jsp/m_index.jsp"/>

       <forward name="failed" path="/src/index.jsp" />

    </action>

 

</struts-config>

 

When I deploy the application, I get following message and application
does not work. If I remove the <set-property .... /> line from the
struts config, it works fine. I am totally lost on this, any help is
appreciated. 

 

javax.servlet.UnavailableException: Parsing error processing resource
path

        at
org.apache.struts.action.ActionServlet.handleConfigException(ActionServl
et.java:1035)

        at
org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionServl
et.java:1014)

        at
org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.ja
va:955)

        at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:470)

        at javax.servlet.GenericServlet.init(GenericServlet.java:258)

        at
weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.
java:713)

        at
weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImp
l.java:656)

        at
weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl
.java:601)

        at
weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServ
letContext.java:2272)

        at
weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebAppSer
vletContext.java:2216)

        at
weblogic.servlet.internal.WebAppServletContext.init(WebAppServletContext
.java:900)

        at
weblogic.servlet.internal.WebAppServletContext.<init>(WebAppServletConte
xt.java:823)

        at
weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:444)

        at weblogic.j2ee.WebAppComponent.deploy(WebAppComponent.java:78)

        at weblogic.j2ee.Application.deploy(Application.java:271)

        at
weblogic.j2ee.J2EEService.deployApplication(J2EEService.java:190)

        at
weblogic.management.mbeans.custom.Application.setLocalDeployed(Applicati
on.java:366)

        at
weblogic.management.mbeans.custom.Application.setDeployed(Application.ja
va:300)

        at java.lang.reflect.Method.invoke(Native Method)

        at
weblogic.management.internal.DynamicMBeanImpl.invokeSetter(DynamicMBeanI
mpl.java:1401)

        at
weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanI
mpl.java:894)

        at
weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanI
mpl.java:847)

        at
weblogic.management.internal.ConfigurationMBeanImpl.setAttribute(Configu
rationMBeanImpl.java:296)

        at
com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java
:1358)

        at
com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java
:1333)

        at
weblogic.management.internal.ConfigurationMBeanImpl.updateConfigMBeans(C
onfigurationMBeanImpl.java:393)

        at
weblogic.management.internal.ConfigurationMBeanImpl.setAttribute(Configu
rationMBeanImpl.java:299)

        at
com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java
:1358)

        at
com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java
:1333)

        at
weblogic.management.internal.MBeanProxy.setAttribute(MBeanProxy.java:322
)

        at
weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:204)

        at $Proxy8.setDeployed(Unknown Source)

        at java.lang.reflect.Method.invoke(Native Method)

        at
weblogic.management.console.info.MBeanAttribute.doSet(MBeanAttribute.jav
a:84)

        at
weblogic.management.console.info.CompositeAttribute.doSet(CompositeAttri
bute.java:100)

        at
weblogic.management.console.actions.mbean.DoEditMBeanAction.perform(DoEd
itMBeanAction.java:135)

        at
weblogic.management.console.actions.internal.ActionServlet.doAction(Acti
onServlet.java:171)

        at
weblogic.management.console.actions.internal.ActionServlet.doPost(Action
Servlet.java:85)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

        at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.
java:265)

        at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.
java:200)

        at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServl
etContext.java:2546)

        at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.
java:2260)

        at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)

        at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)

 

 

Thanks and regards,

Jyothikumar.

Reply via email to