eXist Server / Tomcat collaboration

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

eXist Server / Tomcat collaboration

Martin Mohnhaupt
Hello to the group!

I use Tomcat (port 90) to serve orbeon forms. My application captures a memo and saves it the eXist database.
To verify the data is correctly written to eXist, I installed eXist (eXist-snapshot-20060316.jar, port 8080) and made the appropriate changes to look into the oxf eXist database which works fine.

When I start the exist server before tomcat, I can see my data with the Java client, but in OXF, i get a "Error opening dom.dbx" when saving my document.
When I start Tomcat first, my eXist server wont start (java.io.IOException: The process cannot access the file because another process has locked a portion of the file).

What can be done ?

All advise is most welcome :-)

Martin

-- 
Martin Mohnhaupt
Nice Data Systems
Rue de Lyon 42 - CH 1203 GENEVE
Tél: +41 (0) 22 344 11 39
Mob: +41 (0) 78 636 00 75
Email: [hidden email]
Web: http://www.nicedata.com
Skype: martin.mohnhaupt
Action Carbone: http://www.actioncarbone.org


--
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: eXist Server / Tomcat collaboration

Alessandro  Vernet
Administrator
Hi Martin,

It looks like you have both your separate install of eXist, and the
eXist bundled with Orbeon Forms that are trying to access the database
files. If you are running a separate eXist, you might want to keep the
database files where that separate eXist stores them by default, and
you can also disable the eXist bundled with Orbeon Forms by commenting
the appropriate entries in the Orbeon Forms web.xml.

You'll let us how this works out for you!

Alex

On 11/30/06, Martin Mohnhaupt <[hidden email]> wrote:

>
>  Hello to the group!
>
>  I use Tomcat (port 90) to serve orbeon forms. My application captures a
> memo and saves it the eXist database.
>  To verify the data is correctly written to eXist, I installed eXist
> (eXist-snapshot-20060316.jar, port 8080) and made the appropriate changes to
> look into the oxf eXist database which works fine.
>
>  When I start the exist server before tomcat, I can see my data with the
> Java client, but in OXF, i get a "Error opening dom.dbx" when saving my
> document.
>  When I start Tomcat first, my eXist server wont start (java.io.IOException:
> The process cannot access the file because another process has locked a
> portion of the file).
>
>  What can be done ?
>
>  All advise is most welcome :-)
>
>  Martin
>
>  --
> Martin Mohnhaupt
> Nice Data Systems
> Rue de Lyon 42 - CH 1203 GENEVE
> Tél: +41 (0) 22 344 11 39
> Mob: +41 (0) 78 636 00 75
> Email: [hidden email]
> Web: http://www.nicedata.com
> Skype: martin.mohnhaupt
> Action Carbone: http://www.actioncarbone.org
>
>
> --
> 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
Reply | Threaded
Open this post in threaded view
|

Re: eXist Server / Tomcat collaboration

Martin Mohnhaupt
In reply to this post by Martin Mohnhaupt
Hello again,

Finally I read the doc(!) an solved my problem in this way:

1) Installed eXist newcore 1.1 serving port 9999

2) In OXF, disabled the servlets and servlet-mappings related to the embedded eXist (in web.xml) by commenting out the concerned lines

3) Changed my datasource spec to look like this:

<datasource> 
    <driver-class-name>org.exist.xmldb.DatabaseImpl</driver-class-name> 
    <uri>xmldb:exist://localhost:9999/exist/xmlrpc</uri> 
    <username>admin</username> 
    <password></password> 
</datasource>

And miracle, I now can administer the eXist db with the java client tool and store data from OXF.

Kind regards

Martin


Martin Mohnhaupt wrote:
Hello to the group!

I use Tomcat (port 90) to serve orbeon forms. My application captures a memo and saves it the eXist database.
To verify the data is correctly written to eXist, I installed eXist (eXist-snapshot-20060316.jar, port 8080) and made the appropriate changes to look into the oxf eXist database which works fine.

When I start the exist server before tomcat, I can see my data with the Java client, but in OXF, i get a "Error opening dom.dbx" when saving my document.
When I start Tomcat first, my eXist server wont start (java.io.IOException: The process cannot access the file because another process has locked a portion of the file).

What can be done ?

All advise is most welcome :-)

Martin

-- 
Martin Mohnhaupt
Nice Data Systems
Rue de Lyon 42 - CH 1203 GENEVE
Tél: +41 (0) 22 344 11 39
Mob: +41 (0) 78 636 00 75
Email: [hidden email]
Web: http://www.nicedata.com
Skype: martin.mohnhaupt
Action Carbone: http://www.actioncarbone.org

-- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: [hidden email] For general help: [hidden email] ObjectWeb mailing lists service home page: http://www.objectweb.org/wws

-- 
Martin Mohnhaupt
Nice Data Systems
Rue de Lyon 42 - CH 1203 GENEVE
Tél: +41 (0) 22 344 11 39
Mob: +41 (0) 78 636 00 75
Email: [hidden email]
Web: http://www.nicedata.com
Skype: martin.mohnhaupt
Action Carbone: http://www.actioncarbone.org


--
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: eXist Server / Tomcat collaboration

Alessandro  Vernet
Administrator
On 12/2/06, Martin Mohnhaupt <[hidden email]> wrote:
>  And miracle, I now can administer the eXist db with the java client tool
> and store data from OXF.

Excellent!

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