Re: no cache - the browser back button
--- Paul Phillips [EMAIL PROTECTED] wrote: Hello I have written a simple servlet-jsp application that uses sessions and form based authentication using the container security. It is running under Tomcat 4.03 I have implemented a logout page that has, as its last line: mysession.invalidate(). This seems to close this session just fine - I can go to the login page and login again. However, I have noticed that if I am on the logout page, and press the back button, I get the previous page from the cache. If I try to click on anything on that previous page, it bumps me out to the login page, indicating that the session I am trying to use has expired. This is good. However, I don't even want the back button to allow the user to go back to a previous page at all. I have put this code at the top of the jsp page before the logout page: response.setHeader(Cache-Control,no-store); response.setHeader(Pragma,no-cache); response.setDateHeader (Expires, 0); This does not prevent the problem. I have tried no-cache instead of no-store. Still doesn't work. I have tried moving the code to the servlet that drives this jsp (mvc). Still no luck. I have tried this with both Microsoft Explorer 5 and Netscape 6 on a Mac and I can't get either to work. What am I doing wrong? How can I accomplish this? Thanks Paul Phillips Hi Paul, AFAICR putting this tag in the head section of the page to not be cached meta content=no-cache http-equiv=Pragma forced IE 5 to always go to the network for the page, even on the highest caching setting. Combined with this http header: Cache-Control: no-cache I was able to prevent pages being cached, even when the browser was going via a proxy. -Janek __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
How to list all Threads in the JVM? (Includes suggestion.)
Hi, We are trying to monitor the set of Threads in the JVM running Tomcat in order to fix a resource exhaustion problem we have. (Tomcat and/or our code is increasing the number of threads until the hard nproc limit in /etc/security/limits.conf for the user is reached. Red Hat Linux 7.2) How can I code this? This is probably a basic Java question but how do I reference to the top level ThreadGroup? With this code ThreadGroup tg = Thread.currentThread().getThreadGroup() ; while ( tg.getParent() != null) tg = tg.getParent() ; /* walk hierachy from tg */ would the code encounter problems with security manager restrictions when methods are invoked on the root object? In addition to the actual code to walk the Thread tree does anyone have a suggestion as to which classloader I should put the code in? Does it matter? Many Thanks for any suggestions, Janek __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: How to list all Threads in the JVM? (Includes suggestion.)
--- peter lin [EMAIL PROTECTED] wrote: use an application like optimizeIt or JProbe to profile the thread usage. Warning though, don't try running it on a system with less than 128mb of ram. peter Thanks for the links: http://www.sitraka.com/software/jprobe/ http://www.borland.com/optimizeit/ It's not really what I need right now. If I had a simple class that formed the basis of a Thread which periodically dumped a list of all Threads in the JVM I'd be satified (for now...JProbe Threadalyzer looks very useful!). Thanks, Janek __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: How to list all Threads in the JVM? (Includes suggestion.)
Hi Yoav, --- Shapira, Yoav [EMAIL PROTECTED] wrote: Howdy, Your basic code snippet worked relatively well. In fact, I liked it enough to start using it, with a few modifications and enhancements. I'm attaching a more fully developed class to do some more, e.g. get a list of all threads, etc. You WILL get security (e.g. ThreadIllegalStateException) exceptions if you try to modify thread groups outside your own. For kicks, try the destroyRootThreadGroup() method in the attached class. ;) Yoav Shapira Millennium ChemInformatics Thanks for posting the class, it was really good. (If anyone is having trouble with Exercise 10.9 in The Java Programming Language Third Edition I reccommend a look at Yoav's class!). I've integrated it in the web app. This is what I get shortly after starting Tomcat. It's a good starting point. Many Thanks, Janek [SystemThreadList: ThreadGroup 0= java.lang.ThreadGroup[name=main,maxpri=10], activeCount = 46 ThreadGroup 1= java.lang.ThreadGroup[name=system,maxpri=10], activeCount = 50 totalActiveCount = 96 (End of SystemThreadList)]Thread 0 = Thread[Reference Handler,10,system] Thread 1 = Thread[Finalizer,8,system] Thread 2 = Thread[Signal Dispatcher,10,system] Thread 3 = Thread[CompileThread0,10,system] Thread 4 = Thread[main,5,main] Thread 5 = Thread[Thread-0,5,main] Thread 6 = Thread[Thread-1,5,main] Thread 7 = Thread[StandardManager[],5,main] Thread 8 = Thread[Thread-2,5,main] Thread 9 = Thread[Thread-3,5,main] Thread 10 = Thread[Thread-4,5,main] Thread 11 = Thread[Thread-5,5,main] Thread 12 = Thread[Thread-6,5,main] Thread 13 = Thread[Thread-7,5,main] Thread 14 = Thread[Thread-8,5,main] Thread 15 = Thread[Thread-9,5,main] Thread 16 = Thread[Thread-10,5,main] Thread 17 = Thread[Thread-11,5,main] Thread 18 = Thread[Thread-12,5,main] Thread 19 = Thread[Thread-13,5,main] Thread 20 = Thread[Thread-14,5,main] Thread 21 = Thread[Thread-15,5,main] Thread 22 = Thread[Thread-16,5,main] Thread 23 = Thread[Thread-17,5,main] Thread 24 = Thread[Thread-18,5,main] Thread 25 = Thread[Thread-19,5,main] Thread 26 = Thread[Thread-20,5,main] Thread 27 = Thread[Thread-21,5,main] Thread 28 = Thread[StandardManager[],5,main] Thread 29 = Thread[Thread-22,5,main] Thread 30 = Thread[Thread-23,5,main] Thread 31 = Thread[Thread-24,5,main] Thread 32 = Thread[Thread-25,5,main] Thread 33 = Thread[Thread-26,5,main] Thread 34 = Thread[Thread-27,5,main] Thread 35 = Thread[Thread-28,5,main] Thread 36 = Thread[Thread-30,5,main] Thread 37 = Thread[Thread-31,5,main] Thread 38 = Thread[StandardManager[],5,main] Thread 39 = Thread[Thread-32,5,main] Thread 40 = Thread[Thread-33,5,main] Thread 41 = Thread[Thread-34,5,main] Thread 42 = Thread[Thread-35,5,main] Thread 43 = Thread[Thread-37,5,main] Thread 44 = Thread[Thread-38,5,main] Thread 45 = Thread[Thread-39,5,main] Thread 46 = Thread[Thread-40,5,main] Thread 47 = Thread[Thread-41,5,main] Thread 48 = Thread[Thread-42,5,main] Thread 49 = Thread[Thread-43,5,main] To dump this into a page, use this abbreviated version of SystemThreadList.main. xxx () { SystemThreadList stl = new SystemThreadList() ; Thread[] allThreads = stl.getAllThreads(); if((allThreads == null) || (allThreads.length 1)) return SystemThreadListSAO: allThreads is null or length 1.; StringBuffer sb = new StringBuffer(stl.toString() ); sb.append ( \n ) ; // Individual thread info Thread t = null; for(int i = 0; i allThreads.length; i++) { t = allThreads[i]; sb.append(Thread + i + = + t.toString()); sb.append ( \n ) ; } return sb.toString() ; } __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Please someone, I really need help with this issue.
Hi Mark, Could you be a more specific about what is happening/not happening. One thing maybe worth looking at in your warp config WebAppConnection warpConnection warp localhost:8008 WebAppDeploy examples warpConnection /examples/ WebAppDeploy manager warpConnection /manager/ WebAppDeploy webdav warpConnection /webdav/ There's is no mapping of the root / so I'd guess a request such as http://americano.stanford.edu/~skinny won't be processed by the Warp connector and will fall through to Apache. HTH, -Janek --- Mark Diggory [EMAIL PROTECTED] wrote: I anyone has any experince with this please let me know. It could be just one sentence (Even just one word!). I just need to know why I can't run my users jsp's through my warp connector... Here's my Connector in server.xml !-- Define an Apache-Connector Service -- Service name=Tomcat-Apache Connector className=org.apache.catalina.connector.warp.WarpConnector port=8008 minProcessors=5 maxProcessors=75 enableLookups=true acceptCount=10 debug=0/ !-- Replace localhost with what your Apache ServerName is set to -- Engine className=org.apache.catalina.connector.warp.WarpEngine name=Apache debug=0 appBase=webapps !-- Attempt to define a default virtual host and a listener to map the user dir's through the apache connector-- Host name=Apache debug=0 appBase=webapps unpackWARs=true Listener className=org.apache.catalina.startup.UserConfig directoryName=public_html homeBase=/home/login userClass=org.apache.catalina.startup.HomesUserDatabase/ /Host /Engine /Service I assume I would need to use a WebAppDeploy descriptor to map the users directories to Tomcat, how would I do that for generic users directories (~/public_html)? WebAppConnection warpConnection warp localhost:8008 WebAppDeploy examples warpConnection /examples/ WebAppDeploy manager warpConnection /manager/ WebAppDeploy webdav warpConnection /webdav/ -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Is it possible to prevent Tomcat from creating a response?
Would creating a redirection work after successful A A work? HTTP/1.0 302 Document follows Location: http://xxx.accenture.com/new-location/index.html Will this code be executed within a webapp or within a modified version of mod_webapp? -Janek --- [EMAIL PROTECTED] wrote: I'm creating a single sign on plugin to different http servers using Tomcat. Functionality: If the user is not authenticated or authorized for the requested resource the user is redirected to another site for log in. If the user is authorized for the requested resource, the Tomcat module has done his part. The request should be returned to the http server and let the content delivery system(an application server, CGI scripts, etc) create the response. My problem is that I'm not able to tell the http server that Tomcat don't want to create the response. For example: With Apache http server I think the clue is to make mod_webapp return DECLINED instead of OK, but does anyone know how this can be done from Tomcat? Or another way this can be done? thanks, Vegard -- Vegard Myrland Accenture Communication High Tech P.O. Box 550 Skøyen, NO-0214 Oslo, Norway Phone (direct): +47 22 12 65 70 Phone (mobile): + 47 952 47 047 Fax: + 47 22 12 60 00 e-mail: [EMAIL PROTECTED] This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Servlet help...
--- Clay Mitchell [EMAIL PROTECTED] wrote: How do I define where Tomcat looks for servlets? Where does it look for it by default? Thanks -Clay Have a look at this document http://jakarta.apache.org/tomcat/tomcat-4.0-doc/class-loader-howto.html It should answer your question. -Janek __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: index.jsp-index.html
--- Odo [EMAIL PROTECTED] wrote: How configure default page from index.jsp to index.html in Tomcat 4.0? Add the second servlet-mapping element shown here to $CATALINA_HOME/conf/web.xml !-- The mapping for the JSP servlet -- servlet-mapping servlet-namejsp/servlet-name url-pattern*.jsp/url-pattern /servlet-mapping servlet-mapping servlet-namejsp/servlet-name url-pattern*.html/url-pattern /servlet-mapping -Janek __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Can multiple URLs with a single IP address be mapped to discrete Applications in Tomcat 4.0? - Yes
--- Micael Padraig Og mac Grene [EMAIL PROTECTED] wrote: Clear question: No answers The subject, supra, asks the question. If you have a number of URLs pointed to a single IP address, can you map the URLs somehow to discrete web applications in Tomcat 4.0? I have read everything I know to read and cannot get the answer to this. I know I could do it with JBoss and Tomcat 3.2.4 and the context manager. But, I don't see that in Tomcat 4.0. What's up? Sure is hard to get a response to this question. Have no idea what. Please don't tell me the stuff that is simple and covered like how to set up directories, etc. I know how to handle aliases, how to handle multiple IP addresses on the same machine, etc. My question is specific. How can I get, e.g. www.a.com and www.b.com when they are pointed to a given IP address, 209.43.251.66 (for example), to map to webapps/a and webapps/b? Or, is this not now possible? Some people have suggested that, since I don't know the answer to this, I need to essentially take the classes I teach for fun. Lord. If only they could answer the question instead of loading me with pompous self-righteous drivel. I do thank those who have tried. I don't know where to look at this point. I may just write the classes to do it. Micael Hi Micael, It is possible to setup Apache with the Warp connector to map different host names to different webapps. In my case I have a number of webapps available under the ROOT context for an equal number of host names. http://xx-xx.mydomain.net - webapps/xx-xx http://yy-yy.mydomain.net - webapps/yy-yy http://zz-zz.mydomain.net - webapps/zz-zz (The setup you desire is a virtual host setup. I'll restrict my advice to the Apache/Warp/TC setup but I think you should reread http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/host.html if you want to omit Apache from your setup.) Below are the relevant extracts from my httpd.conf and server.xml files. httpd.conf -- NameVirtualHost 194.164.98.233 VirtualHost 194.164.98.233 ServerName eng.dev.studylink.com ServerAdmin [EMAIL PROTECTED] WebAppConnection eng-cnx warp localhost:8008 WebAppDeploy eng eng-cnx / ErrorLog /var/opt/apache/logs/eng.error_log CustomLog /var/opt/apache/logs/eng.access_log common /VirtualHost server.xml -- Server port = 8005 shutdown = SHUTDOWN debug = 0 !-- Define an Apache-Connector Service -- Service name=Tomcat-Apache Connector className = org.apache.catalina.connector.warp.WarpConnector port = 8008 minProcessors = 5 maxProcessors = 75 enableLookups = true acceptCount = 10 debug = 1/ Engine className= org.apache.catalina.connector.warp.WarpEngine name = Apache debug = 0 appBase = webapps defaultHost = delta.tudylink.com !-- Global logger unless overridden at lower levels -- Logger className= org.apache.catalina.logger.FileLogger prefix = apache_log. suffix=.txt timestamp = true/ Realm className = org.apache.catalina.realm.MemoryRealm / DefaultContext/DefaultContext /Engine /Service /Server __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: new to java, apache and tomcat.. but I want to learn!
--- Donald Lee [EMAIL PROTECTED] wrote: I have am looking for. I would like to start with something simple but actually usable like a guest book program or a message board. The code doesn't even need to work, just point me in the right direction. I plan to keep going with this in the best way I can. Thanks Hi Donald, There are a number of java message boards listed here. Some appear to be open source. http://www.hotscripts.com/Java/JSP_and_Servlets/Discussion_Boards/ -Janek __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: The (tom)cat with 9 lives...
--- Dr. Evil [EMAIL PROTECTED] wrote: I was trying to get Tomcat to work with Jmagick, and I appear to be having some problems which cause Tomcat to stop working, but it leaves a bunch of threads going. For some reason I can't kill these threads using the ordinary 'kill -9' method. This is under Mandrake Linux, with a 2.4 kernel. Any sugestions on how to kill these threads which never die? I don't want to have to reboot this computer all the time. That's a Windows thing! Some people talk about 'kill -9' not killing processes here: http://groups.google.com/groups?frame=rightth=d9956467fb83818bseekm=83ln678q8t.fsf%40mercury.st.hmc.edu#link4 __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: JNI libs and Tomcat?
--- Dr. Evil [EMAIL PROTECTED] wrote: Hi, I'm trying to get Jmagick (a JNI interface for Imagemagick) to work with my favorite web server, which is Tomcat 4. In the release notes, it says: Applications that require native libraries must ensure that the libraries have been loaded prior to use. Typically, this is done with a call like: static { System.loadLibrary(path-to-library-file); } However, when I put in /usr/local/lib/libImagemagick.so in there, and put it in a Listener that starts when the app starts, I get an error that path separators are not allowed in the loadLibrary method. I tried putting that library in the $TOMCAT/lib directory, and taking out the full path, and that didn't work. Any sugestions? Thanks! -- try System.load instead of System.loadLibrary. static { System.load(/usr/local/lib/libImagemagick.so); } __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: SIMPLE PROBLEM..I think
--- Catalin [EMAIL PROTECTED] wrote: hi 2 all! I'm new to jakarta and I have this pb: I want to build a new web app with servlets and I don't know how! I have an jakarta-tomcat 3.3m4 10x 2 all! -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] Try this http://jakarta.apache.org/tomcat/tomcat-4.0-doc/appdev/index.html Although it's about TC 4 the basic principles servlet development are the same. There is also this book http://www.servlets.com/jservlet2/index.html hth, Janek __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: mod-webapp Bugs
I can't help you but I can say that I have what sounds like a similar authentication failure when trying to access the manager app (http://jakarta.apache.org/tomcat/tomcat-4.0-doc/manager-howto.html). When I try to access the manager webapp the BASIC authentication dialog popped up, I entered the username and password but can never authenticate successfuly. I even had a colleague type the username/password in as a sanity check but no go. (This was with Tomcat 4.0, I haven't tried 4.0.1) -Janek --- Cavan Morris [EMAIL PROTECTED] wrote: Hey everybody, I'm running tomcat 4.0.1 under apache 1.3.22 through mod_webapp from webapp-module-1.0-tc40-linux-glibc2.2.tar.gz and I've noticed a couple of quirks in the way it's working. I'm wondering if these are bugs that will/should be corrected or they are the result of misconfigureation on my part. The first problem is that if I go to www.mydomain1.com/webapp-info or www.mydomain1.com/examples I get: Not Found The requested URL /examples was not found on this server. If I go to www.mydomain1.com/webapp-info/ or www.mydomain1.com/examples/ it works fine. That happens whether I include a trailing slash in the httpd.conf WebAppDeploy or not. (Examples from docs say not) The other, more serious problem is this. I can't authenticate to the protected areas of my ROOT app through mod-_webapp. I'm using form based login and a JDBC Realm on tomcat to protect one of the subdirectories. Everything works fine if I go directly to tomcat on port 8080, but if I go through apache the authentication fails every time. The 302 redirects work fine, it's just that no mater what username and password I use it acts like they're bad. They're not though. I can see them in the database and use them on port 8080. Any ideas what's going wrong or where I made a mistake? Are these known issues with this configureation? Here's my mod_webapp lines in httpd.conf. I hope somebody can give me a hand. LoadModule webapp_module libexec/mod_webapp.so #apache 1.3.22 seems to nolonger require AddModule lines [...] WebAppConnection conn warp localhost:8008 VirtualHost * ServerName www.mydomain1.com UseCanonicalName On WebAppInfo /webapp-info WebAppDeploy examples conn /examples /VirtualHost VirtualHost * ServerAdmin [EMAIL PROTECTED] ServerName www.mydomain2.com ServerAlias mydomain2.com *.mydomain2.com UseCanonicalName On WebAppDeploy ROOT conn / /VirtualHost -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: A newbie - deploying an app with mod_webapp
What do you have in server.xml? --- Sergei O.Naumov [EMAIL PROTECTED] wrote: Hi! I am starting to work with Tomcat and I get a strange behaviour of Tomcat when it is run from under Apache's mod_webapp. I have this in httpd.conf: IfModule mod_webapp.c WebAppConnection cexam warp localhost:8008 WebAppConnection ccoco warp localhost:8008 WebAppConnection cjets warp localhost:8008 WebAppDeploy examples cexam /examples/ WebAppDeploy cocoonccoco /cocoon/ WebAppDeploy jetspeed cjets /jportal/ WebAppInfo /webapp-info /IfModule When I start Tomcat and go to http://locahost/jportal or http://localhost/cocoon/ it tells me that the the application is not yet deployed. When I run Tomcat stand alone, it deployes cocoon.war and jetspeed.war just fine. I looked into the logs and found that it can not find ./../webapps/jetspeed for localhost but I thought it should unzip war files automatically. Can anyone, please, explain what is really happening there. Thanks much, Sergei -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: tomcat jboss
If you want to use JBoss as an EJB server/container and access those EJBs from Tomcat have a look here: http://mikal.org/interests/java/tomcat/archive/view?mesg=48170 --- renyu teng [EMAIL PROTECTED] wrote: this is a little bit off the topic, anyway, could anyone tell me where I could find a useful information to run tomcat jboss together? thank you. teng __ Do You Yahoo!? Buy the perfect holiday gifts at Yahoo! Shopping. http://shopping.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] Nokia 5510 looks weird sounds great. Go to http://uk.promotions.yahoo.com/nokia/ discover and win it! The competition ends 16 th of December 2001. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: DOS Message: Starting Tomcat in New Window, but Server is apparently not running.
This problem looks similar to this one http://w4.metronet.com/~wjm/tomcat/2000/Nov/msg00565.html If you suspect BlackIce, turn it off and try again. -Janek --- Scott and Michele Young [EMAIL PROTECTED] wrote: I am trying to run Tomcat3.2.3 in Win98. When I run the startup.bat, I get the following message: --- Unable to set CLASSPATH dynamically. Note: To set the CLASSPATH dynamically on Win9x systems only DOS 8.3 names may be used in TOMCAT_HOME! Setting your CLASSPATH statically. Using CLASSPATH: E:\jakarta-tomcat-3.2.4\\classes;E:\jakarta-tomcat-3.2.4\\lib\a nt.jar;E:\jakarta-tomcat-3.2.4\\lib\jasper.jar;E:\jakarta-tomcat-3.2.4\\lib\ jaxp .jar;E:\jakarta-tomcat-3.2.4\\lib\servlet.jar;E:\jakarta-tomcat-3.2.4\\lib\w ebse rver.jar;e:\jakarta-tomcat-3.2.4\lib\servlet.jar;d:\JBuilder5\jdk1.3\lib\too ls.j ar Starting Tomcat in new window -- Another DOS window breifly opens and closes, (I can not read the message in that window), and the above window remains open. I do not get a new window or anything after this. I tried opening my browser and typing http://localhost:8080/ in the address line, but I get the Cannot find server or DNS Error from the browser. I tried changing the port to 80 instead of 8080, but that doesn't work either. I'd greatly appreciate it if anyone can help get me past this issue. Would my BlackIce firewall affect this? Should I see another screen that indicates Tomcat is running? Scott __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: TOMCAT does not set the CLASSPATH for my WebAPP
Have a look at the 'Class Loader INFO': http://jakarta.apache.org/tomcat/tomcat-4.0-doc/class-loader-howto.html --- Roland Berger [EMAIL PROTECTED] wrote: Hi all As I understand from the Servlet specs. a Servlet Container like Tomcat should set the CLASSPATH for each webapp which is placed in %TOMCAT_HOME%/webapps. e.g. if I have placed a .jar file in %TOMCAT_HOME%/webapps/mywebapp/WEB-INF/lib/myjar.jar it should add to the CLASSPATH the path %TOMCAT_HOME%/webapps/mywebapp/WEB-INF/lib/myjar.jar . But Tomcat doesn't do that with me. I have checked the tomcat.bat startup script. Dynamic Classpath generation is only done for .jar's in %TOMCAT_HOME%/lib but not for each webapp. So, how, where and at what time in startup procedure does tomcat generate the CLASSPATH for each webapp?? Thank's a lot for any help Roland -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: mod_webapp
Try here: http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.1/bin/linux/i386/ --- Laurent Michenaud [EMAIL PROTECTED] wrote: What is mod_webapp ? - is it a replacement of mod_jk or jserv ? - does it offer good performance ( comparing this others ) ? - Where can we download it ? - Can we use it with tomcat-3.2.3 ? Thanks Michenaud Laurent - Adeuza - [ Développeur Web - Administrateur Réseau ] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: included files, help!! :)
Hi Nicholas, This may not be the best way but it will save you having to do as much. Tomcat stores the compiled JSPs in $CATALINA_HOME/work. Deleting the files from there will make Tomcat recompile the JSPs the next time the page using the static include (%@ include file=header.html %) is served out. HTH, Janek --- Nicholas Katzakis [EMAIL PROTECTED] wrote: Hello! I was wondering if somebody could help me with something that really makes my life difficult. on my site I have several .jsp files which all depend on 2 %@ included % .htm files (the extension could be anything really.. I just named them .htm so that I could more easily edit them with my html editor). How can I tell tomcat to recompile the jsp files if any of them changes. Because now whenever I make a change to the .htm files (which handle layout/style) I have to open and SAVE around 10 files, for them to be updated. anybody have a clue? p.s. be specific I'm not very confident with tomcat's configuration files! Nicholas __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Need info to combine Tomcat/Apache
This is fairly recent http://nagoya.apache.org/~pier/documentation/ There is some further documentation in the CVS module itself. --- Falko Braun [EMAIL PROTECTED] wrote: Hi, I've just installed Apache and Tomcat 4.0.1, but I can't find any documentation on how to use Tomcat as the servlet container for Apache. Does anybody know an URL. Falko Braun -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: jndi.properties
There is old Tomcat/JBoss/EJB HOWTO here http://home01.wxs.nl/~cancr001/tomcat_jboss.html I tried this with Tomcat 4.0/JBoss 2.4.3 and it worked although the names of some of the JARs have changed. There's another Tomcat/JBoss/EJB HOWTO here http://jakarta.apache.org/turbine/turbine-2/howto/jboss-howto.html (The list of moved JARs in this second HOWTO is excessive) --- Andrew [EMAIL PROTECTED] wrote: Hi, I've some ejbeans on other host(EJB container) and I want to use it in Tomcat(4.0.1). My question is: How I can specify/place jndi.properties file for successful lookup my beans.If Tomcat supports some other means through webapp configuration options (I mean Tomcat jndi namespace)- what(maybe servlet spec references)? Thanks. P.S I simply need to set java.naming.factory.initial,java.naming.provider.url somehow:( -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: STARTUP.SH DOESN'T WORKS FINE
Hi Nancy, This is what happens under Linux: 1. Switch to a virtual console and login 2. execute startup.sh (Tomcat is running) 3. exit from shell 4. Login and Tomcat is still running. So I have daemon behaviour under Linux. -Janek --- Nancy Crisostomo Martinez [EMAIL PROTECTED] wrote: Hello everybody! I hope you could help me, please.. Actually, I'm begining to use Tomcat, and I have a succeded start because it still works PERFECT to me... But muy problem is very strange : I installed Tomcat to Solaris 8, and when I start it (startup.sh | tomcat.sh start ) it starts, but when I close the terminal window Tomcat shuts down!!! and now I'm using Tomcat with a terminal window opened with the caution message :DON'T CLOSE, PLEASE... I hope you could help me to fix it. Nancy. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: STARTUP.SH DOESN'T WORKS FINE
--- Tom Drake [EMAIL PROTECTED] wrote: Effectively the process is killed. I think we are saying the same thing. As far as I know, there's no way to receive SIGHUP (or any other Unix signal) in your java code anyway. It is possible to register a shutdown hook which is executed when the JVM is shutdown http://developer.java.sun.com/developer/TechTips/2000/tt0711.html JBoss uses this (AFAIK) in order to do an orderly shutdown when ctrl-c in pressed in the console it is running. -Janek __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Linux startup problem
On Sat, 10 Nov 2001, Matt Egyhazy wrote: i have seen very, very, very bad code written for applications that use jsp. You should see some of the horrible servlet-based code I've also had to look at. People that are bound and determined to shoot themselves in the foot no matter what tools you give them. :-) matt Craig -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
How to set up Tomcat 4.0.x to call EJBs in JBoss 2.4.x
Help! I'd like to run Tomcat 4.0.x and JBoss 2.4.x in separate JVMs on the same machine and have my servlets access EJBs within JBoss. How do I set up Tomcat to do this? I've read lots of posts in various mailing lists on this but it's still unclear to me. Is there a HOWTO or manual page for this? I have looked, I promise. Many Thanks, Janek Bogucki Nokia Game is on again. Go to http://uk.yahoo.com/nokiagame/ and join the new all media adventure before November 3rd. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Servlet Exception with a file named 1_4_1.html
I added a file named 1_4_1.html to a webapp and got this exception when the page was served. Presumably it was due to the class name starting with a digit. File: 1_4_1.html Class: 1_0002d4_0002d1$html Cheers, Janek Bogucki A Servlet Exception Has Occurred org.apache.jasper.JasperException: Unable to compile class for JSPpublic class 1_0002d4_0002d1$html extends HttpJspBase { ^ public class 1_0002d4_0002d1$html extends HttpJspBase { ^ public 1_0002d4_0002d1$html( ) { ^ 3 errors at org.apache.jasper.compiler.Compiler.compile(Unknown Source) at org.apache.jasper.servlet.JspServlet.loadJSP(Unknown Source) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(Unknown Source) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Unknown Source) at org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown Source) at org.apache.jasper.servlet.JspServlet.service(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown Source) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown Source) at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.catalina.core.StandardContextValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.catalina.core.StandardContext.invoke(Unknown Source) at org.apache.catalina.core.StandardHostValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.catalina.core.StandardEngineValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.catalina.connector.warp.WarpRequestHandler.handle(WarpRequestHandler.java:215) at org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java:194) at java.lang.Thread.run(Thread.java:484) Nokia Game is on again. Go to http://uk.yahoo.com/nokiagame/ and join the new all media adventure before November 3rd. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Cannot open connection conn
What's in your server.xml? --- Kemp Randy-W18971 [EMAIL PROTECTED] wrote: I have set up Tomcat 4.01, mod_webapp, and Apache 1.3.22 on Windows 2000. What could be causing this error in the Apache error log, in regards to the Tomcat connection? [Thu Oct 18 09:50:02 2001] [error] Connection conn cannot connect [Thu Oct 18 09:50:02 2001] [error] Cannot open connection conn Tomcat parameters in httpd.conf LoadModule webapp_module modules/mod_webapp.so NameVirtualHost * # # VirtualHost example: # Almost any Apache directive may go into a VirtualHost container. # #VirtualHost ip.address.of.host.some_domain.com #ServerAdmin [EMAIL PROTECTED] #DocumentRoot /www/docs/host.some_domain.com #ServerName host.some_domain.com #ErrorLog logs/host.some_domain.com-error_log #CustomLog logs/host.some_domain.com-access_log common #/VirtualHost #VirtualHost _default_:* #/VirtualHost VirtualHost * ServerName localhost WebAppConnection conn warp localhost:8008 WebAppDeploy examples conn /examples/ WebAppDeploy onjava conn /onjava/ WebAppInfo /webapp-info /VirtualHost Nokia Game is on again. Go to http://uk.yahoo.com/nokiagame/ and join the new all media adventure before November 3rd.
Most reliable way of determining when tomcat has finished starting up
Does anyone know a good way of checking for when tomcat has finished starting up? I'd like to have a script like this $ $CATALAINA_HOME/bin/startup.sh $ ..wait for TC to finish starting up ... # $APACHE/sbin/apachectl graceful I'm using Tomcat 4.0 w/ mod_webapp.so. Any tips welcome, Janek Bogucki 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
RE: mod_webapp.so: ltconfig --version
Hi shine, The cause of the error appears to be an invalid version returned from ltconfig. You'll find that script at webapp/apr/build/ltconfig Run the script like this to test it's not corrupted $ ./ltconfig --version ltconfig (GNU libtool) 1.3.5 (1.385.2.206 2000/05/27 11:12:27) Have a look inside ltconfig with an editor and search for the string VERSION=1.3.5. What do you see? hth, yan From: shine Subject: mod_webapp.so Date: Mon, 24 Sep 2001 11:22:06 -0700 Hello i am trying to integrate apache 1.3.20 with tomcat 4.0 final i get this error message when i compile form webapp. i used command like this./configure --with-apxs=/usr/local/apache/bin/apxs it worked fine but make does not work. here is the output make[4]: Entering directory `/usr/local/src/webapp/apr/strings' /bin/sh /usr/local/src/webapp/apr/libtool --silent --mode=compile gcc -DHAVE_ CONFIG_H -DLINUX=2 -D_REENTRANT -I../include -I../include/arch/unix -c apr_cp ystrn.c touch apr_cpystrn.lo libtool: ltconfig version `' does not match ltmain.sh version `1.3.5' Fatal configuration error. See the libtool docs for more information. make[4]: *** [apr_cpystrn.lo] Error 1 make[4]: Leaving directory `/usr/local/src/webapp/apr/strings' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/usr/local/src/webapp/apr/strings' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/usr/local/src/webapp/apr' make[1]: Exiting directory /usr/local/src/webapp/apr make[1]: *** [template] Error 2 make[1]: Leaving directory `/usr/local/src/webapp' make: *** [apr-build] Error 2 Thank you for all your time. - This email has been sent using TurtleMail - Get your free email address from www.purpleturtle.com now!
RE: Help with getting mod_webapp to work properly: ppConnection
Hi Nick, I might be a spurious character inbetween the A and the p of WebApplication WebA[spurious]ppConnection conn warp 192.168.2.4:8008 WebAppDeploy examples conn /examples Try deleting the directive 'WebAppConnection' and typing it back in. hth, yan - Original Message - From: Nick Torenvliet [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Mon, 24 Sep 2001 23:05:10 -0400 Subject: Help with getting mod_webapp to work properly I'm following the directions in the binary dist INSTALL.txt file. I can get to the point where apachectl configtest gives syntax ok back. When I insert the lines WebAppConnection conn warp 192.168.2.4:8008 WebAppDeploy examples conn /examples I get the following error invalid command 'ppConnection', perhaps mispelled or defined by a module not included in the server configuration. I've only installed the mod_ssl and the mod_web_app, and I am running Apache 1.3.20 and tomcat 4.0 with the defaul server.xml. I've defined my server name as 192.168.2.4 in httpd.conf. What's the problem? - This email has been sent using TurtleMail - Get your free email address from www.purpleturtle.com now!
RE: tomcat is crashing
Hi, I don't know the solution to your problem but it may be worth looking at this. You say you are using JDK 1.3.0 but the dump shows Classic VM (1.2.2-RC2-K, green threads). On my system I get: $ java -version java version 1.3.1 Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-b24) Java HotSpot(TM) Client VM (build 1.3.1-b24, mixed mode) What is $PATH set to? -yan just FYI When it crashes; I get following dump in the tomcat.log SIGSEGV 11* segmentation violation si_signo [11]: SIGSEGV 11* segmentation violation si_errno [0]: Success si_code [1]: SEGV_MAPERR [addr: 0x4] stackpointer=0x448b0b00 Full thread dump Classic VM (1.2.2-RC2-K, green threads): Can somebody provide any clue? I am using Red Hat 7.1 tomcat 3.2.1 apache 1.14 JDK 1.3.0 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
Re: WebAppDeploy syntax ?
Hi Hans-Erik, Are you sure you actually need to set up a context in server.xml if you are using mod_webapp.so? I think Pier say that the entire Tomcat-Standalone Service can be removed from server.xml and mod_webapp will set of the context automatically thus avoiding conf data duplication. I've just tried this and it appears to be working with numguess.jsp. I went to the URL http://127.0.0.1/examples/jsp/index.html okay and interacted with numguess.jsp okay. My httpd.conf file has this --- httpd.conf --- WebAppConnection warpConnection warp localhost:8008 WebAppDeploy examples warpConnection /examples and this is my _entire_ server.xml file. There are no Context elements in it. There is just one Service. --- server.xml --- !-- Example Server Configuration File -- !-- Note that component elements are nested corresponding to their parent-child relationships with each other -- !-- A Server is a singleton element that represents the entire JVM, which may contain one or more Service instances. The Server listens for a shutdown command on the indicated port. Note: A Server is not itself a Container, so you may not define subcomponents such as Valves or Loggers at this level. -- Server port=8005 shutdown=SHUTDOWN debug=0 !-- A Service is a collection of one or more Connectors that share a single Container (and therefore the web applications visible within that Container). Normally, that Container is an Engine, but this is not required. Note: A Service is not itself a Container, so you may not define subcomponents such as Valves or Loggers at this level. -- !-- The MOD_WEBAPP connector is used to connect Apache 1.3 with Tomcat 4.0 as its servlet container. Please read the README.txt file coming with the WebApp Module distribution on how to build it. (Or check out the jakarta-tomcat-connectors/webapp CVS repository) To configure the Apache side, you must ensure that you have the ServerName and Port directives defined in httpd.conf. Then, lines like these to the bottom of your httpd.conf file: LoadModule webapp_module libexec/mod_webapp.so WebAppConnection warpConnection warp localhost:8008 WebAppDeploy examples warpConnection /examples/ The next time you restart Apache (after restarting Tomcat, if needed) the connection will be established, and all applications you make visible via WebAppDeploy directives can be accessed through Apache. -- !-- Define an Apache-Connector Service -- Service name=Tomcat-Apache !-- Original element -- !--Connector className=org.apache.catalina.connector.warp.WarpConnector port=8008 minProcessors=5 maxProcessors=75 enableLookups=true acceptCount=10 debug=0/-- Connector className=org.apache.catalina.connector.warp.WarpConnector port=8008 minProcessors=5 maxProcessors=75 enableLookups=true acceptCount=10 debug=1/ !-- Original element -- !-- Replace localhost with what your Apache ServerName is set to -- !--Engine className=org.apache.catalina.connector.warp.WarpEngine name=Apache debug=0 appBase=webapps-- Engine className=org.apache.catalina.connector.warp.WarpEngine name=Apache debug=0 appBase=webapps defaultHost=yyy.xxx.co.uk !-- Global logger unless overridden at lower levels -- Logger className=org.apache.catalina.logger.FileLogger prefix=apache_log. suffix=.txt timestamp=true/ !-- Because this Realm is here, an instance will be shared globally -- Realm className=org.apache.catalina.realm.MemoryRealm / /Engine /Service /Server --- Hans-Erik Skyttberg [EMAIL PROTECTED] wrote: Hi! Context path=/webmail docBase=/var/www/html/webmail debug=0 reloadable=true/ If I have this context in server.xml, How do I write the following ? WebAppDeploy webmail conn /webmail Ths above won't work, so how should I write it ? Like this: WebAppDeploy /var/www/html/webmail conn /webmail Any help appreciated Hans - Erik Skyttberg Boxer TV Access AB Tegluddsv. 64 115 28 Stockholm +46 (0)8 587 899 64 +46 (0)733 35 70 64 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
Re: Where to get mod_webapp
Hi Li, It is possible to build mod_webapp.so from the sources available via cvs. Start here http://jakarta.apache.org/site/cvsindex.html Download the jakarta-tomcat-connectors module and then read this file after the cvs checkout has finished jakarta-tomcat-connectors/webapp/README.txt Once mod_webapp.so has been built, read this file jakarta-tomcat-connectors/webapp/INSTALL.txt Good Luck, yan --- Li Lin [EMAIL PROTECTED] wrote: I just joined the mail list yesterday. I have been reading the mail archive but have not found exactly what I need. Can someone give me some instruction as how to build mod_webapp from the souce file? How to build it? What to download? Once it is build, what do I need to do to get Tomcat 4.0 to work with Apache 1.3.20? I am on Windows 2000. Thank you very very much. Li 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
Re: Generating directory trees
Hi Doug, This thread talks about turning the directory listing feature off so you could try the reverse http://www.jguru.com/forums/view.jsp?EID=465139 Here's another message where turning the feature off is discussed http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg28280.html hth, yan --- Hewko, Doug [EMAIL PROTECTED] wrote: Hi! I hope that this is the proper mailing list, but it is the only one that seems logical. How could I set up Tomcat 4.0B6 to display a directory tree like the one contained in http://www.apache.org/dist/;? I can get a tree to work off my local hard drive but am getting the file not found from Tomcat. I am using Tomcat 4.0 b6, with Cocoon2. 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
Re: mod_webapp.so
Hi Shine, RHL 6.2 has an earlier version of bash than RHL 7.x. I wonder if your error is due to the script using syntax unsupported in this earlier version. -yan --- shine [EMAIL PROTECTED] wrote: Hello i am trying to integrate tomcat + apache I got the following error when I compile the program !! root@databank support]# ./configure --with-apxs==/usr/local/apache/bin/apxs loading cache ./config.cache ./configure: syntax error near unexpected token `if' ./configure: ./configure: line 575: `if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 /dev/null 21; then :' I use RedHat linux 6.2 tommy Thank you guys. 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
Re: mod_webapp.so
Hi Shine, Not quite what you want but this page describes a way of getting Oracle 8.1.x, which requires glibc 2.1.3 to run under Red Hat Linux 7.x, which uses glibc 2.2.10 http://www.zx81.org.uk/computing/oracle/oracle-howto/redhat7.html -yan --- shine [EMAIL PROTECTED] wrote: Hello, i get the following error while trying to get apache working with tomcat. root@databank bin]# ./apachectl start ./apachectl start Syntax error on line 205 of /usr/local/apache/conf/httpd.conf: Cannot load /usr/local/apache/libexec/mod_webapp.so into server: /lib/libc.so.6: version `GLIBC_2.2' not found (required by /usr/local/apache/libexec/mod_webapp.so) ./apachectl start: httpd could not be started * I used RedHad 6.2 and I install all stuff into my linux box. I think it includs the library glibc-2.1.3-15. CAN YOU tell me how to let glibc-2.1.3-15 and glibc-2.2 co-existed ?? cause I also run oracle 8.1.7 in this box, and the document shows that if I upgrade it to 2.2, it will cause some part of oracle function mal-function !! It is the worst thing I want to see. So, if there exists a method to co-operate 2.1.3 and 22. glibc together. AND that will be perface ... Any idea ? -tommy 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
Re: Help needed
LOL! (Although this might be more appropriate: tomcat apache configure HP-UX ) --- Jan Labanowski [EMAIL PROTECTED] wrote: Start from going to: http://www.google.com and type in: tomcat apache configure and hit return. Jan 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
How to get warp.jar built from cvs?
Hi, I have had success in building mod_webapp.so for Apache 1.3 following the instruction in webapp/README.txt. However I don't know how to get warp.jar built in java/. I followed the instructions in README.txt and used this command: ./configure --with-apxs=/opt/apache/sbin/apxs --with-java=JAVA_HOME --with-tomcat=CATALINA_HOME mod_webapp.so was built but no warp.jar. Thinking I had misunderstood the instructions I tried: ./configure --with-apxs=/opt/apache/sbin/apxs --with-java=$JAVA_HOME --with-tomcat=$CATALINA_HOME I saw this at the end of the output creating ./java/Constants.java but still no warp.jar. I then made TOMCAT_HOME be equal to CATALINA_HOME and tried this ./configure --with-apxs=/opt/apache/sbin/apxs --with-java --with-tomcat but I didn't get warp.jar. The stderr of the last ./configure I did was this C-Language compilation tools JAVA-Language compilation tools API documentation generation Target web-server Building APR configure script Configuring APR Finishing up All done. Now you can issue make. Good luck. So the Java tools seem to have been detected. What is a useful way to approach this? (It's probably some dumb typo on my part but i just can't see it!) (I did find http://www.apache.org/~pier/warp.jar, posted 01-Sept-14. Would it be okay to use this jar to replace the one shipped with the tomcat-4 binary?) Thank you, yan - This email has been sent using TurtleMail - Get your free email address from www.purpleturtle.com now!
Re: Solution to mod_webapp.so:undefined symbol: pthread_sigmaskon Red Hat Linux 7.1
Thanks Pier. I followed the instructions in webapp/README.txt and built and loaded mod_webapp.so into Apache 1.3 without the 'pthread_sigmask' error. My mistake was following the instructions in this file which are out of date: jakarta-tomcat-connectors/webapp/docs/apache-1.3.html Janek Bogucki [EMAIL PROTECTED] wrote: Hi, I may have solved (or at least worked around) the the missing 'pthread_sigmask' symbol error encountered when trying to use mod_webapp.so. From the mailing list it appears to affect this configuration: 1. Red Hat Linux 7.1 2. Apache 1.3.x 3. httpd.conf will have these lines in it: LoadModule webapp_module libexec/mod_webapp.so AddModule mod_webapp.c The symptom is this: [root@bogucki bin]# ./apachectl start Syntax error on line 241 of /opt/apache/conf/httpd.conf: Cannot load /opt/apache/libexec/mod_webapp.so into server: /opt/apache/libexec/mod_webapp.so: undefined symbol: pthread_sigmask ./apachectl start: httpd could not be started [root@bogucki bin]# AFAIK, this has been fixed a looong time ago, if you download the latest webapp module sources (the one coming with Tomcat 4.0 final) it should be more than fine (I tried it myself on RH71) - This email has been sent using TurtleMail - Get your free email address from www.purpleturtle.com now!
RE: Everlasting tomcat processes
It's probable these 'ever-lasting' process are tomcat running normally. Do you know these threads to started by a JSP or Servlet in reponse to a connection? Does the number and PIDs remain stable? - Original Message - From: Chaber, Eric [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Mon, 24 Sep 2001 08:09:53 -0700 Subject: Everlasting tomcat processes Dear all, in my production system I have some processes which last very long. They seem to never die. I can have many processes like that are lasting 10/20 mn and using my CPU and memory in an useless manner. What I can see making a top command : 1216 root 10 0 14604 12M 1984 S 0.5 10.4 10:28 java I there a parameter to set to prevent from these everlasting tomcat process ? Can i say somewhere kill these process if they last more than 4mn for example ? Best regards, Eric - This email has been sent using TurtleMail - Get your free email address from www.purpleturtle.com now!