tomcat6

Oracle JDBC : invalid username/password (ora-01017)

浪尽此生 提交于 2019-11-26 14:54:31
问题 I have a strange problem with jdbc connection to an oracle database server. We've applications on a tomcat server running. These application use an oracle database. All applications use the same credentials. Applications running fine the whole day. At night there is no activity. In the morning we get a few (2 or 3) ORA-01017 (invalid username/password) errors when the applications trying to reconnect themselves to the database. Then reconnection works and the applications will operate normal.

The network adapter could not establish the connection - Oracle 11g

♀尐吖头ヾ 提交于 2019-11-26 14:26:35
问题 I wrote a servlet program and I want it to connect to my Oracle database but its giving me an error. I am using Eclipse Helios, Tomcat 6.0.37, Oracle 11g (11.2.0.1.0), ojdbc6.jar(added in run configuration of the Server project). I am able to connect to the database through the SQL Plus interface and even can start a connection from Eclipse's database development perspective. But when i am trying to connect through my servlet I am getting the error. For my servlet i am using the port number

Is there a practical HTTP Header length limit?

核能气质少年 提交于 2019-11-26 14:21:22
I have a web application that adds contextual information to XmlHttpRequest objects using the setRequestHeader API. I am using a custom header name (e.g. X-Foo) and a JSON structured value. It isn't part of the URL QueryString or POST body because it is meta information about the request. Is there a practical size limit to the header value? If my JSON gets truncated, it becomes unparseable. I am most concerned with limits in Apache 2, Tomcat 6 and IIS 7. I did a Google search for http header length limit , but many of the results seem dated. There are some relevant comments in How big can a

Exception about flash in Mojarra JSF

梦想的初衷 提交于 2019-11-26 14:08:50
问题 I upgraded to Mojarra JSF 2.2.1 (from 2.1.22) and since then for each of my requests I'm having an exception in console: GRAVE: JSF1094: Could not decode flash data from incoming cookie value /?. Processing will continue, but the flash is unavailable for this request. com.sun.faces.lifecycle.InvokeApplicationPhase execute Request finishes succesfully when I'm not using flash scope on it. However, as I'm using this scope for FacesMessages , if I put a message here, I have a

How to run different apps on single Tomcat instance behind different ports?

老子叫甜甜 提交于 2019-11-26 12:45:40
Currently I have 2 web applications app1 and app2 running on Tomcat 6: app1 on http://localhost:8080/app1 app2 on http://localhost:8080/app2 I want to configure Tomcat so that they run in root context behind separate ports: app1 on http://localhost:8081 app2 on http://localhost:8082 What needs to be done? Benoit Marilleau I think you can configure that in you server.xml file and put 2 services : <Service name="app1"> <Connector port="8081" protocol="org.apache.coyote.http11.Http11NioProtocol" connectionTimeout="20000" redirectPort="8443" /> <Engine name="Catalina" defaultHost="localhost">

Looking for an example for inserting content into the response using a servlet filter

血红的双手。 提交于 2019-11-26 03:10:29
问题 I\'ve been searching the net and stackoverflow for an example of somebody inserting content into the response using a servlet filter, but can only find examples of people capturing/compressing the output and/or changing the headers. My goal is to append a chunk of HTML just before the closing </body> of all HTML responses. I\'m working on a solution that extends the HttpServletResponseWrapper to use my own PrintWriter, then overriding the write methods thereon. Inside the write method I\'m

Is there a practical HTTP Header length limit?

老子叫甜甜 提交于 2019-11-26 03:09:38
问题 I have a web application that adds contextual information to XmlHttpRequest objects using the setRequestHeader API. I am using a custom header name (e.g. X-Foo) and a JSON structured value. It isn\'t part of the URL QueryString or POST body because it is meta information about the request. Is there a practical size limit to the header value? If my JSON gets truncated, it becomes unparseable. I am most concerned with limits in Apache 2, Tomcat 6 and IIS 7. I did a Google search for http header

How to run different apps on single Tomcat instance behind different ports?

心不动则不痛 提交于 2019-11-26 03:04:55
问题 Currently I have 2 web applications app1 and app2 running on Tomcat 6: app1 on http://localhost:8080/app1 app2 on http://localhost:8080/app2 I want to configure Tomcat so that they run in root context behind separate ports: app1 on http://localhost:8081 app2 on http://localhost:8082 What needs to be done? 回答1: I think you can configure that in you server.xml file and put 2 services : <Service name="app1"> <Connector port="8081" protocol="org.apache.coyote.http11.Http11NioProtocol"

How to change the ROOT application?

好久不见. 提交于 2019-11-26 00:20:12
问题 I\'m trying to change the default application of a Tomcat 6 webserver to a different application than \"ROOT\" (inside webapps folder). What is the best way to do this? 回答1: There are three methods: First shutdown your Tomcat from the its bin directory ( sh shutdown.sh ). Then delete all the content of your Tomcat webapps folder ( rm -fr * ). Then rename your WAR file to ROOT.war , and finally start your Tomcat from the bin directory ( sh startup.sh ). Leave your war file in $CATALINA_BASE

Increase permgen space

谁说胖子不能爱 提交于 2019-11-25 19:21:12
I am working with tomcat 6.0, and while I am indexing (not while i am starting tomcat), I have a permgen space error. How could I increase that space?? Thanks You can use : -XX:MaxPermSize=128m to increase the space. But this usually only postpones the inevitable. You can also enable the PermGen to be garbage collected -XX:+UseConcMarkSweepGC -XX:+CMSPermGenSweepingEnabled -XX:+CMSClassUnloadingEnabled Usually this occurs when doing lots of redeploys. I am surprised you have it using something like indexing. Use virtualvm or jconsole to monitor the Perm gen space and check it levels off after