Re: [basex-talk] basexhttp errors

2018-09-20 Thread Martin Šlouf
Hi,

this does not necessarily mean BaseX error, on the contrary, there is
something wrong with your classpath usually:

have you try to follow the advice at:
http://www.slf4j.org/codes.html#multiple_bindings ?

Long story short, there is multiple slf4j bindings at your classpath and
you have to keep just one.

- What does your classpath look like?
- What version exactly are you trying to run?
- Do you use the provided startup file without any modifications?

m.

radim-havli...@post.cz writes:

> Hello.
> When I start basexhttp.bat, following errors display:
>
>
>
>
>
> Starting Process basexhttp
>
> SLF4J: Class path contains multiple SLF4J bindings.
>
> SLF4J: Found binding in [jar:file:/C:/Program%20Files%20(x86)/BaseX/lib/slf4
> j-simple-1.7.13.jar!/org/slf4j/impl/StaticLoggerBinder.class]
>
> SLF4J: Found binding in [jar:file:/C:/Program%20Files%20(x86)/BaseX/lib/slf4
> j-simple-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
>
> SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an 
> explanation.
>
> SLF4J: Actual binding is of type [org.slf4j.impl.SimpleLoggerFactory]
>
> [main] WARN org.eclipse.jetty.xml.XmlConfiguration - Config error at  name="addConnector">
>
>         "host">0.0.0.089846
> true
>
>      
>
> java.lang.IllegalStateException: No object for id=null
>
>
>
>
>
> How can I correct it? Thank you in advance for your help.
>
> Best regards,
>
>
>
>
> Radim Havlicek


[basex-talk] Tomcat and UserPrincipal

2018-09-20 Thread Marco Lettere

Hi all,

when deploying a BaseX RestXQ module as a Tomcat webapp in a container 
that uses embedded realm based authentication is there any way to 
retrieve the login name after being redirected to the protected page?


I remember back in J2EE times there was a dedicated method 
getUserPrincipal. Is there any equivalent using "request:"?


Thanks as usual for any kind support!

Marco.



[basex-talk] basexhttp errors

2018-09-20 Thread radim-havlicek
Hello.
When I start basexhttp.bat, following errors display:





Starting Process basexhttp

SLF4J: Class path contains multiple SLF4J bindings.

SLF4J: Found binding in [jar:file:/C:/Program%20Files%20(x86)/BaseX/lib/slf4
j-simple-1.7.13.jar!/org/slf4j/impl/StaticLoggerBinder.class]

SLF4J: Found binding in [jar:file:/C:/Program%20Files%20(x86)/BaseX/lib/slf4
j-simple-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]

SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an
explanation.

SLF4J: Actual binding is of type [org.slf4j.impl.SimpleLoggerFactory]

[main] WARN org.eclipse.jetty.xml.XmlConfiguration - Config error at 

       0.0.0.089846
true

     

java.lang.IllegalStateException: No object for id=null





How can I correct it? Thank you in advance for your help.

Best regards,




Radim Havlicek