cancel
Showing results for 
Search instead for 
Did you mean: 

Server error

coling
Champ in-the-making
Champ in-the-making
Hi,

I am getting a server error using the web client - as follows:

org.apache.jasper.JasperException: No WebApplicationContext found: no ContextLoaderListener registered?
   org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:512)
   org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:389)
   org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
   org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

root cause

java.lang.IllegalStateException: No WebApplicationContext found: no ContextLoaderListener registered?
   org.springframework.web.context.support.WebApplicationContextUtils.getRequiredWebApplicationContext(WebApplicationContextUtils.java:84)
   org.apache.jsp.index_jsp._jspService(index_jsp.java:69)
   org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
   org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:334)
   org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
   org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

I have checked that environment variable JAVA_HOME is pointing to C:\Program Files\Java\jdk1.6.0

I have just installed Alfresco 2.0 Community Edition with tomcat.

I did choose C:\Program Files\Alfresco as the home for Alfresco. Is this possibly a cause of the problem?

Thanks

CG
3 REPLIES 3

steve
Champ in-the-making
Champ in-the-making
Hi,

Installing Alfresco into a directory path with a space in it's name could be causing this issue.
Try alfresco in c:\alfresco to see if that works.

Hope this helps,

Steve

coling
Champ in-the-making
Champ in-the-making
Hi Steve,

Actually, with some help I have solved this problem. It turned out that in directory C:\Program Files\Alfresco\tomcat\webapps\alfresco\WEB-INF, file web.xml was missing (and possibly other files as well). The reason for this is unknown, but is possibly that the install was interrupted. In any event, after directory C:\Program Files\Alfresco\tomcat\webapps was manually deleted, this forced it to be redeployed - and the problem disappeared.

So "C:\Program Files\Alfresco" works (with the embedded space - on Windows).

Thanks for your suggestion. It seems, though, that to be robust, the Alfresco Install process should check for this sort of thing. I needed help to discover the missing file(s) - I would never have discovered it on my own. And obviously the Install process did not discover it either. If this happens so easily, others will probably experience this issue too.

alfrescolove
Champ in-the-making
Champ in-the-making
Hi Steve,

Actually, with some help I have solved this problem. It turned out that in directory C:\Program Files\Alfresco\tomcat\webapps\alfresco\WEB-INF, file web.xml was missing (and possibly other files as well). The reason for this is unknown, but is possibly that the install was interrupted. In any event, after directory C:\Program Files\Alfresco\tomcat\webapps was manually deleted, this forced it to be redeployed - and the problem disappeared.

Same exact thing just happened to me.  I have no idea why web.xml was not present. I know I did not edit it.  I got the same error though.  Fortunately, as described above, i deleted the \tomcat\webapps\alfresco directory, restarted alfresco, and allowed tomcat (i guess) to unpack alfresco.war thus recreating the alfresco directory with the missing web.xml file.