When I put a new war file in the webapps directory and restart tomcat, my war file is exploded but the servlets are not available and their respective log files are not created in the logs directory. When I bounce tomcat again, then the servlets are available and the log files are created. I'm assuming I have setting(s) not correct wit...
I'm trying to configure SSI with Apache Tomcat 6.0. Following this http://tomcat.apache.org/tomcat-6.0-doc/ssi-howto.html,
I have removed the comments aroud the ssiServlet in $CATALINA_BASE/conf/web.xml.
Also setup the previleged = "true" in context tag found in $CATALINA_BASE/conf/context.xml
After setting this up, i tried to start th...
Hi
I have several tomcat instances running in physically independent machines.
I want to configure the tomcat to share sessions between this instances.
I have tried to configure org.apache.catalina.session.PersistentManager from http://tomcat.apache.org/tomcat-6.0-doc/config/manager.html. But I only see the session file when I shutdow...
I need to secure a Solr/Tomcat instance running on Windows 2008. All read/write clients are within the LAN, so I have followed the Tomcat instructions here and the Solr instructions here. I am unsure that is enough,
could you offer me any additional suggestions? or share how you go about securing Solr/Tomcat+Windows.
I also would appr...
Hi all,
I am having a problem accessing Tomcat from the browser if it was invoked from Eclipse, but it works fine if invoked from command prompt.
I have configured Eclipse to start Tomcat 5.5.23. It starts fine. If I try to connect to it at least to see the admin page using http://localhost:8081/ I get 404 error "The requested resource...
What is the best way to make threadsafe HashMap in Tomcat ?I'm going to create ConcurrentHashMap on InitServlet once on load on my application.
(<load-on-startup>1</load-on-startup>)
Requests from different threads will read and write data to my ConcurrentHashMap.
I'm not good in mutlithreading, so not sure is it approach correct?
A...
I have a webapp which currently authenticates using the Form based authentication method. I want to extend it now such that on the home page, the user will only provide his user id and after processing it on the server, he will be shown the login page with password. Is there a way to extend/customise the Form based authentication in tomc...
Hello.
Latest svn version of red5 does not come with a default Jee Container.
I want to configure tomcat as the Jee-Container is order to be able to execute Jsp/Servlet pages on port 5080.
These are the exact steps i took:
svn checkout
ant prepare
ant dist
copied the following files to red5/dist/plugins directory:
catalina.jar
jasper-...
Is there any way of configuring the embedded tomcat (from run-app) to respond to myapp.localhost:8080 instead of localhost:8080/myapp ?
...
Can anyone guide me how to get Servlets working in Apache Tomcat server? I can run the Servlets from Netbeans without problems, but I don't know where to put the class files in Tomcat.
...
whats the cause of this error while running tomcat 6.0 on eclipse ide helious:
Several ports (8005, 8080, 8009) 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 c...
Hi guys,
I've set up EHCache with its stock suggestion on how to set up multicast:
<cacheManagerPeerProviderFactory class="net.sf.ehcache.distribution.RMICacheManagerPeerProviderFactory"
properties="peerDiscovery=automatic, multicastGroupAddress=230.0.0.1, multicastGroupPort=4446"/>
<cacheManagerPeerListenerFactory class="net.sf.eh...
It's not as simple as it looks.
I've been given the task to add a third tomcat to a server that already has two Tomcats working.
Problem is, this third Tomcat needs to be secure, and the port needs to be hidden. Since Tomcat 1 is currently using port 433 (secure) and Tomcat 2 is using port 80, my third tomcat is out of widely accepted ...
Please help me resolve this
I am constantly getting this error
Error creating bean with name 'sqlMapClient' defined in ServletContext resource
Thanks
31 [main] INFO org.springframework.web.context.ContextLoader - Root WebApplicationContext: initialization started
140 [main] INFO org.springframework.web.context.support.XmlWebApplic...
Is there a way to attach to events like asp.net's "Application_Start" and "Begin_Request" in Java/Tomcat/JSP web projects? I would really rather not use JSF or an extra framework(Spring, Struts). I do not want to do it on a per-page basis with anything like 'jspInit', a global event handler is the goal.
In the event that I am stuck in t...
Hi,
I wrote a page login.jsp (tomcat6) which has login form (username, password etc).
I've mapped the form action and servlet so the form submission results in invocation of login servlet.
1. login.jsp has form that invoke servlet.
<form name="login_form" action="servlet/login" method="POST">
2. servlet mapping in deployment descri...
I have placed a property file in the webaaps folder of tomcat but not able to access it.
My code is
InputStream is = ClassLoader.getSystemResourceAsStream("database.properties");
if(is == null){
is = ClassLoader.getSystemClassLoader().getResourceAsStream("database.properties");
}
if(is == null){
is = ClassLoader.getSystemClassL...
Hi,
I have a JSP page that has 2 forms running on Tomcat 6. One is register form, Second is login form.
(please pay attention to context path, it's going to kill me later)
(regis_and_login.jsp)
<% String path = request.getContextPath(); %>
//regis form
<form id="regis_form" name="register_form"
action="<%= path %>/servle...
We recently changed our system to keep the latest data in the memory instead of writing to the database. (it will be written to the database when the I/O is relatively free)
However, now we are stuck if in the event of Shutdown is required, there might be some data that have not written to the Database yet.
Is there anyway in Tomcat ...
Hi guys,
I want to run "mvn tomcat:run" from the command line, but how can I edit the server.xml to set maxHttpHeaderSize="65536" in the connectors? Or can I configure the connectors in the pom.xml?
Cheers
Nik
...