tomcat6

Getting error while running jsp file

微笑、不失礼 提交于 2019-12-02 04:50:24
I have created a simple Hello.jsp program in my eclipse(juno).When I tried to run this jsp file by run on server,getting below error problem occurred, 'Publishing to Tomcat v6.0 Server at localhost' has encoured a problem Publishing failed with multiple errors Could not replace with temp file C:\workspace.metadata.plugins\org.eclipse.wst.server.core\tmp0\temp\tmp30730.jsp. Could not replace with temp file C:\workspace.metadata.plugins\org.eclipse.wst.server.core\tmp0\temp\tmp30731.MF. Could not replace with temp file C:\workspace.metadata.plugins\org.eclipse.wst.server.core\tmp0\temp\tmp30732

set 'secure' flag to JSESSION id cookie

孤街浪徒 提交于 2019-12-02 02:28:54
问题 I want to set 'secure' flag to JSESSIONID cookie . Is there a configuration in tomcat 6 for this ? I tried by setting 'secure="true"' in 'Connector' (8080) element of server.xml , but it creates problems ....thats Connection is getting reset . Note that in my application , the JSESSIONID is getting created in 'http' mode ( index page ) , when the user logins , it will switch into 'https' mode. 回答1: If you are using tomcat 6 you can do the following workaround String sessionid = request

set 'secure' flag to JSESSION id cookie

强颜欢笑 提交于 2019-12-02 02:14:50
I want to set 'secure' flag to JSESSIONID cookie . Is there a configuration in tomcat 6 for this ? I tried by setting 'secure="true"' in 'Connector' (8080) element of server.xml , but it creates problems ....thats Connection is getting reset . Note that in my application , the JSESSIONID is getting created in 'http' mode ( index page ) , when the user logins , it will switch into 'https' mode. If you are using tomcat 6 you can do the following workaround String sessionid = request.getSession().getId(); response.setHeader("SET-COOKIE", "JSESSIONID=" + sessionid + "; secure ; HttpOnly"); see

How to set solr/home in linux OS?

旧时模样 提交于 2019-12-02 00:13:51
问题 I know how to configure solr.home by using Tomcat 6, but I don't know how to set solr.home by using Glassfish(V2.1). I have tried to set the solr.home in .profile as fellows: export solr.home=/home/huenzhao/search/solr export solr/home=/home/huenzhao/search/solr export solr.solr.home=/home/huenzhao/search/solr export JAVA_OPTS=$JAVA_OPTS -Dsolr.solr.home=/home/huenzhao/search/solr and they all not work. The error is: HTTP Status 500 - Severe errors in solr configuration. Check your log files

Callback on Tomcat server startup complete

僤鯓⒐⒋嵵緔 提交于 2019-12-01 21:38:21
Is there any mechanism, lifecycle event or callbacks, in Spring or Tomcat to notify once Tomcat server startup is completed? (I have 8 web applications and queues configured. I would prefer to get notification back to each application once all the applications are started.) I know Spring has the application listener, which can be used once the web application is initialized. But I cannot use it in my case because I would prefer to get a notification once all the web apps are initialized. ******EDITED******* I've implemented a Tomcat listener to log the message, but I have absolutely no idea

Spring + Hibernate + Tomcat Dependency problems

此生再无相见时 提交于 2019-12-01 21:27:32
when I run tomcat and the war is deployed I get : NoClassDefFoundError : org/apache/commons/collections/map/LRUMap Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: org/apache/commons/collections/map/LRUMap at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:527) ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE] What is strange is that I got the commons-collections-2.1.jar (I even tried 3.1) in my WEB-INF lib folder. Edit : I did copy the commons-collections from WEB-INF/lib to

Bind JNDI datasource in tomcat?

╄→гoц情女王★ 提交于 2019-12-01 17:26:00
问题 Is it possible to bind programatically a DataSource to Tomcat's 6 JNDI? I want to create a DataSource on the fly and then make it available through JNDI ( to ColdFusion for instance ). This is what I have: public void bindToConext(DataSource dataSource) throws NamingException, SQLException { Context initContext = new InitialContext(); Context envContext = (Context)initContext.lookup("java:/comp/env"); envContext.bind("jdbc/mydatasource", dataSource); } But I'm getting this exception: javax

Bind JNDI datasource in tomcat?

只愿长相守 提交于 2019-12-01 17:21:17
Is it possible to bind programatically a DataSource to Tomcat's 6 JNDI? I want to create a DataSource on the fly and then make it available through JNDI ( to ColdFusion for instance ). This is what I have: public void bindToConext(DataSource dataSource) throws NamingException, SQLException { Context initContext = new InitialContext(); Context envContext = (Context)initContext.lookup("java:/comp/env"); envContext.bind("jdbc/mydatasource", dataSource); } But I'm getting this exception: javax.naming.OperationNotSupportedException: Context is read only Is there a work around? Well it was not

Grails quartz plugin is not working when deployed in Tomcat

我是研究僧i 提交于 2019-12-01 16:02:16
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: -1 // execute job once in 5 seconds } def execute() { println "hai!!!"+new Date()// execute job } } And

http://localhost:8080 not redirecting to opensso login page

跟風遠走 提交于 2019-12-01 14:40:53
I have my Tomcat server of Liferay running on port 8080. When I am trying to access the application from server by typing url http://localhost:8080 , it is not redirecting to the Login page but giving me the error: The Connection to abc.xyz.com was interrupted while the page was loading. Here abc.xyz.com is the URL of my Opensso Login page. No errors are logged in stdout.log and catalina.log. But when I am typing the URL the login page is coming. Tried this in different IE and Mozilla but facing the same issue. 来源: https://stackoverflow.com/questions/16880454/http-localhost8080-not-redirecting