发布

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/dylanduk/article/details/84398432
如果TOMCAT发布为windows服务,则用CATALINA_BASE\bin下的tomcat6w.exe管理工具,在“JAVA选项卡”中设置
JAVA_Options
可能看到已经有一些环境变量(观测gc文件的详细信息,通过配置堆大小减少GC次数。同时配置ims_heap.hprof获取堆爆掉时堆信息,可用jdk自带的jvisualvm查看),追加如下参数
-Xloggc:D:\ims\logs\ims_gc.log
-XX:+HeapDumpOnOutOfMemoryError
-XX:HeapDumpPath=D:\ims\logs\ims_heap.hprof
-XX:+PrintGCDetails
-Xms1024m
-Xmx1024m
-Xmn256m
-XX:SurvivorRatio=2
-Xverify:none
当然,也可以不通过tomcat6.exe直接往service.bat脚本中添加以上信息(在命令行执行不太方便)
Tomcat没有发布为windows,则使用tomcat6.exe,startup.bat启动
建议生产上将TOMCAT发布为window服务
JAVA提供了很多性能检测工具主要检测进程:而非服务的方式独自启动一个进程,有了进程ID,方便检测;而发布为服务之后则没有单独的进程ID,要想检测还要做复杂的JMX配置。
展开阅读全文

tomcat发布正常,glassfish发布失败

05-06

严重: Exception occured in J2EEC Phaserncom.sun.enterprise.deployment.backend.IASDeploymentException: Deployment Error -- Could not resolve a persistence unit corresponding to the persistence-context-ref-name [com.daoyuan.common.dao.DaoSupport/em] in the scope of the module called [C:\Program Files\Glassfish\domains\domain1\applications\j2ee-modules\CCMS]. Please verify your application.rn at com.sun.enterprise.deployment.BundleDescriptor.findReferencedPUsViaPCRefs(BundleDescriptor.java:702)rn at com.sun.enterprise.deployment.WebBundleDescriptor.findReferencedPUs(WebBundleDescriptor.java:722)rn at com.sun.jdo.spi.persistence.support.ejb.ejbc.PersistenceProcessor.getAllPersistenceUnitDescriptors(PersistenceProcessor.java:171)rn at com.sun.jdo.spi.persistence.support.ejb.ejbc.PersistenceProcessor.processApplication(PersistenceProcessor.java:132)rn at com.sun.jdo.spi.persistence.support.ejb.ejbc.DeploymentEventListenerImpl.processApplication(DeploymentEventListenerImpl.java:211)rn at com.sun.jdo.spi.persistence.support.ejb.ejbc.DeploymentEventListenerImpl.processEvent(DeploymentEventListenerImpl.java:172)rn at com.sun.jdo.spi.persistence.support.ejb.ejbc.DeploymentEventListenerImpl.notifyDeploymentEvent(DeploymentEventListenerImpl.java:122)rn at com.sun.enterprise.deployment.backend.DeploymentEventManager.notifyDeploymentEvent(DeploymentEventManager.java:79)rn at com.sun.enterprise.deployment.backend.ModuleDeployer.handlePostDeployEvent(ModuleDeployer.java:636)rn at com.sun.enterprise.deployment.backend.ModuleDeployer.postDeploy(ModuleDeployer.java:625)rn at com.sun.enterprise.deployment.backend.ModuleDeployer.doRequestFinish(ModuleDeployer.java:188)rn at com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:191)rn at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108)rn at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:919)rn at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:279)rn at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:788)rn at com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:187)rn at com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:223)rn2011-5-6 23:16:46 com.sun.enterprise.deployment.phasing.PEDeploymentService$AuditInfo reportEndrn信息: Deployment by user Unknown of module CCMS (type=Web Module) failed, elapsed time 45006 ms 论坛

tomcat发布成功,发布到weblogic却报错

12-19

各位大侠,我用struts+ibatis做了一个小项目,打包为war文件后,在tomcat发布很顺利,发布到weblogic却报错,错误提示如下:rnError 500--Internal Server Error rnjavax.servlet.jsp.JspException: Cannot find message resources under key org.apache.struts.action.MESSAGErn at org.apache.struts.util.RequestUtils.retrieveMessageResources(Ljavax.servlet.jsp.PageContext;Ljava.lang.String;Z)Lorg.apache.struts.util.MessageResources;(RequestUtils.java:1103)rn at org.apache.struts.util.RequestUtils.message(Ljavax.servlet.jsp.PageContext;Ljava.lang.String;Ljava.lang.String;Ljava.lang.String;[Ljava.lang.Object;)Ljava.lang.String;(RequestUtils.java:1043)rn at org.apache.struts.taglib.bean.MessageTag.doStartTag()I(MessageTag.java:294)rn at jsp_servlet.__index._jspService(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(__index.java:155)rn at weblogic.servlet.jsp.JspBase.service(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(JspBase.java:33)rn at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run()Ljava.lang.Object;(ServletStubImpl.java:1006)rn at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;Lweblogic.servlet.internal.FilterChainImpl;)V(ServletStubImpl.java:419)rn at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;Lweblogic.servlet.internal.FilterChainImpl;)V(ServletStubImpl.java:463)rn at weblogic.servlet.internal.TailFilter.doFilter(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;Ljavax.servlet.FilterChain;)V(TailFilter.java:28)rn at weblogic.servlet.internal.FilterChainImpl.doFilter(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(FilterChainImpl.java:27)rn at com.lzcard.filter.EncodingFilter.doFilter(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;Ljavax.servlet.FilterChain;)V(EncodingFilter.java:38)rn at weblogic.servlet.internal.FilterChainImpl.doFilter(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(FilterChainImpl.java:27)rn at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run()Ljava.lang.Object;(WebAppServletContext.java:6724)rn at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Lweblogic.security.subject.AbstractSubject;Ljava.security.PrivilegedAction;)Ljava.lang.Object;(AuthenticatedSubject.java:321)rn at weblogic.security.service.SecurityManager.runAs(Lweblogic.security.acl.internal.AuthenticatedSubject;Lweblogic.security.acl.internal.AuthenticatedSubject;Ljava.security.PrivilegedAction;)Ljava.lang.Object;(SecurityManager.java:121)rn at weblogic.servlet.internal.WebAppServletContext.invokeServlet(Lweblogic.servlet.internal.ServletRequestImpl;Lweblogic.servlet.internal.ServletResponseImpl;)V(WebAppServletContext.java:3764)rn at weblogic.servlet.internal.ServletRequestImpl.execute(Lweblogic.kernel.ExecuteThread;)V(ServletRequestImpl.java:2644)rn at weblogic.kernel.ExecuteThread.execute(Lweblogic.kernel.ExecuteRequest;)V(ExecuteThread.java:219)rn at weblogic.kernel.ExecuteThread.run()V(ExecuteThread.java:178)rn at java.lang.Thread.startThreadFromVM(Ljava.lang.Thread;)V(Unknown Source)rn rn 论坛

没有更多推荐了,返回首页