什么版本的servlet,java和jsp支持openshift tomcat 7.0(JBossEWS 2.0)?

时间:2015-02-26 07:25:38

标签: java jsp servlets tomcat7 openshift

正如我的Spring MVC网络应用程序正在使用

  

Servlet版本:3.0   JSP版本:2.1   Java版本:1.7.0_11

并且使用上面的版本在 OpenShift Tomcat 7(JBossEWS 2.0)上部署了战争,它总是给我错误:

 org.apache.jasper.JasperException: Unable to compile class for JSP
 java.util.NoSuchElementException
java.util.ArrayList$Itr.next(ArrayList.java:834)

我尝试使用版本 JSP 2.0和Servlet 2.5 ..仍然没用。 任何帮助? 的的Login.jsp:

<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
  <%@   taglib  uri="http://java.sun.com/jsp/jstl/core"  prefix="c"%>
<%@ taglib  uri="http://www.springframework.org/tags/form" prefix="form" %>  
<!DOCTYPE html >
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Login</title>
</head>
<body>

<section id="page">
            <!-- HEADER -->
            <header>
                <!-- NAV-BAR -->
                <div class="container">
                    <div class="row">
                        <div class="col-md-4 col-md-offset-4">
                            <div id="logo">

                        </div>
                    </div>
                </div>
            </div>
            <!--/NAV-BAR -->
        </header>
        <!--/HEADER -->
        <!-- LOGIN -->
        <section id="login" class="visible">
            <div class="container">
                <div class="row">
                <c:if test="${not empty error}">

                    <div class="errorblock" style="text-align:center;">  
                        <b style="text-align:center;">Your login attempt was not successful, try again.</b>
                    </div>
                </c:if>
                    <div class="col-md-4 col-md-offset-4">
                        <div class="login-box-plain divide-40">

                             <form:form    method="post" action="authenticate" modelAttribute="userInfo">
                              <div class="form-group">
                                <label for="exampleInputEmail1">User Name</label>
                                   <i class="fa fa-user"></i>
                                <form:input  path="loginID" id="username" placeholder="" />

                              </div>
                              <div class="form-group"> 
                                <label for="exampleInputPassword1">Password</label>
                                <i class="fa fa-lock"></i>
                                 <form:password class="form-control" path="password" id="password" placeholder=""/>

                              </div>
                              <div>

                                <button type="submit" class="btn btn-danger">Login</button>
                              </div>
                            </form:form>


                        </div>
                    </div>
                </div>
            </div>
        </section>
        <!--/LOGIN -->


</section>

1 个答案:

答案 0 :(得分:0)

您可以通过sshing到您的应用程序并运行以下命令来找到tomcat 7正在使用的库的版本:

ls ~/jbossews/lib

将输出以下内容:

ls ~/jbossews/lib/
annotations-api-7.0.54.jar     
el-api-7.0.54.jar      
servlet-api.jar      
tomcat-i18n-ja-7.0.54.jar
annotations-api.jar        
el-api.jar         
tomcat7-websocket-7.0.54.jar  
tomcat-i18n-ja.jar
catalina-7.0.54.jar        
extras         
tomcat7-websocket.jar    
tomcat-jdbc-7.0.54.jar
catalina-ant-7.0.54.jar        
jasper-7.0.54.jar      
tomcat-api-7.0.54.jar    
tomcat-jdbc.jar
catalina-ant.jar           
jasper-el-7.0.54.jar    
tomcat-api.jar       
tomcat-util-7.0.54.jar
catalina.jar               
jasper-el.jar      
tomcat-coyote-7.0.54.jar     
tomcat-util.jar
commons-collections-eap6.jar       
jasper.jar         
tomcat-coyote.jar        
websocket-api-7.0.54.jar
commons-dbcp-eap6.jar          
jasper-jdt.jar     
tomcat-i18n-es-7.0.54.jar    
websocket-api.jar
commons-loggin
g-adapters-eap6.jar  
jsp-api-7.0.54.jar     
tomcat-i18n-es.jar
commons-logging-api-eap6.jar       
jsp-api.jar        
tomcat-i18n-fr-7.0.54.jar
commons-pool-eap6.jar          
servlet-api-7.0.54.jar  
tomcat-i18n-fr.jar