tomcat移植到weblogic上面遇到两个问题:
一个是sun.awt.X11GraphicsEnvironment
解决方法:
在setDomainEnv.sh中加入 -Djava.awt.headless=true
nohup ./startWebLogic.sh & 重启weblogic即可.
另一个是将tomcat上项目移植到weblogic 上,发现所有的html页面显示乱码,查看源文件又中文,网上找原因是配置问题,在web.xml中加入
- <mime-mapping>
- <extension>html</extension>
- <mime-type>text/html;charset=UTF-8</mime-type>
- </mime-mapping>
重启服务,问题解决。