debovis / webanno

Automatically exported from code.google.com/p/webanno
Apache License 2.0
0 stars 0 forks source link

default login does not work upon setup #2

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
default login admin/admin does not work upon setup

1. I have followed all the installation steps as described in 
http://code.google.com/p/webanno/wiki/InstallationGuide except for the Apache 
setup, since our server does not use Apache. Eventually, I can see the WebAnno 
Page at http://serveraddress:18080/webanno/login.html?54 but I can not log in 
using the default admin/admin username/password pair. Instead log-in failed 
message is displayed on top.

What is the expected output? What do you see instead?
Currently no login succeeds with whatever login data I use (any of the 
tomcat/LDAP/MySQL user login data). Neither it works with admin/admin username 
and password. Could you please add more description on how the login works.

What version of the product are you using? On what operating system?
OpenJDK Runtime Environment (IcedTea6 1.12.6) (6b27-1.12.6-1ubuntu0.12.04.2)
OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)
tomcat6
war-file: webanno-webapp-0.3.0-rc-4.war
Browser: Firefox 24.0 for Ubuntu
OS: Linux 3.2.0-54-generic x86_64

Please provide any additional information below.
here is the log from `catalina.out'

# tail /opt/webanno/logs/catalina.out 
INFO: Starting Coyote HTTP/1.1 on http-18080
Oct 2, 2013 3:47:06 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 4068 ms
2013-10-02 15:47:52  INFO [http-18080-1] (PropertiesFactory) - Loading 
properties files from 
file:/opt/webanno/webapps/webanno/WEB-INF/classes/de/tudarmstadt/ukp/clarin/weba
nno/webapp/page/login/LoginPage.properties with loader 
org.apache.wicket.resource.IsoPropertiesFilePropertiesLoader@54135640
2013-10-02 15:48:01  WARN [http-18080-2] (SpringAuthenticatedWebSession) - User 
'admin' failed to login. Reason: No entity found for query
2013-10-02 15:48:01 ERROR [http-18080-2] (LoginForm) - Login failed
2013-10-02 15:48:01 ERROR [http-18080-2] (ApplicationPageBase$1) - 
anonymousUser: Login failed
2013-10-02 15:49:39  WARN [http-18080-1] (SpringAuthenticatedWebSession) - User 
'admin' failed to login. Reason: No entity found for query
2013-10-02 15:49:39 ERROR [http-18080-1] (LoginForm) - Login failed
2013-10-02 15:49:39 ERROR [http-18080-1] (ApplicationPageBase$1) - 
anonymousUser: Login failed

Original issue reported on code.google.com by wlsidore...@gmail.com on 2 Oct 2013 at 2:03

GoogleCodeExporter commented 9 years ago
When the login page loads, WebAnno checks if there are any passwords stored in 
the database. If there are no passwords, it automatically creates the default 
login and displays a notification in the login screen.

Please check if you have any data in the "users" table and if so, please remove 
that data.

It might be that the check got broken, that the automatic creation does not 
work anymore, or that you loaded some sample data which possibly includes user 
accounts. Let's try to narrow that down.

@Seid: maybe you can also have a look 

Original comment by richard.eckart on 2 Oct 2013 at 2:47

GoogleCodeExporter commented 9 years ago
Thanks Richard,

Here is what I can see on MySQL server in webanno.users Table:

mysql -u root -p
...
mysql> USE webanno;
mysql> SELECT * FROM users;
Empty set (0.00 sec)

Tell me, if you need any further information.

Original comment by wlsidore...@gmail.com on 2 Oct 2013 at 3:24

GoogleCodeExporter commented 9 years ago
Thanks for the feedback. We'll look into it.

Original comment by richard.eckart on 2 Oct 2013 at 3:26

GoogleCodeExporter commented 9 years ago
Thank you very much to report this issue
The installation instuction is meant to the latest release of webanno (you can 
check-out and compile). 0.3.0 is the previous release where user management is 
not included

I have uloaded the 0.4.0 latest release candidate and you can use it following 
the installation instruction. Just drop and create the database again, clrear 
your browser cache (Webanno supports chrome and safari), remove the 0.3.0 war 
file and its associated folder from webapps and redeploy the 0.4.0 war 

Original comment by seidy...@gmail.com on 4 Oct 2013 at 8:45

GoogleCodeExporter commented 9 years ago
Thanks Seid,

The issue is solved.

Original comment by wlsidore...@gmail.com on 4 Oct 2013 at 9:38

GoogleCodeExporter commented 9 years ago

Original comment by richard.eckart on 18 Aug 2014 at 3:13