Error starting Tomcat
windows 2000 professional. tomcat 4 jdk 1.3.1 2001-12-04 11:56:54 HttpConnector[8080] Opening server socket on all host IP addresses 2001-12-04 11:56:56 HttpConnector[8080] accept: java.net.SocketException: Descriptor not a socket: JVM_SetSockOpt() TCP_NODELAY at java.net.PlainSocketImpl.socketSetOption(Native Method) at java.net.PlainSocketImpl.setOption(PlainSocketImpl.java:183) at java.net.Socket.setTcpNoDelay(Socket.java:377) at org.apache.catalina.connector.http.HttpConnector.run(HttpConnector.java:949) at java.lang.Thread.run(Thread.java:484) ¢¢ ¢ J a m e s B S w a r t ¢ Agere Systems - Colorado Design Center ¢ Site Systems Administrator IT Focal Point ¢ VOICE: 720-494-2330 ¿ FAX: 720-494-2331 ¢¢ -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: How do I redirect to mod_webapp URL?
If you are using Apache or IHS, just put this in your virtual host: Redirect / /myapp/servlet/myapp (I think that will work) - J a m e s B. S w a r t Agere Systems - Colorado Design Centers Unix/Windows Systems Administrator, WAN, LAN, Desktop, Voice, Printers, Security Focal Point, Local CIO Service Delivery Manager Contact VOICE: 720-494-2330 ¿ FAX: 720-494-2331 -Original Message- From: Scott Merritt [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 04, 2001 12:47 PM To: 'Tomcat Users List' Subject: How do I redirect to mod_webapp URL? I set up my app with mod_webapp and things are finally stable and working... The one thing I dislike is I'm using a meta refresh on HTML in the doc root that sends them to: http://mydomain.com/myapp/servlet/myapp Is there a way so when they just hit http://mydomain.com it automatically goes through to this other URL? I've messed around with mod_rewrite but I usually end up breaking things. I'm guessing there's probably something simple that I don't know about. Thanks! -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Mapping /servlet/ URLs to Tomcat 4.0.1 from Apache via mod_webapp
This brings up a question I have been dying to know an official answer to. I, also, always put reloadable=true in my server.xml file for my webapps, to prevent having to bounce tomcat after making changes. But, imagine if you have to bounce apache AND tomcat when you make changes (I believe this only holds true for tomcat 3.2.2 (I don't know if 4.0.1 fixed this yet) as if you are using the auto-generated conf files that apache read's in on startup, you would need to bounce both in order for it to work properly. I created a webapp called /java and I proxy /java in my Virtual Host to the tomcat 4.0.1 port the connector runs on. Thus far, I haven't encountered any issues, and I NEVER EVER have to bounce apache for a tomcat issue. Is there a better way, and did 4.0.1 fix this? ¢¢ ¢ J a m e s B S w a r t ¢ Agere Systems - Colorado Design Center ¢ Site Systems Administrator IT Focal Point ¢ VOICE: 720-494-2330 ¿ FAX: 720-494-2331 ¢¢ -Original Message- From: David Smith [mailto:[EMAIL PROTECTED]] Sent: Monday, November 19, 2001 9:38 AM To: Tomcat Users List Subject: Re: Mapping /servlet/ URLs to Tomcat 4.0.1 from Apache via mod_webapp It's important to note on mod_webapp that it's an application centered connector and handles requests with the application in mind. In your case, if you use WebAppDeploy ROOT warpConnection /servlet in your Apache config, then the URL looks something like http://localhost/servlet/servlet/myclass.class. To avoid that and have the URL something like http://localhost/servlet/myclass.class, you'll have to make use of servlet mappings in ROOT/WEB-INF/web.xml. There are good docs online for this including the servlet spec itself. I would think the jakarta site would point you in the right direction. Hope this helps. --David Smith On Sunday 18 November 2001 07:22 pm, you wrote: Greetings everyone, While still using Tomcat 3.2.1 and Apache 1.3.12 on the web server I maintain, I have been asked to reproduce a similar environment on a notebook running under Windows 2000 for presentation purposes. I installed, among others, Apache 1.3.20, mod_webapp and Tomcat 4.0.1. In the Tomcat 3.2.1 environment (and mod_jk), I use the following lines in httpd.conf: JkMount /servlet/* ajp13 JkMount /svl/servlet/* ajp13 So URL requests including /servlet/ or /svl/servlet are handed over to Tomcat; this is working as intended. In the new environment, I have the following lines in httpd.conf: WebAppDeploy svl warpConnection /svl/ - this works - and WebAppDeploy servlet warpConnection /servlet/ - this produces Resource not available error pages, the ones with the light blue boxes, about myclass when accessed via 127.0.0.1/servlet/myclass.class. WebAppDeploy ROOT warpConnection /servlet/ doesn't work either, as expected. 127.0.0.1/svl/servlet/myclass.class, however, produces the right output, and so do 127.0.0.1:8080/svl/servlet/myclass.class and 127.0.0.1:8080/servlet/myclass.class, because the root and svl contexts both point to the same docbase - in the default host for the tomcat standalone service as well as in the default host for the mod_webapp connector. I have tried this pattern on several other URL/context combinations, and they worked as required, but servlet seems to be the keyword Tomcat doesn't accept as a servlet indicator - in V4.0.1, that is. WebAppDeploy ROOT warpConnection / also works, but this way, all web traffic gets relayed to Tomcat, which disables my Apache PHP module and Perl, so that is not an option. So, can anyone tell me how to reproduce the behaviour I have on the web server on the Win2000 notebook? It is important for several webapps to be able to access classes without the svl/ in the URL. Any help is greatly appreciated. TIA Matthias Hupp -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: *** HELP *** mySQL connectivity problems
Does any one know of a good book, tutorial or URL for Java and mySQL connectivity? I run Tomcat mySQL on a RedHat 7.1 server and have used mySQL to setup a database with a table and a few values so I can have a real sample to toy with. I put the servlet names in the web.xml file in my webapp, but I don't know HOW to code the JAVA to talk to it. I know this is not 100% tomcat and I apologize for that, is there another group I can ask if this one is inappropriate? -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Sent: Monday, July 30, 2001 11:39 AM To: '[EMAIL PROTECTED]' Subject: Re: *** HELP *** mySQL connectivity problems On Mon, 30 Jul 2001, SIMONIN Alexandre wrote: Hi, I'm running mySQL 2.0.4 and Tomcat 4.0 on Cobalt/Linux. Are you running Tomcat 4 with a security manager (i.e. $CATALINA_HOME/bin/catalina.sh start -security)? That seems likely, given the fact that you're gatting a security manager exception. If so, you need to grant your JDBC driver permission to create a network connection to port 3306 on your database host. This is done in the conf/catalina.policy file. There are some notes near the bottom of that file documenting the way that you add this permission. Craig McClanahan When trying to get a connection to the database, I got the following error (the code is provided below - exact id and password replaced for confidentiality). Step 1 : Class.forName(org.gjt.mm.mysql.Driver); OK Step 2 : getConnection(jdbc:mysql://sherweb7.sherweb.com:3306/myDatabase?user=myIDp assword=myPwd); *** FAILURE *** SQLException: Cannot connect to MySQL server on sherweb7.sherweb.com:3306. Is there a MySQL server running on the machine/port you are trying to connect to? (java.security.AccessControlException) SQLState: 08S01 VendorError: 0 Few comments: 1/ the mySQL server's site address is OK (not the localhost) 2/ the mySQL server's port is OK 3/ the table name is OK 4/ the userID is OK 5/ the password is OK 6/ the connection looks fine through phpMyAdmin 7/ I get the same java.security.AccessControlException when doing the same request without the userID and password 6/ I got a java.net.ConnectException (which seems normal to me) when trying to call the server as if it was local to my machine, i.e.: jdbc:mysql:///myDatabase?user=myIDpassword=myPwd Any suggestion? The code: try { Class.forName(org.gjt.mm.mysql.Driver); // this or the same.newInstance() does the same System.out.println(Step1: Class.forName(\org.gjt.mm.mysql.Driver\): OK); } catch (Exception e) { System.out.println(Class.forName(\org.gjt.mm.mysql.Driver\): *** FAILURE ***); } Connection myConn = null; try { myConn = DriverManager.getConnection(jdbc:mysql://sherweb7.sherweb.com:3306/myDataba se?user=myIDpassword=myPwd); System.out.println(Step 2: getConnection(\jdbc:mysql://sherweb7.sherweb.com:3306/myDatabase?user=myID password=myPwd\): OK); } catch (SQLException e) { System.out.println(Step 2: getConnection(\jdbc:mysql://sherweb7.sherweb.com:3306/myDatabase?user=myID password=myPwd\): *** FAILURE ***); System.out.println( SQLException: +e.getMessage()); System.out.println( SQLState: +e.getSQLState()); System.out.println( VendorError: +e.getErrorCode()); } -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Win2K Server - Tomcat - Linksys Router Issue
I run a broadband linksys firewall and have no problems. I CAN tell you that if you have your port forwarding section on for ports tomcat might assign connections, it may make it hang (since I assume it assigns the ports above 1024 and increments??).. I may be off, just some thoughts. ~~ Jim Swart Agere Systems - Colorado Design Center Site Systems Administrator IT Focal Point (Boulder, Longmont, Westminster Denver) INTERNAL WEB: http://coloradoit.agere.com VOICE: (720) 494-2330 FAX: (720) 494-2331 SITE ADMIN: (720) 494-2456 ~~ -Original Message- From: Dave Solecki [mailto:[EMAIL PROTECTED]] Sent: Friday, July 27, 2001 11:35 AM To: List, Tomcat Subject: Win2K Server - Tomcat - Linksys Router Issue HI all, I have a wierd problem that I can't seem to figure out. I'm running Windows 2000 server Service Pack 2 and Tomcat. The server sits behind a Linksys broadband router. My problem is that whenever I refresh my browser 6 times my Linksys router hangs and no requests seem to be able to get out or in until I reset the router. This also seems to have been happening since the Code-Red worm came about. I saw a bunch of garbage in my command window that had the site WWW.WORM.COM in it. I checked the computer for viruses, and came up empty. I'm sorry I can't tell you the version of Tomcat I have since i do not have the server anywhere near me, but it's a recent setup so it's most likely the latest non-beta build of Tomcat. Has anyone ever heard of anything like this or had any experiences near this type? Please help. My friend and I would like to get our test website up and running again, but this is causing some real problems. Thanks, Dave [EMAIL PROTECTED] ___ Send a cool gift with your E-Card http://www.bluemountain.com/giftcenter/
Do I need to use the AJP13 container for this?
I am running Tomcat 3.2.1 with Apache 1.3.14. My default container is AJP12(mainly because I haven't tried the AJP13 yet [yeah, i know its in the docs, just haven't had time to read them to update it to use 13). If I run the HTML form against this servlet I get this error. I know usually a java.lang.NullPointerException means something is null where it should't be (like no params are passsed to the servlet). But the URL it passes (see below) shows it is passing them. Any ideas? If you don't think it's tomcat-related, post stating so to prevent other responses from inappropriately spamming the list and/or e-mail me back privately if it's not on topic. Thanks! TOMCAT ERROR CODE: Error: 500 Location: /java/servlet/JimServlet Internal Servlet Error: java.lang.NullPointerException at java.lang.ClassLoader.resolveClass0(Native Method) at java.lang.ClassLoader.resolveClass(ClassLoader.java:598) at org.apache.tomcat.loader.AdaptiveClassLoader.loadClass(AdaptiveClassLoader.j ava) at org.apache.tomcat.loader.AdaptiveServletLoader.loadClass(AdaptiveServletLoad er.java) at org.apache.tomcat.core.ServletWrapper.loadServlet(ServletWrapper.java) at org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java) at org.apache.tomcat.core.Handler.service(Handler.java) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java) at org.apache.tomcat.core.ContextManager.service(ContextManager.java) at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection (Ajp12ConnectionHandler.java) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java) at java.lang.Thread.run(Thread.java:498) URL PASSED FROM HTML CODE: http://www.this1zmine.com/java/servlet/JimServlet?LINE1=TESTING HTML FORM SOURCE CODE: HTML HEAD/head BODY CENTER FORM METHOD=GET NAME=TESTER ACTION=http://www.this1zmine.com/java/servlet/JimServlet; BInput1: INPUT TYPE=TEXT LENGTH=30 NAME=LINE1/INPUT INPUT type=submit value=SUBMIT/INPUT /FORM /BODY /HTML SERVLET SOURCE CODE: import java.io.*; import java.util.*; import javax.servlet.*; import javax.servlet.http.*; class JimServlet extends javax.servlet.http.HttpServlet { public void doGet( javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException { performTask(request, response); } public void doPost( javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException { performTask(request, response); } public void init() { } public void performTask( javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) { try { response.setContentType(text/plain); ServletOutputStream out = response.getOutputStream(); Enumeration eParmNames = request.getParameterNames(); while (eParmNames.hasMoreElements()) { String name = (String) eParmNames.nextElement(); String value = request.getParameter(name); out.println(name + = + value); } } catch (Throwable theException) { theException.printStackTrace(); } } } Jim Swart Agere Systems - Colorado Design Center Unix/NT/Solaris Systems Administrator
RE: start up tomcat from a virtual terminal
put an after the command you are using to launch tomcat. -Original Message- From: Mario Vera [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 20, 2001 12:18 PM To: TOMCAT Subject: start up tomcat from a virtual terminal Hi I have installed Tomcat 3.2 on SUN1 SERVER (O.S. Solaris 2.7),I start up Tomcat from a remote machine using a virtual terminal, if I close the terminal window, TOMCAT shut down too. I have tried to use Telnet to start up TOMCAT, but this way the X SERVER cannot started Any idea will be appreciated. Thank you
Job on DICE
I just wanted you all to know... There is a Job on DICE that *specifically* lists TOMCAT as a skill required. Title: Webmaster/Systems Administrator Skills: MS NT, Apache Tomcat servers, B2B security Check it out! We are in fact learning something that is marketable here... not just fun (for some)... http://www.dice.com/DandL/n/nm11420.wsa0420.html Jim Swart Agere Systems - Colorado Design Center Unix/NT/Solaris Systems Administrator
RE: mail return
if you are on your own mailserver, and listed as root/admin.. you are probably getting a message from your own system... I used to get things like that, and I traced them back to a cron job that was running that had no output but mailed me anyway. See what TIME it is getting the message and see if a cron job matches it. That would be my guess. -Original Message- From: Luba Powell [mailto:[EMAIL PROTECTED]] Sent: Friday, June 15, 2001 2:39 PM To: [EMAIL PROTECTED] Subject: mail return Sometimes I get weird message: The original message was received at Fri, 15 Jun 2001 13:35:56 -0700 (PDT) from localhost [127.0.0.1] Does anyone else receiving these?
RE: executing the servlet
wowsers.. You read the docs? I think as a general observation it would help the responders to your comments if you were to provide information containing what you have already done? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, June 15, 2001 12:13 PM To: [EMAIL PROTECTED] Subject: executing the servlet What do I put in the url to execute a servlet on a localhost machine. I am using jakarta as standalone. Is it: http://localhost/servletpage ?please help
RE: the name of the page you are at
look at the snoop example in your /examples stuff! -Original Message- From: teh j [mailto:[EMAIL PROTECTED]] Sent: Monday, June 11, 2001 9:57 PM To: [EMAIL PROTECTED] Subject: the name of the page you are at Hello! I was just wondering if it is possible for a JSP to get its own name? ie, say we are at test.jsp, is there some variable in the request object that lets it know that it is test.jsp? thanks! Jason _ http://messenger.yahoo.com.au - Yahoo! Messenger - Voice chat, mail alerts, stock quotes and favourite news and lots more!
RE: How to make tomcat read .asp extension as .jsp file
are they all in the same dir or different subdirs? you can use the xcopy command (or you might have to put xcopy32) in windows to do this all in one shot! ie if they are in say, c:\yourmomma\rules and there are 100 subdirs there you can do it like this: xcopy c:\yourmomma\rules\*.asp c:\yourmomma\rules\*.jsp /s /v (this basically makes copies of all your asp files as jsp in all subdirs). Then, run windows search for *.asp files in c:\yourmomma\rules, highlight them all and hit delete. *BAM*. Jim Swart. Agere Systems Colorado Design Center Unix/NT/LAN/WAN/Voice SysAdmin -Original Message- From: Filip Hanik [mailto:[EMAIL PROTECTED]] Sent: Monday, June 11, 2001 5:10 PM To: [EMAIL PROTECTED] Subject: RE: How to make tomcat read .asp extension as .jsp file three ways 1. 250 files, that is nothing, why don't you just write a .bat (batch) script to do this for you? otherwise, 2. change the file WebXmlReader.java and add this line ctx.addServletMapping( *.asp, jsp); 3. in your web.xml file, I'm sure you can add in the lines servlet-mapping servlet-name jsp /servlet-name url-pattern *.asp /url-pattern /servlet-mapping but I haven't verified the last one (3.) so you may want to play around with it. Filip ~ Namaste - I bow to the divine in you ~ Filip Hanik Software Architect [EMAIL PROTECTED] www.filip.net -Original Message- From: Brandon Cruz [mailto:[EMAIL PROTECTED]] Sent: Monday, June 11, 2001 3:57 PM To: [EMAIL PROTECTED] Subject: How to make tomcat read .asp extension as .jsp file I know this has been asked on here before, but I can't find it in the 4000+ messages I have. Does anyone know of a way to make tomcat map any random extension as a .jsp file. For example, I have a bunch of .asp files that I have changed all the code for, but don't want to have to go through the tedious task of renaming 250 .asp files to .jsp. Can I just set something in server.xml or web.xml to read these files like they were .jsp's? Thanks for any help!!! Brandon
RE: MVB
Am I the only one who just got this in.. is it.. Russian? -Original Message-From: MVB [mailto:[EMAIL PROTECTED]]Sent: Friday, June 08, 2001 11:58 PMTo: [EMAIL PROTECTED]Subject: MVB ÂÛ ÇÍÀÅÒÅ ×ÒÎ ÒÀÊÎÅ ÃÐÈÍÌÅÉË ?ÝÒÎ ÀÊÖÈÎÍÅÐÍÛÉ ØÀÍÒÀÆ, ÀÃÐÅÑÑÈÂÍÎÅ ÏÎÃËÎÙÅÍÈÅ ÏÐÅÄÏÐÈßÒÈÉ, ÏÅÐÅÕÂÀÒ ÓÏÐÀÂËÅÍÈß ÀÎ, ÑÀÁÎÒÀÆ ÐÀÁÎÒÛ ÏÐÅÄÏÐÈßÒÈß, ÓÑÒÐÀÍÅÍÈÅ ÊÎÍÊÓÐÅÍÒÎÂ È ÌÍÎÃÎÅ ÄÐÓÃÎÅ, ÍÎ ÇÀÌÅÒÜÒÅ, ÊÀÊ ÍÅ ÏÀÐÀÄÎÊÑÀËÜÍÎ, ÂѨ  ÐÀÌÊÀÕ ÇÀÊÎÍÀ!Åñëè åù¸ 5-10 ëåò íàçàä ÿâëåíèå ãðèíìåéëà áûëî ïðåðîãàòèâîé çàïàäíîé ýêîíîìèêè, òî ñåé÷àñ ìîæíî óòâåðæäàòü, ÷òî ðîññèéñêèé ãðèíìåéë óæå âñòàë íà íîãè (ïðèíöèï ñîçäàíèÿ èìïåðèè "Ðóññêèé Àëþìèíèé"), õîòÿ â íàøåé ñòðàíå ïðèñóòñòâóåò è ãîñóäàðñòâåííûé ãðèíìåéë (ÍÒÂ).Âû õîòèòå çíàòü îá ýòîì áîëüøå ? Õîòèòå çíàòü, êàê îòáèðàþòñÿ ïðåäïðèÿòèÿ, íåîæèäàííî ìåíÿåòñÿ ðóêîâîäñòâî ÀÎ, êàê äåëàþòñÿ ïðåäëîæåíèÿ "îò êîòîðûõ íåëüçÿ îòêàçàòüñÿ", êàê áîãàòûå ñòàíîâÿòñÿ áåäíûìè è êàê çàùèòèòñÿ îò íåäðóæåñòâåííûõ äåéñòâèé, òîãäà Âàì íåîáõîäèìî çíàòü, ÷òî 3 èþíÿ îòêðûëñÿ ôîðóì "ÀÊÖÈÎÍÅÐÍÛÅ ÂÎÉÍÛ", ïîñâÿù¸ííûé òåìàòèêå ãðèíìåéëà íà ñàéòå ÈÍÂÅÑÒÈÖÈÎÍÍÛÅ ÐÅÑÓÐÑÛ www.mvb.ru . Íà ôîðóìå Âû ìîæåòå ïîëó÷èòü áåñïëàòíûå êîíñóëüòàöèè îò þðèñòîâ, ñïåöèàëèçèðóþùèõñÿ íà ãðèíìåéëå.
FW: From Vaskar
Forwarding -Original Message- From: Filip Hanik [mailto:[EMAIL PROTECTED]] Sent: Monday, June 11, 2001 11:53 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: From Vaskar please refer this to the tomcat-user list thanks and have a great week Filip ~ Namaste - I bow to the divine in you ~ Filip Hanik Software Architect [EMAIL PROTECTED] www.filip.net -Original Message- From: Swart, James (Jim) ** CTR ** [mailto:[EMAIL PROTECTED]] Sent: Monday, June 11, 2001 10:24 AM To: '[EMAIL PROTECTED]' Subject: RE: From Vaskar well.. for starters.. open a command prompt and run it from there.. that will SHOW you what is going on rather than it just disappearing! :-) -Original Message- From: Vaskar Mistri [mailto:[EMAIL PROTECTED]] Sent: Sunday, June 10, 2001 9:11 AM To: [EMAIL PROTECTED] Subject: From Vaskar Hello, I joined this list today. I'll start off with a problem I'm facing. I'm having some problem running the command startup.bat on Win98 SE to start JSDK2.1's servlet runner. I have classpath and everything else set up properly. The problem is that when I issue the command startup.bat at the command prompt E:jsdk2.1\startup a new command window pops up and then disappears(rather vanishes) almostly immediately. Earlier I faced the same problem while trying to start the Tomcat server. Initially I used Tomcat 3.2.1 and downloaded that from Jakarta's tomcat site(http://jakarta.apache.org) Later I downloaded Tomcat 3.2-b7 from jboss website(http://www.jboss.org). And using that I could start the Tomcat server properly. It would be great if you could tell me what's going wrong and how do I fix it or get around it. With regards, -Vaskar Mistri [EMAIL PROTECTED]
Classpath for javax.swing
I just created an applet using javax.swing components. I got it to run but I had to add the jar file to my classpath so that the import statements would find javax.swing.*. Obviously, users are not going to know how to add a jar file to their classpath. Can someone point me to some docs for downloadable jar files? Or can I just add CODEBASE=/javaclass/swingall.jar parameter to my applet tag? Jim Swart. SysAdmin/Developer/WebMaster
RE: source code visible to world
I just tested mine as well (3.2.1) on redhat 6.2. Mine doens't do that either. In addition, if I put in the path to one of my jsps, with or without the .jsp extension , it tells me it can't find the file. Seems to be working? -Original Message- From: Randy Layman [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 07, 2001 9:51 AM To: [EMAIL PROTECTED] Subject: RE: source code visible to world That's interesting. I just tested my installation and this doesn't happen on mine. I'm running Tomcat 3.2.1 as well. The file %TOMCAT_HOME%/doc/readme starts with the line below: $Id: readme,v 1.8.2.11 2000/12/12 21:01:41 craigmcc Exp $ indicating that my readme was made in Dec 2000, and all of my JAR files have the same timestamp. Perhaps you have a later (or earlier) version? I remember that I upgraded from 3.2 to 3.2.1 because 3.2.1. supposedly fixed a bug that allowed the JSP source to be published (I don't remember how it was happening, though). Randy -Original Message- From: Ben Carterette [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 07, 2001 11:22 AM To: [EMAIL PROTECTED] Subject: source code visible to world I'm running Tomcat 3.2.1, and I've discovered something odd: when I browse to my JSP pages but leave off the .jsp extension, I see the source code of the file. Is this a bug or a feature? If it's a feature, how do I turn it off? If it's a bug, how do I patch it? Thanks, Ben.
RE: Apache and Tomcat on different boxes
if they are both *nix* machines you can use NFS to mount each other remotely to access the conf files needed, no? -Original Message- From: Chauhan, Anand [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 06, 2001 9:23 AM To: [EMAIL PROTECTED] Subject: RE: Apache and Tomcat on different boxes The idea seems great. But how would you access the worker.properties file on the remote machine. Or is it that, as suggested, you would be creating a worker.properties file in the conf/worker.properties Did the idea work for you ? Let me know. Thanks. -Andy -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 06, 2001 10:10 AM To: Jason Koeninger Cc: [EMAIL PROTECTED] Subject: Re: Apache and Tomcat on different boxes Thks for replying, So if i understand you correctly, i have to create a workers.properties file in my apache conf dir and have mod_jk look for it there? eg. httpd.conf contains LoadModulejk_module libexec/mod_jk.so AddModule mod_jk.c JkMount /someurl remotetomcat and workers.properties file in apache/conf contains: worker.remotetomcat.type=ajp13 worker.remotetomcat.port=8009 worker.remotetomcat.host=www.x.com worker.remotetomcat.cachesize=30 Is that all i have to do? Thks a Million, Paul Quoting Jason Koeninger [EMAIL PROTECTED]: The ip address or hostname of the Tomcat machine is stored in the workers.properties file referenced by your mod_jk setup. I've also seen some sort of url version of the JkMount command, but I've never used it myself and don't know if it works or what versions it works on. Best Regards, Jason Koeninger JJ Computer Consulting http://www.jjcc.com On Wed, 6 Jun 2001 18:29:49 +0800, Paul Tan wrote: Hi all, I tried searching to mailing list b4 posting here. Anyway, what must i put into apache's http.conf for mod_jk.so to enable a connection to a separate machine containing tomcat 3.2.2? Placing both the Web Server and App server into 1 machine is rather well documented. But I can't seem to find any for separate machines. Can someone show me where to fish? or would someone gimme a fish? Thks, Paul
RE: request for jsp returning source code!?
try it with http://localhost:8080/examples first to make sure tomcat is working correctly. if it works then it's not tomcat. I would hypothesize that points the error at the apache.conf file. Did you add in the line to your apache.conf to Include the tomcat-apache.conf file? If not, that is probably your error. Make sure it's the LAST line of your httpd.conf file. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 06, 2001 9:41 AM To: [EMAIL PROTECTED] Subject: request for jsp returning source code!? I'm running Tomcat 3.2.1 Apache on Linux and I'm having a problem w/ the jsp examples. When I try http://localhost/examples/jsp/dates/date.jsp I get the source code of the jsp page returned (as if tomcat is not processing the jsp page). Since I am attempting to have Apache serve Static content and Tomcat serve JSP's I have already installed mod_jk and am using the stock mod_jk.conf-auto include in my httpd.conf file.. What else needs to be done? -Phillip
RE: iPlanet + Tomcat on Unix ??
if you want my humble opinion.. in case you can't figure it out... use a PROXY statement like this: (I am not sure of the syntax for iPlanet's proxies, this format is for Apache 1.3.x): PROXYPASS /javaserver http://localhost:8080/path-for-servlets-or-jsps PROXYPASS /javaserver/ http://localhost:8080/path-for-servlets-or-jsps/ I realize for it being on the same machine this is LAME-O. But, I think it's a decent work-around. Also, you wouldn't have to EVER bring down apache to modify tomcat stuff, since it's nothing but proxies anyway?... (ps - yes, as you can tell, I like proxy statements. I use them on our servers quite frequently just so I don't have to reset all servers from one change). -Original Message- From: Robert Koval [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 06, 2001 6:36 AM To: Tomcat Subject: iPlanet + Tomcat on Unix ?? My Problem: I have Netscape Web Server (IPlanet) version 3.63. This version of IPlanet doesn't support Java Server Pages, or in other words, there is no Servlet Engine. I need to install some servlet engine on that server in order to run JSPs. Upgrade of the Web server is not possible, because of some other issues. I have tried to install Tomcat to work with Netscape. My problem is that I don't know how to install Tomcat and integrate it with Iplanet on Unix environment. The documentation for Tomcat doesn't say anything about installing it on Unix. The most difficult part is installing redirection from Iplanet to Servlet Engine. For NT environment, there is dll file included in distribution, which handles redirection. No info is provided for Unix. I would like to install it on two environemnts: AIX 4.2.1.0 Solaris 2.5 I believe, I have to compile the redirector on both environments. Where do I get source from?? And how about makefiles I would really appreciate your help, since this issue is quite urgent for me. Thank you for your help. Robert
RE: Should we do moderation on this mailinglist??
wowsers. That's a good idea. -Original Message- From: Jann VanOver [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 06, 2001 12:18 PM To: '[EMAIL PROTECTED]' Subject: RE: Should we do moderation on this mailinglist?? Umm, wouldn't dividing the groups just give us MORE off topic problems? If someone WANTS the job of moderating the hundreds of post in this list they can, but I am not going to volunteer. I think some kind of canned footer that is added to mail through the list can be very helpful. It should have links to FAQ, info on unsubscribing, and list archives. This sounds much less labor intensive than moderating. -Original Message- From: Hemant Singh [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 05, 2001 9:09 PM To: [EMAIL PROTECTED] Subject: Re: Should we do moderation on this mailinglist?? HI Jeff: I agree with your idea When after downloading most of the files are asking how to unsubscribe, duplicate mails, lab, lab it really pains How abt dividing this group into several parts, Like one for tomcat configuration - Servlet prblems, etc --- Jeff Waugh [EMAIL PROTECTED] wrote: Unfortunately, we are dealing with 'people' here. It is a shame that there is not a 'filter' to eliminate 'stupid' people, but as hard as I've tried, I just can't program it. If someone else can, please make it an Opensource project But, then again, we would probably get 'stupid' people contributing, so those filters would be invalidated. Man, it looks like we're screwed. As an example, *I* use a bicycle as my primary means of transportation, and have had similar ideas about 'people' who drive cars. I decided *I* was screwed quite some time ago. Delete is a wonderful thing!!! (If only it was as effective on motorists) (Hmmm, probably 98% of the people reading this are motorists...) (Sorry, but if the shoe (wheel) fits...) -Jeff - Original Message - From: Martin van den Bemt [EMAIL PROTECTED] To: jakarta-tomcat-user [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, June 05, 2001 4:18 PM Subject: Should we do moderation on this mailinglist?? Hi to everybody who is actually trying to get some information on this mailing list, or to help others, The 2 weeks I've been a member here, just trying to get new ideas and help others out with tomcat issues, I would say, were pretty horrible. about 50% of the mail is actually rubbish (which means double mails, requests for unsuscribing and other SPAM. This can have a couple of couses : irritated mode on - Most people cannot read - Most people cannot think logically - Most people should not be able to subscribe to this list - Most people shouldn't wast other people's time, so they still want to help people. irritated mode off solution mode on - members with no active e-mail address should be deleted right away (who has the rights to do that?), so people don't resend messages again. (I mailed the owner of the mailinglist, but haven't had a reply yet..) - Don't allow misuse of the mailinglist anymore : block those senders immidiately from the mailinglist (that's what they want it seems) == are there any facilities for that. - Don't reply to misuse of the mailinglist - Off topic messages can be nicely redirected to the appropiate area. - Let everyone state clearly what they are using (rh 7.1, windows 2000, which version of tomcat, etc). A lot of replies are pretty useless if they have another version of the product. Also the probability that the correct people (the people actually using tomcat on a rh7.1 box, will reply..) - Send a rules e-mail to subscribers. - Send stuff that's not interesting (like someone suggested in the list today), directly to the sender of the mail. (If I have made a commercial solution for a problem or question, I mail to peoples private e-mail address, as an example..) The common goal should be : Users helping users!! Just trying to get some improvement here.. I think a lot of people are currently giving up on this list and that's not good for tomcat (at least that's what I think) Mvgr, Martin van den Bemt __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/
RE: Should we do moderation on this mailinglist??
yes. I used to be like that (It all boils down to there are a lot of people out there, you know who you are;), who are just plain lazy and want to be given their answerand don't want to search for themselves. ). Until my best-friend Manuka always told me go read this book or look at that web site. After a while, I just would go find out first and ask second. Most of us ask first not because we are lazy, but because we are in a hurry (in my opinion). -Original Message- From: Michael Wentzel [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 06, 2001 1:51 PM To: '[EMAIL PROTECTED]' Subject: RE: Should we do moderation on this mailinglist?? FYI: I just sent a message to [EMAIL PROTECTED] to suggest that such a footer be added. We'll see what happens. JMHO, but back in the good 'ole dayz there was a footer and I haven't seen any perceivable volume increase on the list since it was removed. It all boils down to there are a lot of people out there, you know who you are;), who are just plain lazy and want to be given their answer and don't want to search for themselves. Whether it be a 3 line msg footer or an 8*{ {0 -1}, {1 0} } message archive;). --- Michael Wentzel Software Developer Software As We Think - http://www.aswethink.com
RE: Should we do moderation on this mailinglist??
touche! -Original Message- From: Randy Layman [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 06, 2001 2:07 PM To: [EMAIL PROTECTED] Subject: RE: Should we do moderation on this mailinglist?? Then most people have bad expectations of this mailing list. Many responses don't come for at least a half an hour (many not until a few hours later). Going to the Jakarta site, clicking on the link for the archive, and then performing a search takes a few minutes at most (even with the really slow archive servers). For most people, reading/scanning/searching the manual and searching the archives would be faster than posting a message, going to the coffee pot for a 30 minute break and then asking their question again. Randy -Original Message- From: Swart, James (Jim) ** CTR ** [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 06, 2001 4:32 PM To: '[EMAIL PROTECTED]' Subject: RE: Should we do moderation on this mailinglist?? yes. I used to be like that (It all boils down to there are a lot of people out there, you know who you are;), who are just plain lazy and want to be given their answerand don't want to search for themselves. ). Until my best-friend Manuka always told me go read this book or look at that web site. After a while, I just would go find out first and ask second. Most of us ask first not because we are lazy, but because we are in a hurry (in my opinion). -Original Message- From: Michael Wentzel [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 06, 2001 1:51 PM To: '[EMAIL PROTECTED]' Subject: RE: Should we do moderation on this mailinglist?? FYI: I just sent a message to [EMAIL PROTECTED] to suggest that such a footer be added. We'll see what happens. JMHO, but back in the good 'ole dayz there was a footer and I haven't seen any perceivable volume increase on the list since it was removed. It all boils down to there are a lot of people out there, you know who you are;), who are just plain lazy and want to be given their answer and don't want to search for themselves. Whether it be a 3 line msg footer or an 8*{ {0 -1}, {1 0} } message archive;). --- Michael Wentzel Software Developer Software As We Think - http://www.aswethink.com
RE: About GET and POST methods
as far as I know, if you are going to send information to a servlet from a input form (html or jsp) you have to use a GET when invoking the servlet? At least, that's how mine are developed. -Original Message- From: Rainer Schweigkoffer [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 05, 2001 7:07 AM To: [EMAIL PROTECTED] Subject: About GET and POST methods Hi folks ! Being a newbie concerning the use of Tomcat I am marvelling about the following : On SunOS 5.8 I have installed Tomcat 3.2.1 connected to Apache 1.3.19 via mod_jk.so with both an AJP12 (port 8007) and an AJP13 (port 8009) handler installed. The Apache Server is listening on ports 80, 1080, 2080 and 8080, while, for test purposes, I added a Tomcat Http Connection handler on port 7080. Now, we have written a test servlet with differing doGet and doPost methods and an HTML page containing a form that uses method POST, and we observe the following behaviour : o When defining the form's action to directly invoke the servlet via Tomcat on port 7080, method doPost is invoked, o however, when defining action to invoke the servlet via Apache on one of the other ports mentioned above, always method doGet is invoked. Is there any explanation for that - at least to me - surprising behaviour ? Did I overlook anything ? Or is it intended to work that way ? Thank you very much for your kind assistance Rainer -- All statements above reflect my personal opinion only. Speaking for my company is highly above my salary.
RE: Appropriate list?
yes it sure is! As for Tomcat, I am still on 3.2.. sorry. -Original Message- From: Skyberg, David [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 05, 2001 9:20 AM To: Tomcat-User (E-mail) Subject: Appropriate list? Is this the appropriate list for Tomcat 4.0/Apache user questions? If not, can someone redirect me so I don't waste folk's time on this list? If this is the right list, can someone provide me with an example httpd.conf file with a WebAppDeploy directive? I can't seem to get Apache to recognize mine.
RE: About GET and POST methods
*ducks to avoid the swinging claws* Thanks for the info! -Original Message- From: Jose Euclides da Silva Junior - DIGR.O [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 05, 2001 9:04 AM To: [EMAIL PROTECTED] Subject: RES: About GET and POST methods -BEGIN PGP SIGNED MESSAGE- No, i guess you are wrong! You can use either get(doGet) or post(doPost) method ! The only difference between them is the following: Get command sends data through get' header and Post sends data through new http headers. This is a HTTP RFC. The problem below seems to be very strange. José Euclides Júnior __ E-mail: [EMAIL PROTECTED] [EMAIL PROTECTED] http://euclides.8m.com - -Mensagem original- De: Swart, James (Jim) ** CTR ** [SMTP:[EMAIL PROTECTED]] Enviada em: Terça-feira, 5 de Junho de 2001 11:51 Para: '[EMAIL PROTECTED]' Assunto:RE: About GET and POST methods as far as I know, if you are going to send information to a servlet from a input form (html or jsp) you have to use a GET when invoking the servlet? At least, that's how mine are developed. - -Original Message- From: Rainer Schweigkoffer [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 05, 2001 7:07 AM To: [EMAIL PROTECTED] Subject: About GET and POST methods Hi folks ! Being a newbie concerning the use of Tomcat I am marvelling about the following : On SunOS 5.8 I have installed Tomcat 3.2.1 connected to Apache 1.3.19 via mod_jk.so with both an AJP12 (port 8007) and an AJP13 (port 8009) handler installed. The Apache Server is listening on ports 80, 1080, 2080 and 8080, while, for test purposes, I added a Tomcat Http Connection handler on port 7080. Now, we have written a test servlet with differing doGet and doPost methods and an HTML page containing a form that uses method POST, and we observe the following behaviour : o When defining the form's action to directly invoke the servlet via Tomcat on port 7080, method doPost is invoked, o however, when defining action to invoke the servlet via Apache on one of the other ports mentioned above, always method doGet is invoked. Is there any explanation for that - at least to me - surprising behaviour ? Did I overlook anything ? Or is it intended to work that way ? Thank you very much for your kind assistance Rainer - -- All statements above reflect my personal opinion only. Speaking for my company is highly above my salary. -BEGIN PGP SIGNATURE- Version: PGP 6.5.1 iQCVAwUBOx0fNd0YhuJ3BUxtAQHEngP7B9RPn8VyEnrLlFWbGslZCXJVt4BYCig0 2jsA64OGZwoAyLVjvQ0Vys/jUjtt72IUwxRpMLifITP6mIOAMSNhq2tD/5ZrpYOb mWskDp5EU9DBoFm2rRMna8s5JQtn2z/gQ24CYl7V6SysuUMCl59FJO8s5qE9HznI T1vUGWZy6Kc= =Wxt7 -END PGP SIGNATURE-
RE: Tomcat NT service mode
can't you just change it's properties to startup up automatically in the services control panel? -Original Message- From: Dong Chen (Non CoCreate) [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 05, 2001 10:29 AM To: '[EMAIL PROTECTED]' Subject: Tomcat NT service mode Hello, When we run jk_nt_service.exe, by default the Tomcat NT service will be set in manual mode. But we want to set the automatic mode as the default when we register Tomcat NT service. Is it difficult to change the source code to do that? Where may I find the source code for jk_nt_service.exe? Thank you! Dong
RE: how to put jsp files in regular apache root?
yes.. that gives me an idea.. in apache/tomcat config can you put in a wildcard proxy for like /*.jsp http://localhost:8080/*.jsp or even /*.jsp to http://localhost:8080/myjspfolderhere/*.jsp ?I know IBM's IHS has this option but I am not sure if wildcards are natively supported in apache. Anyone? -Original Message- From: Michael Jennings [mailto:[EMAIL PROTECTED]] Sent: Monday, June 04, 2001 5:15 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: how to put jsp files in regular apache root? I'm not sure about that one... Try using a context path of , also, you could try *.jsp that might also work. You could also try just running tomcat as your web server! Just change the 8080 in server.xml to 80 Have you read through the tomcat docs? -Mike - Original Message - From: Gerald Koh [EMAIL PROTECTED] To: Michael Jennings [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, June 04, 2001 4:06 PM Subject: RE: how to put jsp files in regular apache root? Thanks for the info.. one more question... I would like to be able to run jsps in the root, as well as in several subfolders. Do the contexts inherit to each subfolder, or should I explicitly declare all subfolders as new contexts? Here's what I'm looking at: Context path=/ docBase=/var/www/html/ crossContext=false debug=0 reloadable=true /Context to try to be able to put jsps in the root (like index.jsp, for example). I will have several subfolders for projects that may also have jsps in them. Will this work? Thanks for your help! g -- Gerald Koh | Site Building | Tumo Solutions | Vail, Colorado v: 970.949.4111 x15 | e: [EMAIL PROTECTED] -- The only source of knowledge is experience - Albert Einstein -Original Message- From: Michael Jennings [mailto:[EMAIL PROTECTED]] Sent: Monday, June 04, 2001 3:23 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: how to put jsp files in regular apache root? Just have a look at $TOMCAT_HOME/server.xml you'll see an entry that looks like: Context path=/examples docBase=webapps/examples crossContext=false debug=0 reloadable=true /Context Just make another entry right after it with a different docBase and path, for example: Context path=/geraldjsp docBase=/home/gerald/jsp crossContext=false debug=0 reloadable=true /Context then the next time you restart tomcat, it'll make a new conf/mod_jk.conf-auto that'll have all of the stuff that mod_jk.so needs to intercept any urls that look like /geraldjsp You'll need to restart apache so that apache will re-read httpd.conf, which in in turn make apache re-read the mod_jk.conf-auto Hope this helps! -Mike - Original Message - From: Gerald Koh [EMAIL PROTECTED] To: Tomcat User [EMAIL PROTECTED] Sent: Monday, June 04, 2001 12:23 PM Subject: how to put jsp files in regular apache root? Hi, I have redhat 7.1 running apache 1.3.19 and tomcat 3.2.2. right now it is working, but there are a few outstanding issues. Please keep my newbieness in mind when answering: 1. I think tomcat is serving the static pages as well as the jsps. There are directions on how to change this, but read #2 first. 2. the jsp's currently need to reside in the webapps directory, I think. I need to hold the jsps in the same directory as the html. Can I do this? Thanks in advance! g -- Gerald Koh | Site Building | Tumo Solutions | Vail, Colorado v: 970.949.4111 x15 | e: [EMAIL PROTECTED] -- The only source of knowledge is experience - Albert Einstein
RE: location of tomcat-apache.conf
try a find / -name tomcat-apache.conf -print | more and make the computer find it. It *SHOULD* be in /var/tomcat/conf (that's where mine is). -Original Message- From: Cody Caughlan [mailto:[EMAIL PROTECTED]] Sent: Monday, June 04, 2001 5:34 PM To: [EMAIL PROTECTED] Subject: location of tomcat-apache.conf Hello, I am running Tomcat 4.0-b1 on solaris 2.6. I have successfully installed and started Tomcat on port 8080. I would like to now integrate this into my other Apache installation. The users guide says there should be a $TOMCAT_HOME/conf/tomcat-apache.conf file, however, when I look it is not there (yes, I did start Tomcat successfully, so it should be there). Whats up? Thanks /Cody Caughlan
RE: Tomcat Dies with a lot of processes
I know mine has tons of java processes to. even so, with apache, tomcat, java, sendmail, dns, ftp samba running it only uses 60MB of the 160MB od ram. so I didn't think much of it. *drool*.. I can't wait for my 1 gig of ram to get here.. (then it'll be time to move the unix server to a big-bad PIII-1GHz w/1GIG of RAM!.. weee..) -Original Message- From: Jon Shoberg [mailto:[EMAIL PROTECTED]] Sent: Monday, June 04, 2001 5:52 PM To: [EMAIL PROTECTED] Subject: Tomcat Dies with a lot of processes I got a RH 7.1 box with the latest apache and Tomcat 3.2.2 running this morning. However, after lunch the server was seemingly dead as it would serve no pages... I know I don't have any config files attached, but ... Are there any 'commonly' misconfigured paramaters that could cause apache/tomcat to die ? After apache/tomcat starts and the 1st pages get served I noticed A LOT of processes on the server. Is this common ? !-- attached long list of processes-- root 9532 2.3 5.1 259388 13184 pts/1 S18:54 0:03 /usr/java/jdk1.3.1/bin/i386/native_threads/java -Dtomcat.home=/var/ww root 9559 0.0 5.1 259388 13184 pts/1 S18:54 0:00 /usr/java/jdk1.3.1/bin/i386/native_threads/java -Dtomcat.home=/var/ww root 9560 0.0 5.1 259388 13184 pts/1 S18:54 0:00 /usr/java/jdk1.3.1/bin/i386/native_threads/java -Dtomcat.home=/var/ww root 9561 0.0 5.1 259388 13184 pts/1 S18:54 0:00 /usr/java/jdk1.3.1/bin/i386/native_threads/java -Dtomcat.home=/var/ww root 9562 0.0 5.1 259388 13184 pts/1 S18:54 0:00 /usr/java/jdk1.3.1/bin/i386/native_threads/java -Dtomcat.home=/var/ww root 9563 0.0 5.1 259388 13184 pts/1 S18:54 0:00 /usr/java/jdk1.3.1/bin/i386/native_threads/java -Dtomcat.home=/var/ww root 9564 0.0 5.1 259388 13184 pts/1 S18:54 0:00 /usr/java/jdk1.3.1/bin/i386/native_threads/java -Dtomcat.home=/var/ww root 9565 0.0 5.1 259388 13184 pts/1 S18:54 0:00 /usr/java/jdk1.3.1/bin/i386/native_threads/java -Dtomcat.home=/var/ww root 9566 0.3 5.1 259388 13184 pts/1 S18:54 0:00 /usr/java/jdk1.3.1/bin/i386/native_threads/java -Dtomcat.home=/var/ww root 9567 0.0 5.1 259388 13184 pts/1 S18:54 0:00 /usr/java/jdk1.3.1/bin/i386/native_threads/java -Dtomcat.home=/var/ww root 9568 0.0 5.1 259388 13184 pts/1 S18:54 0:00 /usr/java/jdk1.3.1/bin/i386/native_threads/java -Dtomcat.home=/var/ww root 9569 0.0 5.1 259388 13184 pts/1 S18:54 0:00 /usr/java/jdk1.3.1/bin/i386/native_threads/java -Dtomcat.home=/var/ww root 9570 0.0 5.1 259388 13184 pts/1 S18:54 0:00 /usr/java/jdk1.3.1/bin/i386/native_threads/java -Dtomcat.home=/var/ww root 9571 0.0 5.1 259388 13184 pts/1 S18:54 0:00 /usr/java/jdk1.3.1/bin/i386/native_threads/java -Dtomcat.home=/var/ww root 9572 0.0 5.1 259388 13184 pts/1 S18:54 0:00 /usr/java/jdk1.3.1/bin/i386/native_threads/java -Dtomcat.home=/var/ww root 9573 0.0 5.1 259388 13184 pts/1 S18:54 0:00 /usr/java/jdk1.3.1/bin/i386/native_threads/java -Dtomcat.home=/var/ww root 9574 0.0 5.1 259388 13184 pts/1 S18:54 0:00 /usr/java/jdk1.3.1/bin/i386/native_threads/java -Dtomcat.home=/var/ww root 9575 0.0 5.1 259388 13184 pts/1 S18:54 0:00 /usr/java/jdk1.3.1/bin/i386/native_threads/java -Dtomcat.home=/var/ww root 9576 0.0 5.1 259388 13184 pts/1 S18:54 0:00 /usr/java/jdk1.3.1/bin/i386/native_threads/java -Dtomcat.home=/var/ww root 9577 0.0 5.1 259388 13184 pts/1 S18:54 0:00 /usr/java/jdk1.3.1/bin/i386/native_threads/java -Dtomcat.home=/var/ww root 9578 0.0 5.1 259388 13184 pts/1 S18:54 0:00 /usr/java/jdk1.3.1/bin/i386/native_threads/java -Dtomcat.home=/var/ww root 9579 0.0 5.1 259388 13184 pts/1 S18:54 0:00 /usr/java/jdk1.3.1/bin/i386/native_threads/java -Dtomcat.home=/var/ww root 9580 0.0 5.1 259388 13184 pts/1 S18:54 0:00 /usr/java/jdk1.3.1/bin/i386/native_threads/java -Dtomcat.home=/var/ww root 9581 0.0 5.1 259388 13184 pts/1 S18:54 0:00 /usr/java/jdk1.3.1/bin/i386/native_threads/java -Dtomcat.home=/var/ww root 9582 0.0 5.1 259388 13184 pts/1 S18:54 0:00 /usr/java/jdk1.3.1/bin/i386/native_threads/java -Dtomcat.home=/var/ww root 9583 0.0 5.1 259388 13184 pts/1 S18:54 0:00 /usr/java/jdk1.3.1/bin/i386/native_threads/java -Dtomcat.home=/var/ww root 9584 0.0 5.1 259388 13184 pts/1 S18:54 0:00 /usr/java/jdk1.3.1/bin/i386/native_threads/java -Dtomcat.home=/var/ww root 9585 0.0 5.1 259388 13184 pts/1 S18:54 0:00 /usr/java/jdk1.3.1/bin/i386/native_threads/java -Dtomcat.home=/var/ww root 9586 0.0 5.1 259388 13184 pts/1 S18:54 0:00 /usr/java/jdk1.3.1/bin/i386/native_threads/java -Dtomcat.home=/var/ww root 9587 0.0 5.1 259388 13184 pts/1 S18:54 0:00 /usr/java/jdk1.3.1/bin/i386/native_threads/java
JDK's (ibm vs. sun)
this brings up a good question. Tomcat 3.2 says it *assums* you are using IBM's JDK? Does sun's suck or something? -Original Message- From: William Kaufman [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 05, 2001 8:06 AM To: '[EMAIL PROTECTED]' Subject: RE: download files using ftp Do you mean you're trying to do an FTP download _of_ Java _in_ Java? I wouldn't attempt this: there's one form (the license agreement) followed by another form (the FTP download site selection). And Sun would probably consider bypassing the forms (if possible) as legally questionable, especially the license agreement. If you're just trying to do an FTP download in Java (of something else), look at http://java.sun.com/j2se/1.3/docs/api/java/net/URL.html specifically, URL.openConnection(). -- Bill K. -Original Message- From: aswath satrasala [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 05, 2001 6:57 AM To: [EMAIL PROTECTED] Subject: download files using ftp Hi, I have seen on Sun's web site, an option to download JDK using ftp download. Are there any samples to do this. Please point to the documentation. Thanks -Aswath From: François Andromaque [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: TOMCAT and APACHE Date: Tue, 5 Jun 2001 15:44:07 +0200 I've configured separately apache to work with SSL and TOMCAT to establish a distant database connection, i would like know to make the both to work together. If mod_jk is really necessary, what are the steps to compile it? _ Get your FREE download of MSN Explorer at http://explorer.msn.com
RE: URL Help
take yourself off the list. To remove your address from the list, send a message to: [EMAIL PROTECTED] -Original Message- From: Johnathan Smith [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 05, 2001 7:01 AM To: [EMAIL PROTECTED] Subject: Re: URL Help PLEASE TAKE ME OFF THIS LIST!!! --- Jerry Villamizar [EMAIL PROTECTED] wrote: Can someone please get me off this list - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, June 04, 2001 5:48 PM Subject: URL Help I need my URL to look like this: http://localhost/Gillette/Venus?SerialId=ZVXZVContactId=1 where Gillette is a directory and Venus is the servlet name. I can only get it to work if I include 'servlet' like the following: http://localhost/Gillette/servlet/Venus?SerialId=ZVXZVContactId=1 I've got a few good responses in previous postings but haven't been able to get it to work. Here is some configurationscan anybody tell me what I'm doing wrong? server.xml: Context path=/Gillette docBase=webapps/Gillette crossContext=false debug=0 reloadable=true /Context web.xml: servlet servlet-nameVenus/servlet-name servlet-classGVservlet/servlet-class /servlet servlet-mapping servlet-nameVenus/servlet-name url-pattern/Venus/url-pattern /servlet-mapping I've tried it with and without the servlet-mapping tag. Any ideas? Jason E. Brawner = If your into Body For Life, check out http://clubs.yahoo.com/clubs/bodyforlifestatenislandny __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/
RE: URL Help
take yourself off the list. To remove your address from the list, send a message to: [EMAIL PROTECTED] -Original Message- From: Jerry Villamizar [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 05, 2001 6:50 AM To: [EMAIL PROTECTED] Subject: Re: URL Help Can someone please get me off this list - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, June 04, 2001 5:48 PM Subject: URL Help I need my URL to look like this: http://localhost/Gillette/Venus?SerialId=ZVXZVContactId=1 where Gillette is a directory and Venus is the servlet name. I can only get it to work if I include 'servlet' like the following: http://localhost/Gillette/servlet/Venus?SerialId=ZVXZVContactId=1 I've got a few good responses in previous postings but haven't been able to get it to work. Here is some configurationscan anybody tell me what I'm doing wrong? server.xml: Context path=/Gillette docBase=webapps/Gillette crossContext=false debug=0 reloadable=true /Context web.xml: servlet servlet-nameVenus/servlet-name servlet-classGVservlet/servlet-class /servlet servlet-mapping servlet-nameVenus/servlet-name url-pattern/Venus/url-pattern /servlet-mapping I've tried it with and without the servlet-mapping tag. Any ideas? Jason E. Brawner
RE: Socket closed in https session
take yourself off the list. To remove your address from the list, send a message to: [EMAIL PROTECTED] -Original Message- From: Johnathan Smith [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 05, 2001 7:01 AM To: [EMAIL PROTECTED] Subject: Re: Socket closed in https session PLEASE TAKE ME OFF THIS LIST!!! --- Phillip Gibb [EMAIL PROTECTED] wrote: Hi, I have generated a keystore and a certificate, I have added a connector in server.xml to handle ssl connections. Starting tomcat correctly establishes the correct connction handlers for normal http and for ssl(port 8443). But if I try to start up a https session using https://localhost:8443 I get : IOException in: R( /) Socket closed. please offer any suggestions Phillip = If your into Body For Life, check out http://clubs.yahoo.com/clubs/bodyforlifestatenislandny __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/
RE: Java servlet that sends form data to email
go away. geesh. -Original Message- From: Johnathan Smith [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 05, 2001 7:01 AM To: [EMAIL PROTECTED] Subject: Re: Java servlet that sends form data to email PLEASE TAKE ME OFF THIS LIST!!! --- Pae Choi [EMAIL PROTECTED] wrote: See topics related to Servlet, JavaMail, and SOAP4J. That will give you a good starting point. Pae HI all! Sorry for the newbie question. Can anyone give me any hints on how to make a java servlet that reads form data and sends it to an email address? Thanks ! Do You Yahoo!? Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free @yahoo.ie address at http://mail.yahoo.ie = If your into Body For Life, check out http://clubs.yahoo.com/clubs/bodyforlifestatenislandny __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/
RE: Java servlet that sends form data to email
now THIS is the kind of response I would *expect* from a list.. although it *technically* is a Jakarta list not a *Learn how to make Java Servlets* List. Just a reminder to staying on topic. Say, is there a mailing list out there to direct code-specific issues to? Maybe that would help.. perhaps the folk at apache could start one? Say... [EMAIL PROTECTED]? -Original Message- From: Hemant Singh [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 05, 2001 6:47 AM To: [EMAIL PROTECTED] Subject: Re: Java servlet that sends form data to email HI Use following code import javax.servlet.*; import javax.servlet.http.*; import sun.net.smtp.*; import java.io.*; public class SendMail extends HttpServlet{ String to =[EMAIL PROTECTED]; SmtpClient mailClient; public void init(ServletConfig config){ try{ mailClient = new SmtpClient(12.10.194.226); super.init(config); }catch(Exception e){ System.out.println(e); } } public void doGet(HttpServletRequest req,HttpServletResponse res){ try{ res.setContentType(text/html); String name = req.getParameter(name); String from = req.getParameter(email); String subject = req.getParameter(subject); if(subject ==null || subject.length()1){ subject =(none); } String msg = req.getParameter(msg); send(name,from,to,msg,subject); res.sendRedirect(http://12.10.194.239/mru/Thanks.html;); }catch(Exception e){ System.out.println(e); } } private void send(String name,String from,String to,String msg,String subject){ try{ mailClient.from(from); mailClient.to(to); PrintStream ps = ps = mailClient.startMessage(); ps.println(From: + from ); ps.println(To: + to ); ps.println(Subject: +subject ); ps.print(\r\n); ps.println(); ps.println(msg); ps.println(); ps.flush(); ps.close(); //mailClient.closeServer(); }catch(Exception e){ System.out.println(e); } } } --- Peter Choe [EMAIL PROTECTED] wrote: use the javamail api. Alkmini D. wrote: HI all! Sorry for the newbie question. Can anyone give me any hints on how to make a java servlet that reads form data and sends it to an email address? Thanks ! Do You Yahoo!? Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free @yahoo.ie address at http://mail.yahoo.ie __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/
RE: How to get server URL?
I know there are methods in the java.net.URL class for this: Attatched is the entire java.net.URL class for you to reference. see the examples that comes with tomcat too! -Original Message- From: Pernica, Jan [mailto:[EMAIL PROTECTED]] Sent: Monday, June 04, 2001 11:57 PM To: Tomcat-User (E-mail) Subject: How to get server URL? Hi How can I get the server name? I do not like HttpServlet.getServerName() because if I access it from local network the name differs from the name when accessing it from internet. Any suggestions? Regards Jan Mgr. Jan Pernica, MSc. Project Manager DCB Actuaries and Consultants Tel: +420 5 4221 7390-5 Mobile: +420 602 52 42 51 Fax:+420 5 4221 7399 http://www.dcb.cz mailto:[EMAIL PROTECTED] __ Tato komunikace je urcena vyhradne pro adresata a je duverna. This communication is intended solely for the addressee and is confidential. URL.java
RE: load balancing
I am sure this us a silly question, but did you put a load on it? If it's round-robin that's one thing.. if it's SMART load-balancing.. then you would have to hammer on it for it to push to the second machine (assuming your configuration is correct, of course). A program like LoadRunner(tm) would be nice. It hits your server with x hits at once. I have a copy for 500 users and I use it to test the load on our servers. -Original Message- From: Ian Mair [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 05, 2001 2:43 AM To: '[EMAIL PROTECTED]' Subject: load balancing Hello all, I am trying to load balance 2 machines with tomcat 3.2.1 My set up is as follows: mach1 has Apache with mod_jk and tomcat, mach2 only has tomcat. in the workers.properties file on mach1 I have : worker.list=loadbalancer, rinv002, rinv001 worker.rinv001.port=8007 worker.rinv001.host=localhost worker.rinv001.type=ajp12 worker.rinv001.lbfactor=1 worker.rinv002.port=8007 worker.rinv002.host=10.1.2.4 worker.rinv002.type=ajp12 worker.rinv002.lbfactor=2 worker.loadbalancer.type=lb worker.loadbalancer.balanced_workers=rinv001, rinv002 in the mod_jk.conf file on mach1 I have : LoadModule jk_module libexec/mod_jk.so AddModule mod_jk.c JkWorkersFile /usr/local/jakarta-tomcat-3.2.1/conf/workers.properties JkLogFile /usr/local/jakarta-tomcat-3.2.1/logs/mod_jk.log JkLogLevel debug JkMount /*.jsp loadbalancer JkMount /servlet/* loadbalancer Alias /examples /usr/local/jakarta-tomcat-3.2.1/webapps/examples Directory /usr/local/jakarta-tomcat-3.2.1/webapps/examples Options Indexes FollowSymLinks /Directory JkMount /examples/servlet/* loadbalancer JkMount /examples/*.jsp loadbalancer in the apache httpd.conf file on mach1 I have: include /usr/local/jakarta-tomcat-3.2.1/conf/mod_kf.conf I then start tomcat on mach2 and mach1 and apache on mach1. In the mod_jk.log the three workers rinv001, rinv002 and loadbalancer are created but all requests go to mach1 and nothing is forwarded to mach2. Could anyone shed any light on what I am doing wrong. Do I need to do any configuration on mach2? regards Ian
RE: How to get server URL?
well for starters, you can use anything you want to in a Servlet (including java.net.URL). I find using things like getRequestURI() to be a pain, simply put, because I don't WANT the URI. I also don't want the local server's verison of the URL since I use proxies. java.net.URL provides more functionality for my needs :-P -Original Message- From: Filip Hanik [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 05, 2001 12:07 PM To: [EMAIL PROTECTED] Subject: RE: How to get server URL? java.net.URL I believe you are a little bit off topic here :) take a look at the HttpServletRequest http://java.sun.com/j2ee/j2sdkee/techdocs/api/index.html *getRequestURI() Returns the part of this request's URL from the protocol name up to the query string in the first line of the HTTP request. *getHeaders(java.lang.String name) Returns all the values of the specified request header as an Enumeration of String objects the headers may or may not contain such information, check the HTTP spec for more details Filip ~ Namaste - I bow to the divine in you ~ Filip Hanik Software Architect [EMAIL PROTECTED] www.filip.net -Original Message- From: Swart, James (Jim) ** CTR ** [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 05, 2001 11:00 AM To: '[EMAIL PROTECTED]' Subject: RE: How to get server URL? I know there are methods in the java.net.URL class for this: Attatched is the entire java.net.URL class for you to reference. see the examples that comes with tomcat too! -Original Message- From: Pernica, Jan [mailto:[EMAIL PROTECTED]] Sent: Monday, June 04, 2001 11:57 PM To: Tomcat-User (E-mail) Subject: How to get server URL? Hi How can I get the server name? I do not like HttpServlet.getServerName() because if I access it from local network the name differs from the name when accessing it from internet. Any suggestions? Regards Jan Mgr. Jan Pernica, MSc. Project Manager DCB Actuaries and Consultants Tel: +420 5 4221 7390-5 Mobile: +420 602 52 42 51 Fax:+420 5 4221 7399 http://www.dcb.cz mailto:[EMAIL PROTECTED] __ Tato komunikace je urcena vyhradne pro adresata a je duverna. This communication is intended solely for the addressee and is confidential.
RE: How to get server URL?
Pae.. it is a simple fact. Any mailing list has a topic. The postings to the mailing list should stay on topic. If I wanted to subscribe to a mailing list that helps me out with programming Java Code I would. This mailing list is supposed to be for TOMCAT. I was just making a point. I have been on this list 2 days and have seen 4 get me the hell off this list because I don't like that it's splattered with traffic that has nothing to do with tomcat. That's not very encouraging. Comments? (PS - I was pissy because I was trying to be helpful and I got slammered *shrug*) -Original Message- From: Pae Choi [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 05, 2001 12:57 PM To: [EMAIL PROTECTED] Subject: Re: How to get server URL? Hey Jimbo, Are you feeling better after pissing off as a net junky? I saw many of postings from you discouraging the participation. If you need to develop your ugly attitude, get of the net. We do not need a junky like you who waste the bandwidth. Otherwise, behave yourself. Pae well for starters, you can use anything you want to in a Servlet (including java.net.URL). I find using things like getRequestURI() to be a pain, simply put, because I don't WANT the URI. I also don't want the local server's verison of the URL since I use proxies. java.net.URL provides more functionality for my needs :-P -Original Message- From: Filip Hanik [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 05, 2001 12:07 PM To: [EMAIL PROTECTED] Subject: RE: How to get server URL? java.net.URL I believe you are a little bit off topic here :) take a look at the HttpServletRequest http://java.sun.com/j2ee/j2sdkee/techdocs/api/index.html *getRequestURI() Returns the part of this request's URL from the protocol name up to the query string in the first line of the HTTP request. *getHeaders(java.lang.String name) Returns all the values of the specified request header as an Enumeration of String objects the headers may or may not contain such information, check the HTTP spec for more details Filip ~ Namaste - I bow to the divine in you ~ Filip Hanik Software Architect [EMAIL PROTECTED] www.filip.net -Original Message- From: Swart, James (Jim) ** CTR ** [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 05, 2001 11:00 AM To: '[EMAIL PROTECTED]' Subject: RE: How to get server URL? I know there are methods in the java.net.URL class for this: Attatched is the entire java.net.URL class for you to reference. see the examples that comes with tomcat too! -Original Message- From: Pernica, Jan [mailto:[EMAIL PROTECTED]] Sent: Monday, June 04, 2001 11:57 PM To: Tomcat-User (E-mail) Subject: How to get server URL? Hi How can I get the server name? I do not like HttpServlet.getServerName() because if I access it from local network the name differs from the name when accessing it from internet. Any suggestions? Regards Jan Mgr. Jan Pernica, MSc. Project Manager DCB Actuaries and Consultants Tel: +420 5 4221 7390-5 Mobile: +420 602 52 42 51 Fax:+420 5 4221 7399 http://www.dcb.cz mailto:[EMAIL PROTECTED] __ Tato komunikace je urcena vyhradne pro adresata a je duverna. This communication is intended solely for the addressee and is confidential.
RE: Should we do moderation on this mailinglist??
Looks like I could use some practice in writing to the masses. This is what I *meant* to say in earlier e-mails today. I just suck at putting it politically. Thanks. -Original Message- From: Martin van den Bemt [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 05, 2001 2:18 PM To: jakarta-tomcat-user Cc: [EMAIL PROTECTED] Subject: Should we do moderation on this mailinglist?? Hi to everybody who is actually trying to get some information on this mailing list, or to help others, The 2 weeks I've been a member here, just trying to get new ideas and help others out with tomcat issues, I would say, were pretty horrible. about 50% of the mail is actually rubbish (which means double mails, requests for unsuscribing and other SPAM. This can have a couple of couses : irritated mode on - Most people cannot read - Most people cannot think logically - Most people should not be able to subscribe to this list - Most people shouldn't wast other people's time, so they still want to help people. irritated mode off solution mode on - members with no active e-mail address should be deleted right away (who has the rights to do that?), so people don't resend messages again. (I mailed the owner of the mailinglist, but haven't had a reply yet..) - Don't allow misuse of the mailinglist anymore : block those senders immidiately from the mailinglist (that's what they want it seems) == are there any facilities for that. - Don't reply to misuse of the mailinglist - Off topic messages can be nicely redirected to the appropiate area. - Let everyone state clearly what they are using (rh 7.1, windows 2000, which version of tomcat, etc). A lot of replies are pretty useless if they have another version of the product. Also the probability that the correct people (the people actually using tomcat on a rh7.1 box, will reply..) - Send a rules e-mail to subscribers. - Send stuff that's not interesting (like someone suggested in the list today), directly to the sender of the mail. (If I have made a commercial solution for a problem or question, I mail to peoples private e-mail address, as an example..) The common goal should be : Users helping users!! Just trying to get some improvement here.. I think a lot of people are currently giving up on this list and that's not good for tomcat (at least that's what I think) Mvgr, Martin van den Bemt
RE: how to put jsp files in regular apache root?
why do you need to hold the jsp's in the same dir as the html? You would really need to put your html in your tomcat jsp dir and just let tomcat serve the static html that is calling the jsp's (I think). you could put in a redirect for your *old* content path to point to the new tomcat one to prevent changing your source. ?? -Original Message- From: Gerald Koh [mailto:[EMAIL PROTECTED]] Sent: Monday, June 04, 2001 1:24 PM To: Tomcat User Subject: how to put jsp files in regular apache root? Hi, I have redhat 7.1 running apache 1.3.19 and tomcat 3.2.2. right now it is working, but there are a few outstanding issues. Please keep my newbieness in mind when answering: 1. I think tomcat is serving the static pages as well as the jsps. There are directions on how to change this, but read #2 first. 2. the jsp's currently need to reside in the webapps directory, I think. I need to hold the jsps in the same directory as the html. Can I do this? Thanks in advance! g -- Gerald Koh | Site Building | Tumo Solutions | Vail, Colorado v: 970.949.4111 x15 | e: [EMAIL PROTECTED] -- The only source of knowledge is experience - Albert Einstein
RE: import java files from jsp
I did this last night while setting up tomcat for the first time (ever, much less to work with apache). I serve all my jsp's from /java/jsp and my servlets from /java/servlet (just because it's easy to remember). I am at work now and all my stuff is behind a firewall at the house. **pulls thoughts out of 3am this morning** If you look at the server.xml and tomcat.conf (or apache-tomcat.conf if you are using apache too) you should be able to figure out how to make your own dir that apache calls for java! I would *guess* this is the preferred method? Enjoy! -Original Message- From: Liming Xu [mailto:[EMAIL PROTECTED]] Sent: Monday, June 04, 2001 1:53 PM To: [EMAIL PROTECTED] Subject: RE: import java files from jsp oh, thanks.. and as for my classes, i will put them into some packages..say com.myname under some directoy say /myjavaclass, it's just that I don't want to put the packages say com.myname inside the WEB-INF/classes, that's all. so all i have to do is to add to the tocmat classpath right? thanks. -Original Message- From: Michael Wentzel [mailto:[EMAIL PROTECTED]] Sent: Monday, June 04, 2001 2:07 PM To: '[EMAIL PROTECTED]' Subject: RE: import java files from jsp Hello, I have some jsp files under /jsp, and by default, the java files used by these jsp files should be put under /jsp/Web-INF/classes/, is there anyway that I can specify under tomcat's configuration file and make the jsp pages under /jsp to look for java files else where? so /myjavaclass? As long as the classes are in the classpath for your tomcat jvm instance they will be found. This is a bad practice though seeing as if duplicate class instances(which are different in code, signature, etc...) can cause problems if they exist in the classpath before your intended class. Any particular reason you wish to do this...? Just curious;) --- Michael Wentzel Software Developer Software As We Think - http://www.aswethink.com
RE: servlet-mapping tag
you could.. see this url: http://java.sun.com/docs/books/tutorial/servlets/servletrunner/webappdd.html -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, June 04, 2001 1:44 PM To: [EMAIL PROTECTED] Subject: servlet-mapping tag I need to modify my servlets url's so they don't include tomcat's default 'servlet' directory. For example, One servlet is in: c:\tomcat\webapps\dir1\WEB-INF\classes therefore the url is: http://localhost/dir1/servlet/ServletName I need the urls to not have the 'servlet' in it (http://localhost/dir1/ServletName). I was told previously to add a servlet-mapping to my web.xml file. Do I do this in %TOMCAT_HOME% \conf\web.xml since I want it to apply to all servlets? I have tried this and can't get it to work. Can somebody give me an example? Many Thanks, Jason E. Brawner
RE: Tomcat and container question
I'm not quite sure if you were actually trying to unsibscribe.. or make a really distasteful crack at the skill-level of the question? JSP's are JSP's. Sometimes (it depends) they compile into Servlets. So it uses both really. -Original Message-From: Jerry Villamizar [mailto:[EMAIL PROTECTED]]Sent: Monday, June 04, 2001 2:27 PMTo: [EMAIL PROTECTED]Subject: Re: Tomcat and container question unsubscribe - Original Message - From: Martin Kock To: [EMAIL PROTECTED] Sent: Monday, June 04, 2001 4:32 PM Subject: Tomcat and container question I use Tomcat with JSP pages only. Does the Tomcat webserver run with both the servlet container and the JSP container, or only one of them?? I would also like to know something about in which situation which container is used. Thanks in advance, Martin Kock
RE: Can pleas someone unsubscribe everyone from janirautiainen.com???
ya know.. I get undeliverable message errors when I send a reply to someone who HAS a mailbox at namezero.com... *interesting*? -Original Message- From: Jerry Villamizar [mailto:[EMAIL PROTECTED]] Sent: Monday, June 04, 2001 3:01 PM To: [EMAIL PROTECTED] Subject: Re: Can pleas someone unsubscribe everyone from janirautiainen.com??? Anybody can unsusbcribe me of this lists - Original Message - From: Martin van den Bemt [EMAIL PROTECTED] To: jakarta-tomcat-user [EMAIL PROTECTED] Sent: Monday, June 04, 2001 4:56 PM Subject: Can pleas someone unsubscribe everyone from janirautiainen.com??? This bugger is not the owner of the domain anymore and I'm getting sick of non-deliverable messages in my mail box.. (it's stored at namezero.com).. Mvgr, Martin van den Bemt