RE: Tomcat and Virtual Sites in IIS
Morning! In your uriworkermap.properties ( if you use jk - redirect.dll), needs to type /oponyzimowe/*.jsp=$(yourworke.worker) so isapi redirector will be able to redirect all request for this url into Tomcat. BeSt ReGaRdS level0 icq#155042687 -Original Message- From: Konrad Rusz [mailto:[EMAIL PROTECTED] Sent: Saturday, February 22, 2003 12:29 PM To: Tomcat Users List Subject: Tomcat and Virtual Sites in IIS Hi. I have one question. I'm trying to configure Tomcat 4.1.12 to work with IIS 5.0. All of my settings work properly, but I can't configure IIS Virtual Sites to serve .jsp pages by means of Tomcat (I have configured site in IIS - this site name is sklep.zlp.pl, and I have configured virtual directory naming 'oponyzimowe' under this site; I have configured virtual directory naming 'jakarta' under this site as well). I think it is correct, because when I connect over Internet to site http://sklep.zlp.pl/examples I can see that my Tomcat work and I be able to execute examples servlets and .jsp pages. However, if I try to connect over the Internet to the site http://sklep.zlp.pl/oponyzimowe/examples I see the IIS Error 404 - File Not Found. How can I configure my Tomcat and IIS to work with IIS Virtual Sites? If You have some idea please contact me. Konrad Rusz e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Nothing seems to work
Here is the error message and the web.xml http://localhost:8080/Code/gc.MyWorld type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: Error allocating a servlet instance at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:662) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(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(StandardContextValve.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(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:2396) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(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.invokeNext(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:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533) at java.lang.Thread.run(Thread.java:536) root cause java.lang.NoClassDefFoundError: gc/MyWorld (wrong name: classes/gc/MyWorld) at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:509) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123) at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1664) at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:953) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1394) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1274) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:874) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:658) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(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(StandardContextValve.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(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:2396) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) at org.ap
Jasper doesn't recompile if TLD is changed
hi, Jasper2 of my Toncat 4.1.18 didn't recompile the page, altough and i changed the TLD because i moved a class from one package to another. After reloading the application, it didn't work anymore, because the old classes we're still used by the compiled JSP-page. Of course they couldn't be loaded, because they wern't there anymore. The Dependancy-Checking of Jasper should be rethought. For example Resin stores the file on which a JSP-page depends in the compiled JSP-page itself (it would be a good idea, to store the files' timestamps too). Just a hint. Sven - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
403 unavilable
hi all i have this directory structure c:/Windows/Desktop/Code/ | |___Web-inf |__web.xml |__classes |MyServlet(.java & .class) |__gc |__MyWelcomServlet(.java & .class) declared with the package gc I have the configuration of web.xml as MyServlet MyServlet MyWelcomServlet MyWelcomServlet MyServlet /MyServlet MyWelcomServlet /gc.MyWelcomServlet I can access MyServlet using http://localhost:8080/Code/MyServlet but i cannot access MyWelcomServlet http://localhost:8080/Code/gc.MyWelcomServlet i get a 403 Unavialble there are no security setting, everything is what the default is Please help, Nandish - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat Apache
Hi , Have configured Tomcat to use SSL with client authentication set to true. Have imported client (which is the web browser IE) certificate to tomcat server keystore. But when I use IE to connect to Tomcat, it pops up a message box saying "The Web site you want to view requests identification. Select the certificate to use when connecting." Problem is that there is no certificate displayed to select. Does anyone know how to solve this using the current setup ? regards, Hon Luen __ Do You Yahoo!? Promote your business from just $5 a month! http://sg.biztools.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Mac os x and class files
Hello Tony, Thank you for your interest in my problem. Here is what I see when I start Tomcat. Using CATALINA_BASE: /usr/local/jakarta-tomcat-4.1.18 Using CATALINA_HOME: /usr/local/jakarta-tomcat-4.1.18 Using CATALINA_TMPDIR: /usr/local/jakarta-tomcat-4.1.18/temp Using JAVA_HOME: /usr I am under the impression that Tomcat follows a specific hierarchy when searching for class files and consequently it is not necessary to set the CLASSPATH. However I set it as follows to see if it would help Tomcat find my classes. No. CLASSPATH=/usr/local/jakarta-tomcat-4.1.18/webapps/ROOT/529_jsp_021103/ WEB-INF/classes:/usr/local/jakarta-tomcat-4.1.18/webapps/ROOT/WEB-INF/ classes:. Tomcat does find the java. classes. The following is in my jsp file: <%@ page import="Plans021103"%> <%@ page import="SidebarTr"%> <%@ page import="java.util.HashMap" %> <%@ page import="java.io.*" %> <%@ page import="java.util.regex.*" %> Only Plans021103 and SidebarTr are not found. Here is the beginning of the specific errors I see. org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: 12 in the jsp file: /529_jsp_021103/529Wrapper.jsp Generated servlet error: [javac] Compiling 1 source file /usr/local/jakarta-tomcat-4.1.18/work/Standalone/localhost/_/ 529_jsp_021103/_529Wrapper_jsp.java:7: '.' expected import Plans021103; (the caret is under the semi-colon) ^ /usr/local/jakarta-tomcat-4.1.18/work/Standalone/localhost/_/ 529_jsp_021103/_529Wrapper_jsp.java:8: '.' expected import SidebarTr; (the caret is under the semi-colon) ^ /usr/local/jakarta-tomcat-4.1.18/work/Standalone/localhost/_/ 529_jsp_021103/_529Wrapper_jsp.java:60: cannot resolve symbol symbol : class Plans021103 location: class org.apache.jsp._529Wrapper_jsp Plans021103 plans = new Plans021103(); (the caret is under the first uppercase P) I trust that there will be something in the above that jumps out at you. Warren Hi Warren, What are values for JAVA_HOME, CATALINA_HOME, CATALINA_BASE, and your CLASSPATH? Regards, Tony On Saturday, Feb 22, 2003, at 17:40 Europe/Berlin, Warrren Burholt wrote: Here is the version of my java 1.4.1 DP10. java -version java version "1.4.1" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1-24) Java HotSpot(TM) Client VM (build 1.4.1_01-12, mixed mode) Since Tony states that he is using 1.4.1 and 4.1.18, I installed 4.1.18. Running Tomcat standalone on 10.2.3 I have the same situation as before. My class files are not being found. I've put them everywhere I could think to test. /usr/local/jakarta-tomcat-4.1.18/webapps/ROOT/529_jsp_021103/WEB-INF/ classes /usr/local/jakarta-tomcat-4.1.18/webapps/ROOT/WEB-INF/classes /usr/local/jakarta-tomcat-4.1.18/common/classes /usr/local/jakarta-tomcat-4.1.18/shared/classes /usr/local/jakarta-tomcat-4.1.18/classes Any additional suggestions for testing would be greatly appreciated. Warren From: Anthony Marlowe <[EMAIL PROTECTED]> Date: Sat Feb 22, 2003 6:39:20 AM America/Montreal To: "Tomcat Users List" <[EMAIL PROTECTED]> Subject: Re: Mac os x and class files Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]> Hi, I would like to know your Mac OS X configuration. I have Tomcat 4.1.18 running standalone and in conjunction with JBoss 3.0.6 with Apples 1.4.n DP10 and OS X 10.2.4. With no problem what so ever. This all works with 1.3.1 also with no problem. In addition I have mod_jk2 installed and running Apache 2.0.44 with no problem. By the way I do not use the light version, I have also replace the LE version in JBoss to the full version. For your infor JBoss with Jetty works correctly. Regards, Tony On Saturday, Feb 22, 2003, at 04:44 Europe/Berlin, Warrren Burholt wrote: I'm using JDK 1.4. I'll go back to 1.3 although my 4.0.3 has the exact same problem with finding classes whether I'm using 1.3 or 1.4After I have 1.3 running, if the problem persists in 4.1.18 (and not the 1.4 version!), at least I will know that the preview version is not the cause. And I did mean 4.1.18, although I see I have it named in usr/local as jakarta-tomcat-4.1.8-LE-jdk14 I'm really glad to hear that Tomcat works great on os x -- actually that has been my experience with jakarta-tomcat-4.0.3 except for the class mystery. Thank you for your help, Jake and Ian. From: Jake Robb <[EMAIL PROTECTED]> Date: Fri Feb 21, 2003 9:17:35 PM America/Montreal To: Tomcat Users List <[EMAIL PROTECTED]> Subject: Re: Mac os x and class files Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]> The 1.4.x JDK isn't production-ready for OS X yet. There are developer preview versions, but they're far from reliable or complete at this time. -Jake Ian McFarland wrote: Are you using JDK1.3.1 or 1.4.1 on your OS X box? You know the default configuration for OS X is to use 1.3.1, and you should be doing so for production anyway. In any case, I us
Re: having trouble using tomcat
maybe , and ; make a difference? - Original Message - From: "Peng Tuck Kwok" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Monday, February 24, 2003 11:21 AM Subject: Re: having trouble using tomcat > Isn't that exactly the same as before ? ? > > > - > 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: Web browser authenticates to Tomcat Server using Client SSL authentication
I use keytool to export the client certificate on its machine, and try to import it using web browser. but it still does not get in the Personal certificate store.. - Original Message - From: "Bill Barker" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, February 22, 2003 3:20 PM Subject: Re: Web browser authenticates to Tomcat Server using Client SSL authentication > > "Kwan Hon Luen" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > Hi , > > > > Have configured Tomcat to use SSL with client authentication set to true. > > Have imported client (which is the web browser IE) certificate to tomcat > > server keystore. > > But when I use IE to connect to Tomcat, it pops up a message box saying > "The > > Web site you want to view requests identification. Select the certificate > to > > use when connecting." Problem is that there is no certificate displayed to > > select. > > > > Does anyone know how to solve this using the current setup ? > > Urm, err, you need to import the cert into IE as well (double-clicking and > next, next, next... is usually enough). > > > > > regards, > > Hon Luen > > > > __ > > Do You Yahoo!? > > Promote your business from just $5 a month! > > http://sg.biztools.yahoo.com > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] __ Do You Yahoo!? Promote your business from just $5 a month! http://sg.biztools.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
new instalation missing startup scripts
Hi everyone. I just installed the 4.1.8 release of Tomcat via the linux binary RPM. However, when I go to /var/tomcat4/bin i have no startup scripts, only a couple jar files. The docs say the startup files should be there. Is there something I am missing? Zak - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: having trouble using tomcat
Isn't that exactly the same as before ? ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: having trouble using tomcat
try this... DriverManager.getConnection("jdbc:microsoft:sqlserver://128.91.107.105:1433;User=sa;Password=duder"); DriverManager.getConnection("jdbc:microsoft:sqlserver://128.91.107.105:1433,User=sa,Password=duder"); - Original Message - From: "Michael Ni" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, February 24, 2003 8:36 AM Subject: having trouble using tomcat > hi im new to tomcat. im having trouble using jsp pages to query my > microsoft sql server 2000. does anyone know how to do this? i've followed > the microsoft instructions but it doens't work still. i created the > CLASSPATH environement variables, but my jsp code looks like it doens't work > > > > <%@ page import="java.sql.*, java.util.*" errorPage="error.jsp" %> > > > > > Current Election Results: > > > > > Here are the latest voting results... > > <% > Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver"); > Connection con = > DriverManager.getConnection("jdbc:microsoft:sqlserver://128.91.107.105:1433;User=sa;Password=duder"); > > Statement stmt = con.createStatement(); > String queryStr = "SELECT username FROM player"; > ResultSet rs = stmt.executeQuery(queryStr); > %> > > > Candidate > Total Votes > > > <% while (rs.next()) { > String firstname = rs.getString(1); > > %> > > > <%= firstname %> > dfd > > <% > } // end while() > > // clean up. > if (rs!=null) rs.close(); > if (stmt!=null) stmt.close(); > if (con!=null) con.close(); > %> > > > > > > > > _ > MSN 8 with e-mail virus protection service: 2 months FREE* > http://join.msn.com/?page=features/virus > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] >
Fw: How to undo Web Application Manager "remove"?
- Original Message - From: laikiow To: [EMAIL PROTECTED] Sent: Monday, February 24, 2003 2:28 AM Subject: How to undo Web Application Manager "remove"? I try the Web Application Manager of Apache Tomcat 4.1 using the link http://localhost:8080/manager/html/list and accidently press the Remove button shown below. /examples Tomcat Examples true 0 Start Stop Reload Remove ^ Install Path: Config URL: WAR URL: what do i need to type in these text box to reinstall the /examples ???
Re: having trouble using tomcat
Michael, what do you mean by it doesn't look like it works? You get errors on the page or just a blank screen, plus what version of tomcat are you using ? Michael Ni wrote: hi im new to tomcat. im having trouble using jsp pages to query my microsoft sql server 2000. does anyone know how to do this? i've followed the microsoft instructions but it doens't work still. i created the CLASSPATH environement variables, but my jsp code looks like it doens't work <%@ page import="java.sql.*, java.util.*" errorPage="error.jsp" %> Current Election Results: Here are the latest voting results... <% Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver"); Connection con = DriverManager.getConnection("jdbc:microsoft:sqlserver://128.91.107.105:1433;User=sa;Password=duder"); Statement stmt = con.createStatement(); String queryStr = "SELECT username FROM player"; ResultSet rs = stmt.executeQuery(queryStr); %> Candidate Total Votes <% while (rs.next()) { String firstname = rs.getString(1); %> <%= firstname %> dfd <% } // end while() // clean up. if (rs!=null) rs.close(); if (stmt!=null) stmt.close(); if (con!=null) con.close(); %> _ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus - 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]
having trouble using tomcat
hi im new to tomcat. im having trouble using jsp pages to query my microsoft sql server 2000. does anyone know how to do this? i've followed the microsoft instructions but it doens't work still. i created the CLASSPATH environement variables, but my jsp code looks like it doens't work _ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
having trouble using tomcat
hi im new to tomcat. im having trouble using jsp pages to query my microsoft sql server 2000. does anyone know how to do this? i've followed the microsoft instructions but it doens't work still. i created the CLASSPATH environement variables, but my jsp code looks like it doens't work <%@ page import="java.sql.*, java.util.*" errorPage="error.jsp" %> Current Election Results: Here are the latest voting results... <% Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver"); Connection con = DriverManager.getConnection("jdbc:microsoft:sqlserver://128.91.107.105:1433;User=sa;Password=duder"); Statement stmt = con.createStatement(); String queryStr = "SELECT username FROM player"; ResultSet rs = stmt.executeQuery(queryStr); %> Candidate Total Votes <% while (rs.next()) { String firstname = rs.getString(1); %> <%= firstname %> dfd <% } // end while() // clean up. if (rs!=null) rs.close(); if (stmt!=null) stmt.close(); if (con!=null) con.close(); %> _ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Apache 2.0.44, JK2, Tomcat 4.1.18 - virtual hosts
Hello everyone, I had 3 web applications that were running under the same instance of Tomcat and were publicly accessible via 'virtual hosts' like: ... Now I have to do SSL encrypted transactions and since Tomcat is a one big problem when it comes to SSL (I've experienced it on my own) I want to bundle it with Apache (mod_ssl) using JK2 connector. I've gone most of the way and now can access applications as http://127.0.0.1/product1 and so on. But I'm absolutely clueless on how to set up virtual hosts as I used to have with single Tomcat. Google search gave me very scarce resources that didn't help much. I have httpd.conf, server.xml and workers2.properties (and jk2.properties of course) and I was wondering which files I should alter and what exactly I should change. Any hints or examples are very appreciated. Thank you, Yuriy ZUbarev __ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Is it necessary to use a jdk with tomcat?
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Hi all, > > Is it better to run tomcat with a jdk over a jre? > Or it doesn't really matter... > If you are using JSP files, then you need the JDK (to compile them). If not (or, if you pre-compile your JSPs) then it doesn't matter. > > Thanks! > Alain - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Is it necessary to use a jdk with tomcat?
Since at the run time you are using jars, It should not matter whether you use jdk o jre. santos [EMAIL PROTECTED] wrote: Hi all, Is it better to run tomcat with a jdk over a jre? Or it doesn't really matter... Thanks! Alain - 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]
Is it necessary to use a jdk with tomcat?
Hi all, Is it better to run tomcat with a jdk over a jre? Or it doesn't really matter... Thanks! Alain - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
A minor favor to ask..
I just have a minor favor to ask of the list members. Some of us out here have ISPs that configure the email systems to not allow attachments that could be executed by various email clients. Among those are: VBS, JS, EXE, DOC (ms Word doc). COM, etc. If you could please put attachments in ZIP file format so that 'the rest' of us could see whatever code it is that you are trying to share it would be much appreciated. Thank you. -- David Orriss Jr. Please email me if you want my ICQ/AIM/IM ID's. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache modules with Tomcat
Just guessing: http://httpd.apache.org/docs/mod/mod_headers.html Since the header directive is occuring in the directory / the directive is being processed for index.html just fine. But apache knows nothing about /examples/servlet/ since the directory doesn't physically exist so it probably is not running the directive. So I would try placing: 'Header add MyHeader "time %D msec start at %t"' in any of the VirtualHost declarations more generic locations without the Directory directive. -Tim Jordan Hayes wrote: If you use JK, apache can do most of the work for you with their modules. Well, maybe I'm dense then. In my VirtualHost, I did this: Header add MyHeader "time %D msec start at %t" If I visit http://blah.foo.com/index.html the header gets added; if I visit http://blah.foo.com/examples/servlet/RequestHeaderExample I don't get the additional header. Can you be a little more explicit about how I would get this to work? Thanks, /jordan - 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]
sub
subscribe
Re: More info on custom tag problem
"Percival Bragg" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > The following are the current files and the error from > tomcat that I received in trying my first custom tag. > > The following is the java class for the custom tag. > package com.braggonline.portal; > > import java.io.*; > import javax.servlet.jsp.tagext.*; > import javax.servlet.jsp.*; > > public class bannerTag extends TagSupport { > > public int doEndTag() throws JspException { > > StringBuffer out = new StringBuffer(); > > out.append(" cellspacing="0" class="HeadBg" > border="0">"); > out.append(""); > out.append(" class="SiteLink" > background="images/bars.gif" > align="right">"); > out.append(" id="Banner_WelcomeMessage" > style="color:#EE;">"); > out.append(" class="SiteLink">Braggonline Home"); > out.append(" class="Accent">|"); > out.append(" target="_blank" > class="SiteLink">Site Map"); > out.append(" class="Accent">|"); > out.append(" target="_blank"class="SiteLink">Logoff"); > out.append(" "); > out.append(" rowspan="2"> "); > out.append(""); > out.append(" class="SiteTitle">BraggOnline > Portal"); > out.append(" rowspan="2"> "); > out.append(""); > out.append(" class="OtherTabsBg" > cellspacing="0" border="0" > style="border-collapse:collapse;">"); > out.append(" style="border-width:1px;border-style:solid;height:25px;">"); > out.append(" class="SelectedTab">Home "); > out.append(" style="border-width:1px;border-style:solid;height:25px;"> href="http://www.ibuyspyportal.com/DesktopDefault.aspx?tabindex=1&tabid =2" > class="OtherTabs">JSP"); > out.append(" style="border-width:1px;border-style:solid;height:25px;"> href="http://www.ibuyspyportal.com/DesktopDefault.aspx?tabindex=2&tabid =3" > class="OtherTabs">JavaBeans"); > out.append(" style="border-width:1px;border-style:solid;height:25px;"> href="http://www.ibuyspyportal.com/DesktopDefault.aspx?tabindex=3&tabid =4" > class="OtherTabs">Discussions"); > out.append(" style="border-width:1px;border-style:solid;height:25px;"> href="http://www.ibuyspyportal.com/DesktopDefault.aspx?tabindex=4&tabid =5" > class="OtherTabs">About the > Portal"); > out.append(""); > try { > pageContext.getOut().print("Got Here"); > } catch (Exception e) { > throw new JspException(e.toString()); > } > return EVAL_PAGE; > } > } > > The following is the TLD file. > > "-//Sun Microsystems, Inc.//DTD JSP Tag > Library 1.2//EN" > > "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd";> > > 1.0 > 1.2 > PortalTags > Tags for dynamic creation of portal > pages. > > banner > > com.braggonline.portal.bannerTag > > > > The following is the JSP file > <%@ taglib uri="WEB-INF/portalTags.tld" > prefix="portal" %> > > <% > >/* The DesktopDefault.jsp page is used to load and > populate each Portal View. It accomplishes >this by reading the layout configuration of the > portal from the Portal Configuration >system, and then using this information to > dynamically instantiate portal modules >(each implemented as a custom tag), and then inject > them into the page. */ > > /* This scriplet capture the request parameters > passed and uses them to >determine how to process the page. */ > > String tabIndex = request.getParameter("tabIndex"); > String tabId = request.getParameter("tabId"); > > if (tabIndex == null){ > session.setAttribute("tabIndex", "0"); > }else{ > session.setAttribute("tabIndex", tabIndex); > } > > if (tabId == null){ > session.setAttribute("tabId", "0"); > }else{ > session.setAttribute("tabId", tabId); > } > > %> > > > > BraggOnline Portal > rel="stylesheet" /> > > rightmargin="0" topmargin="0" marginheight="0" > marginwidth="0"> > > cellpadding="0" border="0"> > > > > > > > > > cellspacing="0" cellpadding="4" border="0"> > valign="top"> > > > > Visible="false" Width="170"> > > > > Visible="false" Width="*"> > > Visible="false" Width="230"> > > > > > > > > > > > > > > > and the follwing is the error log. > HTTP Status 500 - > > -- -- > > type Exception report >
Re: Tomcat question
This is really exactly the sort of usage that Filters were designed to deal with. You are much better off using a Filter. Just for chuckles, the following should work for a Servlet-based solution (for TC 4 at least): public void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { // insert logging logic here RequestDispatcher rd = getServletContext().getNamedDispatcher("default"); rd.forward(request, response); } "ali salehi" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > I want to write a servlet to log any request to the > .gif files in my server (im using tomcat 4.1.18). > I have mapped any requests ending with .gif to a > servlet (using web.xml file ) > My questions are : > 1. Which method(s) do i need to override (doPost or > doGet) ? > 2. After logging the request, how can i delegate > sending the .gif file to the server itself ? > Thanks > Bye > > __ > Do you Yahoo!? > Yahoo! Tax Center - forms, calculators, tips, more > http://taxes.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
More info on custom tag problem
The following are the current files and the error from tomcat that I received in trying my first custom tag. The following is the java class for the custom tag. package com.braggonline.portal; import java.io.*; import javax.servlet.jsp.tagext.*; import javax.servlet.jsp.*; public class bannerTag extends TagSupport { public int doEndTag() throws JspException { StringBuffer out = new StringBuffer(); out.append(""); out.append(""); out.append(""); out.append(""); out.append("Braggonline Home"); out.append("|"); out.append("Site Map"); out.append("|"); out.append("Logoff"); out.append(" "); out.append(" "); out.append(""); out.append("BraggOnline Portal"); out.append(" "); out.append(""); out.append(""); out.append(""); out.append(" Home "); out.append(" http://www.ibuyspyportal.com/DesktopDefault.aspx?tabindex=1&tabid=2"; class="OtherTabs">JSP"); out.append(" http://www.ibuyspyportal.com/DesktopDefault.aspx?tabindex=2&tabid=3"; class="OtherTabs">JavaBeans"); out.append(" http://www.ibuyspyportal.com/DesktopDefault.aspx?tabindex=3&tabid=4"; class="OtherTabs">Discussions"); out.append(" http://www.ibuyspyportal.com/DesktopDefault.aspx?tabindex=4&tabid=5"; class="OtherTabs">About the Portal"); out.append(""); try { pageContext.getOut().print("Got Here"); } catch (Exception e) { throw new JspException(e.toString()); } return EVAL_PAGE; } } The following is the TLD file. http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd";> 1.0 1.2 PortalTags Tags for dynamic creation of portal pages. banner com.braggonline.portal.bannerTag The following is the JSP file <%@ taglib uri="WEB-INF/portalTags.tld" prefix="portal" %> <% /* The DesktopDefault.jsp page is used to load and populate each Portal View. It accomplishes this by reading the layout configuration of the portal from the Portal Configuration system, and then using this information to dynamically instantiate portal modules (each implemented as a custom tag), and then inject them into the page. */ /* This scriplet capture the request parameters passed and uses them to determine how to process the page. */ String tabIndex = request.getParameter("tabIndex"); String tabId = request.getParameter("tabId"); if (tabIndex == null){ session.setAttribute("tabIndex", "0"); }else{ session.setAttribute("tabIndex", tabIndex); } if (tabId == null){ session.setAttribute("tabId", "0"); }else{ session.setAttribute("tabId", tabId); } %> BraggOnline Portal and the follwing is the error log. HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: /braggonline/DesktopDefault.jsp(39,24) Unable to load class banner at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:94) at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:428) at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:219) at org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:717) at org.apache.jasper.compiler.Parser.parseElements(Parser.java:809) at org.apache.jasper.compiler.Parser.parse(Parser.java:122) at org.apache.jasper.compiler.ParserController.parse(ParserController.java:199) at org.apache.jasper.compiler.ParserController.parse(ParserController.java:153) at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:223) at org.apac
Re: [O.T.] Installing struts under tomcat 4 and apache 2
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/jk.html#Using%20Apach eConfig "Dani" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello. I'm trying to install struts 1.0.2 under red hat 7.2, with tomcat > 4.1.18 and apache 2.0.44. I've read the documentation here > http://jakarta.apache.org/struts/userGuide/installation-tc.html > but it refers to tomcat 3.2, not tomcat 4.0. It says "Note that the > instructions for Tomcat 4 will be different than those for Tomcat 3, but the > Tomcat 4.0 web connector is still under development. Versions of Tomcat > prior to 3.2.1 are not recommend for use with Struts." > > ¿What about tomcat 4? > > The documentation talk about a file: "Tomcat will generate a file > "$TOMCAT_HOME/conf/tomcat-apache.conf" that will be used by Apache. This > file is regenerated every time you start Tomcat, so copy this file to a safe > place (such as your Apache configuration directory; on Unix systems this is > usually /usr/local/apache/conf. ". But I can't find this file (or it doesn't > exist). > > ¿Which file must I configure? > > Thank you very much. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache modules with Tomcat
> If you use JK, apache can do most of the work for you > with their modules. Well, maybe I'm dense then. In my VirtualHost, I did this: > > Header add MyHeader "time %D msec start at %t" > If I visit http://blah.foo.com/index.html the header gets added; if I visit http://blah.foo.com/examples/servlet/RequestHeaderExample I don't get the additional header. Can you be a little more explicit about how I would get this to work? Thanks, /jordan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat question
Hi, I want to write a servlet to log any request to the .gif files in my server (im using tomcat 4.1.18). I have mapped any requests ending with .gif to a servlet (using web.xml file ) My questions are : 1. Which method(s) do i need to override (doPost or doGet) ? 2. After logging the request, how can i delegate sending the .gif file to the server itself ? Thanks Bye __ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Connection pooling
Hello! I'm using Tomcat 4, mod_jk1.2 and Apache 1.3.27 on Redhat I'm in need of connection pooling example to get me started I've had a look at http://jakarta.apache.org/commons/dbcp/api/index.html and thougth that a concrete/working example would make things clearer Thanks in advance Arcadius. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
using tomcat server
Hello. I am a student and i am now doing a piece of coursework. Thanks for the free download of Tomcat 4.1 at your website, but i do have problems of how to use it the way i wanted. I wonder if i can get any hints through this email. Q1. I am trying to development a flash animation which need to run on my PC at Tomcat Server, to let people to use it through the internet. I have got the animation working fine but i do not know how to run it through this Tomcat Server, is it OK if I make my own index page (using Dreamweaver) replace the default index page and just put the flash animation in there? will it mess up the user and password in the xml file in conf file? Q2. The flash animation need to send inputs from the user to a database, possibly a XML file. I have done the xml socket in flash, but how can i make the server listening to my flash animation and then update my database? Your advices will be very helpful. Thank you very much. _ Chat online in real time with MSN Messenger http://messenger.msn.co.uk - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Manager JDBCReal Table
Based on the HOWTO I think the answer to this question is No. But, I want to make sure. If I configure a JDBCRealm can I use the Tomcat Administration Tool to maintain the user database? Or do I have to maintain that table myself? Thanks. Cheers, Jeff -- Jeffrey Pajor Auten Road, Inc http://www.autenroad.com http://groups.yahoo.com/group/autenroad-newsletter/join
Internal Server Error
All - Apologies in advance - newbie here. Running Tomcat 4.0.6 on 2000 box, using JDK 1.3.1_02, and Apache 1.3. I'm able to run the Tomcat examples, no problem. However, when I go to run the examples from O'Reilly's JSP Book (Version 2), I get the same type of errors (pasted below). From looking through the threads, I belive I have some type of XML parser error - but I'm too new at this to be sure. Any ideas or pointers? Thank you! Errors: javax.servlet.ServletException: Servlet.init() for servlet jsp threw exception at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:946) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:655) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:475) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125) at java.lang.Thread.run(Thread.java:484) root cause java.lang.VerifyError: (class: org/apache/xerces/jaxp/DocumentBuilderImpl, method: parse signature: (Lorg/xml/sax/InputSource;)Lorg/w3c/dom/Document;) Incompatible object argument for function call at org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(DocumentBuilderFactoryImpl.java:88) at org.apache.jasper.parser.ParserUtils.parseXMLDocument(ParserUtils.java:198) at org.apache.jasper.compiler.TldLocationsCache.processWebDotXml(TldLocationsCache.java:165) at org.apache.jasper.compiler.TldLocationsCache.(TldLocationsCache.java:138) at org.apache.jasper.EmbededServletOptions.(EmbededServletOptions.java:350) at org.apache.jasper.servlet.JspServlet.init(JspServlet.java:265) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:918) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:655) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:475) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.valves.ErrorDispa
Subject: RE: Tomcat 4.1.18-LE re-writes tomcat-users.xml file; why?
> Yoav is correct - you can create users in the Admin webapp. > ...and you could use the "Fullname" field for your comments. So users should put comments into the "Fullname" attribute because the file must be writeable for the admin app even if you don't run the admin app? This is likely to depress instead of impress Tomcat users. We make few changes to the tomcat-users.xml file and do not run the admin webapp, so it is natural for us to want this file to be configured read-only. It is fairly easy to find the few lines of code in org.apache.catalina.user.MemoryUserDatabase which do the rewriting, comment them out, rename the class ReadOnlyMemoryUserDatabase, compile it, put it in server/lib/, and edit server.xml to use the fixed class. It would be nice to have a configurable option instead. -- nord __ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Connection Pooling
Indeed which is the difference of using 1. Tomcat JNDI: or 2. commons-dbcp + commons-pooling: ? Thank you There are two options. 1. Tomcat JNDI: refer to Tomcat's JNDI datasource how-to 2. commons-dbcp + commons-pooling: refer to commons-dbcp and pooling API documentation Which one do you want to know? Regards, PQ "This Guy Thinks He Knows Everything" "This Guy Thinks He Knows What He Is Doing" Sebastião Carlos Santos Oracle Database Administrator - OCP DBA 8i Universidade Federal de Uberlândia - UFU Gratificação de Estímulo à Docência - GED
Problem with Tomcat & Apache running on Different IPs
Hello all, After successfully configuring mod_jk2 to enable communication in between Apache and tomcat, I have couple of questions. I will love to know the answers.: 1. With Ajp13 is it necessary to run tomcat & apache on same IP? Here is the scenario: For me Apache is running of real IP(192.168.0.200) and tomcat is listening on localhost at port 8009. If I goto http://192.168.0.200:80, I can see the output from Apache. but If I type http://192.168.0.200:80/examples I get HTTP 400 However, If I goto http://localhost/examples i can see the all outputs. I think if I make changes in server.xml and workers.properties(make same IP), I should be able to get the output even on 192.168.0.200. I have not tried though. 2. What is the use of mod_jk2.conf. The default file that comes with tomcat has all the lines commented. If I get any line uncomented I get following error: SEVERE: can't create apr. ( Is this apr related to WARP protocol?) & java could not find some logging class.? I even tried to make changes in catalina.sh to alter CLASSPATH but no avail After reading the documentation, it seems mod_jk2.conf can be automatically generated. In case of mod_jk there are certain parameter that kept in server.xml will generate in file, should be follow same direction/ 3.It seems to me if I want to use Unix domain socket ( which should be faster), all I need to do is to uncommnent releted lines in mod_jk2.properties. But for me tomcat never created any socket file ? please let me know if anyone knows the trick. Thanks you. Santos - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
how to protect file
I have tomcat 4.1.18 i want to develop a login system similar to login system of my bank's website. Stucture: working directory: home/jzhu/registration have files and dirs BadUser.html index.html Invalid.html target.html WEB-INF target.html is the file I want to protect user have to log in in order to access it. I have a servlet Login.java which will take user login name and password and direct it to target.html after user log in. the problem i have is if user simply type http://lychee.ctegd.uga.edu:8080/registration/target.html he can access target.html without needing to login. How can i let user not being to bypass login? I meant, in order to access target.html he has to login. Thanks. j.P - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Getting Tomcat to _only_ listen to localhost
for jk http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/jk.html for http http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/http11.html or http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/coyote.html -Tim Jordan Hayes wrote: Add to your Connectore definition: address='127.0.0.1' or whatever IP address you wish to bind to. Just for fun, where is this documented? Thanks, that worked. /jordan - 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: Getting Tomcat to _only_ listen to localhost
> Add to your Connectore definition: > address='127.0.0.1' or whatever IP address you wish to bind to. Just for fun, where is this documented? Thanks, that worked. /jordan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Bouncing Tomcat (for new classes)
Thanks, got it. Tammer - Original Message - From: "Tim Funk" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Sunday, February 23, 2003 4:54 PM Subject: Re: Bouncing Tomcat (for new classes) > You probably had tomcat configured in the past to look for these changes > in .class files and automatically restart the web application. For some > reason - its now turned off. (I don't like that feature anyways). > > If your change is only a class change in a webapp - all you have to do > is restart the webapp. The manager application can do this for you. > > http://jakarta.apache.org/tomcat/tomcat-4.1-doc/manager-howto.html > > > -Tim > > Tammer Salem wrote: > > I was under the impression that you did not have to restart Tomcat when you change > > .class files. > > I currently have an application under webapps with a directory under > > . I used to change the classes and run my application normally. Now I > > found that I have to restart Tomcat every time I change a .class file for Tomcat > > to notice the change. > > Does anyone know why this is happening? > > > > Thanks. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: Bouncing Tomcat (for new classes)
You probably had tomcat configured in the past to look for these changes in .class files and automatically restart the web application. For some reason - its now turned off. (I don't like that feature anyways). If your change is only a class change in a webapp - all you have to do is restart the webapp. The manager application can do this for you. http://jakarta.apache.org/tomcat/tomcat-4.1-doc/manager-howto.html -Tim Tammer Salem wrote: I was under the impression that you did not have to restart Tomcat when you change .class files. I currently have an application under webapps with a directory under . I used to change the classes and run my application normally. Now I found that I have to restart Tomcat every time I change a .class file for Tomcat to notice the change. Does anyone know why this is happening? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache modules with Tomcat
If you use JK, apache can do most of the work for you with their modules. If you are only running tomcat - you'll need to write Valves to get the modular like functionality. Filters might work too and are portable across containers but you are restricted in functionality with filters compared to Valves. And there are not many (hardly any) valves which do module-like things since most people are "lazy/smart" and use apache to do the module work instead. -Tim Jordan Hayes wrote: Is there a way to add modules to servlet processing? For instance, I'd like to add mod_headers to attach extra headers to the output of a servlet without changing the servlet itself. Can the "filter" functionality of Apache2 help me here? Thanks, /jordan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Getting Tomcat to _only_ listen to localhost
Add to your Connectore definition: address='127.0.0.1' or whatever IP address you wish to bind to. If this property is not defeined - then tomcat binds to all ip addresses for that port. -Tim Jordan Hayes wrote: I'd like for the standalone HTTP server and the Coyote/JK2 AJP 1.3 Connector to only listen to localhost. I tried setting defaultHost="localhost" in the connector (for example) and that still leaves me with *.8009 ... Any ideas how to do this? Thanks, /jordan - 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]
Bouncing Tomcat (for new classes)
I was under the impression that you did not have to restart Tomcat when you change .class files. I currently have an application under webapps with a directory under . I used to change the classes and run my application normally. Now I found that I have to restart Tomcat every time I change a .class file for Tomcat to notice the change. Does anyone know why this is happening? Thanks.
Re: Tomcat Porting
Jeff Masud typed the following on 01:28 23/02/2003 -0800 >However after switching over one of our application servers, we >noticed some problems. I've tested both J2sdk 1.4 and IBM Java 1.4 and >both have proven to given the same results. Anytime we run Tomcat, >everthying works fine for a little while but long it run, the slower login >and lookup become. Have you tried profiling it under OptimizeIt? That would be my first step. It's commercial but you can download a demo copy. http://www.borland.com/optimizeit/ Kief - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cgi-bin on Tomcat
Hello! Where is the directory (cgi-bin on Apache) where i can put my executables (an executable file for a mapserver for example) in it? Is it the root directory? It doesn't work... Cheers Stefan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Virtual Hosting with apache and tomcat
Hi, Robert Einsle: > > you can try to use > > > > as in the server.xml. > > > > That maps "ROOT" to "/" > > > > So i believe (!) with this you can access your Context in the root > > directory. > I don't knew, but i think with this Method i can only use one servlet-context > as root-Context. > But i ned the ability to use different root-contexts with different virtual > Hosts in apache. http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/context.html: | " You may define as many Context elements as you wish, nested within a Host | element in conf/server.xml " config for host elements: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/host.html Ciao Jens Skripczynski -- E-Mail: skripi(at)myrealbox(dot)com at present, with the exception of tobacco, alcohol and television, most drugs are illegal, and yet our kids can always find them on every school corner -- Manu Chao - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Wildcard mappings in server.xml
Hello All, I would like to build a simple servlet such that when a user visits my website with a subdomain of their choosing 1 of 2 things happens. If a user tries to visit a sub-domain that has not been "set" I present them a form with a prompt that says... Welcome to Domain.com! I noticed you were trying to visit foo.domain.com. No information has been set for subdomain foo. You can set it by submitting a URL in the form below. URL: If, however, the servlet does have information about the subdomain, it forwards off to the URL. Is it possible to setup a Host and context to provide this functionality in a servlet? How would I setup server.xml such that the subdomain would be provided to the servlet correctly? I have tried to setup up *.domain.com, similar to what I do in Apache... but the server name is always truncated to domain.com. Any help would be appreciated, Tyler - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JDBC & ORACLE implementation !
hey CHONG ~ i think that i have got my all the answers here in the mail u send me. gosh , i never knew all these details are lying behind my implementation thought of a good database. i really went through all the details u gave me here. anyways i am thinking now more seriously about the FILE SYSTEM and its implementation. anyway, if i get more doubts on this topic, i will put those questions here, thanx all ! Swapneel Dange 505-642-4126 http://www.cs.nmsu.edu/~sdange From: Chong Yu Meng <[EMAIL PROTECTED]> Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]> To: Tomcat Users List <[EMAIL PROTECTED]> Subject: Re: JDBC & ORACLE implementation ! Date: Thu, 20 Feb 2003 17:11:35 +0800 Hi Swapneel ! I need you to clarify something : are you processing the files first, then putting them into the database, or are you putting all the raw data inside the database and doing SQL operations to extract the data you want ? I am assuming that you want to do the second option, am I right ? I need to make a few other things clear : 1. If you are committing 1MB of data into the database per operation, that would take a looong time, and I'm not sure if that is the most efficient, or even the easiest way to do what you are trying to do. Why I say that is, Oracle is fine when you break up the data and commit, perhaps line by line, to the database. Not very fast or efficient, but still manageable. My experience of Oracle, though limited, has not exactly given me much confidence in its ability to handle huge data in individual fields. Stuff the fields with too much data, and try to work with them, and you will realize the necessity to tune Oracle. I'm not an expert on Oracle, nor do I care to be, so I won't try this. 2. String manipulation with Java 1.4 is possible and quite easy, now that it supports regular expressions. If, like me, you'd like to do things the "hard way", you can use the string handling functions in Java to do the processing for you. It's actually a lot easier than it sounds. I refer to O'Reilly's Java Cookbook for examples on this. 3. The least risky way (and some would say, the lazy way) is to just improve on the existing code -- use the FILE SYSTEM solution that already exists and extend the functionality, fix bugs, or improve the GUI. It's not because you may be "re-inventing the wheel", as some may say, if you choose to implement it in a database. I am assuming that you don't have a lot of time, and there is no in-house expertise you can refer to (i.e. programmer friends where you live, that you can ask), and, as you say, you are coming into this for the first time. As a rough indicator (and I invite others to correct me), it takes : - 1 month to understand Oracle - 2 weeks to get JDBC working the way you want - 2 weeks or more to work out the business logic - 1 week to figure out how to draw graphs - 2 weeks to fix bugs - 1 week to understand the deployment environment - 1-2 weeks to fix problems related to the deployment environment - Total : 14 weeks That's more than 3 months, and assumes that you devote yourself 100% to the project. A filesystem solution however takes : - 1 week to learn about file i/o - 1 week to learn how to do string manipulation - 1 week to learn graphs - 2 weeks to fix bugs - 2-3 weeks to deploy - Total : 8 weeks You might want to just go with a simple file system solution for now, and slowly work out how to do the rest later, when you are not hurried. It really is better. Regards, pascal chong Swapneel Dange wrote: hey CHONG ! yepp, i think i am hurrying too fast, and i have the FILE SYSTEM with me but the thing is that i need a sytem is which i can atlesat shoud be able to do something like this -- 1) strip of the files of the un-necessary content. 2) then use the data for searching patterns. 3) apply the patterns to the unsual causes. 4) then use the data to relate to GRAPHS right now i am using a file system in which i cant perform the string matching and other operatoins. moreover all thsi has to be implemented on teh WINDOWS NT or XP. so i am sure as to how u implement somethign like shell scripting in windows. anyways thats more or less knowledge i ahev about al lthis. will be great to hear from u about all this ! thanx ! Swapneel Dange 505-642-4126 http://www.cs.nmsu.edu/~sdange - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat Porting
This is a question about porting a webapp from Orion to Tomcat. We recently have a fully funtioning web application for our service working great, with Orion. It's currently running and has been running very fast, however we are looking to expand our application servers and decided to move to Tomcat for of course cost issues. However after switching over one of our application servers, we noticed some problems. I've tested both J2sdk 1.4 and IBM Java 1.4 and both have proven to given the same results. Anytime we run Tomcat, everthying works fine for a little while but long it run, the slower login and lookup become. I've also noted that in the logs there are no errors then errors start occurring and users can no longer or after a very long delay login. We would get either 2003-02-19 01:26:43 ApplicationDispatcher[] Servlet.service() for servlet jsp threw exception javax.servlet.ServletException: /templates/gaggle/html/systemError.jsp at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:211) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381) or 2003-02-19 09:57:37 StandardManager[] Cannot serialize session attribute GAGGLE$STATE for session 54279C61F055148C959AE9D7B7B51962 java.io.NotSerializableException: com.gaggle.util.Services I'm can config linux all day, but I'm not a java programmer so I'm not sure what these mean. I'm looking for someone point me in the right direction or to do tomcat consulting. Like I said we've got a config that is working correctly under an Orion, and after switching to Tomcat there are some problems with errors and such. If there is anyone who can lend assistance please send me an email at [EMAIL PROTECTED] Thanks for your help. Jeff - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Mac os x and class files
Hi Warren, What are values for JAVA_HOME, CATALINA_HOME, CATALINA_BASE, and your CLASSPATH? Regards, Tony On Saturday, Feb 22, 2003, at 17:40 Europe/Berlin, Warrren Burholt wrote: Here is the version of my java 1.4.1 DP10. java -version java version "1.4.1" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1-24) Java HotSpot(TM) Client VM (build 1.4.1_01-12, mixed mode) Since Tony states that he is using 1.4.1 and 4.1.18, I installed 4.1.18. Running Tomcat standalone on 10.2.3 I have the same situation as before. My class files are not being found. I've put them everywhere I could think to test. /usr/local/jakarta-tomcat-4.1.18/webapps/ROOT/529_jsp_021103/WEB-INF/ classes /usr/local/jakarta-tomcat-4.1.18/webapps/ROOT/WEB-INF/classes /usr/local/jakarta-tomcat-4.1.18/common/classes /usr/local/jakarta-tomcat-4.1.18/shared/classes /usr/local/jakarta-tomcat-4.1.18/classes Any additional suggestions for testing would be greatly appreciated. Warren From: Anthony Marlowe <[EMAIL PROTECTED]> Date: Sat Feb 22, 2003 6:39:20 AM America/Montreal To: "Tomcat Users List" <[EMAIL PROTECTED]> Subject: Re: Mac os x and class files Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]> Hi, I would like to know your Mac OS X configuration. I have Tomcat 4.1.18 running standalone and in conjunction with JBoss 3.0.6 with Apples 1.4.n DP10 and OS X 10.2.4. With no problem what so ever. This all works with 1.3.1 also with no problem. In addition I have mod_jk2 installed and running Apache 2.0.44 with no problem. By the way I do not use the light version, I have also replace the LE version in JBoss to the full version. For your infor JBoss with Jetty works correctly. Regards, Tony On Saturday, Feb 22, 2003, at 04:44 Europe/Berlin, Warrren Burholt wrote: I'm using JDK 1.4. I'll go back to 1.3 although my 4.0.3 has the exact same problem with finding classes whether I'm using 1.3 or 1.4 After I have 1.3 running, if the problem persists in 4.1.18 (and not the 1.4 version!), at least I will know that the preview version is not the cause. And I did mean 4.1.18, although I see I have it named in usr/local as jakarta-tomcat-4.1.8-LE-jdk14 I'm really glad to hear that Tomcat works great on os x -- actually that has been my experience with jakarta-tomcat-4.0.3 except for the class mystery. Thank you for your help, Jake and Ian. From: Jake Robb <[EMAIL PROTECTED]> Date: Fri Feb 21, 2003 9:17:35 PM America/Montreal To: Tomcat Users List <[EMAIL PROTECTED]> Subject: Re: Mac os x and class files Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]> The 1.4.x JDK isn't production-ready for OS X yet. There are developer preview versions, but they're far from reliable or complete at this time. -Jake Ian McFarland wrote: Are you using JDK1.3.1 or 1.4.1 on your OS X box? You know the default configuration for OS X is to use 1.3.1, and you should be doing so for production anyway. In any case, I use Tomcat 4.1.12 (not the LE version) on OS X 10.2.4 all the time. (And have on 10.2.3, 10.2.2, 10.2.1, 10.1.x...) and it worked consistently very well. Classloading always worked fine under all the conditions you specified. I haven't upgraded o 4.1.18 but I don't expect there are any new issues there. (Did you mean 8 or 18?) In any case, Tomcat runs great on OS X! -Ian On Friday, February 21, 2003, at 05:35 PM, Warrren Burholt wrote: Hello Tomcat Users, On os x 10.2.3 I installed jakarta-tomcat-4.1.8-LE-jdk14 in usr/local I cannot get Tomcat to load my classes. Besides putting them in webapps/ROOT/WEB-INF/classes, I have tried common/classes and shared/classes. I have reverted back to using jakarta-tomcat-4.0.3 And there I have only been able to access class files from jakarta-tomcat-4.0.3/classes and not from WEB-INF/classes I have searched on this problem and have followed the solutions, but nothing has worked. I suspect I am overlooking something basic. And I wonder if my problem is specific to Tomcat on a Mac? I have no problems with classes on my NT environment at work. Thanks for your help, Warren -- --- 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] -