XAMPP and C:\opts\dhis2

After much investigation, I now understand why I had trouble with running DHIS2 from XAMPP. It seems that when you install XAMPP on a Windows drive (say C:) and start Tomcat with the dhis.war file, a folder called C:\opts\dhis2 will automatically get created, and DHIS2 will look for hibernate.properties in that folder, no matter what DHIS2_HOME says.

Can someone tell me why this happens? It is confusing, because DHIS starts, but one just cannot log in.

Knut

···

On Mon, Sep 16, 2013 at 5:41 PM, Knut Staring knutst@gmail.com wrote:

Great. In my colleague’s case, it worked with DHIS Live (this is a Windows laptop), with the same db, war, and browser. Still unable to log in when running Tomcat from Xampp, even though that works perfectly on my own laptop. Something to do with permissions for java/tomcat perhaps??

Sent from my mobile

On Sep 16, 2013 8:34 PM, “easy” lin_xd@126.com wrote:

after I add a admin user manually. can login.


此致

easy

莫愁前路无知己,天下谁人不识君。

At 2013-09-16 21:05:47,“Knut Staring” knutst@gmail.com wrote:

Unfortunately, I’m just now looking at a similar case on my colleague’s laptop. I copied the db from my laptop where I have no problems at all. But completely unable to log in with admin/district or my user on his laptop even though the database is an exact copy. Also when I put wrong info in hibernate.properties (so it would go for default) he is unable to log in.

Tried in several browsers. Very strange - does anyone have an idea?


Knut Staring

Dept. of Informatics, University of Oslo

+4791880522

http://dhis2.org

On Mon, Sep 16, 2013 at 2:51 PM, easy lin_xd@126.com wrote:

Do as you said, still can’t.

I found the db created has only a anonymous user.


此致

easy

莫愁前路无知己,天下谁人不识君。

At 2013-09-16 16:41:06,“Knut Staring” knutst@gmail.com wrote:

Hi Easy,
I think this could be caching related. Try Chrome incognito mode.

Knut

On Monday, September 16, 2013, easy wrote:

Hi,sir,

I can’t login into system after startup. using trunk version, empty DB.
anter enter password, no responese, url changed into:

http://localhost:8080/dhis/dhis-web-commons/security/login.action?failed=true


此致

easy

莫愁前路无知己,天下谁人不识君。


Knut Staring

Dept. of Informatics, University of Oslo

+4791880522

http://dhis2.org


Knut Staring

Dept. of Informatics, University of Oslo

+4791880522

http://dhis2.org