Re: Problem under win98
Michael Burke wrote: When I start tmcat under win 98 it hangs after the linePooltcpConnection: StartingAjp12ConnectionHandler on 8007 , my internet connection is a dsl line in case that has anything to do with it. Any suggestions would be appreciated. That's the normal behavior. Tomcat is running now, try it out. Anne-Marie -- = Anne-Marie Ternes Informaticien diplômé Centre Informatique de l'Etat B.P. L-1011 Luxembourg Tél: 49 925 642 E-Mail: [EMAIL PROTECTED] =
Re: Chris Nolte
Hi Michael, I'm sorry I just replied to a previous thread of yours and just saw now that yoiu already knew the answer. Please be aware that multiple postings are not very well seen in newsgroups - no offense intended. Anne-Marie Michael Burke wrote: Thanks Chris you were right tomcat was running and I didn't realize it. Doh!!! - Original Message - From: Michael Burke To: [EMAIL PROTECTED] Sent: Wednesday, April 18, 2001 9:30 PM Subject: Tomcat hangs under win 98 Tomcat hangs under win 98 after the line "PoolTcpConnection: StartingAjp12ConnectionHandler on 8007". My internet connection is a dsl line if that has anything to do with it. Any help would be appreciated. -- = Anne-Marie Ternes Informaticien diplm Centre Informatique de l'Etat B.P. L-1011 Luxembourg Tl: 49 925 642 E-Mail: [EMAIL PROTECTED] =
Re: jsp + servletbean (problem 2)
Hi, I solved my little problem described below, thanks to some messages I found here! Three things I got wrong: - The "B" in "useBean" has to be a capital B... (arrrgghh) - The bean classname as well as the file name has to begin with a capital letter, i.e. DatabaseAccess.java, and class DatabaseAccess - I've got to put a page import statement into my JSP file: %@ page import = "DatabaseAccess" % Now this works! am Anne-Marie Ternes wrote: Hi again, I've written a small JSP here, which calls a simple servletbean through jsp:usebean tags. The aim is only to play around with the getProperty and SetProperty things, and to get jsp and servlet to work together. When I try to access the jsp, I get a strange 500 Error. This is what I have done. - I have added a context to server.xml: Context path="/javaapps" docBase="/oas/oashome/apps/javaapps" crossContext="true" debug="0" reloadable="true" /Context - I have added the following to my copied-and-cut tomcat-apache file: Alias /javaapps "/oas/oashome/apps/javaapps" Directory "/oas/oashome/apps/javaapps" Options Indexes FollowSymLinks /Directory ApJServMount /javaapps/servlet /javaapps Location "/javaapps/WEB-INF/" AllowOverride None deny from all /Location Location "/javaapps/META-INF/" AllowOverride None deny from all /Location -The directory structure: Under /oas/oashome/apps/javaapps, I've got a subdirectory "jsp" where my "jsp" file is, I've got a subdirectory WEB-INF/classes where my bean is located. - Both subdirectories are in my profile CLASSPATH, and I checked that Tomcat also considers them to be in his classpath If it can help you, I can post you the exact error the browser gives me, as well as my small JSP and my also small bean. But I didn't know if I should post them inline or as attachments? I'd be glad if someone could give me a hint on what I'm doing wrong... Thanx, Anne-Marie P.S. "No-bean" JSPs and servlets work fine. -- = Anne-Marie Ternes Informaticien diplm Centre Informatique de l'Etat B.P. 1111 L-1011 Luxembourg Tl: 49 925 642 E-Mail: [EMAIL PROTECTED] = -- = Anne-Marie Ternes Informaticien diplm Centre Informatique de l'Etat B.P. L-1011 Luxembourg Tl: 49 925 642 E-Mail: [EMAIL PROTECTED] =
Re: files included in httpd.conf (problem 1)
Hi all, the problem with my config files seems now to be solved. So now in httpd.conf I no more include the jserv.conf file. The problem with the SecretKey thing was solved by copying tomcat-apache.conf to my-tomcat-apache.conf, ant taking the LoadModule first line out of it. So I now include only the my-tomcat-apache.conf file in httpd.conf. I tried to comment out the LoadModule line in tomcat.conf, hoping that it wouldn't be generated into the tomcat-apache file, but it still does. So there seems still to remain some fumbling around with my own tomcat-apache.conf file. Now, also the redirection from Apache to Tomcat for servlets and JSP works fine. Anne-Marie Saurabh Shukla wrote: in your tomcat-apache.conf check the entry for ApJservSecretKey. tomcat-apache.conf is generated by tomcat, so a better way is to save tomcat-apache.conf with a different name and include it in your httpd.conf(apache's configuration file). -Original Message- From: Anne-Marie Ternes [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 10, 2001 6:30 PM To: Tomcat Mailing List Subject: files included in httpd.conf (problem 1) Hi, I've got a small problem here concerning which files I have to include in the httpd.conf file. I thought that the jserv.conf file didn't need to be included any longer in httpd.conf. So I only included the tomcat-apache.conf file. If I do that, Tomcat starts up allright, but Apache gives me this error during startup: You must specify a secret key, or disable this feature. To disable, add "ApJServSecretKey DISABLED" to your Apache configuration file. To use, add "ApJServSecretKey {filename}" where filename is document with more or less random contents, and perhaps a few kb in length. The Apache JServ documentation explains this in more detail. /oas/oashome/Apache/Apache/bin/httpdsctl start: httpd could not be started This, although there is a correct line ApJServSecretKey DISABLED in my tomcat-apache.conf. What do I miss here? Then I tried to include both jserv.conf and tomcat-apache.conf, but then I get an error of ApJServ directives being defined several times. What I did was to copy the tomcat-apache.conf file, cut out its ApJServ directives and include that file in httpd.conf. There's no errors anymore, but I'm still not sure if Apache really hands servlets and JSP over to Tomcat. I'm still able to call servlets through the Apache URL (), JSPs thru Apache don't work anymore. On Tomcat (8080), servlets and JSP work also. But I thought that, for example, a servlet called through the standard Apache URL should automatically be handed over to Tomcat, which doesn't seem to be the case. How can I find out if the servlet I see in my browser was handled by Tomcat or Apache? Thank you to anybody helping me on these configuration issues! Anne-Marie -- ========= Anne-Marie Ternes Informaticien diplm Centre Informatique de l'Etat B.P. L-1011 Luxembourg Tl: 49 925 642 E-Mail: [EMAIL PROTECTED] = -- ========= Anne-Marie Ternes Informaticien diplm Centre Informatique de l'Etat B.P. L-1011 Luxembourg Tl: 49 925 642 E-Mail: [EMAIL PROTECTED] =
Re: please advise me here
Hi, try changing "ID" to "Id". The thing is that following JavaBeans specification, only the first letter of the variable has to be capitalized. For example: If your bean has a variable "question", the setter method will be "setQuestion", the getter method will be "getQuestion", i.e. the first letter of your variable "question" is turned into a capital letter So, following the same rules, if your variable is "id", the set and get methods must be "setId" and "getId". HTH Anne-Marie Ying Sun wrote: Hi all, I happened to a strange problems. The command prompt window display every bean id and question as expected from database. but the jsp:getProperty name="faq" property="ID" jsp:getProperty name="faq" property="question" doesn't work, it suppose look like id question 1what's this 2 what's that but now it look like id 0 0 and also the bean property is id,why we need to put ID in jsp:getProperty name="faq" property="ID" . thank you all in advance %@ page import="com.taglib.wdjsp.faqtool.*" errorPage="error.jsp" % jsp:useBean id="faq" class="com.taglib.wdjsp.faqtool.FaqBean"/ % FaqBean[] faqs = (FaqBean[])request.getAttribute("faqs"); % html headtitleUpdate Menu/title/head form name="menu" action="/webdev/servlet/FaqAdminServlet" method="post" table border="1" align="center"trtd table bgcolor="tan" border="1" align="center" cellpadding="10" cellspacing="0" trth colspan="2"FAQ Administration: Update Menu/th/tr % for (int i=0; i faqs.length; i++) { faq = faqs[i]; % % System.out.println(faq.getID()); % % System.out.println(faq.getQuestion()); % tr tdinput type="radio" name="id" value="jsp:getProperty name="faq" property="ID"/" jsp:getProperty name="faq" property="ID"//td tdjsp:getProperty name="faq" property="question"//td /tr % } % trtd colspan=2 align="center" input type="submit" value="Abort Updating" input type="submit" value="Update Selected FAQ" onClick="document.menu.cmd.value='update'" /td/tr /table /td/tr/table input type="hidden" name="cmd" value="abort" /form /html package com.taglib.wdjsp.faqtool; import java.util.Date; public class FaqBean { private int id; private String question; private String answer; private Date lastModified; public FaqBean() { this.id = 0; this.question = ""; this.answer = ""; this.lastModified = new Date(); } public void setQuestion(String question) { this.question = question; this.lastModified = new Date(); } public String getQuestion() { return this.question; } public void setAnswer(String answer) { this.answer = answer; this.lastModified = new Date(); } public String getAnswer() { return this.answer; } public void setID(int id) { this.id = id; } public int getID() { return this.id; } public Date getLastModified() { return this.lastModified; } public void setLastModified(Date modified) { this.lastModified = modified; } public String toString() { return "[" + id + "] " + "Q: " + question + "; A: " + answer + "\n"; } } -- = Anne-Marie Ternes Informaticien diplm Centre Informatique de l'Etat B.P. L-1011 Luxembourg Tl: 49 925 642 E-Mail: [EMAIL PROTECTED] =
files included in httpd.conf (problem 1)
Hi, I've got a small problem here concerning which files I have to include in the httpd.conf file. I thought that the jserv.conf file didn't need to be included any longer in httpd.conf. So I only included the tomcat-apache.conf file. If I do that, Tomcat starts up allright, but Apache gives me this error during startup: You must specify a secret key, or disable this feature. To disable, add "ApJServSecretKey DISABLED" to your Apache configuration file. To use, add "ApJServSecretKey {filename}" where filename is document with more or less random contents, and perhaps a few kb in length. The Apache JServ documentation explains this in more detail. /oas/oashome/Apache/Apache/bin/httpdsctl start: httpd could not be started This, although there is a correct line ApJServSecretKey DISABLED in my tomcat-apache.conf. What do I miss here? Then I tried to include both jserv.conf and tomcat-apache.conf, but then I get an error of ApJServ directives being defined several times. What I did was to copy the tomcat-apache.conf file, cut out its ApJServ directives and include that file in httpd.conf. There's no errors anymore, but I'm still not sure if Apache really hands servlets and JSP over to Tomcat. I'm still able to call servlets through the Apache URL (), JSPs thru Apache don't work anymore. On Tomcat (8080), servlets and JSP work also. But I thought that, for example, a servlet called through the standard Apache URL should automatically be handed over to Tomcat, which doesn't seem to be the case. How can I find out if the servlet I see in my browser was handled by Tomcat or Apache? Thank you to anybody helping me on these configuration issues! Anne-Marie -- ========= Anne-Marie Ternes Informaticien diplm Centre Informatique de l'Etat B.P. L-1011 Luxembourg Tl: 49 925 642 E-Mail: [EMAIL PROTECTED] =
jsp + servletbean (problem 2)
Hi again, I've written a small JSP here, which calls a simple servletbean through jsp:usebean tags. The aim is only to play around with the getProperty and SetProperty things, and to get jsp and servlet to work together. When I try to access the jsp, I get a strange 500 Error. This is what I have done. - I have added a context to server.xml: Context path="/javaapps" docBase="/oas/oashome/apps/javaapps" crossContext="true" debug="0" reloadable="true" /Context - I have added the following to my copied-and-cut tomcat-apache file: Alias /javaapps "/oas/oashome/apps/javaapps" Directory "/oas/oashome/apps/javaapps" Options Indexes FollowSymLinks /Directory ApJServMount /javaapps/servlet /javaapps Location "/javaapps/WEB-INF/" AllowOverride None deny from all /Location Location "/javaapps/META-INF/" AllowOverride None deny from all /Location -The directory structure: Under /oas/oashome/apps/javaapps, I've got a subdirectory "jsp" where my "jsp" file is, I've got a subdirectory WEB-INF/classes where my bean is located. - Both subdirectories are in my profile CLASSPATH, and I checked that Tomcat also considers them to be in his classpath If it can help you, I can post you the exact error the browser gives me, as well as my small JSP and my also small bean. But I didn't know if I should post them inline or as attachments? I'd be glad if someone could give me a hint on what I'm doing wrong... Thanx, Anne-Marie P.S. "No-bean" JSPs and servlets work fine. -- = Anne-Marie Ternes Informaticien diplm Centre Informatique de l'Etat B.P. L-1011 Luxembourg Tl: 49 925 642 E-Mail: [EMAIL PROTECTED] =
Re: files included in httpd.conf (problem 1)
Saurabh Shukla wrote: in your tomcat-apache.conf check the entry for ApJservSecretKey. It is correct. It says: ApJServSecretKey DISABLED tomcat-apache.conf is generated by tomcat, so a better way is to save tomcat-apache.conf with a different name and include it in your httpd.conf(apache's configuration file). That's what I already did before. am -Original Message- From: Anne-Marie Ternes [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 10, 2001 6:30 PM To: Tomcat Mailing List Subject: files included in httpd.conf (problem 1) Hi, I've got a small problem here concerning which files I have to include in the httpd.conf file. I thought that the jserv.conf file didn't need to be included any longer in httpd.conf. So I only included the tomcat-apache.conf file. If I do that, Tomcat starts up allright, but Apache gives me this error during startup: You must specify a secret key, or disable this feature. To disable, add "ApJServSecretKey DISABLED" to your Apache configuration file. To use, add "ApJServSecretKey {filename}" where filename is document with more or less random contents, and perhaps a few kb in length. The Apache JServ documentation explains this in more detail. /oas/oashome/Apache/Apache/bin/httpdsctl start: httpd could not be started This, although there is a correct line ApJServSecretKey DISABLED in my tomcat-apache.conf. What do I miss here? Then I tried to include both jserv.conf and tomcat-apache.conf, but then I get an error of ApJServ directives being defined several times. What I did was to copy the tomcat-apache.conf file, cut out its ApJServ directives and include that file in httpd.conf. There's no errors anymore, but I'm still not sure if Apache really hands servlets and JSP over to Tomcat. I'm still able to call servlets through the Apache URL (), JSPs thru Apache don't work anymore. On Tomcat (8080), servlets and JSP work also. But I thought that, for example, a servlet called through the standard Apache URL should automatically be handed over to Tomcat, which doesn't seem to be the case. How can I find out if the servlet I see in my browser was handled by Tomcat or Apache? Thank you to anybody helping me on these configuration issues! Anne-Marie -- ========= Anne-Marie Ternes Informaticien diplm Centre Informatique de l'Etat B.P. L-1011 Luxembourg Tl: 49 925 642 E-Mail: [EMAIL PROTECTED] = -- ========= Anne-Marie Ternes Informaticien diplm Centre Informatique de l'Etat B.P. L-1011 Luxembourg Tl: 49 925 642 E-Mail: [EMAIL PROTECTED] =
Apache 1.3.9. and Tomcat 3.2.1 integration
Hi, I'm using here Oracle's IAS 8i, which is basically an Apache 1.3.9 web server. I've been trying desperately to integrate Tomcat into Apache. Tomcat on itself runs ok, the examples work. But when I try to start Apache, I always get a message telling me that several "ApJServ" directives should not be defined several times for the same host. So I tried to delete these directives from the Tomcat conf files, but to no avail, as these files are always recreated. He didn't neither accept that I delete them from jserv.conf. BTW, the documentation (Tomcat User Guide) is very confusing. I didn't really understand which one of tomcat.conf and tomcat-apache.conf I had to include in httpds.conf? Also, does jserv.conf still need to be included to? In the end I tried to get them again working separately, which is fine for Tomcat, but now Apache tells me that I had to mention the ApJServSecretKey feature. This directive IS in jserv.conf, not commented, and spelled correctly. I'd be really glad if someone could help me with this. The aim is to get Tomcat working with Apache, so that JSP and servlets are passed to Tomcat and Apache manages static files. Thank you very much in advance, Anne-Marie Ternes -- = Anne-Marie Ternes Informaticien diplm Centre Informatique de l'Etat B.P. L-1011 Luxembourg Tl: 49 925 642 E-Mail: [EMAIL PROTECTED] =
Re: Apache 1.3.9. and Tomcat 3.2.1 integration
Hi, as I was pretty sure I completely messed up my configuration files, I restored the pre-messed-up files. I got to work Tomcat alone, and Apache alone, then included the tomcat-apache.conf file in httpds.conf. He complained again about the double definitions of several directives, so I copied the file and took the directive lines out. Now it works! I tried with and without including the Oracle specific config file, it always works. Now I've got to find out how to let Tomcat handle the JSP and Servlets. BTW is there a way to see somewhere if the servlet or jsp I see in my browser was served by Apache or Tomcat? Thank you, Anne-Marie Christian Bjrnbak wrote: Hi Oracle IAS 8i is distributed with Jserv... So you have to remove this Oracle specific Jserv configuration - It's referenced in Httpd and the file is called oracle_web.conf or something. Hope it helps.. /Christian Bjrnbak = Anne-Marie Ternes Informaticien diplm Centre Informatique de l'Etat B.P. L-1011 Luxembourg Tl: 49 925 642 E-Mail: [EMAIL PROTECTED] =