因为在开发的过程中出现了PerGen Space.所以需要修改Tomcat的启动参数,郁闷的事情是公司不使用盗版,因此离开了熟悉的一塌糊涂的MyEclipse界面还真的找不到配置Tomat启动参数的地方.经过不懈努力,总算是找到了地方.特此记录一下,看来我应该要jump out of the box. 点击上面的run选项卡. 点击里面的Run Configurations子选项,点击会弹出配置运行时的相关配置项. 然后找到JVM的启动参数,增加上内存设置参数,运行就ok了.
---恢复内容开始--- 问题描述:tomcat启动时候,能够成功启动但是项目不能加载,查看catalina.out后出现以下的错误 due to a StackOverflowError. Possible root causes include a too low setting for -Xss and illegal cyclic inheritance dependencies. 主要原因是tomcat启动参数默认的值太小造成的解决方法:修改catalina.sh在脚本里面的首行加入
1.端口更改:找到config目录下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 informa
这里以解析hibernate.cfg.xml数据库配置信息为例,运用dom4j的解析方式来解析xml文件. 1.在javaWeb工程里新建一个java类,命名为GetXmlValue.java,为xml文件解析工具类. public class GetXmlValue { //xml文件解析工具类 } 2.新建三个私有的静态变量,用以保存xml文件解析出来的数据库连接地址.用户名.登录密码,并创建相对应的get和set方法. public class GetXmlValue { private