首页  »   应用服务器

javaweb本地运行正常,发到新浪云服务器上,凡是涉及到struts1.3都报500异常

网友分享于:2015-11-08  浏览:0次
javaweb本地运行正常,发到新浪云服务器上,凡是涉及到struts1.3都报500错误
我的项目是用servlet还有struts1.3做的!(小弟初学struts),在本地tomcat服务器运行正常,但是发到新浪云服务器上,凡是我用struts 里Action跳转的页面,都报500错误:
HTTP ERROR 500
Problem accessing //login.do. Reason: 

    Property 'class' is not present

Caused by:
java.lang.IllegalArgumentException: Property 'class' is not present
at org.apache.commons.chain.impl.ContextBase.eliminate(ContextBase.java:440)
at org.apache.commons.chain.impl.ContextBase.initialize(ContextBase.java:499)
at org.apache.commons.chain.impl.ContextBase.<init>(ContextBase.java:64)
at org.apache.commons.chain.web.WebContext.<init>(WebContext.java:41)
at org.apache.commons.chain.web.servlet.ServletWebContext.<init>(ServletWebContext.java:59)
at org.apache.struts.chain.contexts.ServletActionContext.<init>(ServletActionContext.java:59)
at org.apache.struts.chain.ComposableRequestProcessor.createActionContextInstance(ComposableRequestProcessor.java:339)
at org.apache.struts.chain.ComposableRequestProcessor.contextInstance(ComposableRequestProcessor.java:307)
at org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:275)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:538)
at com.sina.sae.servlet.SaeServletHolder.handle(SaeServletHolder.java:124)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:478)
at com.sina.sae.servlet.SaeServletHandler.doHandle(SaeServletHandler.java:49)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:517)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:225)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:937)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:406)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:183)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:871)
at com.sina.sae.webapp.SaeWebAppContext.doScope(SaeWebAppContext.java:166)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:259)
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:149)
at com.sina.sae.handler.SaeUserInfoHandler.handle(SaeUserInfoHandler.java:109)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110)
at org.eclipse.jetty.rewrite.handler.RewriteHandler.handle(RewriteHandler.java:305)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110)
at org.eclipse.jetty.server.Server.handle(Server.java:346)
at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:589)
at org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:1065)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:823)
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:220)
at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:411)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:535)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:40)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:529)
at java.lang.Thread.run(Thread.java:714)
纠结了很久!都不知道问题出在哪里!求大神帮忙指点一下!
我的web.xml配置信息是:
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" version="2.5">
  <welcome-file-list>
    <welcome-file>index.jsp</welcome-file>
  </welcome-file-list>
  <servlet>
    <description>This is the description of my J2EE component</description>
    <display-name>This is the display name of my J2EE component</display-name>
    <servlet-name>checkCodeServlet</servlet-name>
    <servlet-class>com.weimeng.servlet.checkCodeServlet</servlet-class>
  </servlet>
  <servlet>
    <description>This is the description of my J2EE component</description>
    <display-name>This is the display name of my J2EE component</display-name>
    <servlet-name>Technical_SupportServlet</servlet-name>
    <servlet-class>com.weimeng.servlet.Technical_SupportServlet</servlet-class>
  </servlet>
  <servlet>
    <description>This is the description of my J2EE component</description>
    <display-name>This is the display name of my J2EE component</display-name>
    <servlet-name>TrendsServlet</servlet-name>
    <servlet-class>com.weimeng.servlet.TrendsServlet</servlet-class>
  </servlet>
  <servlet>
    <description>This is the description of my J2EE component</description>
    <display-name>This is the display name of my J2EE component</display-name>
    <servlet-name>TextServlet</servlet-name>
    <servlet-class>com.weimeng.servlet.TextServlet</servlet-class>
  </servlet>
  <servlet-mapping>
    <servlet-name>checkCodeServlet</servlet-name>
    <url-pattern>/checkCodeServlet</url-pattern>
  </servlet-mapping>
  <servlet-mapping>
    <servlet-name>Technical_SupportServlet</servlet-name>
    <url-pattern>/Technical_SupportServlet</url-pattern>
  </servlet-mapping>
  <servlet-mapping>
    <servlet-name>TrendsServlet</servlet-name>
    <url-pattern>/TrendsServlet</url-pattern>
  </servlet-mapping>
  <servlet-mapping>
    <servlet-name>TextServlet</servlet-name>
    <url-pattern>/TextServlet</url-pattern>
  </servlet-mapping>
  <servlet>
    <servlet-name>Connector</servlet-name>
    <servlet-class>com.weimeng.servlet.ConnectorServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
  </servlet>
  <servlet-mapping>
    <servlet-name>Connector</servlet-name>
    <url-pattern>/fckeditor/editor/filemanager/connectors/*</url-pattern>
  </servlet-mapping>
  <servlet>
    <servlet-name>action</servlet-name>
    <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
    <init-param>
      <param-name>config</param-name>
      <param-value>/WEB-INF/struts-config.xml</param-value>
    </init-param>
    <init-param>
      <param-name>debug</param-name>
      <param-value>3</param-value>
    </init-param>
    <init-param>
      <param-name>detail</param-name>
      <param-value>3</param-value>
    </init-param>
    <load-on-startup>0</load-on-startup>
  </servlet>
  <servlet-mapping>
    <servlet-name>action</servlet-name>
    <url-pattern>*.do</url-pattern>
  </servlet-mapping>
</web-app>


------解决思路----------------------
sina sae用的是jetty,你在本地装一个测试一下吧,注意jre版本。

相关解决方案

最新解决方案