Error : "Can not find the URL of the proxy auto-configuration" [message #1383969] |
Tue, 27 May 2014 14:13 |
|
Hi all,
when I start my application in RAP mode, the login doesn't work as I expect because it doesn't allow login.
I use "DataSourceSecurityFilter" to do the login with an authentication via a table of the database (see below config.ini of RAP that is the same for the server).
### Authentication
org.eclipse.scout.http.servletfilter.security.BasicSecurityFilter#active=false
org.eclipse.scout.http.servletfilter.security.BasicSecurityFilter#realm=MyApp Development
org.eclipse.scout.http.servletfilter.security.BasicSecurityFilter#users=admin\=admin,adminEN\=adminEN
org.eclipse.scout.http.servletfilter.security.DataSourceSecurityFilter#active=true
org.eclipse.scout.http.servletfilter.security.DataSourceSecurityFilter#realm=MyApp Development
org.eclipse.scout.http.servletfilter.security.DataSourceSecurityFilter#jdbcDriverName=oracle.jdbc.OracleDriver
org.eclipse.scout.http.servletfilter.security.DataSourceSecurityFilter#jdbcMappingName=jdbc:oracle:thin:@dbuser:1535:dbuser
org.eclipse.scout.http.servletfilter.security.DataSourceSecurityFilter#jdbcUsername=myuser
org.eclipse.scout.http.servletfilter.security.DataSourceSecurityFilter#jdbcPassword=mypwd
org.eclipse.scout.http.servletfilter.security.DataSourceSecurityFilter#selectUserPass=SELECT USERACCOUNT FROM USERTABLE WHERE USERACCOUNT=? AND PASSWORD=?
org.eclipse.scout.http.servletfilter.security.AnonymousSecurityFilter#active=false
In the console I found the following message (see below).
2014-05-27 16:04:49.166:INFO:oejs.Server:jetty-8.1.3.v20120522
2014-05-27 16:04:49.250:INFO:oejs.AbstractConnector:Started SelectChannelConnector@0.0.0.0:8082
!SESSION 2014-05-27 16:04:47.146 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_24
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=it_IT
Framework arguments: -product org.zeiss.mo.scout.MyApp.ui.rap.product
Command-line arguments: -product org.zeiss.mo.scout.MyApp.ui.rap.product -data C:\Projects\scout/../runtime-MyApp-rap-dev.product -dev file:C:/Projects/scout/.metadata/.plugins/org.eclipse.pde.core/MyApp-rap-dev.product/dev.properties -os win32 -ws win32 -arch x86_64 -consoleLog
! ENTRY org.eclipse.core.net 4 0 27/05/2014 16:05:16.127
! MESSAGE WinHttp.DetectAutoProxyConfigUrl for wpad failed with error 'Can not find the URL of the proxy auto-configuration.
'# 12180.
It seems that instead of using the "DataSourceSecurityFilter" authentication, it uses the authentication "BasicSecurityFilter", because if I type in the admin user and password, the login is working properly.
Any suggestions to solve this problem?
Thanks in advance for any help
[Updated on: Wed, 04 June 2014 14:40] Report message to a moderator
|
|
|
Re: Error : "Can not find the URL of the proxy auto-configuration" [message #1385268 is a reply to message #1383969] |
Thu, 05 June 2014 09:56 |
|
marco giudici wrote on Tue, 27 May 2014 10:13It seems that instead of using the "DataSourceSecurityFilter" authentication, it uses the authentication "BasicSecurityFilter", because if I type in the admin user and password, the login is working properly.
Did you already check that you assigned the correct security filters for the /process servlet?
* Plain J2EE security filters could be defined in web.xml (or even your container configuration)
* Scout security filters are defined via extension point "org.eclipse.scout.http.servletfilter.filters" in your server plugin's plugin.xml.
B.
|
|
|
Re: Error : "Can not find the URL of the proxy auto-configuration" [message #1385271 is a reply to message #1385268] |
Thu, 05 June 2014 10:10 |
|
Hi,
I check my plugin.xml in RAP and Server section; I quote below my configurations:
RAP Configuration (plugin.xml)
...
<extension
point="org.eclipse.scout.http.servletfilter.filters">
<filter
aliases="/"
class="org.eclipse.scout.http.servletfilter.security.AnonymousSecurityFilter"
ranking="60">
</filter>
<filter
aliases="/ /web"
class="org.zeiss.mo.scout.CZVEDIController.ui.rap.security.CZVCCSecurityFilter"
ranking="50">
</filter>
<filter
aliases="/ /web"
class="org.eclipse.scout.http.servletfilter.security.BasicSecurityFilter"
ranking="40">
</filter>
<filter
aliases="/process"
class="org.eclipse.scout.http.servletfilter.security.DataSourceSecurityFilter"
ranking="30">
</filter>
<filter
aliases="/web"
class="org.eclipse.scout.http.servletfilter.security.DataSourceSecurityFilter"
ranking="20">
</filter>
<filter
aliases="/"
class="org.eclipse.scout.http.servletfilter.security.DataSourceSecurityFilter"
ranking="10">
</filter>
...
Server Configuration (plugin.xml)
...
<extension
name=""
point="org.eclipse.scout.http.servletfilter.filters">
<filter
aliases="/process /remotefiles /updatesite"
class="org.eclipse.scout.http.servletfilter.security.BasicSecurityFilter"
ranking="40">
</filter>
<filter
aliases="/process /remotefiles /updatesite"
class="org.eclipse.scout.http.servletfilter.security.AnonymousSecurityFilter"
ranking="30">
</filter>
<filter
aliases="/web /process /remotefiles /updatesite"
class="org.eclipse.scout.http.servletfilter.security.DataSourceSecurityFilter"
ranking="20">
</filter>
<filter
aliases="/process /remotefiles /updatesite"
class="org.zeiss.mo.scout.CZVEDIController.server.security.CZVCCSecurityFilter"
ranking="10">
</filter>
</extension>
...
Any other suggestion? I do a mistake in my configuration?
|
|
|
Re: Error : "Can not find the URL of the proxy auto-configuration" [message #1385289 is a reply to message #1385271] |
Thu, 05 June 2014 12:00 |
|
RAP configuration looks good. Apparently, if the execution reaches the BasicSecurityFilter, the DataSourceSecurityFilter was previously executed (because it has a lower ranking), but could not authenticate the user.
I would suggest that you debug your application and set a breakpoint in the DataSourceSecurityFilter to see what's going on there.
(Configuration for your main server is not relevant here, because RAP calls /ajax instead of /process.)
B.
|
|
|
Powered by
FUDForum. Page generated in 0.02630 seconds