deploy application EXIST-DB

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

deploy application EXIST-DB

stefan du Château
Hello
I am developing an exist-db xquery application with eXide ide.
By default it is possible to access the application with type url
Localhost:8080/exist/apps/NAMEAPP/index.html

I would like to know how to deploy this application to be able to interrogate it with a URL like localhost:8080/index.html

Best regards

Stefan du Château
[hidden email]




------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open
Reply | Threaded
Open this post in threaded view
|

Re: deploy application EXIST-DB

Peter Stadler
Salut Stefan,

to my knowledge you’d have to change two files:
* $exist-root$/tools/jetty/etc/jetty.xml: change the exist-webapp-context, i.e. from <Set name="contextPath">/exist</Set> to <Set name="contextPath">/</Set>
* $exist-root$/webapp/WEB-INF/controller-config.xml: change the last root pattern from <root pattern=".*" path="/"/> to <root pattern=".*" path="xmldb:exist:///db/apps/NAMEAPP“/>

Best
Peter

> Am 11.11.2016 um 12:31 schrieb stefan du Château <[hidden email]>:
>
> Hello
> I am developing an exist-db xquery application with eXide ide.
> By default it is possible to access the application with type url
> Localhost:8080/exist/apps/NAMEAPP/index.html
>
> I would like to know how to deploy this application to be able to interrogate it with a URL like localhost:8080/index.html
>
> Best regards
>
> Stefan du Château
> [hidden email]
>
>
>
>
> ------------------------------------------------------------------------------
> Developer Access Program for Intel Xeon Phi Processors
> Access to Intel Xeon Phi processor-based developer platforms.
> With one year of Intel Parallel Studio XE.
> Training and support from Colfax.
> Order your platform today. http://sdm.link/xeonphi
> _______________________________________________
> Exist-open mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/exist-open
--
Peter Stadler
Carl-Maria-von-Weber-Gesamtausgabe
Arbeitsstelle Detmold
Hornsche Str. 39
D-32756 Detmold
Tel. +49 5231 975-676
Fax: +49 5231 975-668
stadler at weber-gesamtausgabe.de
www.weber-gesamtausgabe.de


------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open

signature.asc (465 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: deploy application EXIST-DB

stefan du Château
Here are the results of the changes:

If I modify the two files and if I open url http://localhost:8080 I recover an error

HTTP ERROR 404

Problem accessing /exist. Reason:
Document /db/apps/NAMEAPP/exist not found

If I change only $exist-root$/webapp/WEB-INF/controller-config.xml like this
<Root pattern = ".*" Path="xmldb:exists:///db/apps/NAMEAPP"/>

Opening of the url http://localhost:8080  is redirected to http://localhost:8080/exist/index.html

The index page appears, but with the partial loss of layout

Stefan du Château
[hidden email]



> Le 11 nov. 2016 à 13:52, Peter Stadler <[hidden email]> a écrit :
>
> Salut Stefan,
>
> to my knowledge you’d have to change two files:
> * $exist-root$/tools/jetty/etc/jetty.xml: change the exist-webapp-context, i.e. from <Set name="contextPath">/exist</Set> to <Set name="contextPath">/</Set>
> * $exist-root$/webapp/WEB-INF/controller-config.xml: change the last root pattern from <root pattern=".*" path="/"/> to <root pattern=".*" path="xmldb:exist:///db/apps/NAMEAPP“/>
>
> Best
> Peter
>
>> Am 11.11.2016 um 12:31 schrieb stefan du Château <[hidden email]>:
>>
>> Hello
>> I am developing an exist-db xquery application with eXide ide.
>> By default it is possible to access the application with type url
>> Localhost:8080/exist/apps/NAMEAPP/index.html
>>
>> I would like to know how to deploy this application to be able to interrogate it with a URL like localhost:8080/index.html
>>
>> Best regards
>>
>> Stefan du Château
>> [hidden email]
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Developer Access Program for Intel Xeon Phi Processors
>> Access to Intel Xeon Phi processor-based developer platforms.
>> With one year of Intel Parallel Studio XE.
>> Training and support from Colfax.
>> Order your platform today. http://sdm.link/xeonphi
>> _______________________________________________
>> Exist-open mailing list
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/exist-open
>
> --
> Peter Stadler
> Carl-Maria-von-Weber-Gesamtausgabe
> Arbeitsstelle Detmold
> Hornsche Str. 39
> D-32756 Detmold
> Tel. +49 5231 975-676
> Fax: +49 5231 975-668
> stadler at weber-gesamtausgabe.de
> www.weber-gesamtausgabe.de
>


------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open
Reply | Threaded
Open this post in threaded view
|

Re: deploy application EXIST-DB

Peter Stadler
Sorry, I forgot to mention that you’d need to restart eXist-db after applying these changes.

Second, could that be a caching problem with your browser?

Another thing to look out for would be the log files. When you start eXist-db, there should be some message saying "Server has started on ports 8080 8443. Configured contexts: '/exist' " – what does it say for you?

Last, could you provide some information about your system: eXist version, OS, Java

Best
Peter


> Am 11.11.2016 um 15:32 schrieb stefan du Château <[hidden email]>:
>
> Here are the results of the changes:
>
> If I modify the two files and if I open url http://localhost:8080 I recover an error
>
> HTTP ERROR 404
>
> Problem accessing /exist. Reason:
> Document /db/apps/NAMEAPP/exist not found
>
> If I change only $exist-root$/webapp/WEB-INF/controller-config.xml like this
> <Root pattern = ".*" Path="xmldb:exists:///db/apps/NAMEAPP"/>
>
> Opening of the url http://localhost:8080  is redirected to http://localhost:8080/exist/index.html
>
> The index page appears, but with the partial loss of layout
>
> Stefan du Château
> [hidden email]
>
>
>
>> Le 11 nov. 2016 à 13:52, Peter Stadler <[hidden email]> a écrit :
>>
>> Salut Stefan,
>>
>> to my knowledge you’d have to change two files:
>> * $exist-root$/tools/jetty/etc/jetty.xml: change the exist-webapp-context, i.e. from <Set name="contextPath">/exist</Set> to <Set name="contextPath">/</Set>
>> * $exist-root$/webapp/WEB-INF/controller-config.xml: change the last root pattern from <root pattern=".*" path="/"/> to <root pattern=".*" path="xmldb:exist:///db/apps/NAMEAPP“/>
>>
>> Best
>> Peter
>>
>>> Am 11.11.2016 um 12:31 schrieb stefan du Château <[hidden email]>:
>>>
>>> Hello
>>> I am developing an exist-db xquery application with eXide ide.
>>> By default it is possible to access the application with type url
>>> Localhost:8080/exist/apps/NAMEAPP/index.html
>>>
>>> I would like to know how to deploy this application to be able to interrogate it with a URL like localhost:8080/index.html
>>>
>>> Best regards
>>>
>>> Stefan du Château
>>> [hidden email]
>>>
>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Developer Access Program for Intel Xeon Phi Processors
>>> Access to Intel Xeon Phi processor-based developer platforms.
>>> With one year of Intel Parallel Studio XE.
>>> Training and support from Colfax.
>>> Order your platform today. http://sdm.link/xeonphi
>>> _______________________________________________
>>> Exist-open mailing list
>>> [hidden email]
>>> https://lists.sourceforge.net/lists/listinfo/exist-open
>>
>> --
>> Peter Stadler
>> Carl-Maria-von-Weber-Gesamtausgabe
>> Arbeitsstelle Detmold
>> Hornsche Str. 39
>> D-32756 Detmold
>> Tel. +49 5231 975-676
>> Fax: +49 5231 975-668
>> stadler at weber-gesamtausgabe.de
>> www.weber-gesamtausgabe.de
>>
>
--
Peter Stadler
Carl-Maria-von-Weber-Gesamtausgabe
Arbeitsstelle Detmold
Hornsche Str. 39
D-32756 Detmold
Tel. +49 5231 975-676
Fax: +49 5231 975-668
stadler at weber-gesamtausgabe.de
www.weber-gesamtausgabe.de


------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open

signature.asc (465 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: deploy application EXIST-DB

stefan du Château
Hi,


Le 11 nov. 2016 à 17:03, Peter Stadler <[hidden email]> a écrit :


Sorry, I forgot to mention that you’d need to restart eXist-db after applying these changes.
The server was restarted


Second, could that be a caching problem with your browser?

Another thing to look out for would be the log files. When you start eXist-db, there should be some message saying "Server has started on ports 8080 8443. Configured contexts: '/exist' " – what does it say for you?

This is the copy of log file; sorry this file is long:
2016-11-11 17:38:43,975 [AWT-EventQueue-0] ERROR (Configurator.java [configure]:263) - Index: 0, Size: 0 
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.rangeCheck(ArrayList.java:653) ~[?:1.8.0_73]
at java.util.ArrayList.get(ArrayList.java:429) ~[?:1.8.0_73]
at org.exist.config.Configurator.configureByCurrent(Configurator.java:486) ~[exist.jar:?]
at org.exist.config.Configurator.configure(Configurator.java:261) ~[exist.jar:?]
at org.exist.security.AbstractPrincipal.setCollection(AbstractPrincipal.java:160) ~[exist.jar:?]
at org.exist.security.AbstractRealm.lambda$loadGroupsFromRealmStorage$31(AbstractRealm.java:134) ~[exist.jar:?]
at org.exist.security.AbstractRealm$PrincipalDbByName.modifyE(AbstractRealm.java:522) [exist.jar:?]
at org.exist.security.AbstractRealm.loadGroupsFromRealmStorage(AbstractRealm.java:123) [exist.jar:?]
at org.exist.security.AbstractRealm.start(AbstractRealm.java:222) [exist.jar:?]
at org.exist.security.internal.RealmImpl.start(RealmImpl.java:141) [exist.jar:?]
at org.exist.security.internal.SecurityManagerImpl.attach(SecurityManagerImpl.java:211) [exist.jar:?]
at org.exist.storage.BrokerPool.initialize(BrokerPool.java:945) [exist.jar:?]
at org.exist.storage.BrokerPool.<init>(BrokerPool.java:720) [exist.jar:?]
at org.exist.storage.BrokerPool.configure(BrokerPool.java:254) [exist.jar:?]
at org.exist.storage.BrokerPool.configure(BrokerPool.java:228) [exist.jar:?]
at org.exist.jetty.JettyStart.run(JettyStart.java:167) [exist-optional.jar:?]
at org.exist.launcher.Launcher$7.actionPerformed(Launcher.java:219) [exist.jar:?]
at java.awt.MenuItem.processActionEvent(MenuItem.java:669) [?:1.8.0_73]
at java.awt.MenuItem.processEvent(MenuItem.java:628) [?:1.8.0_73]
at java.awt.MenuComponent.dispatchEventImpl(MenuComponent.java:351) [?:1.8.0_73]
at java.awt.MenuComponent.dispatchEvent(MenuComponent.java:339) [?:1.8.0_73]
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:761) [?:1.8.0_73]
at java.awt.EventQueue.access$500(EventQueue.java:97) [?:1.8.0_73]
at java.awt.EventQueue$3.run(EventQueue.java:709) [?:1.8.0_73]
at java.awt.EventQueue$3.run(EventQueue.java:703) [?:1.8.0_73]
at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_73]
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76) [?:1.8.0_73]
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86) [?:1.8.0_73]
at java.awt.EventQueue$4.run(EventQueue.java:731) [?:1.8.0_73]
at java.awt.EventQueue$4.run(EventQueue.java:729) [?:1.8.0_73]
at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_73]
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76) [?:1.8.0_73]
at java.awt.EventQueue.dispatchEvent(EventQueue.java:728) [?:1.8.0_73]
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201) [?:1.8.0_73]
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116) [?:1.8.0_73]
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105) [?:1.8.0_73]
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) [?:1.8.0_73]
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) [?:1.8.0_73]
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82) [?:1.8.0_73]
2016-11-11 17:38:43,981 [AWT-EventQueue-0] INFO  (NativeBroker.java [sync]:3631) - Memory: 359 936K total; 932 352K max; 291 282K free 
2016-11-11 17:38:43,981 [AWT-EventQueue-0] INFO  (BTree.java [printStatistics]:2539) - dom.dbx INDEX Buffers occupation : 39 % (25 out of 64) Cache efficiency : 99 % 
2016-11-11 17:38:43,981 [AWT-EventQueue-0] INFO  (DOMFile.java [printStatistics]:1362) - dom.dbx DATA Buffers occupation : 13 % (34 out of 256) Cache efficiency : 99 % 
2016-11-11 17:38:43,981 [AWT-EventQueue-0] INFO  (BTree.java [printStatistics]:2539) - collections.dbx INDEX Buffers occupation : 19 % (12 out of 64) Cache efficiency : 93 % 
2016-11-11 17:38:43,982 [AWT-EventQueue-0] INFO  (BFile.java [printStatistics]:437) - collections.dbx DATA Buffers occupation : 20 % (13 out of 64) Cache efficiency : 83 % 
2016-11-11 17:38:43,982 [AWT-EventQueue-0] INFO  (BTree.java [printStatistics]:2539) - values.dbx INDEX Buffers occupation : 0 % (0 out of 64) Cache efficiency : N/A 
2016-11-11 17:38:43,982 [AWT-EventQueue-0] INFO  (BFile.java [printStatistics]:437) - values.dbx DATA Buffers occupation : 0 % (0 out of 64) Cache efficiency : N/A 
2016-11-11 17:38:44,106 [AWT-EventQueue-0] INFO  (JettyStart.java [lifeCycleStarting]:414) - Jetty server starting... 
2016-11-11 17:38:44,106 [AWT-EventQueue-0] INFO  (Server.java [doStart]:272) - jetty-8.1.17.v20150415 
2016-11-11 17:38:44,218 [AWT-EventQueue-0] INFO  (AbstractExistHttpServlet.java [getOrCreateBrokerPool]:97) - Database already started. Skipping configuration ... 
2016-11-11 17:38:44,218 [AWT-EventQueue-0] INFO  (AbstractExistHttpServlet.java [doGeneralExistServletConfig]:199) - Using default user guest for all unauthorized requests. 
2016-11-11 17:38:44,219 [AWT-EventQueue-0] INFO  (XmlLibraryChecker.java [check]:149) - Looking for a valid Parser...
Checking for Xerces, found version Xerces-J 2.11.0
OK!
 
2016-11-11 17:38:44,220 [AWT-EventQueue-0] INFO  (XmlLibraryChecker.java [check]:171) - Looking for a valid Transformer...
Checking for Saxon, found version 9.4.0.7
OK!
 
2016-11-11 17:38:44,221 [AWT-EventQueue-0] INFO  (XmlLibraryChecker.java [check]:183) - Looking for a valid Resolver...
Checking for Resolver, found version XmlResolver 1.2
OK!
 
2016-11-11 17:38:44,221 [AWT-EventQueue-0] INFO  (XmlLibraryChecker.java [check]:189) - Using parser org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser 
2016-11-11 17:38:44,222 [AWT-EventQueue-0] INFO  (XmlLibraryChecker.java [check]:190) - Using transformer net.sf.saxon.IdentityTransformer 
2016-11-11 17:38:44,222 [AWT-EventQueue-0] INFO  (NCSARequestLog.java [doStart]:665) - Opened /Applications/eXist-db.app/Contents/Resources/eXist-db/tools/jetty/logs/2016_11_11.request.log 
2016-11-11 17:38:44,223 [AWT-EventQueue-0] INFO  (ScanningAppProvider.java [doStart]:113) - Deployment monitor /Applications/eXist-db.app/Contents/Resources/eXist-db/tools/jetty/contexts at interval 10 
2016-11-11 17:38:44,223 [AWT-EventQueue-0] INFO  (ScanningAppProvider.java [doStart]:113) - Deployment monitor /Applications/eXist-db.app/Contents/Resources/eXist-db/tools/jetty/webapps at interval 10 
2016-11-11 17:38:44,224 [AWT-EventQueue-0] INFO  (DeploymentManager.java [addApp]:132) - Deployable added: /Applications/eXist-db.app/Contents/Resources/eXist-db/tools/jetty/webapps/homepage 
2016-11-11 17:38:44,240 [AWT-EventQueue-0] INFO  (DeploymentManager.java [addApp]:132) - Deployable added: /Applications/eXist-db.app/Contents/Resources/eXist-db/tools/jetty/webapps/portal 
2016-11-11 17:38:44,257 [AWT-EventQueue-0] INFO  (AbstractConnector.java [doStart]:338) - Started [hidden email]:8080 
2016-11-11 17:38:44,259 [AWT-EventQueue-0] INFO  (SslContextFactory.java [doStart]:300) - Enabled Protocols [SSLv2Hello, TLSv1, TLSv1.1, TLSv1.2] of [SSLv2Hello, SSLv3, TLSv1, TLSv1.1, TLSv1.2] 
2016-11-11 17:38:44,260 [AWT-EventQueue-0] INFO  (AbstractConnector.java [doStart]:338) - Started [hidden email]:8443 
2016-11-11 17:38:44,261 [AWT-EventQueue-0] INFO  (JettyStart.java [lifeCycleStarted]:422) - Jetty server started. 
2016-11-11 17:38:44,267 [AWT-EventQueue-0] INFO  (JettyStart.java [run]:234) - ----------------------------------------------------- 
2016-11-11 17:38:44,267 [AWT-EventQueue-0] INFO  (JettyStart.java [run]:235) - Server has started on ports 8080 8443. Configured contexts: 
2016-11-11 17:38:44,267 [AWT-EventQueue-0] INFO  (JettyStart.java [run]:244) - '/' 
2016-11-11 17:38:44,268 [AWT-EventQueue-0] INFO  (JettyStart.java [run]:282) - ----------------------------------------------------- 
2016-11-11 17:39:34,133 [eXistThread-218] INFO  (Descriptor.java [<init>]:103) - Reading Descriptor from file /Applications/eXist-db.app/Contents/Resources/eXist-db/descriptor.xml 
 


Last, could you provide some information about your system: eXist version, OS, Java
eXist 3.0 RC1
OS MAC OS X EL CAPITAN
Java 8 Update 73



Best
Peter


Am 11.11.2016 um 15:32 schrieb stefan du Château <[hidden email]>:

Here are the results of the changes:

If I modify the two files and if I open url http://localhost:8080 I recover an error

HTTP ERROR 404

Problem accessing /exist. Reason:
Document /db/apps/NAMEAPP/exist not found

If I change only $exist-root$/webapp/WEB-INF/controller-config.xml like this
<Root pattern = ".*" Path="xmldb:exists:///db/apps/NAMEAPP"/>

Opening of the url http://localhost:8080  is redirected to http://localhost:8080/exist/index.html

The index page appears, but with the partial loss of layout

Stefan du Château
[hidden email]



Le 11 nov. 2016 à 13:52, Peter Stadler <[hidden email]> a écrit :

Salut Stefan,

to my knowledge you’d have to change two files:
* $exist-root$/tools/jetty/etc/jetty.xml: change the exist-webapp-context, i.e. from <Set name="contextPath">/exist</Set> to <Set name="contextPath">/</Set>
* $exist-root$/webapp/WEB-INF/controller-config.xml: change the last root pattern from <root pattern=".*" path="/"/> to <root pattern=".*" path="xmldb:exist:///db/apps/NAMEAPP“/>

Best
Peter

Am 11.11.2016 um 12:31 schrieb stefan du Château <[hidden email]>:

Hello
I am developing an exist-db xquery application with eXide ide.
By default it is possible to access the application with type url
Localhost:8080/exist/apps/NAMEAPP/index.html

I would like to know how to deploy this application to be able to interrogate it with a URL like localhost:8080/index.html

Best regards

Stefan du Château
[hidden email]




------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open

--
Peter Stadler
Carl-Maria-von-Weber-Gesamtausgabe
Arbeitsstelle Detmold
Hornsche Str. 39
D-32756 Detmold
Tel. +49 5231 975-676
Fax: +49 5231 975-668
stadler at weber-gesamtausgabe.de
www.weber-gesamtausgabe.de



--
Peter Stadler
Carl-Maria-von-Weber-Gesamtausgabe
Arbeitsstelle Detmold
Hornsche Str. 39
D-32756 Detmold
Tel. +49 5231 975-676
Fax: +49 5231 975-668
stadler at weber-gesamtausgabe.de
www.weber-gesamtausgabe.de


------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open
Reply | Threaded
Open this post in threaded view
|

Re: deploy application EXIST-DB

stefan du Château
In reply to this post by Peter Stadler
I empty the browser's cash.
Now the index page is displayed with url http://localhost:8080/index.html
But the entire layout is lost

Stefan du Château
[hidden email]



> Le 11 nov. 2016 à 17:03, Peter Stadler <[hidden email]> a écrit :
>
> Sorry, I forgot to mention that you’d need to restart eXist-db after applying these changes.
>
> Second, could that be a caching problem with your browser?
>
> Another thing to look out for would be the log files. When you start eXist-db, there should be some message saying "Server has started on ports 8080 8443. Configured contexts: '/exist' " – what does it say for you?
>
> Last, could you provide some information about your system: eXist version, OS, Java
>
> Best
> Peter
>
>
>> Am 11.11.2016 um 15:32 schrieb stefan du Château <[hidden email]>:
>>
>> Here are the results of the changes:
>>
>> If I modify the two files and if I open url http://localhost:8080 I recover an error
>>
>> HTTP ERROR 404
>>
>> Problem accessing /exist. Reason:
>> Document /db/apps/NAMEAPP/exist not found
>>
>> If I change only $exist-root$/webapp/WEB-INF/controller-config.xml like this
>> <Root pattern = ".*" Path="xmldb:exists:///db/apps/NAMEAPP"/>
>>
>> Opening of the url http://localhost:8080  is redirected to http://localhost:8080/exist/index.html
>>
>> The index page appears, but with the partial loss of layout
>>
>> Stefan du Château
>> [hidden email]
>>
>>
>>
>>> Le 11 nov. 2016 à 13:52, Peter Stadler <[hidden email]> a écrit :
>>>
>>> Salut Stefan,
>>>
>>> to my knowledge you’d have to change two files:
>>> * $exist-root$/tools/jetty/etc/jetty.xml: change the exist-webapp-context, i.e. from <Set name="contextPath">/exist</Set> to <Set name="contextPath">/</Set>
>>> * $exist-root$/webapp/WEB-INF/controller-config.xml: change the last root pattern from <root pattern=".*" path="/"/> to <root pattern=".*" path="xmldb:exist:///db/apps/NAMEAPP“/>
>>>
>>> Best
>>> Peter
>>>
>>>> Am 11.11.2016 um 12:31 schrieb stefan du Château <[hidden email]>:
>>>>
>>>> Hello
>>>> I am developing an exist-db xquery application with eXide ide.
>>>> By default it is possible to access the application with type url
>>>> Localhost:8080/exist/apps/NAMEAPP/index.html
>>>>
>>>> I would like to know how to deploy this application to be able to interrogate it with a URL like localhost:8080/index.html
>>>>
>>>> Best regards
>>>>
>>>> Stefan du Château
>>>> [hidden email]
>>>>
>>>>
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Developer Access Program for Intel Xeon Phi Processors
>>>> Access to Intel Xeon Phi processor-based developer platforms.
>>>> With one year of Intel Parallel Studio XE.
>>>> Training and support from Colfax.
>>>> Order your platform today. http://sdm.link/xeonphi
>>>> _______________________________________________
>>>> Exist-open mailing list
>>>> [hidden email]
>>>> https://lists.sourceforge.net/lists/listinfo/exist-open
>>>
>>> --
>>> Peter Stadler
>>> Carl-Maria-von-Weber-Gesamtausgabe
>>> Arbeitsstelle Detmold
>>> Hornsche Str. 39
>>> D-32756 Detmold
>>> Tel. +49 5231 975-676
>>> Fax: +49 5231 975-668
>>> stadler at weber-gesamtausgabe.de
>>> www.weber-gesamtausgabe.de
>>>
>>
>
> --
> Peter Stadler
> Carl-Maria-von-Weber-Gesamtausgabe
> Arbeitsstelle Detmold
> Hornsche Str. 39
> D-32756 Detmold
> Tel. +49 5231 975-676
> Fax: +49 5231 975-668
> stadler at weber-gesamtausgabe.de
> www.weber-gesamtausgabe.de
>


------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open
Reply | Threaded
Open this post in threaded view
|

Re: deploy application EXIST-DB

Peter Stadler
ok, probably the css and javascript links are broken.
When using eXide to create a new application, it links to those files within the /db/apps/shared-resources collection. Since apps is inaccessible now, you have to add another controller pattern
<root pattern=„/shared-resources" path="xmldb:exist:///db/apps/shared-resources“/>
before
<root pattern=".*" path="xmldb:exist:///db/apps/NAMEAPP“/>

Hope that helps
Peter

> Am 11.11.2016 um 18:23 schrieb stefan du Château <[hidden email]>:
>
> I empty the browser's cash.
> Now the index page is displayed with url http://localhost:8080/index.html
> But the entire layout is lost
>
> Stefan du Château
> [hidden email]
>
>
>
>> Le 11 nov. 2016 à 17:03, Peter Stadler <[hidden email]> a écrit :
>>
>> Sorry, I forgot to mention that you’d need to restart eXist-db after applying these changes.
>>
>> Second, could that be a caching problem with your browser?
>>
>> Another thing to look out for would be the log files. When you start eXist-db, there should be some message saying "Server has started on ports 8080 8443. Configured contexts: '/exist' " – what does it say for you?
>>
>> Last, could you provide some information about your system: eXist version, OS, Java
>>
>> Best
>> Peter
>>
>>
>>> Am 11.11.2016 um 15:32 schrieb stefan du Château <[hidden email]>:
>>>
>>> Here are the results of the changes:
>>>
>>> If I modify the two files and if I open url http://localhost:8080 I recover an error
>>>
>>> HTTP ERROR 404
>>>
>>> Problem accessing /exist. Reason:
>>> Document /db/apps/NAMEAPP/exist not found
>>>
>>> If I change only $exist-root$/webapp/WEB-INF/controller-config.xml like this
>>> <Root pattern = ".*" Path="xmldb:exists:///db/apps/NAMEAPP"/>
>>>
>>> Opening of the url http://localhost:8080  is redirected to http://localhost:8080/exist/index.html
>>>
>>> The index page appears, but with the partial loss of layout
>>>
>>> Stefan du Château
>>> [hidden email]
>>>
>>>
>>>
>>>> Le 11 nov. 2016 à 13:52, Peter Stadler <[hidden email]> a écrit :
>>>>
>>>> Salut Stefan,
>>>>
>>>> to my knowledge you’d have to change two files:
>>>> * $exist-root$/tools/jetty/etc/jetty.xml: change the exist-webapp-context, i.e. from <Set name="contextPath">/exist</Set> to <Set name="contextPath">/</Set>
>>>> * $exist-root$/webapp/WEB-INF/controller-config.xml: change the last root pattern from <root pattern=".*" path="/"/> to <root pattern=".*" path="xmldb:exist:///db/apps/NAMEAPP“/>
>>>>
>>>> Best
>>>> Peter
>>>>
>>>>> Am 11.11.2016 um 12:31 schrieb stefan du Château <[hidden email]>:
>>>>>
>>>>> Hello
>>>>> I am developing an exist-db xquery application with eXide ide.
>>>>> By default it is possible to access the application with type url
>>>>> Localhost:8080/exist/apps/NAMEAPP/index.html
>>>>>
>>>>> I would like to know how to deploy this application to be able to interrogate it with a URL like localhost:8080/index.html
>>>>>
>>>>> Best regards
>>>>>
>>>>> Stefan du Château
>>>>> [hidden email]
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>> Developer Access Program for Intel Xeon Phi Processors
>>>>> Access to Intel Xeon Phi processor-based developer platforms.
>>>>> With one year of Intel Parallel Studio XE.
>>>>> Training and support from Colfax.
>>>>> Order your platform today. http://sdm.link/xeonphi
>>>>> _______________________________________________
>>>>> Exist-open mailing list
>>>>> [hidden email]
>>>>> https://lists.sourceforge.net/lists/listinfo/exist-open
>>>>
>>
>
--
Peter Stadler
Carl-Maria-von-Weber-Gesamtausgabe
Arbeitsstelle Detmold
Hornsche Str. 39
D-32756 Detmold
Tel. +49 5231 975-676
Fax: +49 5231 975-668
stadler at weber-gesamtausgabe.de
www.weber-gesamtausgabe.de


------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open

signature.asc (465 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: deploy application EXIST-DB

stefan du Château
I'm sorry, but it's still the same problem
The page is displayed but without the layout.
I created under exide ide a new very simple application that only displays the page index.html

This application launches without problem with URL

http://localhost:8080/exist/apps/camargue/index.html

As soon as I make the changes:
<Set name = "contextPath">/</Set>
<root pattern = "/shared-resources" path = "xmldb:existing:///db/apps/shared-resources"/>
<root pattern = ". *" path="xmldb:exist:///db/apps/camargue"/>

The page is displayed without the layout

Stefan du Château
[hidden email]



> Le 11 nov. 2016 à 18:43, Peter Stadler <[hidden email]> a écrit :
>
> ok, probably the css and javascript links are broken.
> When using eXide to create a new application, it links to those files within the /db/apps/shared-resources collection. Since apps is inaccessible now, you have to add another controller pattern
> <root pattern=„/shared-resources" path="xmldb:exist:///db/apps/shared-resources“/>
> before
> <root pattern=".*" path="xmldb:exist:///db/apps/NAMEAPP“/>
>
> Hope that helps
> Peter
>
>> Am 11.11.2016 um 18:23 schrieb stefan du Château <[hidden email]>:
>>
>> I empty the browser's cash.
>> Now the index page is displayed with url http://localhost:8080/index.html
>> But the entire layout is lost
>>
>> Stefan du Château
>> [hidden email]
>>
>>
>>
>>> Le 11 nov. 2016 à 17:03, Peter Stadler <[hidden email]> a écrit :
>>>
>>> Sorry, I forgot to mention that you’d need to restart eXist-db after applying these changes.
>>>
>>> Second, could that be a caching problem with your browser?
>>>
>>> Another thing to look out for would be the log files. When you start eXist-db, there should be some message saying "Server has started on ports 8080 8443. Configured contexts: '/exist' " – what does it say for you?
>>>
>>> Last, could you provide some information about your system: eXist version, OS, Java
>>>
>>> Best
>>> Peter
>>>
>>>
>>>> Am 11.11.2016 um 15:32 schrieb stefan du Château <[hidden email]>:
>>>>
>>>> Here are the results of the changes:
>>>>
>>>> If I modify the two files and if I open url http://localhost:8080 I recover an error
>>>>
>>>> HTTP ERROR 404
>>>>
>>>> Problem accessing /exist. Reason:
>>>> Document /db/apps/NAMEAPP/exist not found
>>>>
>>>> If I change only $exist-root$/webapp/WEB-INF/controller-config.xml like this
>>>> <Root pattern = ".*" Path="xmldb:exists:///db/apps/NAMEAPP"/>
>>>>
>>>> Opening of the url http://localhost:8080  is redirected to http://localhost:8080/exist/index.html
>>>>
>>>> The index page appears, but with the partial loss of layout
>>>>
>>>> Stefan du Château
>>>> [hidden email]
>>>>
>>>>
>>>>
>>>>> Le 11 nov. 2016 à 13:52, Peter Stadler <[hidden email]> a écrit :
>>>>>
>>>>> Salut Stefan,
>>>>>
>>>>> to my knowledge you’d have to change two files:
>>>>> * $exist-root$/tools/jetty/etc/jetty.xml: change the exist-webapp-context, i.e. from <Set name="contextPath">/exist</Set> to <Set name="contextPath">/</Set>
>>>>> * $exist-root$/webapp/WEB-INF/controller-config.xml: change the last root pattern from <root pattern=".*" path="/"/> to <root pattern=".*" path="xmldb:exist:///db/apps/NAMEAPP“/>
>>>>>
>>>>> Best
>>>>> Peter
>>>>>
>>>>>> Am 11.11.2016 um 12:31 schrieb stefan du Château <[hidden email]>:
>>>>>>
>>>>>> Hello
>>>>>> I am developing an exist-db xquery application with eXide ide.
>>>>>> By default it is possible to access the application with type url
>>>>>> Localhost:8080/exist/apps/NAMEAPP/index.html
>>>>>>
>>>>>> I would like to know how to deploy this application to be able to interrogate it with a URL like localhost:8080/index.html
>>>>>>
>>>>>> Best regards
>>>>>>
>>>>>> Stefan du Château
>>>>>> [hidden email]
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> ------------------------------------------------------------------------------
>>>>>> Developer Access Program for Intel Xeon Phi Processors
>>>>>> Access to Intel Xeon Phi processor-based developer platforms.
>>>>>> With one year of Intel Parallel Studio XE.
>>>>>> Training and support from Colfax.
>>>>>> Order your platform today. http://sdm.link/xeonphi
>>>>>> _______________________________________________
>>>>>> Exist-open mailing list
>>>>>> [hidden email]
>>>>>> https://lists.sourceforge.net/lists/listinfo/exist-open
>>>>>
>>>
>>
>
> --
> Peter Stadler
> Carl-Maria-von-Weber-Gesamtausgabe
> Arbeitsstelle Detmold
> Hornsche Str. 39
> D-32756 Detmold
> Tel. +49 5231 975-676
> Fax: +49 5231 975-668
> stadler at weber-gesamtausgabe.de
> www.weber-gesamtausgabe.de
>


------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open
Reply | Threaded
Open this post in threaded view
|

Re: deploy application EXIST-DB

stefan du Château
Hello,
In addition to these changes
<Set name="contextPath">/</Set>
 <root pattern=".*" path="xmldb:exist:///db/apps/camargue"/>
 
I copied the shared-resources directory to the directory of my application and modified the declarations:
<Script type = "text/javascript" src = "shared-resources/resources/scripts/loadsource.js" />

It's an inelegant solution, but it works.

Best

Stefan du Château
[hidden email]



> Le 11 nov. 2016 à 20:35, stefan du Château <[hidden email]> a écrit :
>
> I'm sorry, but it's still the same problem
> The page is displayed but without the layout.
> I created under exide ide a new very simple application that only displays the page index.html
>
> This application launches without problem with URL
>
> http://localhost:8080/exist/apps/camargue/index.html
>
> As soon as I make the changes:
> <Set name = "contextPath">/</Set>
> <root pattern = "/shared-resources" path = "xmldb:existing:///db/apps/shared-resources"/>
> <root pattern = ". *" path="xmldb:exist:///db/apps/camargue"/>
>
> The page is displayed without the layout
>
> Stefan du Château
> [hidden email]
>
>
>
>> Le 11 nov. 2016 à 18:43, Peter Stadler <[hidden email]> a écrit :
>>
>> ok, probably the css and javascript links are broken.
>> When using eXide to create a new application, it links to those files within the /db/apps/shared-resources collection. Since apps is inaccessible now, you have to add another controller pattern
>> <root pattern=„/shared-resources" path="xmldb:exist:///db/apps/shared-resources“/>
>> before
>> <root pattern=".*" path="xmldb:exist:///db/apps/NAMEAPP“/>
>>
>> Hope that helps
>> Peter
>>
>>> Am 11.11.2016 um 18:23 schrieb stefan du Château <[hidden email]>:
>>>
>>> I empty the browser's cash.
>>> Now the index page is displayed with url http://localhost:8080/index.html
>>> But the entire layout is lost
>>>
>>> Stefan du Château
>>> [hidden email]
>>>
>>>
>>>
>>>> Le 11 nov. 2016 à 17:03, Peter Stadler <[hidden email]> a écrit :
>>>>
>>>> Sorry, I forgot to mention that you’d need to restart eXist-db after applying these changes.
>>>>
>>>> Second, could that be a caching problem with your browser?
>>>>
>>>> Another thing to look out for would be the log files. When you start eXist-db, there should be some message saying "Server has started on ports 8080 8443. Configured contexts: '/exist' " – what does it say for you?
>>>>
>>>> Last, could you provide some information about your system: eXist version, OS, Java
>>>>
>>>> Best
>>>> Peter
>>>>
>>>>
>>>>> Am 11.11.2016 um 15:32 schrieb stefan du Château <[hidden email]>:
>>>>>
>>>>> Here are the results of the changes:
>>>>>
>>>>> If I modify the two files and if I open url http://localhost:8080 I recover an error
>>>>>
>>>>> HTTP ERROR 404
>>>>>
>>>>> Problem accessing /exist. Reason:
>>>>> Document /db/apps/NAMEAPP/exist not found
>>>>>
>>>>> If I change only $exist-root$/webapp/WEB-INF/controller-config.xml like this
>>>>> <Root pattern = ".*" Path="xmldb:exists:///db/apps/NAMEAPP"/>
>>>>>
>>>>> Opening of the url http://localhost:8080  is redirected to http://localhost:8080/exist/index.html
>>>>>
>>>>> The index page appears, but with the partial loss of layout
>>>>>
>>>>> Stefan du Château
>>>>> [hidden email]
>>>>>
>>>>>
>>>>>
>>>>>> Le 11 nov. 2016 à 13:52, Peter Stadler <[hidden email]> a écrit :
>>>>>>
>>>>>> Salut Stefan,
>>>>>>
>>>>>> to my knowledge you’d have to change two files:
>>>>>> * $exist-root$/tools/jetty/etc/jetty.xml: change the exist-webapp-context, i.e. from <Set name="contextPath">/exist</Set> to <Set name="contextPath">/</Set>
>>>>>> * $exist-root$/webapp/WEB-INF/controller-config.xml: change the last root pattern from <root pattern=".*" path="/"/> to <root pattern=".*" path="xmldb:exist:///db/apps/NAMEAPP“/>
>>>>>>
>>>>>> Best
>>>>>> Peter
>>>>>>
>>>>>>> Am 11.11.2016 um 12:31 schrieb stefan du Château <[hidden email]>:
>>>>>>>
>>>>>>> Hello
>>>>>>> I am developing an exist-db xquery application with eXide ide.
>>>>>>> By default it is possible to access the application with type url
>>>>>>> Localhost:8080/exist/apps/NAMEAPP/index.html
>>>>>>>
>>>>>>> I would like to know how to deploy this application to be able to interrogate it with a URL like localhost:8080/index.html
>>>>>>>
>>>>>>> Best regards
>>>>>>>
>>>>>>> Stefan du Château
>>>>>>> [hidden email]
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> ------------------------------------------------------------------------------
>>>>>>> Developer Access Program for Intel Xeon Phi Processors
>>>>>>> Access to Intel Xeon Phi processor-based developer platforms.
>>>>>>> With one year of Intel Parallel Studio XE.
>>>>>>> Training and support from Colfax.
>>>>>>> Order your platform today. http://sdm.link/xeonphi
>>>>>>> _______________________________________________
>>>>>>> Exist-open mailing list
>>>>>>> [hidden email]
>>>>>>> https://lists.sourceforge.net/lists/listinfo/exist-open
>>>>>>
>>>>
>>>
>>
>> --
>> Peter Stadler
>> Carl-Maria-von-Weber-Gesamtausgabe
>> Arbeitsstelle Detmold
>> Hornsche Str. 39
>> D-32756 Detmold
>> Tel. +49 5231 975-676
>> Fax: +49 5231 975-668
>> stadler at weber-gesamtausgabe.de
>> www.weber-gesamtausgabe.de
>>
>
>
> ------------------------------------------------------------------------------
> Developer Access Program for Intel Xeon Phi Processors
> Access to Intel Xeon Phi processor-based developer platforms.
> With one year of Intel Parallel Studio XE.
> Training and support from Colfax.
> Order your platform today. http://sdm.link/xeonphi
> _______________________________________________
> Exist-open mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/exist-open


------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open