tomcat6

Eclipse: The selection did not contain any resource that can run on a server

时光毁灭记忆、已成空白 提交于 2019-12-06 23:09:42
问题 I am not able to run maven java web application project to the configured tomcat within eclipse ide. Initially I could right click on the project and run it on tomcat server but ever since I shared the project to a repository I am not able to do that. I disconnected the project form the repository and now I I dont even see the Run as -> Run on Server option inside eclipse ide. I am using m2e plugin version .0.12.1 and eclipse helios and tomcat 6. Could someone help me understand what am I

Tomcat session.ser [closed]

不想你离开。 提交于 2019-12-06 11:32:31
Closed. This question is off-topic . It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . im using apache-tomcat6.0.24..and Enterprise Linux Enterprise Linux Server release 5.6 to install my EGRCM application.when im restarting my tomcat it will araise some exceptions..the problem is when redeploy my appplication it could not open..please help me find out the problem. thanks in advance. The problem will be shown below on.StandardManager doUnload SEVERE: IOException while saving persisted sessions:

Apache httpd 2.2.x + mod_jk 1.2.30 + tomcat 6 Error: Could not find worker with name 'XXXXX' in uri map post processing

回眸只為那壹抹淺笑 提交于 2019-12-06 11:22:01
问题 I am getting the following error while setting up the load balancer with two Tomcat instances: [info] mod_jk.c (3189): mod_jk/1.2.30 initialized [error] jk_uri_worker_map.c (506): Could not find worker with name 'loadmanager' in uri map post processing. Following are my configuration settings: httpd.conf changes # Include mod_jk configuration file Include conf/mod_jk.conf mod_jk.conf LoadModule jk_module modules/mod_jk.so JkWorkersFile conf/workers.properties JkLogFile logs/mod_jk.log

Deployed war to tomcat can't throws java.lang.NoClassDefFoundError: javax/persistence/PersistenceException

强颜欢笑 提交于 2019-12-06 11:18:51
I'm new to this forum and also new to JPA / EJB. I'm trying to deploy a .war file containing a small application to a tomcat server. The application is using JTA to communicate with the Derby db. When I run and deploy the application from and eclipse top the tomcat server running in eclipse, everything works perfect, but when I export a .war file and try to browse the application it throws an java.lang.ClassNotFoundException: javax.persistence.PersistenceException. My persistence file looks like this: <?xml version="1.0" encoding="UTF-8"?> <persistence xmlns="http://java.sun.com/xml/ns

Struts2 Hello World jsp example error

扶醉桌前 提交于 2019-12-06 11:17:07
I am trying to run a Hello World Struts2 project in Tomcat 6. I keep getting: root cause: java.lang.ClassNotFoundException: org.apache.struts2.interceptor.SessionAware java.lang.NoClassDefFoundError: org/apache/struts2/interceptor/SessionAware at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:621) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) at java.net.URLClassLoader.access$000(URLClassLoader.java:56) at java.net.URLClassLoader$1.run

Getting Tomcat to reload a web app with a static context

本小妞迷上赌 提交于 2019-12-06 11:15:29
问题 I have a Host that doesn't automatically deploy all web apps. <Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="false" xmlValidation="false" xmlNamespaceAware="false"> But I do want the dreambear web app to automatically reload without a restart, for development purposes (hence this is on SO, not Server Fault). Catalina/localhost/dreambear.xml : <Context reloadable="true"> <Parameter name="gamePageUrl" value="http://****/dreambear.html" /> </Context> I deploy the web app

Java maven development slow

纵然是瞬间 提交于 2019-12-06 10:17:04
问题 I am developing a war/java website that is built via maven. Currently, I have to make changes... tell maven to build them... then deploy to Tomcat. This is around 40seconds . So every change I make, I have to wait >=40seconds to see the change. This is becoming very frustrating, so I have tried to speed up the deployment. I deployed the site via maven with war:exploded. Now, I edit the files live in 'deployed' format. The problem being I will need to move these changes back to the source

Log4j2 Rolled Files that are deleted are still open and disk space not freed

北城余情 提交于 2019-12-06 09:08:52
I recently migrated from log4j to log4j2 on my tomcat6 server. The problem is that my rolling files that are deleted are remaining open forever and hence the disk space is not being freed. i used this command "sudo /usr/sbin/lsof | grep deleted" to check on the open deleted files. I don't seem to understand how to close those files without restarting the tomcat server. Some of these logs are being deleted by cron jobs. while a lot of them are being deleted via logrotate. ... <Appenders> <RollingRandomAccessFile name="requestAppender" fileName="${sys:catalina.home}/webapps/miscLogs/request.log"

Maven + Tomcat hot deploy

心不动则不痛 提交于 2019-12-06 08:31:59
问题 I've searched on the internet for this question and found no single solution. We have a maven project that uses profiles to build artifact that suits dev/qa/prod environtments, does minification of JS and CSS using YUI plugin. It uses Spring for dependency injection and struts as UI framework. Ibatis is used as ORM mapper. We use Eclipse IDE on windows and are not using integrated eclipse as we need to deploy Unix servers. Now, my question is, is there a way to deploy this solution in such a

Is there a useDirtyFlag option for Tomcat 6 cluster configuration?

梦想与她 提交于 2019-12-06 08:25:32
问题 In Tomcat 5.0.x you had the ability to set useDirtyFlag="false" to force replication of the session after every request rather than checking for set/removeAttribute calls. <Cluster className="org.apache.catalina.cluster.tcp.SimpleTcpCluster" managerClassName="org.apache.catalina.cluster.session.SimpleTcpReplicationManager" expireSessionsOnShutdown="false" **useDirtyFlag="false"** doClusterLog="true" clusterLogName="clusterLog"> ... The comments in the server.xml stated this may be used to