11 Unanswered Topics

Remove Filter
Member Avatar for
Member Avatar for echocoder

I have an instance of Tomcat 7.0.32 installed. The server.xml is configured to use clientAuth="want" in the Connector. I have a Context that has a docBase set to be a network share. This particular Context I want the user to be authenticated before they can access it, otherwise I want …

0
161
Member Avatar for hp51185

Hello I am trying to run a perl script on tomcat server. I am putting the incoming http request in a variable data which collects the headers as well as the text file attachment data. The code is like this : .... while(<>){ $data = $data . $_ ; } …

0
109
Member Avatar for jakubee

**Hello everyone, I dont know if im placing this in a good place. I have a problem with my application. Its a simple application with connecting to database, retriving info and populating table. I changed the apache tomcats context.xml to looks like this:** <Resource name="jdbc/test" auth="Container" type="javax.sql.DataSource" maxActive="100" maxIdle="30" maxWait="10000" …

0
126
Member Avatar for madhub2v

how to lookup datasource which is created in glassfish with some jndi/dbname name. I am trying to get datasource writing code in a servlet like this Datasource datasource = (Datasource)initialContext.lookup("jdbc/customer"); Connection con = datasource.getConnection(); but it is throwing NameNotFoudExcepion for this context . how can access datasource created outside of …

0
118
Member Avatar for xela

My case: I have several webapps running on my tomcat server like this: demo.myserver.com/application1 demo.myserver.com/application2 demo.myserver.com/application3 This is what I want: Application1.mydomain.com to point to demo.myserver.com/application1 Application2.mydomain.com to point to demo.myserver.com/application2 Application3.mydomain.com to point to demo.myserver.com/application3 This is what I have done: 1. I have set my DNS server to …

0
93
Member Avatar for hericles

Hey, I'm trying to catch the incoming request to my Tomcat server and redirect to another page (a servlet). I don't have Apache installed so no mod_rewrite will work (as I understand it). I need to redirect the incoming request aimed at a standard URL [url]http://www.somesite.com[/url] and send it to …

0
123
Member Avatar for ronnieaka

here's my code: [CODE] import java.io.*; import javax.servlet.*; import javax.servlet.http.*; import javax.servlet.annotation.WebServlet; @WebServlet(name="HelloWorld",urlPatterns={"/HW"}) public class HelloWorld extends HttpServlet { public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { PrintWriter out = response.getWriter(); out.println("Hello Programmers!!! "); } } [/CODE] to access it on Tomcat, i goto : localhost:8080/examples/HW so i …

0
125
Member Avatar for cyiu1110

My aim is getting client's AD login ID for authentication. I tried to use <%String remoteUser=request.getRemoteUser();%> but it returned null value. Actually, I have found a way to solve it from the internet. And it is about doing something on tomcat's file "\conf\server.xml". However, there is no clear step describing …

0
102
Member Avatar for rakhi4110

hi, I am working a program which needs to send an email through JSP. I get an error Could not connect to host : localhost :25 : Connection refused. error. Can anyone tell me what configuration i need to change in Apache Tomcat to use my server as smtp server.. …

0
67
Member Avatar for gaudi_br

Hi, We've got an application running on Tomcat and we've setup Manage Engine's Applications Manager 9.0 to monitor our environment. I've set an alarm that fires whenever a thread is in the "BLOCKED" state at the moment of the polling and I'd like to get a thread dump of that …

0
97
Member Avatar for Styrofoam

I am mostly following this page: [url]http://tomcat.apache.org/tomcat-6.0-doc/ssl-howto.html[/url] I used this command to create the keystore keytool -genkey -alias tomcat -keyalg RSA -keystore /etc/tomcat6/keystore and answered the prompts Then i edited my server.xml file and uncommented/edited this line [code] <Connector port="8443" protocol="org.apache.coyote.http11.Http11Protocol" SSLEnabled="true" maxThreads="150" scheme="https" secure="true" clientAuth="false" sslProtocol="TLS" keystoreFile="/etc/tomcat6/keystore" keystorePass="tomcat" /> …

0
245

The End.