Error : "Can not find the URL of the proxy auto-configuration" [message #1383969] |
Tue, 27 May 2014 10:13  |
Eclipse User |
|
|
|
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 10:40] by Moderator
|
|
|
|
|
Re: Error : "Can not find the URL of the proxy auto-configuration" [message #1385289 is a reply to message #1385271] |
Thu, 05 June 2014 08:00  |
Eclipse User |
|
|
|
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.04848 seconds