upgrading ops

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

upgrading ops

RachidEHTP
 Hi

 * Can some one give me informations about upgrading an application from  ops from 2.8 to 3.0 .( What i must change in lib, and what is the structure of the project) ?

 * Is there a plugin of eclipse that can create projects whith ops 3.0 or later ?

   Thanks




--
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: upgrading ops

Erik Bruchez
Administrator
>  * Can some one give me informations about upgrading an application  
> from  ops from 2.8 to 3.0 .( What i must change in lib, and what is  
> the structure of the project) ?

We have some migration information here in the (now old) 3.0 release  
notes:

   http://www.orbeon.com/ops/doc/home-changes-30

and here:

   http://www.orbeon.com/ops/doc/reference-xforms-migration

Rather than taking a 2.8 build and updating it with 3.6 material, I  
would rather do the opposite: take a 3.6 build, and migrate your  
application to it. That may sound like more work at first, but in the  
end this may be less error-prone.

Also note that there are two different types of migration:

1. Make your existing application work with 3.6, without upgrading to  
the new XForms engine.

2. Upgrading your application to leverage the new XForms engine.

It is probably wise to start with #1, although to be fair, the old  
XForms engine has not been tested much in recent releases.

>  * Is there a plugin of eclipse that can create projects whith ops  
> 3.0 or later ?


Not really, we no longer support the Eclipse plugin (although some  
people still use it successfully).

-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
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: upgrading ops

RachidEHTP
Thanks Erik

*   I m sorry, i didnt understand how can i take a 3.6 build, and migrate my application to it ?

  Because my problem i don't know which jars in the lib i must change?? and the informations in the two links dont answer this problem.

 I created a new project with eclipse (OPS 2.8) , after this i developped a test application that worked without problems, so for testing migration i changed the lib directory by the one that i found in the war of the 3.0 example, but after this, i had the following error :

Type class org.orbeon.saxon.xpath.StaticError
Message XPath syntax error at char 92 on line 501 in {...URL('/images/bulb-large.gif...}: Cannot find a matching 1-argument function named {java:org.orbeon.oxf.pipeline.StaticExternalContext}rewriteResourceURL()
Location oxf:/config/xforms-to-xhtml.xsl


* And how can i make my existing application work with 3.6, without upgrading to the new XForms engine.
 
 Thanks




--
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: Re: upgrading ops

Erik Bruchez
Administrator

On Mar 10, 2008, at 11:31 AM, ZENOUAKI rachid wrote:

> Thanks Erik
>
> *   I m sorry, i didnt understand how can i take a 3.6 build, and  
> migrate my application to it ?

You would do this by progressively migrating part of the WEB-INF/
resources folder of your old application to a 3.6 build.

If you don't know at all the inner workings of your application, that  
may not be easy to do.

>   Because my problem i don't know which jars in the lib i must  
> change?? and the informations in the two links dont answer this  
> problem.

You probably wouldn't change any if you start with a 3.6 build, which  
is one of the reasons I was recommending doing this this way.

>  I created a new project with eclipse (OPS 2.8) , after this i  
> developped a test application that worked without problems, so for  
> testing migration i changed the lib directory by the one that i  
> found in the war of the 3.0 example, but after this, i had the  
> following error :
>
> Type
> class org.orbeon.saxon.xpath.StaticError
> Message
> XPath syntax error at char 92 on line 501 in {...URL('/images/bulb-
> large.gif...}: Cannot find a matching 1-argument function named  
> {java:org
> .orbeon.oxf.pipeline.StaticExternalContext}rewriteResourceURL()
> Location
> oxf:/config/xforms-to-xhtml.xsl
That may be due to some older versions of the files under WEB-INF/
resources/config.

> * And how can i make my existing application work with 3.6, without  
> upgrading to the new XForms engine.

By default, if you don't explicitly change your code as per the  
documentation I sent in earlier posts, your application will still use  
the old XForms engine.

-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
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Re: upgrading ops

RachidEHTP
Hi

  Yes,  the good method is to strat with a 3.6 build and migrate the application progressively to the cible version.

 But how can I have an empty build 3.6 (without neither apps nor epilogues ..) ? I think i must use the .war  of the orbeon Forms, but it will be a lot of works to remove apps and  delete dependencies b/w pages and page-flows , epilogues..

 can You give me a clear Idea ?

  Thanks and regards.




--
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: Re: Re: Re: upgrading ops

Erik Bruchez
Administrator
Second try, Mail.app lost my first email.

Try the following:

* Unzip orbeon.war, e.g. into orbeon-war
* The resources are under orbeon-war/WEB-INF/resources/
* Remove orbeon-war/WEB-INF/resources/apps/*

This will give you clean resources, without all the apps.

Hopefully you won't need to modify the default epilogue, now in orbeon-
resources-private.jar. In recent builds, it is configurable through  
properties.xml, which makes it even less likely to require  
modifications.

-Erik

On Mar 11, 2008, at 10:42 AM, ZENOUAKI rachid wrote:

> Hi
>
>   Yes,  the good method is to strat with a 3.6 build and migrate the  
> application progressively to the cible version.
>
>  But how can I have an empty build 3.6 (without neither apps nor  
> epilogues ..) ? I think i must use the .war  of the orbeon Forms,  
> but it will be a lot of works to remove apps and  delete  
> dependencies b/w pages and page-flows , epilogues..
>
>  can You give me a clear Idea ?
>
>   Thanks and regards.
--
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