Re: Netscape/Tomcat link appears incorrect
Don't use Netscape (iPlanet?) myself, but that sure sounds like either a mime type is not set up right, or the 'content-type: text/html' is not being output. -joe- Andrew Willshire wrote: Hello, I've been tinkering with the Netscape/Tomcat integrationi for a few weeks now, using the documentation supplied with the Tomcat installation, and the process doesn't seem to work according to the documentation. I don't know if the link itself is a problem, or the doco, but after following all the steps in the online help, when NES 3.6 attempts to serve JSP's, all that it ends up showing is the source code for the JSP, and not the output. Has anyone else encountered this, or have I installed something incorrectly? I've gone over the doco with a fine tooth comb, but to no avail. Cheers, Andrew. --
Re: Does Tomcat needs jdk 1.2.2
Tim O'Neil wrote: Not really. You either use tools and standards that other people before have developed, and agree to their terms and give them due credit where appropriate, or re-invent the wheel all over again. That's not sad at all, that's fair trade. How would you like it if a customer (maybe I'm alone in this but I've never worked for a company that paid Sun a dime for the JDK itself) came up to you and said I want to redistribute your product and not only that I want you to re-engineer it so that it works to MY specifications, and if you bill me I'm going to tell you to get lost. Tim, I work for a US Defense contractor and we do this sort of here's what we want your product to do thing all the time. Of course we pay through the nose for it too. One of the way's we're trying to cut costs is to use-it-like it is, or better known as Commercial-off-the-shelf (COTS). We are trying to fit our product around different COTS products. We too must live with SUN's rightful claim to rights for their product. We will be distributing tools.jar with our product. I agree 100% SUN has the right to control how their product is distributed, even that Bill Gates fella does too. I just try to stay away from his stuff. -joe-
Re: Does Tomcat needs jdk 1.2.2
Believe me, we never give anything away! -joe- Tim O'Neil wrote: At 02:25 PM 7/3/2001, you wrote: Not really. You either use tools and standards that other people before have developed, and agree to their terms and give them due credit where appropriate, or re-invent the wheel all over again. That's not sad at all, that's fair trade. How would you like it if a customer (maybe I'm alone in this but I've never worked for a company that paid Sun a dime for the JDK itself) came up to you and said I want to redistribute your product and not only that I want you to re-engineer it so that it works to MY specifications, and if you bill me I'm going to tell you to get lost. Tim, I work for a US Defense contractor and we do this sort of here's what we want your product to do thing all the time. I've never heard of a defense contractor that was giving away their product.
Re: Does Tomcat needs jdk 1.2.2
Yes, I did read your post in it's entirety, and believe I said, I agree. If not then that's what I intended to imply. Tim O'Neil wrote: At 02:47 PM 7/3/2001, you wrote: I work for a US Defense contractor and we do this sort of here's what we want your product to do thing all the time. I've never heard of a defense contractor that was giving away their product. One more thing; did you actually read my post? Doesn't seem like it...
Re: Does Tomcat needs jdk 1.2.2
Whatever, if you are having a bad day let's talk off list. We've wasted enough bandwidth. My point concerned Java JDK distribution not being free. Tim O'Neil wrote: At 03:17 PM 7/3/2001, you wrote: Believe me, we never give anything away! Right. Making your point pointless. Why don't people believe in making sense anymore?
Is my_mod_jk.conf Only Way
Hi, I'm trying to get Apache (1.3.20) and Tomcat (3.2.2) to recognize similar URL's. By this I mean, get rid of the /servlet in the Apache mapping. The only way I've found to do this is to copy mod_jk. conf-auto to another file, I called it my_mod_jk.conf and change the JkMount lines. For example, I changed: JkMount /admin/servlet/* ajp12 JkMount /admin/*.jsp ajp12 to: JkMount /admin/* ajp13 It works fine, except everything in the admin directory, even the html is served by Tomcat I believe. Is there a better way? What's the purpose of Apache in this case, unless I use unique subdirectories for static html files? Or is Apache picking up the html files? How can I tell which one serves the html files with the /admin/* mapping? Also, although I configured Tomcat's server.xml to recognize Ajpv13, I noticed it was still using Ajpv12. Why? Any help would be much appreciated. THANKS -joe- [EMAIL PROTECTED] / [EMAIL PROTECTED] / [EMAIL PROTECTED] http://www.flashman.com/ (303) 971-8780 B-24 Crew Registry http://www.co.pueblo.co.us/pwam/crew_registry/
RE: bindexception
If you just installed Apache 1.3.20, you might look at: APACHE_HOME/conf/httpd. conf and change the port from 8080 to 80 where it should be. Why Apache is now coming preset to be on port 8080 is beyond me, but we noticed it when we downloaded and built on our Solaris server. Hopefully, this shouldn't be the cause of the problem since you must start Tomcat before starting Apache. Hope this helps. -joe- At Monday, 2 July 2001, you wrote: A. Stop whatever is using the port you are trying to use B. Change the port you are trying to use. To determine what ports you are trying to use with Tomcat, look in the sever.xml file for the Connectors, they will have ports associated with them. These are the ports that you are trying to use and are having a conflict with. By default Tomcat uses 8080 and 8007, which sometimes conflict with other web server configurations (Web-based administration, etc). Randy -Original Message- From: Brawner, Jerry J [mailto:[EMAIL PROTECTED]] Sent: Monday, July 02, 2001 2:39 PM To: '[EMAIL PROTECTED]' Subject: bindexception i'm getting the following error when i try to start tomcat. can someone tell me what i need to do. thanks, jb FATAL:java.net.BindException: Address already in use java.net.BindException: Address already in use at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:390) at java.net.ServerSocket.init(ServerSocket.java:173) at java.net.ServerSocket.init(ServerSocket.java:124) at org.apache.tomcat.net.DefaultServerSocketFactory.createSocket( DefaultServerS ocketFactory.java:97) at org.apache.tomcat.service.PoolTcpEndpoint.startEndpoint(PoolTc pEndpoint.java :239) at org.apache.tomcat.service.PoolTcpConnector.start(PoolTcpConnec tor.java:188) at org.apache.tomcat.core.ContextManager.start(ContextManager.java:527) at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:202) at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235) [EMAIL PROTECTED] / [EMAIL PROTECTED] / [EMAIL PROTECTED] http://www.flashman.com/ (303) 971-8780 B-24 Crew Registry http://www.co.pueblo.co.us/pwam/crew_registry/
FRUSTRATED: Is my_mod_jk.conf Only Way
HELP! I'm getting real frustrated. Based on what I've been reading on the list and the archives, I've tried modifying: tomcat-apache.conf server.xml uriworkermap.properties mod_jk.conf workers.properties to get Tomcat (3.2.2) and Apache (1.3.20) working on Win98SE, WinNT, and Solaris 2.7 machines nothing I change other than replacing mod_jk.conf-auto seems to change anything. Can someone explain what files impact the Apache/Tomcat configuration or what they do? Here's the list of files in the conf directory: build.xml iis_redirect.reg-auto jni_server.xml jni_workers.properties manifest.servlet mod_jk.conf mod_jk.conf-auto obj.conf obj.conf-auto server.xml test-tomcat.xml tomcat-apache.conf tomcat-users.xml tomcat.conf tomcat.policy tomcat.properties uriworkermap.properties uriworkermap.properties-auto web.dtd web.xml workers.properties wrapper.properties I'm assuming I can ignore all the IIS files, but I'm beginning to even doubt that. If someone could just tell me which files are involved, and in what hierarchy or sequence they are used I could proceed on my own. It seems like nothing I change, like trying to use ajp13 instead of ajp12 works. Which of the above files impact my configuration and which can I ignore? Any documentation project should outline what the files are for and what they do. The cause of my frustration is that we (I) convinced our customer that we didn't need or want to use Oracle 9iAS Application Server, after 6 months of using it, and to use Apache/Tomcat instead. Since they were convinced, I've run into nothing but frustrations trying to get Tomcat/Apache to work together. I've posted three previous messages to the list, including the one below, and received no response. HELP!!! -joe- Joseph A. Noble wrote: Hi, I'm trying to get Apache (1.3.20) and Tomcat (3.2.2) to recognize similar URL's. By this I mean, get rid of the /servlet in the Apache mapping. The only way I've found to do this is to copy mod_jk. conf-auto to another file, I called it my_mod_jk.conf and change the JkMount lines. For example, I changed: JkMount /admin/servlet/* ajp12 JkMount /admin/*.jsp ajp12 to: JkMount /admin/* ajp13 It works fine, except everything in the admin directory, even the html is served by Tomcat I believe. Is there a better way? What's the purpose of Apache in this case, unless I use unique subdirectories for static html files? Or is Apache picking up the html files? How can I tell which one serves the html files with the /admin/* mapping? Also, although I configured Tomcat's server.xml to recognize Ajpv13, I noticed it was still using Ajpv12. Why? Any help would be much appreciated. THANKS -joe-
Re: Prefix subject headers in Tomcat list?
The Subject gets too long and then you have to widen the subject column to see what the message is really about. This may not be an option on some laptops or other low res devices. pete wrote: It also helps to be able to see the mails from the tomcat list if they are mixed in with the rest - i use several mail clients to read mail on my IMAP server, and not all of them do automatic filtering. Is there any good reason not to prefix tomcat-user mail with [tomcat-user]? -Pete At 03:12 PM 7/1/2001, you wrote: Is it possible for the list admin to apply a '[tomcat-user] ' or similar prefix to all mails sent from the mailing list? This helps a lot in separating list traffic from other traffic. My client allows filtering via one or all of the incoming mail headers, I filter the tomcat mail list with the Any Recipient header. I don't know that this header is an rfc 821 compliant one (In fact I can't find it in the rfc) but it works for me. Surely you can filter out tomcat mail list messages through one of the other ones though. -- [EMAIL PROTECTED] / [EMAIL PROTECTED] http://www.flashman.com/ (303) 971-8780 B-24 Crew Registry http://www.flashman.com/cgi-bin/crew-reg.cgi
Apache/Tomcat mod_jk URL's (404's)
I'm having trouble trying to get Apache to recognize my deployment descriptor (web.xml) on both win98 and Unix (Solaris v5.7). I'm running Apache 1.3.20 and Tomcat 3.20 on both. For example the SUN Java servlet tutorial application bookstore.war doesn't work the way I want. This application unwars into TOMCAT_HOME/webapps/bookstore just fine. I can access the bookstore application just as I'd expect and want under tomcat using the URL: http://hostname:8080/bookstore/enter However, on the same machine the following URL doesn't work going through Apache and gives a 404 error. http://hostname/bookstore/enter When trying this URL on my Win98SE machine, the Apache error log shows: [Thu Jun 28 18:34:54 2001] [error] [client 127.0.0.1] File does not exist: c:/program files/apache group/apache/htdocs/bookstore/Enter I get essentially the same response on the Unix system, with the Enter replaced with enter and looking something like: /opt/httpd/htdocs/bookstore/enter The Deployment Descriptor (aka web.xml) portion for the application typically looks like: ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN http://java.sun.com/j2ee/dtds/web-app_2_2.dtd; web-app servlet servlet-nameenter/servlet-name servlet-classBookStoreServlet/servlet-class /servlet o o o servlet-mapping servlet-nameenter/servlet-name url-pattern/enter/url-pattern /servlet-mapping o o o /web-app I've spent the last week looking through the mailing list archives and trying to hack something that worked without luck. (That thing on Solaris about moving or linking the JDK tools.jar to the TOMCAT_HOME/lib directory was very annoying.) The only thing I've been able to come up with is to copy the mod_jk.conf-auto file to my mod_jk.conf and include this file in httpd.conf. Hopefully, this is not the answer since I'd have to modify this file for each context I add and consider the question what's the purpose of mod_jk). I've seen many discussions on similar problems but nothing seems to work. This seems to be a common area of confusion and frustration with the Tomacat Apache marriage. I've given up on anything fancy, I'd settle on anything that will re-direct anything to given directories to tomcat. Does anyone have a suggestion on how to get this simple mapping to work? I've also noticed all the connections seem to be via Ajp12 rather than the more efficient Ajp13 protocol. I've modified the server.xml file to include the Ajp13 Connector. How do I force all connections to Ajp13 and forget Ajp12? Granted, I need to leave the Ajp12 protocol enabled as a connector to allow shutting down tomcat. I'm rather panic'ed for an answer since I convinced our customer that Oracle 9iAS using Jserv was not what we wanted to use. Help and TIA -joe-
Re: Testing JSP
Moin and Kevin, Thank you both very much for replying. What I ended up having to do was shutdown apache/tomcat, delete the files (class java) from the work directory, and then restart tomcat/apache. It's working now. What was confusing is that I had looked at the java file in the work directory and it had the changes, it's just that it wouldn't serve this version. Where was it storing the version it was serving? The computer had been shut down many, many times and each time I'd reboot, it would sit there for a long time before serving the page the first time. This seems confusing to me. What was the long delay for if it wasn't recreating the java/class files and why wasn't it serving the new version it had just created? Is this the process I have to follow for every JSP modification: Shutdown, delete, startup? THANKS -joe- "Moin Anjum H." wrote: Hi, Try to refresh the browser. Press Shift+Reload To reload the again from the server. If even than never works delete all the files in the work directory of tomcat and restart tomcat HTH Moin. "Joseph A. Noble" wrote: Hello List, How do I get tomcat to re-compile a JSP page? I've successfully loaded a JSP page and it runs fine. I made a slight change and now can not figure out how to get tomcat to recognize the changes to the JSP page source. HELP -joe- -- [EMAIL PROTECTED] http://www.flashman.com/ (303) 971-8780 B-24 Crew Registry http://www.flashman.com/cgi-bin/crew-reg.cgi -- [EMAIL PROTECTED] / [EMAIL PROTECTED] http://www.flashman.com/ (303) 971-8780 B-24 Crew Registry http://www.flashman.com/cgi-bin/crew-reg.cgi
Re: Testing JSP
It finally dawned on me. The file I had changed was an included file. Duh, I guess the process described in the message below is indeed what's required when an included file is changed. -joe- "Joseph A. Noble" wrote: Moin and Kevin, Thank you both very much for replying. What I ended up having to do was shutdown apache/tomcat, delete the files (class java) from the work directory, and then restart tomcat/apache. It's working now. What was confusing is that I had looked at the java file in the work directory and it had the changes, it's just that it wouldn't serve this version. Where was it storing the version it was serving? The computer had been shut down many, many times and each time I'd reboot, it would sit there for a long time before serving the page the first time. This seems confusing to me. What was the long delay for if it wasn't recreating the java/class files and why wasn't it serving the new version it had just created? Is this the process I have to follow for every JSP modification: Shutdown, delete, startup? THANKS -joe- "Moin Anjum H." wrote: Hi, Try to refresh the browser. Press Shift+Reload To reload the again from the server. If even than never works delete all the files in the work directory of tomcat and restart tomcat HTH Moin. "Joseph A. Noble" wrote: Hello List, How do I get tomcat to re-compile a JSP page? I've successfully loaded a JSP page and it runs fine. I made a slight change and now can not figure out how to get tomcat to recognize the changes to the JSP page source. HELP -joe- -- [EMAIL PROTECTED] http://www.flashman.com/ (303) 971-8780 B-24 Crew Registry http://www.flashman.com/cgi-bin/crew-reg.cgi -- [EMAIL PROTECTED] / [EMAIL PROTECTED] http://www.flashman.com/ (303) 971-8780 B-24 Crew Registry http://www.flashman.com/cgi-bin/crew-reg.cgi -- [EMAIL PROTECTED] / [EMAIL PROTECTED] http://www.flashman.com/ (303) 971-8780 B-24 Crew Registry http://www.flashman.com/cgi-bin/crew-reg.cgi
Testing JSP
Hello List, How do I get tomcat to re-compile a JSP page? I've successfully loaded a JSP page and it runs fine. I made a slight change and now can not figure out how to get tomcat to recognize the changes to the JSP page source. HELP -joe- -- [EMAIL PROTECTED] http://www.flashman.com/ (303) 971-8780 B-24 Crew Registry http://www.flashman.com/cgi-bin/crew-reg.cgi
Context Admin Stupid Question
I've installed Tomcat 3.2.1 Servlet engine on a Win98 box. Whenever I try to access the Context Admin page (via: http://localhost:8080/admin/index.html) and try to go into Context Admin, it asks me for a username and password. I have no clue what I'm supposed to enter. I had installed an earlier version and installed 3.2.1 over the top of it. I don't recall ever entering this information when I installed either version. I grepped all the tomcat directories looking for any instructions and can't find any. I believe I have found enough info to configure the contexts manually, but I'd prefer to use the tool. How can I get into the context admin function? If I did enter a username and password when I installed the original version, is there a file I can delete or modify that will allow me to reset the login credentials? I'm just beginning to learn JSP/Servlets, so I want to be able to regen the servlets from the JSP frequently. THANKS -joe-
Re: Context Admin Stupid Question
Joe, Thank you, thank you, thank you. The users were listed in tomcat-users.xml. For some reason there was no user with the admin role. I changed the file to add one and it at least recognized the user. Then I had to modify the context in the server.xml to make admin trusted. For some reason it was false. It's amazing on another machine I can select the Context Admin link, but it won't let me view "All Contexts". Since both these machines have the same history of tomcat installs, I don't know why the response is not the same. Oh well, I'll just make them the same and go on.] THANKS MUCH -joe- Joe Emenaker wrote: it asks me for a username and password. I have no clue what I'm supposed to enter. Look in the web.xml file for your admin webapp. You'll find a tag that says auth-constraint. Within that, you'll find role-name. This will usually be a "role" that is specified in your global Tomcat config files (server.xml, probably). In those config files, you'll find a section that defines users and grants them certain "roles". You have to make sure that there's a user defined that is granted a role that appears in the role-name section of your admin webapp's web.xml. - Joe -- [EMAIL PROTECTED] / [EMAIL PROTECTED] http://www.flashman.com/ (303) 971-8780 B-24 Crew Registry http://www.flashman.com/cgi-bin/crew-reg.cgi