Hello,
We're trying to use orbeon concurrently with our web portal and here is how we setted that up (we chose to focus on a separate deployment) : myApp and orbeon's are in the Tomcat webapps directory, we added the «crossContext="true"» attribute to myApp Context in Tomcat Server.xml and the right filters in myApp web.xml. In myApp we copied the "guess-the-number" default jsp so that it can be accessed by : myApp/xforms-jsp/guess-the-number/index.jsp In addition, we copied the orbeon-xforms-filter.jar in our lib directory. Thus, accessing this jsp by http://...:8080/myApp/xforms-jsp/guess-the-number/index.jsp , it is sent to orbeon's webapp and the correct result is returned. So far so good. But there is a problem : The ressources files come back with a bad URL. CSS files are linked to href="/myApp/orbeon/xforms-server/xforms-min.css", some images to src="/ops/images/xforms/section-closed.png" and others to src="/myApp/orbeon/ops/images/xforms/calendar.gif" I guess there is a way to tell orbeon to prepend a base URL, either set to myApp or to orbeon's webapp but I couldn't find where to set it. I'm sorry but I'm not used to doing this kind of work and I'm a bit puzzled. :-\ Thanks, Loceka. |
Administrator
|
Loceka,
On Tue, Aug 19, 2008 at 2:28 AM, Loceka <[hidden email]> wrote: > But there is a problem : > The ressources files come back with a bad URL. > CSS files are linked to href="/myApp/orbeon/xforms-server/xforms-min.css", > some images to src="/ops/images/xforms/section-closed.png" > and others to src="/myApp/orbeon/ops/images/xforms/calendar.gif" The path that was generated for section-closed.png is incorrect. It should be /myapp/orbeon/ops/images/xforms/section-closed.png. I just tried this, and see the correct path. What version of Orbeon Forms are you using? If you are not using a recent nightly build, could you try one? Alex -- Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise Orbeon's Blog: http://www.orbeon.com/blog/ Personal Blog: http://avernet.blogspot.com/ Twitter - http://twitter.com/avernet -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
I am using the last stable version (3.6) but I misconfigured my webapp web.xml and let <filter-mapping> <filter-name>ops-xforms-filter</filter-name> <url-pattern>/ops/*</url-pattern> </filter-mapping> instead of specifying the actual orbeon context. That's why I couldn't access orbeon's ressources apparently. Thank you for your time and your answer, Loceka. |
Administrator
|
Loceka,
On Thu, Aug 21, 2008 at 7:55 AM, Loceka <[hidden email]> wrote: > I am using the last stable version (3.6) but I misconfigured my webapp > web.xml and let > <filter-mapping> > <filter-name>ops-xforms-filter</filter-name> > <url-pattern>/ops/*</url-pattern> > </filter-mapping> > > instead of specifying the actual orbeon context. That's why I couldn't > access orbeon's ressources apparently. I did a similar error while trying to reproduce the issue you were describing; it is not that hard to make some mistake in those configuration files :). And I am glad you found the solution to this problem. Alex -- Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise Orbeon's Blog: http://www.orbeon.com/blog/ Personal Blog: http://avernet.blogspot.com/ Twitter - http://twitter.com/avernet -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Free forum by Nabble | Edit this page |