Java org.apache.jasper.jaspereException:无法为JSP pls helpz编译类
我正在使用Maven制作一个web应用程序项目。我将jsp文件命名为Java org.apache.jasper.jaspereException:无法为JSP pls helpz编译类,java,jsp,maven,Java,Jsp,Maven,我正在使用Maven制作一个web应用程序项目。我将jsp文件命名为index.jsp 下面是index.jsp: <%@ page language="java" contentType="text/html; charset=ISO-8859-1"%> <%@ page import="rajendra.arora.bitcoin.CoinbaseExample" %> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.
index.jsp
下面是index.jsp
:
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"%>
<%@ page import="rajendra.arora.bitcoin.CoinbaseExample" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<p>My name is fooo.</p>
<%
CoinbaseExample ce=new CoinbaseExample();
out.println(ce.getHttp("https://api.coinbase.com/v1/account/balance", null));
%>
</body>
</html>
我还在pom.xml
中插入了dependency
,如:
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>jsp-api</artifactId>
<version>2.0</version>
<scope>provided</scope>
</dependency>
我的index.jsp
说:
HTTP Status 500 - Unable to compile class for JSP.
请帮帮我:(
当然,非常感谢您的帮助!!我在tomcat 6/7上复制了源代码,工作正常。 我得到 我猜错误是因为我评论了
// Coinbase cb = new CoinbaseBuilder()
// .withApiKey(System.getenv(API_KEY), System.getenv(API_SECRET))
// .build();
请尝试Project>Clean…,然后尝试Tomcat>Clean…
类型JspFactory的方法getJspApplicationContext(ServletContext)未定义抱歉..无法理解..请帮助:(
HTTP Status 500 - Unable to compile class for JSP.
My name is fooo.
{"error":"ACCESS_KEY not matched with a user"}
// Coinbase cb = new CoinbaseBuilder()
// .withApiKey(System.getenv(API_KEY), System.getenv(API_SECRET))
// .build();