cancel
Showing results for 
Search instead for 
Did you mean: 

Trouble getting WSF running

randomman
Champ in-the-making
Champ in-the-making
Hi guys. I was wondering if anyone has encountered my problems before.

I've downloaded and installed the following files on a WinXP Pro machine which I'm also using as a workstation:

Alfresco-Community-2.1R1-Setup.exe
Alfresco-WCM-Community-2.1R1-Setup.exe

Alfresco appears to be working fine. I'm not having any trouble creating web projects from scratch but I'm a bit stumped trying to get the WSF example site working. I've been following the instructions outlined in the wiki but I seem to be thwarted by errors (possibly of the user variety, i'm not sure).

I couldn't find a version of SC.xml or NavigationTree.xml in my extras folder like the wiki says but I managed to find versions at http://forge.alfresco.com which I updated my versions with.

Error 1:
When I get to Stage 6, creating a MOTD Step 2, I see this error on-screen:
Step Two - Author Web Content
Enter your document content into the repository.
org.alfresco.web.forms.FormProcessor$ProcessingException: org.alfresco.web.forms.xforms.FormBuilderException: error parsing schema: at line 36 column 65: src-resolve: Cannot resolve the name 'motd:channel_choices' to a(n) 'type definition' component.

Error 2:
If preview my site I see this error:
javax.servlet.ServletException: The "url" attribute illegally evaluated to "null" or "" in <import>
related to this line in channel-navigation.jsp:
<c:import url="${menuHtml}" var="doc"/>

Error 3:
If I hard-code the url causing the error above to what it is in the SC.xml file (/content/navigation/NavigationTree.xml) and preview my site I see this error:
java.io.IOException: Server returned HTTP response code: 401 for URL: http://localhost:8080/alfresco/service/search/keyword?q=alfresco
related to this line in documents.jsp:
<c:import url="http://localhost:8080/alfresco/service/search/keyword?q=${keyword}" var="alfDocument"/>

401 is an authentication error. Is there something wrong with my configuration of tomcat? If I browse directly to that URL, I am prompted for a username and password. I can use my Alfresco credentials to log in and i see the page correctly. As a test, I changed the URL to this to see what happens:
http://admin:admin@localhost:8080/alfresco/service/search/keyword?q=${keyword}
Whilst it works in the browser URL bar, my preview still doesn't work.

If anyone has any suggestions on what I'm doing wrong, I'd be most grateful as I'm floundering a bit outside my area of expertise!

Thanks!
1 REPLY 1

steuni
Champ in-the-making
Champ in-the-making