Instalar Liferay

0 respostas
T

Estou precisando de um ajuda muito grande para conseguir colocar para funcionar o Liferay, já instalei o Tomcat 6.0.18 e java, estão funcionando, só que não sei como fazer para subir o Liferay.
Quando eu coloco no browser o caminho.
http://192.168.0.32:8080/liferay/webapps/ROOT/ - caso faço o teste tentando acessar de outra máquina
ou então
http://localhost:8080/liferay/webapps/ROOT/ - direto do servidor.

Está dando uma série de erros.

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. com.liferay.portal.kernel.servlet.HttpHeaders resolves to a package

An error occurred at line: 7 in the generated java file
Only a type can be imported. com.liferay.portal.util.PortalUtil resolves to a package

An error occurred at line: 36 in the jsp file: /webapps/ROOT/index.jsp
PortalUtil cannot be resolved
33: // To work around this issue, we use a URL without a session id for meta-refresh
34: // and rely on the load event on the body element to properly rewrite the URL.
35: 
36: String mainPath = PortalUtil.getPathMain();
37: 
38: if (!request.isRequestedSessionIdFromCookie()) {
39: 	mainPath = PortalUtil.getURLWithSessionId(mainPath, session.getId());


An error occurred at line: 39 in the jsp file: /webapps/ROOT/index.jsp
PortalUtil cannot be resolved
36: String mainPath = PortalUtil.getPathMain();
37: 
38: if (!request.isRequestedSessionIdFromCookie()) {
39: 	mainPath = PortalUtil.getURLWithSessionId(mainPath, session.getId());
40: }
41: 
42: response.setHeader(HttpHeaders.LOCATION, mainPath);


An error occurred at line: 42 in the jsp file: /webapps/ROOT/index.jsp
HttpHeaders.LOCATION cannot be resolved to a type
39: 	mainPath = PortalUtil.getURLWithSessionId(mainPath, session.getId());
40: }
41: 
42: response.setHeader(HttpHeaders.LOCATION, mainPath);
43: response.setHeader(HttpHeaders.CONNECTION, HttpHeaders.CLOSE);
44: 
45: response.setStatus(HttpServletResponse.SC_MOVED_PERMANENTLY);


An error occurred at line: 43 in the jsp file: /webapps/ROOT/index.jsp
HttpHeaders.CONNECTION cannot be resolved to a type
40: }
41: 
42: response.setHeader(HttpHeaders.LOCATION, mainPath);
43: response.setHeader(HttpHeaders.CONNECTION, HttpHeaders.CLOSE);
44: 
45: response.setStatus(HttpServletResponse.SC_MOVED_PERMANENTLY);
46: %>


An error occurred at line: 43 in the jsp file: /webapps/ROOT/index.jsp
HttpHeaders.CLOSE cannot be resolved to a type
40: }
41: 
42: response.setHeader(HttpHeaders.LOCATION, mainPath);
43: response.setHeader(HttpHeaders.CONNECTION, HttpHeaders.CLOSE);
44: 
45: response.setStatus(HttpServletResponse.SC_MOVED_PERMANENTLY);
46: %>


An error occurred at line: 51 in the jsp file: /webapps/ROOT/index.jsp
PortalUtil cannot be resolved
48: <html>
49: <head>
50: 	<title></title>
51: 	<meta content="1; url=<%= PortalUtil.getPathMain() %>" http-equiv="refresh" />
52: </head>
53: 
54: <body onload="javascript: location.replace('<%= mainPath %>')">


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)


note The full stack trace of the root cause is available in the Apache Tomcat/6.0.18 logs.

Obrigada

Letícia

Criado 27 de outubro de 2008
Respostas 0
Participantes 1