tomcat6

org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null'

二次信任 提交于 2019-12-04 07:11:29
Hi When I try to connect to the datasource using JNDI, I am getting this error: [org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null' at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createConnectionFactory(BasicDataSource.java:1452) at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1371) at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044) at org.apache.roller.weblogger.business.DatabaseProvider.getConnection(DatabaseProvider.java:179) at org.apache.roller.weblogger

Tomcat @Resource annotations API annotation stops working in Tomcat 7

本小妞迷上赌 提交于 2019-12-04 07:07:37
问题 I have been using Tomcat 6.0.26-6.0.35 for several years with JSF 2 Mojarra, various versions up to 2.1.2 which I have been using for some months. I have several request-scoped and session-scoped beans with code like this: private @Resource(name="jdbc/cLabs", mappedName="jdbc/cLabs") DataSource cLabs; which has been correctly injected in every version of Tomcat 6 I've used. I also have other types of @Resource that doesn't work either, so it isn't just DataSource resources. I've tried

How to generate custom JSESSIONID, based on some hash of user's data in order to replicate session

亡梦爱人 提交于 2019-12-04 03:30:11
问题 Is it possible to override Tomcat's embedded generator of JSESSIONID, to be able to create custom values of this cookie, based on user's login? Why do I need this: I have a load balancer with "sticky sessions", configured to route requests with the same JSESSIONID to the same server, and I want to prevent situation, when same user can start two different sessions on different servers. P.S: all this is about Amazon EC2 回答1: There is a better way to do this: See the tomcat manual on session

How can I remove the application name from a Grails application’s URL?

て烟熏妆下的殇ゞ 提交于 2019-12-04 03:25:57
I have an application running at a URL like this: http://myapp.mydomain.com/myapp I don’t want the /myapp part in the URL. So how can I get rid of the application name? I want just http://myapp.mydomain.com to be the URL. How can I do this? bit detailed approach First Method: first shutdown your tomcat [from the bin directory ( sh shutdown.sh )] then you must delete all the content of your tomcat webapps folder ( rm -fr * ) then rename your WAR file to ROOT.war finally start your tomcat [from the bin directory ( sh startup.sh )] Second Method: leave your war file in CATALINA_BASE/webapps ,

Grails quartz plugin is not working when deployed in Tomcat

六月ゝ 毕业季﹏ 提交于 2019-12-04 03:03:42
问题 I have a web application that was developed using Grails. I'm trying to implement a background process that scans a table in DB for every 5 mins using quartz1.0-RC9 plugin for Grails. Before trying to code the actual logic I'm learning how to use the plugin as I'm new to quartz. So I created a job that prints the message "hai" with the current timestamp for every 5 seconds. class checkJob { static triggers = { simple name:'sampleQuartz', startDelay:10000, repeatInterval: 5000l, repeatCount:

FAIL - Application at context path /Hello could not be started

巧了我就是萌 提交于 2019-12-04 02:13:49
I'm trying to deploy new web application in Tomcat 6.0, but whenever I click on start button, I repeatedly getting FAIL - Application at context path /Hello could not be started . Other deployed application running fine, whenever I click on start button. But why not this application? web-xml: <web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4"> <servlet> <servlet-name>j_security_check</servlet-name> <servlet-class>EmailHander<

Including a directory inside web-inf/lib in tomcat classpath

非 Y 不嫁゛ 提交于 2019-12-03 17:34:10
In my webapp; WEB-INF/lib is added in classpath by default which is fine. Now, I want to add spring jar files in my tomcat's classpath. If I put all the jar files inside WEB-INF/lib; it works fine. But if I want to add a directory WEB-INF/lib/spring and put all jar files inside spring directory ; it doesnt work. How can I include WEB-INF/lib/spring in classpath. I would prefer to make changes in web.xml as that is very localised to my webapp. Surely I will not want to make changes in catalina.properties because there all the jar files are loaded in JVM ( not just added in classpath ) You

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

青春壹個敷衍的年華 提交于 2019-12-03 16:14:04
问题 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

Error With Port 8080 already in use

筅森魡賤 提交于 2019-12-03 15:12:18
问题 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

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

若如初见. 提交于 2019-12-03 13:55:23
问题 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