eclipse在osgi里面出现乱码的问题解决

eclipse在osgi里面出现乱码的问题解决

 如果出现乱码问题,则修改

的tomcat-server.xml文件:

<Connector port="8080"protocol="HTTP/1.1"
           connectionTimeout="20000"
           redirectPort="8443" URIEncoding="UTF-8"
/>

红色的加上去即可解决。

修改后的tomcat-server.xml文档内容如下:

<?xml version='1.0' encoding='utf-8'?>
<!--
  Licensed to the Apache Software Foundation(ASF) under one or more
  contributor license agreements.  See the NOTICE file distributed with
  this work for additional informationregarding copyright ownership.
  The ASF licenses this file to You under theApache License, Version 2.0
  (the "License"); you may not usethis file except in compliance with
  the License. You may obtain a copy of the License at
 
     http://www.apache.org/licenses/LICENSE-2.0
 
  Unless required by applicable law or agreedto in writing, software
  distributed under the License is distributedon an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,either express or implied.
  See the License for the specific languagegoverning permissions and
  limitations under the License.
-->
<Serverport="8005" shutdown="SHUTDOWN">
    <Listener className="org.apache.catalina.core.AprLifecycleListener"SSLEngine="on" />
    <ListenerclassName="org.apache.catalina.core.JasperListener" />
    <ListenerclassName="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"/>
    <Listener className="org.eclipse.virgo.web.tomcat.support.ServerLifecycleLoggingListener"/>
    <Service name="Catalina">
       <Connectorport="8080" protocol="HTTP/1.1"
           connectionTimeout="20000"
           redirectPort="8443"URIEncoding="UTF-8"/>
       <Connector port="8443"protocol="HTTP/1.1" SSLEnabled="true"
           maxThreads="150" scheme="https"secure="true"
           clientAuth="false" sslProtocol="TLS"
           keystoreFile="config/keystore"
           keystorePass="changeit"/>
       <Connector port="8009"protocol="AJP/1.3" redirectPort="8443" />
       <Engine name="Catalina" defaultHost="localhost">
           <Realm className="org.apache.catalina.realm.JAASRealm"appName="virgo-kernel"
                  userClassNames="org.eclipse.virgo.kernel.authentication.User"
                  roleClassNames="org.eclipse.virgo.kernel.authentication.Role"/>
           <Host name="localhost"  appBase="webapps"
                  unpackWARs="false"autoDeploy="false"
                  deployOnStartup="false"createDirs="false">
              <Valve className="org.apache.catalina.valves.AccessLogValve"directory="serviceability/logs/access"
                  prefix="localhost_access_log."suffix=".txt" pattern="common"resolveHosts="false"/>
              <ValveclassName="org.eclipse.virgo.web.tomcat.support.ApplicationNameTrackingValve"/>
           </Host>
       </Engine>
    </Service>
</Server>
 


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值