Hi,
I want to start a new OPS 3.0.1 webapp from scratch. With studio I could start a new "OPS" project, but how do I do that for OPS 3.0.1? (Studio doesn't support 3.0.1) - Which files do I need to copy to my WEB-INF folder? - Does anyone have a basic web-xml file for a OPS application? Thanks, Danny PS. I'm using Eclipse 3.1.1 for development -- 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 |
Administrator
|
Danny,
See my reply in the other thread (attached) for some pointers. Once you have created this template, you can replace the one that comes with the Eclipse plugin with it (look for ops.war or orbeon.war under the plugin directory to see where the template is located). -Erik [hidden email] wrote: > Hi, > > I want to start a new OPS 3.0.1 webapp from scratch. With studio I could > start a new "OPS" project, but how do I do that for OPS 3.0.1? (Studio > doesn't support 3.0.1) > > - Which files do I need to copy to my WEB-INF folder? > - Does anyone have a basic web-xml file for a OPS application? > > Thanks, > > Danny > > PS. I'm using Eclipse 3.1.1 for development Smith, Donald wrote: >> Now, can you give more details about the following: > >> o How exactly do you deploy into Tomcat, and what are the differences >> with what you were doing before, which was working? > > I'll have to get my tech lead to explain this one. See subsequent post. > >> o How can you tell that it "deploys as 2.8" vs. 3.0? Just that the >> application doesn't work? > > Yes, but more specifically, we get errors that 3.0 syntax in the > page-flow.xml file isn't allowed, which is obviously a sign we're still > running the 2.8 engine. > >> o How do you build your WAR file? In particular, where did you get the >> JAR files under the WEB-INF directory? > > This is no doubt a huge part of our problem. We just went with the > content of the latest Studio download. After our failure, we looked and > realized that it's running orbeon.jar instead of ops.jar. So clearly we > need to switch that. But is there more we need to switch? Where is this > documented (I'm sure you guys have documented it and we've just missed > it)? It looks like this is a hole in the doc. We will be working on improving this real soon. In the meanwhile, a way to go forward: o Download a fresh OPS 3.0.1 if you haven't done so already. o Extract the zip or tgz archive. A directory called "ops-3.0.1.200602032326" will be created. o Under that directory, you will find a file called ops.war. o Extract ops.war with an "unzip" tool into some directory, for example ops-war. Under ops-war, you will find a "WEB-INF" directory, and under that directory, a "resources" directory. o Under the "resources" directory, remove the following folders: o "doc" o "examples" o "examples-portal" o "examples-standalone" o "init-database" o Some images under the "images" directory can also be removed, but for now you can leave them. In the future, we will reorganize the images to make it clearer. http://forge.objectweb.org/tracker/index.php?func=detail&aid=304626&group_id=168&atid=350207 o Add your own resource files under the "resources" directory. If your application is a purchase order application, you may want to locate all your application's under a directory called "purchase-order". Alternatively, you may want to create one subdirectory per page or service in your application. The choice is yours. o Replace the "page-flow.xml" file under "resources" with your own. A minimal version of the page flow is attached. In your own page flow, you must obviously have your own page declarations. Paths for page models, page views, etc. must point to your own files under "purchase-order". o Optionally, you may remove the "context" directory under "resources", after having removed references to the listners in "web.xml". o At this stage, your are left with the following under "resources": o "config": files needed by OPS (theme, etc.) but that you can configure for your own needs. o "ops": files needed by OPS that you should not modify unless you really know what you are doing. o "images": some images (see above). Not crucial, but currently the XForms engine uses some of those. o "page-flow.xml": your page flow configuration. o You now have a nice exploded WAR file under ops-war, which contains your application. If you are using Tomcat, you can create a <context> in server.xml to just point to the ops-war directory. With other application servers, you may have to create an actual .war file, by zipping the WEB-INF directory and its content. Note that it is still preferable to tell your application server to work on an "exploded" WAR file. I hope this helps a bit. What we plan to do from here: o Put an improved version of the above in the OPS doc. o Create a minimal template WAR that you can use directly, or a tool to create such a template WAR. -Erik -- 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 |
Administrator
|
In reply to this post by dkruitbosch
Hi Danny,
Adding to what Erik said, in Studio, remember to never use the File / New / OPS Application Project, as this will create for you a new project and populate it with a copy of the resources and jar files that are bundled with Studio. As Studio is not updated as often as PresentationServer, you will end up with a project containing obsolete files. So instead, download the version of PresentationServer you want to use, unzip it so you have the ops.war somewhere, in Studio create a new project with File / Import / OPS Application Project from WAR, and select the ops.war you just extracted. Alex On 2/15/06, [hidden email] <[hidden email]> wrote: > Hi, > > I want to start a new OPS 3.0.1 webapp from scratch. With studio I could > start a new "OPS" project, but how do I do that for OPS 3.0.1? (Studio > doesn't support 3.0.1) > > - Which files do I need to copy to my WEB-INF folder? > - Does anyone have a basic web-xml file for a OPS application? > > Thanks, > > Danny > > PS. I'm using Eclipse 3.1.1 for development > > > > > > -- > 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 > > > -- Blog (XML, Web apps, Open Source): http://www.orbeon.com/blog/ -- 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
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
In reply to this post by Erik Bruchez
Howdi,
We have just started using the excellent Ivy dependency management tool. It is a set of ant targets and an online repository of projects. I add the following to my build.xml <target name="init" depends="properties" description="Prepare environment"> <property name="ivy.ivyrep.default.ivy.root" value="http://opensvn.csie.org/ivyrepsandbox/" /> <property name="ivy.ivyrep.default.ivy.pattern" value="[organisation]/[module]/ivy-[revision].xml" /> <ivy:retrieve /> </target> And add an xml file that looks like this to the project. <ivy-module version="1.0"> <info organisation="mycompany" module="mywebapp" status="release" /> <configurations> <conf name="war" description="Modules that go into the WEB-INF/lib" /> <conf name="test" description="Modules that don't. eg. Junit" /> </configurations> <publications> <artifact name="mywebapp" type="war" /> </publications> <dependencies> <dependency org="orbeon" name="ops" rev="3.0.1" conf="war->default" /> <dependency org="springframework" name="springframework" rev="1.2.6" conf="war->default" /> <dependency org="sun" name="servletapi" rev="2.4-20040521" conf="test->default" /> <dependency org="junit" name="junit" rev="3.8" conf="test->default"/> </dependencies> </ivy-module> When I call <ivy:retrieve/> it fetchs all of my projects dependencies and their dependencies etc, etc.. I am going ahead and putting together an ivy file for OPS in our internal repository. However, it would be good to have the OPS ivy files in a public place. Then it will be very easy for people to put together custom ops webapps that integrate with continuos integration systems. 1. We would need a public location to hold the ops/ivy-3.0.1.xml files. I am thinking here.. http://opensvn.csie.org/ivyrepsandbox/ in /orbeon/ops/ivy-3.0.1.xml 2. We would need a publicly accessible place to download ops jars.. Could the objectweb forge serve this purpose? Currently only the war is available. http://forge.objectweb.org/nightlybuilds/ops/ops/ Once I have an initial ivy file put together for OPS I will post it here. Regards, Damon. -- 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 |
Free forum by Nabble | Edit this page |