Re: JSF Please Help with a simple question thanks ???
Bovy, Stephen J wrote: Thank you for the clarification ... So is Tomcat 5.x using the appache MYFACES Which version of jsf is included/supported by tomcat 5.x ??? Is there any difference between the Sun version and the appache version ??? Stephen Bovy Computer Associates 6100 Center Drive Suite 700 Los Angeles, CA 90045 Tel: (310) 957-3930 Fax: (310) 957-3917 e-mail: [EMAIL PROTECTED] It's not really a question of Tomcat using MyFaces or JSF RI - they are really independent technologies which can work together. You choose which one you want to use based upon your needs and any company policies which might apply. Both support the same API (JSR 127). Try thinking of it this way. Both MyFaces and JSF RI offer you a library (jar) of methods which allow you to develop JSF format web pages. Each library offers the same standard set of capabilities - the JSR 127 API. Each library is written and supported by a different group. Both will run on Tomcat (or any other reasonable application server) since both are written using Java. To integrate either with Tomcat, you simply download the library, add it to your project's classpath, and then write JSF-specific web pages to take advantage of the JSF technology. You might find this http://www.jsfcentral.com/faq/index.html (JSF Central's FAQ) to be helpful as a starting point. -david- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JSF Please Help with a simple question thanks ???
Does Tomcat 5.x have a JSF implementation Does JSF have to be installed separately Stephen Bovy Computer Associates 6100 Center Drive Suite 700 Los Angeles, CA 90045 Tel: (310) 957-3930 Fax: (310) 957-3917 e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JSF Please Help with a simple question thanks ???
Bovy, Stephen J wrote: Does Tomcat 5.x have a JSF implementation Does JSF have to be installed separately Stephen Bovy Computer Associates 6100 Center Drive Suite 700 Los Angeles, CA 90045 Tel: (310) 957-3930 Fax: (310) 957-3917 e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Tomcat 5.x supports JSF. JSF is a separate download (jar file) from either Sun (http://java.sun.com/j2ee/javaserverfaces/download.html) or Apache (http://www.myfaces.org/) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JSF Please Help with a simple question thanks ???
Thank you for the clarification ... So is Tomcat 5.x using the appache MYFACES Which version of jsf is included/supported by tomcat 5.x ??? Is there any difference between the Sun version and the appache version ??? Stephen Bovy Computer Associates 6100 Center Drive Suite 700 Los Angeles, CA 90045 Tel: (310) 957-3930 Fax: (310) 957-3917 e-mail: [EMAIL PROTECTED] -Original Message- From: David Haynes [mailto:[EMAIL PROTECTED] Sent: Friday, September 02, 2005 6:48 PM To: Tomcat Users List Subject: Re: JSF Please Help with a simple question thanks ??? Bovy, Stephen J wrote: Does Tomcat 5.x have a JSF implementation Does JSF have to be installed separately Stephen Bovy Computer Associates 6100 Center Drive Suite 700 Los Angeles, CA 90045 Tel: (310) 957-3930 Fax: (310) 957-3917 e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Tomcat 5.x supports JSF. JSF is a separate download (jar file) from either Sun (http://java.sun.com/j2ee/javaserverfaces/download.html) or Apache (http://www.myfaces.org/) - 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: simple question on deltamanger - understanding
Yes, at germany I can give you that support... Please send me your cluster config, and os, jdk and tomcat version. Peter John MccLain schrieb: My understanding is that the clustering replication DeltaManager it is called via a setAttribute if UseDirtyFlag is set to true. So does this mean that it only checks for a delta on the attribute that was set, or does it check the deltas in the entire session? Also, does anyone know where I can get commercial Tomcat support - we are having trouble with clustering John McClain Senior Software Engineer TCS Healthcare [EMAIL PROTECTED] (530)886-1700x235 Skepticism is the first step toward truth - 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]
simple question on deltamanger - understanding
My understanding is that the clustering replication DeltaManager it is called via a setAttribute if UseDirtyFlag is set to true. So does this mean that it only checks for a delta on the attribute that was set, or does it check the deltas in the entire session? Also, does anyone know where I can get commercial Tomcat support - we are having trouble with clustering John McClain Senior Software Engineer TCS Healthcare [EMAIL PROTECTED] (530)886-1700x235 Skepticism is the first step toward truth - 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]
Simple question on HTTP return codes
I fear I should know this answer, but... How can one, from a servlet (or Struts Action maybe) throw a specific HTTP return code? I need to return a 403 from a servlet if certain things are not present in the request... is it just a matter of setting a particular header, or is there something to throw, like an exception? Thanks all! -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Simple question on HTTP return codes
Yep, I *should* have known that :)... The sendError() method of HttpServletRequest does it. Sorry for wasted bandwidth! -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com On Tue, May 31, 2005 3:13 pm, Frank W. Zammetti said: I fear I should know this answer, but... How can one, from a servlet (or Struts Action maybe) throw a specific HTTP return code? I need to return a 403 from a servlet if certain things are not present in the request... is it just a matter of setting a particular header, or is there something to throw, like an exception? Thanks all! -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Simple question on HTTP return codes
Just a small note, Frank. You use sendError(int sc) for errors but setStatus(int sc) for codes that are not errors. On 5/31/05, Frank W. Zammetti [EMAIL PROTECTED] wrote: Yep, I *should* have known that :)... The sendError() method of HttpServletRequest does it. Sorry for wasted bandwidth! -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com On Tue, May 31, 2005 3:13 pm, Frank W. Zammetti said: I fear I should know this answer, but... How can one, from a servlet (or Struts Action maybe) throw a specific HTTP return code? I need to return a 403 from a servlet if certain things are not present in the request... is it just a matter of setting a particular header, or is there something to throw, like an exception? Thanks all! -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- You can lead a horse to water but you cannot make it float on its back. ~Dakota Jack~ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Simple question on HTTP return codes
Cool, good to know there is a difference. Thanks! Frank Dakota Jack wrote: Just a small note, Frank. You use sendError(int sc) for errors but setStatus(int sc) for codes that are not errors. On 5/31/05, Frank W. Zammetti [EMAIL PROTECTED] wrote: Yep, I *should* have known that :)... The sendError() method of HttpServletRequest does it. Sorry for wasted bandwidth! -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com On Tue, May 31, 2005 3:13 pm, Frank W. Zammetti said: I fear I should know this answer, but... How can one, from a servlet (or Struts Action maybe) throw a specific HTTP return code? I need to return a 403 from a servlet if certain things are not present in the request... is it just a matter of setting a particular header, or is there something to throw, like an exception? Thanks all! -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com - 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 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
simple question about mod_jk2
I see from the (old) docs that a channel has a timeout setting. http://jakarta.apache.org/tomcat/connectors-doc-archive/jk2/jk2/printer/configwebcom.html#sub_channel.socket Is this in seconds or milliseconds? The docs about an ajp.worker it is specified that the timeouts is in millisecs, but not so for the mod_jk2. Anyone? -- \ Olve S. Hansen \ mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Deploy - simple question
How i configure the directory's deploy of each virtual host (virtual host configured on server.xml)? thanks -- Willian Corrêa C.O.I. - Centro de Operações e Infraestrutura Plug In Internet Corporativa http://www.plugin.com.br [EMAIL PROTECTED] Centro de Atendimento, Informação e Apoio ao cliente CAIA Local +55 51 3287 1700( Poa e Grande POA ) CAIA Nacional 0800 541 1700( Demais Localidades )
Re: Deploy - simple question
: How i configure the directory's deploy of each virtual host (virtual : host configured on server.xml)? I'm not sure I understand this question. Are you trying to control the order of deployment? That's not possible. -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]
Simple question regarding Body Tags
I am using Tomcat 4.1.29 I have a bodytag called Page In the constructor of this Tag I do this: HttpSession session = null; try { session = pageContext.getSession(); } catch(Exception ex) { ex.printStackTrace(); } When I use this tag on a JSP page and try to access this jsp page, I get the following: org.apache.jasper.JasperException at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja va:254) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java: 295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv e.java:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv e.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java: 2417) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java :180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa lve.java:171) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java :172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java: 577) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve. java:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:193) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:309) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:387) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:673) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java: 615) at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:786) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool .java:666) at java.lang.Thread.run(Thread.java:552) root cause javax.servlet.ServletException at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContex tImpl.java:531) at org.apache.jsp.Home_jsp._jspService(Home_jsp.java:276) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja va:210) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java: 295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:193) at
newbie simple question...
Hi everybody, I'm pretty new to Tomcat and jsp development, I'm running tomcat 4.1 over red hat 8. I redirected default port to 80 on server.xml, and created an index.jsp page in wich I insert other jsp pages I created as templates usign : jsp:include page=templates/header.jsp flush=true /jsp:include jsp:include page=templates/footer.jsp flush=true /jsp:include ... etc In the beginning it worked fine, but at some point it stoped working, so after issuing an http://localhost, just a blank page appears, so obviously, that header.jsp and footer.sjp are not found anymore.. Testin I did insert a %= new java.util.Date() % just above the include directive, and it works fine, I get the Date Time anwser, but not the page I asked to be inserted for... I been looking around, trying to find something in previous postings, but I couldn't get anything, so I write here hope anybody can help. Thanks in advance -- Andres Ledesma Ibilnet Software Inc. == Solo quienes se arriesgan a llegar lejos, saben cuan lejos se puede llegar - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
newbie simple question... SOLVED !!!
Hi everybody again, I went to the logs and found the cause of the error, so if anybody was going to anwser, I thanks, but it's not necessary already. Andres Ledesma Ibilnet Software Inc. == Solo quienes se arriesgan a llegar lejos, saben cuan lejos se puede llegar - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
jsp:include simple question
For some reason the following does not work for me jsp:include page=/MyApp/common/footer.jsp flush=true / And this does work: c:import url=/common/footer.jsp / I am using JBoss 3.2.1 +Tomcat 4.1.24, Struts 1.1. It is supposed to be very easy but.. anyway, someone has any idea? Thanks in advance, -- Erez - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: jsp:include simple question
Erez, For some reason the following does not work for me jsp:include page=/MyApp/common/footer.jsp flush=true / And this does work: c:import url=/common/footer.jsp / I think it's because you inadvertently have the webapp context root specified in the page= attribute. Try removing it; I think the jsp:include tag already assumes that the page is relative to the context root. -chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Simple question about JSP page
you should post you tag code of the code for that page. It can either be a problem with your tag, or the connection pooling. Try stopping and restarting the app in the manager and see if that makes the updates take affect. If so, the issues is with re-use of objects and possible connection pooling. Shawn Zernik Internetwork Consulting www.internetworkconsulting.net -Original Message- From: engp0510 [mailto:[EMAIL PROTECTED] Sent: Friday, September 05, 2003 9:31 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Simple question about JSP page Hi, Maybe it's a stupid question. Built jsps for addingsearching with MySQL. First listing all existing records in db and then adding a new one into database, then listing all records again. Now the list is the same as previous. How to solve it? THX - 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: Simple question about JSP page
Hard to tell with the information given, but my guess is that you're getting a browser-cached copy of the list all page. Add the header voodoo to suppress caching and see if that helps. -Original Message- From: engp0510 [mailto:[EMAIL PROTECTED] Sent: Fri 9/5/2003 7:30 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Cc: Subject: Simple question about JSP page Hi, Maybe it's a stupid question. Built jsps for addingsearching with MySQL. First listing all existing records in db and then adding a new one into database, then listing all records again. Now the list is the same as previous. How to solve it? THX - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Simple question about JSP page
Have you verified that the record IS getting added correctly to the DB? Have you hit the refresh button to check that your browser isn't displaying a stale page? If an old page is getting displayed you can turn off page cacheing by calling: response.setHeader(Pragma, no-cache); - Original Message - From: engp0510 [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Saturday, September 06, 2003 3:30 AM Subject: Simple question about JSP page Hi, Maybe it's a stupid question. Built jsps for addingsearching with MySQL. First listing all existing records in db and then adding a new one into database, then listing all records again. Now the list is the same as previous. How to solve it? THX - 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: Simple question about JSP page
Has your SQL code issued a commit after adding the extra rows? Some DBMSs require that before the application can see new rows in the database - a repeated query simply gets the original result until the rollback buffer is committed. Murray -Original Message- From: engp0510 [mailto:[EMAIL PROTECTED] Sent: Friday, September 05, 2003 9:31 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Simple question about JSP page Hi, Maybe it's a stupid question. Built jsps for addingsearching with MySQL. First listing all existing records in db and then adding a new one into database, then listing all records again. Now the list is the same as previous. How to solve it? THX - 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: Simple question about JSP page
1st, you shouldn't cross post to more than one list at a time. 2nd, without seeing your code, we can't help you. Have you checked the DB with another tool to verify that the record was actually added to the database? Are you catching SQL errors and doing something useful with them so you can see why your insert is failing (if it is)? On Friday 05 September 2003 10:30 pm, you wrote: Hi, Maybe it's a stupid question. Built jsps for addingsearching with MySQL. First listing all existing records in db and then adding a new one into database, then listing all records again. Now the list is the same as previous. How to solve it? THX - 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: Simple question about JSP page
Did you commit the Add transaction prior to loading the list again? More details would be helpful prior to making any more guesses. Cheers Christopher Marsh-Bourdon Pyplia Limited On 6/9/03 3:30, engp0510 [EMAIL PROTECTED] wrote: Hi, Maybe it's a stupid question. Built jsps for addingsearching with MySQL. First listing all existing records in db and then adding a new one into database, then listing all records again. Now the list is the same as previous. How to solve it? THX - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Simple question about JSP page
Hi, Maybe it's a stupid question. Built jsps for addingsearching with MySQL. First listing all existing records in db and then adding a new one into database, then listing all records again. Now the list is the same as previous. How to solve it? THX - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
default path - simple question
I am new at using Tomcat and have a basic question. I have gone through the config files but haven't been able to find out where to set the default catalina_home directory. I have a web application that is set to c:\webapp. I would like to set Tomcat to see that directory and use it as default for serving this webapp. The main problem is that the application has its own directory structure and makes calls to it accordingly. Sometimes including the entire c:\webapp path (I didn't develop the app). So I think that changing the Tomcat default directory would be easier than reworking all the links throughout the app. I am new to java/jsp development, so right now I am kinda winging it and learning as I go. Any information on where to look in the documentation to solve this problem would be great because I haven't found it yet. Or, if there is a simple solution, the answer would be great as well. Thanks John - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: default path - simple question
Howdy, I'm assuming you're using tomcat 4.x. Hopefully 4.1.27. I am new at using Tomcat and have a basic question. I have gone through the config files but haven't been able to find out where to set the default catalina_home directory. I have a web application that is set to c:\webapp. CATALINA_HOME is set as an environment variable. If not set, it is autodetected to be the directory above the one containing the startup/shutdown scripts. I would like to set Tomcat to see that directory and use it as default for serving this webapp. You can set the webapp's docBase using that attribute in the Context element for your webapp in $CATALINA_HOME/conf/server.xml. Alternatively, you can set the Host's appBase from which all docBases for the host are derived in the Host element in server.xml. Read the configuration reference in the tomcat docs for more details. The main problem is that the application has its own directory structure and makes calls to it accordingly. Sometimes including the entire c:\webapp path (I didn't develop the app). So I think that changing the Tomcat default directory would be easier than reworking all the links throughout the app. You might be right about the relative ease of changing. It depends on how exactly the webapp is coded. If it's consistent in its code, you might be able to change things quickly using Perl or a similar tool. I am new to java/jsp development, so right now I am kinda winging it and learning as I go. Any information on where to look in the documentation to solve this problem would be great because I haven't found it yet. Or, if there is a simple solution, the answer would be great as well. One lesson is not to code webapps like your current one, but instead use the directory structure outlined in the tomcat app developer's guide: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/index.html Specifically, try to use relative links wherever possible, don't include the webapp's name, host name, or port in a hard-coded way in any links. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
simple question - mapping url
How do I map www.site.com/support to www.site.com/html/help/support1.html? Simple question but cannot find relevant documentation. Thanks James _ Use MSN Messenger to send music and pics to your friends http://www.msn.co.uk/messenger - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: simple question - mapping url
What environment? What do you mean by map? Tomcat alone or Tomcat + Apache? If Tomcat + Apache, what connector? In Tomcat alone: Context path=/support docBase=/some/path/www.site.com/html/help /Context Then in /some/path/www.site.com/html/help/WEB-INF/web.xml add support1.html as a welcome file. Then turn off directory listing. John On Thu, 17 Jul 2003 13:31:05 +, James Richmond [EMAIL PROTECTED] wrote: How do I map www.site.com/support to www.site.com/html/help/support1.html? Simple question but cannot find relevant documentation. Thanks James _ Use MSN Messenger to send music and pics to your friends http://www.msn.co.uk/messenger - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: simple question - mapping url
Howdy, You could just put a simple index.html under the support directory which has a meta refresh tag redirecting to /html/help/support1.html. Tomcat doesn't have a URL rewriting engine, but the above is one mechanism to accomplish what you want. There are other ways, of increasing complexity. Yoav Shapira Millennium ChemInformatics -Original Message- From: James Richmond [mailto:[EMAIL PROTECTED] Sent: Thursday, July 17, 2003 9:31 AM To: [EMAIL PROTECTED] Subject: simple question - mapping url How do I map www.site.com/support to www.site.com/html/help/support1.html? Simple question but cannot find relevant documentation. Thanks James _ Use MSN Messenger to send music and pics to your friends http://www.msn.co.uk/messenger - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Simple question on building mod_jk
hey guys i am attempting to build mod)jk from source, so I just downloaded jakarta-tomcat-connectors-jk-1.2.4-src.tar.gz I just unzipped it, and I guess the next step is doing the ./configure command but i can't find that in the uzipped directory and the readme doesn't seem to help me that much. Am I going about this all wrong? could someone help me out? *---* * Dumisani Nlebgwa* * 631 216 1622* * You can't pronounce my name?* * - but its so phonetic! * *---* - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Simple question on building mod_jk
Run buildconf.sh. John On Tue, 8 Jul 2003 15:13:40 -0400 (EDT), Dumisani Nlebgwa [EMAIL PROTECTED] wrote: hey guys i am attempting to build mod)jk from source, so I just downloaded jakarta-tomcat-connectors-jk-1.2.4-src.tar.gz I just unzipped it, and I guess the next step is doing the ./configure command but i can't find that in the uzipped directory and the readme doesn't seem to help me that much. Am I going about this all wrong? could someone help me out? *---* * Dumisani Nlebgwa* * 631 216 1622* * You can't pronounce my name?* * -but its so phonetic! * *---* - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Simple question on Unicode URL in Tomcat
Dear all: I have a simple question regarding to the Unicode URL support in Tomcat. If I pass a Unicode URL to Tomcat, can it retrieve the targeted content? Some of our web pages are named under double byte characters. We have tried various ways but all have failed. If you have a work around, please let us know. Many thanks. John
Simple question on Unicode URL in Tomcat
Dear all: I have a simple question regarding to the Unicode URL support in Tomcat. If I pass a Unicode URL to Tomcat, can it retrieve the targeted content? Some of our web pages are named under double byte characters. We have tried various ways to make it work but all failed. If you have a work around, please let us know. Many thanks. John
Re: Simple question on Unicode URL in Tomcat
Hiho, try something like: String s = URLEncoder.encode(s, enc); s is your URL and enc is the java encoding such as Shift_JIS. See URLEncoder for more info. Will work from java 1.4 I believe. Had the same problem and this seems to solve it just fine. -- Shawn Happily using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Simple Question
Howdy, None of your assumptions are wrong. Check/post your logs, as I bet they contain some errors... Yoav Shapira Millennium ChemInformatics -Original Message- From: Vy Ho [mailto:[EMAIL PROTECTED] Sent: Saturday, March 08, 2003 10:00 AM To: Tomcat Users List Subject: Re: Simple Question I tried to stop and start and reload. All say successful, but none of them work. What happen is that I have a parameter in the web.xml file. Each time the Tomcat start up, my application read this parameter. The problem is that if I change the parameter value in the web.xml file, and stop+start+reload, the web.xml file should be read again, and also, I assume all my JSP would call init function again. Unless one of these assumption is wrong, something is wrong with the manager. Could some of you give me some insight? Thank you very much. Vy Ho Vy Ho wrote: Thank you all for helping me out. I still don't know what the problem is yet. However, your advices let me know what is the outcome I should expect when using the manager to restart the server. My web.xml seems to be good (since stop and restart the tomcat server manually, that is not using the manager, my changes are good). I'll do some more investigating to see what is going on. Again, thank you all. - 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] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Simple Question
I tried to stop and start and reload. All say successful, but none of them work. What happen is that I have a parameter in the web.xml file. Each time the Tomcat start up, my application read this parameter. The problem is that if I change the parameter value in the web.xml file, and stop+start+reload, the web.xml file should be read again, and also, I assume all my JSP would call init function again. Unless one of these assumption is wrong, something is wrong with the manager. Could some of you give me some insight? Thank you very much. Vy Ho Vy Ho wrote: Thank you all for helping me out. I still don't know what the problem is yet. However, your advices let me know what is the outcome I should expect when using the manager to restart the server. My web.xml seems to be good (since stop and restart the tomcat server manually, that is not using the manager, my changes are good). I'll do some more investigating to see what is going on. Again, thank you all. - 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: Simple Question
On Mon, 3 Mar 2003, Mike Jackson wrote: Date: Mon, 3 Mar 2003 08:58:44 -0800 From: Mike Jackson [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: RE: Simple Question The web.xml is only read when the server is restarted. The browser has nothing to do with it. It is also read again if you use the Manager stop and start commands. it's also read again if you remove and then install it. As the original questioner noted, web.xml is *not* reread when the reload command is used. This is a performance enhancement for people who are simply updating compiled classes -- parsing takes longer, so you have to explicitly ask for it via one of the above techniques. --mikej Craig - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Simple Question
Thank you all for helping me out. I still don't know what the problem is yet. However, your advices let me know what is the outcome I should expect when using the manager to restart the server. My web.xml seems to be good (since stop and restart the tomcat server manually, that is not using the manager, my changes are good). I'll do some more investigating to see what is going on. Again, thank you all. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Simple Question
I have a very simple question, and if you are a bit experienced in tomcat, you probably would know. I would really appreciate any links, hints, tips or advices. The question is this, if I change an application deployment file (web.xml), and then use the tomcat manager to restart the application (through the web), would the change in the web.xml file be used? Is the restart as of the above action is the same as a restart of the tomcat server (application) itself (that is to stop and start the whole server)? If the above does not work (I tried to restart, and it says restart successfully, but the xml file does not seem to be read), then how to I do this without actually restart the server? Thank you very much again for any help. VD - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Simple Question
even if u dont restart the SERVER again, the moment u open the new browser the web.xml should be read again. But at time if this doens work then its better to RESTART the server. After that the new web.xml will be read for sure. Are u sure that ur mapping for the servlets and all that stuff is right inside the web.xml ? u may want to check that once more. Swapneel Dange 505-642-4126 http://www.cs.nmsu.edu/~sdange From: Vy Ho [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Simple Question Date: Sun, 02 Mar 2003 23:29:23 -0500 I have a very simple question, and if you are a bit experienced in tomcat, you probably would know. I would really appreciate any links, hints, tips or advices. The question is this, if I change an application deployment file (web.xml), and then use the tomcat manager to restart the application (through the web), would the change in the web.xml file be used? Is the restart as of the above action is the same as a restart of the tomcat server (application) itself (that is to stop and start the whole server)? If the above does not work (I tried to restart, and it says restart successfully, but the xml file does not seem to be read), then how to I do this without actually restart the server? Thank you very much again for any help. VD - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Simple Question
The web.xml is only read when the server is restarted. The browser has nothing to do with it. --mikej -=- mike jackson [EMAIL PROTECTED] -Original Message- From: Swapneel Dange [mailto:[EMAIL PROTECTED] Sent: Monday, March 03, 2003 8:51 AM To: [EMAIL PROTECTED] Subject: Re: Simple Question even if u dont restart the SERVER again, the moment u open the new browser the web.xml should be read again. But at time if this doens work then its better to RESTART the server. After that the new web.xml will be read for sure. Are u sure that ur mapping for the servlets and all that stuff is right inside the web.xml ? u may want to check that once more. Swapneel Dange 505-642-4126 http://www.cs.nmsu.edu/~sdange From: Vy Ho [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Simple Question Date: Sun, 02 Mar 2003 23:29:23 -0500 I have a very simple question, and if you are a bit experienced in tomcat, you probably would know. I would really appreciate any links, hints, tips or advices. The question is this, if I change an application deployment file (web.xml), and then use the tomcat manager to restart the application (through the web), would the change in the web.xml file be used? Is the restart as of the above action is the same as a restart of the tomcat server (application) itself (that is to stop and start the whole server)? If the above does not work (I tried to restart, and it says restart successfully, but the xml file does not seem to be read), then how to I do this without actually restart the server? Thank you very much again for any help. VD - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail - 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: Simple Question
Howdy, even if u dont restart the SERVER again, the moment u open the new browser the web.xml should be read again. Not true. The deployment descriptor is re-read only on application restart. One can restart the application via the manager webapp, or by restarting the server itself. Are u sure that ur mapping for the servlets and all that stuff is right inside the web.xml ? u may want to check that once more. That's good advice. Check the tomcat logs for any errors in parsing the web.xml or other configuration files. Yoav Shapira Millennium ChemInformatics This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Simple Question
I have a very simple question, and if you are a bit experienced in tomcat, you probably would know. I would really appreciate any links, hints, tips or advices. The question is this, if I change an application deployment file (web.xml), and then use the tomcat manager to restart the application (through the web), would the change in the web.xml file be used? Is the restart as of the above action is the same as a restart of the tomcat server (application) itself (that is to stop and start the whole server)? If you use the manager it will be re-read. Or if you restart the server it will be re-read. If the above does not work (I tried to restart, and it says restart successfully, but the xml file does not seem to be read), then how to I do this without actually restart the server? If it doesn't work you might want to make sure you saved the changes. Thank you very much again for any help. VD --mikej -=- mike jackson [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Simple Question - HTTP Status 404 error
You also need to map your servlet to a URL in your web.xml file. Check the examples web.xml file to see how. John -Original Message- From: Sanjeevkumar Cherengotil [mailto:[EMAIL PROTECTED]] Sent: Friday, February 14, 2003 1:47 AM To: Tomcat Users List Subject: Simple Question - HTTP Status 404 error Hi All, I have installed tomcat-4.1.18 on my windows 2000 machine. I tried to develop a simple application. My Jsps are workign fine. When I am forwarding to a servlet from a JSP, its throwing 404 error. Here is what I did... 1 . After installing the tomcat server, i added my directory structure like TOMCAT_HOME\webapps\myapp1 TOMCAT_HOME\webapps\myapp1\WEB-INF TOMCAT_HOME\webapps\myapp1\WEB-INF\Classes TOMCAT_HOME\webapps\myapp1\lib 2. Added a new ServletContext in server.xml as follows Context path=/myapp1 docBase=myapp1 debug=0 reloadable =true / 3. Put my JSPs directly under TOMCAT_HOME\webapps\myapp1 4. Added a new Servlet (LoginServlet.java) with package name 'com.myapp1' and put under TOMCAT_HOME\webapps\myapp1\WEB-INF\Classes\com\myapp1 5. Edited my web.xml and it has only entry as follows web-app servlet servlet-namelogin/servlet-name servlet-classcom.myapp1.LoginServlet/servlet-class /servlet /web-app 6. I'm calling the servlet from my JSP as follows.. form name=loginForm method=post action =servlet/myapp1/login Note: I tried various action properties like action=servlet/login action=servlet/com.myapp1.LoginServlet ...etc This time I'm getting a 404 error. I can't find any errors in log files too(I looked at the log files in TOMCAT_HOME\logs directory,.. any other error logs are maintained?? Do I need to setup any classpath stuff to make it work? Please help me to find out where did I go wrong.. Thanks in advance..:) Thanks, Sanjeev - luck is what happens when preparation meets opportunity - Sanjeev Kumar C K Senior Software Engineer IT Solutions India Private Ltd Ph : 044-28212877 / 78 , ext - 2315 . - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.449 / Virus Database: 251 - Release Date: 1/27/2003 --- Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.449 / Virus Database: 251 - Release Date: 1/27/2003 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Simple Question - HTTP Status 404 error
Hi All, I have installed tomcat-4.1.18 on my windows 2000 machine. I tried to develop a simple application. My Jsps are workign fine. When I am forwarding to a servlet from a JSP, its throwing 404 error. Here is what I did... 1 . After installing the tomcat server, i added my directory structure like TOMCAT_HOME\webapps\myapp1 TOMCAT_HOME\webapps\myapp1\WEB-INF TOMCAT_HOME\webapps\myapp1\WEB-INF\Classes TOMCAT_HOME\webapps\myapp1\lib 2. Added a new ServletContext in server.xml as follows Context path=/myapp1 docBase=myapp1 debug=0 reloadable =true / 3. Put my JSPs directly under TOMCAT_HOME\webapps\myapp1 4. Added a new Servlet (LoginServlet.java) with package name 'com.myapp1' and put under TOMCAT_HOME\webapps\myapp1\WEB-INF\Classes\com\myapp1 5. Edited my web.xml and it has only entry as follows web-app servlet servlet-namelogin/servlet-name servlet-classcom.myapp1.LoginServlet/servlet-class /servlet /web-app 6. I'm calling the servlet from my JSP as follows.. form name=loginForm method=post action =servlet/myapp1/login Note: I tried various action properties like action=servlet/login action=servlet/com.myapp1.LoginServlet ...etc This time I'm getting a 404 error. I can't find any errors in log files too(I looked at the log files in TOMCAT_HOME\logs directory,.. any other error logs are maintained?? Do I need to setup any classpath stuff to make it work? Please help me to find out where did I go wrong.. Thanks in advance..:) Thanks, Sanjeev - luck is what happens when preparation meets opportunity - Sanjeev Kumar C K Senior Software Engineer IT Solutions India Private Ltd Ph : 044-28212877 / 78 , ext - 2315 . - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
NEWBIE Simple question, (but not for me ?!?)
I added a directory to the webapps dir. I cannot get to it. Error 404. Although directories I added a week ago work ??? Now this new one cannot be seen. I've asked this question a lot over the last few days here; either its a completely STUPID question (most likely) or nobody can answer it. It's driving me up a wall. I swear I've tried everything I know, this has never happened before to me. Please help -wiley - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: NEWBIE Simple question, (but not for me ?!?)
Before this I was using the ISAPI redirect in iis for tomcat and I did all the changes in the worker file for apps. Thats not running anymore and I'm just using localhost8080/app/ . I put Context path=/simple docBase=tomcat/webapps/app/ debug=9 reloadable=true / in the server.xml file at the bottom of the file. I added a directory to the webapps dir. I cannot get to it. Error 404. Although directories I added a week ago work ??? Now this new one cannot be seen. I've asked this question a lot over the last few days here; either its a completely STUPID question (most likely) or nobody can answer it. It's driving me up a wall. I swear I've tried everything I know, this has never happened before to me. Please help -wiley - 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: NEWBIE Simple question, (but not for me ?!?)
what does the structure under tomcat/webapps/app/ look like? most of the cases when people use the context path, for a webapp in webapps they do this Context path=/simple docBase=app debug=9 reloadable=true / Filip -Original Message- From: jsp [mailto:[EMAIL PROTECTED]] Sent: Friday, February 07, 2003 3:19 PM To: 'Tomcat Users List' Subject: RE: NEWBIE Simple question, (but not for me ?!?) Before this I was using the ISAPI redirect in iis for tomcat and I did all the changes in the worker file for apps. That's not running anymore and I'm just using localhost8080/app/ . I put Context path=/simple docBase=tomcat/webapps/app/ debug=9 reloadable=true / in the server.xml file at the bottom of the file. I added a directory to the webapps dir. I cannot get to it. Error 404. Although directories I added a week ago work ??? Now this new one cannot be seen. I've asked this question a lot over the last few days here; either it's a completely STUPID question (most likely) or nobody can answer it. It's driving me up a wall. I swear I've tried everything I know, this has never happened before to me. Please help -wiley - 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: NEWBIE Simple question, (but not for me ?!?)
Hi fillip thanks, basically I just want to see an index.html inside the app folder under tomcat. Nothing fancy, nothing special. I've got other applications sitting in webapps that come up fine that specified with the redirector ( which is gone now ) now I cant add new dir.. I even uninstalled tomcat, put a fresh tomcat up put my directorys back and I still get see new directorys -Original Message- From: Filip Hanik [mailto:[EMAIL PROTECTED]] Sent: Friday, February 07, 2003 3:16 PM To: Tomcat Users List Subject: RE: NEWBIE Simple question, (but not for me ?!?) what does the structure under tomcat/webapps/app/ look like? most of the cases when people use the context path, for a webapp in webapps they do this Context path=/simple docBase=app debug=9 reloadable=true / Filip -Original Message- From: jsp [mailto:[EMAIL PROTECTED]] Sent: Friday, February 07, 2003 3:19 PM To: 'Tomcat Users List' Subject: RE: NEWBIE Simple question, (but not for me ?!?) Before this I was using the ISAPI redirect in iis for tomcat and I did all the changes in the worker file for apps. That's not running anymore and I'm just using localhost8080/app/ . I put Context path=/simple docBase=tomcat/webapps/app/ debug=9 reloadable=true / in the server.xml file at the bottom of the file. I added a directory to the webapps dir. I cannot get to it. Error 404. Although directories I added a week ago work ??? Now this new one cannot be seen. I've asked this question a lot over the last few days here; either it's a completely STUPID question (most likely) or nobody can answer it. It's driving me up a wall. I swear I've tried everything I know, this has never happened before to me. Please help -wiley - 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]
RE: NEWBIE Simple question, (but not for me ?!?)
What this entry says is: Context path=/simple docBase=app debug=9 reloadable=true / http://localhost:8080/simple/index.html will open up the file /webapps/app/index.html notice that you changed the context from app to simple by using the context element. Filip -Original Message- From: jsp [mailto:[EMAIL PROTECTED]] Sent: Friday, February 07, 2003 3:26 PM To: 'Tomcat Users List' Subject: RE: NEWBIE Simple question, (but not for me ?!?) Hi fillip thanks, basically I just want to see an index.html inside the app folder under tomcat. Nothing fancy, nothing special. I've got other applications sitting in webapps that come up fine that specified with the redirector ( which is gone now ) now I cant add new dir.. I even uninstalled tomcat, put a fresh tomcat up put my directorys back and I still get see new directorys -Original Message- From: Filip Hanik [mailto:[EMAIL PROTECTED]] Sent: Friday, February 07, 2003 3:16 PM To: Tomcat Users List Subject: RE: NEWBIE Simple question, (but not for me ?!?) what does the structure under tomcat/webapps/app/ look like? most of the cases when people use the context path, for a webapp in webapps they do this Context path=/simple docBase=app debug=9 reloadable=true / Filip -Original Message- From: jsp [mailto:[EMAIL PROTECTED]] Sent: Friday, February 07, 2003 3:19 PM To: 'Tomcat Users List' Subject: RE: NEWBIE Simple question, (but not for me ?!?) Before this I was using the ISAPI redirect in iis for tomcat and I did all the changes in the worker file for apps. That's not running anymore and I'm just using localhost8080/app/ . I put Context path=/simple docBase=tomcat/webapps/app/ debug=9 reloadable=true / in the server.xml file at the bottom of the file. I added a directory to the webapps dir. I cannot get to it. Error 404. Although directories I added a week ago work ??? Now this new one cannot be seen. I've asked this question a lot over the last few days here; either it's a completely STUPID question (most likely) or nobody can answer it. It's driving me up a wall. I swear I've tried everything I know, this has never happened before to me. Please help -wiley - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: NEWBIE Simple question, (but not for me ?!?)
Thank you fillip. And for future reference, can you please tell me where in the server.xml file I add this entry ? Do I add it before the /server tag or after ? Thanks A LOT !!! -wiley -Original Message- From: Filip Hanik [mailto:[EMAIL PROTECTED]] Sent: Friday, February 07, 2003 3:24 PM To: Tomcat Users List Subject: RE: NEWBIE Simple question, (but not for me ?!?) What this entry says is: Context path=/simple docBase=app debug=9 reloadable=true / http://localhost:8080/simple/index.html will open up the file /webapps/app/index.html notice that you changed the context from app to simple by using the context element. Filip -Original Message- From: jsp [mailto:[EMAIL PROTECTED]] Sent: Friday, February 07, 2003 3:26 PM To: 'Tomcat Users List' Subject: RE: NEWBIE Simple question, (but not for me ?!?) Hi fillip thanks, basically I just want to see an index.html inside the app folder under tomcat. Nothing fancy, nothing special. I've got other applications sitting in webapps that come up fine that specified with the redirector ( which is gone now ) now I cant add new dir.. I even uninstalled tomcat, put a fresh tomcat up put my directorys back and I still get see new directorys -Original Message- From: Filip Hanik [mailto:[EMAIL PROTECTED]] Sent: Friday, February 07, 2003 3:16 PM To: Tomcat Users List Subject: RE: NEWBIE Simple question, (but not for me ?!?) what does the structure under tomcat/webapps/app/ look like? most of the cases when people use the context path, for a webapp in webapps they do this Context path=/simple docBase=app debug=9 reloadable=true / Filip -Original Message- From: jsp [mailto:[EMAIL PROTECTED]] Sent: Friday, February 07, 2003 3:19 PM To: 'Tomcat Users List' Subject: RE: NEWBIE Simple question, (but not for me ?!?) Before this I was using the ISAPI redirect in iis for tomcat and I did all the changes in the worker file for apps. That's not running anymore and I'm just using localhost8080/app/ . I put Context path=/simple docBase=tomcat/webapps/app/ debug=9 reloadable=true / in the server.xml file at the bottom of the file. I added a directory to the webapps dir. I cannot get to it. Error 404. Although directories I added a week ago work ??? Now this new one cannot be seen. I've asked this question a lot over the last few days here; either it's a completely STUPID question (most likely) or nobody can answer it. It's driving me up a wall. I swear I've tried everything I know, this has never happened before to me. Please help -wiley - 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] - 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: NEWBIE Simple question, (but not for me ?!?)
make a search for 'Context path=/examples ' in your server.xml file to see an example Filip -Original Message- From: jsp [mailto:[EMAIL PROTECTED]] Sent: Friday, February 07, 2003 3:32 PM To: 'Tomcat Users List' Subject: RE: NEWBIE Simple question, (but not for me ?!?) Thank you fillip. And for future reference, can you please tell me where in the server.xml file I add this entry ? Do I add it before the /server tag or after ? Thanks A LOT !!! -wiley -Original Message- From: Filip Hanik [mailto:[EMAIL PROTECTED]] Sent: Friday, February 07, 2003 3:24 PM To: Tomcat Users List Subject: RE: NEWBIE Simple question, (but not for me ?!?) What this entry says is: Context path=/simple docBase=app debug=9 reloadable=true / http://localhost:8080/simple/index.html will open up the file /webapps/app/index.html notice that you changed the context from app to simple by using the context element. Filip -Original Message- From: jsp [mailto:[EMAIL PROTECTED]] Sent: Friday, February 07, 2003 3:26 PM To: 'Tomcat Users List' Subject: RE: NEWBIE Simple question, (but not for me ?!?) Hi fillip thanks, basically I just want to see an index.html inside the app folder under tomcat. Nothing fancy, nothing special. I've got other applications sitting in webapps that come up fine that specified with the redirector ( which is gone now ) now I cant add new dir.. I even uninstalled tomcat, put a fresh tomcat up put my directorys back and I still get see new directorys -Original Message- From: Filip Hanik [mailto:[EMAIL PROTECTED]] Sent: Friday, February 07, 2003 3:16 PM To: Tomcat Users List Subject: RE: NEWBIE Simple question, (but not for me ?!?) what does the structure under tomcat/webapps/app/ look like? most of the cases when people use the context path, for a webapp in webapps they do this Context path=/simple docBase=app debug=9 reloadable=true / Filip -Original Message- From: jsp [mailto:[EMAIL PROTECTED]] Sent: Friday, February 07, 2003 3:19 PM To: 'Tomcat Users List' Subject: RE: NEWBIE Simple question, (but not for me ?!?) Before this I was using the ISAPI redirect in iis for tomcat and I did all the changes in the worker file for apps. That's not running anymore and I'm just using localhost8080/app/ . I put Context path=/simple docBase=tomcat/webapps/app/ debug=9 reloadable=true / in the server.xml file at the bottom of the file. I added a directory to the webapps dir. I cannot get to it. Error 404. Although directories I added a week ago work ??? Now this new one cannot be seen. I've asked this question a lot over the last few days here; either it's a completely STUPID question (most likely) or nobody can answer it. It's driving me up a wall. I swear I've tried everything I know, this has never happened before to me. Please help -wiley - 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] - 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: NEWBIE Simple question, (but not for me ?!?)
WILL DO ! makes total sense ! Thanks man ! -wiley -Original Message- From: Filip Hanik [mailto:[EMAIL PROTECTED]] Sent: Friday, February 07, 2003 3:27 PM To: Tomcat Users List Subject: RE: NEWBIE Simple question, (but not for me ?!?) make a search for 'Context path=/examples ' in your server.xml file to see an example Filip -Original Message- From: jsp [mailto:[EMAIL PROTECTED]] Sent: Friday, February 07, 2003 3:32 PM To: 'Tomcat Users List' Subject: RE: NEWBIE Simple question, (but not for me ?!?) Thank you fillip. And for future reference, can you please tell me where in the server.xml file I add this entry ? Do I add it before the /server tag or after ? Thanks A LOT !!! -wiley -Original Message- From: Filip Hanik [mailto:[EMAIL PROTECTED]] Sent: Friday, February 07, 2003 3:24 PM To: Tomcat Users List Subject: RE: NEWBIE Simple question, (but not for me ?!?) What this entry says is: Context path=/simple docBase=app debug=9 reloadable=true / http://localhost:8080/simple/index.html will open up the file /webapps/app/index.html notice that you changed the context from app to simple by using the context element. Filip -Original Message- From: jsp [mailto:[EMAIL PROTECTED]] Sent: Friday, February 07, 2003 3:26 PM To: 'Tomcat Users List' Subject: RE: NEWBIE Simple question, (but not for me ?!?) Hi fillip thanks, basically I just want to see an index.html inside the app folder under tomcat. Nothing fancy, nothing special. I've got other applications sitting in webapps that come up fine that specified with the redirector ( which is gone now ) now I cant add new dir.. I even uninstalled tomcat, put a fresh tomcat up put my directorys back and I still get see new directorys -Original Message- From: Filip Hanik [mailto:[EMAIL PROTECTED]] Sent: Friday, February 07, 2003 3:16 PM To: Tomcat Users List Subject: RE: NEWBIE Simple question, (but not for me ?!?) what does the structure under tomcat/webapps/app/ look like? most of the cases when people use the context path, for a webapp in webapps they do this Context path=/simple docBase=app debug=9 reloadable=true / Filip -Original Message- From: jsp [mailto:[EMAIL PROTECTED]] Sent: Friday, February 07, 2003 3:19 PM To: 'Tomcat Users List' Subject: RE: NEWBIE Simple question, (but not for me ?!?) Before this I was using the ISAPI redirect in iis for tomcat and I did all the changes in the worker file for apps. That's not running anymore and I'm just using localhost8080/app/ . I put Context path=/simple docBase=tomcat/webapps/app/ debug=9 reloadable=true / in the server.xml file at the bottom of the file. I added a directory to the webapps dir. I cannot get to it. Error 404. Although directories I added a week ago work ??? Now this new one cannot be seen. I've asked this question a lot over the last few days here; either it's a completely STUPID question (most likely) or nobody can answer it. It's driving me up a wall. I swear I've tried everything I know, this has never happened before to me. Please help -wiley - 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] - 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]
NEWBIE Simple question, (but not for me ?!?)
I added a directory to the webapps dir. I cannot get to it. Error 404. Although directories I added a week ago work ??? Now this new one cannot be seen. I've asked this question a lot over the last few days here; either its a completely STUPID question (most likely) or nobody can answer it. It's driving me up a wall. I swear I've tried everything I know, this has never happened before to me. Please help -wiley - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: NEWBIE Simple question, (but not for me ?!?)
Could there be a problem with your web.xml? Try checking the logs for errors loading the context. -- Tim Moore / Blackboard Inc. / Software Engineer 1899 L Street, NW / 5th Floor / Washington, DC 20036 Phone 202-463-4860 ext. 258 / Fax 202-463-4863 -Original Message- From: Wileynet [mailto:[EMAIL PROTECTED]] Sent: Friday, February 07, 2003 6:08 PM To: [EMAIL PROTECTED] Subject: NEWBIE Simple question, (but not for me ?!?) I added a directory to the webapps dir. I cannot get to it. Error 404. Although directories I added a week ago work ??? Now this new one cannot be seen. I've asked this question a lot over the last few days here; either it's a completely STUPID question (most likely) or nobody can answer it. It's driving me up a wall. I swear I've tried everything I know, this has never happened before to me. Please help -wiley - 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]
mod_jk redirect simple question
Hi, when you finally get your site up. How can you configure apache to do the following: http://IPaddress1.com --- redirect http://IPaddress1.com/dir/myfile.jsp Best, Stephen
Re: mod_jk redirect simple question
RewriteRule ^/$ /dir/myfile.jsp [PT] or RewriteRule ^/$ /dir/myfile.jsp [R] If myfile.jsp uses relative references to e.g. image files, then use the second. Otherwise, if you don't want myfile.jsp to show up in the Address bar, use the first. [EMAIL PROTECTED] wrote in message 01BB14133B43D2118ED300104B9C202B03CFC2FD@SQ_EXG1">news:01BB14133B43D2118ED300104B9C202B03CFC2FD@SQ_EXG1... Hi, when you finally get your site up. How can you configure apache to do the following: http://IPaddress1.com --- redirect http://IPaddress1.com/dir/myfile.jsp Best, Stephen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
A simple question
Hi, Wich is the best way to pass the Apache login to a servlet application with a request.getRemoteUser() sentence running under Tomcat. My versions are Apache 2.0.43 and Tomcat 4.18. I have test a lot of configurations like a connector with tomcatAuthentication=false and things like that, but I never success with it. Can somebody help me , please? Thank you. Aleix Vergés
Simple Question, change error page for request that is not in theserver.xml
How do I change the tomcat page that pops up when someone makes a request to a domain that tomcat does not have in the server.xml. I have people that will make requests that are not correct and I need them to be directed to a custom error page. Thanks -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
Simple Question on (Tomcat+JBoss) and Apache
Hi, I am using Apache 1.3.26 + Tomcat 4.0.4 (Catalina) which is embedded with JBoss. When I start JBOSS, is Tomcat also started or do we have to explicity start Ctatalina...? Any information is appreciated. THANKS! Manoj G. Kithany _ Send and receive Hotmail on your mobile device: http://mobile.msn.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
AW: Simple Question on (Tomcat+JBoss) and Apache
When I start JBOSS, is Tomcat also started or do we have to explicity start Ctatalina...? So far your catalina service archive is in the jboss deploy directory its start with jboss. trace the start output! Hth, Stefan -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: : Simple Question on (Tomcat+JBoss) and Apache
Thanks Stefan, My /jboss/server/default/deploy directory has following files: counter-service.xml ejb-management.jar hsqldb-service.xml jboss-local-jdbc.rar jboss-xa.rar jbossmq-destinations-service.xml jbossmq-service.xml jca-service.xml jms-ra.rar jms-service.xml jmx-ejb-adaptor.jar jmx-ejb-connector-server.sar jmx-html-adaptor.sar jmx-rmi-adaptor.sar mail-service.xml properties-service.xml scheduler-service.xml tomcat4-service.jar tomcat4-service.xml tomcat4-service.xml.save user-service.xml Thanks Manoj G. Kithany #From: Stefan Groschupf [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: AW: Simple Question on (Tomcat+JBoss) and Apache Date: Fri, 20 Sep 2002 00:10:43 +0200 When I start JBOSS, is Tomcat also started or do we have to explicity start Ctatalina...? So far your catalina service archive is in the jboss deploy directory its start with jboss. trace the start output! Hth, Stefan _ Send and receive Hotmail on your mobile device: http://mobile.msn.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
AW: : Simple Question on (Tomcat+JBoss) and Apache
counter-service.xml auto keys ejb-management.jar enterprice beans, you some? hsqldb-service.xml you use hypersonic sql? jboss-local-jdbc.rar jboss-xa.rar jbossmq-destinations-service.xml jbossmq-service.xml jca-service.xml Jboss security. jms-ra.rar jms-service.xml you use jms? jmx-ejb-adaptor.jar you use ejbs? jmx-ejb-connector-server.sar jmx-html-adaptor.sar you want that someone can remote config xour machine on port 8082? jmx-rmi-adaptor.sar or via rmi? mail-service.xml you send mails? properties-service.xml jboss application property service scheduler-service.xml .. tomcat4-service.jar tomcat4-service.xml tomcat4-service.xml.save delete it! user-service.xml If that's is a production system, please read the jboss beginner pdf @ sourceforge.net Htht Stefan -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: AW: : Simple Question on (Tomcat+JBoss) and Apache
Hi Stefan, Thanks again. I am using Apache as Web Server, Tomcat as Application Server (for JSP/Servlets) and JBoss for EJB Container. From the files listed in my last email, do you mena to say it is not proper combination...? Please clarify. THANKS for your time! Manoj G. Kithany From: Stefan Groschupf [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: AW: : Simple Question on (Tomcat+JBoss) and Apache Date: Fri, 20 Sep 2002 00:33:35 +0200 counter-service.xml auto keys ejb-management.jar enterprice beans, you some? hsqldb-service.xml you use hypersonic sql? jboss-local-jdbc.rar jboss-xa.rar jbossmq-destinations-service.xml jbossmq-service.xml jca-service.xml Jboss security. jms-ra.rar jms-service.xml you use jms? jmx-ejb-adaptor.jar you use ejbs? jmx-ejb-connector-server.sar jmx-html-adaptor.sar you want that someone can remote config xour machine on port 8082? jmx-rmi-adaptor.sar or via rmi? mail-service.xml you send mails? properties-service.xml jboss application property service scheduler-service.xml .. tomcat4-service.jar tomcat4-service.xml tomcat4-service.xml.save delete it! user-service.xml If that's is a production system, please read the jboss beginner pdf @ sourceforge.net Htht Stefan -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ Chat with friends online, try MSN Messenger: http://messenger.msn.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
AW: AW: : Simple Question on (Tomcat+JBoss) and Apache
From the files listed in my last email, do you mena to say it is not proper combination...? Please clarify. Not all, but this depends on your ejb application. When I have to port a application in to jboss. I normal copy the hole default/deploy directory. Delete the content and start try to copy the old files back in the deploy folder. Start with tomcat ejb database stuff and of curse your ear and war file. start - trace log - add needed services - start ... Again, if it's a production system please read the jboss quick start guide. I can tell you exactly what you need and _how to config_ until I don't know you ejb application. Stefan -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Simple question
Hi, I have a simple question, how can I set System properties inside a Context. It seems that in Tomcat 3.0 there was a Property tag in the ContextManager and now I can't seem to find the equivalent in Tomcat 4.0. Help! Thanks. Hamid -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Simple Question (I hope...)
I think your docBase should be webapps/test Context path=/test docBase=test debug=0 reloadable=true / Erwin Am Freitag, 5. April 2002 18:29 schrieben Sie: Hi there, I'm new to Tomcat and to this list, so apologies if this question has already been asked (I've checked the archives and can't find an answer). I'm trying to create a new context in server.xml. My current code is: Context path=/test docBase=test debug=0 reloadable=true / I've also created a directory within webapps called test, with sub directory WEB-INF and classes. And within the classes folder is my test class file (homepage.class). I've also created a web.xml file and placed it in the WEB-INF directory defining the servlet mappings for the new servlet (called homepage): web-app servlet servlet-namegreetings/servlet-name servlet-classhomepage/servlet-class /servlet servlet-mapping servlet-namegreetings/servlet-name url-pattern/test/please/url-pattern /servlet-mapping /web-app Using the manager app I've successfully added a new application (called test) but when I try to view the servlet, I get a 404 error ... any idea what I'm doing wrong? Thanks Adam Sefton Applications Developer ** This message may contain information which is confidential or privileged. If you are not the intended recipient, please advise the sender immediately by reply e-mail and delete this message and any attachments without retaining a copy. ** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Simple Question (I hope...)
Hi there, I'm new to Tomcat and to this list, so apologies if this question has already been asked (I've checked the archives and can't find an answer). I'm trying to create a new context in server.xml. My current code is: Context path=/test docBase=test debug=0 reloadable=true / I've also created a directory within webapps called test, with sub directory WEB-INF and classes. And within the classes folder is my test class file (homepage.class). I've also created a web.xml file and placed it in the WEB-INF directory defining the servlet mappings for the new servlet (called homepage): web-app servlet servlet-namegreetings/servlet-name servlet-classhomepage/servlet-class /servlet servlet-mapping servlet-namegreetings/servlet-name url-pattern/test/please/url-pattern /servlet-mapping /web-app Using the manager app I've successfully added a new application (called test) but when I try to view the servlet, I get a 404 error ... any idea what I'm doing wrong? Thanks Adam Sefton Applications Developer ** This message may contain information which is confidential or privileged. If you are not the intended recipient, please advise the sender immediately by reply e-mail and delete this message and any attachments without retaining a copy. ** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Simple Question (I hope...)
Could be several things. Since some details about your setup are, missing, please don't take offense if I state the obvious. Are you using Tomcat standalone or with Apache? Have you successfully gotten the Tomcat examples to work? If your homepage.class has a 'package' directive in the source, then you need to reference the fully qualified class name in your web.xml and your class file needs to be in the proper package subdirectories under WEB-INF/classes. Check the Tomcat logs. You should see some messages that reference your [/test] context if Tomcat is successfully deploying the context. Add load-on-startup1/load-on-startup to your web.xml. Restart Tomcat and if you class is being successfully loaded you should see greetings: init in the log. If your servlet is successfully loaded, then it's a URL problem. What URL are you using to test the servlet? According to your setup it should be http://hostname:{port}/test/please assuming you are using Tomcat as your webserver, otherwise the URL mapping is dependent upon your Apache config. I hope these ideas help... Post more details if not. Jeff - Original Message - From: Sefton, Adam [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Friday, April 05, 2002 10:29 AM Subject: Simple Question (I hope...) Hi there, I'm new to Tomcat and to this list, so apologies if this question has already been asked (I've checked the archives and can't find an answer). I'm trying to create a new context in server.xml. My current code is: Context path=/test docBase=test debug=0 reloadable=true / I've also created a directory within webapps called test, with sub directory WEB-INF and classes. And within the classes folder is my test class file (homepage.class). I've also created a web.xml file and placed it in the WEB-INF directory defining the servlet mappings for the new servlet (called homepage): web-app servlet servlet-namegreetings/servlet-name servlet-classhomepage/servlet-class /servlet servlet-mapping servlet-namegreetings/servlet-name url-pattern/test/please/url-pattern /servlet-mapping /web-app Using the manager app I've successfully added a new application (called test) but when I try to view the servlet, I get a 404 error ... any idea what I'm doing wrong? Thanks Adam Sefton Applications Developer ** This message may contain information which is confidential or privileged. If you are not the intended recipient, please advise the sender immediately by reply e-mail and delete this message and any attachments without retaining a copy. ** -- 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: Simple Question (I hope...)
either remove the application test from the manager application and it will run .I does not work to create application by the server.xml and the manager application at the same time Sefton, Adam [EMAIL PROTECTED] wrote: Hi there, I'm new to Tomcat and to this list, so apologies if this question has already been asked (I've checked the archives and can't find an answer). I'm trying to create a new context in server.xml. My current code is: debug=0 reloadable=true / I've also created a directory within webapps called test, with sub directory WEB-INF and classes. And within the classes folder is my test class file (homepage.class). I've also created a web.xml file and placed it in the WEB-INF directory defining the servlet mappings for the new servlet (called homepage): greetings homepage greetings /test/please Using the manager app I've successfully added a new application (called test) but when I try to view the servlet, I get a 404 error ... any idea what I'm doing wrong? Thanks Adam Sefton Applications Developer ** This message may contain information which is confidential or privileged. If you are not the intended recipient, please advise the sender immediately by reply e-mail and delete this message and any attachments without retaining a copy. ** -- To unsubscribe: For additional commands: Troubles with the list: - Do You Yahoo!? Yahoo! Tax Center - online filing with TurboTax
Simple Question
Support Tomcat IPv6? If so, support Tomcat IPv6+SSL? Thanks a lot, Gabi. -- - Gabriel Lopez Millan - Grupo ANTS-CIRCuS Facultad de Informática Universidad de Murcia (España) Tfo: +34 968367645 -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Simple Question
Hi López, Please note form Java2 SDK v1.4, Java starts to support IPv6. If you use Tomcat with j2sdk v1.4, then it might work. But it is very danger because there are only few (or no) achievement. Regards, Watanabe. In the message Simple Question [EMAIL PROTECTED] Gabriel López Millán [EMAIL PROTECTED] wrote: Gabriel López Support Tomcat IPv6? Gabriel López If so, support Tomcat IPv6+SSL? Gabriel López Thanks a lot, Gabi. Gabriel López -- Gabriel López - Gabriel López Gabriel Lopez Millan - Grupo ANTS-CIRCuS Gabriel López Facultad de Informática Gabriel López Universidad de Murcia (España) Tfo: +34 968367645 Gabriel López -- Gabriel López To unsubscribe: mailto:[EMAIL PROTECTED] Gabriel López For additional commands: mailto:[EMAIL PROTECTED] Gabriel López 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 4, just a simple question. Thanks
Thanks brian ! Brian Adams wrote: nope! no container. some people use JBoss (http://www.jboss.org) B -Original Message- From: Gustavo Mejia [mailto:[EMAIL PROTECTED]] Sent: Friday, March 01, 2002 12:18 PM To: [EMAIL PROTECTED] Subject: Tomcat 4, just a simple question. Hi everyone, I have a very simple question, do you know how Tomcat 4, manage the EJBs, do you know if this has a EJB container ?? Thanks a lot ! -- Saludos Gustavo Mejía Mora INFOTEC Tel: +(55) 5 624 28 00 Ext: 253 / 220 - We should take care not to make the intellect our god; it has, of course, powerful muscles, but no personality. - Albert Einstein -- 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] -- Saludos Gustavo Mejía Mora INFOTEC Tel: +(55) 5 624 28 00 Ext: 253 / 220 - We should take care not to make the intellect our god; it has, of course, powerful muscles, but no personality. - Albert Einstein -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Probably a simple question, but I'm at a loss!
I've been using win98 for my JSP-dabbling until recently when I bought Windows XP. I was interested in getting Jakarta-Tomcat to work with XP so I installed j2sdk-1_3_1_01 and Jakarta-Tomcat 4.01. I used the Start Tomcat shortcut, and was relieved to see my pages working on localhost:8080, but one thing didn't work: my guestbook which connects to a mysql server at my university would not function. Great I thought and added mm.mysql-2.0.7-bin.jar to JRE/LIB/EXT because that was what had to be done in win98. I stopped Tomcat and started it again, but now -none- of my pages would render and only a 500 internal server error would appear in ie6. It works if I uninstall Tomcat 4 again (not the db-connection, but the other JSP pages) but that is just too annoying and not how it should be. I hope my question is able to surface through the rant, though. :) -Eskil Lauritsen -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Probably a simple question, but I'm at a loss!
Hi Eskil Try to put the jdbc driver .jar file into the TOMCAT_HOME/lib directory. BR Jan. -Original Message- From: Eskil Lauritsen [mailto:[EMAIL PROTECTED]] Sent: 21. november 2001 11:27 To: [EMAIL PROTECTED] Subject: Probably a simple question, but I'm at a loss! I've been using win98 for my JSP-dabbling until recently when I bought Windows XP. I was interested in getting Jakarta-Tomcat to work with XP so I installed j2sdk-1_3_1_01 and Jakarta-Tomcat 4.01. I used the Start Tomcat shortcut, and was relieved to see my pages working on localhost:8080, but one thing didn't work: my guestbook which connects to a mysql server at my university would not function. Great I thought and added mm.mysql-2.0.7-bin.jar to JRE/LIB/EXT because that was what had to be done in win98. I stopped Tomcat and started it again, but now -none- of my pages would render and only a 500 internal server error would appear in ie6. It works if I uninstall Tomcat 4 again (not the db-connection, but the other JSP pages) but that is just too annoying and not how it should be. I hope my question is able to surface through the rant, though. :) -Eskil Lauritsen -- 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: Probably a simple question, but I'm at a loss!
Thanks, Jan. That cured the db-connection problem. :) Now, all that is left is to fix the have-to-uninstall-then-reinstall-tomcat-for-it-to-work-again-after-being-st opped problem. -Eskil Lauritsen - Original Message - From: Jan Søgaard [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, November 21, 2001 11:44 AM Subject: RE: Probably a simple question, but I'm at a loss! Hi Eskil Try to put the jdbc driver .jar file into the TOMCAT_HOME/lib directory. BR Jan. -Original Message- From: Eskil Lauritsen [mailto:[EMAIL PROTECTED]] Sent: 21. november 2001 11:27 To: [EMAIL PROTECTED] Subject: Probably a simple question, but I'm at a loss! I've been using win98 for my JSP-dabbling until recently when I bought Windows XP. I was interested in getting Jakarta-Tomcat to work with XP so I installed j2sdk-1_3_1_01 and Jakarta-Tomcat 4.01. I used the Start Tomcat shortcut, and was relieved to see my pages working on localhost:8080, but one thing didn't work: my guestbook which connects to a mysql server at my university would not function. Great I thought and added mm.mysql-2.0.7-bin.jar to JRE/LIB/EXT because that was what had to be done in win98. I stopped Tomcat and started it again, but now -none- of my pages would render and only a 500 internal server error would appear in ie6. It works if I uninstall Tomcat 4 again (not the db-connection, but the other JSP pages) but that is just too annoying and not how it should be. I hope my question is able to surface through the rant, though. :) -Eskil Lauritsen -- 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: JDBCRealm... simple question
Is it normal that I get a JDBCRealm:The database connection is null or was found to be closed. Trying to re-open it. message every time I send a post or a get request??? Everything works fine but I'm worrying about performance degradation since the connection seems to be reopen for every call. The source for JDBCRealm should be in TOMCAT_HOME/src/org/apache/tomcat/request/. You can modify it to your hearts content. This is definitely something that could be managed in a pool or something along those lines. --- Michael Wentzel Software Developer Software As We Think - http://www.aswethink.com
Instantiating/declaring classes in JSP (Was: simple question)
At 11:55 PM 19/07/01, you wrote: (And could you possibly use a more descriptive title in future? Simple question could be anything, and a lot of people would delete it immediately without reading...) I know this is somewhat off topic, but I have looked everywhere and can't find the answer to this simple question... Is there a way to test and see whether a variable has been instantiated and if it hasn't, instantiate it? Object myObject; if (myObject == null) { myObject = new Object(); } Tada! My problem is that I am working on an application that makes use of jsp's that are included inside many others. I want to use a bean, but if I call it by a different name in every spot, then they don't share information. If I use the same name, and the containing jsp has already declared that it is using the bean, then it gives me an error and says it has already been declared. Any ideas on how I can get around this? Thank you in advance for any help!!! Ah! A different question... Try jsp:usebean... If the bean is declared, it'll use it. If not, it'll instantiate a new one. If you want to know whether you've instantiated it, or if you are reusing a previously instatiated class, it's a bit more difficult. The only way I can think of is by setting a variable internally on instantiation and checking that. Of course, you'd have to ensure that all the developers do the same thing. Jim -- * Jim Cheesman * Trabajo: [EMAIL PROTECTED] - (34)(91) 724 9200 x 2360 One should never generalize.
simple question
I know this is somewhat off topic, but I have looked everywhere and can't find the answer to this simple question... Is there a way to test and see whether a variable has been instantiated and if it hasn't, instantiate it? My problem is that I am working on an application that makes use of jsp's that are included inside many others. I want to use a bean, but if I call it by a different name in every spot, then they don't share information. If I use the same name, and the containing jsp has already declared that it is using the bean, then it gives me an error and says it has already been declared. Any ideas on how I can get around this? Thank you in advance for any help!!! Brandon
RE: Simple question
Title: RE: Simple question I know it's not Tomcat, but I was working with WebLogic, and it didn't have the capability to disable directory browsing. So, I put in a redirect page (index.html) into each directory and that took care of it. Kinda tedious, but necessary at times. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Sunday, June 03, 2001 8:08 AM To: [EMAIL PROTECTED] Subject: Simple question Hi, I know this question is posted over and over again, but still I failed to find an answer (for Tomcat4 that is): How can I disable directory browsing in Tomcat 4.0b3 ? Regards, Wilko Hische
Simple question
Hi, I know this question is posted over and over again, but still I failed to find an answer (for Tomcat4 that is): How can I disable directory browsing in Tomcat 4.0b3 ? Regards, Wilko Hische
simple question
Hi, Im new to using to tomcat. My query is if I have a directory in TOMCAT_HOME/webapps/ called games can I have other directories in the games directory (for each different) and then the normal structure within these sub-directories, like will tomcat build a context for each of these sub-directories when I start it up. thanks, T.J
Re: simple question
No, just the parent. I mean, the one you've listed in the server.xml file (docBase entry). regards. m- Hi, Im new to using to tomcat. My query is if I have a directory in TOMCAT_HOME/webapps/ called games can I have other directories in the games directory (for each different) and then the normal structure within these sub-directories, like will tomcat build a context for each of these sub-directories when I start it up. thanks, T.J
Re: simple question
i have found that tomcat will serve JSPs below the docbase as well...when i use iis and isapi_redirect.dll At 12:24 04/23/2001 -0300, you wrote: No, just the parent. I mean, the one you've listed in the server.xml file (docBase entry). regards. m- Hi, Im new to using to tomcat. My query is if I have a directory in TOMCAT_HOME/webapps/ called games can I have other directories in the games directory (for each different) and then the normal structure within these sub-directories, like will tomcat build a context for each of these sub-directories when I start it up. thanks, T.J _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
simple question for servlet-configuration of tomcat
Hello, since several weeks I am testing tomcat as a Servlet Engine with great success. I use Win98 SE2 with PWS. Now I have a simple problem (I think): What I have to do (in the configuration files) when I want to start my servlets with the URL: http://localhost/servlet/TestServlet and not with a WEPAPP-Directory like http://localhost/example/servlet/TestServlet Which settings I have to do in the configuration-files and in which directory I have to put my Servlets ? Thanks a lot for your answer With best regards M. Thorand TOPO graphics Geographische Informationssysteme GmbH EMail: [EMAIL PROTECTED]
RE: simple question for servlet-configuration of tomcat
Please look at the answers after posting a question. I have already answered to your question yesterday: Hi, You just have to declare a context like this: Context path="" docBase="/path/to/myapp" debug="0" reloadable="false" /Context in your TOMCAT_HOME/conf/server.xml. You should also remove the ROOT context and the ROOT directory that is in the webapp directory. Anyway, in real world, I mean in production environment, you should remove all the contexts that don't deal with your app, and all the subdirectory within the /webapp. Benot Hello, since several weeks I am testing tomcat as a Servlet Engine with great success. I use Win98 SE2 with PWS. Now I have a simple problem (I think): What I have to do (in the configuration files) when I want to start my servlets with the URL: http://localhost/servlet/TestServlet and not with a WEPAPP-Directory like http://localhost/example/servlet/TestServlet Which settings I have to do in the configuration-files and in which directory I have to put my Servlets ? Thanks a lot for your answer With best regards M. Thorand TOPO graphics Geographische Informationssysteme GmbH EMail: [EMAIL PROTECTED]
RE: simple question for servlet-configuration of tomcat
What I have to do (in the configuration files) when I want to start my servlets with the URL: http://localhost/servlet/TestServlet and not with a WEPAPP-Directory like http://localhost/example/servlet/TestServlet Which settings I have to do in the configuration-files and in which directory I have to put my Servlets ? You just have to declare a context like this: Context path="" docBase="/path/to/myapp" debug="0" reloadable="false" /Context I don't think this is necessarily correct in all circumstances. Try as I might I can't get any of the automatically generated files to reflect that I want to access my servlets at /webapp/servletalias rather than at /webapp/servlet/servletalias I did succeed in making this work with tomcat and apache by editing my tomcat.conf file as follows: Alias /webApp "C:/ApacheGroup/Tomcat/webapps/webApp " Directory "C:/ApacheGroup/Tomcat/webapps/webApp " Options Indexes FollowSymLinks /Directory ApJServMount /webApp /webApp
Re: simple question for servlet-configuration of tomcat
You simply need to put your stuff uner ROOT context. - Original Message - From: "TOPO graphics GmbH" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, April 06, 2001 7:19 AM Subject: simple question for servlet-configuration of tomcat Hello, since several weeks I am testing tomcat as a Servlet Engine with great success. I use Win98 SE2 with PWS. Now I have a simple problem (I think): What I have to do (in the configuration files) when I want to start my servlets with the URL: http://localhost/servlet/TestServlet and not with a WEPAPP-Directory like http://localhost/example/servlet/TestServlet Which settings I have to do in the configuration-files and in which directory I have to put my Servlets ? Thanks a lot for your answer With best regards M. Thorand TOPO graphics Geographische Informationssysteme GmbH EMail: [EMAIL PROTECTED]
Servlet auto-reloading under ROOT context (was RE: simple question for servlet-configuration of tomcat)
On a slightly related note: are servlets under the ROOT context automatically reloaded? The docs in server.xml would appear to indicate that reloadable="true" is the default, but there's no entry for the ROOT context in my server.xml file, and it appears to be inconsistent on our server with regard to reloading a servlet which has (definitely) changed in webapps/ROOT/WEB-INF/classes (i.e., Tomcat apparently reloaded the servlet each time the class was changed, then suddenly stopped doing so, with no configuration changes made). Would placing an explicit CONTEXT entry for the ROOT in the server.xml file, i.e., Context path="/" docbase="webapps/ROOT" crossContext="false" debug="0" reloadable="true" /Context resolve this issue? Has anyone else encountered a similar problem? I can supply more configuration upon request, but at least I'll note that the server configuration is with Apache 1.3.14 and Tomcat 3.2.1 running Redhat Linux 7.0 on an Intel box, JDK 1.2.2. Tomcat, aside from slight changes for mod_jk operation with Apache, is unchanged from the default configuration. Regards, Joel Parramore -Original Message- From: Mandar Joshi [mailto:[EMAIL PROTECTED]] Sent: Friday, April 06, 2001 2:51 PM To: [EMAIL PROTECTED] Subject: Re: simple question for servlet-configuration of tomcat You simply need to put your stuff uner ROOT context. - Original Message - From: "TOPO graphics GmbH" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, April 06, 2001 7:19 AM Subject: simple question for servlet-configuration of tomcat Hello, since several weeks I am testing tomcat as a Servlet Engine with great success. I use Win98 SE2 with PWS. Now I have a simple problem (I think): What I have to do (in the configuration files) when I want to start my servlets with the URL: http://localhost/servlet/TestServlet and not with a WEPAPP-Directory like http://localhost/example/servlet/TestServlet Which settings I have to do in the configuration-files and in which directory I have to put my Servlets ? Thanks a lot for your answer With best regards M. Thorand TOPO graphics Geographische Informationssysteme GmbH EMail: [EMAIL PROTECTED]
Re: Servlet auto-reloading under ROOT context (was RE: simple question for servlet-configuration of tomcat)
I have a *similar* problem. None of my servlets are being reloaded using Tomcat 4, b3. This includes the servlets in /examples context. The only way I've been able to get servlets to reload (aside from re-starting Tomcat) is to run /manager/reload?path=/someContext. Apparently servlet reloading is completely broke in T4 b2/3. - Original Message - From: "Joel Parramore" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, April 06, 2001 2:28 PM Subject: Servlet auto-reloading under ROOT context (was RE: simple question for servlet-configuration of tomcat) On a slightly related note: are servlets under the ROOT context automatically reloaded? The docs in server.xml would appear to indicate that reloadable="true" is the default, but there's no entry for the ROOT context in my server.xml file, and it appears to be inconsistent on our server with regard to reloading a servlet which has (definitely) changed in webapps/ROOT/WEB-INF/classes (i.e., Tomcat apparently reloaded the servlet each time the class was changed, then suddenly stopped doing so, with no configuration changes made). Would placing an explicit CONTEXT entry for the ROOT in the server.xml file, i.e., Context path="/" docbase="webapps/ROOT" crossContext="false" debug="0" reloadable="true" /Context resolve this issue? Has anyone else encountered a similar problem? I can supply more configuration upon request, but at least I'll note that the server configuration is with Apache 1.3.14 and Tomcat 3.2.1 running Redhat Linux 7.0 on an Intel box, JDK 1.2.2. Tomcat, aside from slight changes for mod_jk operation with Apache, is unchanged from the default configuration. Regards, Joel Parramore -Original Message- From: Mandar Joshi [mailto:[EMAIL PROTECTED]] Sent: Friday, April 06, 2001 2:51 PM To: [EMAIL PROTECTED] Subject: Re: simple question for servlet-configuration of tomcat You simply need to put your stuff uner ROOT context. - Original Message - From: "TOPO graphics GmbH" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, April 06, 2001 7:19 AM Subject: simple question for servlet-configuration of tomcat Hello, since several weeks I am testing tomcat as a Servlet Engine with great success. I use Win98 SE2 with PWS. Now I have a simple problem (I think): What I have to do (in the configuration files) when I want to start my servlets with the URL: http://localhost/servlet/TestServlet and not with a WEPAPP-Directory like http://localhost/example/servlet/TestServlet Which settings I have to do in the configuration-files and in which directory I have to put my Servlets ? Thanks a lot for your answer With best regards M. Thorand TOPO graphics Geographische Informationssysteme GmbH EMail: [EMAIL PROTECTED]
RE: simple question for servlet-configuration of tomcat
In Tomcat 3.2.2 (I know that's the version I'm running - I think its the version of the source that I checked) the preference for servlet/webApp is hardwired into the code that generates the automatic config files. It takes no notice of anything in the server.xml file (which I think is at least a little unfriendly) To have the behaviour you requested you'll have to edit those (or actually the files you derived from those when you first set up Tomcat) In the case sited for PWS under Win98 it looks like you would have to modify the file derived from %TOMCAT_HOME%\conf\uriworkermap.properties-auto HTH BTW In my example below it looks like Tomcat is serving my static content. :-( -Original Message- From: Brett Knights [mailto:[EMAIL PROTECTED]] Sent: Friday, April 06, 2001 10:16 AM To: '[EMAIL PROTECTED]' Subject: RE: simple question for servlet-configuration of tomcat What I have to do (in the configuration files) when I want to start my servlets with the URL: http://localhost/servlet/TestServlet and not with a WEPAPP-Directory like http://localhost/example/servlet/TestServlet Which settings I have to do in the configuration-files and in which directory I have to put my Servlets ? You just have to declare a context like this: Context path="" docBase="/path/to/myapp" debug="0" reloadable="false" /Context I don't think this is necessarily correct in all circumstances. Try as I might I can't get any of the automatically generated files to reflect that I want to access my servlets at /webapp/servletalias rather than at /webapp/servlet/servletalias I did succeed in making this work with tomcat and apache by editing my tomcat.conf file as follows: Alias /webApp "C:/ApacheGroup/Tomcat/webapps/webApp " Directory "C:/ApacheGroup/Tomcat/webapps/webApp " Options Indexes FollowSymLinks /Directory ApJServMount /webApp /webApp
A Simple question to the configuration of tomcat
Hello, since several weeks I am testing tomcat as a Servlet Engine with great success. I use Win98 SE2 with PWS. Now I have a simple problem (I think): What I have to do (in the configuration files) when I want to start my servlets with the URL: http://localhost/servlet/TestServlet and not with a WEPAPP-Directory like http://localhost/example/servlet/TestServlet Which settings I have to do in the configuration-files and in which directory I have to put my Servlets ? Thanks a lot for your answer With best regards M. Thorand TOPO graphics Geographische Informationssysteme GmbH EMail: [EMAIL PROTECTED]
RE: A Simple question to the configuration of tomcat
Hi, You just have to declare a context like this: Context path="" docBase="/path/to/myapp" debug="0" reloadable="false" /Context in your TOMCAT_HOME/conf/server.xml. You should also remove the ROOT context and the ROOT directory that is in the webapp directory. Anyway, in real world, I mean in production environment, you should remove all the contexts that don't deal with your app, and all the subdirectory within the /webapp. Benot Hello, since several weeks I am testing tomcat as a Servlet Engine with great success. I use Win98 SE2 with PWS. Now I have a simple problem (I think): What I have to do (in the configuration files) when I want to start my servlets with the URL: http://localhost/servlet/TestServlet and not with a WEPAPP-Directory like http://localhost/example/servlet/TestServlet Which settings I have to do in the configuration-files and in which directory I have to put my Servlets ? Thanks a lot for your answer With best regards M. Thorand TOPO graphics Geographische Informationssysteme GmbH EMail: [EMAIL PROTECTED]
Simple Question
Do i need DNS in order to use Virtul Hosts ?
Re: Simple Question
Amir, Yes, unless you configure it in the hosts file: - on unix: /etc/hosts - on Windoze: c:\winnt\system32\drivers\etc\hosts regards, Kenneth Westelinck From: "Amir Nuri" [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: "Tomcat-User" [EMAIL PROTECTED] Subject: Simple Question Date: Tue, 20 Mar 2001 13:06:40 +0200 Do i need DNS in order to use Virtul Hosts ? _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Re: Simple Question
No, but then all your users should have appropriate records in files hosts - Original Message - From: "Amir Nuri" [EMAIL PROTECTED] To: "Tomcat-User" [EMAIL PROTECTED] Sent: Tuesday, March 20, 2001 1:06 PM Subject: Simple Question Do i need DNS in order to use Virtul Hosts ?
RE: Simple Question
In a multiuser environment, it is much easier to implement DNS (utilizing BIND) than managing hosts files. -Original Message- From: Amir Nuri [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 20, 2001 3:07 AM To: Tomcat-User Subject: Simple Question Do i need DNS in order to use Virtul Hosts ?
Re: simple question about servlet development
I developed some servlets and I didn't restarted Tomcat each time. I thing you can simply put the new servlets over the oldest ones and then try them. Hope this helps. Robuschi Roberto Delfi srl P.za Ravenet 1/b - 43100 PARMA Tel. 0521/932474 Fax 0521/989045 [EMAIL PROTECTED] --- http://www.delfi.it - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: SIMPLE SIMPLE QUESTION ON RUNNING TOMCAT
Use this Tomcat loader. Works 99.44% of the time. Take a look: http://www.geocities.com/jdrudnicki/ Jim - Original Message - From: "Mick Sullivan" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, December 29, 2000 8:21 AM Subject: SIMPLE SIMPLE QUESTION ON RUNNING TOMCAT Hi I need help to run tomcat I have create a simple HTML website with Javascript for validation. I have downloaded tomcat and tried running the "startup.bat" file. In the Dos window a message as follows appears. Out of Environment space Out of Environment space ... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]