6 Replies Latest reply on Apr 10, 2008 11:33 PM by 629225

    JDev 11g Technical Preview 3 struts-config.xml <set-property> does not work

    628613
      Hello,

      <set-property property="application" value="AppModule"/> it gives me Parsing error,

      404 Not Found

      Servlet error: Parsing error processing resource path /WEB-INF/struts-config.xml

      If I comment that line, my application works fine.

      Is this a bug ?? or something wrong in

      my struts-config.xml

      <?xml version="1.0" encoding="windows-1252" ?>
      <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN" "http://struts.apache.org/dtds/struts-config_1_2.dtd">
      <struts-config>
      <action-mappings>
      <action path="/showTreeAction" type="view.ShowTreeAction" input="/showTree.jsp">
      <set-property property="application" value="ODMenuAppModule" id="od"/>
      <forward name="success" path="/showTree.jsp"/>
      </action>

      </action-mappings>
      <controller locale="true" processorClass="oracle.jbo.html.struts11.BC4JRequestProcessor" contentType="text/html;charset=windows-1252"/>
      <message-resources parameter="view.ApplicationResources"/>
      </struts-config>

      Thank you all
        • 1. Re: JDev 11g Technical Preview 3 struts-config.xml <set-property> does not work
          629225
          Did you figure out this problem?

          I am having the same issue.

          Thank you in advance
          • 2. Re: JDev 11g Technical Preview 3 struts-config.xml <set-property> does not work
            629225
            does anyone have a solution for this?

            why <set-property> does not work,

            404 Not Found

            Servlet error: Parsing error processing resource path /WEB-INF/struts-config.xml

            Thank you
            • 3. Re: JDev 11g Technical Preview 3 struts-config.xml <set-property> does not work
              629225
              is it a paser issue ? or is it something else, please help

              thank you,
              • 4. Re: JDev 11g Technical Preview 3 struts-config.xml <set-property> does not work
                629225
                my 10.1.3.3.0 struts-config.xml is using 1.1

                <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN" "http://struts.apache.org/dtds/struts-config_1_1.dtd">

                and JDeveloper11g when you create a new struts-config.xml uses 1.2

                <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN" "http://struts.apache.org/dtds/struts-config_1_2.dtd">

                but regardless of that <set-property> does not work in JDeveloper 11g

                for some reason it does not like that tag in struts-config.xml

                is it DTD isssue ?
                is it a project configuration issue ?
                is it a parser issue ?

                please point me in right direction, I need to make this thing working under 11g

                Thank you all for your time

                Hardik
                • 6. Re: JDev 11g Technical Preview 3 struts-config.xml <set-property> does not work
                  629225
                  Now, this is interesting, trying to make NEW simple struts app that user <set-property> tag on different windows xp machine, If I comment that out my application works fine

                  javax.servlet.UnavailableException: Parsing error processing resource path /WEB-INF/struts-config.xml
                       at org.apache.struts.action.ActionServlet.handleConfigException(ActionServlet.java:769)

                       at org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionServlet.java:745)
                       at org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:687)
                       at org.apache.struts.action.ActionServlet.init(ActionServlet.java:333)
                       at javax.servlet.GenericServlet.init(GenericServlet.java:241)
                       at com.evermind.server.http.HttpApplication.loadServlet(HttpApplication.java:2674)
                       at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:5162)
                       at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:5085)
                       at com.evermind.server.http.HttpApplication.initPreloadServlets(HttpApplication.java:5275)
                       at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.java:1357)
                       at com.evermind.server.http.HttpApplication.init(HttpApplication.java:873)
                       at com.evermind.server.http.HttpApplication.<init>(HttpApplication.java:699)
                       at com.evermind.server.ApplicationStateRunning.getHttpApplication(ApplicationStateRunning.java:502)
                       at com.evermind.server.Application.getHttpApplication(Application.java:778)
                       at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.doCreateHttpApplicationFromReference(HttpSite.java:2315)
                       at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.createHttpApplicationFromReference(HttpSite.java:2295)
                       at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.createHttpApplicationFromReference(HttpSite.java:2284)
                       at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.getHttpApplication(HttpSite.java:2212)
                       at com.evermind.server.http.HttpSite.getApplication(HttpSite.java:475)
                       at com.evermind.server.http.HttpRequestHandler.resolveApplication(HttpRequestHandler.java:565)
                       at com.evermind.server.http.HttpRequestHandler.initRequest(HttpRequestHandler.java:372)
                       at com.evermind.server.http.HttpRequestHandler.serveOneRequestOpen(HttpRequestHandler.java:283)
                       at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:162)
                       at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:149)
                       at oracle.oc4j.network.ServerSocketReadHandler$ClientRunnable.run(ServerSocketReadHandler.java:275)
                       at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:237)
                       at oracle.oc4j.network.ServerSocketAcceptHandler.access$800(ServerSocketAcceptHandler.java:29)
                       at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:877)
                       at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
                       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
                       at java.lang.Thread.run(Thread.java:595)
                  Apr 10, 2008 7:28:04 PM com.evermind.server.ServerBase log
                  WARNING: TestStruts-ViewController-webapp: Servlet error
                  javax.servlet.UnavailableException: Parsing error processing resource path /WEB-INF/struts-config.xml
                       at org.apache.struts.action.ActionServlet.handleConfigException(ActionServlet.java:769)
                       at org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionServlet.java:745)
                       at org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:687)
                       at org.apache.struts.action.ActionServlet.init(ActionServlet.java:333)
                       at javax.servlet.GenericServlet.init(GenericServlet.java:241)
                       at com.evermind.server.http.HttpApplication.loadServlet(HttpApplication.java:2674)
                       at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:5162)
                       at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:5085)
                       at com.evermind.server.http.HttpApplication.getRequestDispatcher(HttpApplication.java:3248)
                       at com.evermind.server.http.HttpRequestHandler.doResolveRequestDispatcher(HttpRequestHandler.java:1005)
                       at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:822)
                       at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:646)
                       at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:614)
                       at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:405)
                       at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:168)
                       at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:149)
                       at oracle.oc4j.network.ServerSocketReadHandler$ClientRunnable.run(ServerSocketReadHandler.java:275)
                       at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:237)
                       at oracle.oc4j.network.ServerSocketAcceptHandler.access$800(ServerSocketAcceptHandler.java:29)
                       at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:877)
                       at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
                       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
                       at java.lang.Thread.run(Thread.java:595)
                  [SDOMDoc]: Parse Error.

                  Never seen SDOMDoc before....

                  But, it does not work thats for sure, please somebody help here

                  one of the simplest struts-config.xml -

                  <?xml version="1.0" encoding="windows-1252" ?>
                  <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN" "http://struts.apache.org/dtds/struts-config_1_2.dtd">
                  <struts-config>
                  <action-mappings>
                  <action path="/showData" type="view.ShowDataAction">
                  <set-property property="application" value="value0" />
                  <forward name="success" path="/showData.jsp"/>
                  </action>
                  </action-mappings>
                  <message-resources parameter="view.ApplicationResources"/>
                  </struts-config>

                  except for <set-property> tag everthing is created by JDeveloper, even it added Struts Runtime into Project Classpath, when I added struts-config.xml to my [Fusion Web Application Project]

                  Thank you,