tomcat6

Problem with creating chat room application

ⅰ亾dé卋堺 提交于 2019-12-11 18:49:00
问题 I am trying to create a chatroom like application for some website. For this I am having two options: To use socket programming and open a socket at server and connect this to all the clients who are in that chat room. for this client first download the applet of the chat room. just to send requests to server with Ajax continuously with 1 second interval and refreshing the chat content area of page. I can't decide which stretagy will be better. So if anyone tell me which will be less resource

which one will be given priority in Tomcat 6: index.html or index.jsp?

旧城冷巷雨未停 提交于 2019-12-11 15:44:08
问题 Our web app contains both index.html and index.jsp, and we use Apache Tomcat 6. When a request having the path till the context (for eg.,http://localhost:8080/mysite) comes to the tomcat which one will be served ? Is this index.html or index.jsp ? Is it configurable ? 回答1: index.html will be given preference, but you can change this under welcome-file-list in web.xml . <welcome-file-list> <welcome-file>index.jsp</welcome-file> <welcome-file>index.html</welcome-file> <welcome-file>index.htm<

BeanCreationException in Spring Framework .WAR deploy to Tomcat 6 on Ubuntu 9.10

冷暖自知 提交于 2019-12-11 15:44:01
问题 I am in the process of switching from a Windows box to Ubunutu and I want to run my own local instance of Tomcat 6. I have installed Tomcat 6 without any basic issues. When I try to deploy a .war file that I had running on the Tomcat 6 instance on my Windows box I am getting the following error.... Apr 26, 2010 3:30:27 PM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring root WebApplicationContext Apr 26, 2010 3:30:27 PM org.apache.catalina.core.StandardContext

tomcat6 shutdown port not listening

假如想象 提交于 2019-12-11 14:40:04
问题 I am running tomcat6 on ubuntu9, and i specified shutdown port in server.xml to 8005. When I do netstat -tln however, i cannot see port 8005 listening. I can do tomcat6 restart|start|stop no problem. Why is it not listening on port 8005? Thanks 回答1: I just ran into this problem on a previously working Tomcat installation, and in my case it was due to the init() method of a servlet not returning. I was calling a long running method in the init() body and control was never returning to the

Configuring a Tomcat webapp to serve static content from external directory

旧城冷巷雨未停 提交于 2019-12-11 14:03:44
问题 I hope this is not too trivial - I'm very new at Tomcat administration. I'm building the development deployment process for a brand-new web application. We have the client assets and the web services the client will talk to in separate directories. The services are served from a Tomcat 6 webapp, being served at /my-app/services/. I need to update the configuration such that the Tomcat webapp will serve up the static client assets from the client directory as well as the web services. Ideally,

Having a custom catalina.sh when using a tomcat image from Docker

不问归期 提交于 2019-12-11 12:22:52
问题 I'm currently using Dockerfile to create Tomcat 6.0.44. It looks like this: FROM tomcat:6.0.44-jre7 ... ADD catalina.sh /usr/local/tomcat/bin Building the image from the Dockerfile is fine, but when I go to run it I get the following error: exec: "catalina.sh": executable file not found in $PATH. Any idea of how to fix this? What I'm trying to do is pass in this parameter -DentityExpansionLimit=100000 . Is there an easier way of doing it than in the catalina.sh ? Any help/suggestions would be

Tomcat6 and JRE7 compatibility issue. Unsupported major.minor version 51.0

时光总嘲笑我的痴心妄想 提交于 2019-12-11 11:38:34
问题 I have a web app compiled with JRE7 and now i'd like to run it on Tomcat6. When I launch my app I see exception in the logs: Unsupported major.minor version 51.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) at java.lang.ClassLoader.defineClass(ClassLoader.java:615) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) This exception comes from the class that implements ServletContextListener. Does that

Tomcat 6 Javax.mail session envCtx.lookup(“mail/Session”) not returning

谁说胖子不能爱 提交于 2019-12-11 10:59:01
问题 I am using Tomcat 6 to send a email client with Javax.mail APIs , i set up my configurations in server.xml as below <Resource name="mail/Session" auth="Container" type="javax.mail.Session" mail.smtp.host="localhost"/> And in my web.xml as below <resource-ref> <description>Resource reference to a container-managed JNDI JavaMail factory for sending e-mails.</description> <res-ref-name>mail/Session</res-ref-name> <res-type>javax.mail.Session</res-type> <res-auth>Container</res-auth> </resource

Tomcat 6 Eclipse Galileo

泄露秘密 提交于 2019-12-11 09:26:33
问题 I have Eclipse Galileo and Tomcat 6. I also have a Tomcat UI Plugin. It was all working fine. Now all of a sudden when I try to run tomcat from eclipse it throws the following error An internal error occurred during: "Publishing to Tomcat v6.0 Server at localhost...". org.eclipse.wst.server.core.model.ServerBehaviourDelegate.getTempDirectory(Z)Lorg/eclipse /core/runtime/IPath; When I try to run the tomcat from command line it runs fine. I add a tomcat server on the server tab. When I double

Problems with navigation cases from an embedded JSF 2.0 application

僤鯓⒐⒋嵵緔 提交于 2019-12-11 08:14:34
问题 I'm working on a JSF e-form application. This application needs to be embedded in another web site (one written in JSP). The only way I can embed this is through jQuery at the document ready phase. I've got all the pages I need embedded and everything is showing up as expected but there is one problem. On my new form/ edit form web page I have a submit button that updates the form or creates a new one on the server side and then navigates to the successful screen or failure screen when the