Hi, When I access the URL manually all is OK & XML is returned. I have enables single sign on in the container (JBoss 3.2.6) which means that the security context gets propagated across web apps in the same container. The problems seems to be associated with the URL processor.
Regards, Avinder -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Erik Bruchez Sent: 04 February 2005 14:54 To: [email protected] Subject: Re: [orbeon-user] Error with URL Generator You are accessing the JSP through HTTP. What happens when you access: http://localhost:8080/NoddyWebApp/secure/XMLGenerator.jsp manually, that is not through the URL processor? Does it work? If so, what does it return? -Erik Avinder Bahra wrote: > Hi, > > > > I am reading XForms model using the Url Generator, which points to a JSP > which serves some hard coded XML. However I get an error when this JSP > is placed in a J2EE secured direcrory ('secure' in this instance), even > though I have logging into the app. If I move the JSP to a non secure > directory all is OK. I put a debug in the JSP to call getRemoteUser() in > a Xform model element and this returned null. Listings for the model XPL > and stack trace are below. > > > > Any help appreciated, > > > > Avinder > > > > <p:processor name="oxf:url-generator"> > > <p:input name="config"> > > <config> > > > <url>http://localhost:8080/NoddyWebApp/secure/XMLGenerator.jsp</url> > > <content-type>text/xml</content-type> > > <cache-control> > > <use-local-cache>false</use-local-cache> > > </cache-control> > > <validating>false</validating> > > </config> > > </p:input> > > <p:output name="data" ref="data" /> > > </p:processor> > > > > > > 2005-02-04 13:46:16,104 ERROR org.orbeon.oxf.pipeline.InitUtils null - > Exception > > at null, line -1, column -1 > > org.orbeon.oxf.common.ValidationException: null, line -1, column -1 : > Root eleme > > nt of XForms model must be in namespace 'http://www.w3.org/2002/xforms'. > Found i > > nstead: '' : null, line -1, column -1: Root element of XForms model must > be in n > > amespace 'http://www.w3.org/2002/xforms'. Found instead: '' > > at org.orbeon.oxf.processor.xforms.Model.<init>(Model.java:91) > > at > org.orbeon.oxf.processor.xforms.input.XFormsInput$2.read(XFormsInput. > > java:81) > > at > org.orbeon.oxf.processor.ProcessorImpl.readCacheInputAsObject(Process > > orImpl.java:461) > > at > org.orbeon.oxf.processor.xforms.input.XFormsInput.access$200(XFormsIn > > put.java:55) > > at > org.orbeon.oxf.processor.xforms.input.XFormsInput$1.readImpl(XFormsIn > > put.java:79) > > at > org.orbeon.oxf.processor.ProcessorImpl$6.read(ProcessorImpl.java:945) > > > > at > org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(Proce > > ssorImpl.java:1106) > > at > org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.j > > ava:340) > > at > org.orbeon.oxf.processor.pipeline.TeeProcessor.access$100(TeeProcesso > > r.java:27) > > at > org.orbeon.oxf.processor.pipeline.TeeProcessor$1.readImpl(TeeProcesso > > r.java:48) > > at > org.orbeon.oxf.processor.ProcessorImpl$6.read(ProcessorImpl.java:945) > > > > at > org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(Proce > > ssorImpl.java:1106) > > at > org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.j > > ava:340) > > at > org.orbeon.oxf.processor.ProcessorImpl.readInputAsDOM4J(ProcessorImpl > > .java:395) > > at > org.orbeon.oxf.processor.ProcessorImpl$4.read(ProcessorImpl.java:419) > > > > at > org.orbeon.oxf.processor.ProcessorImpl.readCacheInputAsObject(Process > > orImpl.java:461) > > at > org.orbeon.oxf.processor.ProcessorImpl.readCacheInputAsDOM4J(Processo > > rImpl.java:417) > > at > org.orbeon.oxf.processor.pipeline.choose.ConcreteChooseProcessor.star > > t(ConcreteChooseProcessor.java:163) > > at > org.orbeon.oxf.processor.pipeline.choose.ConcreteChooseProcessor$1.re > > adImpl(ConcreteChooseProcessor.java:120) > > at > org.orbeon.oxf.processor.ProcessorImpl$6.read(ProcessorImpl.java:945) > > > > at > org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(Proce > > ssorImpl.java:1106) > ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ orbeon-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/orbeon-user ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ orbeon-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/orbeon-user
