目前我的项目正在linux服务器上运行,现在我在jdk5中编写了jdk版本jdk5到jdk8所以我该怎么办?
我应用了以下步骤: 1)我跟着文档库部署,所以我在apache2.27 / conf / httpd_vhost.conf文件和worker.properties中更改为我最新的编译(JDK8)位置目录。
httpd_vhost.conf:
<VirtualHost *:80>
ServerAdmin
DocumentRoot /usr/local/ProjectJ8/demoregserver
ServerName
DirectoryIndex index.html
ScriptAlias /cgi-bin "/usr/local/apache2.2.27/cgi-bin/"
Alias /demoregserver "/usr/local/ProjectJ8/demoregserver"
<Directory "/usr/local/ProjectJ8/demoregserver">
Options FollowSymLinks -Indexes
AllowOverride All
</Directory>
<Location "/demoregserver/WEB-INF/">
</Location>
<Location "/demoregserver/META-INF/">
</Location>
JkMount /demoregserver/servlet/* wsworker
JkMount /demoregserver/*.jsp wsworker
JkMount /demoregserver/kaptcha.jpg wsworker
#AddType application/x-httpd-php .php
# RewriteEngine On
# RewriteLog "logs/rewrite.log"
# RewriteLogLevel 10
# RewriteCond %{REQUEST_URI} .rpm
# RewriteCond ${tokenize:%{REMOTE_ADDR}%{QUERY_STRING}} !^$
# RewriteRule ^(.*)$ $1?${tokenize:%{REMOTE_ADDR}} [R,L]
CustomLog demoregserver_access_log common
CustomLog demoregserver_referer_log referer
CustomLog demoregserver_agent_log agent
2)我还更改了tomcate / conf / server.xml和workder.properties。在worker.properties中更改java_home = / usr / local / jdk1.8.0_101
server.xml:
<Context path="/demoregserver"
docBase="/usr/local/ProjectJ8/demoregserver"
debug="0"
crossContext="false" >
</Context>
我使用来自不同项目的特定Url调用此项目并收到此错误:
Exception while getting Registration Response java.io.IOException: Server returned HTTP response code: 500 for URL: http://update.demoreg.com/demoregserver/servlet/CustomerMyAccountManager
java.io.IOException: Server returned HTTP response code: 500 for URL: http://update.demoreg.com/demoregserver/servlet/CustomerMyAccountManager
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1626)
at registration.helpers.DemoRegProcess.registration(DemoRegProcess.java:150)
at registration.helpers.DemoRegProcess.subscription(DemoRegProcess.java:47)
at registration.helpers.SubscriptionHelper.processSubscription(SubscriptionHelper.java:219)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:643)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.filter.RequestFilterServlet.doFilter(RequestFilterServlet.java:60)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:311)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:776)
at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:705)
at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:898)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)
at java.lang.Thread.run(Thread.java:745)
答案 0 :(得分:0)
我发现这个错误500:
HTTP错误500内部服务器错误 引言
Web服务器(运行Web站点)遇到意外情况,导致客户端(例如您的Web浏览器或CheckUpDown机器人)无法满足请求访问请求的URL的请求。
这是Web服务器生成的“全能”错误。基本上出了问题,但服务器在响应客户端时不能更具体地说明错误情况。除了通知回客户端的500错误之外,Web服务器还应生成某种内部错误日志,其中提供了更多错误的详细信息。由Web服务器站点的操作员来定位和分析这些日志。 (最近更新时间:2013年10月) 修复500错误 - 一般
此错误只能通过修复Web服务器软件来解决。这不是客户端问题。由Web服务器站点的操作员来定位和分析日志,这些日志应提供有关错误的更多信息。