deny directory listing in tomcat
hi, iam using tomcat5.0, I have developed a web application on my server and I want to deny directory listing in tomcat so that if any one types even http://localhost:8080 it should deny the listings. I tried by changing in web.xml listings falselistings tag, but by this method I can prevent only my application. Can any one suggest the solution please. Thanks G.Vishwam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
web hosting with tomcat
Hi, I am a new user of tomcat, I developed a web application in my webapps folder, Now i want to put my application live on internet with my domain name.My question is can tomcat serve as web server alone? or do i need help of IIS or Apache server to redirect to tomcat. Please can any one tell me the procedure what should be done ? Thanks regards vishwam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
problem :integration of iis6.0 with tomcat5.0
hi, all I have developed a web application tomcat5 , I want to use IIS to serve my http requests, I followed below procedure downloaded isapi_redirect2.dll and kept it in my catalina_home\bin host name is dotnetserver cretaed workers2.properties file as following # setup windows application log file [logger.win32] level=DEBUG #communication channel settings [channel.socket:dotnetserver:8009] host=dotnetserver p0rt=8009 #shared memory settings [shm] file=C:\Program Files\Apache Software Foundation\Tomcat5.0\conf\jk2.shm size=10 #declare tomcat worker [ajp13:dotnetserver:8009] channel=channel.socket: dotnetserver:8009 #uri mappings for a application context #requests for any web component (indicated by wild card *) are dispatched #to tomcat [uri:/jsp-examples/*] info=mappings for jsp-examples context of tomcat --- and in jk2.properties file added following lines channelSocket.address=dotnetserver channelSocket.port=8009 shm.file=C:\Program Files\Apache Software Foundation\Tomcat 5.0\conf\jk2.shm and followed total instructions as creating virtual directory on the name of jakarta added filter to IIS added registry componenets added webservice extensions(isapi_redirect2.dll) to IIS. but i am unable to get it work it properly, it is displaying http://dotnetserver/jsp-examples/dates/date.jsp page cannot displayed error message In event log viewer the following message is shown The description for Event ID ( 4 ) in Source ( Apache Jakarta Connector2 ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: [jk_isapi_plugin.c (422)]: HttpFilterProc check if [/jakarta/isapi_redirector2.dll] is pointing to the web-inf directory Iam struggling with this problem for the last 3 days, can anyone please suggest the solution will be appreciated. advance thanks to all. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
unable to send a java mail
iam trying to send a simple email using javamailAPI but iam getting the following error sun.net.smtp.SmtpProtocolException: 553 Sorry, that domain isn't in my list of allowed rcpthosts. at sun.net.smtp.SmtpClient.issueCommand(Unknown Source) at sun.net.smtp.SmtpClient.toCanonical(Unknown Source) Iam trying for last 4 days ,but i couldn't solve this problem it is important ,bcos iam using it in my project i'll be grateful to someone who solves this problem thanks
Re: unable to send a java mail
my smtp server requires authentication with username password but i couldn't find these smtp authentication fields in java mail specification my email program is like this public class MailServlet extends HttpServlet { static final String FROM = [EMAIL PROTECTED]; static final String TO = [EMAIL PROTECTED]; public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { res.setContentType(text/plain); PrintWriter out = res.getWriter(); ParameterParser parser = new ParameterParser(req); String from = parser.getStringParameter(from, FROM); String to = parser.getStringParameter(to, TO); try { SmtpClient smtp = new SmtpClient(xx); // smtphost name smtp.from(from); smtp.to(to); PrintStream msg = smtp.startMessage(); msg.println(To: + to); // so mailers will display the To: address msg.println(Subject: Customer feedback); msg.println(); Enumeration enum1 = req.getParameterNames(); while (enum1.hasMoreElements()) { String name = (String)enum1.nextElement(); if (name.equals(to) || name.equals(from)) continue; // Skip to/from String value = parser.getStringParameter(name, null); msg.println(name + = + value); } msg.println(); msg.println(---); msg.println(Sent by + HttpUtils.getRequestURL(req)); smtp.closeServer(); } - Original Message - From: Dale, Matt [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Thursday, April 28, 2005 6:49 PM Subject: RE: unable to send a java mail The problem appears to be with your SMTP server and not java. Looks like you might need to open it up a bit to relaying. Ta Matt -Original Message- From: vishwam [mailto:[EMAIL PROTECTED] Sent: 28 April 2005 14:18 To: Tomcat Users List Subject: unable to send a java mail iam trying to send a simple email using javamailAPI but iam getting the following error sun.net.smtp.SmtpProtocolException: 553 Sorry, that domain isn't in my list of allowed rcpthosts. at sun.net.smtp.SmtpClient.issueCommand(Unknown Source) at sun.net.smtp.SmtpClient.toCanonical(Unknown Source) Iam trying for last 4 days ,but i couldn't solve this problem it is important ,bcos iam using it in my project i'll be grateful to someone who solves this problem thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
problem with compilation of jsp
hi i hhave installed new apache tomcat on my system, iam facing problem when executing jsp files i have set classpath as C:\Java\jdk1.5.0\lib;C:\Program Files\Java\jre1.5.0\lib;C:\Program Files\Apache Software Foundation\Tomcat 5.0\common\lib java_home as C:\Java\jdk1.5.0 catalina_home as C:\Program Files\Apache Software Foundation\Tomcat 5.0; but iam getting the below error message the root cause is Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath. Perhaps JAVA_HOME does not point to the JDK can any one help solve this this problem please?
Re: problem with compilation of jsp
the problem has been solved by copying the tools.jar file from $java_home/lib to $catalina_home/common/lib/ thanks for the reply to all - Original Message - From: vishwam [EMAIL PROTECTED] To: tomcat-user@jakarta.apache.org Sent: Tuesday, April 26, 2005 4:02 PM Subject: problem with compilation of jsp hi i hhave installed new apache tomcat on my system, iam facing problem when executing jsp files i have set classpath as C:\Java\jdk1.5.0\lib;C:\Program Files\Java\jre1.5.0\lib;C:\Program Files\Apache Software Foundation\Tomcat 5.0\common\lib java_home as C:\Java\jdk1.5.0 catalina_home as C:\Program Files\Apache Software Foundation\Tomcat 5.0; but iam getting the below error message the root cause is Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath. Perhaps JAVA_HOME does not point to the JDK can any one help solve this this problem please? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]