Posted by
Erik Bruchez on
Jul 05, 2007; 11:17pm
URL: https://discuss.orbeon.com/Orbeon-Forms-Page-Not-Found-when-publishing-custom-xform-tp33667p33683.html
Casten,
This is what I did:
* Downloaded latest nightly.
* Made sure Tomcat is not running.
* Deployed the WAR into Tomcat with the following context in server.xml:
<Context path="/ops-nightly" docBase="/Users/ebruchez/Desktop/ops-war"
reloadable="true" override="true"/>
* Deployed my own test WAR as follows:
<Context path="/my-app" docBase="/Users/ebruchez/Desktop/my-war"
reloadable="true" override="true" crossContext="true"/>
* Copied the nightly build's ops-xforms-filter.jar to my-app's
my-war/WEB-INF/lib.
* Configured my-app with the following 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>
<display-name>My App</display-name>
<filter>
<filter-name>ops-xforms-filter</filter-name>
<filter-class>org.orbeon.oxf.servlet.OPSXFormsFilter</filter-class>
<init-param>
<param-name>oxf.xforms.renderer.context</param-name>
<param-value>/ops-nightly</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>ops-xforms-filter</filter-name>
<url-pattern>/xforms-jsp/*</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>ops-xforms-filter</filter-name>
<url-pattern>/ops-nightly/*</url-pattern>
</filter-mapping>
</web-app>
* Created a JSP file containing literally the content of your
jsp_output.xhtml. I put this JSP under:
my-war/xforms-jsp/carsten/index.jsp
* Started Tomcat.
* Accessed:
http://localhost:8080/my-app/xforms-jsp/carsten/The result is a functional XForms page.
Do you see anything in there that you do differently? If not, can you
still try these steps?
-Erik
Damm, Carsten wrote:
> ...forgot the attachment...
>
> -----Ursprüngliche Nachricht-----
> Von: Damm, Carsten [mailto:
[hidden email]]
> Gesendet: Donnerstag, 5. Juli 2007 08:46
> An:
[hidden email]
> Betreff: AW: AW: [ops-users] "Orbeon Forms - Page Not Found" when
publishing custom xform
>
> Hiya!
>
>> He he, in fact your output is *not* XHTML. All your elements are
>> capitalized, which is invalid XHTML.
>
> D'oh! You're right, didn't see that. There was some other unwanted
strangeness in the output as well (some HTML tags included by the JSP).
>
>> So if you fix this and restore the filter, is there some progress?
>
> Okay, I did fix this. Instead of a JSP, I'm using a servlet now,
which outputs verified XHTML (I checked it with XMLSpy and had it
running in the XForms sandbox of your website)--see attachment.
>
> The (restored) filter still give me the same old message "Orbeon
Forms - Page Not Found We are sorry, but the resource you have requested
is not available on this server."
>
> I'm glad the OPS filter kicks in, which shows that the mapping is
working at least. Why it doesn't process the output is beyond me, however.
>
> Any idea of what else I can do?
>
>
> Best,
>
> Carsten
>
>
>
>
>
>
> -----Ursprüngliche Nachricht-----
> Von: Erik Bruchez [mailto:
[hidden email]] Im Auftrag von Erik Bruchez
> Gesendet: Mittwoch, 4. Juli 2007 23:18
> An:
[hidden email]
> Betreff: Re: AW: [ops-users] "Orbeon Forms - Page Not Found" when
publishing custom xform
>
> Damm, Carsten wrote:
>
>> Okay, I removed the filter entries from web.xml, restarted tomcat and
>> accessed the page. The result is non-rendered output from the jsp, the
>> browser basically displays this:
>>
>> Guess The Number 20 .paragraph { margin-top: 1em; } .feedback {
>> background-color: #ffa; margin-left: 10px; padding: 5px; } .guess input
>> { width: 5em; } .xforms-alert-inactive { display: none; } Guess The
>> Number I picked a number between 1 and 100. Can you guess it? Good, I
>> like the spirit. Try your best guess: Go is a bit too low. is a tat
>> too high. is the right answer. Congratulations! I'm a cheater! Tired
>> already? OK, then. The answer is .
>>
>> Of course, the output is XHTML, see the attached file for what the JSP
>> produces.
>
> He he, in fact your output is *not* XHTML. All your elements are
> capitalized, which is invalid XHTML. See:
>
>
http://www.w3.org/TR/xhtml1/#h-4.2 >
> So if you fix this and restore the filter, is there some progress?
>
> -Erik
>
>
--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/--
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
ObjectWeb mailing lists service home page:
http://www.objectweb.org/wws