Re: [basex-talk] web.xml changed in BaseX 90 to servlet 4.0

2018-04-03 Thread Stefania Axo
what i was wondering if there was something that in BaseX 90 is depending 
on 4.0 level of servlet in general. 
In other words if it is safe to run BaseX 0  with an older level of 
servlet  like 3.1, for example.

i did contact the WebSphere developer to see when it would be available. I 
am waiting for an answer.

thanks
Stefania



From:   "Christian Grün" <christian.gr...@gmail.com>
To: Stefania Axo <st...@us.ibm.com>
Cc: BaseX <basex-talk@mailman.uni-konstanz.de>
Date:   03/31/2018 10:48 AM
Subject:Re: [basex-talk] web.xml changed in BaseX 90 to servlet 
4.0



Hi Stefania,

> I set on the BaseX 90 web.xml the old version of the servlet and that 
seemed
> to work. I am not sure if i will encounter other problems though.
> is the setting necessary in basex 9.0? or am i ok to downgraded for 
BaseX 90

I have no experience with WebSphere Liberty, so you may need to try if
everything works as expected.

As Servlet 4.0 is used a lot in practice nowadays: Did you already try
to contact the WebSphere developer team in order to find out when
version 4 will be supported?

Best,
Christian







[basex-talk] web.xml changed in BaseX 90 to servlet 4.0

2018-03-28 Thread Stefania Axo
hi
I downloaded the latest version of BaseX 9.0
I try to deploy on my WebSphere Liberty (WebSphere Application Server 
V16.0.0.2 )and got an error because the version of the servlet is now 4.0.

CWWKZ0002E: An exception occurred while starting the application BaseX. 
The exception message was: java.lang.IllegalStateException: 
com.ibm.wsspi.adaptable.module.UnableToAdaptException: 
com.ibm.ws.javaee.ddmodel.DDParser$ParseException: CWWKC2262E: The server 
is unable to process the 4.0 version and the 
http://xmlns.jcp.org/xml/ns/javaee namespace in the /WEB-INF/web.xml 
deployment descriptor on line 6. 


BaseX 8.67 web.xml had 
http://java.sun.com/xml/ns/javaee;
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;
  xsi:schemaLocation="http://java.sun.com/xml/ns/javaee 
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd;
  version="2.5">

Basex 9.0 web.xml has
http://xmlns.jcp.org/xml/ns/javaee; 
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance; 
  xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee 
http://www.oracle.com/webfolder/technetwork/jsc/xml/ns/javaee/web-app_4_0.xsd
" 
  version="4.0">

I set on the BaseX 90 web.xml the old version of the servlet and that 
seemed to work. I am not sure if i will encounter other problems though.
is the setting necessary in basex 9.0? or am i ok to downgraded for BaseX 
90 ? 

thanks
Stefania




Re: [basex-talk] SSL support for BaseX REST API

2018-03-21 Thread Stefania Axo
Hi Christian,
I am a little confused on where to set this property HTTOLOCAL ?
I would like to test it out.

thanks
Stefania



From:   "Christian Grün" <christian.gr...@gmail.com>
To: Stefania Axo <st...@us.ibm.com>
Cc: BaseX <basex-talk@mailman.uni-konstanz.de>, 
basex-talk-boun...@mailman.uni-konstanz.de, Giavanna J Richards 
<gjric...@us.ibm.com>
Date:   03/17/2018 06:38 AM
Subject:Re: [basex-talk] SSL support for BaseX REST API



Hi Stefania,

Exactly. If you have no need for the BaseX server instance, you can 
disable it by setting HTTOLOCAL to true [1].

Hope this helps,
Christian

[1] http://docs.basex.org/wiki/Options#HTTPLOCAL




Stefania Axo <st...@us.ibm.com> schrieb am Sa., 17. März 2018, 01:42:
Hi Christian

I was able to deploy basex.war (8.6.7) as expanded application under a 
server on WebSphere Liberty.
The server is setup to use https with SSL. 
So I can run with success the  BaseX Web Admin UI like 
https://localhost:9443/BaseX/dba/login?path=databasesand I can run Xquery 
from there.

The question is that the web application starts an instance of BaseXServer
that listen to 1984 port and that communication is not secure.
I take that the BaseXServer will not change to provide a secure 
communication with the clients. is that correct?

thanks
Stefania



From:"Christian Grün" <christian.gr...@gmail.com>
To:Giavanna J Richards <gjric...@us.ibm.com>
Cc:BaseX <basex-talk@mailman.uni-konstanz.de>
Date:03/14/2018 04:07 PM
Subject:Re: [basex-talk] SSL support for BaseX REST API
Sent by:basex-talk-boun...@mailman.uni-konstanz.de



Hi Giavanna,

The SSL features has not been maintained anymore for a while now. With
BaseX 9.0, it will be completely removed, because the old solution is
not compatible anymore with Jetty 9. We may introduce it in future
once we find a good way to do. There is a StackOverflow question that
relates to this issue [1], but no helpful answer was given so far.
Suggestions from users who use Jetty and SSL are welcome.

All the best,
Christian

[1] 
https://urldefense.proofpoint.com/v2/url?u=https-3A__stackoverflow.com_questions_32734920_using-2Djetty-2D9-2Dand-2Djetty-2Dxml-2Dwith-2Dbasex=DwIBaQ=jf_iaSHvJObTbx-siA1ZOg=oRDtJNjvHAlLIcU_p2eWUQ=0zOMGLkzQSB6QaWTNy6iglmqul82FpjptqdbW_cd-C4=MrN3jqfbFo0BjpvF2-MVajpuZBNOeAp7D1KFAiQQy5k=





On Wed, Mar 14, 2018 at 8:18 PM, Giavanna J Richards
<gjric...@us.ibm.com> wrote:
> I'm trying to determine how to enable SSL communications with the BaseX
> server,  I have a java server which communicates with BaseX over its 
REST
> API for running xquery's.  I see in the BaseX changelog that SSL support 
was
> added to version 7.5 in 2012 but I haven't been able to find any 
references
> to it in the documentation.
>
> I found some statements in the jetty.xml file which are commented out 
and
> would appear to enable SSL on port 8986.  But I'm not at all familiar 
with
> jetty.  Is there some documentation available for enabling this support?
>
> Thanks in advance!
>
> Giavanna Richards









Re: [basex-talk] SSL support for BaseX REST API

2018-03-16 Thread Stefania Axo
Hi Christian

I was able to deploy basex.war (8.6.7) as expanded application under a 
server on WebSphere Liberty.
The server is setup to use https with SSL. 
So I can run with success the  BaseX Web Admin UI like 
https://localhost:9443/BaseX/dba/login?path=databases and I can run Xquery 
from there.

The question is that the web application starts an instance of BaseXServer 
that listen to 1984 port and that communication is not secure.
I take that the BaseXServer will not change to provide a secure 
communication with the clients. is that correct?

thanks
Stefania



From:   "Christian Grün" 
To: Giavanna J Richards 
Cc: BaseX 
Date:   03/14/2018 04:07 PM
Subject:Re: [basex-talk] SSL support for BaseX REST API
Sent by:basex-talk-boun...@mailman.uni-konstanz.de



Hi Giavanna,

The SSL features has not been maintained anymore for a while now. With
BaseX 9.0, it will be completely removed, because the old solution is
not compatible anymore with Jetty 9. We may introduce it in future
once we find a good way to do. There is a StackOverflow question that
relates to this issue [1], but no helpful answer was given so far.
Suggestions from users who use Jetty and SSL are welcome.

All the best,
Christian

[1] 
https://urldefense.proofpoint.com/v2/url?u=https-3A__stackoverflow.com_questions_32734920_using-2Djetty-2D9-2Dand-2Djetty-2Dxml-2Dwith-2Dbasex=DwIBaQ=jf_iaSHvJObTbx-siA1ZOg=oRDtJNjvHAlLIcU_p2eWUQ=0zOMGLkzQSB6QaWTNy6iglmqul82FpjptqdbW_cd-C4=MrN3jqfbFo0BjpvF2-MVajpuZBNOeAp7D1KFAiQQy5k=





On Wed, Mar 14, 2018 at 8:18 PM, Giavanna J Richards
 wrote:
> I'm trying to determine how to enable SSL communications with the BaseX
> server,  I have a java server which communicates with BaseX over its 
REST
> API for running xquery's.  I see in the BaseX changelog that SSL support 
was
> added to version 7.5 in 2012 but I haven't been able to find any 
references
> to it in the documentation.
>
> I found some statements in the jetty.xml file which are commented out 
and
> would appear to enable SSL on port 8986.  But I'm not at all familiar 
with
> jetty.  Is there some documentation available for enabling this support?
>
> Thanks in advance!
>
> Giavanna Richards







Re: [basex-talk] xml element beginning and end space loss

2018-01-30 Thread Stefania Axo
thanks  Michael

I run your suggestion and it seems to affect all the elements on my BaseX.
I also verified that the 'chop' property was still true after the 
execution of the xquery 
(> open test
Database 'test' was opened in 7.29 ms.
> get chop
CHOP: true)

db:create('test',
"
stefy  
stefy  
stefy  
",
"doc.xml"
) 
>
   stefystefy  
stefy 




db:replace("test", "doc1.xml",
"
stefy  
stefy  
")
>
   stefy 
stefy 


Am i missing something?
thanks
Stefania



From:   Michael Seiferle 
To: Gerrit Imsieke , st...@us.ibm.com
Cc: BaseX 
Date:   01/29/2018 11:22 AM
Subject:Re: [basex-talk] xml element beginning and end space loss



Hi & thanks Gerrit,
Hi Stefania,

You may even decide to chop-or-not on a per-element basis:
db:create('test',
"
stefy  
stefy  
",
"doc.xml"
)

Will preserve whitespace in the second -Element while chopping in the 
first one.
=> http://docs.basex.org/wiki/Options#CHOP


Best from Konstanz :-]

Michael

Am 27.01.2018 um 01:06 schrieb Imsieke, Gerrit, le-tex <
gerrit.imsi...@le-tex.de>:

Luckily you can switch it off.






[basex-talk] xml element beginning and end space loss

2018-01-26 Thread Stefania Axo
Hi all!

is there a way to preserve the beginning and ending spaces in the Database 
xml elements?


In other words If I execute this xQuery

   db:replace("MyDB", "doc.xml", "  stefy  ")


the resulted document will be 

  stefy

As you can see I lost my beginner and ending spaces.


thanks
Stefania



[basex-talk] queries and setting on temp directory

2017-11-03 Thread Stefania Axo
Hi all,
i noticed that queries (http://localhost:8984/dba/queries) and the dba 
setting are saved in the temp directory and not on the \basex\data dir.

For example:
- C:\Users\IBM_ADMIN\AppData\Local\Temp\dba\  if BaseX is installed from 
the zip file in Wndows Os
-  C:\Program Files\IBM\WebSphere\Liberty\usr\servers\myApp\temp\dba if 
BaseX is installed as BaseX.war on WebSphere Liberty in Windows OS

All the other data seems to be under the home basex\data directory: logs, 
databases, users.

Is that a reason for that? 


thanks
Stefania



[basex-talk] upgrade of BaseX from 8.6.5 to 8.6.6 how to migrate the data?

2017-09-15 Thread Stefania Axo
hi
I want to upgrade from 8.6.5 to 8.6.6.
How do i migrate the data?
do i just copy over the Basex\data folder?

thanks
Stefania