RE: Preload of servlet does not work with Tomcat 5.5.15
hi; i have a servlet with tag and no mapping is defined and it is working with tomcat 5.0.28 http://asahin.net -Original Message- From: Markus Schönhaber [mailto:[EMAIL PROTECTED] Sent: Monday, April 24, 2006 9:57 AM To: Tomcat Users List Subject: Re: Preload of servlet does not work with Tomcat 5.5.15 Tom Bednarz wrote: > I defined the following in the web.xml of my web application: > > > MTWInit > ch.smartsol.mtweb.servlets.MTWInit > > MailConfiguration > /WEB-INF/config/Mail.properties > > 1 > > > This servlet is NOT loaded at all. This is true for the following > situations: > > - when running in Eclipse (with MyEclipse IDE) debugger, the breakpoints > in the servlets init() function are NEVER hit > - when running tomcat as service (under Windows) no log entries are > written which means init() is never called > > Any idea what could be wrong?? WAG: maybe you did overload GenericServlet#init instead of overriding it. But I doubt that anyone can tell for sure with so little information provided. Regards mks - 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: Preload of servlet does not work with Tomcat 5.5.15
hi, have you enabled reload="true" in tag in conf/server.xml? -- Manivannan Palanichamy http://geocities.com/manivannan57 -Original Message- From: Tom Bednarz <[EMAIL PROTECTED]> To: Tomcat Users List Sent: Mon, 24 Apr 2006 08:19:10 +0200 Subject: Preload of servlet does not work with Tomcat 5.5.15 I have a silly problem: I defined the following in the web.xml of my web application: MTWInit ch.smartsol.mtweb.servlets.MTWInit MailConfiguration /WEB-INF/config/Mail.properties 1 This servlet is NOT loaded at all. This is true for the following situations: - when running in Eclipse (with MyEclipse IDE) debugger, the breakpoints in the servlets init() function are NEVER hit - when running tomcat as service (under Windows) no log entries are written which means init() is never called Any idea what could be wrong?? Tom - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection.
Hiding error logging when using JK loadbalancer for transparent production builds
Hi, I've started to use JK's loadbalancer behaviour to hide production builds from our users, so that if I am going to build new functionality, I bring up a 2nd Tomcat which is a copy of the 1st, and then bring the 1st down for the build. However, when a build is complete, I do not run 2 Tomcats for resource consumption reasons, as they are both on the same server right now. This works very nicely, except that when just 1 Tomcat is running (which is the case 95% of the time) JK is (rightly) logging the fact it cannot find the other Tomcat declared in the JK workers file (the one used for temporarily serving requests whilst the main Tomcat is built to). However, this is going to generate quite a substantial amount of logging. I can't see a way to classify the logging statement any better than error because, technically, it is an error. I could change my JK log level to fatal (does it have fatal?) but then I would not see all errors I am interested in. A solution would also be to use a flag in the worker definitions that let me indicate whether connectivity issues should be ignored, but that's not going to happen unless the JK team acknowledge the usefulness of using JK loadbalancer for the strategy I use it for (i.e transparent production builds). Does anyone have further thoughts on this, is this just a log file I am going to have to live with and control? The issue of course on Windows is that I cannot just GZIP this logfile and create another empty one since the JK DLL has it locked, so I have to restart IIS to kill the log file off which defeats the transparent build strategy. Cheers, Allistair [Mon Apr 24 09:25:25 2006] [info] ajp_send_request::jk_ajp_common.c (1186): Error connecting to the Tomcat process. [Mon Apr 24 09:25:25 2006] [info] ajp_service::jk_ajp_common.c (1665): Sending request to tomcat failed, recoverable operation attempt=2 [Mon Apr 24 09:25:25 2006] [error] ajp_service::jk_ajp_common.c (1673): Error connecting to tomcat. Tomcat is probably not started or is listening on the wrong port. worker=tomcat2 failed errno = 61 [Mon Apr 24 09:25:25 2006] [error] start_response::jk_isapi_plugin.c (475): HSE_REQ_SEND_RESPONSE_HEADER failed [Mon Apr 24 09:25:25 2006] [error] write::jk_isapi_plugin.c (565): WriteClient failed with 2746 [Mon Apr 24 09:25:25 2006] [info] ajp_process_callback::jk_ajp_common.c (1322): Connection aborted or network problems [Mon Apr 24 09:25:25 2006] [error] ajp_service::jk_ajp_common.c (1659): Client connection aborted or network problems --- QAS Ltd. Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- Disclaimer: The information contained within this e-mail is confidential and may be privileged. This email is intended solely for the named recipient only; if you are not authorised you must not disclose, copy, distribute, or retain this message or any part of it. If you have received this message in error please contact the sender at once so that we may take the appropriate action and avoid troubling you further. Any views expressed in this message are those of the individual sender. QAS Limited has the right lawfully to record, monitor and inspect messages between its employees and any third party. Your messages shall be subject to such lawful supervision as QAS Limited deems to be necessary in order to protect its information, its interests and its reputation. Whilst all efforts are made to safeguard Inbound and Outbound emails, QAS Limited cannot guarantee that attachments are virus free or compatible with your systems and does not accept any liability in respect of viruses or computer problems experienced. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat flood
Hi i have developed a web application with .jsp running on tomcat 5.5 with a oracle database. I 300 max user ; The application is running well but time in time the the pages be very slow to get the response of the request sending by the users (for me the oracle is too slow to response for tomcat request) but when i execute the same request on sql*plus; it fast to get reply. Also where the application user still witing for the reply thy dont stop clicking on the same link in order to get the reply for there first and same request application response (flooding) ; which cause the tomcat flood. Can u help to do an action for anti flooding,and DBCP Also optimising my server to get minim connection with the oracle server regards -- NS
[ZySPAM] - [ZySPAM] - Re: [ZySPAM] - [ZySPAM] - Re: Preload of servlet does not work with Tomcat 5.5.15
Context.xml ??? Mine seems to have only default entry (I never touched it). I thought it is being used only if configuration changes should be loaded WITHOUT stopping the server. I do not require this, and with previous versions of tomcat this file was inexistent. Here is what I have in my context.xml WEB-INF/web.xml What should I add here?? I thought the only relevant thing is 1 Which should tell Tomcat to load this servlet first. I have the Struts action servlet put on position 2. Tom [EMAIL PROTECTED] wrote: hi, have you enabled reload="true" in tag in conf/server.xml? -- Manivannan Palanichamy http://geocities.com/manivannan57 -Original Message- From: Tom Bednarz <[EMAIL PROTECTED]> To: Tomcat Users List Sent: Mon, 24 Apr 2006 08:19:10 +0200 Subject: Preload of servlet does not work with Tomcat 5.5.15 I have a silly problem: I defined the following in the web.xml of my web application: MTWInit ch.smartsol.mtweb.servlets.MTWInit MailConfiguration /WEB-INF/config/Mail.properties 1 This servlet is NOT loaded at all. This is true for the following situations: - when running in Eclipse (with MyEclipse IDE) debugger, the breakpoints in the servlets init() function are NEVER hit - when running tomcat as service (under Windows) no log entries are written which means init() is never called Any idea what could be wrong?? Tom - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 5.5 + JMX
Hi, I need a help for doing an implementation of JMX within Tomcat. In fact, i use Tomcat 5.5 to host my application. I have problems with performance and would like to implement JMX into my application in order to get some manageble informations. Can you help my on how to implements a JMX solution with my "legacy" system ? I hope made myself clear. Thank you, Thiago de Almeida - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Help with embedded server
Hi, On a standard binary tomcat distribution I can deploy JSP's without putting in any entries into the web.xml but when deployed on the embedded server I get 404's until I add: org.apache.jsp.index_jsp org.apache.jsp.index_jsp org.apache.jsp.index_jsp /index.jsp Then it works. Is there a way to configure the embedded server to work like the binary distro so that I don't have to add entries to my web xml file for every JSP? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Preload of servlet does not work with Tomcat 5.5.15
Markus Schönhaber wrote: Tom Bednarz wrote: I defined the following in the web.xml of my web application: MTWInit ch.smartsol.mtweb.servlets.MTWInit MailConfiguration /WEB-INF/config/Mail.properties 1 This servlet is NOT loaded at all. This is true for the following situations: - when running in Eclipse (with MyEclipse IDE) debugger, the breakpoints in the servlets init() function are NEVER hit - when running tomcat as service (under Windows) no log entries are written which means init() is never called Any idea what could be wrong?? WAG: maybe you did overload GenericServlet#init instead of overriding it. But I doubt that anyone can tell for sure with so little information provided. Regards mks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Don't know what you mean with that. Here is part of my servlet code: public final class MTWInit extends HttpServlet implements Runnable { ... public void init(ServletConfig config) throws ServletException { super.init(config); configureLog4J(); mAppLog.info("Running init()"); this.m_Application = config.getServletContext(); m_Application.setAttribute("MTWInit", this); configureMail(config.getInitParameter("MailConfiguration")); // // Creating and starting various threads // /* CfgThread = new Thread(this); CfgThread.start(); mAppLog.info("Config thread started!"); */ } . } I also added reloadable= true in the context tag but it did NOT change anything, this servlet is NEVER loaded! Tom - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Preload of servlet does not work with Tomcat 5.5.15
Tom Bednarz wrote: > Markus Schönhaber wrote: > >WAG: maybe you did overload GenericServlet#init instead of overriding it. > > But I doubt that anyone can tell for sure with so little information > > provided. > > Don't know what you mean with that. Here is part of my servlet code: > > public final class MTWInit > extends HttpServlet > implements Runnable > { > ... > public void init(ServletConfig config) throws ServletException > { > super.init(config); [...] OK, you did override GenericServlet#init(ServletConfig). I created a minimal webapp using the web.xml snippet from your OP (classname adjusted) and a servlet containing this init-method: @Override public void init(ServletConfig config) throws ServletException { super.init(config); System.out.println("init called"); } On server startup or redeployment of the webapp, "init called" will appear in catalina.out. In other words: it works just fine for me. The only other obious reason I can think of why it might not work for you is that you got the classname/packetname wrong in your web.xml's element. But you have undoubtedly already checked that. So I'm out of ideas. Regards mks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Howto activate JSSESupport in Apache-mod_jk-Tomcat 5.5.x
Hello, I want to use SSLSessions in Tomcat 5.5.x and wonder how I can activate the JSSE-Support and SSLSession-Handling for Tomcat? In the source-code I see some classes in the connectors-directory that seem to prepare the catalina-engine for the use of SSLSessions with and without X509Certificate-Support. In fact, I want to be able to use something like request.getSSLSession() instead of request.getSession() and that SSLSession should work the same way as the StandardSession that catalina uses per default. But how do I activate and use this feature in an actual installation? I think it must be done in server.xml. Is there some documentation about that? Did someone do it himself and successfully? Thank you in advance, Oliver Schönwald - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: using digester from within a servlet
Frank W. Zammetti [mailto:[EMAIL PROTECTED] writes ... >It looks to me like your ObjectCreate rule is incorrect... >I believe the class you reference must be the fully-qualified name. That set me on the right track - thank you. My ObjectCreate rule was actually OK because I specified the Class itself, not the name of the class as a String: digester.addObjectCreate("config/xdb-config", XdbConfig.class); The other problem is that I did not do this: digester.setUseContextClssLoader(true); to tell Digester to use the right class loader. Once Digester was able to find all of the objects it had to create, it continued to blow up on my SetNext rules. The reason here was exactly what you said. I was not specifying the fully-qualified name. the addSetNext() I am using looks like: digester.addSetNext(String, String, String) /* works only if class name is fully qualified */ I wouldn't have had this problem if there were one of these: digester.addSetNext(String, String, Class) /* does not exist */ so I might recommend adding that to Digester some time in the future. Cool :-) --Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re[4]: Tomcat works on Linux localhost but not in the network
check iptables configuration documentation in RHEL site On 4/24/06, Corobitsyn Roman <[EMAIL PROTECTED]> wrote: > This is Linux question, but not Tomcat > I don`t know how to set up firewall in RH > See this link > http://www.redhat.com/docs/manuals/enterprise/RHEL-3-Manual/security-guide/ch-fw.html > Hope, this can help > > jl> yeap . > jl> I disable the firewall and I'm getting response, but > jl> do you know how to enable the firewall and allow > jl> access to the port 8080 only > jl> I'm running RedHat EE r3 > jl> Thanks > > jl> --- Corobitsyn Roman <[EMAIL PROTECTED]> wrote: > > >> You must check your network and firewall settings. > >> > >> Try to use iptables > >> E.g. in SUSE can help SUSEFirewall2 (edit > >> /etc/sysconfig/SuSEFirewall2 > >> file) > >> > >> jl> Thanks > >> jl> but I was able to access the port 80 for > >> apache, > >> jl> and I got tha welcome page ... > >> > >> jl> where can I check if that is the problem .??? > >> > >> jl> Thanks again > >> > >> > >> > >> jl> --- Corobitsyn Roman <[EMAIL PROTECTED]> wrote: > >> > >> >> Perhaps, you must to set up your firewall > >> >> > >> >> jl> I recently installed Tomcat on a Linux > >> Machine > >> >> when I > >> >> jl> tried "localhost:8080" I get the welcome page > >> >> nut if I > >> >> jl> call the same from another computer on the > >> >> network i > >> >> jl> don 't get any response at all > >> >> > >> >> jl> Plase any help will be welcome... > >> >> > >> >> jl> > >> >> > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Vineesh Kumar Software Engineer ISS-RnD Department HCL infosystems Ltd Cochin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat works on Linux localhost but not in the network
Here's a little more reading on IPTABLES if that's the firewall methodology you are using. Grant josemanuel lopez wrote: yeap . I disable the firewall and I'm getting response, but do you know how to enable the firewall and allow access to the port 8080 only I'm running RedHat EE r3 Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5.5.17 500 error
Looks like the "webwork" context is not deployed on the other machine. Although you might have copied the app over, the context is not deployed under Tomcat. Try to view your list of contexts deployed by using this URL and logging into an account that has a manager role defined. http://localhost:8080/manager/html/list hth On 4/24/06, Jack Wang <[EMAIL PROTECTED]> wrote: > >I hava a web app running well in tomcat 5.5.16 yesterday, but when I > copy the app in another > machine, I met following error. > > "org.apache.jasper.JasperException: File "/webwork" not found" when I use > webwork in jsp. > "org.apache.jasper.JasperException: /index.jsp(22,4) File > "/common/cn/myMenu.jsp" not found" when > I use <%@ include ...%> tag in jsp. > > This is the error message > -- > HTTP Status 500 - > > > type Exception report > message > description The server encountered an internal error () that prevented it > from fulfilling this > request. > exception > org.apache.jasper.JasperException: File "/webwork" not found >org.apache.jasper.servlet.JspServletWrapper.handleJspException( > JspServletWrapper.java:510) >org.apache.jasper.servlet.JspServletWrapper.service( > JspServletWrapper.java:375) >org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java > :314) >org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) >javax.servlet.http.HttpServlet.service(HttpServlet.java:802) > root cause > org.apache.jasper.JasperException: File "/webwork" not found >org.apache.jasper.compiler.DefaultErrorHandler.jspError( > DefaultErrorHandler.java:50) >org.apache.jasper.compiler.ErrorDispatcher.dispatch( > ErrorDispatcher.java:407) >org.apache.jasper.compiler.ErrorDispatcher.jspError( > ErrorDispatcher.java:114) >org.apache.jasper.compiler.TagLibraryInfoImpl.( > TagLibraryInfoImpl.java:159) >org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java > :423) >org.apache.jasper.compiler.Parser.parseDirective(Parser.java:492) >org.apache.jasper.compiler.Parser.parseElements(Parser.java:1552) >org.apache.jasper.compiler.Parser.parse(Parser.java:126) >org.apache.jasper.compiler.ParserController.doParse( > ParserController.java:211) >org.apache.jasper.compiler.ParserController.parse( > ParserController.java:100) >org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:155) >org.apache.jasper.compiler.Compiler.compile(Compiler.java:295) >org.apache.jasper.compiler.Compiler.compile(Compiler.java:276) >org.apache.jasper.compiler.Compiler.compile(Compiler.java:264) >org.apache.jasper.JspCompilationContext.compile( > JspCompilationContext.java:563) >org.apache.jasper.servlet.JspServletWrapper.service( > JspServletWrapper.java:303) >org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java > :314) >org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) >javax.servlet.http.HttpServlet.service(HttpServlet.java:802) > note The full stack trace of the root cause is available in the Apache > Tomcat/5.5.17 logs. > > > Apache Tomcat/5.5.17 > > And this is web.xml > -- > > > http://java.sun.com/xml/ns/j2ee"; >xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; >xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee > http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"; >version="2.4"> > >Newsystem application wj 2005-2006 (Spring WebWork > Hibernate App) > > >contextConfigLocation > > > /WEB-INF/classes/com/exbizex/applicationContext/applicationContext.xml, > > /WEB-INF/classes/com/exbizex/applicationContext/applicationTestContext.xml, > > /WEB-INF/classes/com/exbizex/applicationContext/standardJspApplicationContext.xml, > > /WEB-INF/classes/com/exbizex/applicationContext/applicationValueListContext.xml > > > > >log4jConfigLocation > > /WEB-INF/classes/log4j.properties > > > >webAppRootKey >centerApplication > > > > > org.springframework.web.context.ContextLoaderListener > > > > > com.atlassian.xwork.ext.ResolverSetupServletContextListener > > > > > > org.apache.axis.transport.http.AxisHTTPSessionListener > > > >cEncoding >com.exbizex.center.filter.SetCharacterEncodingFilter > > >encoding >GBK > > > > >jEncoding >com.exbizex.center.filter.SetCharacterEncodingFilter > > >encoding >shift_jis > > > > >centerAdminFilter >com.exbizex.center.filter.CenterAdminFilter > > >
Re: Help with embedded server
This is just a guess, but I think you might want/need to add a servlet mapping for all JSPs somewhere. I do not have this problem. It must be a configuration problem. On 4/24/06, Trevor Miller <[EMAIL PROTECTED]> wrote: > > Hi, > > On a standard binary tomcat distribution I can deploy JSP's without > putting in any entries into the web.xml but when deployed on the > embedded server I get 404's until I add: > > >org.apache.jsp.index_jsp >org.apache.jsp.index_jsp > > > >org.apache.jsp.index_jsp >/index.jsp > > > Then it works. > > Is there a way to configure the embedded server to work like the > binary distro so that I don't have to add entries to my web xml file > for every JSP? > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Marc Farrow
HTML Pages in Tomcat????
Hi folks, real dumb question here. I have an application running on Tomcat... All my HTML Pages are built on the fly by the Java Programs EXCEPT, on each screen I have a HELP button, that is an Anchor Basically opens up a new browser with the Help information on it These are Static Pages, built once. Um, where do I put those Html pages in the Tomcat heirarchy The directory structure looks like this... jakarta-tomcat-5/jakarta-tomcat-5.0.28/webapps/imagescan <--- Imagescan is the name of my Application under the Imagescan folder I have: ../imagescan/images/ ../imagescan/web-inf/classes/ Sorry if this is a dumb question Thank-You Mike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: HTML Pages in Tomcat????
/imagescan/anywhere/you/like E.g /imagescan/help -Original Message- From: Michael McQuade [mailto:[EMAIL PROTECTED] Sent: 02 May 2004 14:49 To: Tomcat Users List Subject: HTML Pages in Tomcat Hi folks, real dumb question here. I have an application running on Tomcat... All my HTML Pages are built on the fly by the Java Programs EXCEPT, on each screen I have a HELP button, that is an Anchor Basically opens up a new browser with the Help information on it These are Static Pages, built once. Um, where do I put those Html pages in the Tomcat heirarchy The directory structure looks like this... jakarta-tomcat-5/jakarta-tomcat-5.0.28/webapps/imagescan <--- Imagescan is the name of my Application under the Imagescan folder I have: ../imagescan/images/ ../imagescan/web-inf/classes/ Sorry if this is a dumb question Thank-You Mike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- QAS Ltd. Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- Disclaimer: The information contained within this e-mail is confidential and may be privileged. This email is intended solely for the named recipient only; if you are not authorised you must not disclose, copy, distribute, or retain this message or any part of it. If you have received this message in error please contact the sender at once so that we may take the appropriate action and avoid troubling you further. Any views expressed in this message are those of the individual sender. QAS Limited has the right lawfully to record, monitor and inspect messages between its employees and any third party. Your messages shall be subject to such lawful supervision as QAS Limited deems to be necessary in order to protect its information, its interests and its reputation. Whilst all efforts are made to safeguard Inbound and Outbound emails, QAS Limited cannot guarantee that attachments are virus free or compatible with your systems and does not accept any liability in respect of viruses or computer problems experienced. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat Security....
Dumb question number 2 of the Day folks I'm a programmer, not real swift on the security side of life I have Tomcat (5.0.28)running on my server at home, to develop an application. I now want to open up my Server to the Internet, so potential clients can demo my product from their office. Now I'm not rich, so I can't afford a separate Web Server Can anyone tell me, do I need to use separate products to secure my server from hackers, obviously I just want access to the App programs and the database they are using I really have no clue about this area of expertise Also, does my Database need to reside within the Tomcat heirarchy on my Hard drive, or can it simply be in C:\mysql\database Thank You for any help you can provide me Mike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat Security....
You need a firewall. Can be a router or a software firewall with your PC. You tell your firewall to allow access to the port that Tomcat is open on, e.g 8080 and lock down ports you don't want open such as your database port. Tomcat connects to the database locally on your machine, so the outside world don't need access to that port. Your DB files can be wherever you want them to be, Tomcat/JDBC connects to a DB on port, not file location. -Original Message- From: Michael McQuade [mailto:[EMAIL PROTECTED] Sent: 02 May 2004 14:55 To: Tomcat Users List Subject: Tomcat Security Dumb question number 2 of the Day folks I'm a programmer, not real swift on the security side of life I have Tomcat (5.0.28)running on my server at home, to develop an application. I now want to open up my Server to the Internet, so potential clients can demo my product from their office. Now I'm not rich, so I can't afford a separate Web Server Can anyone tell me, do I need to use separate products to secure my server from hackers, obviously I just want access to the App programs and the database they are using I really have no clue about this area of expertise Also, does my Database need to reside within the Tomcat heirarchy on my Hard drive, or can it simply be in C:\mysql\database Thank You for any help you can provide me Mike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- QAS Ltd. Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- Disclaimer: The information contained within this e-mail is confidential and may be privileged. This email is intended solely for the named recipient only; if you are not authorised you must not disclose, copy, distribute, or retain this message or any part of it. If you have received this message in error please contact the sender at once so that we may take the appropriate action and avoid troubling you further. Any views expressed in this message are those of the individual sender. QAS Limited has the right lawfully to record, monitor and inspect messages between its employees and any third party. Your messages shall be subject to such lawful supervision as QAS Limited deems to be necessary in order to protect its information, its interests and its reputation. Whilst all efforts are made to safeguard Inbound and Outbound emails, QAS Limited cannot guarantee that attachments are virus free or compatible with your systems and does not accept any liability in respect of viruses or computer problems experienced. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
http gzip compreses in tomcat
Hello, I'm using tomcat 5.5 I want enable compressing http gzip in my server. How can I do it? Thanks ___ HipHop Directo De Chiste -- View this message in context: http://www.nabble.com/http-gzip-compreses-in-tomcat-t1499582.html#a4064695 Sent from the Tomcat - User forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Proxy Server
Hi , guys . i am trying to get a XML files in the another Server (RSS Feeds).So when i configured with server to get the data. in our Organisation they are using Proxy Server . so my server (Tomcat 5) unable to connect . then i configured with the Proxy server using the CATALINA_OPTS environmental variable. Then it works fine ,after one day the Same problem again . i don't know why this happen. is it due to the Network Restriction. if u have any other way to set my server so that it will listen the proxy server port number.. let me know
RE: http gzip compreses in tomcat
http://tomcat.apache.org/tomcat-5.5-doc/config/http.html (Attribute "compression" on the Http Connector) -Original Message- From: wakeup [mailto:[EMAIL PROTECTED] Sent: Monday, April 24, 2006 10:26 AM To: users@tomcat.apache.org Subject: http gzip compreses in tomcat Hello, I'm using tomcat 5.5 I want enable compressing http gzip in my server. How can I do it? Thanks ___ HipHop Directo De Chiste -- View this message in context: http://www.nabble.com/http-gzip-compreses-in-tomcat-t1499582.html#a4064695 Sent from the Tomcat - User forum at Nabble.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]
Re: using digester from within a servlet
Christopher Piggott wrote: Frank W. Zammetti [mailto:[EMAIL PROTECTED] writes ... It looks to me like your ObjectCreate rule is incorrect... I believe the class you reference must be the fully-qualified name. That set me on the right track - thank you. My ObjectCreate rule was actually OK because I specified the Class itself, not the name of the class as a String: digester.addObjectCreate("config/xdb-config", XdbConfig.class); Ah cool, I wasn't aware of that version of it. Nice, I like that better. I guess we both learned something :) Thanks! Frank - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: HTML Pages in Tomcat????
best thing is to place them either in the imagescan app folder or a subfolder of it such as imagescan/html then reference them with url via http://localhost:8080/imagescan/page1.htm#anchorname or http://localhost:8080/imagescane/html/page1.html#anchorname On 5/2/04, Michael McQuade <[EMAIL PROTECTED]> wrote: > > Hi folks, real dumb question here. I have an application running on > Tomcat... All my HTML Pages are built on the fly by the Java > Programs > EXCEPT, on each screen I have a HELP button, that is an Anchor > Basically opens up a new browser with the Help information on > it These > are Static Pages, built once. Um, where do I put those Html > pages in the Tomcat heirarchy > > The directory structure looks like this... > > jakarta-tomcat-5/jakarta-tomcat-5.0.28/webapps/imagescan <--- > Imagescan is the name of my Application > > under the Imagescan folder I have: > > ../imagescan/images/ > ../imagescan/web-inf/classes/ > > Sorry if this is a dumb question > > Thank-You > > Mike > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Marc Farrow
is there a possibility to define the startup order for webapps?
Hi there, I'm currenttly using tomcat 5.x for running my webapps. Now I have the following problem: I'm using an database system which runs as webapplication inside tomcat. Another webapplication needs the database connection for startup. Everytime I restart tomcat the server doesn't get up, because the second webapp ist started before the database webapp. Is there a way to define the startup order of the webapplications deployed on a server? With wich system does tomcat choose the apps while startup? Could it be a possibility to rename the folder of the webapps? thx Dominik ___ SMS schreiben mit WEB.DE FreeMail - einfach, schnell und kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Upgrade from tomcat 4.0.27 to 5.5.15 results in: "No Host matches server name"
Hi! I am just upgrading our application to use tomcat 5.5.15 instead of 4.0.27 and after reconfiguring server.xml to conform to the new configurations I get the message "No Host matches server name ..." when accessing via apache and mod_jk. Also I have to mention that I did NOT change anything on the apache or mod_jk side, just changes to tomcat results in such a behaviour! The whole system is still in production with 4.0.27! Is there any explaination for this change in behaviour? What do I need to change to make this work again? Ciao, Martin P.s: Here the relevant configs First the server.xml before the upgrade with tomcat 4.0.27: And here after the upgrade to 5.5.15: * One of the webapps xmls: /opt/qpass/cdp/tomcat/webapps/frontend.xml Note: for 5.5.15 in the conf directory there is a directory "Standalone" and within a softlink named "localhost" to the appdoc directory (/opt/qpass/cdp/tomcat/webapps/). - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: is there a possibility to define the startup order for webapps?
This question comes up every so often and the answer is always no. The webapp load order cannot be relied upon. In your case, might I suggest the database webapp be run on a separate instance of tomcat? Can the connection be done via TCP/IP? --David SOA Work wrote: Hi there, I'm currenttly using tomcat 5.x for running my webapps. Now I have the following problem: I'm using an database system which runs as webapplication inside tomcat. Another webapplication needs the database connection for startup. Everytime I restart tomcat the server doesn't get up, because the second webapp ist started before the database webapp. Is there a way to define the startup order of the webapplications deployed on a server? With wich system does tomcat choose the apps while startup? Could it be a possibility to rename the folder of the webapps? thx Dominik ___ SMS schreiben mit WEB.DE FreeMail - einfach, schnell und kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- David Smith Network Operations Supervisor Department of Entomology Cornell University 2132 Comstock Hall Ithaca, NY 14853 Phone: (607) 255-9571 Fax: (607) 255-0940 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problems with tomcat hanging
We are running separate tomcat and apache servers, the http requests are being proxied from the apache server to the tomcat server. Tomcat connects to an informix database; our application is a webpage that allows users to make queries against the dB and report the results in html. Here is the box we are running the tomcat on: [EMAIL PROTECTED] javaapps]# uname -a Linux serv3.nmcourts.com 2.6.9-22.ELsmp #1 SMP Sat Oct 8 19:11:43 CDT 2005 i686 i686 i386 GNU/Linux [EMAIL PROTECTED] javaapps]# cat /etc/redhat-release CentOS release 4.3 (Final) [EMAIL PROTECTED] javaapps]# We are using the following vers. of tomcat & apache: [EMAIL PROTECTED] javaapps]# ls apache-ant-1.6.5 apache-tomcat-5.5.16 jakarta-tomcat-connectors-1.2.15-src jdk1.5.0_06 apache-ant-1.6.5-bin.tar apache-tomcat-5.5.16.tar.gz jakarta-tomcat-connectors-1.2.15-src.tar.gz jdk-1_5_0_06-linux-i586.bin At least once a day the tomcat process "hangs". Loading the default page brings an error saying tomcat cannot connect to the dB. Running queries on the tomcat server itself we get the same error. We run another tomcat app (on a separate box) that queries the same dB and it works fine at the same time as this problem on the other tomcat box. Only restarting tomcat fixes this problem, a restart of the informix server does not fix it. Looking at logs, I do not see anything logged to indicate that the process is hung. Can someone suggest what I can do to get better information on what is happening and why ? We are some logs, we had the restart this morning at 8:06:13 AM and as you can see there was nothing in the logs (catalina.out) prior to that other that a restart not quite 24 hrs prior. Apr 23, 2006 10:38:50 AM org.apache.catalina.core.ApplicationContext log INFO: ContextListener: contextInitialized() Apr 23, 2006 10:38:50 AM org.apache.catalina.core.ApplicationContext log INFO: SessionListener: contextInitialized() Apr 23, 2006 10:38:50 AM org.apache.catalina.core.ApplicationContext log INFO: ContextListener: contextInitialized() Apr 23, 2006 10:38:50 AM org.apache.catalina.core.ApplicationContext log INFO: SessionListener: contextInitialized() Apr 23, 2006 10:38:50 AM org.apache.coyote.http11.Http11BaseProtocol start INFO: Starting Coyote HTTP/1.1 on http-8080 Apr 23, 2006 10:38:51 AM org.apache.jk.common.ChannelSocket init INFO: JK: ajp13 listening on /0.0.0.0:8009 Apr 23, 2006 10:38:51 AM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=0/24 config=null Apr 23, 2006 10:38:51 AM org.apache.catalina.storeconfig.StoreLoader load INFO: Find registry server-registry.xml at classpath resource Apr 23, 2006 10:38:51 AM org.apache.catalina.startup.Catalina start INFO: Server startup in 4596 ms Apr 24, 2006 8:06:13 AM org.apache.coyote.http11.Http11BaseProtocol pause INFO: Pausing Coyote HTTP/1.1 on http-8080 Apr 24, 2006 8:06:14 AM org.apache.catalina.core.StandardService stop INFO: Stopping service Catalina Apr 24, 2006 8:06:14 AM org.apache.catalina.core.ApplicationContext log INFO: SessionListener: contextDestroyed() Apr 24, 2006 8:06:14 AM org.apache.catalina.core.ApplicationContext log INFO: ContextListener: contextDestroyed() Apr 24, 2006 8:06:14 AM org.apache.catalina.core.ApplicationContext log INFO: SessionListener: contextDestroyed() Apr 24, 2006 8:06:14 AM org.apache.catalina.core.ApplicationContext log INFO: ContextListener: contextDestroyed() - Closing Spring root WebApplicationContext - Closing application context [ org.springframework.web.context.support.XmlWebApplicationContext ;hashCode=32278793] - Destroying singletons in factory { org.springframework.beans.factory.support.DefaultListableBeanFactorydefining beans [dataSource,jdbcTemplate,searchService,partySearchService,searchServiceDaoBase,searchServiceDaoImpl,caselookupDataAccess,searchServiceUtils,searchController,caselookupSearchController,searchDetailController,dwiSearchController,dwiSearchService,searchDetailService,partySearchResults,dwiSearchResults,searchDetailWrapperBean,caseDetail,criminalChargeDetail,judgeAssignmentHistory,roaActivity,caseParties,civilComplaint,searchValidator,urlMapping,viewResolver]; root of BeanFactory hierarchy} - Closing WebApplicationContext of Spring FrameworkServlet 'caselookup' - Closing application context [WebApplicationContext for namespace 'caselookup-servlet'] - Destroying singletons in factory { org.springframework.beans.factory.support.DefaultListableBeanFactorydefining beans [searchController,caselookupSearchController,searchDetailController,dwiSearchController,searchServiceUtils,partySearchService,dwiSearchService,searchDetailService,partySearchResults,dwiSearchResults,searchDetailWrapperBean,caseDetail,criminalChargeDetail,judgeAssignmentHistory,roaActivity,caseParties,civilComplaint,searchValidator,urlMapping,viewResolver]; parent: org.springframework.beans.factory.support.DefaultListableBeanFactorydefining beans [dataSource,jdbcTemplate,searchService,partySearchService,searchServiceDaoBase,searc
Re: is there a possibility to define the startup order for webapps?
A couple of other ideas: Use a small shared class (in shared/lib) to keep track of whether the database is running. The first webapp notifies this class when it's ready, and the second webapp checks if the database is ready before using it. Or, just accept that database errors will occur during startup. This is not a bad solution. From a user's point of view, when the server is down all requests will return some kind of error, until the server is back up and running. The only thing you can hope to gain is a better error message for a few seconds during startup. -- Len On 4/24/06, David Smith <[EMAIL PROTECTED]> wrote: > This question comes up every so often and the answer is always no. The > webapp load order cannot be relied upon. In your case, might I suggest > the database webapp be run on a separate instance of tomcat? Can the > connection be done via TCP/IP? > > --David > > SOA Work wrote: > > Hi there, > > > > I'm currenttly using tomcat 5.x for running my webapps. Now I have the > > following problem: > > > > I'm using an database system which runs as webapplication inside tomcat. > > Another webapplication needs the database connection for startup. > > Everytime I restart tomcat the server doesn't get up, because the second > > webapp ist started before the database webapp. > > > > Is there a way to define the startup order of the webapplications deployed > > on a server? > > With wich system does tomcat choose the apps while startup? Could it be a > > possibility to rename the folder of the webapps? > > > > thx > > Dominik > > ___ > > SMS schreiben mit WEB.DE FreeMail - einfach, schnell und > > kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192 > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > -- > David Smith > Network Operations Supervisor > Department of Entomology > Cornell University > 2132 Comstock Hall > Ithaca, NY 14853 > Phone: (607) 255-9571 > Fax: (607) 255-0940 > > > - > 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]
jsvc creates LOTS of processes
I noticed that jsvc creates about 68 processes on one of my servers. I start it using an init.d script under redhat 9. I don't think I have done anything egregious. ...snip CATALINA_OPTS=" -Djava.awt.headless=true -Xmx750m -Xms750m" ...snip start(){ $DAEMON_HOME/jsvc \ -user $TOMCAT_USER \ -home $JAVA_HOME \ -Dcatalina.home=$CATALINA_HOME \ -Djava.io.tmpdir=$CATALINA_HOME/temp \ -outfile $CATALINA_HOME/logs/catalina.out \ -errfile '&1' \ $CATALINA_OPTS \ -cp $CLASSPATH \ org.apache.catalina.startup.Bootstrap echo "starting tomcat: " $CATALINA_HOME echo "tomcat user: " $TOMCAT_USER # # To get a verbose JVM #-verbose \ # To get a debug of jsvc. #-debug \ } I was getting a 143 error on exiting Tomcat with an old version of jsvc. I got the version packaged with 5.5.16 and compiled it just in case this was fixed. My 143 error is gone, but there still are lots of processes generated when I start Tomcat as a daemon. I have another server where only 1 jsvc.exe process is started when I start Tomcat. What am I doing wrong on the server with 68 processes. mas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: is there a possibility to define the startup order for webapps?
argh. annoying. ok. thx anyway. > -Ursprüngliche Nachricht- > Von: "Tomcat Users List" > Gesendet: 24.04.06 17:57:49 > An: "Tomcat Users List" > Betreff: Re: is there a possibility to define the startup order for webapps? > A couple of other ideas: > > Use a small shared class (in shared/lib) to keep track of whether the > database is running. The first webapp notifies this class when it's > ready, and the second webapp checks if the database is ready before > using it. > > Or, just accept that database errors will occur during startup. This > is not a bad solution. From a user's point of view, when the server is > down all requests will return some kind of error, until the server is > back up and running. The only thing you can hope to gain is a better > error message for a few seconds during startup. > -- > Len > > > On 4/24/06, David Smith <[EMAIL PROTECTED]> wrote: > > This question comes up every so often and the answer is always no. The > > webapp load order cannot be relied upon. In your case, might I suggest > > the database webapp be run on a separate instance of tomcat? Can the > > connection be done via TCP/IP? > > > > --David > > > > SOA Work wrote: > > > Hi there, > > > > > > I'm currenttly using tomcat 5.x for running my webapps. Now I have the > > > following problem: > > > > > > I'm using an database system which runs as webapplication inside tomcat. > > > Another webapplication needs the database connection for startup. > > > Everytime I restart tomcat the server doesn't get up, because the second > > > webapp ist started before the database webapp. > > > > > > Is there a way to define the startup order of the webapplications > > > deployed on a server? > > > With wich system does tomcat choose the apps while startup? Could it be a > > > possibility to rename the folder of the webapps? > > > > > > thx > > > Dominik > > > ___ > > > SMS schreiben mit WEB.DE FreeMail - einfach, schnell und > > > kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192 > > > > > > > > > - > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > -- > > David Smith > > Network Operations Supervisor > > Department of Entomology > > Cornell University > > 2132 Comstock Hall > > Ithaca, NY 14853 > > Phone: (607) 255-9571 > > Fax: (607) 255-0940 > > > > > > - > > 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] > ___ SMS schreiben mit WEB.DE FreeMail - einfach, schnell und kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: is there a possibility to define the startup order for webapps?
One could envision a rather complex and somewhat funky solution to this... I'm not so sure I'd recommend it, but in the interest of creative thinking... (1) Add a context parameter isAppRunning to the webapp, initially set to "false". (2) Create a filter that is mapped to handle all requests. It checks the value of isAppRunning, and redirects to some page if the value is "false". (3) Create a ContextListener that fires off a daemon thread. (4) The daemon thread makes a simple request to some predefined URL of the other webapp. If it does not get the response it expects, it sleeps for a second or two and then tries again. (5) When the daemon thread gets the reply it expects, it sets isAppRunning to "true" and dies. Now, add this all to the "master" webapp, that is, the one that depends on the other. All requests should be blocked and redirected to the page of your choice until the webapp it depends on returns that OK reply. I could envision this being done with a number of webapps, forming a dependency chain not unlike "depends" in Ant. Will it work? I think so, but I just made it up, so who knows :) Frank SOA Work wrote: argh. annoying. ok. thx anyway. -Ursprüngliche Nachricht- Von: "Tomcat Users List" Gesendet: 24.04.06 17:57:49 An: "Tomcat Users List" Betreff: Re: is there a possibility to define the startup order for webapps? A couple of other ideas: Use a small shared class (in shared/lib) to keep track of whether the database is running. The first webapp notifies this class when it's ready, and the second webapp checks if the database is ready before using it. Or, just accept that database errors will occur during startup. This is not a bad solution. From a user's point of view, when the server is down all requests will return some kind of error, until the server is back up and running. The only thing you can hope to gain is a better error message for a few seconds during startup. -- Len On 4/24/06, David Smith <[EMAIL PROTECTED]> wrote: This question comes up every so often and the answer is always no. The webapp load order cannot be relied upon. In your case, might I suggest the database webapp be run on a separate instance of tomcat? Can the connection be done via TCP/IP? --David SOA Work wrote: Hi there, I'm currenttly using tomcat 5.x for running my webapps. Now I have the following problem: I'm using an database system which runs as webapplication inside tomcat. Another webapplication needs the database connection for startup. Everytime I restart tomcat the server doesn't get up, because the second webapp ist started before the database webapp. Is there a way to define the startup order of the webapplications deployed on a server? With wich system does tomcat choose the apps while startup? Could it be a possibility to rename the folder of the webapps? thx Dominik ___ SMS schreiben mit WEB.DE FreeMail - einfach, schnell und kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- David Smith Network Operations Supervisor Department of Entomology Cornell University 2132 Comstock Hall Ithaca, NY 14853 Phone: (607) 255-9571 Fax: (607) 255-0940 - 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] ___ SMS schreiben mit WEB.DE FreeMail - einfach, schnell und kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com AIM: fzammetti Yahoo: fzammetti MSN: [EMAIL PROTECTED] Java Web Parts - http://javawebparts.sourceforge.net Supplying the wheel, so you don't have to reinvent it! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: jsvc creates LOTS of processes
Chances are you are doing nothing wrong. How many threads/processes are started when you start tomcat manually?It could easily be the way your kernel implementation handles threads (assuming this is Linux). Some list threads as processes (version 2.4 and before), newer 2.6 kernels don't. --David Mark Shifman wrote: I noticed that jsvc creates about 68 processes on one of my servers. I start it using an init.d script under redhat 9. I don't think I have done anything egregious. ...snip CATALINA_OPTS=" -Djava.awt.headless=true -Xmx750m -Xms750m" ...snip start(){ $DAEMON_HOME/jsvc \ -user $TOMCAT_USER \ -home $JAVA_HOME \ -Dcatalina.home=$CATALINA_HOME \ -Djava.io.tmpdir=$CATALINA_HOME/temp \ -outfile $CATALINA_HOME/logs/catalina.out \ -errfile '&1' \ $CATALINA_OPTS \ -cp $CLASSPATH \ org.apache.catalina.startup.Bootstrap echo "starting tomcat: " $CATALINA_HOME echo "tomcat user: " $TOMCAT_USER # # To get a verbose JVM #-verbose \ # To get a debug of jsvc. #-debug \ } I was getting a 143 error on exiting Tomcat with an old version of jsvc. I got the version packaged with 5.5.16 and compiled it just in case this was fixed. My 143 error is gone, but there still are lots of processes generated when I start Tomcat as a daemon. I have another server where only 1 jsvc.exe process is started when I start Tomcat. What am I doing wrong on the server with 68 processes. mas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- David Smith Network Operations Supervisor Department of Entomology Cornell University 2132 Comstock Hall Ithaca, NY 14853 Phone: (607) 255-9571 Fax: (607) 255-0940 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: is there a possibility to define the startup order for webapps?
I believe that the loading of webapps is based on the order of the webapp folders (or war files) coming into the purview of the tomcat webapp loader. This is mostly in the order the OS lists the files/folders within the webapps folder. I think you can experiment with changing the name of the database webapp to something that starts with an "_" so that it comes first in listing of folders. This can be done if you can change the name of the context for the database webapp or the other webapp. -- Vivek. PS: But the creative solutions look more techy:) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: is there a possibility to define the startup order for webapps?
You cannot rely on this, especially when you change OSes, servers, or tomcat versions. -Original Message- From: Vivek Mohan [mailto:[EMAIL PROTECTED] Sent: Monday, April 24, 2006 3:00 PM To: Tomcat Users List Subject: Re: is there a possibility to define the startup order for webapps? I believe that the loading of webapps is based on the order of the webapp folders (or war files) coming into the purview of the tomcat webapp loader. This is mostly in the order the OS lists the files/folders within the webapps folder. I think you can experiment with changing the name of the database webapp to something that starts with an "_" so that it comes first in listing of folders. This can be done if you can change the name of the context for the database webapp or the other webapp. -- Vivek. PS: But the creative solutions look more techy:) - 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: is there a possibility to define the startup order for webapps?
> From: Vivek Mohan [mailto:[EMAIL PROTECTED] > Subject: Re: is there a possibility to define the startup > order for webapps? > > I believe that the loading of webapps is based on the order of the > webapp folders (or war files) coming into the purview of the tomcat > webapp loader. Which may be partially true, but ignores those contexts defined by the presence of files in conf/Catalina/localhost or in conf/server.xml. Also, the order of entries in a directory is rarely alphabetical, so most of what you say is just wishful thinking. And, since none of this is defined in the Servlet spec, any existing ordering is subject to change at any time. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Howto activate JSSESupport in Apache-mod_jk-Tomcat 5.5.x
Oliver Schoenwald wrote: If your are using mod_jk, you need to configure SSL on Apache. If you are using Tomcat on its own, read http://tomcat.apache.org/tomcat-5.5-doc/ssl-howto.html Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: HTML Pages in Tomcat????
When starting a new thread (ie sending a message to the list about a new topic) please do not reply to an existing message and change the subject line. To many of the list archiving services and mail clients used by list subscribers this makes your new message appear as part of the old thread. This makes it harder for other users to find relevant information when searching the lists. This is known as thread hijacking and is that is frowned upon on this list. Frequent offenders will be removed from the list. It should also be noted that many list subscribers automatically ignore any messages that hijack another thread. The correct procedure is to create a new message with a new subject. This will start a new thread. Mark tomcat-user-owner - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat Security....
When starting a new thread (ie sending a message to the list about a new topic) please do not reply to an existing message and change the subject line. To many of the list archiving services and mail clients used by list subscribers this makes your new message appear as part of the old thread. This makes it harder for other users to find relevant information when searching the lists. This is known as thread hijacking and is that is frowned upon on this list. Frequent offenders will be removed from the list. It should also be noted that many list subscribers automatically ignore any messages that hijack another thread. The correct procedure is to create a new message with a new subject. This will start a new thread. Mark tomcat-user-owner - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
j-_security_check session problem with load balancer
Hello, We are using tomcat 5.5.16 with a Redline Networks Enterprise Application Processor load balancer between two machines. The balancer is session sticky. Every so often we get a problem with users not being able to log in. (We are using JDBC Realm form authentication.) The error the users sees is the URL .../j_security_check and a standard browser cannot connect error. It seems Tomcat needs the user to hit the same machine for the security check as it did for the 1st connect. i.e. I can simulate the problem by going to my apps login screen, stop/starting the webapp via the manager in another browser window, and trying to now login back in the first browser window. I get the same /j_security_check error. Questions: 1. Why doesn't tomcat just send me back to the login screen if the session is invalid? 2. Any idea why the load balancer would sometimes show this same behavior? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
memory footprint question (5.0.28)
I had a question on individual memory footprint of a tomcat instance and increasing the number of instances: Is this assumption correct that increasing the number of instances of tomcat on a machine and modifying the IIS worker properties to have more worker instances in the balanced_worker property will reduce individual tomcat memory foot print? For example, currently we have one machine has 3 tomcat instances running, the IIS worker properties, balanced_worker property points to the 3 tomcats and each worker lb_factor is 1. Current snapshot of memory usage is approx 175MB. If we add more tomcat instance and add them to the balanced_worker also, will the memory usage reduce for individual tomcat instance; now that the IIS will spread the new requests evenly among the tomcats? Thanks, Rumpa Giri - New Yahoo! Messenger with Voice. Call regular phones from your PC and save big.
Re: is there a possibility to define the startup order for webapps?
On Mon, Apr 24, 2006 at 11:20:54AM -0400, David Smith wrote: > This question comes up every so often and the answer is always no. The > webapp load order cannot be relied upon. In your case, might I suggest > the database webapp be run on a separate instance of tomcat? Can the > connection be done via TCP/IP? eh? I thought that's what the "load-on-startup" element in a web.xml's "servlet" element does. Or does that not take effect across web applications? eric - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: is there a possibility to define the startup order for webapps?
It defines the order of servlet startup, if pre-loaded/pre-started at all, when the webapp actually starts. It does not affect the order in which the webapps themselves are loaded and/or started. Tim -Original Message- From: Eric Haszlakiewicz [mailto:[EMAIL PROTECTED] Sent: Monday, April 24, 2006 9:43 PM To: David Smith Cc: Tomcat Users List Subject: Re: is there a possibility to define the startup order for webapps? On Mon, Apr 24, 2006 at 11:20:54AM -0400, David Smith wrote: > This question comes up every so often and the answer is always no. The > webapp load order cannot be relied upon. In your case, might I suggest > the database webapp be run on a separate instance of tomcat? Can the > connection be done via TCP/IP? eh? I thought that's what the "load-on-startup" element in a web.xml's "servlet" element does. Or does that not take effect across web applications? eric - 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]
A docbase ... inside the host appBase has been specified
I apologize for the rookie mistake, but I can't figure out what I've done wrong here... I'm trying to configure a simple servlet, but when I launch tomcat (via IDEA) I see this message in the tomcat output: "A docBase /Volumes/misc/apache-tomcat-5.5.17/webapps/subset inside the host appBase has been specified, and will be ignored." I haven't been able to figure out the cause of this (or really what the error means)... perhaps an error in my web.xml (at the end of this email). Your help is appreciated. Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd";> CommandServlet com.(obfuscated).subset.controller.CommandServletservlet-class> type1 getTestCase impl1 com. (obfuscated).subset.controller.GetTestCaseCommandProcessor CommandServlet /CommandServlet - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: A docbase ... inside the host appBase has been specified
What it means is there is a context xml file (typically in config/Catalina/localhost, probably subset.xml) that specifies a docBase attribute. That attribute is useful if the webapp is not within tomcat's webapps directory, but ignored as redundant when the webapp is in the webapps directory. The message is more or less info level logging and does not indicate an error. Nothing to do with your web.xml file. Are you having trouble getting your servlet to run when you call it? --David [EMAIL PROTECTED] wrote: I apologize for the rookie mistake, but I can't figure out what I've done wrong here... I'm trying to configure a simple servlet, but when I launch tomcat (via IDEA) I see this message in the tomcat output: "A docBase /Volumes/misc/apache-tomcat-5.5.17/webapps/subset inside the host appBase has been specified, and will be ignored." I haven't been able to figure out the cause of this (or really what the error means)... perhaps an error in my web.xml (at the end of this email). Your help is appreciated. Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd";> CommandServlet com.(obfuscated).subset.controller.CommandServlet type1 getTestCase impl1 com.(obfuscated).subset.controller.GetTestCaseCommandProcessor CommandServlet /CommandServlet - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- David Smith Network Operations Supervisor Department of Entomology Cornell University 2132 Comstock Hall Ithaca, NY 14853 Phone: (607) 255-9571 Fax: (607) 255-0940 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: is there a possibility to define the startup order for webapps?
As pointed out by another, load-on-startup only refers to servlets within a specific webapp. It does not have any influence over the load order of web applications themselves. --David Eric Haszlakiewicz wrote: On Mon, Apr 24, 2006 at 11:20:54AM -0400, David Smith wrote: This question comes up every so often and the answer is always no. The webapp load order cannot be relied upon. In your case, might I suggest the database webapp be run on a separate instance of tomcat? Can the connection be done via TCP/IP? eh? I thought that's what the "load-on-startup" element in a web.xml's "servlet" element does. Or does that not take effect across web applications? eric - 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: A docbase ... inside the host appBase has been specified
Thanks so much for your helpful response. I mistakenly thought that was the problem with my servlet. Now I see that it is actually running (I was trying to hit http://localhost: 8080/CommandServlet rather than http://localhost:8080/subset/ CommandServlet -- sorry, rookie here). I was hoping to see more logging info, but I also get the warnings: log4j:WARN No appenders could be found for logger (org.apache.commons.digester.Digester.sax). log4j:WARN Please initialize the log4j system properly. What's the appropriate procedure for getting this working? On Apr 24, 2006, at 7:33 PM, David Smith wrote: Nothing to do with your web.xml file. Are you having trouble getting your servlet to run when you call it?
Re: servlet mapping request
Hello Tomcat Users. I've researched Linux books for a solution and no luck on httpd.conf. So I am guessing all I need to do is change the following in httpd.conf FROM : > LoadModule jk_module libexec/mod_jk.so > AddModule mod_jk.c > > > ServerAlias nbfc.us > ServerAdmin [EMAIL PROTECTED] > DocumentRoot /home/nbfcus/public_html > BytesLog domlogs/nbfc.us-bytes_log > ServerName www.nbfc.us > User nbfcus > Group nbfcus > CustomLog /usr/local/apache/domlogs/nbfc.us combined > ScriptAlias /cgi-bin/ /home/nbfcus/public_html/cgi-bin/ > > JkMount /*.jsp ajp13 > JkMount /servlet/* ajp13 > JkMount /servlets/* ajp13 > > TO : > LoadModule jk_module libexec/mod_jk.so > AddModule mod_jk.c > > > ServerAlias nbfc.us > ServerAdmin [EMAIL PROTECTED] > DocumentRoot /home/nbfcus/public_html > BytesLog domlogs/nbfc.us-bytes_log > ServerName www.nbfc.us > User nbfcus > Group nbfcus > CustomLog /usr/local/apache/domlogs/nbfc.us combined > ScriptAlias /cgi-bin/ /home/nbfcus/public_html/cgi-bin/ > > JkMount /*.jsp ajp13 > JkMount /events/* ajp13 > JkMount /servletHandler/* ajp13 > > On our host's website. All I did was replace /servlet/ with my desired servlet mappings. Would this work? - Original Message - From: "Raymond P. Jones" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Tuesday, April 18, 2006 7:05 PM Subject: Re: servlet mapping request > Hello Mark on Tomcat Users. > 1. Tomcat version is 5.5.9 > > 2. Content of web.xml in > (public_html/WEB-INF/web.xml within 'nbfcus' homedir) : > > > > PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" > "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";> > > > > > webmaster > [EMAIL PROTECTED] > The EMAIL address of the administrator to whom questions > and comments about this application should be addressed. > > > > > > EventsServlet > EventsServlet > > > > servletHandler > servletHandler > > > > EventsServlet > /events > > > > servletHandler > *.do > > > > 30 > > > > > 3. Here is requested info from httpd.conf: > > LoadModule jk_module libexec/mod_jk.so > AddModule mod_jk.c > > > ServerAlias nbfc.us > ServerAdmin [EMAIL PROTECTED] > DocumentRoot /home/nbfcus/public_html > BytesLog domlogs/nbfc.us-bytes_log > ServerName www.nbfc.us > User nbfcus > Group nbfcus > CustomLog /usr/local/apache/domlogs/nbfc.us combined > ScriptAlias /cgi-bin/ /home/nbfcus/public_html/cgi-bin/ > > JkMount /*.jsp ajp13 > JkMount /servlet/* ajp13 > JkMount /servlets/* ajp13 > > > > I hope this can help you to help me to determine problem. > Thx, > Raymond P. Jones > Ph: 518-446-9845 > E: [EMAIL PROTECTED] > > - Original Message - > From: "Mark Thomas" <[EMAIL PROTECTED]> > To: "Tomcat Users List" > Sent: Saturday, April 15, 2006 12:54 PM > Subject: Re: servlet mapping request > > > > Info we need to help you: > > > > 1. Exact Tomcat version. I would be extremely surprised if this really > > is the most recent release (5.5.17) > > > > 2. The content of your web.xml > > > > 3. Given that you are using Apache as well, the relevant Jk directives > > from your httpd.conf file > > > > Related to point 3, can you direct your browser to Tomcat directly, > > bypassing Apache? If so, does this work? > > > > Mark > > > > Raymond P. Jones wrote: > > > Hello Tomcat Users. > > > I need your help regarding servlet mappings in our WEB-INF/web.xml file > running on an Apache webserver with a Tomcat container(most recent release) > on a public website. After putting our web.xml file in public\WEB-INF and > asking our web host to restart Tomcat, our servlet mappings stilll do not > work in our test web page. > > > I've searched through many books, even a Tomcat Quickstart book and they > all say Tomcat has to be restarted for the servlet mappings in web.xml to > work. So we requested a Tomcat restart and after this, the servlet mapping > we use gives a error. When I use /servlet/EventsServlet in > link, it calls the servlet and it works, but according to Tomcat > documentation this is a security issue that we don't want to implement. > > > > > > I'm hoping that you know what the solution(s) are and can point me in > the right direction. > > > I'm appreciative for assist that you may provide. > > > > > > Raymond P. Jones > > > Ph: 518-446-9845 > > > E: [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]
Re: Howto activate JSSESupport in Apache-mod_jk-Tomcat 5.5.x
Hi Mark, sorry, you misunderstood me. Of cause we already SSL for Apache, configured mod_jk to deliver certain SSL-Information etc. etc. etc. What Tomcat/Catalina doesn't support by default is getting a SSLSession based on the SSL-SessionID of a running SSL-Connection. So far I have found no information or documentation about how to activate SSL-based SessionManagement in Catalina, although it is part of the Servlet-API and I have found certain source-code in the catalina-connector-sourcetree that seem to work toward SSL-based SessionManagement. Hmm, I think I will try to contact the author of that sources to find out more about it. Oliver Schönwald Mark Thomas schrieb: Oliver Schoenwald wrote: If your are using mod_jk, you need to configure SSL on Apache. If you are using Tomcat on its own, read http://tomcat.apache.org/tomcat-5.5-doc/ssl-howto.html Mark - 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]