tomcat6

MySQL like query runs extremly slow for 5000 records table

强颜欢笑 提交于 2019-12-11 02:47:24
问题 I have this issue on our production server. The application stack is, Java Web App on Tomcat 6.0.18 iBatis data access layer MySQL 5.0 database CentOS The system is deployed on virtual server having around 256 MB memory. Real problem: The query like, select * from customer executes in around 10 seconds however if the following query is executed, select * from customer where code like '%a%' right after executing the above query, the system goes into indefinite processing and ultimately forces

How to remotely debug the webapplication running on tomcat service?

↘锁芯ラ 提交于 2019-12-11 02:03:52
问题 I have my webapplication on tomcat 6 at serverA. I am running the tomcat as service i.e thru tomcat6w.exe lying under <tomcat_home>/bin folder. To remotely debug the weabbplication i have added below lines as suggested on different blog/sites on web in different line witout space at end. Mentioned the port as 8443 as application is running on same port. -Xdebug-Xrunjdwp:transport=dt_socket,address=8443,server=y,suspend=n Now thru eclipse on server B i mentioned host as serverA and port 8443

Share a folder in tomcat

一世执手 提交于 2019-12-11 01:34:45
问题 How can I enable a folder to be accessable using a browser with tomcat 6 ? I think I need to add a context to web.xml ? I'm trying - So when I navigate to http://localhost:8080/myfiles I expect to see the contents of c:\temp Thanks 回答1: You need META-INF/context.xml , and there in the <Context> element set docBase to point to the desired directory. See here the attributes to set in the Context element 来源: https://stackoverflow.com/questions/4133568/share-a-folder-in-tomcat

How Do I Keep HttpSessions Alive in Tomcat?

痴心易碎 提交于 2019-12-11 01:23:49
问题 I'm having a bit of trouble with Session timeouts in my Tomcat served web application. From reading over Tomcat's documentation, sessions expire after a time which can be configured in the web.xml file. <session-config> <session-timeout>30</session-timeout> </session-config> Quesion) Does this mean 30 minutes from when the session was created for the user? Or 30 minutes from when the session was last accessed? If it is, as I originally thought, 30 minutes from when the session was last

Deploy Apache Archiva on tomcat 6

99封情书 提交于 2019-12-10 20:35:03
问题 I am trying to deploy Apache Archiva on my Server, but it just fails all the time. specs: os: ubuntu 10.04 tomcat: Apache Tomcat/6.0.24 jvm: 1.6.0_27-b27 $CATALINA_HOME : /usr/share/tomcat6 $CATALINA_BASE : /var/lib/tomcat6 $CATALINA_OPTS : "-Dappserver.home=$CATALINA_HOME -Dappserver.base=$CATALINA_BASE" path to lib : $CATALINA_BASE/common/lib #java -version java version "1.6.0_27" OpenJDK Runtime Environment (IcedTea6 1.12.3) (6b27-1.12.3-0ubuntu1~10.04.1) OpenJDK Client VM (build 20.0-b12,

NoClassDefFoundError: org/apache/catalina/startup/Bootstrap when running tomcat from exe/as service

≡放荡痞女 提交于 2019-12-10 12:43:23
问题 I have been running a Tomcat 6.0.37 server for quite some time via the startup.bat.Now I want to run tomcat as a service that starts automatically when the machine starts up. I created the service with the bat : service.bat install.This created the service succesfully.When trying to start it however I get the error in the title.I then tried running just the exe(tomcat6.exe).This gave me the exact same error. I have checked that CATALINA_HOME,JAVA_HOME and JRE_HOME is set correctly.bootstrap

@ViewScoped doesn't work, bean is created for every request

自闭症网瘾萝莉.ら 提交于 2019-12-10 12:07:45
问题 I am migrating from JSF1.2 to 2.1, I changed entries for beans in faces-config.xml to annotations. I try use @ViewScoped instead @RequestScoped and @ManagedProperties(To many params in few classes), but every time i click submit for my form bean with annotated as @ViewScoped is recreated. For @SessionScoped everything works correctyl. I read few Q&A here, and This article, but i didn't force it to work. I change JSTL tags to rendered atribute, or c:if with ui:param rendered. in my web.xml i

java tomcat6 - How to automatically refresh page when a data is added?

爱⌒轻易说出口 提交于 2019-12-10 12:00:27
问题 first of all let me explain what Im tring to do. Im trying to create a very simple web based chat program. In my development I have 2 pcs using only 1 ip address. The ip address that is being used is the ip address which runs the tomcat6 server. The simple chat is connected to the database. How will I make the web page automatically update when the other pc input data(message) in the database without reloading the page. Please forgive me if my question might sound idiotic. I have no

Ajax calls don't renew session timeout on Tomcat 6

╄→尐↘猪︶ㄣ 提交于 2019-12-10 11:59:14
问题 I migrated my webapp from Tomcat 5.5 to Tomcat 6(.0.32). In that app there are ajax calls in every footer page to avoid session timeout. It works fine on Tomcat 5.5 but it doesn't work in Tomcat 6. I use a filter to track every call in a DB table. On non-ajax calls I can see the tracking in the table and the reset session timeout. On ajax calls I can see the tracking in the table but not the reset of the session timeout. Why? Can I change this behavior? And, just for info, how can Tomcat6

Domain Name Does Not Pointing To Installed Java WebApplication In parallel plesk, Remove Port Number

独自空忆成欢 提交于 2019-12-10 11:44:37
问题 I have installed One Java Web Application via Plesk 11.0.4 on my server. Now I want My domain name to point my web Application. My address 'www.domain.com' shows blank page. As I installed my Application via plesk , I can Access it on 'www.domain.com:9080/webapp' address. But I want to access my web application from my domain name Like www.domain.com will access my application. My webapp application's root path is : '/usr/share/tomcat6/work/Catalina/PSA/webapp' 回答1: This goes for Plesk 11.x: