AnsweredAssumed Answered

Mediawiki on 3.2r

Question asked by tushagarwal on Nov 11, 2009
Hi..
i have been trying to configure on my Alfresco 3.2r install on a windows Machine.

1) i installed the php amp and changed the web xml. this was working as expected.
2) i installed the mediawiki amp and restarted tomcat.

this is when the problem started.

on the gui side when i try to access the alfresco URL this si what i get :

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException: Unable to compile class for JSP:

An error occurred at line: 6 in the generated java file
Only a type can be imported. javax.faces.context.FacesContext resolves to a package

An error occurred at line: 7 in the generated java file
Only a type can be imported. javax.transaction.UserTransaction resolves to a package

An error occurred at line: 8 in the generated java file
Only a type can be imported. org.springframework.web.context.WebApplicationContext resolves to a package

An error occurred at line: 9 in the generated java file
Only a type can be imported. org.springframework.web.context.support.WebApplicationContextUtils resolves to a package

An error occurred at line: 10 in the generated java file
Only a type can be imported. org.alfresco.service.transaction.TransactionService resolves to a package

An error occurred at line: 11 in the generated java file
Only a type can be imported. org.alfresco.service.cmr.security.PermissionService resolves to a package

An error occurred at line: 12 in the generated java file
Only a type can be imported. org.alfresco.service.cmr.security.AuthenticationService resolves to a package

An error occurred at line: 13 in the generated java file
Only a type can be imported. org.alfresco.service.cmr.security.PersonService resolves to a package

An error occurred at line: 14 in the generated java file
Only a type can be imported. org.alfresco.service.cmr.security.PermissionService resolves to a package

An error occurred at line: 15 in the generated java file
Only a type can be imported. org.alfresco.service.cmr.repository.NodeRef resolves to a package

An error occurred at line: 16 in the generated java file
Only a type can be imported. org.alfresco.repo.security.authentication.AuthenticationException resolves to a package

An error occurred at line: 17 in the generated java file
Only a type can be imported. org.alfresco.config.ConfigService resolves to a package

An error occurred at line: 18 in the generated java file
Only a type can be imported. org.alfresco.web.app.servlet.AuthenticationHelper resolves to a package

An error occurred at line: 19 in the generated java file
Only a type can be imported. org.alfresco.web.app.servlet.FacesHelper resolves to a package

An error occurred at line: 20 in the generated java file
Only a type can be imported. org.alfresco.web.bean.NavigationBean resolves to a package

An error occurred at line: 21 in the generated java file
Only a type can be imported. org.alfresco.web.bean.repository.User resolves to a package

An error occurred at line: 22 in the generated java file
Only a type can be imported. org.alfresco.web.bean.repository.PreferencesService resolves to a package

An error occurred at line: 23 in the generated java file
Only a type can be imported. org.alfresco.web.config.ClientConfigElement resolves to a package

An error occurred at line: 48 in the jsp file: /index.jsp
WebApplicationContext cannot be resolved to a type
45: <%– redirect to the web application's appropriate start page –%>
46: <%
47: // get the start location as configured by the web-client config
48: WebApplicationContext context = WebApplicationContextUtils.getRequiredWebApplicationContext(session.getServletContext());
49: ConfigService configService = (ConfigService)context.getBean("webClientConfigService");
50: ClientConfigElement configElement = (ClientConfigElement)configService.getGlobalConfig().getConfigElement("client");
51: String location = configElement.getInitialLocation();


An error occurred at line: 48 in the jsp file: /index.jsp
WebApplicationContextUtils cannot be resolved
45: <%– redirect to the web application's appropriate start page –%>
46: <%
47: // get the start location as configured by the web-client config
48: WebApplicationContext context = WebApplicationContextUtils.getRequiredWebApplicationContext(session.getServletContext());
49: ConfigService configService = (ConfigService)context.getBean("webClientConfigService");
50: ClientConfigElement configElement = (ClientConfigElement)configService.getGlobalConfig().getConfigElement("client");
51: String location = configElement.getInitialLocation();


An error occurred at line: 49 in the jsp file: /index.jsp
ConfigService cannot be resolved to a type
46: <%
47: // get the start location as configured by the web-client config
48: WebApplicationContext context = WebApplicationContextUtils.getRequiredWebApplicationContext(session.getServletContext());
49: ConfigService configService = (ConfigService)context.getBean("webClientConfigService");
50: ClientConfigElement configElement = (ClientConfigElement)configService.getGlobalConfig().getConfigElement("client");
51: String location = configElement.getInitialLocation();
52:


An error occurred at line: 49 in the jsp file: /index.jsp
ConfigService cannot be resolved to a type
46: <%
47: // get the start location as configured by the web-client config
48: WebApplicationContext context = WebApplicationContextUtils.getRequiredWebApplicationContext(session.getServletContext());
49: ConfigService configService = (ConfigService)context.getBean("webClientConfigService");
50: ClientConfigElement configElement = (ClientConfigElement)configService.getGlobalConfig().getConfigElement("client");
51: String location = configElement.getInitialLocation();
52:


An error occurred at line: 50 in the jsp file: /index.jsp
ClientConfigElement cannot be resolved to a type
47: // get the start location as configured by the web-client config
48: WebApplicationContext context = WebApplicationContextUtils.getRequiredWebApplicationContext(session.getServletContext());
49: ConfigService configService = (ConfigService)context.getBean("webClientConfigService");
50: ClientConfigElement configElement = (ClientConfigElement)configService.getGlobalConfig().getConfigElement("client");
51: String location = configElement.getInitialLocation();
52:
53: AuthenticationService authService = (AuthenticationService)context.getBean("AuthenticationService");


An error occurred at line: 50 in the jsp file: /index.jsp
ClientConfigElement cannot be resolved to a type
47: // get the start location as configured by the web-client config
48: WebApplicationContext context = WebApplicationContextUtils.getRequiredWebApplicationContext(session.getServletContext());
49: ConfigService configService = (ConfigService)context.getBean("webClientConfigService");
50: ClientConfigElement configElement = (ClientConfigElement)configService.getGlobalConfig().getConfigElement("client");
51: String location = configElement.getInitialLocation();
52:
53: AuthenticationService authService = (AuthenticationService)context.getBean("AuthenticationService");


An error occurred at line: 53 in the jsp file: /index.jsp
AuthenticationService cannot be resolved to a type
50: ClientConfigElement configElement = (ClientConfigElement)configService.getGlobalConfig().getConfigElement("client");
51: String location = configElement.getInitialLocation();
52:
53: AuthenticationService authService = (AuthenticationService)context.getBean("AuthenticationService");
54:
55: // override with the users preference if they have one
56: User user = (User)session.getAttribute(AuthenticationHelper.AUTHENTICATION_USER);


An error occurred at line: 53 in the jsp file: /index.jsp
AuthenticationService cannot be resolved to a type
50: ClientConfigElement configElement = (ClientConfigElement)configService.getGlobalConfig().getConfigElement("client");
51: String location = configElement.getInitialLocation();
52:
53: AuthenticationService authService = (AuthenticationService)context.getBean("AuthenticationService");
54:
55: // override with the users preference if they have one
56: User user = (User)session.getAttribute(AuthenticationHelper.AUTHENTICATION_USER);


An error occurred at line: 56 in the jsp file: /index.jsp
User cannot be resolved to a type
53: AuthenticationService authService = (AuthenticationService)context.getBean("AuthenticationService");
54:
55: // override with the users preference if they have one
56: User user = (User)session.getAttribute(AuthenticationHelper.AUTHENTICATION_USER);
57: if (user != null)
58: {
59: UserTransaction tx = ((TransactionService)context.getBean("TransactionService")).getUserTransaction();;


An error occurred at line: 56 in the jsp file: /index.jsp
User cannot be resolved to a type
53: AuthenticationService authService = (AuthenticationService)context.getBean("AuthenticationService");
54:
55: // override with the users preference if they have one
56: User user = (User)session.getAttribute(AuthenticationHelper.AUTHENTICATION_USER);
57: if (user != null)
58: {
59: UserTransaction tx = ((TransactionService)context.getBean("TransactionService")).getUserTransaction();;


An error occurred at line: 56 in the jsp file: /index.jsp
AuthenticationHelper.AUTHENTICATION_USER cannot be resolved to a type
53: AuthenticationService authService = (AuthenticationService)context.getBean("AuthenticationService");
54:
55: // override with the users preference if they have one
56: User user = (User)session.getAttribute(AuthenticationHelper.AUTHENTICATION_USER);
57: if (user != null)
58: {
59: UserTransaction tx = ((TransactionService)context.getBean("TransactionService")).getUserTransaction();;


An error occurred at line: 59 in the jsp file: /index.jsp
UserTransaction cannot be resolved to a type
56: User user = (User)session.getAttribute(AuthenticationHelper.AUTHENTICATION_USER);
57: if (user != null)
58: {
59: UserTransaction tx = ((TransactionService)context.getBean("TransactionService")).getUserTransaction();;
60: tx.begin();
61: try
62: {


An error occurred at line: 59 in the jsp file: /index.jsp
TransactionService cannot be resolved to a type
56: User user = (User)session.getAttribute(AuthenticationHelper.AUTHENTICATION_USER);
57: if (user != null)
58: {
59: UserTransaction tx = ((TransactionService)context.getBean("TransactionService")).getUserTransaction();;
60: tx.begin();
61: try
62: {


An error occurred at line: 66 in the jsp file: /index.jsp
FacesContext cannot be resolved to a type
63: authService.validate(user.getTicket());
64:
65: // ensure construction of the FacesContext before attemping a service call
66: FacesContext fc = FacesHelper.getFacesContext(request, response, application);
67: String preference = (String)PreferencesService.getPreferences(fc).getValue("start-location");
68: if (preference != null)
69: {


An error occurred at line: 66 in the jsp file: /index.jsp
FacesHelper cannot be resolved
63: authService.validate(user.getTicket());
64:
65: // ensure construction of the FacesContext before attemping a service call
66: FacesContext fc = FacesHelper.getFacesContext(request, response, application);
67: String preference = (String)PreferencesService.getPreferences(fc).getValue("start-location");
68: if (preference != null)
69: {


An error occurred at line: 67 in the jsp file: /index.jsp
PreferencesService cannot be resolved
64:
65: // ensure construction of the FacesContext before attemping a service call
66: FacesContext fc = FacesHelper.getFacesContext(request, response, application);
67: String preference = (String)PreferencesService.getPreferences(fc).getValue("start-location");
68: if (preference != null)
69: {
70: location = preference;


An error occurred at line: 75 in the jsp file: /index.jsp
AuthenticationException cannot be resolved to a type
72:
73: tx.commit();
74: }
75: catch (AuthenticationException authErr)
76: {
77: try { tx.rollback(); } catch (Throwable tex) {}
78:


An error occurred at line: 80 in the jsp file: /index.jsp
AuthenticationService cannot be resolved to a type
77: try { tx.rollback(); } catch (Throwable tex) {}
78:
79: // expired ticket
80: AuthenticationService unpAuth = (AuthenticationService)context.getBean("authenticationService");
81: unpAuth.invalidateTicket(unpAuth.getCurrentTicket());
82: unpAuth.clearCurrentSecurityContext();
83: }


An error occurred at line: 80 in the jsp file: /index.jsp
AuthenticationService cannot be resolved to a type
77: try { tx.rollback(); } catch (Throwable tex) {}
78:
79: // expired ticket
80: AuthenticationService unpAuth = (AuthenticationService)context.getBean("authenticationService");
81: unpAuth.invalidateTicket(unpAuth.getCurrentTicket());
82: unpAuth.clearCurrentSecurityContext();
83: }


An error occurred at line: 91 in the jsp file: /index.jsp
UserTransaction cannot be resolved to a type
88: }
89: else
90: {
91: UserTransaction tx = ((TransactionService)context.getBean("TransactionService")).getUserTransaction();;
92: tx.begin();
93: try
94: {


An error occurred at line: 91 in the jsp file: /index.jsp
TransactionService cannot be resolved to a type
88: }
89: else
90: {
91: UserTransaction tx = ((TransactionService)context.getBean("TransactionService")).getUserTransaction();;
92: tx.begin();
93: try
94: {


An error occurred at line: 96 in the jsp file: /index.jsp
PersonService cannot be resolved to a type
93: try
94: {
95: authService.authenticateAsGuest();
96: PersonService personService = (PersonService)context.getBean("personService");
97: NodeRef guestRef = personService.getPerson(PermissionService.GUEST_AUTHORITY);
98: user = new User(authService.getCurrentUserName(), authService.getCurrentTicket(), guestRef);
99: session.setAttribute(AuthenticationHelper.AUTHENTICATION_USER, user);


An error occurred at line: 96 in the jsp file: /index.jsp
PersonService cannot be resolved to a type
93: try
94: {
95: authService.authenticateAsGuest();
96: PersonService personService = (PersonService)context.getBean("personService");
97: NodeRef guestRef = personService.getPerson(PermissionService.GUEST_AUTHORITY);
98: user = new User(authService.getCurrentUserName(), authService.getCurrentTicket(), guestRef);
99: session.setAttribute(AuthenticationHelper.AUTHENTICATION_USER, user);


An error occurred at line: 97 in the jsp file: /index.jsp
NodeRef cannot be resolved to a type
94: {
95: authService.authenticateAsGuest();
96: PersonService personService = (PersonService)context.getBean("personService");
97: NodeRef guestRef = personService.getPerson(PermissionService.GUEST_AUTHORITY);
98: user = new User(authService.getCurrentUserName(), authService.getCurrentTicket(), guestRef);
99: session.setAttribute(AuthenticationHelper.AUTHENTICATION_USER, user);
100:


An error occurred at line: 97 in the jsp file: /index.jsp
PermissionService.GUEST_AUTHORITY cannot be resolved to a type
94: {
95: authService.authenticateAsGuest();
96: PersonService personService = (PersonService)context.getBean("personService");
97: NodeRef guestRef = personService.getPerson(PermissionService.GUEST_AUTHORITY);
98: user = new User(authService.getCurrentUserName(), authService.getCurrentTicket(), guestRef);
99: session.setAttribute(AuthenticationHelper.AUTHENTICATION_USER, user);
100:


An error occurred at line: 98 in the jsp file: /index.jsp
User cannot be resolved to a type
95: authService.authenticateAsGuest();
96: PersonService personService = (PersonService)context.getBean("personService");
97: NodeRef guestRef = personService.getPerson(PermissionService.GUEST_AUTHORITY);
98: user = new User(authService.getCurrentUserName(), authService.getCurrentTicket(), guestRef);
99: session.setAttribute(AuthenticationHelper.AUTHENTICATION_USER, user);
100:
101: // ensure construction of the FacesContext before attemping a service call


An error occurred at line: 99 in the jsp file: /index.jsp
AuthenticationHelper.AUTHENTICATION_USER cannot be resolved to a type
96: PersonService personService = (PersonService)context.getBean("personService");
97: NodeRef guestRef = personService.getPerson(PermissionService.GUEST_AUTHORITY);
98: user = new User(authService.getCurrentUserName(), authService.getCurrentTicket(), guestRef);
99: session.setAttribute(AuthenticationHelper.AUTHENTICATION_USER, user);
100:
101: // ensure construction of the FacesContext before attemping a service call
102: FacesContext fc = FacesHelper.getFacesContext(request, response, application);


An error occurred at line: 102 in the jsp file: /index.jsp
FacesContext cannot be resolved to a type
99: session.setAttribute(AuthenticationHelper.AUTHENTICATION_USER, user);
100:
101: // ensure construction of the FacesContext before attemping a service call
102: FacesContext fc = FacesHelper.getFacesContext(request, response, application);
103: String preference = (String)PreferencesService.getPreferences(session).getValue("start-location");
104: if (preference != null)
105: {


An error occurred at line: 102 in the jsp file: /index.jsp
FacesHelper cannot be resolved
99: session.setAttribute(AuthenticationHelper.AUTHENTICATION_USER, user);
100:
101: // ensure construction of the FacesContext before attemping a service call
102: FacesContext fc = FacesHelper.getFacesContext(request, response, application);
103: String preference = (String)PreferencesService.getPreferences(session).getValue("start-location");
104: if (preference != null)
105: {


An error occurred at line: 103 in the jsp file: /index.jsp
PreferencesService cannot be resolved
100:
101: // ensure construction of the FacesContext before attemping a service call
102: FacesContext fc = FacesHelper.getFacesContext(request, response, application);
103: String preference = (String)PreferencesService.getPreferences(session).getValue("start-location");
104: if (preference != null)
105: {
106: location = preference;


An error occurred at line: 108 in the jsp file: /index.jsp
AuthenticationHelper.AUTHENTICATION_USER cannot be resolved to a type
105: {
106: location = preference;
107: }
108: session.removeAttribute(AuthenticationHelper.AUTHENTICATION_USER);
109:
110: tx.commit();
111: }


An error occurred at line: 120 in the jsp file: /index.jsp
NavigationBean.LOCATION_MYALFRESCO cannot be resolved to a type
117:
118: if (request.getMethod().equalsIgnoreCase("GET"))
119: {
120: if (NavigationBean.LOCATION_MYALFRESCO.equals(location))
121: {
122: // Clear previous location - Fixes the issue ADB-61
123: FacesContext fc = FacesHelper.getFacesContext(request, response, application);


An error occurred at line: 123 in the jsp file: /index.jsp
FacesContext cannot be resolved to a type
120: if (NavigationBean.LOCATION_MYALFRESCO.equals(location))
121: {
122: // Clear previous location - Fixes the issue ADB-61
123: FacesContext fc = FacesHelper.getFacesContext(request, response, application);
124: if (fc != null)
125: {
126: NavigationBean navigationBean = (NavigationBean)FacesHelper.getManagedBean(fc, "NavigationBean");


An error occurred at line: 123 in the jsp file: /index.jsp
FacesHelper cannot be resolved
120: if (NavigationBean.LOCATION_MYALFRESCO.equals(location))
121: {
122: // Clear previous location - Fixes the issue ADB-61
123: FacesContext fc = FacesHelper.getFacesContext(request, response, application);
124: if (fc != null)
125: {
126: NavigationBean navigationBean = (NavigationBean)FacesHelper.getManagedBean(fc, "NavigationBean");


An error occurred at line: 126 in the jsp file: /index.jsp
NavigationBean cannot be resolved to a type
123: FacesContext fc = FacesHelper.getFacesContext(request, response, application);
124: if (fc != null)
125: {
126: NavigationBean navigationBean = (NavigationBean)FacesHelper.getManagedBean(fc, "NavigationBean");
127: if (navigationBean != null)
128: {
129: navigationBean.setLocation(null);


An error occurred at line: 126 in the jsp file: /index.jsp
NavigationBean cannot be resolved to a type
123: FacesContext fc = FacesHelper.getFacesContext(request, response, application);
124: if (fc != null)
125: {
126: NavigationBean navigationBean = (NavigationBean)FacesHelper.getManagedBean(fc, "NavigationBean");
127: if (navigationBean != null)
128: {
129: navigationBean.setLocation(null);


An error occurred at line: 126 in the jsp file: /index.jsp
FacesHelper cannot be resolved
123: FacesContext fc = FacesHelper.getFacesContext(request, response, application);
124: if (fc != null)
125: {
126: NavigationBean navigationBean = (NavigationBean)FacesHelper.getManagedBean(fc, "NavigationBean");
127: if (navigationBean != null)
128: {
129: navigationBean.setLocation(null);


Stacktrace:
   org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92)
   org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
   org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:423)
   org.apache.jasper.compiler.Compiler.compile(Compiler.java:317)
   org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
   org.apache.jasper.compiler.Compiler.compile(Compiler.java:282)
   org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:586)
   org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
   org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
   org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

in the localhost log this is what i see:
VERE: Servlet.service() for servlet pageRendererServlet threw exception
java.io.IOException: Unable to test document path: site-index.xml in remote store: alfresco due to error:
   at org.alfresco.web.scripts.RemoteStore.hasDocument(RemoteStore.java:351)
   at org.alfresco.web.framework.StoreModelObjectPersister.getObjectByPath(StoreModelObjectPersister.java:136)
   at org.alfresco.web.framework.StoreModelObjectPersister.getObject(StoreModelObjectPersister.java:108)
   at org.alfresco.web.framework.MultiModelObjectPersister.getObject(MultiModelObjectPersister.java:106)
   at org.alfresco.web.framework.ModelObjectManager.getObject(ModelObjectManager.java:136)
   at org.alfresco.web.site.Model.getObject(Model.java:513)
   at org.alfresco.web.site.Model.getPage(Model.java:165)
   at org.alfresco.web.site.SlingshotPageMapper.executeMapper(SlingshotPageMapper.java:188)
   at org.alfresco.web.site.AbstractPageMapper.execute(AbstractPageMapper.java:62)
   at org.alfresco.web.site.DefaultRequestContextFactory.newInstance(DefaultRequestContextFactory.java:109)
   at org.alfresco.web.site.FrameworkHelper.initRequestContext(FrameworkHelper.java:202)
   at org.alfresco.web.site.servlet.DispatcherServlet.service(DispatcherServlet.java:142)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
   at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
   at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
   at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
   at java.lang.Thread.run(Thread.java:619)
Nov 11, 2009 6:37:51 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet jsp threw exception
org.apache.jasper.JasperException: Unable to compile class for JSP:

An error occurred at line: 6 in the generated java file
Only a type can be imported. javax.faces.context.FacesContext resolves to a package

An error occurred at line: 7 in the generated java file
Only a type can be imported. javax.transaction.UserTransaction resolves to a package

An error occurred at line: 8 in the generated java file
Only a type can be imported. org.springframework.web.context.WebApplicationContext resolves to a package

An error occurred at line: 9 in the generated java file
Only a type can be imported. org.springframework.web.context.support.WebApplicationContextUtils resolves to a package

An error occurred at line: 10 in the generated java file
Only a type can be imported. org.alfresco.service.transaction.TransactionService resolves to a package

An error occurred at line: 11 in the generated java file
Only a type can be imported. org.alfresco.service.cmr.security.PermissionService resolves to a package

An error occurred at line: 12 in the generated java file
Only a type can be imported. org.alfresco.service.cmr.security.AuthenticationService resolves to a package

An error occurred at line: 13 in the generated java file
Only a type can be imported. org.alfresco.service.cmr.security.PersonService resolves to a package

An error occurred at line: 14 in the generated java file
Only a type can be imported. org.alfresco.service.cmr.security.PermissionService resolves to a package

An error occurred at line: 15 in the generated java file
Only a type can be imported. org.alfresco.service.cmr.repository.NodeRef resolves to a package

An error occurred at line: 16 in the generated java file
Only a type can be imported. org.alfresco.repo.security.authentication.AuthenticationException resolves to a package

An error occurred at line: 17 in the generated java file
Only a type can be imported. org.alfresco.config.ConfigService resolves to a package

An error occurred at line: 18 in the generated java file
Only a type can be imported. org.alfresco.web.app.servlet.AuthenticationHelper resolves to a package

An error occurred at line: 19 in the generated java file
Only a type can be imported. org.alfresco.web.app.servlet.FacesHelper resolves to a package

An error occurred at line: 20 in the generated java file
Only a type can be imported. org.alfresco.web.bean.NavigationBean resolves to a package

An error occurred at line: 21 in the generated java file
Only a type can be imported. org.alfresco.web.bean.repository.User resolves to a package

An error occurred at line: 22 in the generated java file
Only a type can be imported. org.alfresco.web.bean.repository.PreferencesService resolves to a package

An error occurred at line: 23 in the generated java file
Only a type can be imported. org.alfresco.web.config.ClientConfigElement resolves to a package

An error occurred at line: 48 in the jsp file: /index.jsp
WebApplicationContext cannot be resolved to a type
45: <%– redirect to the web application's appropriate start page –%>
46: <%
47: // get the start location as configured by the web-client config
48: WebApplicationContext context = WebApplicationContextUtils.getRequiredWebApplicationContext(session.getServletContext());
49: ConfigService configService = (ConfigService)context.getBean("webClientConfigService");
50: ClientConfigElement configElement = (ClientConfigElement)configService.getGlobalConfig().getConfigElement("client");
51: String location = configElement.getInitialLocation();


An error occurred at line: 48 in the jsp file: /index.jsp
WebApplicationContextUtils cannot be resolved
45: <%– redirect to the web application's appropriate start page –%>
46: <%
47: // get the start location as configured by the web-client config
48: WebApplicationContext context = WebApplicationContextUtils.getRequiredWebApplicationContext(session.getServletContext());
49: ConfigService configService = (ConfigService)context.getBean("webClientConfigService");
50: ClientConfigElement configElement = (ClientConfigElement)configService.getGlobalConfig().getConfigElement("client");
51: String location = configElement.getInitialLocation();


An error occurred at line: 49 in the jsp file: /index.jsp
ConfigService cannot be resolved to a type
46: <%
47: // get the start location as configured by the web-client config
48: WebApplicationContext context = WebApplicationContextUtils.getRequiredWebApplicationContext(session.getServletContext());
49: ConfigService configService = (ConfigService)context.getBean("webClientConfigService");
50: ClientConfigElement configElement = (ClientConfigElement)configService.getGlobalConfig().getConfigElement("client");
51: String location = configElement.getInitialLocation();
52:


An error occurred at line: 49 in the jsp file: /index.jsp
ConfigService cannot be resolved to a type
46: <%
47: // get the start location as configured by the web-client config
48: WebApplicationContext context = WebApplicationContextUtils.getRequiredWebApplicationContext(session.getServletContext());
49: ConfigService configService = (ConfigService)context.getBean("webClientConfigService");
50: ClientConfigElement configElement = (ClientConfigElement)configService.getGlobalConfig().getConfigElement("client");
51: String location = configElement.getInitialLocation();
52:


An error occurred at line: 50 in the jsp file: /index.jsp
ClientConfigElement cannot be resolved to a type
47: // get the start location as configured by the web-client config
48: WebApplicationContext context = WebApplicationContextUtils.getRequiredWebApplicationContext(session.getServletContext());
49: ConfigService configService = (ConfigService)context.getBean("webClientConfigService");
50: ClientConfigElement configElement = (ClientConfigElement)configService.getGlobalConfig().getConfigElement("client");
51: String location = configElement.getInitialLocation();
52:
53: AuthenticationService authService = (AuthenticationService)context.getBean("AuthenticationService");


An error occurred at line: 50 in the jsp file: /index.jsp
ClientConfigElement cannot be resolved to a type
47: // get the start location as configured by the web-client config
48: WebApplicationContext context = WebApplicationContextUtils.getRequiredWebApplicationContext(session.getServletContext());
49: ConfigService configService = (ConfigService)context.getBean("webClientConfigService");
50: ClientConfigElement configElement = (ClientConfigElement)configService.getGlobalConfig().getConfigElement("client");
51: String location = configElement.getInitialLocation();
52:
53: AuthenticationService authService = (AuthenticationService)context.getBean("AuthenticationService");


An error occurred at line: 53 in the jsp file: /index.jsp
AuthenticationService cannot be resolved to a type
50: ClientConfigElement configElement = (ClientConfigElement)configService.getGlobalConfig().getConfigElement("client");
51: String location = configElement.getInitialLocation();
52:
53: AuthenticationService authService = (AuthenticationService)context.getBean("AuthenticationService");
54:
55: // override with the users preference if they have one
56: User user = (User)session.getAttribute(AuthenticationHelper.AUTHENTICATION_USER);


An error occurred at line: 53 in the jsp file: /index.jsp
AuthenticationService cannot be resolved to a type
50: ClientConfigElement configElement = (ClientConfigElement)configService.getGlobalConfig().getConfigElement("client");
51: String location = configElement.getInitialLocation();
52:
53: AuthenticationService authService = (AuthenticationService)context.getBean("AuthenticationService");
54:
55: // override with the users preference if they have one
56: User user = (User)session.getAttribute(AuthenticationHelper.AUTHENTICATION_USER);


An error occurred at line: 56 in the jsp file: /index.jsp
User cannot be resolved to a type
53: AuthenticationService authService = (AuthenticationService)context.getBean("AuthenticationService");
54:
55: // override with the users preference if they have one
56: User user = (User)session.getAttribute(AuthenticationHelper.AUTHENTICATION_USER);
57: if (user != null)
58: {
59: UserTransaction tx = ((TransactionService)context.getBean("TransactionService")).getUserTransaction();;


An error occurred at line: 56 in the jsp file: /index.jsp
User cannot be resolved to a type
53: AuthenticationService authService = (AuthenticationService)context.getBean("AuthenticationService");
54:
55: // override with the users preference if they have one
56: User user = (User)session.getAttribute(AuthenticationHelper.AUTHENTICATION_USER);
57: if (user != null)
58: {
59: UserTransaction tx = ((TransactionService)context.getBean("TransactionService")).getUserTransaction();;


An error occurred at line: 56 in the jsp file: /index.jsp
AuthenticationHelper.AUTHENTICATION_USER cannot be resolved to a type
53: AuthenticationService authService = (AuthenticationService)context.getBean("AuthenticationService");
54:
55: // override with the users preference if they have one
56: User user = (User)session.getAttribute(AuthenticationHelper.AUTHENTICATION_USER);
57: if (user != null)
58: {
59: UserTransaction tx = ((TransactionService)context.getBean("TransactionService")).getUserTransaction();;


An error occurred at line: 59 in the jsp file: /index.jsp
UserTransaction cannot be resolved to a type
56: User user = (User)session.getAttribute(AuthenticationHelper.AUTHENTICATION_USER);
57: if (user != null)
58: {
59: UserTransaction tx = ((TransactionService)context.getBean("TransactionService")).getUserTransaction();;
60: tx.begin();
61: try
62: {


An error occurred at line: 59 in the jsp file: /index.jsp
TransactionService cannot be resolved to a type
56: User user = (User)session.getAttribute(AuthenticationHelper.AUTHENTICATION_USER);
57: if (user != null)
58: {
59: UserTransaction tx = ((TransactionService)context.getBean("TransactionService")).getUserTransaction();;
60: tx.begin();
61: try
62: {


An error occurred at line: 66 in the jsp file: /index.jsp
FacesContext cannot be resolved to a type
63: authService.validate(user.getTicket());
64:
65: // ensure construction of the FacesContext before attemping a service call
66: FacesContext fc = FacesHelper.getFacesContext(request, response, application);
67: String preference = (String)PreferencesService.getPreferences(fc).getValue("start-location");
68: if (preference != null)
69: {


An error occurred at line: 66 in the jsp file: /index.jsp
FacesHelper cannot be resolved
63: authService.validate(user.getTicket());
64:
65: // ensure construction of the FacesContext before attemping a service call
66: FacesContext fc = FacesHelper.getFacesContext(request, response, application);
67: String preference = (String)PreferencesService.getPreferences(fc).getValue("start-location");
68: if (preference != null)
69: {


An error occurred at line: 67 in the jsp file: /index.jsp
PreferencesService cannot be resolved
64:
65: // ensure construction of the FacesContext before attemping a service call
66: FacesContext fc = FacesHelper.getFacesContext(request, response, application);
67: String preference = (String)PreferencesService.getPreferences(fc).getValue("start-location");
68: if (preference != null)
69: {
70: location = preference;


An error occurred at line: 75 in the jsp file: /index.jsp
AuthenticationException cannot be resolved to a type
72:
73: tx.commit();
74: }
75: catch (AuthenticationException authErr)
76: {
77: try { tx.rollback(); } catch (Throwable tex) {}
78:


An error occurred at line: 80 in the jsp file: /index.jsp
AuthenticationService cannot be resolved to a type
77: try { tx.rollback(); } catch (Throwable tex) {}
78:
79: // expired ticket
80: AuthenticationService unpAuth = (AuthenticationService)context.getBean("authenticationService");
81: unpAuth.invalidateTicket(unpAuth.getCurrentTicket());
82: unpAuth.clearCurrentSecurityContext();
83: }


An error occurred at line: 80 in the jsp file: /index.jsp
AuthenticationService cannot be resolved to a type
77: try { tx.rollback(); } catch (Throwable tex) {}
78:
79: // expired ticket
80: AuthenticationService unpAuth = (AuthenticationService)context.getBean("authenticationService");
81: unpAuth.invalidateTicket(unpAuth.getCurrentTicket());
82: unpAuth.clearCurrentSecurityContext();
83: }


An error occurred at line: 91 in the jsp file: /index.jsp
UserTransaction cannot be resolved to a type
88: }
89: else
90: {
91: UserTransaction tx = ((TransactionService)context.getBean("TransactionService")).getUserTransaction();;
92: tx.begin();
93: try
94: {


An error occurred at line: 91 in the jsp file: /index.jsp
TransactionService cannot be resolved to a type
88: }
89: else
90: {
91: UserTransaction tx = ((TransactionService)context.getBean("TransactionService")).getUserTransaction();;
92: tx.begin();
93: try
94: {


An error occurred at line: 96 in the jsp file: /index.jsp
PersonService cannot be resolved to a type
93: try
94: {
95: authService.authenticateAsGuest();
96: PersonService personService = (PersonService)context.getBean("personService");
97: NodeRef guestRef = personService.getPerson(PermissionService.GUEST_AUTHORITY);
98: user = new User(authService.getCurrentUserName(), authService.getCurrentTicket(), guestRef);
99: session.setAttribute(AuthenticationHelper.AUTHENTICATION_USER, user);


An error occurred at line: 96 in the jsp file: /index.jsp
PersonService cannot be resolved to a type
93: try
94: {
95: authService.authenticateAsGuest();
96: PersonService personService = (PersonService)context.getBean("personService");
97: NodeRef guestRef = personService.getPerson(PermissionService.GUEST_AUTHORITY);
98: user = new User(authService.getCurrentUserName(), authService.getCurrentTicket(), guestRef);
99: session.setAttribute(AuthenticationHelper.AUTHENTICATION_USER, user);


An error occurred at line: 97 in the jsp file: /index.jsp
NodeRef cannot be resolved to a type
94: {
95: authService.authenticateAsGuest();
96: PersonService personService = (PersonService)context.getBean("personService");
97: NodeRef guestRef = personService.getPerson(PermissionService.GUEST_AUTHORITY);
98: user = new User(authService.getCurrentUserName(), authService.getCurrentTicket(), guestRef);
99: session.setAttribute(AuthenticationHelper.AUTHENTICATION_USER, user);
100:


An error occurred at line: 97 in the jsp file: /index.jsp
PermissionService.GUEST_AUTHORITY cannot be resolved to a type
94: {
95: authService.authenticateAsGuest();
96: PersonService personService = (PersonService)context.getBean("personService");
97: NodeRef guestRef = personService.getPerson(PermissionService.GUEST_AUTHORITY);
98: user = new User(authService.getCurrentUserName(), authService.getCurrentTicket(), guestRef);
99: session.setAttribute(AuthenticationHelper.AUTHENTICATION_USER, user);
100:


An error occurred at line: 98 in the jsp file: /index.jsp
User cannot be resolved to a type
95: authService.authenticateAsGuest();
96: PersonService personService = (PersonService)context.getBean("personService");
97: NodeRef guestRef = personService.getPerson(PermissionService.GUEST_AUTHORITY);
98: user = new User(authService.getCurrentUserName(), authService.getCurrentTicket(), guestRef);
99: session.setAttribute(AuthenticationHelper.AUTHENTICATION_USER, user);
100:
101: // ensure construction of the FacesContext before attemping a service call


An error occurred at line: 99 in the jsp file: /index.jsp
AuthenticationHelper.AUTHENTICATION_USER cannot be resolved to a type
96: PersonService personService = (PersonService)context.getBean("personService");
97: NodeRef guestRef = personService.getPerson(PermissionService.GUEST_AUTHORITY);
98: user = new User(authService.getCurrentUserName(), authService.getCurrentTicket(), guestRef);
99: session.setAttribute(AuthenticationHelper.AUTHENTICATION_USER, user);
100:
101: // ensure construction of the FacesContext before attemping a service call
102: FacesContext fc = FacesHelper.getFacesContext(request, response, application);


An error occurred at line: 102 in the jsp file: /index.jsp
FacesContext cannot be resolved to a type
99: session.setAttribute(AuthenticationHelper.AUTHENTICATION_USER, user);
100:
101: // ensure construction of the FacesContext before attemping a service call
102: FacesContext fc = FacesHelper.getFacesContext(request, response, application);
103: String preference = (String)PreferencesService.getPreferences(session).getValue("start-location");
104: if (preference != null)
105: {


An error occurred at line: 102 in the jsp file: /index.jsp
FacesHelper cannot be resolved
99: session.setAttribute(AuthenticationHelper.AUTHENTICATION_USER, user);
100:
101: // ensure construction of the FacesContext before attemping a service call
102: FacesContext fc = FacesHelper.getFacesContext(request, response, application);
103: String preference = (String)PreferencesService.getPreferences(session).getValue("start-location");
104: if (preference != null)
105: {


An error occurred at line: 103 in the jsp file: /index.jsp
PreferencesService cannot be resolved
100:
101: // ensure construction of the FacesContext before attemping a service call
102: FacesContext fc = FacesHelper.getFacesContext(request, response, application);
103: String preference = (String)PreferencesService.getPreferences(session).getValue("start-location");
104: if (preference != null)
105: {
106: location = preference;


An error occurred at line: 108 in the jsp file: /index.jsp
AuthenticationHelper.AUTHENTICATION_USER cannot be resolved to a type
105: {
106: location = preference;
107: }
108: session.removeAttribute(AuthenticationHelper.AUTHENTICATION_USER);
109:
110: tx.commit();
111: }


An error occurred at line: 120 in the jsp file: /index.jsp
NavigationBean.LOCATION_MYALFRESCO cannot be resolved to a type
117:
118: if (request.getMethod().equalsIgnoreCase("GET"))
119: {
120: if (NavigationBean.LOCATION_MYALFRESCO.equals(location))
121: {
122: // Clear previous location - Fixes the issue ADB-61
123: FacesContext fc = FacesHelper.getFacesContext(request, response, application);


An error occurred at line: 123 in the jsp file: /index.jsp
FacesContext cannot be resolved to a type
120: if (NavigationBean.LOCATION_MYALFRESCO.equals(location))
121: {
122: // Clear previous location - Fixes the issue ADB-61
123: FacesContext fc = FacesHelper.getFacesContext(request, response, application);
124: if (fc != null)
125: {
126: NavigationBean navigationBean = (NavigationBean)FacesHelper.getManagedBean(fc, "NavigationBean");


An error occurred at line: 123 in the jsp file: /index.jsp
FacesHelper cannot be resolved
120: if (NavigationBean.LOCATION_MYALFRESCO.equals(location))
121: {
122: // Clear previous location - Fixes the issue ADB-61
123: FacesContext fc = FacesHelper.getFacesContext(request, response, application);
124: if (fc != null)
125: {
126: NavigationBean navigationBean = (NavigationBean)FacesHelper.getManagedBean(fc, "NavigationBean");


An error occurred at line: 126 in the jsp file: /index.jsp
NavigationBean cannot be resolved to a type
123: FacesContext fc = FacesHelper.getFacesContext(request, response, application);
124: if (fc != null)
125: {
126: NavigationBean navigationBean = (NavigationBean)FacesHelper.getManagedBean(fc, "NavigationBean");
127: if (navigationBean != null)
128: {
129: navigationBean.setLocation(null);


An error occurred at line: 126 in the jsp file: /index.jsp
NavigationBean cannot be resolved to a type
123: FacesContext fc = FacesHelper.getFacesContext(request, response, application);
124: if (fc != null)
125: {
126: NavigationBean navigationBean = (NavigationBean)FacesHelper.getManagedBean(fc, "NavigationBean");
127: if (navigationBean != null)
128: {
129: navigationBean.setLocation(null);


An error occurred at line: 126 in the jsp file: /index.jsp
FacesHelper cannot be resolved
123: FacesContext fc = FacesHelper.getFacesContext(request, response, application);
124: if (fc != null)
125: {
126: NavigationBean navigationBean = (NavigationBean)FacesHelper.getManagedBean(fc, "NavigationBean");
127: if (navigationBean != null)
128: {
129: navigationBean.setLocation(null);


Stacktrace:
   at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92)
   at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
   at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:423)
   at org.apache.jasper.compiler.Compiler.compile(Compiler.java:317)
   at org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
   at org.apache.jasper.compiler.Compiler.compile(Compiler.java:282)
   at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:586)
   at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
   at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
   at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
   at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
   at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
   at java.lang.Thread.run(Thread.java:619)
Nov 11, 2009 6:41:13 PM org.apache.catalina.core.ApplicationContext log
INFO: Closing Spring root WebApplicationContext
Nov 11, 2009 6:41:14 PM org.apache.catalina.core.ApplicationContext log
INFO: Closing Spring root WebApplicationContext
Nov 11, 2009 6:41:14 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextDestroyed()
Nov 11, 2009 6:41:14 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextDestroyed()


Can anyone please help?
Thanks!
Tushar

Outcomes