tomcat6

How to embed Tomcat 6?

独自空忆成欢 提交于 2019-12-17 02:19:34
问题 I'm currently running my webapps on Tomcat 6 in production, and would like to evaluate running Tomcat in embedded mode. Is there a good tutorial or other resource besides what's in the api documentation? 回答1: Code speaks for itself. See the pom.xml snippet and the class to run tomcat. <dependency> <groupId>org.apache.tomcat</groupId> <artifactId>catalina</artifactId> <version>6.0.18</version> <scope>test</scope> </dependency> <dependency> <groupId>org.apache.tomcat</groupId> <artifactId

Increase permgen space

感情迁移 提交于 2019-12-16 20:58:07
问题 I am working with tomcat 6.0, and while I am indexing (not while i am starting tomcat), I have a permgen space error. How could I increase that space?? Thanks 回答1: You can use : -XX:MaxPermSize=128m to increase the space. But this usually only postpones the inevitable. You can also enable the PermGen to be garbage collected -XX:+UseConcMarkSweepGC -XX:+CMSPermGenSweepingEnabled -XX:+CMSClassUnloadingEnabled Usually this occurs when doing lots of redeploys. I am surprised you have it using

How to change the port of Tomcat from 8080 to 80?

不问归期 提交于 2019-12-16 20:13:17
问题 I want to execute my web app as http://localhost . 回答1: 1) Go to conf folder in tomcat installation directory e.g. C:\Tomcat 6.0\conf\ 2) Edit following tag in server.xml file <Connector connectionTimeout="20000" port="8080" protocol="HTTP/1.1" redirectPort="8443"/> 3) Change the port=8080 value to port=80 4) Save file. 5) Stop your Tomcat and restart it. 回答2: Ubuntu 14.04 LTS, in Amazon EC2. The following steps resolved this issue for me: 1. Edit server.xml and change port="8080" to "80"

I don't understand the results from #service tomcat6 status

戏子无情 提交于 2019-12-13 13:25:41
问题 I'm trying to get Tomcat 6 running on Fedora 14. I'm quite new to this sort of thing, though I have managed to get Apache running before. I suspect I've made mistakes on some quite basic levels, because the test page (http://localhost:8080) can't be found. If I try to check the service's status, as root or as an ordinary user, this is what I get: tomcat6 (pid) is running...[OK] tomcat6 lockfile exists but process is not running [FAILED] So I'm confused, because I seem to be being told that

Tomcat 6 thread issue

拈花ヽ惹草 提交于 2019-12-13 07:20:46
问题 hello frnds we have migrated our java web application on java 1.6 , tomcat 6, oracle 11g but now we are facing issues after some time site is going down : we are getting java heap out of memory error and many threads are in waiting state. tomcat is getting hanged and our site is getting down INFO: Maximum number of threads (200) created for connector with address null and port 80 Feb 21, 2013 9:56:04 PM here is thread log: logs "main" prio=10 tid=0x09f67c00 nid=0x2d51 runnable [0xf7622000]

Java mail don't return subject

泪湿孤枕 提交于 2019-12-13 06:06:24
问题 I'm using javamail to rescue mails of inbox. I get all mails from inbox, but the subject(message.getSubject()) return null. I research in several sites and all proposed solutions not work. This problem occurs only in the Tomcat6, if a execute even code in java project for main method i get all atributis, include subject. I'm user de SSL protocol (pop3s). Thanks for help public void getMails(final String host, final int port, final String user, final String password){ final Session session =

Tomcat 6 refuses a valid docBase

孤者浪人 提交于 2019-12-13 05:41:37
问题 This is my webapp context file, /etc/tomcat6/Catalina/localhost/ri.xml <Context docBase="/home/bart/Dropbox/projects/RevoraIndieSite/webapp" reloadable="true"> </Context> However, Tomcat complains: INFO: Deploying configuration descriptor ri.xml 28-Apr-2011 23:44:04 org.apache.catalina.core.StandardContext resourcesStart SEVERE: Error starting static Resources java.lang.IllegalArgumentException: Document base /home/bart/Dropbox/projects/RevoraIndieSite/webapp does not exist or is not a

Servlet - Tomcat Path

左心房为你撑大大i 提交于 2019-12-13 05:35:46
问题 I have a problem with my servlet engine i.e. Tomcat. I am using Windows-7 as my OS. I have installed my Tomcat into this folder C:\Program Files (x86)\Apache Software Foundation\Tomcat 6.0. I have set my classpath to following: C:>SET CLASSPATH="C:\Program Files (x86)\Apache Software Foundation\Tomcat 6.0\lib\servlet-api.jar" For running the servlet application i compiled my servlet program and generated the class file. I can easily compile my programs and get a class files. But when i try to

JDBC Driver has been forcibly unregistered by Tomcat 6

安稳与你 提交于 2019-12-13 05:14:37
问题 I am getting this error about mysql: INFO: Shutting down log4j 09-ene-2014 9:57:21 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc GRAVE: A web application registered the JBDC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered. 09-ene-2014 9:57:21 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads GRAVE: A web application appears to have

“SEVERE: Error starting static Resources ” in catalina.log

◇◆丶佛笑我妖孽 提交于 2019-12-13 04:41:19
问题 I am getting the following Exception in Catalina.log file when I try to start tomcat 6. I looked for similar queries but could not find a solution mentioned to it.Please note that I have my app inside the tomcat webapp and I am not using eclipse to run it. Jun 14, 2012 12:33:45 PM org.apache.catalina.core.AprLifecycleListener init INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: ............