RE: Tomcat at startup
I shall forward you tomcat service script at your email ID. Edit it to specify JAVA_HOME. Amit Gupta Mobile: 91-9891062552 Yahoo IM: amitguptainn MSN IM : amitguptainn -Original Message- From: Mario Moroni [mailto:[EMAIL PROTECTED] Sent: Saturday, January 08, 2005 3:11 PM To: tomcat-user@jakarta.apache.org Subject: Tomcat at startup Hi all, I have installed Tomcat on a Linux developement server . I configured it for port 80 ;) and now I'd like to startup and shutdown tomcat when system start/stop Could someone suggest me a good script to startup/shutdown ? thanks. Mario -- Email.it, the professional e-mail, gratis per te: http://www.email.it/f Sponsor: Dai più energia al tuo sport! Rigenera il tuo corpo in maniera naturale * Grazie agli integratori sport che trovi solo su Erboristeria.com Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=2379d=8-1 - 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]
RE: Tomcat Suddenly Stopped!
Dear friend, some threads may be spinning. I find similar problem on user mode Linux. Amit Gupta Mobile: 91-9818052171 Yahoo IM: amitguptainn MSN IM : amitguptainn -Original Message- From: Parsons Technical Services [mailto:[EMAIL PROTECTED] Sent: Monday, January 03, 2005 6:54 AM To: Tomcat Users List Subject: Re: Tomcat Suddenly Stopped! Check your log files. Report back what you find. Doug - Original Message - From: Aris Javier [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Sunday, January 02, 2005 8:16 PM Subject: Tomcat Suddenly Stopped! Before anything else, I would like to greet everybody HAPPY NEW YEAR!!! Ok, serious now... Why is it Tomcat suddenly stopped... ? I'm trying to figure out what happen... Is it with the number of connections or users of my intranet web app? But we are just 50 in the organization... I'm using Tomcat 5.0.25 jk2 IIS Jsp/Servlets Or do i have to upgrade my Tomcat to higher version? Thanks! Aris mailto:[EMAIL PROTECTED] - 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]
RE: I need to configure logs on my virtual hosting
Thanks Bob. Amit Gupta Mobile: 91-9818052171 Yahoo IM: amitguptainn MSN IM : amitguptainn -Original Message- From: Goel, Manish Kumar [mailto:[EMAIL PROTECTED] Sent: Thursday, December 30, 2004 4:09 PM To: Tomcat Users List; [EMAIL PROTECTED] Subject: RE: I need to configure logs on my virtual hosting Hi, can any body help me this same thing not working on tomcat 5.0.19 version. Manish -Original Message- From: Roberto Rios [mailto:[EMAIL PROTECTED] Sent: Thursday, December 30, 2004 4:03 PM To: 'Amit Gupta'; 'Tomcat Users List' Subject: RES: I need to configure logs on my virtual hosting Hi, Yes, you can. Take a look at the admin context provided with tomcat (as an example): Context path=/admin docBase=${catalina.home}/server/webapps/admin debug=0 privileged=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_admin_log. suffix=.txt timestamp=true/ /Context Bob -Mensagem original- De: Amit Gupta [mailto:[EMAIL PROTECTED] Enviada em: quinta-feira, 30 de dezembro de 2004 02:33 Para: Tomcat Users List; [EMAIL PROTECTED] Assunto: RE: I need to configure logs on my virtual hosting Hi Bob, I am using tomcat 5.0. I found that logger is used below tomcat 5.5.0. Can I use logger in context.xml in mywebapp/META-INF/context.xml? Amit Gupta Mobile: 91-9818052171 Yahoo IM: amitguptainn MSN IM : amitguptainn -Original Message- From: Roberto Rios [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 28, 2004 8:30 PM To: tomcat-user@jakarta.apache.org Subject: RE: I need to configure logs on my virtual hosting Hi, Which tomcat version? For tomcat 4.X put a LOGGER component inside the context and specify the directory that you want. Take a look at (http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/logger.html) This procedure works with TC 5.0.X, but it's deprecated. For TC 5.5, look at http://jakarta.apache.org/tomcat/tomcat-5.5-doc/logging.html. Bob -Mensagem original- De: Amit Gupta [mailto:[EMAIL PROTECTED] Enviada em: terça-feira, 28 de dezembro de 2004 04:27 Para: Tomcat Users List Assunto: I need to configure logs on my virtual hosting Hi, I need to configure logs on my virtual hosting. How can I do it? Till now logs are created at global logs directory to which I don't have access. I need logs in my webapps directory. - 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] *** Information contained in this email message is intended only for use of the individual or entity named above. If the reader of this message is not the intended recipient, or the employee or agent responsible to deliver it to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify the [EMAIL PROTECTED] and destroy the original message. ** - 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 arising because server had jdk 1.4 and I compiled classes with jdk 1.5
Hi, I just want to share my experience with you. I want struggling with web application for 5 days. It was working in local but not virtual hosting server. Just few minutes before I came to know reason behind my problem. 1) I compiled classes with JDK 1.5 and server had jdk 1.4.. Because of this version difference, classes were failing on hosting server. 2) My application runs on hosting server when I call from 8080 port but not on 80 port. I think hosting server is not configured to proxy '*.do' type URLs to tomcat. Amit Gupta Mobile: 91-9818052171 Yahoo IM: amitguptainn MSN IM : amitguptainn
RE: I need to configure logs on my virtual hosting
Bob, Log files are not being created. I am specifying directory=logs\ in logger in context.xml. Does it matter? Amit Gupta Mobile: 91-9818052171 Yahoo IM: amitguptainn MSN IM : amitguptainn -Original Message- From: Roberto Rios [mailto:[EMAIL PROTECTED] Sent: Thursday, December 30, 2004 5:51 PM To: 'Goel, Manish Kumar'; 'Tomcat Users List' Subject: RES: I need to configure logs on my virtual hosting Hi, Can you provide more details? Are you getting errors or the log files aren't being created? I always used logger inside my contexts and I never had problem. I never used TC5.0.19. I did an upgrade from TC4.1.30 to 5.0.28 and everything works well. Bob -Mensagem original- De: Goel, Manish Kumar [mailto:[EMAIL PROTECTED] Enviada em: quinta-feira, 30 de dezembro de 2004 08:39 Para: Tomcat Users List; [EMAIL PROTECTED] Assunto: RE: I need to configure logs on my virtual hosting Hi, can any body help me this same thing not working on tomcat 5.0.19 version. Manish -Original Message- From: Roberto Rios [mailto:[EMAIL PROTECTED] Sent: Thursday, December 30, 2004 4:03 PM To: 'Amit Gupta'; 'Tomcat Users List' Subject: RES: I need to configure logs on my virtual hosting Hi, Yes, you can. Take a look at the admin context provided with tomcat (as an example): Context path=/admin docBase=${catalina.home}/server/webapps/admin debug=0 privileged=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_admin_log. suffix=.txt timestamp=true/ /Context Bob -Mensagem original- De: Amit Gupta [mailto:[EMAIL PROTECTED] Enviada em: quinta-feira, 30 de dezembro de 2004 02:33 Para: Tomcat Users List; [EMAIL PROTECTED] Assunto: RE: I need to configure logs on my virtual hosting Hi Bob, I am using tomcat 5.0. I found that logger is used below tomcat 5.5.0. Can I use logger in context.xml in mywebapp/META-INF/context.xml? Amit Gupta Mobile: 91-9818052171 Yahoo IM: amitguptainn MSN IM : amitguptainn -Original Message- From: Roberto Rios [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 28, 2004 8:30 PM To: tomcat-user@jakarta.apache.org Subject: RE: I need to configure logs on my virtual hosting Hi, Which tomcat version? For tomcat 4.X put a LOGGER component inside the context and specify the directory that you want. Take a look at (http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/logger.html) This procedure works with TC 5.0.X, but it's deprecated. For TC 5.5, look at http://jakarta.apache.org/tomcat/tomcat-5.5-doc/logging.html. Bob -Mensagem original- De: Amit Gupta [mailto:[EMAIL PROTECTED] Enviada em: terça-feira, 28 de dezembro de 2004 04:27 Para: Tomcat Users List Assunto: I need to configure logs on my virtual hosting Hi, I need to configure logs on my virtual hosting. How can I do it? Till now logs are created at global logs directory to which I don't have access. I need logs in my webapps directory. - 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] *** Information contained in this email message is intended only for use of the individual or entity named above. If the reader of this message is not the intended recipient, or the employee or agent responsible to deliver it to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify the [EMAIL PROTECTED] and destroy the original message. ** - 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]
RE: I need to configure logs on my virtual hosting
Hi Bob, I am using tomcat 5.0. I found that logger is used below tomcat 5.5.0. Can I use logger in context.xml in mywebapp/META-INF/context.xml? Amit Gupta Mobile: 91-9818052171 Yahoo IM: amitguptainn MSN IM : amitguptainn -Original Message- From: Roberto Rios [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 28, 2004 8:30 PM To: tomcat-user@jakarta.apache.org Subject: RE: I need to configure logs on my virtual hosting Hi, Which tomcat version? For tomcat 4.X put a LOGGER component inside the context and specify the directory that you want. Take a look at (http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/logger.html) This procedure works with TC 5.0.X, but it's deprecated. For TC 5.5, look at http://jakarta.apache.org/tomcat/tomcat-5.5-doc/logging.html. Bob -Mensagem original- De: Amit Gupta [mailto:[EMAIL PROTECTED] Enviada em: terça-feira, 28 de dezembro de 2004 04:27 Para: Tomcat Users List Assunto: I need to configure logs on my virtual hosting Hi, I need to configure logs on my virtual hosting. How can I do it? Till now logs are created at global logs directory to which I don't have access. I need logs in my webapps directory. - 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]
I am facing problems in running Tomcat on User mode Linux server
I am facing problems in running Tomcat on User mode Linux server. It crashes soon after it is started. I tried renaming /lib/tls to /lib/tls-disabled and then starting tomcat. But no success. Please help me. Amit Gupta Mobile: 91-9818052171 Yahoo IM: amitguptainn MSN IM : amitguptainn
RE: JVM Crash
I am facing similar problem on user mode Linux. Amit Gupta Mobile: 91-9818052171 Yahoo IM: amitguptainn MSN IM : amitguptainn -Original Message- From: Rodrigo Schmidt [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 28, 2004 5:05 PM To: Tomcat Users List Subject: Re: JVM Crash Amit, I am using a dedicated server. Rodrigo Amit Gupta wrote: You are using User mode Linux or dedicated server? Amit Gupta Mobile: 91-9818052171 -Original Message- From: Rodrigo Schmidt [mailto:[EMAIL PROTECTED] Sent: Monday, December 27, 2004 11:18 PM To: tomcat-user@jakarta.apache.org Subject: JVM Crash Hello all, I deployed Atlassian Jira Enterprise 3.0.3 in Tomcat 5.0.28 and I experienced two random JVM crashes in a period of one month. The strange part is that the crashes occured when the application was at a very low load, doing almost nothing. I searched the archives for this topic, but I still can't figure out what could have caused these crashes. I have no idea whether they are related to Jira, Tomcat, J2SDK or RedHat. I would like to isolate the problem, so that I can ask the proper vendor for support. Below I will post information about my system and the JVM error logs, sorry for the long message. Any help is greatly appreciated, thanks a lot. Rodrigo System: Linux 2.4.21-4.EL #1 Fri Oct 3 18:13:58 EDT 2003 i686 i686 i386 GNU/Linux Red Hat Enterprise Linux AS release 3 (Taroon) Tomcat 5.0.28 java version 1.4.2_06 Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_06-b03) Java HotSpot(TM) Server VM (build 1.4.2_06-b03, mixed mode) JAVA_OPTS=-server -Xmx512m 1GB RAM CPU: Intel(R) Pentium(R) 4 CPU 2.40GHz stepping 09 Error log 1: Unexpected Signal : 11 occurred at PC=0xB7289E78 Function=(null) Library=/usr/local/j2sdk1.4.2_06/jre/lib/i386/server/libjvm.so NOTE: We are unable to locate the function name symbol for the error just occurred. Please refer to release documentation for possible reason and solutions. Current Java thread: at java.lang.String.intern(Native Method) at java.lang.Class.searchMethods(Class.java:1877) at java.lang.Class.getDeclaredMethod(Class.java:1262) at org.apache.commons.logging.impl.LogFactoryImpl.isJdk14Available(LogFactoryImpl.java:489) at org.apache.commons.logging.impl.LogFactoryImpl.getLogClassName(LogFactoryImpl.java:331) at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:368) at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:529) at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235) at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:209) at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:351) at org.apache.commons.beanutils.ConvertUtilsBean.init(ConvertUtilsBean.java:130) at org.apache.commons.beanutils.BeanUtilsBean.init(BeanUtilsBean.java:110) at org.apache.commons.beanutils.BeanUtilsBean$1.initialValue(BeanUtilsBean.java:68) at org.apache.commons.beanutils.ContextClassLoaderLocal.get(ContextClassLoaderLocal.java:80) - locked 0x925030d0 (a org.apache.commons.beanutils.BeanUtilsBean$1) at org.apache.commons.beanutils.BeanUtilsBean.getInstance(BeanUtilsBean.java:78) - locked 0xaeeb91a0 (a java.lang.Class) at org.apache.commons.beanutils.ConvertUtilsBean.getInstance(ConvertUtilsBean.java:115) at org.apache.commons.beanutils.ConvertUtils.convert(ConvertUtils.java:217) at org.apache.commons.digester.CallMethodRule.end(CallMethodRule.java:457) at org.apache.commons.digester.Rule.end(Rule.java:276) at org.apache.commons.digester.Digester.endElement(Digester.java:1058) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.commons.digester.Digester.parse(Digester.java:1548) at org.apache.catalina.startup.ContextConfig.defaultConfig(ContextConfig.java:515) - locked 0x92641798 (a org.apache.commons.digester.Digester) at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:623) - locked 0x93a28f98 (a org.apache.catalina.startup.ContextConfig
RE: JVM Crash
You are using User mode Linux or dedicated server? Amit Gupta Mobile: 91-9818052171 -Original Message- From: Rodrigo Schmidt [mailto:[EMAIL PROTECTED] Sent: Monday, December 27, 2004 11:18 PM To: tomcat-user@jakarta.apache.org Subject: JVM Crash Hello all, I deployed Atlassian Jira Enterprise 3.0.3 in Tomcat 5.0.28 and I experienced two random JVM crashes in a period of one month. The strange part is that the crashes occured when the application was at a very low load, doing almost nothing. I searched the archives for this topic, but I still can't figure out what could have caused these crashes. I have no idea whether they are related to Jira, Tomcat, J2SDK or RedHat. I would like to isolate the problem, so that I can ask the proper vendor for support. Below I will post information about my system and the JVM error logs, sorry for the long message. Any help is greatly appreciated, thanks a lot. Rodrigo System: Linux 2.4.21-4.EL #1 Fri Oct 3 18:13:58 EDT 2003 i686 i686 i386 GNU/Linux Red Hat Enterprise Linux AS release 3 (Taroon) Tomcat 5.0.28 java version 1.4.2_06 Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_06-b03) Java HotSpot(TM) Server VM (build 1.4.2_06-b03, mixed mode) JAVA_OPTS=-server -Xmx512m 1GB RAM CPU: Intel(R) Pentium(R) 4 CPU 2.40GHz stepping 09 Error log 1: Unexpected Signal : 11 occurred at PC=0xB7289E78 Function=(null) Library=/usr/local/j2sdk1.4.2_06/jre/lib/i386/server/libjvm.so NOTE: We are unable to locate the function name symbol for the error just occurred. Please refer to release documentation for possible reason and solutions. Current Java thread: at java.lang.String.intern(Native Method) at java.lang.Class.searchMethods(Class.java:1877) at java.lang.Class.getDeclaredMethod(Class.java:1262) at org.apache.commons.logging.impl.LogFactoryImpl.isJdk14Available(LogFactoryImpl.java:489) at org.apache.commons.logging.impl.LogFactoryImpl.getLogClassName(LogFactoryImpl.java:331) at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:368) at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:529) at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235) at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:209) at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:351) at org.apache.commons.beanutils.ConvertUtilsBean.init(ConvertUtilsBean.java:130) at org.apache.commons.beanutils.BeanUtilsBean.init(BeanUtilsBean.java:110) at org.apache.commons.beanutils.BeanUtilsBean$1.initialValue(BeanUtilsBean.java:68) at org.apache.commons.beanutils.ContextClassLoaderLocal.get(ContextClassLoaderLocal.java:80) - locked 0x925030d0 (a org.apache.commons.beanutils.BeanUtilsBean$1) at org.apache.commons.beanutils.BeanUtilsBean.getInstance(BeanUtilsBean.java:78) - locked 0xaeeb91a0 (a java.lang.Class) at org.apache.commons.beanutils.ConvertUtilsBean.getInstance(ConvertUtilsBean.java:115) at org.apache.commons.beanutils.ConvertUtils.convert(ConvertUtils.java:217) at org.apache.commons.digester.CallMethodRule.end(CallMethodRule.java:457) at org.apache.commons.digester.Rule.end(Rule.java:276) at org.apache.commons.digester.Digester.endElement(Digester.java:1058) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.commons.digester.Digester.parse(Digester.java:1548) at org.apache.catalina.startup.ContextConfig.defaultConfig(ContextConfig.java:515) - locked 0x92641798 (a org.apache.commons.digester.Digester) at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:623) - locked 0x93a28f98 (a org.apache.catalina.startup.ContextConfig) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:216) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4290) - locked 0x93a119f0 (a org.apache.catalina.core.StandardContext) at org.apache.catalina.core.ContainerBase.addChildInternal
RE: Newbie question on Database and struts
I tried SQLMaps. It is wonderful but is there any easy manual (except PDF that come with ibatis) available on net? Amit Gupta -Original Message- From: Dustin [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 28, 2004 1:28 AM To: Tomcat Users List Subject: Re: Newbie question on Database and struts This isn't exactly answering your question but... Check out iBATIS SQL Maps: http://www.ibatis.com/common/sqlmaps.html I won't go into how to use it. They have an excellent manual and tutorial. It is ridiculously easy to learn and use. Especially with Struts. Basically, you set up a query in an XML file, make a call, and it will return the results as a bean you've created or a list of beans. My description, I'm sure, does not do this software justice. It has numerous features. Check it out. You'll never look back. Dustin --- Manisha Sathe [EMAIL PROTECTED] wrote: I am new to struts (even new to java also) I have one form developed in struts. What i want to do is depending on form values, run sql qry in Action form, get result set and display it on JSP. I have created a databean for the results. But with result set - How to create array of databeans ? and how to post it on JSP ? if anybody can pass me the samples pls would be of great help regards Manisha - Do you Yahoo!? Read only the mail you want - Yahoo! Mail SpamGuard. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - 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]
I need to configure logs on my virtual hosting
Hi, I need to configure logs on my virtual hosting. How can I do it? Till now logs are created at global logs directory to which I don't have access. I need logs in my webapps directory.
RE: How to configure struts enable application to reload
My Concern is that whenever I deploy finished application to give demo to clinet, I need to realod application at hosting server. As said I cannot do it due to lack of access to tomcat manager. Aamit Gupta -Original Message- From: QM [mailto:[EMAIL PROTECTED] Sent: Monday, December 27, 2004 10:09 AM To: Tomcat Users List Subject: Re: How to configure struts enable application to reload On Mon, Dec 27, 2004 at 09:53:17AM +0530, Amit Gupta wrote: : I am giving demo of my Struts based application on a hosting server. I don't : have access to tomcat manager application to reload my demo. Can I do : something on my part to automatically reload my application whenever I update : any class in application? If this isn't a FAQ, it's at least in the docs. Check out the reloadable attribute of the Context/ tag. Then again, given your situation (using a hosting provider) this may not be possible. You could also setup a small Tomcat environment on your local workstation to do development, then upload the finished product to the hosting provider. -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - 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]
How to configure struts enable application to reload
Hi, I am struggling with a problem. I am giving demo of my Struts based application on a hosting server. I don't have access to tomcat manager application to reload my demo. Can I do something on my part to automatically reload my application whenever I update any class in application? Amit Gupta 91-9818052171
RE: windows-1251 (Russian encoding)
What DBMS are you using? MySQL/Oracle/SQL server? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, December 24, 2004 4:27 PM To: tomcat-user@jakarta.apache.org Subject: windows-1251 (Russian encoding) Good day. Sorry for my English, I'll try to explain. I'm using Tomcat to construct site (using JSP) that extract data using SQL from DB Server. But I have trouble. Some information from DB written using character encoding windows-1251. After SQL request I retrieve information like ??? ? instead of normal russian word. If you ever used Sybase Jaguar Server you saw that there you can correct charsets parameters for your language but in Tomcat I don't know how I can do it. How I can configure retrieve info from DB in correct charset in Tomcat? Thanks a lot. ps: sorry for my English. By the way, I'm from Ukrain. 8) Kvitka Maxim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Newbie question on Database and struts
Hi Manisha, I was also struggling with problem similar to you. I came you with following: package forklifts; import org.apache.struts.action.Action; import org.apache.struts.action.ActionForward; import org.apache.struts.action.ActionMapping; import org.apache.struts.action.ActionForm; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpSession; import java.util.Collection; import java.sql.*; public final class registrationAction extends Action { public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { javax.sql.DataSource dataSource; Connection conn; try { dataSource = getDataSource(request); conn = dataSource.getConnection(); Statement stmt = null; ResultSet rs = null; String sqlquery=select * from my_table where username='+request.getParameter(username)+'; stmt = conn.createStatement(); rs=stmt.executeQuery(sqlquery); if(rs.next()) { request.setAttribute(msg,h5 class=errorUser with username '+request.getParameter(username)+' is already registered. Try another username./h5 ); if(rs!=null) rs.close(); if(stmt!=null) stmt.close(); if(conn!=null) conn.close(); return mapping.findForward(success); } else { sqlquery=Insert into my_table set username='+request.getParameter(username)+',password='+request.getParameter(password)+',FirstName='+request.getParameter(FirstName)+',LastName='+request.getParameter(LastName)+',Address='+request.getParameter(Address)+',Street='+request.getParameter(Street)+',City='+request.getParameter(City)+',State='+request.getParameter(State)+',Country='+request.getParameter(Country)+',Zip='+request.getParameter(Zip)+',Email='+request.getParameter(Email)+',Phone1='+request.getParameter(Phone)+',title='+request.getParameter(title)+',company='+request.getParameter(company)+',website='+request.getParameter(website)+',fax='+request.getParameter(fax)+'; try { stmt = conn.createStatement(); stmt.executeUpdate(sqlquery); request.setAttribute(msg,h5 class=successYour account created successfully/h5); if(rs!=null) rs.close(); if(stmt!=null) stmt.close(); if(conn!=null) conn.close(); return mapping.findForward(success);} catch(SQLException ex1) { request.setAttribute(msg,h5 class=errorSorry! regsitration failed/h5 ); return mapping.findForward(sqlexception); } } } catch(SQLException ex) { request.setAttribute(msg,h5 class=errorSorry! regsitration failed/h5 ); return mapping.findForward(sqlexception); } } } I hope above code will give you sufficient idea you to pass data to JSP page. -Original Message- From: Manisha Sathe [mailto:[EMAIL PROTECTED] Sent: Friday, December 24, 2004 8:55 AM To: tomcat-user@jakarta.apache.org Subject: Newbie question on Database and struts I am new to struts (even new to java also) I have one form developed in struts. What i want to do is depending on form values, run sql qry in Action form, get result set and display it on JSP. I have created a databean for the results. But with result set - How to create array of databeans ? and how to post it on JSP ? if anybody can pass me the samples pls would be of great help regards Manisha - Do you Yahoo!? Read only the mail you want - Yahoo! Mail SpamGuard.
RE: Newbie question on Database and struts
Following code fetch records from database table , populate them to hastable and create vector of these hashtables . Then we pass this vector to JSP through request attribute. Action class import org.apache.struts.action.*; import javax.servlet.http.*; import java.sql.*; import java.util.*; import org.apache.commons.beanutils.*; public class viewWsForkliftsAction extends org.apache.struts.action.Action { public ActionForward execute( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) { HttpSession session=request.getSession(); if(session.getAttribute(username)!=null) { request.setAttribute(username, session.getAttribute(username)); } javax.sql.DataSource dataSource; Connection conn; try { dataSource = getDataSource(request); conn = dataSource.getConnection(); Statement stmt = null; ResultSet rs = null; String sqlquery=select * from my_table; sqlquery=sqlquery+and dcc_forklifts.status=\Active\; stmt = conn.createStatement(); rs= stmt.executeQuery(sqlquery); ResultSetMetaData rsmd = rs.getMetaData(); int numberOfColumns = rsmd.getColumnCount(); Vector rows=new Vector(); while(rs.next()) { rs=stmt.getResultSet(); Hashtable fields=new Hashtable(); for(int j=1; j=numberOfColumns;j++) { fields.put(rsmd.getColumnName(j),rs.getString(rsmd.getColumnName(j))); } rows.add(fields); } request.setAttribute(rows,rows); conn.close(); return mapping.findForward(request.getParameter(page)); } catch (SQLException sqle) { request.setAttribute(val,sqle); return mapping.findForward(sqlexception); } } } In JSP page , I access this vector as Vector rows =(Vector)request.getAttribute(rows); int sz=rows.size(); for(int i=0;i sz;i++) { Hashtable row=(Hashtable)rows.get(i); ... } With regards, Amit Gupta -Original Message- From: Manisha Sathe [mailto:[EMAIL PROTECTED] Sent: Friday, December 24, 2004 8:55 AM To: tomcat-user@jakarta.apache.org Subject: Newbie question on Database and struts I am new to struts (even new to java also) I have one form developed in struts. What i want to do is depending on form values, run sql qry in Action form, get result set and display it on JSP. I have created a databean for the results. But with result set - How to create array of databeans ? and how to post it on JSP ? if anybody can pass me the samples pls would be of great help regards Manisha - Do you Yahoo!? Read only the mail you want - Yahoo! Mail SpamGuard.
file Permissions to tomcat?
My Tomcat creates lot of problem in starting. I think reason can be linux permissions. Can any body tell me what permissions should it have? Amit Gupta
Problems with tomcat
Hi, I am running Tomcat server 5.5.3 with JDK 1.5 on three servers. These servers are User mode Linux. Two servers have fedora core 2 and 1 server has redhat 9. I am installing same binaries downloaded from Jakarta.apache.org and java.sun.com. On one server(Fedora core2 with 64 MB RAM). Tomcat is working fine with no issues. Deploys applications automatically when uploaded. No problem with this server. On second server (Fedora core2 with 128 MB RAM) Tomcat starts and don't kill java process it created when shutdown.sh in CATALINA_HOME/bin/ is executed. So tomcat runs only once and hence need reboot of system . Problem don't solve even if I manually kill process. Third server (Redhat 9 with 128 MB RAM), Tomcat is too slow to execute applications. Also tomcat startup on second and third server is moody. Sometimes it start when CATALINA_HOME/bin/ startup.sh is executed some times don't. Please help... Amit Gupta
Configuring JK connector to execute JSP pages.
Hi , I have configured tomcat 5.5.3 with jk connector . My jk.config is LoadModule jk_module modules/jakarta-tomcat-connectors-jk-1.2.6-linux-fc2-i386-apache-2.0.50.so JkWorkersFile /etc/httpd/conf/workers2.properties JkAutoAlias /usr/local/tomcat/webapps JkMount /java-server/* testWorker JkMount /*/servlet/ testWorker Alias /java-server/ /usr/local/tomcat/webapps/ Directory /usr/local/tomcat/webapps/ Options Indexes MultiViews AllowOverride None Order allow,deny Allow from all /Directory It is not executing JSP pages. How should I configure it. Amit Gupta
Error with tomcat 5.5.3
When I try to stop tomcat following error occur org.apache.catalina.startup.Catalina stopServer SEVERE: Catalina.stop: java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:364) at java.net.Socket.connect(Socket.java:507) at java.net.Socket.connect(Socket.java:457) at java.net.Socket.init(Socket.java:365) at java.net.Socket.init(Socket.java:178) at org.apache.catalina.startup.Catalina.stopServer(Catalina.java:394) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.catalina.startup.Bootstrap.stopServer(Bootstrap.java:320) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:411) What may be the reason? Amit Gupta
Doubts with tomcat
Hello everybody, I have following section in server.xml Connector port=8080 maxThreads=25 minSpareThreads=5 maxSpareThreads=15 enableLookups=false redirectPort=8443 acceptCount=100 debug=0 connectionTimeout=2 disableUploadTimeout=true / !-- Note : To disable connection timeouts, set connectionTimeout value to 0 -- !-- Note : To use gzip compression you could set the following properties : compression=on compressionMinSize=2048 noCompressionUserAgents=gozilla, traviata compressableMimeType=text/html,text/xml -- !-- Define a SSL HTTP/1.1 Connector on port 8443 -- !-- Connector port=8443 maxThreads=25 minSpareThreads=5 maxSpareThreads=15 enableLookups=false disableUploadTimeout=true acceptCount=100 debug=0 scheme=https secure=true clientAuth=false sslProtocol=TLS / -- !-- Define an AJP 1.3 Connector on port 8009 -- Connector port=8009 enableLookups=false redirectPort=8443 debug=0 protocol=AJP/1.3 / I have following queries: 1) When I start tomcat with above server.xml , it creates 9 process with same output on shell. it is /usr/java/jdk1.5.0//bin/java -Djava.endorsed.dirs=/usr/local/tomcat/common/endorsed -classpath /usr/java/jdk1.5.0//lib/tools.jar:/usr/local/tomcat/bin/bootstrap.jar:/usr/local/tomcat/bin/commons-logging-api.jar -Dcatalina.base=/usr/local/tomcat -Dcatalina.home=/usr/local/tomcat -Djava.io.tmpdir=/usr/local/tomcat/temp org.apache.catalina.startup.Bootstrap start. I configured tomcat to run with minSpareThreads=5 then why it start with 9 threads? 2) In tomcat , port 8080 is redirected to SSL port 8443. Why NON-SSL port is redited to SSL port? Please help me to understand these basics. Amit Gupta
Is their any tutorial for optimizing tomcat performance?
Hi, Is their any tutorial for optimizing tomcat performance? I run it on 64 MB RAM and 64 SWAP Space. is it Ok or not? Amit Gupta Email: [EMAIL PROTECTED]
Re: Doubts with tomcat
With following mod_jk2.conf LoadModule jk2_module modules/mod_jk2.so JkSet config.file /etc/httpd/conf/workers2.properties JkAutoAlias /usr/local/tomcat/webapps JkMount /*.jsp ajp13 JkMount /*/servlet/ ajp13 Following error is coming: service httpd start Starting httpd: Syntax error on line 7 of /etc/httpd/conf.d/jk2.conf: Invalid command 'JkAutoAlias', perhaps mis-spelled or defined by a module not included in the server configuration please help boss. Amit - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat/5.5.3 with jdk1.5.0 DONOT run on port 5555.
Hi , I have configured Tomcat/5.5.3 with jdk1.5.0. When I configure tomcat to run on then it DONOT work. On 8080 port tomcat work fine. What May be the reason? Amit Gupta
Re: Tomcat/5.5.3 with jdk1.5.0 DONOT run on port 5555.
gets replicated, then the request return. This is the same as the 'synchronous' setting except it uses a pool of sockets, hence it is multithreaded. This is the fastest and safest configuration. To use this, also increase the nr of tcp threads that you have dealing with replication. * Synchronous means that the thread that executes the request, is also the thread the replicates the data to the other nodes, and will not return until all nodes have received the information. * Asynchronous means that there is a specific 'sender' thread for each cluster node, so the request thread will queue the replication request into a smart queue, and then return to the client. The smart queue is a queue where when a session is added to the queue, and the same session already exists in the queue from a previous request, that session will be replaced in the queue instead of replicating two requests. This almost never happens, unless there is a large network delay. -- !-- When configuring for clustering, you also add in a valve to catch all the requests coming in, at the end of the request, the session may or may not be replicated. A session is replicated if and only if all the conditions are met: 1. useDirtyFlag is true or setAttribute or removeAttribute has been called AND 2. a session exists (has been created) 3. the request is not trapped by the filter attribute The filter attribute is to filter out requests that could not modify the session, hence we don't replicate the session after the end of this request. The filter is negative, ie, anything you put in the filter, you mean to filter out, ie, no replication will be done on requests that match one of the filters. The filter attribute is delimited by ;, so you can't escape out ; even if you wanted to. filter=.*\.gif;.*\.js; means that we will not replicate the session after requests with the URI ending with .gif and .js are intercepted. The deployer element can be used to deploy apps cluster wide. Currently the deployment only deploys/undeploys to working members in the cluster so no WARs are copied upons startup of a broken node. The deployer watches a directory (watchDir) for WAR files when watchEnabled=true When a new war file is added the war gets deployed to the local instance, and then deployed to the other instances in the cluster. When a war file is deleted from the watchDir the war is undeployed locally and cluster wide -- !-- Cluster className=org.apache.catalina.cluster.tcp.SimpleTcpCluster managerClassName=org.apache.catalina.cluster.session.DeltaManager expireSessionsOnShutdown=false useDirtyFlag=true notifyListenersOnReplication=true Membership className=org.apache.catalina.cluster.mcast.McastService mcastAddr=228.0.0.4 mcastPort=45564 mcastFrequency=500 mcastDropTime=3000/ Receiver className=org.apache.catalina.cluster.tcp.ReplicationListener tcpListenAddress=auto tcpListenPort=4001 tcpSelectorTimeout=100 tcpThreadCount=6/ Sender className=org.apache.catalina.cluster.tcp.ReplicationTransmitter replicationMode=pooled ackTimeout=15000/ Valve className=org.apache.catalina.cluster.tcp.ReplicationValve filter=.*\.gif;.*\.js;.*\.jpg;.*\.htm;.*\.html;.*\.txt;/ Deployer className=org.apache.catalina.cluster.deploy.FarmWarDeployer tempDir=/tmp/war-temp/ deployDir=/tmp/war-deploy/ watchDir=/tmp/war-listen/ watchEnabled=false/ /Cluster -- !-- Normally, users must authenticate themselves to each web app individually. Uncomment the following entry if you would like a user to be authenticated the first time they encounter a resource protected by a security constraint, and then have that user identity maintained across *all* web applications contained in this virtual host. -- !-- Valve className=org.apache.catalina.authenticator.SingleSignOn debug=0/ -- !-- Access log processes all requests for this virtual host. By default, log files are created in the logs directory relative to $CATALINA_HOME. If you wish, you can specify a different directory with the directory attribute. Specify either a relative (to $CATALINA_HOME) or absolute path to the desired directory. -- !-- Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=localhost_access_log. suffix=.txt pattern=common resolveHosts=false/ -- /Host /Engine /Service /Server Amit Gupta Email: [EMAIL PROTECTED] http://amit-gupta.prudence-india.com A request - given the barrage of spam these days, there is a non-zero probability that I accidentally delete important emails. If a response is necessary to your email, rest assured that I will respond in time. If however, you have not received a response in a reasonable period, please don't hesitate to resend. - Original Message - From: Shinobu Kawai [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Saturday, November 06, 2004 4:00 PM Subject: Re: Tomcat/5.5.3 with jdk1.5.0 DONOT run on port . Hi Amit, I have
Re: Tomcat/5.5.3 with jdk1.5.0 DONOT run on port 5555.
I am not able to access it through http://my_url: Amit Gupta Email: [EMAIL PROTECTED] http://amit-gupta.prudence-india.com - Original Message - From: Shinobu Kawai [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Saturday, November 06, 2004 4:42 PM Subject: Re: Tomcat/5.5.3 with jdk1.5.0 DONOT run on port . Hi Amit, I installed it binary downloaded from ftp.ntua.gr. Copied files to /usr/local/tomcat/ . I am running tomcat with /usr/local/tomcat/bin/startup.sh. I have exported JAVA_HOME variable. Its /usr/java/jdk1.5.0/ I'm not sure about your environment, Here is my server.xml But the same server.xml works with the Windows version. Again, 2. How doesn't it work? Any error messages, logs? What gave you the conclusion that it isn't working? Best regards, -- Shinobu Kawai -- Shinobu Kawai [EMAIL PROTECTED] - 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]
Re: Tomcat/5.5.3 with jdk1.5.0 DONOT run on port 5555.
Nothing appears. Even no HTTP error appears Amit Gupta - Original Message - From: Shinobu Kawai [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Saturday, November 06, 2004 5:04 PM Subject: Re: Tomcat/5.5.3 with jdk1.5.0 DONOT run on port . Hi Amit, I am not able to access it through http://my_url: What do you mean by not able to access? You must be expecting the Tomcat top page, but what are you actually getting? Do you see anything in the log? 2. How doesn't it work? Any error messages, logs? What gave you the conclusion that it isn't working? Best regards, -- Shinobu Kawai -- Shinobu Kawai [EMAIL PROTECTED] - 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]
Re: Tomcat/5.5.3 with jdk1.5.0 DONOT run on port 5555.
No I have opened it on firewall. Can you come online Yahoo/MSN chat. Amit Gupta - Original Message - From: Shinobu Kawai [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Saturday, November 06, 2004 5:22 PM Subject: Re: Tomcat/5.5.3 with jdk1.5.0 DONOT run on port . Hi Amit, Nothing appears. Even no HTTP error appears How about the log? Could it be that you are blocking port ? Best regards, -- Shinobu Kawai -- Shinobu Kawai [EMAIL PROTECTED] - 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]
Re: Tomcat/5.5.3 with jdk1.5.0 DONOT run on port 5555.
It is remote server So can not check it except browser. - Original Message - From: Shinobu Kawai [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Saturday, November 06, 2004 5:41 PM Subject: Re: Tomcat/5.5.3 with jdk1.5.0 DONOT run on port . Hi Amit, No I have opened it on firewall. Okay. Firewalls are for the client side. How about server side? Can you come online Yahoo/MSN chat. Sorry, I'm too much a security coward to do chat. ;) Again, How about the log? Best regards, -- Shinobu Kawai -- Shinobu Kawai [EMAIL PROTECTED] - 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]
Re: [OT] Tomcat/5.5.3 with jdk1.5.0 DONOT run on port 5555.
Yes I have verified about ports Amit Gupta - Original Message - From: Ben Souther [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Saturday, November 06, 2004 6:48 PM Subject: Re: [OT] Tomcat/5.5.3 with jdk1.5.0 DONOT run on port . On Sat, 2004-11-06 at 07:36, Amit Gupta wrote: I am server administrator and port is open Have you scanned the ports to see if anything else is bound to it on that server? - Original Message - From: Ben Souther [EMAIL PROTECTED] To: Amit Gupta [EMAIL PROTECTED] Sent: Saturday, November 06, 2004 6:03 PM Subject: [OT] Tomcat/5.5.3 with jdk1.5.0 DONOT run on port . On Sat, 2004-11-06 at 07:17, Amit Gupta wrote: It is remote server So can not check it except browser. Your server.xml looks fine. If you don't have access to the server, you will need to check with whomever does to find out if port is open and available for you to use. This is not a Tomcat issue. - Original Message - From: Shinobu Kawai [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Saturday, November 06, 2004 5:41 PM Subject: Re: Tomcat/5.5.3 with jdk1.5.0 DONOT run on port . Hi Amit, No I have opened it on firewall. Okay. Firewalls are for the client side. How about server side? Can you come online Yahoo/MSN chat. Sorry, I'm too much a security coward to do chat. ;) Again, How about the log? Best regards, -- Shinobu Kawai -- Shinobu Kawai [EMAIL PROTECTED] - 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] - 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]
Error 1067
I installed Tomcat 3.2.4 on a Windows 2000 Prof SP2 box,, specifiedthe correct JAVA_HOME and TOMCAT_home in the wrapper.properies andworkers.properties, and created an service, all according toinstructions found in this mail archive. But I cannot start theJakarta NT service; I get an a System Error 1067, " The processterminated unexpectedly".I double-checked the specified paths and environment variables, and itall seems right. I also tried it with J2SDK 1.2.2 and 1.3.1. The NTservice won't start in both cases.What did I miss here? It there an incompatibility of the NT serviceprogram with Windows 2000? Amit Jana Software Engineer Contact : 56792000 -5142 -- ""Obstacles are things a person sees when he takes his eyes off his goal" " *Disclaimer: This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message and are hereby notified that any disclosure, copying, or distribution of thismessage, or the taking of any action based on it, is strictly prohibited.*Visit us at http://www.mahindrabt.com
error 1067
I installed Tomcat 3.2.4 on a Windows 2000 Prof SP2 box,, specifiedthe correct JAVA_HOME and TOMCAT_home in the wrapper.properies andworkers.properties, and created an service, all according toinstructions found in this mail archive. But I cannot start theJakarta NT service; I get an a System Error 1067, " The processterminated unexpectedly".I double-checked the specified paths and environment variables, and itall seems right. I also tried it with J2SDK 1.2.2 and 1.3.1. The NTservice won't start in both cases.What did I miss here? It there an incompatibility of the NT serviceprogram with Windows 2000? Amit Jana Software Engineer Contact : 56792000 -5142 -- ""Obstacles are things a person sees when he takes his eyes off his goal" " *Disclaimer: This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message and are hereby notified that any disclosure, copying, or distribution of thismessage, or the taking of any action based on it, is strictly prohibited.*Visit us at http://www.mahindrabt.com
Re Re: ReRe: Need Help in Session Management !!!
Thanks Tim I didn't see that one.It was really a silly mistake. Now it worked. Thanks .. Amit Varshney Quoting [EMAIL PROTECTED]: Le lun 01/03/2004 à 08:58, Tim Kelly a écrit : There are missing parenthesis in the line: String user1=request.getUserPricipal.getName(); It should be String user1=request.getUserPricipal().getName(); Thats why you get the cannot resolve symbol :) Tim amit varshney wrote: it did not work. The following error message is displayed /usr/tomcat/webapps/intra/work/org/apache/jsp/accounts/jdbcmenu_jsp.java:61: cannot resolve symbol symbol: variable getUserPricipal location: interface javax.servlet.http.HttpServletRequest String user1=request.getUserPricipal.getName(); ^ . Quoting [EMAIL PROTECTED]: I think you can get the user name by getting the Principal object from request and then getting the name from it like String userName = request.getUserPrincipal().getName(); -Shanmugam- amit varshney wrote: I want to use tomcat user authentication in my application. for that i am using JDBCRealm.I have set the security constraint in the web.xml. So when a request for the restricted page comes a login page comes. But the problem is that it is submitting to the j_security_check and the textboxes are named j_username and j_password respectivley.I want session mangemant in my application. For that I need the login name of the person on my each page. How can I pass the username from login page to my page. is it possible to maintain session using tomcat user authentication or should i go for my own authentication and session management. Plz help me Thanks in advance Amit Varshney - Still single? Click here to find the perfect match. http://www.bharatmatrimony.com/cgi-bin/bmclicks1.cgi?141 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Still single? Click here to find the perfect match. http://www.bharatmatrimony.com/cgi-bin/bmclicks1.cgi?141 -- Tim Kelly, Director of Development Building Engines, Inc. Phone: 781-290-5300 Cell: 508-561-0985 www.buildingengines.com 275 Wyman Street Suite 11 Waltham MA 02451 Well, I think you also have a typo. It should be request.getUserPrincipal.getName(), not request.getUserPricipal.getName(). Notice the missing n in Principal. -- === Daniel Savard Consultation Informatique Daniel Savard 551, boul. Sir-Wilfrid-Laurier suite 105 Beloeil, (Québec) Canada J3G 4J1 Tél: (450) 467-8014 Internet: [EMAIL PROTECTED] === - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Still single? Click here to find the perfect match. http://www.bharatmatrimony.com/cgi-bin/bmclicks1.cgi?141
ReRe: Need Help in Session Management !!!
it did not work. The following error message is displayed /usr/tomcat/webapps/intra/work/org/apache/jsp/accounts/jdbcmenu_jsp.java:61: cannot resolve symbol symbol : variable getUserPricipal location: interface javax.servlet.http.HttpServletRequest String user1=request.getUserPricipal.getName(); ^ . Quoting [EMAIL PROTECTED]: I think you can get the user name by getting the Principal object from request and then getting the name from it like String userName = request.getUserPrincipal().getName(); -Shanmugam- amit varshney wrote: I want to use tomcat user authentication in my application. for that i am using JDBCRealm.I have set the security constraint in the web.xml. So when a request for the restricted page comes a login page comes. But the problem is that it is submitting to the j_security_check and the textboxes are named j_username and j_password respectivley.I want session mangemant in my application. For that I need the login name of the person on my each page. How can I pass the username from login page to my page. is it possible to maintain session using tomcat user authentication or should i go for my own authentication and session management. Plz help me Thanks in advance Amit Varshney - Still single? Click here to find the perfect match. http://www.bharatmatrimony.com/cgi-bin/bmclicks1.cgi?141 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Still single? Click here to find the perfect match. http://www.bharatmatrimony.com/cgi-bin/bmclicks1.cgi?141
Need Help in Session Management !!!
I want to use tomcat user authentication in my application. for that i am using JDBCRealm.I have set the security constraint in the web.xml. So when a request for the restricted page comes a login page comes. But the problem is that it is submitting to the j_security_check and the textboxes are named j_username and j_password respectivley.I want session mangemant in my application. For that I need the login name of the person on my each page. How can I pass the username from login page to my page. is it possible to maintain session using tomcat user authentication or should i go for my own authentication and session management. Plz help me Thanks in advance Amit Varshney - Still single? Click here to find the perfect match. http://www.bharatmatrimony.com/cgi-bin/bmclicks1.cgi?141
Problem at Tomcat Start up
I am working on Redhat Linux 9 I am using Oracle 9I for JdBc Realm for user authentication.the tomcat server could not started. I am getting the following error message in Catalina.out. Feb 11, 2004 4:25:54 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on port 8080 Feb 11, 2004 4:25:54 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 7197 ms Feb 11, 2004 4:25:55 PM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Feb 11, 2004 4:25:55 PM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/5.0.18 java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398) Caused by: java.lang.UnsatisfiedLinkError: no ocijdbc9 in java.library.path at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1491) at java.lang.Runtime.loadLibrary0(Runtime.java:788) at java.lang.System.loadLibrary(System.java:834) at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java) at oracle.jdbc.driver.OracleConnection.init(OracleConnection.java) at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java) at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java) at org.apache.catalina.realm.JDBCRealm.open(JDBCRealm.java:645) at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:709) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1117) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:518) at org.apache.catalina.core.StandardService.start(StandardService.java:519) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2345) at org.apache.catalina.startup.Catalina.start(Catalina.java:598) ... 6 more Feb 11, 2004 4:31:10 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on port 8080 Feb 11, 2004 4:31:11 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 6124 ms Feb 11, 2004 4:31:11 PM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Feb 11, 2004 4:31:11 PM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/5.0.18 java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398) Caused by: java.lang.UnsatisfiedLinkError: no ocijdbc9 in java.library.path at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1491) at java.lang.Runtime.loadLibrary0(Runtime.java:788) at java.lang.System.loadLibrary(System.java:834) at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java) at oracle.jdbc.driver.OracleConnection.init(OracleConnection.java) at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java) at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java) at org.apache.catalina.realm.JDBCRealm.open(JDBCRealm.java:645) at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:709) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1117) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:518) at org.apache.catalina.core.StandardService.start(StandardService.java:519) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2345) at org.apache.catalina.startup.Catalina.start(Catalina.java:598) ... 6 more Thanks in advance Amit - Still single? Click here to find the perfect match. http://www.bharatmatrimony.com/cgi-bin/bmclicks1.cgi?141 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
problem during creation of users using Tomcat Admin
I am using JDBCRealm to store the username and password in the Oracle database. The problem is that the user created through Admin are being stored in the Tomcat-users.xml instead in the database.How can I store thenm in the database? Thanx in advance Amit Varshney - Still single? Click here to find the perfect match. http://www.bharatmatrimony.com/cgi-bin/bmclicks1.cgi?141 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Help: problem using Tomcat Administrator
I am using JDBCRealm to store the username and password in the Oracle database. The problem is that the user created through Admin are being stored in the Tomcat-users.xml instead in the database.How can I store thenm in the database? Thanx in advance Amit Varshney - Still single? Click here to find the perfect match. http://www.bharatmatrimony.com/cgi-bin/bmclicks1.cgi?141 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat + Eclipse
I know that this is not the right place to ask this question but I will be grateful to receive ur replies. I am just a biginner to use eclipse. I have Tomcat plugin but i don't how to run Tomcat from within Eclipse.and how to run an application. Thanx in advance. Amit Varshney - Still single? Click here to find the perfect match. http://www.bharatmatrimony.com/cgi-bin/bmclicks1.cgi?141 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat+Eclipse
I know that this is not the right place to ask this question but I will be grateful to receive ur replies. I am just a biginner to use eclipse. I have Tomcat plugin but i don't how to run Tomcat from within Eclipse.and how to run an application. Thanx in advance. Amit Varshney - Still single? Click here to find the perfect match. http://www.bharatmatrimony.com/cgi-bin/bmclicks1.cgi?141 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
help: want to encrypt Tomcat user passwords
I am using jdbcrealm to store the username and passwords in the Oracle 9I database. But th passwords are stored as plain Texts. I want to encrypt the passwords. How can I do it? Is there any InBuilt feature in Tomcat? Thanx in advance Amit Varshney - Still single? Click here to find the perfect match. http://www.bharatmatrimony.com/cgi-bin/bmclicks1.cgi?141 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem using Tomcat Authentication
I am using the Jdbcrealm to authenticate the users.I want to use admin tool to create the users. But when I create the uses admin tool the user name and password r not being stored in the database rather they r being stored in /conf/Tomcat-users.xml. What should I do so that the user created through ADMIN Tool goes into the database? Thanx in advance Amit Varshney - Still single? Click here to find the perfect match. http://www.bharatmatrimony.com/cgi-bin/bmclicks1.cgi?141 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
help: want to encrypt Tomcat User's Pasword ?
I am using tomcat jdbcrealm to store the users and password in Oracle 9I database. But the passwords are stored as plain text. I want to encrypt passwords.How can I do this ? Is there any Inbuilt feature in Tomcat? Thanx in advance. Amit Varshney - Still single? Click here to find the perfect match. http://www.bharatmatrimony.com/cgi-bin/bmclicks1.cgi?141 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem using Tomcat User Authentication
I am working in JSP/Servlets on Windows XP. I want to use the Tomcat user Authentication in my web application. So using tomcat's JDBC Realm I have stored the username and passwords in the Oracle 9I Database. I want to use authentcation for accessing the different modules. so I have created the main page on which there r links to different modules. Using Security Costraint in the web.xml file I have made the access restricted.so When a user clicks on a link he is asked the user name and password. this works fine but the problem I am facing is that when i come back to the main page and click on some other link the login page is not displayed rather there is eror message that the access to the requested resource is denied is there any way to solve this problem? Tahnx in advance Amit Varshney - Still single? Click here to find the perfect match. http://www.bharatmatrimony.com/cgi-bin/bmclicks1.cgi?141 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problems with content type in the response header
Hi, I am using Tomcat 5.0.14 I have a servlet running under Tomcat. Tomcat seems to add character encoding charset=ISO-8859-1 to the content-type in response header. A third party program to which my servlet talks to, expects only application/octet-stream as the response content-type, however the error log shows the content-type to be application/octet-stream;charset=ISO-8859-1. I tried to set the content-type explicitly in my servlet using response.setContentType(application/octet-stream); but it still appends the charset=ISO-8859-1 part to it. Does any one know why this happens and how I can get rid of it? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Pl can anybody give me the solution
is not using struts framework) runs without any problem I searched google for the solution, but still didn't get can u pl tell me the work around regards Amit. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Apache and Tomcat on different machines using mod_jk (ajp13)
workers 32 [Thu Jun 12 10:38:40 2003] [jk_worker.c (228)]: build_worker_map, creating worker remote 33 [Thu Jun 12 10:38:40 2003] [jk_worker.c (148)]: Into wc_create_worker 34 [Thu Jun 12 10:38:40 2003] [jk_worker.c (162)]: wc_create_worker, about to create instance remote of ajp13 35 [Thu Jun 12 10:38:40 2003] [jk_ajp13_worker.c (108)]: Into ajp13_worker_factory 36 [Thu Jun 12 10:38:40 2003] [jk_worker.c (171)]: wc_create_worker, about to validate and init remote 37 [Thu Jun 12 10:38:40 2003] [jk_ajp_common.c (1343)]: Into jk_worker_t::validate 38 [Thu Jun 12 10:38:40 2003] [jk_ajp_common.c (1364)]: In jk_worker_t::validate for worker remote contact is mith2.umd.edu:8011 39 [Thu Jun 12 10:38:40 2003] [jk_ajp_common.c (1397)]: Into jk_worker_t::init 40 [Thu Jun 12 10:38:40 2003] [jk_ajp_common.c (1421)]: In jk_worker_t::init, setting socket timeout to 0 41 [Thu Jun 12 10:38:40 2003] [jk_worker.c (187)]: wc_create_worker, done 42 [Thu Jun 12 10:38:40 2003] [jk_worker.c (238)]: build_worker_map, removing old remote worker 43 [Thu Jun 12 10:38:40 2003] [jk_worker.c (250)]: build_worker_map, done 44 [Thu Jun 12 10:38:40 2003] [jk_worker.c (111)]: wc_open, done 1 45 [Thu Jun 12 10:39:44 2003] [jk_uri_worker_map.c (460)]: Into jk_uri_worker_map_t::map_uri_to_worker 46 [Thu Jun 12 10:39:44 2003] [jk_uri_worker_map.c (477)]: Attempting to map URI '/eada' 47 [Thu Jun 12 10:39:44 2003] [jk_uri_worker_map.c (599)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match Can any one help and suggest what is wrong that i am doing. I am stuck. Any pointers would be helpful. regards Amit -- Amit Kumar kumar!at!glue.umd.edu MITH - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache and Tomcat on different machines using mod_jk (ajp13)
Giorgio Ponza and All, I thought worker.list is only the name of the workers thus remote, how ever the worker.remote.type has been defined as ajp13. Also when you say ServerName machineB.com should be defined in httpd.conf, but in this case the webapp eada is not defined as a virtualhost, and httpd.conf on machineA already defines ServerName machineA.com , perhaps i am not understanding can you clarify please.Should i define another ServerName machineB.com in httpd.conf of machineA. To clarify the problem from my end, i want to map eada webapp on machineB (http://machineB.com:8080/eada) to apache on machineA as ( http://machineA.com/eada ) regards Amit On Thu, 2003-06-12 at 10:59, Giorgio Ponza wrote: worker.list = remote what is that? is not worker.list=ajp13 ? in the tomcat machine the machineB.com must be resolved (usually by hosts file) This same name machineB.com must be in your apache httpd.conf defining the ServerName Giorgio Ponza - Original Message - From: Amit Kumar [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, June 12, 2003 4:51 PM Subject: Apache and Tomcat on different machines using mod_jk (ajp13) Hi I am hoping to get some pointers and help. I am trying to setup connection between apache on machine A to tomcat on machine B. Here is the setup Machine A (Apache http) Machine B (tomcat ajp13 listening on port number 8011) Case I I have been able to install and use mod_jk.so to connect to tomcat on the same machine (Machine A), and there is no problem. Case II How ever i am not able to connect to tomcat on Machine B ( i understand it is possible ? ). The workers.properties for this case on Machine A is worker.remote.port=8011 worker.remote.host=machineB.com worker.remote.type=ajp13 The relevant entries in httpd.conf on Machine A are ##START LoadModule jk_module libexec/mod_jk.so AddModule mod_jk.c JkWorkersFile /usr/local/tomcat/conf/jk/workers.properties JkLogFile /usr/local/apache/logs/mod_jk.log JkLogLevel debug JkLogStampFormat [%a %b %d %H:%M:%S %Y] JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories JkRequestLogFormat %w %V %T JkMount /eada/* remote JkMount /eada/*.jsp remote ##END I have checked: On Machine B ajp13 is listening on 8011 (Connector is defined in server.xml) and that i can access http://machineB:8080/eada How ever i get 404 messages from apache (not from tomcat) when i try to access http://machineA/eada/index.jsp The mod_jk.log (machine A) does not show any error or info how ever in debug mode shows the following ( line 16 it says remote worker contact is machineB.com:8011). Line 46 it tries to match uri /eada/* how ever at this step if i understand correctly remote worker should kick in and communicate with machineB (is that right) ? 1 [Thu Jun 12 10:38:40 2003] [jk_uri_worker_map.c (172)]: Into jk_uri_worker_map_t::uri_worker_map_alloc 2 [Thu Jun 12 10:38:40 2003] [jk_uri_worker_map.c (375)]: Into jk_uri_worker_map_t::uri_worker_map_open 3 [Thu Jun 12 10:38:40 2003] [jk_uri_worker_map.c (396)]: jk_uri_worker_map_t::uri_worker_map_open, rule map size is 2 4 [Thu Jun 12 10:38:40 2003] [jk_uri_worker_map.c (321)]: Into jk_uri_worker_map_t::uri_worker_map_open, match rule /eada/=remote was added 5 [Thu Jun 12 10:38:40 2003] [jk_uri_worker_map.c (299)]: Into jk_uri_worker_map_t::uri_worker_map_open, suffix rule /eada/.jsp=remote was added 6 [Thu Jun 12 10:38:40 2003] [jk_uri_worker_map.c (408)]: Into jk_uri_worker_map_t::uri_worker_map_open, there are 2 rules 7 [Thu Jun 12 10:38:40 2003] [jk_uri_worker_map.c (422)]: jk_uri_worker_map_t::uri_worker_map_open, done 8 [Thu Jun 12 10:38:40 2003] [jk_worker.c (88)]: Into wc_open 9 [Thu Jun 12 10:38:40 2003] [jk_worker.c (222)]: Into build_worker_map, creating 1 workers 10 [Thu Jun 12 10:38:40 2003] [jk_worker.c (228)]: build_worker_map, creating worker remote 11 [Thu Jun 12 10:38:40 2003] [jk_worker.c (148)]: Into wc_create_worker 12 [Thu Jun 12 10:38:40 2003] [jk_worker.c (162)]: wc_create_worker, about to create instance remote of ajp13 13 [Thu Jun 12 10:38:40 2003] [jk_ajp13_worker.c (108)]: Into ajp13_worker_factory 14 [Thu Jun 12 10:38:40 2003] [jk_worker.c (171)]: wc_create_worker, about to validate and init remote 15 [Thu Jun 12 10:38:40 2003] [jk_ajp_common.c (1343)]: Into jk_worker_t::validate 16 [Thu Jun 12 10:38:40 2003] [jk_ajp_common.c (1364)]: In jk_worker_t::validate for worker remote contact is machineB.com:8011 17 [Thu Jun 12 10:38:40 2003] [jk_ajp_common.c (1397)]: Into jk_worker_t::init 18 [Thu Jun 12 10:38:40 2003] [jk_ajp_common.c (1421)]: In jk_worker_t::init, setting socket timeout to 0 19 [Thu Jun 12 10:38:40 2003] [jk_worker.c
In process with IIS and external application
Hi, I am a real newbie to Tomcat and its world. I have an application that has Tomcat 3.3 bundled with itself. If I run Tomcat that is bundled from its location, I can access the application from the browser. In short the application is running outprocess. (http://localhost:8080/costume/index.html) What I want is to have the application run from IIS, that is an inprocess application. What I have done is following 1. Downloaded the isapi_redirector.dll and copied it to the location TOMCAT_HOME/conf/ 2. Created a new context in the server.xml name 'costume'. 3. Created a worker.properties and uriworkermap.properties file with following entries. workers.properties file entries. workers.tomcat_home=c:\jakarta workers.java_home=d:\j2sdk1.4.0_02 ps=\ worker.list=inprocess # Defining a worker named inprocess and of type jni worker.inprocess.type=jni # Additional class path components. worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)tomcat.jar worker.inprocess.class_path=d:\j2sdk1.4.0_02\lib\tools.jar worker.inprocess.class_path=c:\costume\webserver\config worker.inprocess.class_path=D:\Program Files\Microsoft SQL Server 2000 Driver for JDBC\lib\msbase.jar worker.inprocess.class_path=D:\Program Files\Microsoft SQL Server 2000 Driver for JDBC\lib\msutil.jar worker.inprocess.class_path=D:\Program Files\Microsoft SQL Server 2000 Driver for JDBC\lib\mssqlserver.jar worker.inprocess.class_path=E:\oracle\ora90\jdbc\lib\classes111.zip worker.inprocess.class_path=E:\oracle\ora90\jdbc\lib\nls_charset11.zip worker.inprocess.cmd_line=start worker.inprocess.jvm_lib=D:\j2sdk1.4.0_02\jre\bin\client\jvm.dll worker.inprocess.stdout=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stdout worker.inprocess.stderr=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stderr uriworkermap.properties file entries default.worker=inprocess /admin=$(default.worker) /admin/*=$(default.worker) /examples=$(default.worker) /examples/*=$(default.worker) /costume*=inprocess /costume/*=inprocess 3. Modified the registry to have following entries. [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi Redirector\1.0] extension_uri=/tomcat/isapi_redirect.dll log_file=C:\\tomcat 4.1\\logs\\jk_iis_redirect.log log_level=debug worker_file=C:\\tomcat 4.1\\conf\\jk\\workers.properties worker_mount_file=C:\\tomcat 4.1\\conf\\uriworkermap.properties 4. Created a new virtual directory 'jakarta', installed a new filter, into IIS and got that filter up and running. 5. Restarted Tomcat 4.1.24 and then restarted IIS Now when I check the following urls, none of them works 1. http://localhost/examples/jsp/index.html 2. http://localhost/costume/index.html alternatively these works 1. http://localhost:8080/examples/jsp/index.html 2. http://localhost:8080/costume/index.html What I get is 'page not found' error. Now pls. help me as to get my application running from Tomcat. Regards Amit Bhargava - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Application not run on jakarta-tomcat-4.1.12
When I run my application on jakarta-tomcat-3.2.1, it works properly but when it is run on jakarta-tomcat-4.1.12, the following errors will come. HTTP Status 404 - /administration/servlet/Login type Status report message /administration/servlet/Login description The requested resource (/administration/servlet/Login) is not available. The sstucture of my web.xml file is ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN http://java.sun.com/j2ee/dtds/web-app_2_2.dtd; web-app servlet servlet-nameInitHostInformation/servlet-name servlet-classInitHostInformation/servlet-class init-param param-nameConnUrl/param-name param-valuejdbc:mysql://NODE18:3306/LearnITy/param-value /init-param init-param param-namenameOrIp/param-name param-valueNODE18:8080/administration/param-value /init-param init-param param-nameDBUserID/param-name param-valueroot/param-value /init-param init-param param-nameDBPassword/param-name param-value/param-value /init-param init-param param-nameResourcePath/param-name param-valueNODE18:8080/administration/servlets//param-value /init-param init-param param-nameAdminPath/param-name param-valueC:\temp/param-value /init-param init-param param-nameServerDocumentPath/param-name param-valueC:\jakarta-tomcat-3.2.1\webapps\Contents\/param-value /init-param init-param param-nameUtil/param-name param-valueC:\jakarta-tomcat-3.2.1\webapps\administration\servlets/param-value /init-param init-param param-nameServerDocumentPathEngine/param-name param-value/Contents//param-value /init-param load-on-startup -2147483646 /load-on-startup /servlet welcome-file-list welcome-filelogin.html/welcome-file /welcome-file-list /web-app What is the remedy. With thanks and regrads, Amit _ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
Tomcat and Crystal Reports (Urgent)
Hi All!! Has any one been able to deploy crystal reports on Tomcat server. If yes, please let me know how you have done it. Thanks A Lot Amit Lonkar Want to sell your car? advertise on Yahoo Autos Classifieds. It's Free!! visit http://in.autos.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Tomcat and Crystal Reports (Urgent)
Hi They have included a JavaViewerBean, whichc show the report in an applet, but no documentation available on this. amit --- Randy Secrist [EMAIL PROTECTED] wrote: The last version of Crystal reports I used was version 7.0. I didn't think they had any java support at that time. Has this changed? Randy - Original Message - From: Amit Lonkar [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, August 28, 2002 9:32 PM Subject: Tomcat and Crystal Reports (Urgent) Hi All!! Has any one been able to deploy crystal reports on Tomcat server. If yes, please let me know how you have done it. Thanks A Lot Amit Lonkar Want to sell your car? advertise on Yahoo Autos Classifieds. It's Free!! visit http://in.autos.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Want to sell your car? advertise on Yahoo Autos Classifieds. It's Free!! visit http://in.autos.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Tomcat processes
Hi is it possible to increases the number of processes tomcat can handle. If yes the How? Thanks Amit Lonkar Want to sell your car? advertise on Yahoo Autos Classifieds. It's Free!! visit http://in.autos.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
new to tomcat
hello I am very new to Tomcat4.0. I have successfully installed tomcat4.0 on my machine but can not able to run simple HelloWorld.jsp file. I have put it in folder C:\Tomcat4.0\webaaps\TestJSP\Helloworld.jsp On brower .. http://localhost:8080/TestJSP/Helloworld.jsp My O.S is windows 2000 professional i have JDK1.3 installed. Can anyone help me Regards Amit Luktuke
Re: new to tomcat
Hello Ben.. That was my type error only.. I have created HelloWorld.jsp compile it When i put it in ROOT folder of Tomcat4.0 view in browse .. http://localhost:8080/HelloWorld.jsp it works. But when i create TESTJSP directory under Tomcat4.0 - webapps --- TESTJSP --- HelloWorld.jsp try to view in browser .. http://localhost:8080/TESTJSP/HelloWorld.jsp it gives error saying HTTP 404 error .. requested resources are not available.. Can u tell me what type of error is it? regards Amit Luktuke - Original Message - From: Ben Walding [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Saturday, August 10, 2002 1:40 PM Subject: Re: new to tomcat Possibly : You should have called the dir webapps not webaaps Although this is probably just a typo in your email :) Amit Luktuke wrote: hello I am very new to Tomcat4.0. I have successfully installed tomcat4.0 on my machine but can not able to run simple HelloWorld.jsp file. I have put it in folder C:\Tomcat4.0\webaaps\TestJSP\Helloworld.jsp webapps On brower .. http://localhost:8080/TestJSP/Helloworld.jsp My O.S is windows 2000 professional i have JDK1.3 installed. Can anyone help me Regards Amit Luktuke -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: new to tomcat
Hello Marius Thank u very much.. I am developing web application from scratch using tomcat/stuts... will need ur help from time to time.. regards Amit - Original Message - From: Marius Urbietis [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Saturday, August 10, 2002 4:51 PM Subject: Re: new to tomcat Amit Luktuke wrote: hello I am very new to Tomcat4.0. I have successfully installed tomcat4.0 on my machine but can not able to run simple HelloWorld.jsp file. I have put it in folder C:\Tomcat4.0\webaaps\TestJSP\Helloworld.jsp You must register your application in file c:\Tomcat4.0\conf\server.xml by adding such line: Context path=/TestJSP docBase=TestJSP debug=0 reloadable=true / or read this manual: http://www.onjava.com/pub/a/onjava/2001/04/19/tomcat.html On brower .. http://localhost:8080/TestJSP/Helloworld.jsp My O.S is windows 2000 professional i have JDK1.3 installed. Can anyone help me Regards Amit Luktuke -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: just one edit.
Are you talking about persistent data? I.e. Are you talking about database concurrency? -Original Message- From: Emilio Miranda [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 21 May 2002 5:39 AM To: Tomcat Users List Subject: RE: just one edit. Hi, really apreciate your help. but What I mean is a case in web. It is: administrator A login to a site and modify data of some user at the same time administrator B are modifying the data of the same user. I would like some message for administrator A, something like a sorry you cant change these data right now . So I want to know if Tomcat could help me in some way Thanks a lot! -Mensaje original- De: Mike Jackson [mailto:[EMAIL PROTECTED]] Enviado el: lunes, 20 de mayo de 2002 13:32 Para: Tomcat Users List Asunto: RE: just one edit. You'll probably want to synchronize on a static object I think. Something like this: public class WhatEver { protected static Object lock = new Object(); public void doStuff() { sychronized( lock ) { // do protected stuff here } } } --mikej -=- mike jackson [EMAIL PROTECTED] -Original Message- From: Emilio Miranda [mailto:[EMAIL PROTECTED]] Sent: Monday, May 20, 2002 11:15 AM To: Tomcat Users List Subject: just one edit. Hello, I am sorry if that is an offtopic. How can I be sure that only one user is changing some data at the time? could Tomcat help me on that? I mean , supouse that one user change a name an another try to change at the same time. Thanks a lot! -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Out Of Memory Error
Hi All, I am generating a report using servlets which has 7 records. While processing it gives an OutOfMemory Error. Can any one tell me how and where to add memory? My RAM is 512MB URGENT!!! Thanks Amit Lonkar Everything you always wanted to know about cars and bikes,now at: http://in.autos.yahoo.com/cricket/tracker.html -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Web Service Deployment
Hi All, Sorry for the previous question which i asked about web services deployment. Actually i din't go through the build.xml file, now i got the solution. thanks, Amit Kaushik Hi All, Facing problem regarding the Environment variables. Couldn't understand the meaning of ${jwsdp.home}, that's why it's giving me the following error when i am trying to deploy a web service. ant build Buildfile: build.xml init: prepare: build: [javac] Compiling 1 source file to /opt/jwsdp-1_0-ea2/docs/tutorial/examples/gs/${jwsdp.home}/docs/tutorial/exa mples/gs/build/WEB-INF/classes BUILD FAILED /opt/jwsdp-1_0-ea2/docs/tutorial/examples/gs/build.xml:57: /opt/jwsdp-1_0-ea2/docs/tutorial/examples/gs/${jwsdp.home}/common/lib not found. Ant help will be appretiated. thanks regards, Amit Kaushik -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Web Service Deployment
Hi All, Facing problem regarding the Environment variables. Couldn't understand the meaning of ${jwsdp.home}, that's why it's giving me the following error when i am trying to deploy a web service. ant build Buildfile: build.xml init: prepare: build: [javac] Compiling 1 source file to /opt/jwsdp-1_0-ea2/docs/tutorial/examples/gs/${jwsdp.home}/docs/tutorial/exa mples/gs/build/WEB-INF/classes BUILD FAILED /opt/jwsdp-1_0-ea2/docs/tutorial/examples/gs/build.xml:57: /opt/jwsdp-1_0-ea2/docs/tutorial/examples/gs/${jwsdp.home}/common/lib not found. Ant help will be appretiated. thanks regards, Amit Kaushik -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Squeezing performance out of Tomcat
One thing that is totally off left field, but may help... We had a similar lag problem, - on one of our clients 100mb network with a HP switch, we were getting lags on images etc. The problem was that it would go to the central server to resolve all IP's and especially domain names. Thus we simply excluded (specifically - do not bypass all local addresses) all the relevant addresses. In internet explorer - connection| Lan Settings | Advanced As I said... after investigating for hours, if not days for trying to get tomcat performance ... this is what I came down to. -Original Message- From: Pascal Forget [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 6 February 2002 2:24 PM To: [EMAIL PROTECTED] Subject: Squeezing performance out of Tomcat Hi, I am getting long response times from a JSP served by Apache1.3.23 - mod_jk - Tomcat 4.02 B2. The page always takes less than 100 ms to generate, but still it takes more than 3 seconds for a browser (running on the local 10MBit network) to get the result. The html page that is generated is less than 1kb. Can someone offer tips on how we can squeeze more speed out of Apache-Tomcat? The problem is not due to excessive logging, as the various logs are minuscule and don't grow much in size with each new request. Any help or suggestions would be greatly appreciated. Thanks, Pascal Forget -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Need to refresh .jsp page around five times before it worksproperly
We are using tomcat 4 and we get a blank page if any attribute coming into the page is null... We are using tomcat standalone... I have no idea how to fix it... but I was about to post a question... Any body know why?? -Original Message- From: David Morsberger [mailto:[EMAIL PROTECTED]] Sent: Monday, 24 December 2001 9:36 AM To: Tomcat Users List Subject: Re: Need to refresh .jsp page around five times before it worksproperly We have a similar problem with Tomcat 3.2 and 3.3. The web page is sometimes blank (no error) after the JSP is compiled. If the page is refreshed / reloaded then the page is properly displayed. From: Brandon Cruz [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] Date: Sun, 23 Dec 2001 14:03:21 -0600 To: Tomcat Users List [EMAIL PROTECTED] Subject: Need to refresh .jsp page around five times before it works properly I am using tomcat 3.2.4, Ajp13, and apache 1.3. Every so often, when I go to one of the .jsp pages on my site, I get a 500, internal server error. There is no info posted to any log, and I need to hit refresh on the browser window a bunch of times before it finally comes up correctly. Does anyone know what causes this condition? I was using tomcat 3.2.1 with Ajp12 before, and never had this problem. Is it Ajp13 that causes this? Thanks in advance for any help! Brandon -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Micael mac Grene: DataSource and Pooled Connection
I am not 100% sure, but I am pretty sure that the PostgreSQL (7.1.2) JDBC driver does not yet support Pooled DataSource connections. That is what they have said on the PgSql JDBC list, but please correct me if I am wrong as we would love to use pooled datasource connections.. I believe Postgres 7.2 ( JDBC driver) might support it... Amit -Original Message- From: Micael Padraig Og mac Grene [mailto:[EMAIL PROTECTED]] Sent: Friday, 14 December 2001 9:41 AM To: Tomcat Users List Subject: Micael mac Grene: DataSource and Pooled Connection At 02:13 PM 12/13/01 -0800, you wrote: On Thu, 13 Dec 2001, christophe marcourt wrote: Date: Thu, 13 Dec 2001 21:07:47 +0100 From: christophe marcourt [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: DataSource and Pooled Connection I have a stupid question ? in the JNDI tomcat how to, it says : The J2EE Platform Specification requires J2EE Application Servers to make available a DataSource implementation (that is, a connection pool for JDBC connections) for this purpose. Tomcat 4 offers exactly the same support Do I understand right ? A DataSource retrieve by JNDI in tomcat 4.0.1 is a Pooled Connection ? It's actually a javax.sql.DataSource implementation. Christophe Craig First, I think I speak for thousands in thanking you for your contributions. Despite the flame wars, I hope you guys and gals know how much we appreciate your efforts. Second, could you expand on what Tomcat puts into a pooled connection for javax.sql.DataSource? I have been using Postgresql and getting a pooled connection with JBoss and Tomcat and really do not understand what the hay is going on. Is that from JBoss? I am not getting a pooled connection from Postgresql, even though I though I was. I so far have just been using Tomcat 3.2.3, I think it is, and JBoss and am using a standalone application thus far with Tomcat. But, I definely am getting a pooled connection according to ps aux on my box. I am getting an initial pool of five conncetions, I think. Maybe six. Thanx, -- micael -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: SERVLET CACHING PROBLEM IN TOMCAT- SNODX
That does not necessarily solve the problem. We were running Tomcat 3.1/3.2 for close to 12 months with reloadable=true set, and yet tomcat would not reload class files without restarting... My recommendation would be to upgrade to tomcat4, will solve all your problems... the upgrade is not hard. Amit Kelkar -Original Message- From: Volker Leidl [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 12 December 2001 9:46 PM To: Tomcat Users List Subject: RE: SERVLET CACHING PROBLEM IN TOMCAT- SNODX Add reloadable=true to your webb apps context tag in server.xml. Volker. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 12, 2001 9:01 AM To: [EMAIL PROTECTED] Subject: SERVLET CACHING PROBLEM IN TOMCAT- SNODX Greetings, I am facing a servlet caching problem in Tomcat. I create a servlet .java file compile it and put it in the webapps folder of the TOMCAT_HOME folder. I start the Tomcat server and invoke the servlet via http://localhost:TomCat port no/servlet/Servlet name in Netscpe. It gets invoked. All is well uptil now. Problem comes when I make changes in the .java file, recompile it, place it in the same TOMCAT_HOME/webapps folder, and again invoke it in Netscape via http://localhost:Tomcat Port No/servlet/Servlet name. The ALTERED sevlet does NOT get invoked, the old servlet is getting invoked. This must mean Tomcat is caching its sevlets somewhere, and it is picking up the servlets from that cache, ignoring the actual .class servlet file in the webapps folder. Maybe the cache gets cleared everytime Tomcat restarts, but I find it inconvenient to frequently restart Tomcat. So what is the one time solution to this servlet caching problem, WITHOUT HAVING TO REGULARLY RESTART TOMCAT? Will a startup servlet running continuosly alongwith Tomcat, performing the servlet cache cleaning operation- regularly say every 10 seconds- solve the problem? If so then what should be the coding of the servlet? Should I use classes of the java.lang.ref package- PhantomReference e.t.c- ( http://java.sun.com/products/jdk/1.2/docs/api/java/lang/ref/packag e-summary.html )? Or can some changes in server.xml do the trick? I have Apache 1.3.19, Tomcat 3.23 installed, configured and running on RedHat Linux 6.2 platform. Waiting for an early response. Thanks in advance. SNODX -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Web Apps
If you just type http://hostname:port (e.g. http://localhost:8080) it will bring up the default tomcat screen... In Tomcat documentation there is a number of tutes for application developers Amit -Original Message- From: Duncan Smith [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 12 December 2001 8:37 PM To: [EMAIL PROTECTED] Subject: Web Apps Can anybody please point me in the direction for a good help/tutorial file for editing and adding Web Apps in Tomcat 4? Cheers Duncan -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Why do i have to keep on restarting Tomcat?
Not every database API supports connection pooling... Take Postgres for example... The JDBC driver for 7.1.2/7.2 does not support connection pooling... -Original Message- From: Micael Padraig Og mac Grene [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 12 December 2001 1:33 AM To: Tomcat Users List Subject: RE: Why do i have to keep on restarting Tomcat? At 01:00 PM 12/11/01 +, you wrote: Does anybody know where i can get a connection pool called DbBroker from www.javaexchange.com, as it appears as though javaexchange no longer exists Just wondering if you know that you get a pool automatically when you go to javax.sql.*. -micael -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Tomcat shutdown error
Try using ./startup.sh.. You may have a environment variables problem -Original Message- From: Matt Sales [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 21 November 2001 9:15 AM To: Tomcat Users List Subject: Tomcat shutdown error Hello, I've recently installed Tomcat-4.0.1 and am running it on RH 7.2 with apache 1.3.22. Occasionally, when I shut down tomcat using bin/catalina.sh stop, I get the following exception and stack trace dump: Catalina.stop: java.net.ConnectException: Connection refused java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:320) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:133) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:120) at java.net.Socket.init(Socket.java:273) at java.net.Socket.init(Socket.java:100) at org.apache.catalina.startup.Catalina.stop(Catalina.java:826) at org.apache.catalina.startup.Catalina.execute(Catalina.java:683) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243) I don't know if I've got it configured incorrectly or what, but does anyone know what might be causing this? It's like it's not even running, even though it's in the process list via ps -A. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: REPOST: NEED HELP URGENT:: internet explorer nullifies session on open new window
Hi Geoff, Thanks for all the reponses... Here is the latest I have on the issue: * There seems to be a issue with IE 6, with can be fixed up with some options * The session seems to keep alive if we use our full domain name (postmodern.com.au), but not with a local address such as 192.168.x.x But seems to be causing some error once in a while (tests still in progress) * IE 5 has no problems with local address or full name * Your session example worked with local address with session surviving. I have no idea why it would resolve with the full domain and not the local address... but either way seems very very weird. Do you have any theories on why a session might nullify in such a way?? Thanks, Amit -Original Message- From: Geoff Howard [mailto:[EMAIL PROTECTED]] Sent: Thursday, 15 November 2001 2:21 AM To: 'Amit Kelkar'; '[EMAIL PROTECTED]' Subject: RE: REPOST: NEED HELP URGENT:: internet explorer nullifies session on open new window I only meant to ask if you were using the default Tomcat sessions, or perhaps some customized implementation via an app server, etc. I'm not entirely clear from your description exactly what is going on, but if you have the examples context installed somewhere, try this: - Go to /examples/servlet/SessionExample - note the session id you've been assigned. - In the IE browser address line type in javascript:void(window.open('/examples/servlet/SessionExample')); - In the new window that opens, note that the session id is identical - Close the new window. - Refresh the original page. - Note the session id remains active. I'm a little suspicious that opening a window like this is not entirely the same as placing the window.open directly into the page -- you may want to try modifying the default SessionExample.java to include a window.open for testing. Does this represent a simplified version of the situation you have, but with opposite behavior? If so, then I'd be suspicious that something else in your code is really the culprit. If not, can you modify the above example to clarify what is going on in the background. Geoff -Original Message- From: Amit Kelkar [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 13, 2001 8:38 PM To: Geoff Howard Subject: RE: REPOST: NEED HELP URGENT:: internet explorer nullifies session on open new window I'm not quite sure I understand what you mean. I am using the default tomcat4 settings, so I am using cookies I guess... Amit -Original Message- From: Geoff Howard [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 14 November 2001 4:24 AM To: 'Amit Kelkar' Subject: RE: REPOST: NEED HELP URGENT:: internet explorer nullifies session on open new window How are you implementing your sessions? Geoff -Original Message- From: Amit Kelkar [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 13, 2001 10:01 AM To: Tomcat Users List Subject: REPOST: NEED HELP URGENT:: internet explorer nullifies session on open new window -Original Message- From: Amit Kelkar [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 13 November 2001 6:41 PM To: Tomcat Users List Subject: internet explorer nullifies session on open new window The application we are coding requires a new window to be opened. This new window may just contain a JavaScript calendar or a JSP page (dispatched by a servlet). We have been using Internet Explorer 5 till recently to run the application and this has been fine. But we recently upgraded to I.E. 5.5 and 6.0. In both of the new versions, when a new window is opened and then closed, the session in the original window gets nullified. For example, there are places where I need to see a calendar, so I open this calendar in a new window, I use the calendar, then I close the calendar window. I then press a button (in the main window) to go to another page in my application, where all the session values are now displayed as null. Subsequent system error statements show that the session is indeed null. I am not sure this is a tomcat problem or a IE problem (probably a IE problem), but was wondering if anybody has experienced anything similar and if they have solved the problem... Note: I am using tomcat 4.01 Thanks much in advance, Amit Kelkar -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
REPOST: NEED HELP URGENT:: internet explorer nullifies session on open new window
-Original Message- From: Amit Kelkar [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 13 November 2001 6:41 PM To: Tomcat Users List Subject: internet explorer nullifies session on open new window The application we are coding requires a new window to be opened. This new window may just contain a JavaScript calendar or a JSP page (dispatched by a servlet). We have been using Internet Explorer 5 till recently to run the application and this has been fine. But we recently upgraded to I.E. 5.5 and 6.0. In both of the new versions, when a new window is opened and then closed, the session in the original window gets nullified. For example, there are places where I need to see a calendar, so I open this calendar in a new window, I use the calendar, then I close the calendar window. I then press a button (in the main window) to go to another page in my application, where all the session values are now displayed as null. Subsequent system error statements show that the session is indeed null. I am not sure this is a tomcat problem or a IE problem (probably a IE problem), but was wondering if anybody has experienced anything similar and if they have solved the problem... Note: I am using tomcat 4.01 Thanks much in advance, Amit Kelkar -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: REPOST: NEED HELP URGENT:: internet explorer nullifies session on open new window
Thanks Jim for your reply... It does not happen when the application is accessed for the first time ever by IE, but every time after that. If I try to repair the installation, it again works for the first time but never again. I have not idea why it is happening. Is there any possibility it could the application or tomcat?? This is very bad, as it was not happening before and we are in final testing, hoping to deploy soon!!! Amit -Original Message- From: Jim Urban [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 14 November 2001 2:21 AM To: Tomcat Users List Subject: RE: REPOST: NEED HELP URGENT:: internet explorer nullifies session on open new window Our application does the same thing (openning child browser windows and closing them) and we have no problems with IE 5.5. We have not tried I.E. 6.0 yet, so I can't comment on that. We are running Tomcat 4.0 on Win NT and 2K. Jim -Original Message- From: Amit Kelkar [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 13, 2001 9:01 AM To: Tomcat Users List Subject: REPOST: NEED HELP URGENT:: internet explorer nullifies session on open new window -Original Message- From: Amit Kelkar [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 13 November 2001 6:41 PM To: Tomcat Users List Subject: internet explorer nullifies session on open new window The application we are coding requires a new window to be opened. This new window may just contain a JavaScript calendar or a JSP page (dispatched by a servlet). We have been using Internet Explorer 5 till recently to run the application and this has been fine. But we recently upgraded to I.E. 5.5 and 6.0. In both of the new versions, when a new window is opened and then closed, the session in the original window gets nullified. For example, there are places where I need to see a calendar, so I open this calendar in a new window, I use the calendar, then I close the calendar window. I then press a button (in the main window) to go to another page in my application, where all the session values are now displayed as null. Subsequent system error statements show that the session is indeed null. I am not sure this is a tomcat problem or a IE problem (probably a IE problem), but was wondering if anybody has experienced anything similar and if they have solved the problem... Note: I am using tomcat 4.01 Thanks much in advance, Amit Kelkar -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
internet explorer nullifies session on open new window
The application we are coding requires a new window to be opened. This new window may just contain a JavaScript calendar or a JSP page (dispatched by a servlet). We have been using Internet Explorer 5 till recently to run the application and this has been fine. But we recently upgraded to I.E. 5.5 and 6.0. In both of the new versions, when a new window is opened and then closed, the session in the original window gets nullified. For example, there are places where I need to see a calendar, so I open this calendar in a new window, I use the calendar, then I close the calendar window. I then press a button (in the main window) to go to another page in my application, where all the session values are now displayed as null. Subsequent system error statements show that the session is indeed null. I am not sure this is a tomcat problem or a IE problem (probably a IE problem), but was wondering if anybody has experienced anything similar and if they have solved the problem... Note: I am using tomcat 4.01 Thanks much in advance, Amit Kelkar -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Tomcat 4.0 and clustering
Hi, We have developed a Media Component Archival system , which stores everything in XML format. For this application we are using Apache 1.3.20 w/ Tomcat 3.2.3 combination. We are also using search engine to index our components. We are interested to make our application *distributed* to support considerably large number of components archival , indexing and retrieval.Can you please put some light on following issues ? 1) Does Tomcat 4 support distributed webapps or clustering ? 2) Does Tomcat 4 support load balancing ? 3) Can we achieve this by creating multiple Tomcat workers on different machines ? Thanks Regards, -Amit.
New to Tomcat -- Logging
Hey everyone, Was wondering if there was a way within Tomcat to keep a track of all IP's coming into the site. There is a product called WebTrends which I wanted to run against the Tomcat logs to give me some reports. I cant seem to figure out how to get better loggin from Tomcat though. Anyone have any ideas/suggestions? I figure I gotta do something with web.xml but the point is I have no clue. Any input would be greatly appreciated. Thanks!! Amit Anand
Re: JDBC
Hi, When Tomcat is installed as a service , it requires that all the library jars should be mapped in the wrapper.properties file with following line : wrapper.class_path=$(wrapper.tomcat_home)\lib\xxx.jar where xxx.jar is the required jar file. Try to remove the old service. Modify the file and retry. I hope it will work. Good Luck ! -Amit. Hi, experts! I met a problem when I tried to make JDBC connection by using the code as follows. The program work well when I use startup.bat to start tomcat. But I cannot use it when I start Tomcat as a service. Yet I can still use all the other JSP sameples, it tells me the URL is not valid or does not exist. I promise the ODBC data source is there and I can use it when I start tomcat using Startup.bat So can some body tell me the reason. public class PersistentConnection { private static Connection theConnection; public static Connection getConnection() {return theConnection;} public void setDbClass() { try { Class.forName(sun.jdbc.odbc.JdbcOdbcDriver).newInstance(); } catch (Exception e) { System.err.println(Error loading class); e.printStackTrace(System.err); } } public void setConnection() { try { theConnection = DriverManager.getConnection(jdbc:odbc:NorthWind,username,password); }catch (Exception e) { System.err.println(Error setting DBUrl); e.printStackTrace(System.err); } } public void shutDown() { try { theConnection.close(); } catch (Exception e) {} } }
Logging
Hello all, I am a new user to Tomcat and I needed help with probably a very small thing for you all. I would like a to keep a track of all IP's coming into my machine, all pages visited, etc. I am going to use WebTrends to analyze the logging information and put into report form. The question I have is, how would I go about doing this. The two logs I have seen, jasper.log and servlet.log do not give me any real good statistics. Remember I am not a developer so I have no clue how to do this. I am running Tomcat 3.2.3 on Solaris 8. Thank you very much for your help!! Amit Anand [EMAIL PROTECTED]
how to upload JSP based website uing Tomcat
Hi all please guide me how can i upload my website on net which is based on JSP using tomcat with windows 2000. thanks Amit
help regarding jakarta-tomcat-4.0-b5
dear sir please send info reagrding server and web.xml files; how to configure them for jsp, class files and servlets. thanking you regards amit Do You Yahoo!? Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free @yahoo.ie address at http://mail.yahoo.ie
RE: How to avoid of displaying the homepage file path
Is everyone getting this email multiple number of times? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 21, 2001 2:06 PM To: [EMAIL PROTECTED] Subject: Re: How to avoid of displaying the homepage file path Messages with Subject ´Homepage´ are not accepted here (Homepage.HTML.vbs)
Questions about Tomcat Cookies
Hi, I have used tomcat as standalone and w/ apache also. In my applications , session trackingis working fine. To the best of my knowledge ,Tomcat does session tracking by combining useof 1) Cookies 2) URL re-writing. My browser alertsme , when tomcat tries to set the cookie. But when i see cookies folder of my Win NT machine (C:\Winnt\profiles\Administrator\cookies) , I didn'tfound any cookie by name 'JSESSIONID' MY QUESTIONS ARE: 1) If the cookies are not found in the directory , where are they ? 2) If I disable cookies in the browser , still session tracking will work ? 3) Whatexactcombination does tomcat uses of cookies+URL re-writing 4) If Tomcat is used with Apache , then which one sets the cookies ? TIA Regards, -Amit. Sansui Software Pvt. Ltd.
Re: j_security_check
include folllowing in ur mod_jk.conf (if using tomcat standalone) : JkMount /name of context/j_security_check * ajp13 or in httpd.conf if with apache. -Amit. - Original Message - From: P.Miller [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 05, 2001 1:13 PM Subject: AUTH: j_security_check Hi, I tried the FORM-authentification in Tomcat 3.2.1: login.jsp: form method=POST action=j_security_check Username: input type=text name=j_usernamebr Password: input type=password name=j_passwordbr br input type=submit value=login name=j_security_check /form I get the correct Form but when I press 'submit', I allways get the error: URL j_security_check not found So I searched for a java-class or a method inside a class which is called 'j_security_check' but found only a CONSTANT with this name and not method or class-file. What's the meaning of this URL and where should I declare it that TOMCAT can find it? Many thanks for your help, Peter
Taglib error in Tomcat3.2.2
Hi All, I'm using Tomcat 3.2.2(Release version)Sun J2SE JDKv1.3 My JAVA_HOME , TOMCAT_HOME Env. variables are properly set. Classpath contains : servlet.jar,jasper.jar from TOMCAT_HOME\LIB and tools.jar from JAVA_HOME\LIB Also I hv put the required jar file of taglib in the LIB directory of the application. Now when I try to invoke a page which uses a taglib , then I get following Exception. I would be grateful if someone would like to put some light the matter. ** javax.servlet.ServletException: javax/servlet/jsp/tagext/TagExtraInfo at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:508) Root cause: java.lang.NoClassDefFoundError: javax/servlet/jsp/tagext/TagExtraInfo ** Thanks Regards, -Amit E-Mail:[EMAIL PROTECTED] Sansui Software Pvt. Ltd.,Pune
Debugging servlets in Tomcat using Visual Cafe Expert 4.0 Edition
Hi, I followed the instructions provided at http://people.netscape.com/chanezon/tech/java/tomcat/debug_jsp_in_cafe.htm http://people.netscape.com/chanezon/tech/java/tomcat/debug_jsp_in_cafe.htm to debug servlets in Visual Cafe Expert 4.0. I am using tomcat 3.2.1 I get following error when I provide -start as the argument to org.apache.tomcat.startup.Tomcat org.apache.tomcat.startup.Tomcat.class successfully loaded Usage: java org.apache.tomcat.startup.Tomcat {options} Options are: -config file (or -f file) Use this file instead of server.xml -help (or help)Show this usage report -home dir (or -h dir) Use this directory as tomcat.home -stop Shut down currently running Tomcat When I don't specify any argument it fails with org.apache.tomcat.startup.Tomcat.class successfully loaded Exception raised: java.lang.ClassNotFoundException: org/apache/tomcat/util/xml/XmlMapper You may press F5 to continue with default exception handling) Please help. Thanks Amit Kumar
RE: admin console ???
Ajit, Set trusted=true password=password for Context path=/admin in server.xml and add user name=user-id password=password roles=admin/ to tomcat-users.xml Thanks Amit -Original Message- From: Ajit Bhat [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 31, 2001 3:19 AM To: [EMAIL PROTECTED] Subject: admin console ??? 31/5/2001 hi all, I would like to know as to how to install and setup admin console on any client machine for tomcat server 3.2. I tried accessing the link Context Admin in Tomcat Administration Tools section, but it asks for username password which i do not know. how do i proceed ? regards, Ajit
Multiple authentication types for single webapp ?
Hi, Is it possible to implement the Multiple authentication types (BASIC and FORM based) for a single webapp ? TIA Regards, -Amit
Access to web.xml
Hi, I'm running a site based on JSP , using tomcat 3.2.1 and Apache 1.3.12 on Windows. With this reference (1) During run time , can a JSP page from *same* web application context can read web.xml file of my web application (which will be located at TOMCAT_HOME\webapps\myapp\web-inf\web.xml) ? (2) During run time , can a Java application (running on the same machine) class can read web.xml file of my web application (which will be located at TOMCAT_HOME\webapps\myapp\web-inf\web.xml) ? TIA Regards, -Amit.
Where can I get mod_webapps ?
Hi, I hv installed Tomcat 4.0 Beta3.I'm also runningApache Server 1.3.12 on my Win NT m/c. I would like to couple Tomcat with Apache using mod_webapps.(Similar to mod_jk in Tomcat 3.2 or earlier). But in the tomcat binary distribution , there is no mod_webapps. Can anyone tell me where can I get it ? ( I won't prefer to rebuild tomcat from source) With Regards,-AmitE-Mail:[EMAIL PROTECTED]Sansui Software Pvt. Ltd.,Pune
query??
I am a tomcat user my o.s is windows 95 .I would like my friend to view my project files through the internetso i capture the IP address using "winipcfg" and ask my friend to type the url as http://IP ADDRESS/ but there comes an error saying cannot connect to server... do i need to make some extra settings to enable this facilityhelp me out please amit. _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Re: Form Based Authentication with Encryption
Thanks Andrew, But,I'm using XML to store my whole data (this is requirement of the product) We are not at all using any database. So with this regard,would u like to comment something more ? Also can usuggest some resource for :creating my own cutomized "authentication module" ? Thanks in advance. Regards, -Amit. - Original Message - From: Andrew Robson To: [EMAIL PROTECTED] Sent: Wednesday, March 07, 2001 3:37 PM Subject: Re: Form Based Authentication with Encryption Hi Amit, I'm using 3.2 so details may vary.What you want to do is write your own authentication module.Easier than it sounds. Just take a copy of the authentication module youare using (SimpleRealm?) to use as a base for your own code. Add inthe functionality you want, compile and include in TOMCAT_HOME/lib/webserver.jarEdit server.xml to use your custom authentication module.Also, I'd recommend you look at JDBCRealm so that you can store usernamesand passwords in a database. Quite apart from the other advantages you maythen be able to take advantage of the db's encryption facilities (e.g. MySql'sPassword function) and save yourself the bother of writing your own.Hope this helpsAndrewOn Wed, 07 Mar 2001, you wrote: Hi All, I'm using tomcat 4.0 Beta1. I successfully tested out the form based authentication provided with tomcat. But , the main problem with it is : It uses plain text to store users,roles and passwords in the "tomcat-users.xml" file placed in TOMCAT_HOME\conf. Is there any plugin for tomcat to encrypt the passwords stored in this file ? or is there any round-about to do so. Thanking you in advance. With Regards, -Amit E-Mail:[EMAIL PROTECTED] Sansui Software Pvt. Ltd.,Pune
Form Based Authentication with Encryption
Hi All, I'm using tomcat 4.0 Beta1. I successfully tested out theform based authentication provided with tomcat. But , the main problem with it is : It uses plain text to store users,roles and passwords in the "tomcat-users.xml" file placed inTOMCAT_HOME\conf. Is there any plugin fortomcat to encrypt the passwords stored in thisfile ? or is there any round-about to do so. Thanking you in advance. With Regards,-AmitE-Mail:[EMAIL PROTECTED]Sansui Software Pvt. Ltd.,Pune
Subscribe Me
- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Subscribe Me
- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Web-site security
Hi all, How can i specify the default page for my site hosted on Tomcat on NT. I want to specify a particular file (say index.html) where all new sessions are redirected. If a user types a valid url path to my site, specifying any oher file on my site, he/she should be rediected to the index.html page. Only when he is logged on, should he be able to access the other pages on my site.
Re: Web-site security
Thanks Michael, But I was thinking there might be a configuration file that does this. I think that would be a neater way of doing things than including an inlude file in all the pages. Can I write a servlet to which all my requests are directed before being passed on to the respective pages? Thanks, - Original Message - From: "Michael Wentzel" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, 16 January 2001 6:11 PM Subject: RE: Web-site security How can i specify the default page for my site hosted on Tomcat on NT. I want to specify a particular file (say index.html) where all new sessions are redirected. If a user types a valid url path to my site, specifying any oher file on my site, he/she should be rediected to the index.html page. Only when he is logged on, should he be able to access the other pages on my site. I'm sure there are probably other ways of handling this but we have a common include file that consists of session checking code and redirects to login.jsp if session is invalid, and this file is included on all pages in our context. --- Michael Wentzel Software Developer A HREF="http://www.aswethink.com"Software As We Think/A A HREF="mailto:[EMAIL PROTECTED]"Michael Wentzel/A - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Web-site security
Okie will look into it Thanks - Original Message - From: "Michael Wentzel" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, 16 January 2001 7:04 PM Subject: RE: Web-site security But I was thinking there might be a configuration file that does this. I think that would be a neater way of doing things than including an inlude file in all the pages. I'm not sure on this one... I don't know of any configurations. Can I write a servlet to which all my requests are directed before being passed on to the respective pages? The only way I can think of doing a servlet would be more messy than the include because all requests would have to go through the servlet first. Another thing is try checking out org.apache.tomcat.request.SessionInterceptor (referred to in server.xml). I haven't looked at this class at all but you might be able to extend it, and using properties files do whatever session checking you need to do before the standard requestInterceptor stuff gets done. Adding a generic block of code and using properties files would allow for changing of session checking without having to recompile. --- Michael Wentzel Software Developer A HREF="http://www.aswethink.com"Software As We Think/A A HREF="mailto:[EMAIL PROTECTED]"Michael Wentzel/A - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
How to be sure that ajpv13 is being used ?
I have gotten Apache 1.3.14 and Tomcat 3.2.1 to work. I'm not sure if ajpv13 protocol is being used; how can I be sure ? I have added the following lines at the end of my httpd.conf. # Amit Added include D:/Tomcat/conf/mod_jk.conf-auto # Use ajpv13 protocol thru the ajp13 adapter # Root context mounts for Tomcat JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 # The following line mounts all JSP files and the /servlet/ uri to tomcat JkMount /examples/servlet/* ajp13 JkMount /examples/*.jsp ajp13 # The following line mounts all JSP files and the /servlet/ uri to tomcat JkMount /admin/servlet/* ajp13 JkMount /admin/*.jsp ajp13 # The following line mounts all JSP files and the /servlet/ uri to tomcat JkMount /amitTest/servlet/* ajp13 JkMount /amitTest/*.jsp ajp13 # The following line mounts all JSP files and the /servlet/ uri to tomcat JkMount /test/servlet/* ajp13 JkMount /test/*.jsp ajp13 Do the above settings in httpd.conf override the settings in the mod_jk.conf-auto file ? Thanksamit
Can we use IBM HTTP Server ?
Hi All, (1) Can we use IBM's HTTP Server (which is based on Apache) along with Tomcat ? (2) If so , where can I get documentation for the integraion of it with Tomcat ? (3) Can anyone guide me about the SSL implementation using IBM's HTTP Server. Any type of Ref/Book/URL is highly wel-come. With Regards, -Amit E-Mail:[EMAIL PROTECTED] Sansui Software Pvt. Ltd. (India)
Please Help
Hi All,I hope someone will help me to make it. (Hopefully..) System Details of my machine:- Tomcat 3.2.1 Apache 1.3.14 for WINDOWS mod_ssl 2.7.1 Open SSL 0.9.6 WINDOWS NT 4.0 (SP5)I'm interested to implement SSL w/Apache with Digital Certificate.For doing this could u please guide me on following issues :-Although,there is a good support for mod_ssl and Open SSL for ApacheMost of it is available for UNIX / Linux platforms only.I'm interested to get help forWINDOWS(unfortunately..).(1) Apart from User Guides for mod-ssl and OpenSSL can u suggest some good URLs or any other Ref. for configuring Apache for SSL and using Digital Certificate ?(2) Is it necessary to implement SSL for Tomcat(Application Server) also for implementing SSL w/Apache (Web Server) ?(3) How can we exchange contents of session across HTTP and HTTPS in above implementation ? Are any changes required in Tomcat for this ( like using different context for secure area of site ) ?(4) Is it essential to create a virtual host on Apache for using SSL (forhosting that part of the site , to which we want to assign secure connection) ?(5) Can we establish SSL without using Digital Certificate ? In that casehow reliable it is ?I hope , Iwon't get disappointed. Thanks a lot in advance.Regards,-Amit.[EMAIL PROTECTED]Sansui Software Pvt. Ltd.India.- Original Message -From: Amund ElstadTo: '[EMAIL PROTECTED]'Sent: Thursday, December 21, 2000 7:17 PMSubject: url-encoding does not work in Apache+Tomcat while SSL is enabledHello,We use Tomcat 3.2.1 as a backend to Apache 1.3. Apache serves both http andhttps (mod_ssl) connections and communicates with Tomcat using the ajp13(mod_jk) protocol. Our servers run NT/2000.Problem: Tomcat's session tracking under SSL does not work without cookies.Running the same application on a non-secure connection works fine bothwithand without cookies, but under SSL Tomcat's URL-encoding fails.mod_jk.dll is built with plain 1.3 API, and Apache warns that it should berecompiled with EAPI enabled. Will a new mod_jk.dll built with EAPI fix theproblem, and if so is there a pre-built version available somewhere ? Or isthere another solution to the problem ?thanks in advance and best regardsamund
need help(chat server)
hellow Friends i have a problem in chat server project i have a two classes frist chatEntry.java and second chatRoom.java i have use a method in ChatRoom.java class public void addChatEntry(ChatEntry entry) { push(entry); } when i compile it after compiling of ChatEntry.java i got error class ChatEntry not found. please write to me why it is so. i am using jdk1.2 tomcat 3.2.1 thanks. Amit _ Chat with your friends as soon as they come online. Get Rediff Bol at http://bol.rediff.com
need help to run tomcat
hello friends i am using tomcat 3.2 first time and i face a problem to run tomcat3.2 . after setting JAVA_HOME TOMCAT_HOME when i run startup.bat file it show me the message that cannot find file 'c:\jdk1.3;\bin\java (or one of components). Check to ensure the path and filename are correct and that all requried libraries are avaiable. please give me the solution of this problem. thanks Amit Madan _ Chat with your friends as soon as they come online. Get Rediff Bol at http://bol.rediff.com
Help needed for SSL
HiAll,I'm using Tomcat as an Application server with Apache for an ecom site.I want to implement SSL to secure my online transactions from Apacheserver to client browser.With this reference , could you please comment on following issues:1) How I can accept data in a JSP , from a simple HTML form which has been submited via SSL ?2) Is it necessary to implement SSL support in Tomcat ***also for above mentioned type of security ?3) Is it needed to use JSSE (Java Secure Socket Extension) for implementing this ?4) Can I access same session before and after SSL-enabled JSP page ?5) How to install Digital Certificates with Apache/Tomcat ?I would be thnakful to you if you coluld please guide me about the same.If possible any kind of resource / book / URL are higly welcome.Regards,-AmitE-Mail:[EMAIL PROTECTED]Sansui Software Pvt. Ltd., India