This post was updated on .
Hello,
We are trying to implement XFORMS seperate deployment with Spring MVC in our code. I could see that xhtml pages are directed to orbeon but i am getting "Orbeon Forms - Unauthorized" error. Please help on this, Below is configuration, <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5"> <display-name>MWebApp</display-name> <welcome-file-list> <welcome-file>home</welcome-file> </welcome-file-list> <servlet> <servlet-name>mvc-dispatcher</servlet-name> <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>mvc-dispatcher</servlet-name> <url-pattern>/rest/*</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>mvc-dispatcher</servlet-name> <url-pattern>/home</url-pattern> </servlet-mapping> <context-param> <param-name>contextConfigLocation</param-name> <param-value>/WEB-INF/mvc-dispatcher-servlet.xml</param-value> </context-param> <session-config> <session-timeout>240</session-timeout> </session-config> <listener> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> </listener> <filter> <filter-name>orbeon-xforms-filter</filter-name> <filter-class>org.orbeon.oxf.servlet.OrbeonXFormsFilter</filter-class> <init-param> <param-name>oxf.xforms.renderer.context</param-name> <param-value>/orbeon</param-value> </init-param> <init-param> <param-name>oxf.xforms.renderer.default-encoding</param-name> <param-value>UTF-8</param-value> </init-param> </filter> <filter-mapping> <filter-name>orbeon-xforms-filter</filter-name> <url-pattern>/home</url-pattern> <dispatcher>REQUEST</dispatcher> <dispatcher>FORWARD</dispatcher> </filter-mapping> <filter-mapping> <filter-name>orbeon-xforms-filter</filter-name> <url-pattern>/orbeon/*</url-pattern> <dispatcher>REQUEST</dispatcher> <dispatcher>FORWARD</dispatcher> </filter-mapping> </web-app> |
Administrator
|
Hi Vedha,
Are you getting any error about this in the orbeon.log? Do you have anything related to Spring MVC setup added to the Orbeon Forms web.xml, or is it just verbatim orbeon.war? Alex
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Thanks for your reply. There is no changes made to Orbeon war other than the changes listed in the below link,
http://wiki.orbeon.com/forms/doc/developer-guide/xforms-with-java-applications#TOC-What-this-page-is-about I tried to search for orbeon.log but not able to find it. Its not in TOMCAT logs folder. Any clues? |
Administrator
|
Hi Vedha,
By default the orbeon.log gets created in ../logs/orbeon.log, which means that if you start Tomcat in tomcat/bin, you'll find it in tomcat/logs, along the other log files. If you can't find it there, I'd recommend you set an absolute path in Orbeon Forms WEB-INF/resources/config/log4j.xml to a place where you want the orbeon.log to be. Alex
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Free forum by Nabble | Edit this page |