尝试通过Quality Center Rest API进行身份验证时,服务器遇到内部错误

时间:2014-08-01 15:23:22

标签: api rest hp-quality-center

在尝试OurQualityCenter:8080 / qcbin / rest / is-authenticated后,我得到了预期的401。

下一步是做OurQualityCenter:8080 / qcbin / rest / authentication-point / authenticate = Y。

第二次浏览器尝试返回http错误500.我注意到login_jsp.class似乎丢失了。谁能给我一些关于这里发生了什么的线索?我正在使用质量中心11。

`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
    org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:593)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:312)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:322)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    org.hp.qc.web.restapi.RESTApiFilter.doFilter(RESTApiFilter.java:65)
    org.springframework.security.util.FilterChainProxy.doFilter(FilterChainProxy.java:169)
    org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237)
    org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167)
    com.mercury.optane.core.state.ServerStatusFilter.doFilter(ServerStatusFilter.java:33)
    org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
root cause 
**java.io.FileNotFoundException: no such file: C:\Documents and Settings\All Users\Application Data\HP\ALM\jboss\server\default\work\jboss.web\localhost\qcbin\org\apache\jsp\authentication_002dpoint\login_jsp.class**
    org.apache.jasper.compiler.SmapUtil$SDEInstaller.<init>(SmapUtil.java:253)
    org.apache.jasper.compiler.SmapUtil$SDEInstaller.install(SmapUtil.java:241)
    org.apache.jasper.compiler.SmapUtil.installSmap(SmapUtil.java:165)
    org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:454)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:335)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:313)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:300)
    org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:585)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:312)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:322)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    org.hp.qc.web.restapi.RESTApiFilter.doFilter(RESTApiFilter.java:65)
    org.springframework.security.util.FilterChainProxy.doFilter(FilterChainProxy.java:169)
    org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237)
    org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167)
    com.mercury.optane.core.state.ServerStatusFilter.doFilter(ServerStatusFilter.java:33)
    org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
`

1 个答案:

答案 0 :(得分:0)

它真正告诉你的是没有https://example.com/qcbin/rest/authentication-point/authenticate

这样的网址

删除&#34;休息&#34;位:https://example.com/qcbin/authentication-point/authenticate

此时你需要传递凭证,但那是一个不同的问题......