MalformedURLException on submission's resource attribute (portlet, noscript)

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

MalformedURLException on submission's resource attribute (portlet, noscript)

Jeroen Hoffman

Hi,
I'm using Orbeon as portlet application in noscript mode. When I set the resource of a submission starting with a slash, like is normally done, the submission fails with because of a MalformedURLException "no protocol".

This can be reproduced on the xforms-translate example (having added a submit button): it's default-submission has "/xforms-translate/post" and I'm getting "MalformedURLException: no protocol: /orbeon/xforms-translate/post". This does not occur in regular (script) mode.

A workaround is to have full qualified URL for the resource, e.g. http://localhost:8080/orbeon/xforms-translate/post. But then I'm bypassing the portlet, and I don;t really want that.

Can this behaviour be explained? Any other comments?

Thanks,
Jeroen

 

 



--
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
Reply | Threaded
Open this post in threaded view
|

Re: MalformedURLException on submission's resource attribute (portlet, noscript)

Erik Bruchez
Administrator
Is this with a recent nightly build?

-Erik

On Feb 11, 2009, at 4:35 AM, Jeroen Hoffman wrote:

> Hi,
> I'm using Orbeon as portlet application in noscript mode. When I set  
> the resource of a submission starting with a slash, like is normally  
> done, the submission fails with because of a MalformedURLException  
> "no protocol".
>
> This can be reproduced on the xforms-translate example (having added  
> a submit button): it's default-submission has "/xforms-translate/
> post" and I'm getting "MalformedURLException: no protocol: /orbeon/
> xforms-translate/post". This does not occur in regular (script) mode.
>
> A workaround is to have full qualified URL for the resource, e.g. http://localhost:8080/orbeon/xforms-translate/post 
> . But then I'm bypassing the portlet, and I don;t really want that.
>
> Can this behaviour be explained? Any other comments?
>
> Thanks,
> Jeroen
>
>
>
>
> --
> 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
--
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
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: MalformedURLException on submission's resource attribute (portlet, noscript)

Jeroen Hoffman
Yes, dated januari 19th, 2009.

Erik Bruchez wrote:

> Is this with a recent nightly build?
>
> -Erik
>
> On Feb 11, 2009, at 4:35 AM, Jeroen Hoffman wrote:
>
>> Hi,
>> I'm using Orbeon as portlet application in noscript mode. When I set
>> the resource of a submission starting with a slash, like is normally
>> done, the submission fails with because of a MalformedURLException "no
>> protocol".
>>
>> This can be reproduced on the xforms-translate example (having added a
>> submit button): it's default-submission has "/xforms-translate/post"
>> and I'm getting "MalformedURLException: no protocol:
>> /orbeon/xforms-translate/post". This does not occur in regular
>> (script) mode.
>>
>> A workaround is to have full qualified URL for the resource, e.g.
>> http://localhost:8080/orbeon/xforms-translate/post. But then I'm
>> bypassing the portlet, and I don;t really want that.
>>
>> Can this behaviour be explained? Any other comments?
>>
>> Thanks,
>> Jeroen
>>
>>
>>
>>
>> --
>> 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
>
> --
> 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
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: MalformedURLException on submission's resource attribute (portlet, noscript)

Alessandro Vernet
Administrator
In reply to this post by Jeroen Hoffman
Jeroen,

On Feb 11, 2009, at 4:35 AM, Jeroen Hoffman wrote:

> I'm using Orbeon as portlet application in noscript mode. When I set  
> the resource of a submission starting with a slash, like is normally  
> done, the submission fails with because of a MalformedURLException  
> "no protocol".
>
> This can be reproduced on the xforms-translate example (having added  
> a submit button): it's default-submission has "/xforms-translate/
> post" and I'm getting "MalformedURLException: no protocol: /orbeon/
> xforms-translate/post". This does not occur in regular (script) mode.
>
And this is on JetSpeed? I guess we just haven't tested the noscript  
mode on JetSpeed. The first step would be to have installation  
instructions for Orbeon Forms on JetSpeed. Would you have a little bit  
of time to update the following page with instruction for JetSpeed? If  
you do, just let me know, and I'll give an access to the Wiki so you  
can edit it.

http://wiki.orbeon.com/forms/doc/developer-guide/deployment-portlet

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
Reply | Threaded
Open this post in threaded view
|

How to deploy on Jetspeed based portal

Jeroen Hoffman
Hi,

Follow-up on http://www.nabble.com/MalformedURLException-on-submission%27s-resource-attribute-%28portlet%2C-noscript%29-td21953812.html#a21953812

See my contribution below. I'll leave it up to you wether you give me access to the Wiki or if you'll put it up there yourself.

Jeroen


Portal Servers

Jetspeed-2 based portals.

Orbeon's war distribution can easily be deployed on any Jetspeed-2 based portal.

1. Deploy orbeon.war.
a) If your Jetspeed portal runs on Tomcat, the easiest way is to let Jetspeed deploy Orbeon by copying orbeon.war to Jetspeed's deploy directory  webapps/jetspeed/WEB-INF/deploy. Auto-deployment will take place directly if the portal is running or at startup.

b) On application servers other than Tomcat, use your application server's own deployment mechanism to deploy Orbeon as web application.

The following servlet is to be inserted into Orbeon's web.xml
<servlet>
   <servlet-name>JetspeedContainer</servlet-name>
   <display-name>Jetspeed Container</display-name>
   <description>MVC Servlet for Jetspeed Portlet Applications</description>
   <servlet-class>org.apache.jetspeed.container.JetspeedContainerServlet</servlet-class>
   <init-param>
     <param-name>contextName</param-name>
     <param-value>orbeon</param-value>
   </init-param>
   <load-on-startup>[your-value]</load-on-startup>
</servlet>
<servlet-mapping>
   <servlet-name>JetspeedContainer</servlet-name>
   <url-pattern>/container/*</url-pattern>
</servlet-mapping>

With this setup Orbeon will register itself as portlet application to Jetspeed.
 

2. Add Orbeon's portlet on your page.
To add Orbeon's portlet called OrbeonFormsPortlet to a page, adjust the desired psml page to incorporate this portlet in a fragment, e.g. 
<fragment id="yourId" type="portlet" name="orbeon::OrbeonFormsPortlet">


This can also be accomplished using a UI with the Edit page functionality when logged in as admin.

More information available at http://portals.apache.org/jetspeed-2/guides/index.html





Alessandro Vernet wrote:
Jeroen,

On Feb 11, 2009, at 4:35 AM, Jeroen Hoffman wrote:
I'm using Orbeon as portlet application in noscript mode. When I set the resource of a submission starting with a slash, like is normally done, the submission fails with because of a MalformedURLException "no protocol".

This can be reproduced on the xforms-translate example (having added a submit button): it's default-submission has "/xforms-translate/post" and I'm getting "MalformedURLException: no protocol: /orbeon/xforms-translate/post". This does not occur in regular (script) mode.

And this is on JetSpeed? I guess we just haven't tested the noscript mode on JetSpeed. The first step would be to have installation instructions for Orbeon Forms on JetSpeed. Would you have a little bit of time to update the following page with instruction for JetSpeed? If you do, just let me know, and I'll give an access to the Wiki so you can edit it.

http://wiki.orbeon.com/forms/doc/developer-guide/deployment-portlet

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
Reply | Threaded
Open this post in threaded view
|

Re: How to deploy on Jetspeed based portal

Alessandro Vernet
Administrator
Hi Jeroen,

On Feb 18, 2009, at 6:32 AM, Jeroen Hoffman wrote:

> See my contribution below. I'll leave it up to you wether you give  
> me access to the Wiki or if you'll put it up there yourself.

Excellent; I will give you write access to the Wiki, so you can update  
it yourself. Do you have a Google account address you can share with  
me for that, such as a Gmail address? I will then just add it to the  
access list. (I am asking about the email for a Google account because  
the Wiki is hosted on Google Sites, which uses the Google accounts for  
authentication.) If you don't want to post that email to the list, you  
can also send me a private email.

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