How I got Tamino and Orbeon to work together

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

How I got Tamino and Orbeon to work together

Jacobs, Julia A [HDS]

1. Followed directions to install Orbeon for Tomcat:
http://www.orbeon.com/ops/doc/intro-install#d27e53

2. Followed directions to add tamino processor to
Tomcat_Home\webapps\ops\WEB-INF\resources\config\properties.xml:
http://www.orbeon.com/ops/doc/processors-xmldb#tamino

Added <property as="xs:anyURI" processor-name="oxf:tamino-query"
name="url" value="http://localhost/tamino/mydb"/>
in the <!-- Global properties --> section to connect to Tamino without
authorization

2. Moved:

xercesImpl.jar
xmlParserAPIs.jar

From Tamino_Home\SDK\TaminoAPI4J\lib
to Tomcat_Home\server\lib:

3. Moved:

Log4j.jar
TaminoAPI4J.jar
TaminoJCA.jar

From Tamino_Installation_Directory\Software AG\Tamino\Tamino
4.4.1.1\SDK\TaminoAPI4J\lib
To Tomcat_Home\webapps\ops\WEB-INF\lib

4. Deleted log4j-1.3alpha0.jar in Tomcat_Home\webapps\ops\WEB-INF\lib

5. Created a folder:
Tomcat_Home\webapps\ops\WEB-INF\resources\apps\taminoSample

6. Created a simple Tamnino sample which would support the following
doctype:

<Procedure namespaceInfo . . . . >
<Title>Some Title</Title>
 . . . . .
</Procedure>

Created three files and put them in
Tomcat_Home\webapps\ops\WEB-INF\resources\apps\taminoSample:

page-flow.xml -

<config xmlns="http://www.orbeon.com/oxf/controller">
<page path-info="/taminoSample/" model="XQuery.xpl" view="view.xhtml"/>
<epilogue url="oxf:/config/epilogue.xpl"/>
</config>

XQuery.xpl -

<p:config xmlns:p="http://www.orbeon.com/oxf/pipeline"
xmlns:oxf="http://www.orbeon.com/oxf/processors"
xmlns:ino="http://namespaces.softwareag.com/tamino/response2"
xmlns:xql="http://metalab.unc.edu/xql/"
xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xq="http://namespaces.softwareag.com/tamino/XQuery/result">
<p:param type="output" name="data"/>
<p:processor name="oxf:tamino-query">
<p:input name="config">
<config>
<url>http://localhost/tamino/mydb</url>
<collection>mycollection</collection>
</config>
</p:input>
<p:input name="data">
<xquery>
for $q in input()/Procedure[//@ID="IDD32"]
let $r := $q/Title
return $r
</xquery>
</p:input>
<p:output name="data" ref="data" debug="result"/>
</p:processor>
</p:config>

view.xhtml -

<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:xforms="http://www.w3.org/2002/xforms"
xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"
xmlns:ino="http://namespaces.softwareag.com/tamino/response2"
xmlns:xql="http://metalab.unc.edu/xql/"
xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xq="http://namespaces.softwareag.com/tamino/XQuery/result">
<head>
<title>Tamino Sample</title>
<xforms:model>
<xforms:instance id="sampleData">
<result>
<xi:include href="input:data" />
</result>
</xforms:instance>
</xforms:model>
</head>
<body>
<p>
<i>XQuery Result</i>
</p>
<p>
<xforms:output ref="instance('sampleData')//Title" />
</p>
<widget:xforms-instance-inspector
xmlns:widget="http://orbeon.org/oxf/xml/widget" />
</body>
</html>
 
Typed http://localhost:8080/ops/taminoSample/ in browser.

I hope this is helpful to anyone struggling with getting Tamino and
Orbeon to work.

Julia Jacobs




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

Re: How I got Tamino and Orbeon to work together

Erik Bruchez
Administrator
Julia,

Thanks for these tips! I am sure they will be useful.

-Erik

Jacobs, Julia A [HDS] wrote:

> 1. Followed directions to install Orbeon for Tomcat:
> http://www.orbeon.com/ops/doc/intro-install#d27e53
>
> 2. Followed directions to add tamino processor to
> Tomcat_Home\webapps\ops\WEB-INF\resources\config\properties.xml:
> http://www.orbeon.com/ops/doc/processors-xmldb#tamino
>
> Added <property as="xs:anyURI" processor-name="oxf:tamino-query"
> name="url" value="http://localhost/tamino/mydb"/>
> in the <!-- Global properties --> section to connect to Tamino without
> authorization
>
> 2. Moved:
>
> xercesImpl.jar
> xmlParserAPIs.jar
>
> From Tamino_Home\SDK\TaminoAPI4J\lib
> to Tomcat_Home\server\lib:
>
> 3. Moved:
>
> Log4j.jar
> TaminoAPI4J.jar
> TaminoJCA.jar
>
> From Tamino_Installation_Directory\Software AG\Tamino\Tamino
> 4.4.1.1\SDK\TaminoAPI4J\lib
> To Tomcat_Home\webapps\ops\WEB-INF\lib
>
> 4. Deleted log4j-1.3alpha0.jar in Tomcat_Home\webapps\ops\WEB-INF\lib
>
> 5. Created a folder:
> Tomcat_Home\webapps\ops\WEB-INF\resources\apps\taminoSample
>
> 6. Created a simple Tamnino sample which would support the following
> doctype:
>
> <Procedure namespaceInfo . . . . >
> <Title>Some Title</Title>
>  . . . . .
> </Procedure>
>
> Created three files and put them in
> Tomcat_Home\webapps\ops\WEB-INF\resources\apps\taminoSample:
>
> page-flow.xml -
>
> <config xmlns="http://www.orbeon.com/oxf/controller">
> <page path-info="/taminoSample/" model="XQuery.xpl" view="view.xhtml"/>
> <epilogue url="oxf:/config/epilogue.xpl"/>
> </config>
>
> XQuery.xpl -
>
> <p:config xmlns:p="http://www.orbeon.com/oxf/pipeline"
> xmlns:oxf="http://www.orbeon.com/oxf/processors"
> xmlns:ino="http://namespaces.softwareag.com/tamino/response2"
> xmlns:xql="http://metalab.unc.edu/xql/"
> xmlns:xi="http://www.w3.org/2001/XInclude"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:xq="http://namespaces.softwareag.com/tamino/XQuery/result">
> <p:param type="output" name="data"/>
> <p:processor name="oxf:tamino-query">
> <p:input name="config">
> <config>
> <url>http://localhost/tamino/mydb</url>
> <collection>mycollection</collection>
> </config>
> </p:input>
> <p:input name="data">
> <xquery>
> for $q in input()/Procedure[//@ID="IDD32"]
> let $r := $q/Title
> return $r
> </xquery>
> </p:input>
> <p:output name="data" ref="data" debug="result"/>
> </p:processor>
> </p:config>
>
> view.xhtml -
>
> <html xmlns="http://www.w3.org/1999/xhtml"
> xmlns:xforms="http://www.w3.org/2002/xforms"
> xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"
> xmlns:ino="http://namespaces.softwareag.com/tamino/response2"
> xmlns:xql="http://metalab.unc.edu/xql/"
> xmlns:xi="http://www.w3.org/2001/XInclude"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:xq="http://namespaces.softwareag.com/tamino/XQuery/result">
> <head>
> <title>Tamino Sample</title>
> <xforms:model>
> <xforms:instance id="sampleData">
> <result>
> <xi:include href="input:data" />
> </result>
> </xforms:instance>
> </xforms:model>
> </head>
> <body>
> <p>
> <i>XQuery Result</i>
> </p>
> <p>
> <xforms:output ref="instance('sampleData')//Title" />
> </p>
> <widget:xforms-instance-inspector
> xmlns:widget="http://orbeon.org/oxf/xml/widget" />
> </body>
> </html>
>  
> Typed http://localhost:8080/ops/taminoSample/ in browser.
>
> I hope this is helpful to anyone struggling with getting Tamino and
> Orbeon to work.
>
> Julia Jacobs
>
>
>

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

Re: How I got Tamino and Orbeon to work together

Zsolt Czinkos-2
Hello

Thank you Julia, just a note.

I use Orbeon 3.5 and Tamino 4.2 with Tomcat 6.0, and I only changed the log4.jar from 1.3 to 1.2 (and, of course, copied the Tamino jars into the lib). It works.

Cheers,

Zsolt

On 3/22/07, Erik Bruchez <[hidden email]> wrote:
Julia,

Thanks for these tips! I am sure they will be useful.

-Erik

Jacobs, Julia A [HDS] wrote:

> 1. Followed directions to install Orbeon for Tomcat:
> http://www.orbeon.com/ops/doc/intro-install#d27e53
>
> 2. Followed directions to add tamino processor to
> Tomcat_Home\webapps\ops\WEB-INF\resources\config\properties.xml:
> http://www.orbeon.com/ops/doc/processors-xmldb#tamino
>
> Added <property as="xs:anyURI" processor-name="oxf:tamino-query"
> name="url" value=" http://localhost/tamino/mydb"/>
> in the <!-- Global properties --> section to connect to Tamino without
> authorization
>
> 2. Moved:
>
> xercesImpl.jar
> xmlParserAPIs.jar
>
> From Tamino_Home\SDK\TaminoAPI4J\lib
> to Tomcat_Home\server\lib:
>
> 3. Moved:
>
> Log4j.jar
> TaminoAPI4J.jar
> TaminoJCA.jar
>
> From Tamino_Installation_Directory\Software AG\Tamino\Tamino
> 4.4.1.1\SDK\TaminoAPI4J\lib
> To Tomcat_Home\webapps\ops\WEB-INF\lib
>
> 4. Deleted log4j-1.3alpha0.jar in Tomcat_Home\webapps\ops\WEB-INF\lib
>
> 5. Created a folder:
> Tomcat_Home\webapps\ops\WEB-INF\resources\apps\taminoSample
>
> 6. Created a simple Tamnino sample which would support the following
> doctype:
>
> <Procedure namespaceInfo . . . . >
> <Title>Some Title</Title>
>  . . . . .
> </Procedure>
>
> Created three files and put them in
> Tomcat_Home\webapps\ops\WEB-INF\resources\apps\taminoSample:
>
> page-flow.xml -
>
> <config xmlns=" http://www.orbeon.com/oxf/controller">
> <page path-info="/taminoSample/" model="XQuery.xpl" view="view.xhtml"/>
> <epilogue url="oxf:/config/epilogue.xpl"/>
> </config>
>
> XQuery.xpl -
>
> <p:config xmlns:p="http://www.orbeon.com/oxf/pipeline"
> xmlns:oxf=" http://www.orbeon.com/oxf/processors"
> xmlns:ino="http://namespaces.softwareag.com/tamino/response2"
> xmlns:xql=" http://metalab.unc.edu/xql/"
> xmlns:xi="http://www.w3.org/2001/XInclude"
> xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance"
> xmlns:xq="http://namespaces.softwareag.com/tamino/XQuery/result">
> <p:param type="output" name="data"/>
> <p:processor name="oxf:tamino-query">
> <p:input name="config">
> <config>
> <url>http://localhost/tamino/mydb </url>
> <collection>mycollection</collection>
> </config>
> </p:input>
> <p:input name="data">
> <xquery>
> for $q in input()/Procedure[//@ID="IDD32"]
> let $r := $q/Title
> return $r
> </xquery>
> </p:input>
> <p:output name="data" ref="data" debug="result"/>
> </p:processor>
> </p:config>

>
> view.xhtml -
>
> <html xmlns="http://www.w3.org/1999/xhtml"
> xmlns:xforms=" http://www.w3.org/2002/xforms"
> xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"
> xmlns:ino=" http://namespaces.softwareag.com/tamino/response2"
> xmlns:xql="http://metalab.unc.edu/xql/"
> xmlns:xi=" http://www.w3.org/2001/XInclude"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:xq=" http://namespaces.softwareag.com/tamino/XQuery/result">
> <head>
> <title>Tamino Sample</title>
> <xforms:model>
> <xforms:instance id="sampleData">
> <result>
> <xi:include href="input:data" />
> </result>
> </xforms:instance>
> </xforms:model>
> </head>
> <body>
> <p>
> <i>XQuery Result</i>
> </p>
> <p>
> <xforms:output ref="instance('sampleData')//Title" />
> </p>
> <widget:xforms-instance-inspector
> xmlns:widget="http://orbeon.org/oxf/xml/widget" />
> </body>
> </html>
>
> Typed http://localhost:8080/ops/taminoSample/ in browser.
>
> I hope this is helpful to anyone struggling with getting Tamino and
> Orbeon to work.
>
> Julia Jacobs
>
>
>


--
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




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

RE: How I got Tamino and Orbeon to work together

Jacobs, Julia A [HDS]
Thanks for the added tip, Zsolt!  

If anyone has anything else to add regarding Orbeon and Tamino; problems
solved, samples of code, performance tips, I will compile some extensive
documentation to add to the Orbeon user guide.

If time permits, I would like to add a Tamino application sample to the
existing demos that will include a form to input Tamino config data, an
Xquery or X-Query and dynamically view the result.  I don't know if it
would be a good idea to have this live on orbeon.com for security
reasons, but I think it would very helpful if included in the
downloadable app.

I'm swamped with my current 'day job' responsibilities, but hopefully
will have some time to do this soon.
 
Julia Jacobs
 

________________________________

From: Zsolt Czinkos [mailto:[hidden email]]
Sent: Friday, March 23, 2007 5:13 AM
To: [hidden email]
Subject: Re: [ops-users] How I got Tamino and Orbeon to work together


Hello

Thank you Julia, just a note.

I use Orbeon 3.5 and Tamino 4.2 with Tomcat 6.0, and I only changed the
log4.jar from 1.3 to 1.2 (and, of course, copied the Tamino jars into
the lib). It works.

Cheers,

Zsolt


On 3/22/07, Erik Bruchez <[hidden email]> wrote:

        Julia,
       
        Thanks for these tips! I am sure they will be useful.
       
        -Erik
       
        Jacobs, Julia A [HDS] wrote:
        > 1. Followed directions to install Orbeon for Tomcat:
        > http://www.orbeon.com/ops/doc/intro-install#d27e53
        >
        > 2. Followed directions to add tamino processor to
        >
Tomcat_Home\webapps\ops\WEB-INF\resources\config\properties.xml:
        > http://www.orbeon.com/ops/doc/processors-xmldb#tamino
        >
        > Added <property as="xs:anyURI"
processor-name="oxf:tamino-query"
        > name="url" value=" http://localhost/tamino/mydb
<http://localhost/tamino/mydb> "/>
        > in the <!-- Global properties --> section to connect to Tamino
without
        > authorization
        >
        > 2. Moved:
        >
        > xercesImpl.jar
        > xmlParserAPIs.jar
        >
        > From Tamino_Home\SDK\TaminoAPI4J\lib
        > to Tomcat_Home\server\lib:
        >
        > 3. Moved:
        >
        > Log4j.jar
        > TaminoAPI4J.jar
        > TaminoJCA.jar
        >
        > From Tamino_Installation_Directory\Software AG\Tamino\Tamino
        > 4.4.1.1\SDK\TaminoAPI4J\lib
        > To Tomcat_Home\webapps\ops\WEB-INF\lib
        >
        > 4. Deleted log4j-1.3alpha0.jar in
Tomcat_Home\webapps\ops\WEB-INF\lib
        >
        > 5. Created a folder:
        > Tomcat_Home\webapps\ops\WEB-INF\resources\apps\taminoSample
        >
        > 6. Created a simple Tamnino sample which would support the
following
        > doctype:
        >
        > <Procedure namespaceInfo . . . . >
        > <Title>Some Title</Title>
        >  . . . . .
        > </Procedure>
        >
        > Created three files and put them in
        > Tomcat_Home\webapps\ops\WEB-INF\resources\apps\taminoSample:
        >
        > page-flow.xml -
        >
        > <config xmlns=" http://www.orbeon.com/oxf/controller
<http://www.orbeon.com/oxf/controller> ">
        > <page path-info="/taminoSample/" model="XQuery.xpl"
view="view.xhtml"/>
        > <epilogue url="oxf:/config/epilogue.xpl"/>
        > </config>
        >
        > XQuery.xpl -
        >
        > <p:config xmlns:p="http://www.orbeon.com/oxf/pipeline"
        > xmlns:oxf=" http://www.orbeon.com/oxf/processors
<http://www.orbeon.com/oxf/processors> "
        > xmlns:ino="http://namespaces.softwareag.com/tamino/response2"
        > xmlns:xql=" http://metalab.unc.edu/xql/
<http://metalab.unc.edu/xql/> "
        > xmlns:xi="http://www.w3.org/2001/XInclude"
        > xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance
<http://www.w3.org/2001/XMLSchema-instance> "
        >
xmlns:xq="http://namespaces.softwareag.com/tamino/XQuery/result">
        > <p:param type="output" name="data"/>
        > <p:processor name="oxf:tamino-query">
        > <p:input name="config">
        > <config>
        > <url>http://localhost/tamino/mydb </url>
        > <collection>mycollection</collection>
        > </config>
        > </p:input>
        > <p:input name="data">
        > <xquery>
        > for $q in input()/Procedure[//@ID="IDD32"]
        > let $r := $q/Title
        > return $r
        > </xquery>
        > </p:input>
        > <p:output name="data" ref="data" debug="result"/>
        > </p:processor>
        > </p:config>
        >
        > view.xhtml -
        >
        > <html xmlns="http://www.w3.org/1999/xhtml"
        > xmlns:xforms=" http://www.w3.org/2002/xforms
<http://www.w3.org/2002/xforms> "
        > xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"
        > xmlns:ino=" http://namespaces.softwareag.com/tamino/response2
<http://namespaces.softwareag.com/tamino/response2> "
        > xmlns:xql="http://metalab.unc.edu/xql/"
        > xmlns:xi=" http://www.w3.org/2001/XInclude
<http://www.w3.org/2001/XInclude> "
        > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        > xmlns:xq="
http://namespaces.softwareag.com/tamino/XQuery/result
<http://namespaces.softwareag.com/tamino/XQuery/result> ">
        > <head>
        > <title>Tamino Sample</title>
        > <xforms:model>
        > <xforms:instance id="sampleData">
        > <result>
        > <xi:include href="input:data" />
        > </result>
        > </xforms:instance>
        > </xforms:model>
        > </head>
        > <body>
        > <p>
        > <i>XQuery Result</i>
        > </p>
        > <p>
        > <xforms:output ref="instance('sampleData')//Title" />
        > </p>
        > <widget:xforms-instance-inspector
        > xmlns:widget="http://orbeon.org/oxf/xml/widget" />
        > </body>
        > </html>
        >
        > Typed http://localhost:8080/ops/taminoSample/ in browser.
        >
        > I hope this is helpful to anyone struggling with getting
Tamino and
        > Orbeon to work.
        >
        > Julia Jacobs
        >
        >
        >
       
       
        --
        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]
<mailto:[hidden email]> ?subject=help
        ObjectWeb mailing lists service home page:
http://www.objectweb.org/wws
       
       





--
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