AnsweredAssumed Answered

unable to build alfwf.war surf skeleton

Question asked by mmogley on Jan 7, 2009
Latest reply on Jan 16, 2009 by mikeh
After having followed the instructions from the wiki on how to get started developing surf apps, I'm unable to build the alfwf basic surf app that's part of the distribution. 

After checking out the entire Alfresco HEAD, I went into the root directory and executed: ant incremental-webframework-tomcat.  After successfully compiling a few dependent projects, the Ant process fails when trying to compile the webframework itself. 

Any suggestions appreciated.  Relevant Ant output follows.

Michael

compile-webframework:
    [mkdir] Created dir: C:\Java\alfresco\latest\HEAD\root\projects\web-framework\build\classes
    [javac] Compiling 216 source files to C:\Java\alfresco\latest\HEAD\root\projects\web-framework\build\classes
    [javac] C:\Java\alfresco\latest\HEAD\root\projects\web-framework\source\java\org\alfresco\tools\FakeHttpSession.java:104: warning: [deprecation] javax.servl
et.http.HttpSessionContext in javax.servlet.http has been deprecated
    [javac]     public javax.servlet.http.HttpSessionContext getSessionContext()
    [javac]                              ^
    [javac] C:\Java\alfresco\latest\HEAD\root\projects\web-framework\source\java\org\alfresco\web\site\servlet\NTLMAuthenticationFilter.java:45: package org.alf
resco.jlan.server.auth.ntlm does not exist
    [javac] import org.alfresco.jlan.server.auth.ntlm.NTLM;
    [javac]                                          ^
    [javac] C:\Java\alfresco\latest\HEAD\root\projects\web-framework\source\java\org\alfresco\web\site\servlet\NTLMAuthenticationFilter.java:46: package org.alf
resco.jlan.server.auth.ntlm does not exist
    [javac] import org.alfresco.jlan.server.auth.ntlm.NTLMLogonDetails;
    [javac]                                          ^
    [javac] C:\Java\alfresco\latest\HEAD\root\projects\web-framework\source\java\org\alfresco\web\site\servlet\NTLMAuthenticationFilter.java:47: package org.alf
resco.jlan.server.auth.ntlm does not exist
    [javac] import org.alfresco.jlan.server.auth.ntlm.NTLMMessage;
    [javac]                                          ^
    [javac] C:\Java\alfresco\latest\HEAD\root\projects\web-framework\source\java\org\alfresco\web\site\servlet\NTLMAuthenticationFilter.java:48: package org.alf
resco.jlan.server.auth.ntlm does not exist
    [javac] import org.alfresco.jlan.server.auth.ntlm.Type1NTLMMessage;
    [javac]                                          ^
    [javac] C:\Java\alfresco\latest\HEAD\root\projects\web-framework\source\java\org\alfresco\web\site\servlet\NTLMAuthenticationFilter.java:49: package org.alf
resco.jlan.server.auth.ntlm does not exist
    [javac] import org.alfresco.jlan.server.auth.ntlm.Type2NTLMMessage;
    [javac]                                          ^
    [javac] C:\Java\alfresco\latest\HEAD\root\projects\web-framework\source\java\org\alfresco\web\site\servlet\NTLMAuthenticationFilter.java:50: package org.alf
resco.jlan.server.auth.ntlm does not exist
    [javac] import org.alfresco.jlan.server.auth.ntlm.Type3NTLMMessage;
    [javac]                                          ^
    [javac] C:\Java\alfresco\latest\HEAD\root\projects\web-framework\source\java\org\alfresco\web\site\servlet\NTLMAuthenticationFilter.java:290: cannot find sy
mbol
    [javac] symbol  : class Type1NTLMMessage
    [javac] location: class org.alfresco.web.site.servlet.NTLMAuthenticationFilter
    [javac]     private void processType1(Type1NTLMMessage type1Msg, HttpServletRequest req, HttpServletResponse res,
    [javac]                               ^
    [javac] C:\Java\alfresco\latest\HEAD\root\projects\web-framework\source\java\org\alfresco\web\site\servlet\NTLMAuthenticationFilter.java:394: cannot find sy
mbol
    [javac] symbol  : class Type3NTLMMessage
    [javac] location: class org.alfresco.web.site.servlet.NTLMAuthenticationFilter
    [javac]     private void processType3(Type3NTLMMessage type3Msg, HttpServletRequest req, HttpServletResponse res,
    [javac]                               ^
    [javac] C:\Java\alfresco\latest\HEAD\root\projects\web-framework\source\java\org\alfresco\tools\FakeHttpServletRequest.java:257: warning: [deprecation] isRe
questedSessionIdFromUrl() in javax.servlet.http.HttpServletRequest has been deprecated
    [javac]     public boolean isRequestedSessionIdFromUrl()
    [javac]                    ^
    [javac] C:\Java\alfresco\latest\HEAD\root\projects\web-framework\source\java\org\alfresco\tools\FakeHttpServletRequest.java:508: warning: [deprecation] getR
ealPath(java.lang.String) in javax.servlet.ServletRequest has been deprecated
    [javac]     public String getRealPath(String path)
    [javac]                   ^
    [javac] C:\Java\alfresco\latest\HEAD\root\projects\web-framework\source\java\org\alfresco\tools\FakeHttpServletResponse.java:244: warning: [deprecation] set
Status(int,java.lang.String) in javax.servlet.http.HttpServletResponse has been deprecated
    [javac]     public void setStatus(int status, String errorMessage)
    [javac]                 ^
    [javac] C:\Java\alfresco\latest\HEAD\root\projects\web-framework\source\java\org\alfresco\tools\FakeHttpServletResponse.java:471: warning: [deprecation] enc
odeRedirectUrl(java.lang.String) in javax.servlet.http.HttpServletResponse has been deprecated
    [javac]     public String encodeRedirectUrl(String url)
    [javac]                   ^
    [javac] C:\Java\alfresco\latest\HEAD\root\projects\web-framework\source\java\org\alfresco\tools\FakeHttpServletResponse.java:455: warning: [deprecation] enc
odeUrl(java.lang.String) in javax.servlet.http.HttpServletResponse has been deprecated
    [javac]     public String encodeUrl(String url)
    [javac]                   ^
    [javac] C:\Java\alfresco\latest\HEAD\root\projects\web-framework\source\java\org\alfresco\tools\FakeHttpSession.java:169: warning: [deprecation] removeValue
(java.lang.String) in javax.servlet.http.HttpSession has been deprecated
    [javac]     public void removeValue(String name)
    [javac]                 ^
    [javac] C:\Java\alfresco\latest\HEAD\root\projects\web-framework\source\java\org\alfresco\tools\FakeHttpSession.java:153: warning: [deprecation] putValue(ja
va.lang.String,java.lang.Object) in javax.servlet.http.HttpSession has been deprecated
    [javac]     public void putValue(String name, Object value)
    [javac]                 ^
    [javac] C:\Java\alfresco\latest\HEAD\root\projects\web-framework\source\java\org\alfresco\tools\FakeHttpSession.java:136: warning: [deprecation] getValueNam
es() in javax.servlet.http.HttpSession has been deprecated
    [javac]     public String[] getValueNames()
    [javac]                     ^
    [javac] C:\Java\alfresco\latest\HEAD\root\projects\web-framework\source\java\org\alfresco\tools\FakeHttpSession.java:120: warning: [deprecation] getValue(ja
va.lang.String) in javax.servlet.http.HttpSession has been deprecated
    [javac]     public Object getValue(String name)
    [javac]                   ^
    [javac] C:\Java\alfresco\latest\HEAD\root\projects\web-framework\source\java\org\alfresco\tools\FakeHttpSession.java:104: warning: [deprecation] getSessionC
ontext() in javax.servlet.http.HttpSession has been deprecated
    [javac]     public javax.servlet.http.HttpSessionContext getSessionContext()
    [javac]                                                  ^
    [javac] C:\Java\alfresco\latest\HEAD\root\projects\web-framework\source\java\org\alfresco\web\site\servlet\NTLMAuthenticationFilter.java:235: cannot find sy
mbol
    [javac] symbol  : variable NTLMMessage
    [javac] location: class org.alfresco.web.site.servlet.NTLMAuthenticationFilter
    [javac]             int ntlmTyp = NTLMMessage.isNTLMType(ntlmByts);
    [javac]                           ^
    [javac] C:\Java\alfresco\latest\HEAD\root\projects\web-framework\source\java\org\alfresco\web\site\servlet\NTLMAuthenticationFilter.java:237: cannot find sy
mbol
    [javac] symbol  : variable NTLM
    [javac] location: class org.alfresco.web.site.servlet.NTLMAuthenticationFilter
    [javac]             if (ntlmTyp == NTLM.Type1)
    [javac]                            ^
    [javac] C:\Java\alfresco\latest\HEAD\root\projects\web-framework\source\java\org\alfresco\web\site\servlet\NTLMAuthenticationFilter.java:240: cannot find sy
mbol
    [javac] symbol  : class Type1NTLMMessage
    [javac] location: class org.alfresco.web.site.servlet.NTLMAuthenticationFilter
    [javac]                 Type1NTLMMessage type1Msg = new Type1NTLMMessage(ntlmByts);
    [javac]                 ^
    [javac] C:\Java\alfresco\latest\HEAD\root\projects\web-framework\source\java\org\alfresco\web\site\servlet\NTLMAuthenticationFilter.java:240: cannot find sy
mbol
    [javac] symbol  : class Type1NTLMMessage
    [javac] location: class org.alfresco.web.site.servlet.NTLMAuthenticationFilter
    [javac]                 Type1NTLMMessage type1Msg = new Type1NTLMMessage(ntlmByts);
    [javac]                                                 ^
    [javac] C:\Java\alfresco\latest\HEAD\root\projects\web-framework\source\java\org\alfresco\web\site\servlet\NTLMAuthenticationFilter.java:243: cannot find sy
mbol
    [javac] symbol  : variable NTLM
    [javac] location: class org.alfresco.web.site.servlet.NTLMAuthenticationFilter

Outcomes