tomcat6

What is the difference between “Redeploy” and “Restart Server” in IntelliJ?

牧云@^-^@ 提交于 2019-12-03 05:26:40
I'm using IntelliJ with Tomcat 6 to run a Spring Java EE application. Rather than deploying the compiled war, I have opted to use the exploded war deployment, thus giving me the option to hotswap some classes and JSPs. However, aside from the "Update Classes" and "Update Classes and Resources", IntelliJ also allows users to "Redeploy" and "Restart Server" on an update action. What is the difference between these two choices? If I make a change to my method signatures in my class, or if I make a change in my Springconfig.xml, do I need to restart the server, or is a redeploy sufficient? I've

Error With Port 8080 already in use

房东的猫 提交于 2019-12-03 04:52:26
Can anyone help me to solve the following case? I am trying to generate my first web site using java and working with Eclipse Galileo running on Ubuntu 9.10. Since I generate my first lines of code I haven't seen the web. All the time when I try to run the program I get the following error: Several ports (8080, 8080) required by Tomcat v6.0 Server at localhost are already in use. The server may already be running in another process, or a system process may be using the port. To start this server you will need to stop the other process or change the port number(s). I have read a lot about the

Eclipse - How can I change a 'Project Facet' from Tomcat 6 to Tomcat 5.5?

╄→гoц情女王★ 提交于 2019-12-03 04:04:03
问题 (Eclipse 3.4, Ganymede) I have an existing Dynamic Web Application project in Eclipse. When I created the project, I specified 'Default configuration for Apache Tomcat v6' under the 'Configuration' drop down. It's a month or 2 down the line, and I would now like to change the configuration to Tomcat 'v5.5'. (This will be the version of Tomcat on the production server.) I have tried the following steps (without success): I selected Targeted Runtimes under the Project Properties The Tomcat v5.5

C3p0 connection pooling for jpa in persistence.xml not working?

旧巷老猫 提交于 2019-12-03 04:02:32
I'm still getting JDBC timeouts after trying to configure c3p0 following all of the examples I could find. I'm using JPA, Hibernate, Tomcat, MySQL [AWS RDS]. Here's the snippet from persistence.xml: <property name="javax.persistence.jdbc.url" value="jdbc:mysql://url..." /> <property name="javax.persistence.jdbc.driver" value="com.mysql.jdbc.Driver" /> <property name="hibernate.dialect" value="org.hibernate.dialect.MySQLDialect" /> <property name="connection.provider_class" value="org.hibernate.connection.C3P0ConnectionProvider"/> <property name="hibernate.c3p0.acquire_increment" value="4" />

Can I run Tomcat securely on port 443 and insecurely on 8080

一世执手 提交于 2019-12-03 03:53:22
Let me explain my situation. Currently, I have a lot of applications running on Tomcat 6, on the default port 8080. I just created some applications that will need a log in. I'm going to buy an SSL certificate to install on this server. I don't like the idea of using port 8443 because it makes the URL more complicated. If I run Tomcat on port 80, I'd have to change dozens of links and I'd have to run Tomcat as root ( rather than tomcat ). Is there any problem running the insecure applications on port 8080 but having the secure run on port 443? I'm imagining my setup will have URLs that look

Using Spring Insight with Tomcat 6

十年热恋 提交于 2019-12-03 03:30:23
I want to use Spring Insight with Tomcat 6. I cant use TC server because of reasons beyond my control. So I am looking at integrating Spring Insight with Tomcat 6. Has any one worked on this before or can any one point me to any documentation. Thanks, Anuj Insight Developer (the free product) comes in two form, packaged with tc Server Developer and packaged with STS. Neither option will provide an easy mechanism for installing Insight into Tomcat. I'm not saying that it can't be done, there is just no simple way to do it. If you really want to run Insight on Tomcat then you are going to need

NIO Connector in Tomcat

安稳与你 提交于 2019-12-03 02:57:25
I'm trying to enable NIO Connector in Tomcat 6.0 by configuring server.xml file, but I'm getting Firefox can't establish a connection to the server at localhost:8081. in the browser whenever I type localhost:8081 . This is how I've configured NIO connector in Tomcat 6.0. May I know what's the problem? <Connector connectionTimeout="20000" port="8081" protocol="org.apache. coyote.http11.Http11NioProtocol" redirectPort="8443"/> I've tried your tag on my server. Your Connector tag has one unnecessary space between apache. and coyote Remove it or try with the one below. <Connector connectionTimeout

How to sanely configure security policy in Tomcat 6

佐手、 提交于 2019-12-03 02:55:15
I'm using Tomcat 6.0.24, as packaged for Ubuntu Karmic. The default security policy of Ubuntu's Tomcat package is pretty stringent, but appears straightforward. In /var/lib/tomcat6/conf/policy.d , there are a variety of files that establish default policy. Worth noting at the start: I've not changed the stock tomcat install at all -- no new jars into its common lib directory(ies), no server.xml changes, etc. Putting the .war file in the webapps directory is the only deployment action. the web application I'm deploying fails with thousands of access denials under this default policy (as

Tomcat: Restrict access to localhost for /just one/ webapp

試著忘記壹切 提交于 2019-12-03 02:26:47
I'm running Tomcat 6 to serve several web apps, most of which are public-facing. But I'd like to restrict access to just one webapp, allowing connections only from localhost. I can restrict access for all webapps using a valve in context.xml, as described in: Tomcat Restrict access by IP address But I can't figure out how to restrict access on a per-app basis. Is there a way to do this with my app's web.xml? Or by adding additional rules to context.xml? Thanks, -B Recapping Solution: $ cp /var/lib/tomcat6/conf/context.xml \ /var/lib/tomcat6/conf/Catalina/localhost/my-app-name.xml $ cat /var

java.lang.ClassNotFoundException: javax.faces.webapp.FacesServlet

谁都会走 提交于 2019-12-03 02:25:55
I am getting this error, when executing JSF and PrimeFaces. I have included these jars, jsf-api-2.0.3.jar, jsf-impl-2.0.3.jar , jstl-1.0.2.jar jars and primefaces-2.2.RC2.jar in the WEB-INF/lib folder. Is there any jar I am missing? Apparently, you're not missing anything else. Just try to do the following: Ensure that the necessary jars exist in the "lib" project folder; Do clean & build; In the end, you should find those included jars, available within the "build" project folder. chandan burnwal Right click on project properties and follow below steps " Project Properties " --> " Deployment