Just searched two hours for a problem loading the application-context in Prana. I have these two files:

application-context-backoffice.xml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?xml version="1.0"?>
<objects xmlns="http://www.pranaframework.org/objects"
	 	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	 	xsi:schemaLocation="http://www.pranaframework.org/objects http://www.pranaframework.org/schema/objects/prana-objects-0.6.xsd">
 
	<!-- ================================================ -->
	<!-- Properties -->
	<!-- ================================================ -->
	<property file="application-context-backoffice.properties.txt" />
 
	<!-- ================================================ -->
	<!-- ModelLocator -->
	<!-- ================================================ -->	
	<object id="edumaticModelLocator" class="edumatic.model.EdumaticModelLocator" factory-method="getInstance">		
		<property name="useWindowsAuthentication" value="${useWindowsAuthentication}" />
                ...
        </object>
        ...

application-context-backoffice.properties.txt

[code]
useMessaging=false
useWindowsAuthentication=false
activeChannel=selorChannel
localCookieName=Edumatic3BackofficeCookie
examOverview_ShowTestPreview=true
[/code]

Problem this morning was that useWindowsAuthentication was set to true in the application, while it clearly is set to false…

Well, seemed like the problem was the encoding of the txt file. It had changed to ANSI instead of utf-8. Have no idea what changed the encoding (eclipse?). I know the default encoding can be set in Eclipse but that doesn’t seem to work all that good. So, changed encoding and everything works fine…

Without encoding Prana read the file like this:

[code]
useMessaging=falseuseWindowsAuthentication=false
activeChannel=selorChannel
localCookieName=Edumatic3BackofficeCookie
examOverview_ShowTestPreview=true
[/code]

pixel Prana problem encoding properties file
No TweetBacks yet. (Be the first to Tweet this post)