RE: Problem installing Servlets on Tomcat
http://localhost:8080/examples/servlet/HelloWorld is probably the correct link... Mvgr, Martin > -Original Message- > From: Tariqs [mailto:[EMAIL PROTECTED]] > Sent: Monday, June 04, 2001 3:44 PM > To: [EMAIL PROTECTED] > Subject: Problem installing Servlets on Tomcat > > > Hi All, > > I am having problems installing servlets on Tomcat. I place the > .class file > in the webapps\ROOT\WEB-INF\classes directory but am not able to run the > servlet using http://localhost:8080/(servletname) > Could someone tell me how to run my HelloWorld servlet > > >
RE: Problem about build mod_jk in AIX environment
You probably need to change the build script, to adjust where the java include files can be found (in the jdk install directory somewhere). I don't have AIX running, so I don't know about that specifcally. Mvgr, Martin > -Original Message- > From: Khananat Tubtimpech [mailto:[EMAIL PROTECTED]] > Sent: Monday, June 04, 2001 3:43 PM > To: Jakarta Tomcat Mailing List > Subject: Problem about build mod_jk in AIX environment > > > Hi all > > I've got the problem about making mod_jk with AIX (4.3.3.0.08) > here is the software environment spec > - JDK: IBM JDK 1.1.8 > - Apache 1.3.20 > - Tomcat 3.2.2 > - JDK Home Path: /usr/jdk_base > I've try to follow the "mod_jk howto" document, which have > examples for only 2 unix platform (solaris, linux) > so I try to modified the build command lind to : > > /tmp/apache/apxs -o mod_jk.so -I../jk > -I/usr/jdk_base/include -I/usr/jdk_base/include/aix -c *.c ../jk/*.c > > I run this conmand in directory < path>>/src/native/apache1.3, and here's the output > > gcc -DAIX=43 -DUSE_PTHREAD_SERIALIZED_ACCEPT -U__STR__ > -DAIX_BIND_PROCESSOR -DUSE_HSREGEX -DUSE_EXPAT > -I../lib/expat-lite -DNO_DL_NEEDED -I/tmp/apache/include -I../jk > -I/usr/jdk_base/include -I/usr/jdk_base/include/aix -c mod_jk.c > gcc -DAIX=43 -DUSE_PTHREAD_SERIALIZED_ACCEPT -U__STR__ > -DAIX_BIND_PROCESSOR -DUSE_HSREGEX -DUSE_EXPAT > -I../lib/expat-lite -DNO_DL_NEEDED -I/tmp/apache/include -I../jk > -I/usr/jdk_base/include -I/usr/jdk_base/include/aix -c > ../jk/jk_ajp12_worker.c > gcc -DAIX=43 -DUSE_PTHREAD_SERIALIZED_ACCEPT -U__STR__ > -DAIX_BIND_PROCESSOR -DUSE_HSREGEX -DUSE_EXPAT > -I../lib/expat-lite -DNO_DL_NEEDED -I/tmp/apache/include -I../jk > -I/usr/jdk_base/include -I/usr/jdk_base/include/aix -c ../jk/jk_ajp13.c > gcc -DAIX=43 -DUSE_PTHREAD_SERIALIZED_ACCEPT -U__STR__ > -DAIX_BIND_PROCESSOR -DUSE_HSREGEX -DUSE_EXPAT > -I../lib/expat-lite -DNO_DL_NEEDED -I/tmp/apache/include -I../jk > -I/usr/jdk_base/include -I/usr/jdk_base/include/aix -c > ../jk/jk_ajp13_worker.c > gcc -DAIX=43 -DUSE_PTHREAD_SERIALIZED_ACCEPT -U__STR__ > -DAIX_BIND_PROCESSOR -DUSE_HSREGEX -DUSE_EXPAT > -I../lib/expat-lite -DNO_DL_NEEDED -I/tmp/apache/include -I../jk > -I/usr/jdk_base/include -I/usr/jdk_base/include/aix -c ../jk/jk_connect.c > gcc -DAIX=43 -DUSE_PTHREAD_SERIALIZED_ACCEPT -U__STR__ > -DAIX_BIND_PROCESSOR -DUSE_HSREGEX -DUSE_EXPAT > -I../lib/expat-lite -DNO_DL_NEEDED -I/tmp/apache/include -I../jk > -I/usr/jdk_base/include -I/usr/jdk_base/include/aix -c > ../jk/jk_jni_worker.c > ../jk/jk_jni_worker.c:764: warning: #warning > --- > ../jk/jk_jni_worker.c:765: warning: #warning NO JAVA 2 HEADERS! > SUPPORT FOR JAVA 2 FEATURES DISABLED > ../jk/jk_jni_worker.c:766: warning: #warning > --- > In file included from /usr/jdk_base/include/jni.h:36, > from ../jk/jk_jni_worker.c:67: > /usr/jdk_base/include/aix/jni_md.h:89: parse error before `*' > /usr/jdk_base/include/aix/jni_md.h:89: warning: initialization > makes pointer from integer without a cast > /usr/jdk_base/include/aix/jni_md.h:89: initializer element is not constant > /usr/jdk_base/include/aix/jni_md.h:89: warning: data definition > has no type or storage class > /usr/jdk_base/include/aix/jni_md.h:89: parse error before `if' > /usr/jdk_base/include/aix/jni_md.h:89: parse error before `1' > /usr/jdk_base/include/aix/jni_md.h:89: warning: data definition > has no type or storage class > /usr/jdk_base/include/aix/jni_md.h:89: parse error before `->' > /usr/jdk_base/include/aix/jni_md.h:89: redefinition of > `_currentSuspendState' > /usr/jdk_base/include/aix/jni_md.h:89: `_currentSuspendState' > previously defined here > /usr/jdk_base/include/aix/jni_md.h:89: warning: data definition > has no type or storage class > /usr/jdk_base/include/aix/jni_md.h:89: parse error before `}' > /usr/jdk_base/include/aix/jni_md.h:127: warning: This file > contains more `}'s than `{'s. > In file included from ../jk/jk_jni_worker.c:67: > /usr/jdk_base/include/jni.h:1858: warning: This file contains > more `}'s than `{'s. > apxs:Break: Command failed with rc=1 > > Please tell me what's happen in this case, and if anyone > who can success to build this mod in AIX please tell me about your > environtment and how. > > > Thanks for advance > > Khananat Tubtimpech >
RE: Tomcat & SSL
http://jakarta.apache.org/tomcat/tomcat-3.3-doc/tomcat-ssl-howto.html Your link is a combination of cvs checkout and the above ;-)) Mvgr, Martin > -Original Message- > From: Abhijat Thakur [mailto:[EMAIL PROTECTED]] > Sent: Monday, June 04, 2001 8:24 PM > To: [EMAIL PROTECTED] > Subject: Tomcat & SSL > > > Hi, > > If anybody can forward me to some documentation where i can get started on > how to configure Tomcat with SSL. The site > > http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/tomcat-ssl > -howto.htm > l > > does not work. Other than that on the Archives i could find specific > questions related to Tomcat & SSL problems but i have not reached > that far. > > > Thanks in advance > > Abhijat Thakur > >
RE: import java files from jsp
Put it in your classpath or tomcat/lib (and the appropiate directory in lib, depending on the version of tomcat you have). If you put it in tomcat/lib , you don't have to put the jar files in you classpath. Have fun, Martin van den Bemt > -Original Message- > From: Liming Xu [mailto:[EMAIL PROTECTED]] > Sent: Monday, June 04, 2001 8:18 PM > To: [EMAIL PROTECTED] > Subject: 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? > thanks... > >
RE: servlet-mapping tag
Look for this in the server.xml and change the /servlet/ part. Don't know if it works though, but trying never killed anyone ;-)) Mvgr, Martin > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Monday, June 04, 2001 9: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 > 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 > >
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
RE: Can pleas someone unsubscribe everyone from janirautiainen.com???
Very confusing ;-)) (shit I get an undeliverable again..) > -Original Message- > From: Swart, James (Jim) ** CTR ** [mailto:[EMAIL PROTECTED]] > Sent: Monday, June 04, 2001 11:13 PM > To: '[EMAIL PROTECTED]' > Subject: 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 > > > > >
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 : - 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. - "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: Changing the Servlets Directory
You have to have the servlet.jar (or servlet classes) in your classpath when you compile.. Mvgr, Martin > -Original Message- > From: Ruben [mailto:[EMAIL PROTECTED]] > Sent: Thursday, September 20, 2001 9:02 PM > To: [EMAIL PROTECTED] > Subject: Re: Changing the Servlets Directory > > > this is the error when i try to compile a servlet using javac -g servlet > > Compiling C:\java\c05\SimpleServlet.java > Command line: "E:\jdk1.3\bin\javac.exe" -g > "C:\java\c05\SimpleServlet.java" > The current directory is: C:\java\c05 > C:\java\c05\SimpleServlet.java:1: package javax.servlet does not exist > import javax.servlet.*; > ^ > C:\java\c05\SimpleServlet.java:2: package javax.servlet.http does > not exist > import javax.servlet.http.*; > ^ > C:\java\c05\SimpleServlet.java:3: cannot resolve symbol > symbol : class HttpServlet > location: class SimpleServlet > public class SimpleServlet extends HttpServlet >^ > C:\java\c05\SimpleServlet.java:8: cannot resolve symbol > symbol : class HttpServletRequest > location: class SimpleServlet > > _ Do You > Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
RE: newbie Servlet
You have to use compiled classes. Mvgr, Martin > -Original Message- > From: Isak Rickyanto [mailto:[EMAIL PROTECTED]] > Sent: Sunday, September 23, 2001 3:21 PM > To: Tomcat User Group > Subject: newbie Servlet > > > Sorry it is newbie.. > > I have myservlet.java > and i place in > tomcat/webapps/myapp/web-inf/classes > and i had modified web.xml in web-inf.. > > I only want to ask... Is Tomcat not automatically compile it? or I must > compile the servlet first? > > >
RE: Why won't tomcat run with jre
See below.. > > I tried running tomcat with the jre and it failed. It will work aqainst a > full install of the jdk. If this is the case then why? That is correct, tomcat needs tools.jar which is included in the jdk (at least for compiling jsp pages). > Does this mean that every machine I install tomcat on needs the > full jdk? For jsp's yes, for normal servlets : not sure.. (always using full jdk..) > If I write a web app and I want to demo it for a customer my setup > must include > the jdk and not the jre but according to the license I am not allowed to > include the jdk with my apps. You have to talk to sun about this I think ;)) > As anyone figure out how to create a setup for Tomcat. just make a zip file of a defualt install, or package in an installer your create. Never did this, since I always build tomcat from source. Mvgr, Martin van den Bemt
RE: multipart form data
pass the request to the o'reilly stuff and request the objects from there and you can also get a "new" request object from there servlets which behaves the way you want.. Mvgr, Martin > -Original Message- > From: Henry [mailto:[EMAIL PROTECTED]] > Sent: Monday, October 22, 2001 11:47 PM > To: [EMAIL PROTECTED] > Subject: multipart form data > > > In a FORM data that uses POST method, I need to upload a file > as well as other string data. > > according to oreily, forms should be ENCTYPE="multipart/form-data", > however, when this thing is added, all the inputs in the form > can not be reached by > request.getParameter(...) > > how can i fix it? > > > below is the html: > > method="POST" action="manager"> > > ... > > below is the servlet: > public void service(HttpServletRequest request,HttpServletResponse > response) > throws ServletException, IOException > { > Enumeration paramNames = request.getParameterNames(); > while(paramNames.hasMoreElements()) { > String paramName = (String)paramNames.nextElement(); > >
RE: Looking for informations Apache/EAPI
It is pretty well explained in the building documents of apache. mvgr, Martin > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Jean-Luc BEAUDET > Sent: Wednesday, October 24, 2001 2:40 PM > To: Tomcat USER > Subject: Looking for informations Apache/EAPI > > > Hi All, > > I looking for informations to compile Apache so that it includes support > for EAPI. > > Any help welcome. > > Regards > > Jean-Luc ;O< > > > >
RE: Why I can't connect - part 2
First start tomcat, wait a bit, then start apache. try the url /webapp-info/ to see if the DEPLOYED is set to true in both cases. If you start it the other way around or start apache to soon, only the /webapp-info/ is set the true and the rest is set to false. Mvgr, martin > -Original Message- > From: Kemp Randy-W18971 [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, October 24, 2001 3:51 PM > To: '[EMAIL PROTECTED]' > Subject: Why I can't connect - part 2 > > > Can someone explain why I can't connect in Windows 2000 with > Tomcat 4.01 and > Apache 1.3.22? > 1. I am using all binaries, and I put mod_webapp.so and libapp.dll in > Apache directory Modules. > 2. I put this entry in Tomcat server.xml after the EJB entry > reloadable="true" /> > 3. I put this in Apache httpd.conf at the end > >ServerName localhost >WebAppConnection conn warp localhost:8080 >WebAppDeploy examples conn /examples/ >WebAppDeploy onjava conn /onjava/ >WebAppInfo /webapp-info > > Added following after commented out loadmods > LoadModule webapp_module modules/mod_webapp.so > AddModule mod_webapp.c > 4. I put my war file in the tomcat webapps directory. > 5. I can bring up localhost and localhost:8080 OK. > 6. If I type localhost/onjava/, the following entry is in the > Apache error > logs: (both Apache and Tomcat are started) > > Fri Oct 19 12:41:00 2001] [error] [client 127.0.0.1] File does not exist: > c:/program files/apache group/apache/htdocs/onjava > [Fri Oct 19 12:41:44 2001] [error] Connection "conn" cannot connect > [Fri Oct 19 12:41:44 2001] [error] Cannot open connection "conn" > [Fri Oct 19 15:21:00 2001] [error] Web-application not yet deployed > [Fri Oct 19 15:22:08 2001] [error] Web-application not yet deployed > [Fri Oct 19 15:22:21 2001] [error] Web-application not yet deployed > [Fri Oct 19 15:24:42 2001] [error] Cannot deploy application examples > [Fri Oct 19 15:24:42 2001] [error] Cannot deploy application examples > > What could I be missing? > > >
RE: reload servlet automatically
How about upgrading to 3.3, reloading is working there most of the time (just for servlets, not for supporting classes btw). In short : 3.3 is a big improvement (also in other ways) to the 3.2 versions (at least that is my opinion). Mvgr, Martin > -Original Message- > From: Markus Kramer [mailto:[EMAIL PROTECTED]] > Sent: Sunday, October 28, 2001 8:58 AM > To: [EMAIL PROTECTED] > Subject: reload servlet automatically > > > hi, > > I've a problem reloading my servlets without restarting tomcat. >docBase="/usr/local/httpd/htdocs/myapp" > debug="1" > reloadable="true" > trusted="true" > > > If i recompile my servlet, tomcat doesn't use the new .class-file. > > I have tomcat 3.2.3 running and cannot upgrade to tomcat 4. > > thanks, > Markus > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
RE: admin pages.
You have to manually add a user to the tomcat-users.xml file, which has the admin role. Mvgr, Martin > -Original Message- > From: McDowell, Mark [mailto:[EMAIL PROTECTED]] > Sent: Thursday, November 01, 2001 5:14 PM > To: 'Tomcat Users List' > Subject: RE: Welcome to the Tomcat 4.0 F.A.Q. on-line forum. > > > Everyone, > > I have a simple question - I've looked in the documentation and > can't seem > to find it. I'm in the process of trying to use JBoss and Tomcat, and am > poking around with Tomcat and wanted to use the admin pages. Except... > I have NO IDEA what the user name and password is... Any help??? > > mark > > -Original Message- > From: Henrik Schultz [mailto:[EMAIL PROTECTED]] > Sent: Thursday, November 01, 2001 10:08 AM > To: [EMAIL PROTECTED] > Subject: Re: Welcome to the Tomcat 4.0 F.A.Q. on-line forum. > > > What an excellent timing! I just subscribed to the mailing list today, and > quickly discovered that the traffic volume is quite high. > Wondered if there > was a discussion forum instead - and voila! Your mail popped up!!! Thanks > for a great initiative! > > Cheers - Henrik > > -- > - > This message has been posted through the Jakarta Tomcat 4.0 F.A.Q. > on line forum, and can be seen at: > <http://nagoya.apache.org:8080/jive/thread.jsp?forum=1&thread=3> > For more informations about the on-line Jakarta forums, please go to: > <http://nagoya.apache.org:8080/jive/> > -- > - > > -- > 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: admin pages.
restart tomcat.. ;)) it does not reload the file.. and ehh.. for tomcat 4 it is manager and for tomcat 3 it is tomcat_admin or tomcat (couldn't get that quite clear, never used it..) Mvgr, Martin > -Original Message- > From: McDowell, Mark [mailto:[EMAIL PROTECTED]] > Sent: Thursday, November 01, 2001 5:35 PM > To: 'Tomcat Users List' > Subject: RE: admin pages. > > > I said thanks too soon... :( I tried adding the "admin" role to a user > in tomcat-users.xml file, but it seems to make no difference... Is there > a list of predefined "roles" somewhere? > > -Original Message- > From: Martin van den Bemt [mailto:[EMAIL PROTECTED]] > Sent: Thursday, November 01, 2001 10:18 AM > To: Tomcat Users List > Subject: RE: admin pages. > > > You have to manually add a user to the tomcat-users.xml file, > which has the > admin role. > > Mvgr, > Martin > > > -Original Message- > > From: McDowell, Mark [mailto:[EMAIL PROTECTED]] > > Sent: Thursday, November 01, 2001 5:14 PM > > To: 'Tomcat Users List' > > Subject: RE: Welcome to the Tomcat 4.0 F.A.Q. on-line forum. > > > > > > Everyone, > > > > I have a simple question - I've looked in the documentation and > > can't seem > > to find it. I'm in the process of trying to use JBoss and > Tomcat, and am > > poking around with Tomcat and wanted to use the admin pages. Except... > > I have NO IDEA what the user name and password is... Any help??? > > > > mark > > > > -Original Message- > > From: Henrik Schultz [mailto:[EMAIL PROTECTED]] > > Sent: Thursday, November 01, 2001 10:08 AM > > To: [EMAIL PROTECTED] > > Subject: Re: Welcome to the Tomcat 4.0 F.A.Q. on-line forum. > > > > > > What an excellent timing! I just subscribed to the mailing list > today, and > > quickly discovered that the traffic volume is quite high. > > Wondered if there > > was a discussion forum instead - and voila! Your mail popped > up!!! Thanks > > for a great initiative! > > > > Cheers - Henrik > > > > -- > > - > > This message has been posted through the Jakarta Tomcat 4.0 F.A.Q. > > on line forum, and can be seen at: > > <http://nagoya.apache.org:8080/jive/thread.jsp?forum=1&thread=3> > > For more informations about the on-line Jakarta forums, please go to: > > <http://nagoya.apache.org:8080/jive/> > > -- > > - > > > > -- > > 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]> > > -- > 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: Tomcat for Large Team Size
We are running tomcat 3.2 for about 20 developers. The reloading is very bad and remotedebugging is horrible (depending on your development environment btw). But besides the "downsides" it is working perfectly (we are running unix btw..) Mvgr, Martin > -Original Message- > From: Denis Balazuc [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, November 13, 2001 3:48 PM > To: Tomcat Users List > Subject: Re: Tomcat for Large Team Size > > > We use exactly the same environment. > > However, we found this approach not very satisfactory, as running > Tomcat AND > a Java IDE and other dev tools on the same machine eats up > resources and our > weak PCs sometimes slow down to a nearly-unusable state > > I am thinking at moving to a centralized Tomcat server with multiple > instances but, we're using Tomcat 3.2 and this schema is best with Tomcat > 4... > > Regards > Denis > > > - Original Message - > From: "Jim Urban" <[EMAIL PROTECTED]> > To: "Tomcat Users List" <[EMAIL PROTECTED]> > Sent: Tuesday, November 13, 2001 08:46 AM > Subject: RE: Tomcat for Large Team Size > > > > I manage a team 7 server side Java developers. Each member > runs a copy of > > Tomcat on their PC. Each PC is configured the same. We have a standard > > directory structure and use Ant to do our builds. We use SourceSafe for > > source management. Our Ant build.xml uses the VSSGET option of Ant to > fetch > > the latest version of each file prior to compiling (the VSSGET will not > over > > write a write able file). We also use VSSGET to fetch all the > supporting > > files too (images, HTML, XSL, etc). All files, including the build.xml > are > > maintained in VSS. We have a team server which also runs Tomcat. Each > > night at midnight the build is run on the server and Tomcat is > restarted. > > We've been doing this for almost two years with no problems. > > > > -- > 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: REPOST: NEED HELP URGENT:: internet explorer nullifies session on open new window
It seems that ie 6 isn't accepting cookies by default (collegue of mine is also using ie 6 and had the same problem, even in 1 window). He set a certain option and everything was working again. Can you confirm that that is the default, else everyone must start using url rewriting to keep ie6 users happy Mvgr, Martin > -Original Message- > From: Jim Urban [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, November 13, 2001 4:21 PM > To: Tomcat Users List > Subject: RE: REPOST: NEED HELP URGENT:: internet explorer nullifies > session on open new window > > > Our application does the same thing (openning child browser windows and > closing them) and we have no problems with IE 5.5. We have not tried I.E. > 6.0 yet, so I can't comment on that. We are running Tomcat 4.0 on Win NT > and 2K. > > Jim > > -Original Message- > From: Amit Kelkar [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, November 13, 2001 9:01 AM > To: Tomcat Users List > Subject: REPOST: NEED HELP URGENT:: internet explorer nullifies session > on open new window > > > > > -Original Message- > From: Amit Kelkar [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, 13 November 2001 6:41 PM > To: Tomcat Users List > Subject: internet explorer nullifies session on open new window > > The application we are coding requires a new window to be opened. This new > window may just contain a JavaScript calendar or a JSP page > (dispatched by a > servlet). > > We have been using Internet Explorer 5 till recently to run the > application > and this has been fine. But we recently upgraded to I.E. 5.5 and 6.0. In > both of the new versions, when a new window is opened and then closed, the > session in the original window gets nullified. > > For example, there are places where I need to see a calendar, so > I open this > calendar in a new window, I use the calendar, then I close the calendar > window. I then press a button (in the main window) to go to > another page in > my application, where all the session values are now displayed as null. > Subsequent system error statements show that the session is indeed null. > > I am not sure this is a tomcat problem or a IE problem (probably a IE > problem), but was wondering if anybody has experienced anything > similar and > if they have solved the problem... > > Note: I am using tomcat 4.01 > > Thanks much in advance, > > > Amit Kelkar > > > -- > 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: REPOST: NEED HELP URGENT:: internet explorer nullifies session on open new window
I don't know what p3p is ... Enlighten me ;)) Mvgr, Martin > -Original Message- > From: David Hamilton [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, November 13, 2001 5:45 PM > To: Tomcat Users List > Subject: Re: REPOST: NEED HELP URGENT:: internet explorer nullifies > session on open new window > > > Would that be a P3P issue? > > If so, you need to define P3P policy descriptors on your site... > > david > > > - Original Message - > From: "Martin van den Bemt" <[EMAIL PROTECTED]> > To: "Tomcat Users List" <[EMAIL PROTECTED]> > Sent: Tuesday, November 13, 2001 3:54 PM > Subject: RE: REPOST: NEED HELP URGENT:: internet explorer > nullifies session > on open new window > > > > It seems that ie 6 isn't accepting cookies by default (collegue > of mine is > > also using ie 6 and had the same problem, even in 1 window). He set a > > certain option and everything was working again. Can you confirm that > that > > is the default, else everyone must start using url rewriting to keep ie6 > > users happy > > > > Mvgr, > > Martin > > > > > -Original Message- > > > From: Jim Urban [mailto:[EMAIL PROTECTED]] > > > Sent: Tuesday, November 13, 2001 4:21 PM > > > To: Tomcat Users List > > > Subject: RE: REPOST: NEED HELP URGENT:: internet explorer nullifies > > > session on open new window > > > > > > > > > Our application does the same thing (openning child browser > windows and > > > closing them) and we have no problems with IE 5.5. We have not tried > I.E. > > > 6.0 yet, so I can't comment on that. We are running Tomcat 4.0 on Win > NT > > > and 2K. > > > > > > Jim > > > > > > -Original Message- > > > From: Amit Kelkar [mailto:[EMAIL PROTECTED]] > > > Sent: Tuesday, November 13, 2001 9:01 AM > > > To: Tomcat Users List > > > Subject: REPOST: NEED HELP URGENT:: internet explorer > nullifies session > > > on open new window > > > > > > > > > > > > > > > -Original Message- > > > From: Amit Kelkar [mailto:[EMAIL PROTECTED]] > > > Sent: Tuesday, 13 November 2001 6:41 PM > > > To: Tomcat Users List > > > Subject: internet explorer nullifies session on open new window > > > > > > The application we are coding requires a new window to be opened. This > new > > > window may just contain a JavaScript calendar or a JSP page > > > (dispatched by a > > > servlet). > > > > > > We have been using Internet Explorer 5 till recently to run the > > > application > > > and this has been fine. But we recently upgraded to I.E. 5.5 > and 6.0. In > > > both of the new versions, when a new window is opened and then closed, > the > > > session in the original window gets nullified. > > > > > > For example, there are places where I need to see a calendar, so > > > I open this > > > calendar in a new window, I use the calendar, then I close > the calendar > > > window. I then press a button (in the main window) to go to > > > another page in > > > my application, where all the session values are now > displayed as null. > > > Subsequent system error statements show that the session is > indeed null. > > > > > > I am not sure this is a tomcat problem or a IE problem (probably a IE > > > problem), but was wondering if anybody has experienced anything > > > similar and > > > if they have solved the problem... > > > > > > Note: I am using tomcat 4.01 > > > > > > Thanks much in advance, > > > > > > > > > Amit Kelkar > > > > > > > > > -- > > > 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]> > > > > > > > > > > > > > > > > > -- > 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: Quick clarification
You still have to do some work to actually have to 2 talking to eachother eg install mod_webapp, or ajp module for apache, update the config files for apache). It just states that tomcat is ready and waiting for apache (which is I presume the default in the installation of tomcat). There is some documentation regarding this in the installation and is well discussed here on the mailinglists. Mvgr, Martin > -Original Message- > From: Paul Pattison [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, November 13, 2001 8:35 AM > To: [EMAIL PROTECTED] > Subject: Quick clarification > > > I'm a little confused and was hoping someone could clear something up for > me. I've recently downloaded Tomcat 4.0.1. I've been using it > non-stop for > the last couple weeks and I love it. > > My confusion lies in the fact that I thought that Tomcat was > built on top of > the Apache web server and that when I did the Tomcat 4.0.1 install (which > was extremely easy), that I had also installed Apache as my web > server. But > from reading recent posts to this mailing list, it sounds as though I am > just running Tomcat's web server? Is this true? Should I do a separate > Apache install? > > If it helps, below is what is output when I start up Tomcat: > > Starting service Tomcat-Standalone > Apache Tomcat/4.0.1 > Starting service Tomcat-Apache > Apache Tomcat/4.0.1 > > Thanks, > > Paul > > > -- > 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: REPOST: NEED HELP URGENT:: internet explorer nullifies session on open new window
Thanx for the valuable info! Mvgr, Martin > -Original Message- > From: David Hamilton [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, November 13, 2001 6:09 PM > To: Tomcat Users List > Subject: Re: REPOST: NEED HELP URGENT:: internet explorer nullifies > session on open new window > > > P3P = Platform for Privacy Preferences > W3C spec for what sites do with your personal info. > > IIRC, default option for IE6 will not accept cookies (other that session > scope ones) if a site does not have a P3P descriptor on your site. > Obviously this can be changed, but since most IE users never get round to > changing the default preferences... > > More info on setting your site to be P3P compliant: > http://www.w3.org/P3P/usep3p.html > > HTH > david > > - Original Message - > From: "Martin van den Bemt" <[EMAIL PROTECTED]> > To: "Tomcat Users List" <[EMAIL PROTECTED]> > Sent: Tuesday, November 13, 2001 4:42 PM > Subject: RE: REPOST: NEED HELP URGENT:: internet explorer > nullifies session > on open new window > > > > I don't know what p3p is ... Enlighten me ;)) > > > > > > Mvgr, > > Martin > > > > > -Original Message- > > > From: David Hamilton [mailto:[EMAIL PROTECTED]] > > > Sent: Tuesday, November 13, 2001 5:45 PM > > > To: Tomcat Users List > > > Subject: Re: REPOST: NEED HELP URGENT:: internet explorer nullifies > > > session on open new window > > > > > > > > > Would that be a P3P issue? > > > > > > If so, you need to define P3P policy descriptors on your site... > > > > > > david > > > > > > > > > - Original Message - > > > From: "Martin van den Bemt" <[EMAIL PROTECTED]> > > > To: "Tomcat Users List" <[EMAIL PROTECTED]> > > > Sent: Tuesday, November 13, 2001 3:54 PM > > > Subject: RE: REPOST: NEED HELP URGENT:: internet explorer > > > nullifies session > > > on open new window > > > > > > > > > > It seems that ie 6 isn't accepting cookies by default (collegue > > > of mine is > > > > also using ie 6 and had the same problem, even in 1 > window). He set a > > > > certain option and everything was working again. Can you > confirm that > > > that > > > > is the default, else everyone must start using url rewriting to keep > ie6 > > > > users happy > > > > > > > > Mvgr, > > > > Martin > > > > > > > > > -Original Message- > > > > > From: Jim Urban [mailto:[EMAIL PROTECTED]] > > > > > Sent: Tuesday, November 13, 2001 4:21 PM > > > > > To: Tomcat Users List > > > > > Subject: RE: REPOST: NEED HELP URGENT:: internet explorer > nullifies > > > > > session on open new window > > > > > > > > > > > > > > > Our application does the same thing (openning child browser > > > windows and > > > > > closing them) and we have no problems with IE 5.5. We have not > tried > > > I.E. > > > > > 6.0 yet, so I can't comment on that. We are running Tomcat 4.0 on > Win > > > NT > > > > > and 2K. > > > > > > > > > > Jim > > > > > > > > > > -Original Message- > > > > > From: Amit Kelkar [mailto:[EMAIL PROTECTED]] > > > > > Sent: Tuesday, November 13, 2001 9:01 AM > > > > > To: Tomcat Users List > > > > > Subject: REPOST: NEED HELP URGENT:: internet explorer > > > nullifies session > > > > > on open new window > > > > > > > > > > > > > > > > > > > > > > > > > -Original Message- > > > > > From: Amit Kelkar [mailto:[EMAIL PROTECTED]] > > > > > Sent: Tuesday, 13 November 2001 6:41 PM > > > > > To: Tomcat Users List > > > > > Subject: internet explorer nullifies session on open new window > > > > > > > > > > The application we are coding requires a new window to be opened. > This > > > new > > > > > window may just contain a JavaScript calendar or a JSP page > > > > > (dispatched by a > > > > > servlet). > > > > > > > > > > We have been using Internet Explorer 5 till recently to run the > > > > > application &
RE: cryptography - slow starting????
It think that tomcat is slow on first use. It's a ranodimizer of some sort, that get's initialized when first calling a servlet. Mvgr, Martin > -Original Message- > From: Gerry Duhig [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, November 13, 2001 7:03 PM > To: [EMAIL PROTECTED] > Subject: cryptography - slow starting > > > Hi! > > I have successfully built a servlet that uses JCE to encrypt data > and deployed it under JBoss Tomcat 2.4.1-3.2.2. > > The very first access is VERY slow as the cryptography classes do > some sort of initialisation. I don't know what. > > Subsequent actions seem very quick. > > Is this to be expected? Can I speed it up? Can I get this > initialisation to take place at start-up before a user accesses > the servlet? > > Gerry > > -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>
RE: [servlets] Error when wrapping a response object
Close the writer you have opened to write to the html stream should (if I'm not mistaking) make this work. Mvgr, Martin > -Original Message- > From: Jay Wright [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, November 13, 2001 8:09 PM > To: '[EMAIL PROTECTED]' > Subject: FW: [servlets] Error when wrapping a response object > > > > Has anyone using Tomcat seen a problem like this? In short, I am > wrapping a > response object so I can write the HTML to a file. Then, I would like to > use the ReqeustDispatcher to forward the response or at the very least use > the response objects sendRedirect to go to the next page. > > With Resin, this works fine. In Tomcat, I get an error which > wont allow me > to do either becuase the response object is "committed." The > attached email > explains further. > > Any one seen this before? > > Jay > > -Original Message- > From: Jay Wright [mailto:[EMAIL PROTECTED]] > Sent: Friday, November 02, 2001 10:36 AM > To: Servlets > Subject: [servlets] Error when wrapping a response object > > > > Hi all, > > I am getting a servlet error which has something to do with a wrapped > response object. > > With Resin, I have created a servlet that wraps a response object for the > purpose of writing the response's html to a file. This complete > successfully, then the RequestDispatcher forwards the request to a jsp, > which in effect displays a thank you page. It works wonderfully. > > When I deploy the same application to Tomcat, I get the following error: > > java.lang.IllegalStateException: Cannot forward after response has been > committed > at > org.apache.catalina.core.ApplicationDispatcher.doForward(Unknown > Source) > at org.apache.catalina.core.ApplicationDispatcher.forward(Unknown > Source) > at atonce.mas.web.MainServlet.doGet(MainServlet.java:88) > > Apparently the two servlet containers handle this differently. As curious > as this is, I'm more concerned with getting the tomcat version > working. Is > there anything I can do to "uncommit" the response? I assume > not. I could > use a sendRedirect, but would prefer to stick with the RequestDispatchers > forward method to be consistent and standard with my servlet model. > > Any ideas? > > Thanks, > Jay > > --- > SIGS Conference for Java Development > Targeted, focused classes, expertise level classes > taught by Java gurus, rigorous tutorials, and > exhibit floor makes SIGS Conference for Java > Development a learning experience unlike any > other. Join over 10,000 developers and programmers > from across the U.S. and around the world who > have benefited from attending SIGS/101 Conferences. > http://www.javadevcon.com > --- > You are currently subscribed to servlets as: [EMAIL PROTECTED] > To unsubscribe send a blank email to [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: cannot execute binary file
You don't have sufficient rights on the file It probabably only has read access , so do a chmod 555 or something like that (don't know your system, so you have to figure that out..) Mvgr, Martin > -Original Message- > From: Noble Long [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, November 13, 2001 9:42 PM > To: [EMAIL PROTECTED] > Subject: cannot execute binary file > > > I am using the Oracle jdbc thin client in my application. I added > it to my classpath /usr/local/classes12.zip , but when I start > Tomcat I am getting - > > bin/tomcat.sh: /usr/local/classes12.zip: cannot execute binary file > > I tried other jar, files, etc. and everyone I transefered either > in binary mode or ascii via FTP, XMODEM or ZMODEM gives me the > same message. > > Is my file being corrupted between windows and linux. I am > working with a remote telnet session so I can't exactly download > from Oracle's website to that machine. Funny thing is ... I have > the same Red Hat 6.2 environment here except I'm using tomcat > 3.2.3 instead of 3.2.1 (would it make a difference?) > > Noble > -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>
RE: UnknownHostException thrown from SmtpClient
Use JavaMail instead.. The SmtpClient (at least if that is the one in com.sun or sun.) is as far as I know not even supported.. Never had any problems with that, unless the jvm couldn't find a host in the first place, it tends to never find it again. Mvgr, Martin > -Original Message- > From: felix [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, November 13, 2001 10:14 PM > To: Tomcat Users List > Subject: UnknownHostException thrown from SmtpClient > > > > > Migrating some old code that uses the sun SmtpClient to a new server. > > the SmtpClient throws an UnknownHostException, I'm using the i.p. > address of > the mail server, which is actually on the same box. > > i tried 127.0.0.1 and localhost and the named host (but not yet dns > transferred). > > all the same exception. the mailserver (exim) is not even being > contacted. > > i'm thinking its tomcat or jvm not knowing a dns host yet ? > > clues anyone ? > > I found one person relating the same thing: > > they moved stuff from one tomcat(nt) to tomcat(linux) using the same smtp > server and it no longer worked. couldn't find the server. > > > 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: UnknownHostException thrown from SmtpClient
I like the idea of a queue which holds the mails and tries until it works (didn't have time to do that myself, just catching everything and not throwing any exceptions, just logging to a mail log file if it doesn't succeed). So it depends on your time you can invest in it I guess.. I read somewhere that tomcat 4 has build in support for javamail and offers services to send mail via javamail. I think searching on javamail on the online backups of mailinglist backup might turn up some info. (eg http://marc.theaimsgroup.com/?l=tomcat-user&r=1&w=2) Have fun remodeling ;)) Mvgr, Martin > -Original Message- > From: felix [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, November 13, 2001 10:43 PM > To: Tomcat Users List > Subject: Re: UnknownHostException thrown from SmtpClient > > > > Thanks, I think that's what needs to be done anyway. > > on a related topic, > I've been trying to figure out if JavaMail threads / forks when it sends. > > Or if its worth writing an Emailer (implements Runnable) that would just > take care of its business and let tomcat go on its merrry way. > > the user doesn't need to know what we are emailing or if it succeeds. > > anybody have any thoughts on that ? extra thread overhead ? waste of my > time ? > > > > From: "Martin van den Bemt" <[EMAIL PROTECTED]> > > Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]> > > Date: Tue, 13 Nov 2001 22:21:23 +0100 > > To: "Tomcat Users List" <[EMAIL PROTECTED]> > > Subject: RE: UnknownHostException thrown from SmtpClient > > > > Use JavaMail instead.. The SmtpClient (at least if that is the one in > > com.sun or sun.) is as far as I know not even supported.. > > Never had any problems with that, unless the jvm couldn't find > a host in the > > first place, it tends to never find it again. > > > > Mvgr, > > Martin > > > -- > 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: UnknownHostException thrown from SmtpClient
See below.. > On Tue, 13 Nov 2001, Martin van den Bemt wrote: > > > Date: Tue, 13 Nov 2001 22:49:12 +0100 > > From: Martin van den Bemt <[EMAIL PROTECTED]> > > Reply-To: Tomcat Users List <[EMAIL PROTECTED]> > > To: Tomcat Users List <[EMAIL PROTECTED]> > > Subject: RE: UnknownHostException thrown from SmtpClient > > > > I like the idea of a queue which holds the mails and tries > until it works > > (didn't have time to do that myself, just catching everything and not > > throwing any exceptions, just logging to a mail log file if it doesn't > > succeed). > > That's exactly what your local SMTP server (sendmail or whatever) does for > you. Why reinvent the wheel? > Sendmail is good at bouncing mails, and we need to know about that. Since the return address is always someone external to our company (and don't even know about) we need to handle bounces and retry again (sending it directly btw). If after some time the mail still bounces, we need to be informed and take appropiate action (which sendmail or qmail cannot handle, or I don't like them to handle that..). Mvgr, Martin -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>
RE: Tomcat 3.2.3 and MS Access.
As I remember from way back : datasources can be created a number of ways : yours ir probably a user datasource and you need a system datasource (which is as it says, known system wide). If you start tomcat.bat it will run as you, if it starts as a service, it will start as whatever you defined, but I guess it is not you ;)) You can get more feedback on this on a MS mailinglist.. Mvgr, Martin > -Original Message- > From: Slava [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, November 13, 2001 11:37 PM > To: [EMAIL PROTECTED] > Subject: Tomcat 3.2.3 and MS Access. > > > Hello, > I'm accessing data base from login page. > When I starting Tomcat from startup.but everything working fine. > If I starting Tomcat from the Services I'm getting: > > See com.borland.dx.dataset.DataSetException error code: BASE+66 > com.borland.dx.dataset.DataSetException: [Microsoft][ODBC Driver > Manager] Data source name not > found and no default driver specified > at com.borland.dx.dataset.DataSetException.a(Unknown Source) > at > com.borland.dx.dataset.DataSetException.throwException(Unknown Source) > at > com.borland.dx.dataset.DataSetException.SQLException(Unknown Source) > at > com.borland.dx.sql.dataset.Database.openConnection(Unknown Source) > at > com.borland.dx.sql.dataset.Database.createPreparedStatement(Unknow > n Source) > at com.borland.dx.sql.dataset.o.a(Unknown Source) > at com.borland.dx.sql.dataset.o.d(Unknown Source) > at com.borland.dx.sql.dataset.o.e(Unknown Source) > at com.borland.dx.sql.dataset.QueryProvider.h(Unknown Source) > at > com.borland.dx.sql.dataset.JdbcProvider.provideData(Unknown Source) > at com.borland.dx.dataset.StorageDataSet.a(Unknown Source) > at com.borland.dx.dataset.DataSet.a(Unknown Source) > at com.borland.dx.dataset.DataSet.open(Unknown Source) > at payroll.HeaderServlet.doPost(HeaderServlet.java:90) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > at > org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405) > at org.apache.tomcat.core.Handler.service(Handler.java:287) > at > org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) > at > org.apache.tomcat.core.ContextManager.internalService(ContextManag > er.java:812) > at > org.apache.tomcat.core.ContextManager.service(ContextManager.java:758) > at > org.apache.tomcat.service.connector.Ajp12ConnectionHandler.process > Connection(Ajp12ConnectionHandler.java:166) > at > org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) > at > org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501) > at java.lang.Thread.run(Thread.java:484) > > But Data Source Name is correct. > Maybe I miss some setting? > Can somebody help me? > Thanks. > > __ > Do You Yahoo!? > Find the one for you at Yahoo! Personals > http://personals.yahoo.com > > -- > 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: Where to put .properties so web app finds it
We use our own configuration structure per server / host / virtual host. Se maybe the home of that could be used for that. (more speciic : there are only classes in our webapp, the rest (= about a 3000 files) our oustside the webapp.. (excluding transactions). Mvgr, Martin > -Original Message- > From: MacDonald, Todd [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, November 14, 2001 12:00 AM > To: Tomcat-User (E-mail) > Subject: Where to put .properties so web app finds it > > > I've got a .properties file for settings in the web app that might be > configured differently depending on which server the .war might > be dropped. > > It obviously doesn't belong in the .war itself. Where is the recommended > place to put such configuration files in Tomcat 4 so that the app > will find > it? > > I'm trying hard not to modify the default configuration of T4 much until I > know more about it. > > -T > > -- > 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: Tomcat 3.2.3 and MS Access.
Best to check msn or technet on microsoft.com for this.. It seems like a plain odbc error (too bad no errorcode is supplied), so something is misconfigured for the user who runs tomcat as a service. If you search on those things you probably end up with an answer.. Mvgr, Martin > -Original Message- > From: Slava [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, November 14, 2001 12:04 AM > To: Tomcat Users List > Subject: RE: Tomcat 3.2.3 and MS Access. > > > Thanks for reply. > I change datasource from user to system but it doesn't work anyway. > Same error message. > Maybe something else? > Any help welcome. > Thanks. > > > --- Martin van den Bemt <[EMAIL PROTECTED]> wrote: > > As I remember from way back : datasources can be created a > number of ways : > > yours ir probably a user datasource and you need a system > datasource (which > > is as it says, known system wide). If you start tomcat.bat it > will run as > > you, if it starts as a service, it will start as whatever you > defined, but I > > guess it is not you ;)) > > You can get more feedback on this on a MS mailinglist.. > > > > Mvgr, > > Martin > > > > > -Original Message- > > > From: Slava [mailto:[EMAIL PROTECTED]] > > > Sent: Tuesday, November 13, 2001 11:37 PM > > > To: [EMAIL PROTECTED] > > > Subject: Tomcat 3.2.3 and MS Access. > > > > > > > > > Hello, > > > I'm accessing data base from login page. > > > When I starting Tomcat from startup.but everything working fine. > > > If I starting Tomcat from the Services I'm getting: > > > > > > See com.borland.dx.dataset.DataSetException error code: BASE+66 > > > com.borland.dx.dataset.DataSetException: [Microsoft][ODBC Driver > > > Manager] Data source name not > > > found and no default driver specified > > > at com.borland.dx.dataset.DataSetException.a(Unknown Source) > > > at > > > com.borland.dx.dataset.DataSetException.throwException(Unknown Source) > > > at > > > com.borland.dx.dataset.DataSetException.SQLException(Unknown Source) > > > at > > > com.borland.dx.sql.dataset.Database.openConnection(Unknown Source) > > > at > > > com.borland.dx.sql.dataset.Database.createPreparedStatement(Unknow > > > n Source) > > > at com.borland.dx.sql.dataset.o.a(Unknown Source) > > > at com.borland.dx.sql.dataset.o.d(Unknown Source) > > > at com.borland.dx.sql.dataset.o.e(Unknown Source) > > > at com.borland.dx.sql.dataset.QueryProvider.h(Unknown Source) > > > at > > > com.borland.dx.sql.dataset.JdbcProvider.provideData(Unknown Source) > > > at com.borland.dx.dataset.StorageDataSet.a(Unknown Source) > > > at com.borland.dx.dataset.DataSet.a(Unknown Source) > > > at com.borland.dx.dataset.DataSet.open(Unknown Source) > > > at payroll.HeaderServlet.doPost(HeaderServlet.java:90) > > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) > > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > > > at > > > > org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405) > > > at org.apache.tomcat.core.Handler.service(Handler.java:287) > > > at > > > org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) > > > at > > > org.apache.tomcat.core.ContextManager.internalService(ContextManag > > > er.java:812) > > > at > > > org.apache.tomcat.core.ContextManager.service(ContextManager.java:758) > > > at > > > org.apache.tomcat.service.connector.Ajp12ConnectionHandler.process > > > Connection(Ajp12ConnectionHandler.java:166) > > > at > > > > org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) > > > at > > > > org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501) > > > at java.lang.Thread.run(Thread.java:484) > > > > > > But Data Source Name is correct. > > > Maybe I miss some setting? > > > Can somebody help me? > > > Thanks. > > > > > > __ > > > Do You Yahoo!? > > > Find the one for you at Yahoo! Personals > > > http://personals.yahoo.com > > > > > > -- > > > 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]> > > > > > __ > Do You Yahoo!? > Find the one for you at Yahoo! Personals > http://personals.yahoo.com > > -- > 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: Got him...
nice job ;)) Why don't you put the subcriber email address in by default (in the text footer of the mail or something).. Saves you working late ;)) Mvgr, Martin > -Original Message- > From: Pier Fumagalli [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, November 14, 2001 1:43 AM > To: Tomcat Users List > Subject: Got him... > > > Since most of you complained, just to let you know that I found him... > <[EMAIL PROTECTED]> > > Pier :) > > > -- > 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: Wrap an HttpServletRequest
Pas the request object to that servlet eg BlahServlet servlet = new BlahServlet(); servlet.execute(req, resp); Mvgr, Martin > -Original Message- > From: Diego del Río [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, November 14, 2001 2:02 PM > To: [EMAIL PROTECTED] > Subject: Wrap an HttpServletRequest > > > Is there any way to wrap an HttpServletRequest in Tomcat 3.2.x and then > forward the wrapped request to anoher servlet? > We need a 'decorated request' with added functionality, more precisely, we > need to add 'extra-parameters' to that request and then forward it to > another servlet that process both the original and the added parameters. > Thanks, > diego > > -- > 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: Tomcat 3.3 Startup
Why are you using a classpath? Tomcat handles that for you completely. You shouldn't have any problems if the jar is added to the webapp lib.. (btw I believ you have to rename the zip to jar files so tomcat can read them). Mvgr, Martin > -Original Message- > From: Douglas Brendle [mailto:[EMAIL PROTECTED]] > Sent: Friday, November 16, 2001 5:26 PM > To: [EMAIL PROTECTED] > Subject: Tomcat 3.3 Startup > > > I've been working with and using Tomcat3.3 for two weeks and it > has been running fine. > Yesterday, I added a new .jar file to my classpath and all of a > sudden Tomcat stopped > running. I started Tomcat with the run attribute so it would > start in the same window > and this is the stack trace I receieved: > > EmbededTomcat: exception initializing ContextManager > java.lang.NoClassDefFoundError: > javax/xml/parsers/SAXParserFactory > at java.lang.ClassLoader.defineClass0(Native Method) > at java.lang.ClassLoader.defineClass(ClassLoader.java:486) > > And as you can see, the crimson.jar file is in my classpath. > > classpath=c:\Oracle\Ora81\orb\classes\yoj.jar;c:\Oracle\Ora81\orb\ > classes\share.zip; > d:\tomcat3.3\jakarta\lib\container\xalan.jar;d:\tomcat3.3\jakarta\ > lib\common\tomcat_core.jar; > d:\tomcat3.3\jakarta\lib\common\servlet.jar;d:\tomcat3.3\jakarta\l > ib\common\jasper-runtime.jar; > d:\tomcat3.3\jakarta\lib\container\jasper.jar;d:\tomcat3.3\jakarta > \webapps\examples\web-inf\classes; > d:\tomcat3.3\jakarta\lib\common\cos.jar;d:\tomcat3.3\jakarta\lib\c > ontainer\crimson.jar > > Anyone know what is going on? > > > -- > 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: tomcat 3.3 from RPM w/JDK 1.3.1 is missing Vector
try importing java.util.Vector in your jsp page? Mvgr, Martin > -Original Message- > From: Bang, Steinar [mailto:[EMAIL PROTECTED]] > Sent: Thursday, November 29, 2001 2:51 PM > To: 'Tomcat Users List' > Subject: tomcat 3.3 from RPM w/JDK 1.3.1 is missing Vector > > > Platform: Intel PIII, RedHat linux 7.2, > Sun JDK 1.3.1, tomcat 3.3 from jakarta-made RPM > > I'm getting exceptions from tomcat not finding the > Vector class (see below). > > Does anyone know if this is because of incompatibilities > between the javac that tomcat was built with, and > the java runtime I'm using? > > Or are there some JAVA_HOME settings missing from > tomcat? I have a JAVA_HOME setting in > /var/tomcat/conf/tomcat.conf > pointing at /usr/java/jdk1.3.1_01. > > Hmm... I can't find the string Vector, in any of the > .jar files of /usr/java/jdk1.3.1_01/lib. Am I missing > something? > > > Thanx! > > > - Steinar > > > Stack trace from exception follows: > > org.apache.jasper.JasperException: Unable to compile > /var/spool/tomcat/DEFAULT/tps-sba/epg_view_pace_1.java:53: Class > Vector not > found. > Vector channelList = > (Vector)session.getAttribute("channel list"); > ^ > /var/spool/tomcat/DEFAULT/tps-sba/epg_view_pace_1.java:53: Class > Vector not > found. > Vector channelList = > (Vector)session.getAttribute("channel list"); >^ > 2 errors at > org.apache.tomcat.facade.JasperLiaison.javac(JspInterceptor.java) > at > org.apache.tomcat.facade.JasperLiaison.processJspFile(JspInterceptor.java) > at org.apache.tomcat.facade.JspInterceptor.requestMap(JspInterceptor.java) > at > org.apache.tomcat.core.ContextManager.processRequest(ContextManager.java) > at > org.apache.tomcat.facade.RequestDispatcherImpl.doForward(RequestDi > spatcherIm > pl.java) > at > org.apache.tomcat.facade.RequestDispatcherImpl.forward(RequestDisp > atcherImpl > .java) > at > org.apache.struts.action.ActionServlet.processActionForward(Action > Servlet.ja > va:1758) > at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1595) > at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:491) > at javax.servlet.http.HttpServlet.service(HttpServlet.java) > at javax.servlet.http.HttpServlet.service(HttpServlet.java) > at org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java) > at org.apache.tomcat.core.Handler.invoke(Handler.java) > at org.apache.tomcat.core.Handler.service(Handler.java) > at org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java) > at > org.apache.tomcat.core.ContextManager.internalService(ContextManager.java) > at org.apache.tomcat.core.ContextManager.service(ContextManager.java) > at > org.apache.tomcat.modules.server.Ajp13Interceptor.processConnectio > n(Ajp13Int > erceptor.java) > at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java) > at > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Thre > adPool.jav > a) > at java.lang.Thread.run(Thread.java:484) > This email, its content and any attachments is PRIVATE AND CONFIDENTIAL to > TANDBERG Television. If received in error please notify the sender and > destroy the original message and attachments. > > -- > 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: is it possible to make tomcat as an apache module?
Advise is to use mod_jk though. To build on solaris here is a little hint (also don't forget to read the README for solaris!!!): (replace /usr/local/tomcat with your TOMCAT_HOME and replace /usr/local/apache with your APACHE_HOME.. cd to /usr/local/tomcat/native/mod_jk/apache1.3 If this file is not executable do chmod +x build-solaris.sh vi build-solaris.sh change the APACHE_HOME and JAVA_HOME lines to the correct directory structure. Since we need DEAPI to build mod_jk, we also have to change the line after the line echo Building mod_jk $APXS Add -DEAPI as the first parameter. If you don't have a DEAPI apache install, leave this one out. If your ld is not in your path , do vi /usr/local/apache/bin/apxs and change the ld (the line reading my $CFG_LD_SHLIB = q(ld); to q(/usr/ccs/bin/ld); and now run ./build-solaris.sh It should be build ok ;) (check to see if /usr/local/apache/libexec/mod_jk.so is present). Have fun ;)) Mvgr, Martin > -Original Message- > From: louie miranda [mailto:[EMAIL PROTECTED]] > Sent: Saturday, December 08, 2001 4:32 AM > To: Tomcat Users List > Subject: Re: is it possible to make tomcat as an apache module? > > > mod_jserv / solaris sparc > > - Original Message - > From: "Brian Adams" <[EMAIL PROTECTED]> > To: "Tomcat Users List" <[EMAIL PROTECTED]> > Sent: Saturday, December 08, 2001 11:15 AM > Subject: RE: is it possible to make tomcat as an apache module? > > > > which module jk, webapp ...? > > what platform? > > > > > > -Original Message- > > From: louie miranda [mailto:[EMAIL PROTECTED]] > > Sent: Friday, December 07, 2001 9:12 PM > > To: Tomcat Users List > > Subject: is it possible to make tomcat as an apache module? > > > > > > if yes, is there a HOWTO DOC around how to do it? > > > > ty. > > > > > > -- > > 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]> > > -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>
RE: is it possible to make tomcat as an apache module?
I could find this in the online cvs tree of java-jserv : http://cvs.apache.org/viewcvs/~checkout~/java-jserv/docs/install/howto.unix_ install.html?rev=1.9&content-type=text/html (clicking the link should give you an html file containing info about how to build everything..) Mvgr, Martin > -Original Message- > From: louie miranda [mailto:[EMAIL PROTECTED]] > Sent: Saturday, December 08, 2001 4:59 AM > To: Tomcat Users List > Subject: Re: is it possible to make tomcat as an apache module? > > > ty, but i cant use mod_jk, since i will include apache_jserv. > i have read a document, i just can't remember where i found it. > correct me if im wrong sir, ty. > > > is their a doc or something? > > > > > - Original Message - > From: "Martin van den Bemt" <[EMAIL PROTECTED]> > To: "Tomcat Users List" <[EMAIL PROTECTED]> > Sent: Saturday, December 08, 2001 11:46 AM > Subject: RE: is it possible to make tomcat as an apache module? > > > > Advise is to use mod_jk though. > > To build on solaris here is a little hint (also don't forget to read the > > README for solaris!!!): > > > > (replace /usr/local/tomcat with your TOMCAT_HOME and replace > > /usr/local/apache with your APACHE_HOME.. > > > > cd to > > /usr/local/tomcat/native/mod_jk/apache1.3 > > If this file is not executable do chmod +x build-solaris.sh > > vi build-solaris.sh > > change the APACHE_HOME and JAVA_HOME lines to the correct directory > > structure. > > > > Since we need DEAPI to build mod_jk, we also have to change the > line after > > the line > > echo Building mod_jk > > $APXS > > Add -DEAPI as the first parameter. If you don't have a DEAPI apache > install, > > leave this one out. > > > > If your ld is not in your path , do vi /usr/local/apache/bin/apxs and > change > > the ld > > (the line reading my $CFG_LD_SHLIB = q(ld); to q(/usr/ccs/bin/ld); > > > > and now run ./build-solaris.sh > > > > It should be build ok ;) > > (check to see if /usr/local/apache/libexec/mod_jk.so is present). > > > > Have fun ;)) > > > > Mvgr, > > Martin > > > > > > > > > > > -Original Message- > > > From: louie miranda [mailto:[EMAIL PROTECTED]] > > > Sent: Saturday, December 08, 2001 4:32 AM > > > To: Tomcat Users List > > > Subject: Re: is it possible to make tomcat as an apache module? > > > > > > > > > mod_jserv / solaris sparc > > > > > > - Original Message - > > > From: "Brian Adams" <[EMAIL PROTECTED]> > > > To: "Tomcat Users List" <[EMAIL PROTECTED]> > > > Sent: Saturday, December 08, 2001 11:15 AM > > > Subject: RE: is it possible to make tomcat as an apache module? > > > > > > > > > > which module jk, webapp ...? > > > > what platform? > > > > > > > > > > > > -Original Message- > > > > From: louie miranda [mailto:[EMAIL PROTECTED]] > > > > Sent: Friday, December 07, 2001 9:12 PM > > > > To: Tomcat Users List > > > > Subject: is it possible to make tomcat as an apache module? > > > > > > > > > > > > if yes, is there a HOWTO DOC around how to do it? > > > > > > > > ty. > > > > > > > > > > > > -- > > > > 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]> > > > > > > > -- > 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: Please Help : need to restart tomcat to use new servlet
Reloading is not really good in 3.2.3. For good reloading you have to use tomcat 3.3 and set reloadable to true in your webapp. Mvgr, Martin > -Original Message- > From: Mike [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, December 11, 2001 10:05 AM > To: Tomcat Users List > Subject: Please Help : need to restart tomcat to use new servlet > > > I would like to know how to use Tomcat 3.2.3 to deploy new servlets. > > Each time I modify one servlet, I need to restart Tomcat. If I didn't > restart Tomcat > it seems that the JVM keeps in memory the servlet. > > If I empty Netscape or IE cache (without restarting Tomcat), the > old servlet > is used. > > Thanks in advance. > Mike > > > -- > 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: somebody trying hack me, what they really wanted?
There are scripts out there which do exactly what you want.. They will not even hit the webserver and those ip addresses will get locked out.. http://www.adsl4linux.nl (it's a dutch site I'm sorry..) Mvgr, Martin -Original Message- From: Brian Adams [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 13, 2001 21:38 To: 'Tomcat Users List' Subject: RE: somebody trying hack me, what they really wanted? HA! your funny! FBI stop building your Magic Lantern and come find the poor sap that is trying to hack my free software nothing invested but time server sitting in my broadband closet! Ya Right! -Original Message- From: Dr. Evil [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 13, 2001 2:48 PM To: [EMAIL PROTECTED] Subject: Re: somebody trying hack me, what they really wanted? I get those all the time. I wish I could put a sign on my computer that says, "You're wasting your time. This machine is running Tomcat/Linux. Find someone running Windows". On a more serious note, this is a computer hacking attack, and it comes accross state lines. Could I get the FBI to investigate these things? I'm sure this is a Federal crime. -- 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: Dynamic Servlet Loading
I don't have a single servlet in the web.xml, so tomcat can handle them automatically. If there is no use for it : don't use it ;)) Saves a lot of maintainance.. So only put things in the web.xml that should be there (you have to check the servlet spec for that to see the options). Mvgr, Martin -Original Message- From: Krishnamurthy, Ramanathan [mailto:[EMAIL PROTECTED]] Sent: Friday, December 14, 2001 14:32 To: 'Tomcat Users List' Subject: Dynamic Servlet Loading Hi, I am new to Tomcat/Servlets. As I understand the servlet registration happens at startup time when the web.xml file is read. Is there some way to make the Tomcat re-read the web.xml file OR does Tomcat provide APIs to register servlet dynamically ? Thank you for your help, Regards, ram -- 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: Please Help
I don't think these question are ending up in the appropiate place.. Please check out http://www.linux.org/docs/index.html for more information about linux. Mvgr, Martin -Original Message- From: Designing Department [mailto:[EMAIL PROTECTED]] Sent: Monday, December 24, 2001 09:51 To: Tomcat Users List Subject: Re: Please Help Thanks ! It worked But now I want to 'cp httpsdctl apache-tomcat' while creating apache-tomcat in $APACHE_HOME/bin but get an error cp: cannot stat `httpsdctl': No such file or directory I am new. Nikola Milutinovic wrote: > > Hello All, > > > > I want to create new user and group "tomcat" for apache-tomcat. Can > > anyone help me. How can I create new user and group on Linux > > Your Linux administrator should do it. If you are the "fresh admin", then "adduser" or "useradd" is the command. Also, most Linux distributions today have GUI tools for that. > > Nix. -- 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: Session Problem with Tomcat and Apache - URGENT - Please help!!!!
Do you actually create a session somewhere. Since you are only using request.getSession(). This will get the session if it is there, or null if it is not there. As safe bet is to use request.getSession(true); Mvgr, Martin > -Original Message- > From: Rajesh Harikrishnan [mailto:[EMAIL PROTECTED]] > Sent: Friday, May 10, 2002 14:29 > To: Tomcat Users List > Subject: Session Problem with Tomcat and Apache - URGENT - Please > help > > > Hi All, > > I am having a problem with the session objects, let me first > explain how we have used the session object in our application > > we have an application which is initalizing an 'SESSION' object > when the user log's into the system. > This object is used to store three attributes, > 1) we have used 'session.setAttribute()' and 'session.setValue()' > methods for creating key pair value objects in the session. > 2) We have also used the 'session.getAttribute()' and > 'session.getValue()' for retriving the data from the session object. > 3) We have not used the 'session.removeAttribute()' any where in > our application. > 4) But in all pages, to check the session object validity, we > have used 'request.getSession()'. > > Does calling this creates a attribute set in a old session object > to be incorrectly re-written?. > > The problem: > We are getting this following problem randomly, > > The session object exists, but the attributes inside the session > object unbinds and returns a null value!!. > > > We are using 'Apache1.3.20+Tomcat3.2.2+JDK1.3.1+WINDOWS NT 4.0' > for our application. we have also set our > 'setMaxInactiveInterval(3)' when creating the session object > for the first time. > > What is the cause of the attributes being removed from the > session object, or in case is the session object itself is > created as a new object during 'request.getSession()' calls and > causing this problem. > > Have you people faced similar problems??. > > Please post your reply on this issue, this is a very urgent issue > to be solved. > > Thanks in advance > > Regards > H.Rajesh > ([EMAIL PROTECTED]) > SSPL,India > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
RE: building mod_jk on solaris
This is some info of how I built it on solaris sparc boxes. It was using tomcat 33 though, and you have to change the directories accordingly.. Let me remind you that some of the things can actually already been fixed or working differently.. cd to /usr/local/tomcat/native/mod_jk/apache1.3 If this file is not executable do chmod +x build-solaris.sh vi build-solaris.sh change the APACHE_HOME and JAVA_HOME lines to the correct directory structure. Since we need DEAPI to build mod_jk, we also have to change the line after the line echo Building mod_jk $APXS Add -DEAPI as the first parameter. If you don't have a DEAPI apache install, leave this one out. If your ld is not in your path, do vi /usr/local/apache/bin/apxs and change the ld (the line reading my $CFG_LD_SHLIB = q(ld); to q(/usr/ccs/bin/ld); and now run ./build-solaris.sh It should be build ok ;) (check to see if /usr/local/apache/libexec/mod_jk.so is present). Mvgr, Martin > -Original Message- > From: Jeff Larsen [mailto:[EMAIL PROTECTED]] > Sent: Friday, May 10, 2002 16:02 > To: Tomcat Users List > Subject: Re: building mod_jk on solaris > > > apxs requires perl. You must have perl installed prior to installation > of apache httpd in order for the apache install to correctly configure > apxs. Otherwise, I believe you are on the right track. > > Jeff > > - Original Message - > From: "Peter Choe" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Friday, May 10, 2002 7:52 AM > Subject: building mod_jk on solaris > > > > i am trying to build mod_jk for tomcat4.0. the only mod_jk i found is > > actually in tomcat3.3 though. so, i tried to compile it using the > > build-solaris.sh script and i get the following error: > > > > bash-2.03# ./build-solaris.sh > > Building mod_jk > > cc -DEAPI -DMOD_PERL -DUSE_EXPAT -O -G -Kpic -I/usr/apache/include > > -I../common -I/usr/java/include -I/usr/java/include/solaris > -DSOLARIS -c > > ../common/jk_ajp12_worker.c > > apxs:Break: Command failed with rc=16711680 > > Error with apxs > > > > does anyone know how i can fix this? > > > > > > -- > > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
Re: Re[4]: Receipt of 16/05/102 17:27 message
If a mail server doesn't know anything about mailinglists, it will send the receipt to the list indeed.. So the problem is yours to solve. Since those request for receipts for mails is pretty annoying, I will try to figure out how to strip out the receipt requests from the mails send to a mailing list. Mvgr, Martin On Fri, 2002-05-17 at 14:25, [EMAIL PROTECTED] wrote: > > "Paul Balanoiu" <[EMAIL PROTECTED]>) wrote: > >>You are right, no receipt requests should be sent to a list of > >users. Still, you are (or your server is) sending the receipt to the one that requested it, but to the entire list (which >>appears only in the "to" field of the message). This is not >>right (and it's annoying for all the other users). >> >>Try to set your server or email client to send the receipt only >to >the address that requested it (the address specified in the >"from" >field). That should solve the problem. > > > There is no client configuration for this on ccMail and I am not email > admin at our company. If the mail comes "from" the Tomcat mailing list > with a return receipt requested then our server is correctly sending the > receipt back "to" the list. > > If the list is taking a posting from a user who sets a return receipt and > passing that email (with associated return receipt in tact) onto all > members of the list then either the list admin should stop this 'feature' > or people shouldn't ask for receipts. > > Andrew > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
Re: please fix my stupid classpath
Hi, Tomcat handles your classpath, you don't have to set that.. I even think you get some classloader issues with that.. If you need it for compiling, you should have a look at ant, who can arrange these things a lot easier.. Mvgr, Martin On Thu, 2002-05-30 at 00:08, Richard Diaz wrote: > I set this up like a year ago and now that I look at > it, it seems wacked. Looks like I had to add all the > servlet jar files? > > Suggestions most welcome. > > I'm using Apache, Tomcat 4, Sun sdk 131 > > Rich > > SET > >CLASSPATH=c:\sunsdk131;c:\sunsdk131\lib;c:\sunsdk131\src.jar;c:\sunsdk131\lib\tools.jar;C:\Program > Files\Apache Tomcat > 4.0\webapps\twc\Web-inf\lib;C:\Program Files\Apache > Tomcat 4.0\lib\tools.jar;C:\Program Files\Apache > Tomcat 4.0\common\lib\servlet.jar;C:\Program > Files\Apache Tomcat > 4.0\lib\jasper-runtime.jar;C:\Program Files\Apache > Tomcat 4.0\lib\naming-factory.jar;C:\Program > Files\Apache Tomcat > 4.0\common\jasper\jaxp.jar;C:\Program Files\Apache > Tomcat 4.0\jasper\jasper-compiler.jar; > > = > > > __ > Do You Yahoo!? > Yahoo! - Official partner of 2002 FIFA World Cup > http://fifaworldcup.yahoo.com > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
RE: please fix my stupid classpath
Checkout http://jakarta.apache.org/ant/manual/CoreTasks/property.html especially the parameter environment needs looking at ;) Mvgr, Martin On Thu, 2002-05-30 at 00:45, Whitcomb, Roger wrote: > Rich - > I have NO classpath defined and am doing almost minute-by-minute builds using >"Ant". Here is my build.xml file as an example. Notice the "tomcat-home" definition >at the top which probably would change and then the "servlet-path" element which >points to all the Tomcat servlet .jar files. > > Roger Whitcomb > Computer Associates > Senior Software Engineer > Development > Phone: +1 408 965 8653 > FAX: +1 408 965 8805 > [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > > > -Original Message- > From: Richard Diaz [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, May 29, 2002 3:14 PM > To: Tomcat Users List > Subject: Re: please fix my stupid classpath > > > I am using the command line (javac) to compile my java > files. And now I am trying to .jar them... > > Rich > > --- Martin van den Bemt <[EMAIL PROTECTED]> wrote: > > Hi, > > > > Tomcat handles your classpath, you don't have to set > > that.. I even think > > you get some classloader issues with that.. > > If you need it for compiling, you should have a look > > at ant, who can > > arrange these things a lot easier.. > > > > Mvgr, > > Martin > > > > On Thu, 2002-05-30 at 00:08, Richard Diaz wrote: > > > I set this up like a year ago and now that I look > > at > > > it, it seems wacked. Looks like I had to add all > > the > > > servlet jar files? > > > > > > Suggestions most welcome. > > > > > > I'm using Apache, Tomcat 4, Sun sdk 131 > > > > > > Rich > > > > > > SET > > > > > > >CLASSPATH=c:\sunsdk131;c:\sunsdk131\lib;c:\sunsdk131\src.jar;c:\sunsdk131\lib\tools.jar;C:\Program > > > Files\Apache Tomcat > > > 4.0\webapps\twc\Web-inf\lib;C:\Program > > Files\Apache > > > Tomcat 4.0\lib\tools.jar;C:\Program Files\Apache > > > Tomcat 4.0\common\lib\servlet.jar;C:\Program > > > Files\Apache Tomcat > > > 4.0\lib\jasper-runtime.jar;C:\Program Files\Apache > > > Tomcat 4.0\lib\naming-factory.jar;C:\Program > > > Files\Apache Tomcat > > > 4.0\common\jasper\jaxp.jar;C:\Program Files\Apache > > > Tomcat 4.0\jasper\jasper-compiler.jar; > > > > > > = > > > > > > > > > __ > > > Do You Yahoo!? > > > Yahoo! - Official partner of 2002 FIFA World Cup > > > http://fifaworldcup.yahoo.com > > > > > > -- > > > To unsubscribe, e-mail: > > <mailto:[EMAIL PROTECTED]> > > > For additional commands, e-mail: > > <mailto:[EMAIL PROTECTED]> > > > > > > > > > > > > > > -- > > To unsubscribe, e-mail: > > <mailto:[EMAIL PROTECTED]> > > For additional commands, e-mail: > > <mailto:[EMAIL PROTECTED]> > > > > > = > > > __ > Do You Yahoo!? > Yahoo! - Official partner of 2002 FIFA World Cup > http://fifaworldcup.yahoo.com > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
RE: I don't see the output under Linux
Just replying to the original question here : if you want the system.out.println logging to appear in a file instead of the console : $TOMCAT_HOME/bin/tomcat.sh start 2>logfile 1>errorfile All error and normal output to the console will be redirected this way to files. If you want logging to system.out, then the logging appears only when the console in which you started tomcat, not any other console which you open. Mvgr, Martin > > > I have introduced a System.out.println lines in my application (for the > > > testing phase), but I don't see theirs output. > > > I have tried to do this (every time that tomcat is started): > > > > > > > ./tomcat start > tomcat.out > > > > > > without success. > > >
RE: Fine tuning my Apache -Tomcat Server
Which connector are you using (ajp12 or ajp13). The last one should be a lot faster (ajp12 is frozen anyway). Also turning of unecessary debugging / logging in this area will speed up the process.. Mvgr, Martin > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, August 08, 2001 4:12 PM > To: [EMAIL PROTECTED] > Subject: Fine tuning my Apache -Tomcat Server > > > Hi, > > I have Apache and Tomact running on Linux server. > > The following are the details of the same > > Apache: > Version : Apache_1.3.12-i686 > > Tomcat: > Version: Jakarta-tomcat-3.2.1 > > Linux: > Version :6.2 > > Java: > Version : JDK 1.2.2 > > Hardware Configuration: > Processor : Intel PIII > CPU Cycles : 733 M Hz. > RAM:256MB > Hard Disk : 256 MB > > Applications : > Technology : Java Servlet's > > Users: > 100 users for every 10 minutes (approx) > > Network : > Leased Line > Band Width : 2 MegaBytes/Second > > My Current Problem: > There are constant complaints that the server is slow in delivering the > response to the users. But all the applications are working fine. > > Please help me out in fine tuning my Apache -Tomcat Server. > Any inputs for improving server performance are highly appreciated. > > Thanks and Regards > Srinivas Chebolu > > >
RE: Missing file, libstd++-libc6.1-1.so.2
Hi, Probably installing the compat* library rpms from the redhat cd, which contains the older libraries will solve the problem Mvgr, Martin > -Original Message- > From: Marty Haught [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, August 08, 2001 6:03 PM > To: [EMAIL PROTECTED] > Subject: Missing file, libstd++-libc6.1-1.so.2 > > > Hi All, > > I just joined the list as I'm new to website admin duties > and am trying to > bring up a tomcat server on a linux/apache box. > My current setup is RedHat 7, Apache 1.3.12, jdk1.3.1, and Tomcat > 3.2.3. I've been working on this server with my free time for the last > month or so. > > BTW, > JAVA_HOME= /usr/java/jdk1.3.1 > TOMCAT_HOME=/var/tomcat > > > Here's my error that's in my tomcat log. > > /usr/java/jdk1.3.1/bin/i386/native_threads/java: error while > loading shared > libraries: libstdc++-libc6.1-1.so.2: cannot open shared object file: No > such file or directory > > Indeed this file does not exist and I'm wondering how I should go about > fixing that. Apache is operational and has been serving webpages for a > while now. I think mod_jk is loading correctly (according to logs) but I > have yet to attempt a jsp page as Tomcat does not start for me. > > Thanks for any help you can offer. > > Marty > > >
RE: Problem in Intigration Apache & Tomcat
there are some people actively working on updating the documentation. (esp. Rob). Please share your experience in writing and help in that area ;-) and I totally agree with Pier on this.. Mvgr, Martin > -Original Message- > From: Denis Haskin [mailto:[EMAIL PROTECTED]] > Sent: Thursday, August 09, 2001 5:38 PM > To: [EMAIL PROTECTED] > Subject: Re: Problem in Intigration Apache & Tomcat > > > Chill out, Pier. I suspect the initial poster was not a native English > speaker, so the lack of politeness was accidental, I think... > > That being said, I agree that there's a huge number of people who post > to this list (and many other lists, unfortunately) who seem to turn to > NGs and mailing lists as assistance of first resort, instead of last. > > That also being said, I think most of us would agree that the Tomcat > docs leave something to be desired. I'm a native English speaker, a > seasoned developer, a former writer, and even I found there was a pretty > steep learning curve. I truly wish I had the time to do some work on > the doc, but... > > dwh > > > Pier P. Fumagalli wrote: > > >Maybe a "please" would be appreciated... We're not paid to "solve your > >problems". Then you might want to read the documentation before > coming out > >with such a question... Ever heard of "Apache modules" such as mod_jserv, > >mod_webapp or mod_jk??? It's all in the docs... > > > >Pier > > > > > > > >
RE: request replication
I'm seeing some messages regarding multiple request from internet exploder. Do you have the same problem with nutscrape? A couple of messages back I also read that all messages regarding multiple request from exploder are closed, because it wasn't reproducable. Maby you can give this a go on nutscrape and tomcat 33 to see if the problem is reproducable there.. Mvgr, Martin > -Original Message- > From: Michael Wentzel [mailto:[EMAIL PROTECTED]] > Sent: Thursday, August 09, 2001 5:34 PM > To: '[EMAIL PROTECTED]' > Subject: Q: request replication > > > I am having a unique situation pop up. It's some > kind of concurrency issue but I can't figure out > what's causing it. I am generating PDFs in a servlet > and a single request to the servlet works fine but > if two users request a PDF at "roughly" the same time > then the adobe plugin appears to get confused and > doesn't display the generated file. Each users request > is actually getting made 3 times(using the same request > object) to generate 3 unique files(servlet generates > unique file ids). I have removed AutoSetup ContextInterceptor so there is > only one instance of the servlet and the jsp calling the servlet is only > making a single request. The first request for each PDF has a > Referer and a > request.getRequestURI() each subsequent(duplicate) request does not have a > Referer. Any suggestions would be appreciated. > > TC 3.2 > Win2K > Sun JDK 1.2 > > > --- > Michael Wentzel > Software Developer > http://www.aswethink.com";>Software As We Think >
RE: TomCat!!TomCat!!
> > HI Everyone, > I am new to TomCat and am really interested in knowing lot about this. Join the club ;=) > I actually want to try this on some of our present system(Servlets), where > there are some url redirection, sessions and so on. > My doubt is > 1) will Tomcat work fine without a webserver, what i mean is will servlets > and jsp written and placed on tomcat,will they be accessible from net > without any webserver directing the request to Tomcat. No problem. Be aware of the fact that it default to port 8080 and binding to the default http port 80 is not always possible (depending on your os). I prefer to let apache handle statics and tomcat handle dynamics. > 2) will there be any security problem involved. Always. This maby not the answer that you where looking for, so : tomcat is made as safe as possible, but there can always be a problem. So actively do security audits on you system. The combination apache / tomcat gives me a lot of confidence (on linux at least). > 3) what about sessionId, usually how long is this Id. Do we have > any control > over this SessionId size. As far as I understood you can use your own sessionID generator. Can't tell you how it works though. There is a reference to the sessionID generator in the server.xml (at least for tomcat 3.3). > Please reply back, I would really like to know about this. > Thank You > Jags >
RE: Configure to use mod_jk
Maby I'm mixing up versions, so forgive me for that.. In the server.xml you can uncomment the line containing ApacheConfig and from the TOMCAT_HOME/conf/jk you can include the auto generated apache include file (named mod_jk.conf-auto. Don't have any experience on solaris though, but this will probably work for you.. Mvgr, Martin > -Original Message- > From: Mike Givens [mailto:[EMAIL PROTECTED]] > Sent: Thursday, August 09, 2001 10:53 PM > To: [EMAIL PROTECTED] > Subject: Configure to use mod_jk > > > How do I get the tomcat-apache.conf file to load the mod_jk module > instead of the mod_jserv module? I'm running tomcat3.2.3 and Apache 1.3.12 > on Solaris. > > Mike > >
RE: ajp12[1]: cannot scan servlet headers (500)
You cannot connect to that port via a browser.. That is only for internal communications with apache or other webservers. So it cannot serve http request directly from your browser. As far as I know you have to restart the webserver and tomcat. Mvgr, martin > -Original Message- > From: Singh, Rakesh [mailto:[EMAIL PROTECTED]] > Sent: Friday, August 10, 2001 12:05 AM > To: [EMAIL PROTECTED] > Subject: ajp12[1]: cannot scan servlet headers (500) > > > Hi Folks: > > When I use the url http://localhost/jserv/ to test ApacheJserv > 1.1.2 Status > I do see > > ApacheJServ 1.1.2 Status > > Welcome to the dynamic status page of the ApacheJServ servlet engine. All > these pages are dynamically created to show you the status of your servlet > execution environment, both on the web server side (generated by > mod_jserv) > and on the servlet engine side (yes, ApacheJServ is actually a servlet and > executes itself!) > > Configured hosts Mapped servlet engines > localhost (current) ajpv12://localhost:8007 > > However when I click on Mapped Servlet engines (ajpv12://localhost:8007) I > get 500 Internal Server Error > > > The mod_jserv.log file gives the following : > > (EMERGENCY) ajp12[1]: cannot scan servlet headers (500) > (ERROR) an error returned handling request via protocol "ajpv12" > (ERROR) an error returned handling request via protocol "status" > > > Also the apache error.log is showing following: > > Can't find class org/apache/jserv/JServ or something it requires > Can't find class org/apache/jserv/JServ or something it requires > Can't find class org/apache/jserv/JServ or something it requires > Can't find class org/apache/jserv/JServ or something it requires > Can't find class org/apache/jserv/JServ or something it requires > Can't find class org/apache/jserv/JServ or something it requires > Can't find class org/apache/jserv/JServ or something it requires > [Thu Aug 09 15:58:18 2001] [error] [client 127.0.0.1] Invalid method in > request > [Thu Aug 09 15:58:18 2001] [error] [client 127.0.0.1] malformed > header from > script. Bad header= group/apache/htdocs/jserv > > Please Help! > > Rakesh Singh > 201.747.4450 > > > >
RE: Tomcat Server Setup question
You have to point a systmwide environment variable to your java installation directory eg : JAVA_HOME=/usr/local/java . While you are at it : some of the java software require jdk_home to be set ;-). Don't point this to the bin directory btw.. just to the root of the installation directory Hope this solves your problem. Mvgr, Martin > -Original Message- > From: Michael Reeves [mailto:[EMAIL PROTECTED]] > Sent: Friday, August 10, 2001 12:08 AM > To: [EMAIL PROTECTED] > Subject: Tomcat Server Setup question > > > Hi, > > I'm beyond newbie, meaning, painfully unaware of how to do this. > I've been > reading for days the User Guide and all the supporting documents at the > Jakarta website for days and still can't figure out where/why I'm > not doing > this correctly. > > I'm attempting to install the Tomcat to run with Apache. However, because > I'm painfully ignorant, I cannot seem to get Tomcat running > correctly. I've > successfully installed the Service (can see it in my Component Services > applet), but when I attempt to start the service, it returns "you must set > Java_Home to point at your java development kit installation." > > Where do I find that configuration file? > > I've modified my wrapper.properties and worker.properties configuration > files to point at my Tomcat installation home. I've also set up correctly > (I think), the jk_nt_service.exe module. > > I'm running Windows 2000 with Tomcat 3.3 and Apache 1.3. > > Any help would be greatly appreciated, especially in this heat. > > Sincerely, > > Michael L. Reeves (c)?(c) > > > >
RE: [t4] build problem
The only thing I can think of that you don't use the latest servleta - api. As far as I understood a couple of weeks ago there was an update to that. Not much to go on though ;-( Mvgr, Martin > -Original Message- > From: Mykola A. Nickishov [mailto:[EMAIL PROTECTED]] > Sent: Sunday, August 12, 2001 9:56 PM > To: [EMAIL PROTECTED] > Subject: Re: [t4] build problem > > > "Martin van den Bemt" <[EMAIL PROTECTED]> writes: > > > go inside eg the jakarta-tomcat-4.0 and do a cvs -q update -d > and see which > > files have problems. (this only shows the files that need > updating or are > > modified locally). > > There were no problems with any file :( Any ideas? > > -- > ICQ #83060237 > MAN-UANIC NIK6-RIPE >
RE: Apache+Tomcat+SSL+IE5.5
It has to do with settings in the browser that it gives this message. If you refere one thing to http in eg the header (eg external css stylesheet or external js file) then this messag is given. Mvgr, Martin > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of [EMAIL PROTECTED] > Sent: Monday, August 13, 2001 9:08 PM > To: [EMAIL PROTECTED] > Subject: Apache+Tomcat+SSL+IE5.5 > > > Hi, > I have a web server with Apache (with SSL) + Tomcat (with ajp13) > Tomcat don't have a HTTP connector. > My application only use JSP-servlets(no static page). > It work perfectly with IE5.0 , Netscape 4 or Netscape 6 > When I use IE5.5 to connect to my apache i have this message from IE : > (i have a french message, so it is my translation ) > > "this page have secure elements and non-secure elements > > Would you like view the non-secure elements ?" > > It's just a warning message but I would like to know if : > > _ IE5.5 is right (they are non-secured element in my JSP pages) or if > it is a bug. > How to be sure ? > > _ if yes, Does It mean apache-SSL don't crypt my tomcat's > JSP. (i have > the same message when i use ajp12 or ajp13 ) > > Thanks in advance > Fred > > >
RE: Error Log
Create an nice windows icon file yourself.. Mvgr, martin > -Original Message- > From: Barnabas Yohannes [mailto:[EMAIL PROTECTED]] > Sent: Monday, August 13, 2001 10:36 PM > To: [EMAIL PROTECTED] > Subject: Re: Error Log > > > Thank you Randy, > This is very true. In fact, I bookmarked the site and it did it again. > What do you think is the solution? Is there any where that I can download > the favicon.ico and put it to the root directory? We looked the > file up in > all the directories, but non of the files are loaded in anywhere in the > apache server. We even tried to find it at the apache server CDs, but the > files are not there. > > > - Original Message - > From: "Randy Paries" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Monday, August 13, 2001 3:00 PM > Subject: RE: Error Log > > > > This is an error from a user that bookmarks your site with an > IE5 browser. > > The browser looks by default for favicon.ico in the root directory. > > > > /usr/local/apache/htdocs/favicon.ico > > > > -Original Message- > > From: Barnabas Yohannes [mailto:[EMAIL PROTECTED]] > > Sent: Monday, August 13, 2001 2:56 PM > > To: [EMAIL PROTECTED] > > Subject: Error Log > > > > > > Does any one has any idea what the following errors mean? > > > > [Mon Aug 13 12:22:53 2001] [error] [client 204.30.247.252] File does not > > exist: /usr/local/apache/htdocs/favicon.ico > > > > [Mon Aug 13 12:30:47 2001] [error] [client 217.128.68.93] File does not > > exist: /usr/local/apache/htdocs/default.ida > > > > [Mon Aug 13 12:52:13 2001] [error] [client 212.68.231.10] File does not > > exist: /usr/local/apache/htdocs/default.ida > > > > They are displayed at "error_log" of the apache server. We looked those > > files up the directory displayed, but they do not exist. What is > happening > > is that after an applicatin at the tomcat server works for 10-12 hours, > the > > web crushes. Folks here started male pattern baldness tying to > solve this > > error. > > > > Any help will be highly appreciated. > > > > >
RE: Error Log
This is a specific thing to IIS so don't worry. Request can be done although to see if it is infected. Check the ip addresses and see if they come from a source likely to be a normal visitor, if not mail them that there is something strange going on ;-)) Mvgr, Martin > -Original Message- > From: Barnabas Yohannes [mailto:[EMAIL PROTECTED]] > Sent: Monday, August 13, 2001 10:39 PM > To: [EMAIL PROTECTED] > Subject: Re: Error Log > > > Jeff, > > This "code_red" virus seems a Microsoft IIS issue. Do you think > this virus > also could attack an apache server? > > > - Original Message - > From: "Jeff Rancier" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Monday, August 13, 2001 3:06 PM > Subject: RE: Error Log > > > > You're server is receiving what appears to be the code_red virus stuff. > You > > must be connected to the outside? If so, I'd turn off, disconnect your > > connection, get the patch from Microsoft, follow the instructions. > Forget > > what I said, you're not running IIS. But I think that's what they are > > though. > > > > -Original Message- > > From: Barnabas Yohannes [mailto:[EMAIL PROTECTED]] > > Sent: Monday, August 13, 2001 3:56 PM > > To: [EMAIL PROTECTED] > > Subject: Error Log > > > > > > Does any one has any idea what the following errors mean? > > > > [Mon Aug 13 12:22:53 2001] [error] [client 204.30.247.252] File does not > > exist: /usr/local/apache/htdocs/favicon.ico > > > > [Mon Aug 13 12:30:47 2001] [error] [client 217.128.68.93] File does not > > exist: /usr/local/apache/htdocs/default.ida > > > > [Mon Aug 13 12:52:13 2001] [error] [client 212.68.231.10] File does not > > exist: /usr/local/apache/htdocs/default.ida > > > > They are displayed at "error_log" of the apache server. We looked those > > files up the directory displayed, but they do not exist. What is > happening > > is that after an applicatin at the tomcat server works for 10-12 hours, > the > > web crushes. Folks here started male pattern baldness tying to > solve this > > error. > > > > Any help will be highly appreciated. > > > > >
RE: Multiple servlets using same initParameters
Use a config file or properties file makes life a bit easier.. (at least that's the way I do it) Mvgr, Martin > -Original Message- > From: Peter Davison [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, August 14, 2001 11:51 PM > To: [EMAIL PROTECTED] > Subject: Re: Multiple servlets using same initParameters > > > How about this: > > Set up your init params for one of your servlets. > Make sure that this servlet get's pre-loaded first before the other > servlets. > Have the init() method of that servlet store all the parameters as > System properties and let the other servlets retrieve the parameters > as System properties instead of init params. A bit of a hack but it > works. > > P. > > > On Tue, 14 Aug 2001 17:38:26 -0400 > [EMAIL PROTECTED] wrote: > > > I have multiple servlets in the same directory and they all get the same > > init-params from web.xml. > > > > Currently, I have 5 servlets and am required to repeat all the > init-params > > 5 times, one for each servlet. So if one parameter changes, I have to > > change it five times in web.xml. I'd like to only have them in > the web.xml > > file once and all servlets use them. How is this possible? > > > > One approach I took was to create a servlet that all my other servlets > > subclassed and all it did was grab the init-params. I couldn't > get it to > > work. > > > > Any ideas? > > > > Thanks, > > > > JEB >
RE: Trouble running a servlet
thats a host sample file.. It has to be called hosts (you can copy the hosts.sam to hosts if you want..) Mvgr, Martin > -Original Message- > From: Dmitri Colebatch [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, August 15, 2001 2:25 AM > To: [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: Re: Trouble running a servlet > > > thats c:\windows\hosts.sam isn't it? > > On Tue, 14 Aug 2001, Craig R. McClanahan wrote: > > > > > > > On Tue, 14 Aug 2001, Kenneth Litwak wrote: > > > > >Okay, I made my Win 2000 trouble go away by > > > removing proxy settings in NetscRape and signing on to > > > the Internet through my ISP. Now everything works > > > fine. The question I have still, however, is: how > > > can I avoid this? I should not have to tie up my > > > phone line just to use Tomcat on my PC. That's silly. > > > How can I get around this please? Thanks. > > > > > > > What solved the last of my disconnected-laptop issues (on Win98 > at least) > > was adding a LOCALHOST entry in "c:\windows\hosts" (create it > if needed): > > > > 127.0.0.1 localhost > > > > Win98 looks here first before it tries accessing your configured DNS > > servers, which is when it would try to access the network. > > > > > Ken > > > > > > > Craig > > > > > >
RE: Pure Linux Problem: problems with Java 1.3.0_02 on Linux.
if the file isn't executable (chmod +x) or you don't have access to that file, then it also stop... try to start cut from the commandline.. see what happens (so type /usr/bin/cut , it should give some result), if not, the file is not there or you don't have enough permissions.. Mvgr, Martin > -Original Message- > From: Allan Kamau [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, August 15, 2001 2:02 PM > To: [EMAIL PROTECTED] > Subject: Pure Linux Problem: problems with Java 1.3.0_02 on Linux. > > > Hi, > This is not a tomcat question sorry of the > inconvinence. > I wonder if there is anyone here successfully running > Java 1.3.x on Red Hat 7.1. > > #java somejavaprogram > /usr/java/jdk1.3.0_02/bin/java: /usr/bin/cut: No such > file or directory > /usr/java/jdk1.3.0_02/bin/i386/native_threads/java: > error while loading shared libraries: libjvm.so: > cannot load shared object file: No such file or > directory > > > I have followed the instructions from sun's site which > read that one should install > compat-libstdc++-6.21-2.9.0.0.i386.rpm to eliminate > this problem. > However this particular rpm file is nowhere in the > internet. I have installed > compat-libstdc++-6.2-2.9.0.14.i386.rpm but I still get > the same error. I have ever copied /bin/cut to > /usr/bin/ without success. > The Installation instructions from the sun's site > > Thank you in advance. > Allan Kamau. > > __ > Do You Yahoo!? > Make international calls for as low as $.04/minute with Yahoo! Messenger > http://phonecard.yahoo.com/ >
RE: Servlet Runs SLow
so the form submission is probably the problem.. call a method which registers start and endtime, maby that will clear up where the problem is.. Mvgr, Martin > -Original Message- > From: A.L. [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, August 15, 2001 5:52 PM > To: [EMAIL PROTECTED] > Subject: Re: Servlet Runs SLow > > > The first time I load the page in Netscape everything > seems fine, it loads almost instantaneously. > However, when I submit the query to change the month > calendar, netscape takes a while to reload the page > and show the new calendar. I can see that TOmcat > receives the request immediately, and I assume that > since Netscape appears to be loading it receives the > response immediatley. > > Thanks, > -Amos > > > --- Jim Seach <[EMAIL PROTECTED]> wrote: > > I copied the html into a static file and was able to > > bring it up > > immediately in Netscape 4.76, so it doesn't appear > > to be the contents > > of the form that is the problem. > > > > Does it take a long time to display, or does it just > > not appear to > > finish loading? I have also noticed that sometimes > > even after the page > > has loaded, Netscape still appears to be working. > > So far, I have just > > ignored it. > > > > Jim > > > > --- "A.L." <[EMAIL PROTECTED]> wrote: > > > Below is the code that is returned: > > > > > > It seems that Netscape might have problems with > > the > > > FORM data. It does seem as if the server is > > sending > > > the reponse immediately. Or maybe it is having > > > trouble with the javascript functions... Any > > > suggestions > > > > > > (I am only running TOmcat by the way) > > > > > > > > > > > > > > > > > > Calendar > > > > > > > > > > > > > > > January > > > February > > > March > > > April > > > May > > > June > > > > > > > > > > > > March2001 > > NAME="date2"ACTION="/jd/Calendar"> > type=hidden > > > NAME="d">function > > > choose(n){document.date2.d.value = > > > > > > n;document.date2.submit();}< > td> > > href="javascript:choose(1)">1 > > href="javascript:choose(2)">2 > > > > > href="javascript:choose(3)">3 > > href="javascript:choose(4)">4 > > href="javascript:choose(5)">5 > > href="javascript:choose(6)">6 > > href="javascript:choose(7)">7 > > href="javascript:choose(8)">8 > > href="javascript:choose(9)">9 > > > > > href="javascript:choose(10)">10 > > href="javascript:choose(11)">11 > > href="javascript:choose(12)">12 > > href="javascript:choose(13)">13 > > href="javascript:choose(14)">14 > > href="javascript:choose(15)">15 > > href="javascript:choose(16)">16 > > > > > href="javascript:choose(17)">17 > > href="javascript:choose(18)">18 > > href="javascript:choose(19)">19 > > href="javascript:choose(20)">20 > > href="javascript:choose(21)">21 > > href="javascript:choose(22)">22 > > href="javascript:choose(23)">23 > > > > > href="javascript:choose(24)">24 > > href="javascript:choose(25)">25 > > href="javascript:choose(26)">26 > > href="javascript:choose(27)">27 > > href="javascript:choose(28)">28 > > href="javascript:choose(29)">29 > > href="javascript:choose(30)">30 > > > > > href="javascript:choose(31)">31 > > > > > > First_Name > > > Amos > > > Jeff > > > Steve > > > Cathy > > > Patricia > > > Cary > > > Tom > > > > > > > > > > > > > > > > > > --- Jim Seach <[EMAIL PROTECTED]> wrote: > > > > I agree - it's worth looking at the client. Do > > you > > > > have any large > > > > tables? I have had problems in the past with > > > > Netscape taking a long > > > > time (> 5 min) to load tables with several > > thousand > > > > ro
RE: Tomcat embedded in Apache
As far as I know tomcat is not built into apache. It just integrates well (as well with other servers).. Mvgr, Martin > -Original Message- > From: Kemp Randy-W18971 [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, August 15, 2001 7:54 PM > To: '[EMAIL PROTECTED]' > Subject: Tomcat embedded in Apache > > > I found an article at http://www.linuxdevices.com/articles/AT7102892618. > The article says this > Apache 2.0 -- This is still in alpha now, with beta and final releases due > at monthly intervals. It is faster and runs on more operating systems with > the same level of stability as on Unix, and also supports dynamically > loadable modules better. The Tomcat Java engine is built-in, > enabling Apache > to natively run Java Servlets and Java Server Pages. > > Does that mean that the Tomcat engine will be part of the Apache > download? >
RE: auto-reload classes
set the reloadable="true" in you server.xml or other main xml files (in the webapp config). Reloading is only possible for servlets btw, so not classes used by servlets. Mvgr, Martin > -Original Message- > From: Mills, Theo [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, August 15, 2001 11:50 PM > To: '[EMAIL PROTECTED]' > Subject: auto-reload classes > > > Where is the option to toggle the auto-reload classes capability? In other > words, i make a change to a class in my WEB-INF/classes directory. Don't I > normally need to restart tomcat? Is there an option that avoids a restart? > > -Theo >
RE: auto-reload classes
It does.. Every request triggers a check if the file has been in updated and changed, so if you have a lot of hits, it will be noticable.. Since reloading (at least my experience) is not the most stable (it can have some strange results..) thing that could happen to you, I would not use it in production environments anyway. For development it is ok.. If you have 10 servlets and 600 supporting classes, reloading doesn't help very much... (catalina should handle this properly btw..) In tomcat 3.3 (now beta) you can select ( is default as far as I know) to do context reloading, which I personally prefer while developing.. Mvgr, Martin > -Original Message- > From: Mills, Theo [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, August 15, 2001 11:56 PM > To: '[EMAIL PROTECTED]' > Subject: RE: auto-reload classes > > > Thanks, man. > > Does setting "reloadable=true" affect performance much? > > -Original Message- > From: Martin van den Bemt [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, August 15, 2001 4:57 PM > To: [EMAIL PROTECTED] > Subject: RE: auto-reload classes > > > set the reloadable="true" in you server.xml or other main xml > files (in the > webapp config). Reloading is only possible for servlets btw, so > not classes > used by servlets. > > Mvgr, > Martin > > > -Original Message- > > From: Mills, Theo [mailto:[EMAIL PROTECTED]] > > Sent: Wednesday, August 15, 2001 11:50 PM > > To: '[EMAIL PROTECTED]' > > Subject: auto-reload classes > > > > > > Where is the option to toggle the auto-reload classes > capability? In other > > words, i make a change to a class in my WEB-INF/classes > directory. Don't I > > normally need to restart tomcat? Is there an option that avoids > a restart? > > > > -Theo > > >
RE: auto-reload classes
Still assuming 3.x, sorry ;-)) > -Original Message- > From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] > Sent: Thursday, August 16, 2001 12:29 AM > To: [EMAIL PROTECTED] > Subject: RE: auto-reload classes > > > > > > >-----Original Message- > > >From: Martin van den Bemt [mailto:[EMAIL PROTECTED]] > > >Sent: Wednesday, August 15, 2001 4:57 PM > > >To: [EMAIL PROTECTED] > > >Subject: RE: auto-reload classes > > > > > > > > >set the reloadable="true" in you server.xml or other main xml > files (in the > > >webapp config). Reloading is only possible for servlets btw, > so not classes > > >used by servlets. > > > > Just for the record, the last sentence is *not* true for Tomcat 4. It > reloads if *any* previously loaded class is recompiled. > > Craig > > >
RE: Tomcat dies... help!
There are some bugs in ajp12 which can cause this. Since ajp12 is frozen and not as fast as ajp13 it is best to use ajp13 or the old mod_jserv. Mvgr, martin > -Original Message- > From: Sahar Madani [mailto:[EMAIL PROTECTED]] > Sent: Thursday, August 16, 2001 3:01 AM > To: [EMAIL PROTECTED] > Subject: Re: Tomcat dies... help! > > > Did anyone answer this one yet. > I get this in one of my servers. Both using jdk1.2.2 > tail mod_jk.log > [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 111 > [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1 > > Any ideas? thanks in advance. >
RE: In linux, how to start tomcat where user is not "root"?
make sure you have sufficient rights... (what that should be is for you to figure out..) Running fine here with about 20 users, all under a non root account.. Mvgr, Martin > -Original Message- > From: sunbel [mailto:[EMAIL PROTECTED]] > Sent: Thursday, August 16, 2001 12:23 PM > To: [EMAIL PROTECTED] > Subject: In linux, how to start tomcat where user is not "root"? > > > Dear all, > When I use a user other than "root" to login linux, and start tomcat: > > /usr/jakarta-tomcat-3.2.1/bin/./tomcat.sh start > > it shows many messages, and tomcat cannot properly started ( some JSP > example programs also cannot be run) > > how can I start tomcat but not using "root" to login? > > Thanks and regards > > Sunny Yeung > 15-Aug-01 > >
RE: In linux, how to start tomcat where user is not "root"?
The answer is quite simple (but not the one you want probably). If it is gonna be a server on the internet : get a unix admin course, so you can actually set up a good environment or ask someone who knows unix to help you.. (sitting at your machine or having access to your machine). If I have to cover all possibilities of setting up a machine safe for the internet, it will take me a while.. (there are a lot of faq's on the linux documentation project which can give you a head start on this). If it is for development : just run as root.. We do that even on all production servers (accept the development server, where everybody has is own environment). If you don't have access as root to the machine : let your admin help you out to get things up and running.. Administration is not an easy job, you have to gather a lot of knowledge and you can get that mostly by playing around and reading (the last is not my way, unless I really don't have a clue). So take it easy at first and if you get comfortable with unix, change it the way you really want.. Hope the answer helps you anyway.. Mvgr, Martin > -Original Message- > From: sunbel [mailto:[EMAIL PROTECTED]] > Sent: Thursday, August 16, 2001 12:41 PM > To: [EMAIL PROTECTED] > Subject: Re: In linux, how to start tomcat where user is not "root"? > > > Dear Martin, > > Thanks very much for your reply, > > But... In linux field, I am just a "kid", could you please > describe in more > detail how to assign right for other user to start tomcat? > > Your kindly reply will be very appreciated. > Thanks thanks thanks > Sunny > 16-Aug-01 > > > - Original Message - > From: "Martin van den Bemt" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Thursday, August 16, 2001 6:13 PM > Subject: RE: In linux, how to start tomcat where user is not "root"? > > > > make sure you have sufficient rights... (what that should be is > for you to > > figure out..) > > Running fine here with about 20 users, all under a non root account.. > > > > Mvgr, > > Martin > > > > > -Original Message- > > > From: sunbel [mailto:[EMAIL PROTECTED]] > > > Sent: Thursday, August 16, 2001 12:23 PM > > > To: [EMAIL PROTECTED] > > > Subject: In linux, how to start tomcat where user is not "root"? > > > > > > > > > Dear all, > > > When I use a user other than "root" to login linux, and start tomcat: > > > > > > /usr/jakarta-tomcat-3.2.1/bin/./tomcat.sh start > > > > > > it shows many messages, and tomcat cannot properly started ( some JSP > > > example programs also cannot be run) > > > > > > how can I start tomcat but not using "root" to login? > > > > > > Thanks and regards > > > > > > Sunny Yeung > > > 15-Aug-01 > > > > > > > > > > > >
i18n UTF to ISO charsets conversions..
Hi, Just keep in mind that a big system was designed without REAL i18n in mind, so there are better solutions to storing the data. We have a 2 part system : one which allowes multiple encodings to be used (eg an english web user-interface, where you can edit data in a localized manner). Because of that we have to use UTF-8 for this system. The other system is showing the result of system 1 localised (so not mixed as system 1). Everything is stored as text databases on the file system using the java default encoding of ISO-8859-1 (even greek text), which works great for system 2 (just set the appropiate charset in the request header and everything works well.) System 1 doesn't have problems with this either, until we want to save data.. It comes in encoded as UTF-8 and needs to be written to disk as ISO-8859-1 (1000's of files are set up like this and converting those is too much impact right now) Wat I need is to convert the parameter from UTF-8 to ISO-8859-whatever.. As an example 2 headers : (extracted with getReader and read()..) this is greek text entered in ie.. the ISO-8859-1 encoding isotext=%EB%E5%F0%F4%EF%EC%DD%F1%E5%E9%E5%F2 the UTF-8 encoding utf8text=%CE%BB%CE%B5%CF%80%CF%84%CE%BF%CE%BC%CE%AD%CF%81%CE%B5%CE%B9%CE%B5% CF%82 from ISO to UTF is not a problem, but from UTF-8 to IS0-8859- is not working.. so I want to get convert utf8text to have the same value as with isotext.. Does anyone know how to handle this conversion or know where to find a class / source that can do this conversion? Hope it makes any sense what I'm asking TIA Mvgr, Martin
RE: web_apps problem
probably using linux kernel 2.4 You have to install compat*.rpm from the redhat cd (assuming you are using redhat..) Mvgr, Martin > -Original Message- > From: Roberto B. [mailto:[EMAIL PROTECTED]] > Sent: Thursday, August 16, 2001 4:07 PM > To: [EMAIL PROTECTED] > Subject: web_apps problem > > > 1) I have installed Apache and some Virtual Host > 2) I have installed Tomcat 4.0 b7 and it runs on port 8080 > > in the virtual host I want to run HTML files with apache and JSP/servlet > with Tomcat so... > > I have copied "mod_webapp.so" in the apache lib directory but when I wrote > > apachectl configtest > > I received: > > Syntax error on line 108 of /etc/apche/httpd.conf > Cannot load /usr/lib/apache/1.3/mod_webapp.so into server: /lib/libc.so.6: > version 'GLIBC_2.2' not found (required by > /usr/lib/apache/1.3/mod_webapp.so) > > What means this? > > Thanks > >
RE: Error in error_log
Probably problems with your frontpage extensions... Has got nothing to do with tomcat though.. (unless they have a conflict..). Maby asking on the apache mailinglists will have better results.. Mvgr, Martin > -Original Message- > From: Barnabas Yohannes [mailto:[EMAIL PROTECTED]] > Sent: Thursday, August 16, 2001 6:22 PM > To: [EMAIL PROTECTED] > Subject: Error in error_log > > > Folks, > > The error log at the three tiered apache server with tomcat as its middle > tear is displaying more and more strange errors. As you may remember it, > last time we had similar errors, namely, "default.ada" & "favicon.ico" > missing. As suggested by wise folks here, > > I created two nice files and named them with "default.ada" & > "favicon.ico". > Now we don't have those errors anymore. > > > However, the latest errors are: > > > [Wed Aug 15 10:41:51 2001] [error] [client 63.104.195.182] request failed: > > error reading the headers > > > [Wed Aug 15 12:32:00 2001] [error] [client 209.150.103.195] File does not > > exist: /usr/local/apache/htdocs/_vti_inf.html > > > [Wed Aug 15 12:32:01 2001] [error] [client 209.150.103.195] File does not > > exist: /usr/local/apache/htdocs/_vti_bin/shtml.exe/_vti_rpc > > > > I don't think these last two files that are reposted missing are > supposed to > > be at the apache server to begin with. > > > Please let us know what you think is causing these errors. > > Thank you! > > > Regards, > >
RE: Version
Thats the verion of the license, not for tomcat.. Mvgr, Martin > -Original Message- > From: Barnabas Yohannes [mailto:[EMAIL PROTECTED]] > Sent: Thursday, August 16, 2001 10:26 PM > To: [EMAIL PROTECTED] > Subject: Re: Version > > > Rob, > Obviously, you and I need to learn a little more before we can > open our own > little yahoo shop. I found out that in tomcat, it is named > "LICENSE". lol! > > I'm just kidding dude! That help was very useful and more than $10 worth > even though the name was LICENSE. Now in the LICENSE of my tomcat, it is > displayed: > > * $Header: /home/cvs/jakarta-tomcat/LICENSE,v 1.1.1.1 1999/10/09 00:19:57 > duncan Exp $ > * $Revision: 1.1.1.1 $ > * $Date: 1999/10/09 00:19:57 $ > > I suppose it is very old one, namely, Circa 1999. And I think that is why > it is giving us all kinds of all kinds of errors. > > Moreover, what I am really concerned is the following message displayed > bellow of the above message: > > > * > * > * The Apache Software License, Version 1.1 > * > * Copyright (c) 1999 The Apache Software Foundation. All rights > * reserved. > * > > Now, my question is: Is this an Apache's License README file or tomcat's? > > > > > - Original Message - > From: "Rob S." <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Thursday, August 16, 2001 3:02 PM > Subject: Re: Version > > > > Oh. My. God. I should start a Yahoo! Shop answering > questions for $10k > =) > > > > You obviously have access to the server... cd to $TOMCAT_HOME and read > the README file. > > > > - r > > > > On Thu, 16 Aug 2001 14:38:21 -0500 [EMAIL PROTECTED] wrote: > > > Folks, > > > How do I know what version of tomcat I have on my apache server? This > dude > > > who installed tomcat for us, I think, he installed only the > beta release > of > > > tomcat. Now, he is asking $10,000 to fix it. "Oh holly cow!" was my > bosses > > > reaction.:) > > > > > > I used the command: > > > > > > openssl version -a > > > > > > But it only gave me the ssl version. > > > > > > Any help will be appreciated! > > > > > > > > >
RE: Log number of visit to jsp page
Put it in a file (just make it via the java.io classes) and update that on every hit (that is the counter..) or if you don't need the counter for displaying, IIS probably has some logging somewhere.. Mvgr, Martin > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Thursday, August 16, 2001 10:51 PM > To: [EMAIL PROTECTED] > Subject: Log number of visit to jsp page > > > Hi, > > We are running Tomcat 3.2.1 behind IIS. We want to switch > all the htm/shtm pages to jsp but we need to keep track of how > many hit/page > we have. How do we do that with Tomcat (our version or another version)? > Is that even feasible? > > Thanks a lot, > > BaoHa. >
RE: Version
+1 on that.. Mvgr, Martin > -Original Message- > From: Rob S. [mailto:[EMAIL PROTECTED]] > Sent: Friday, August 17, 2001 12:29 AM > To: [EMAIL PROTECTED] > Subject: RE: Version > > > > Greetings, deacon Marcus, starving Java expert from Poland (in case you > > don't know where it is, it's about eighty years behind Africa) > > ---> > > I can say without a doubt, that this is the funniest thing I've > read on the > tomcat-user mailing list since mid 2000. Kudos to you =) > > - r > >
RE: How can I find number of 'open files'
There is a profiler available for the jdk which spits out a nice overview of all the instances of classes that are used.. Maby that can help you check the correctnes of the code and see the bottlenecks (it also says how much memory it uses..).. Just saw a report on that one day, so you have to check java.sun.com for more details.. Mvgr, martin > -Original Message- > From: Ivan Markovic [mailto:[EMAIL PROTECTED]] > Sent: Friday, August 17, 2001 5:39 AM > To: [EMAIL PROTECTED] > Subject: How can I find number of 'open files' > Importance: High > > > I had a problem a while back with 'too many open files'. So I checked > and fix some bugs in my code and increased the limit (Solaris running > on Sun Netra T1). But now the problem is back. I suspect it is a > problem with my code. > > How can I find out how many files are 'open'? If I can track that > number then I can hit my code through Tomcat and see roughly when the > files are not being closed. Is there some Unix function that will > allow me to monitor open files? > > Below is the kind of error that I see thank you. > > java.net.SocketException: Too many open files > at java.net.PlainSocketImpl.socketAccept(Native Method) > at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:421) > at java.net.ServerSocket.implAccept(ServerSocket.java:243) > at java.net.ServerSocket.accept(ServerSocket.java:222) > at > org.apache.tomcat.service.PoolTcpEndpoint.acceptSocket(PoolTcpEndp > oint.java:277) > at > org.apache.tomcat.service.TcpWorkerThread.run(PoolTcpEndpoint.java:344) > at > org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:411) > at java.lang.Thread.run(Thread.java:484) > Endpoint ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=8007] > shutdown due to exception: java.net.SocketException: Too many open > files > > -- > Ivan Markovic > SculptLight > http://www.sculptlight.com > (+353) 87 2939256 > (+353) 1 2982205 > > 114 Lower Churchtown Rd, > Dublin 14, > Ireland. >
RE: Why and How Tomcat before Apache?
this is for tomcat 3.3 : Start tomcat first so requests, so tomcat has the time to fire up. Then start apache and serving request will be ok right away. For production servers I restart them both anyway, but for development : just restart tomcat when you need it and don't look at apache.. This is the way it works for me ... Mvgr, Martin > -Original Message- > From: Roberto B. [mailto:[EMAIL PROTECTED]] > Sent: Friday, August 17, 2001 11:50 AM > To: [EMAIL PROTECTED] > Subject: Why and How Tomcat before Apache? > > > I have a Linux/Debian system. > I want to use Apache as web-server and Tomcat only for JSP file. > > Is it true that it is necessary to make start Tomcat before Apache? Why?.. > and if it is true.. how?? > > Thanks! > Roberto. > >
RE: Odd Tomcat Behaviour [ArrayOutOfBounds Exception]
I thought this was fixed in the cvs version of tomcat (don't know if it made 3.3 b1.. (I was having a lot of these messages too, but after the fix everything was ok.. (don't know the stacktrace, but it looks the same). Mvgr, Martin > -Original Message- > From: Rob S. [mailto:[EMAIL PROTECTED]] > Sent: Friday, August 17, 2001 1:36 PM > To: [EMAIL PROTECTED] > Subject: RE: Odd Tomcat Behaviour [ArrayOutOfBounds Exception] > > > Can you paste the stack trace? > > - r > > > -Original Message- > > From: Naden [mailto:[EMAIL PROTECTED]] > > Sent: Friday, August 17, 2001 5:17 AM > > To: [EMAIL PROTECTED] > > Subject: Odd Tomcat Behaviour [ArrayOutOfBounds Exception] > > > > > > > > Hi, > > > > Simple question: > > > > I have a servlet package running using Tomcat 3.3m4 that is doing > > some very > > odd things. Tomcat is running using Apache/1.3.20 on FreeBSD > > 4.3-RELEASE on > > a x86. > > > > I am using a html form to change the name of a database entry given a > > certain entry ID. Problem has been diagnosed to a certain > condition. If I > > enter more than a single word in the name box I get a nice > > ArrayOutOfBounds > > exception which get this, propagates through any running servlet > > if I don't > > do catch it at the end of my particular servlet. > > > > The weird part is that the error comes from the entry id being > > equal to null > > even though clearly it isn't (you can see it passed in the url field). > > > > Any help would be really great. > > > > Cheers, > > > > Naden > > > > > > > > > > > > > > > > > > > > >
RE: REMOTE_HOST not showing up in Tomcat3.2
It should return an ip address if the host is not found.. so if you don't have a connection to the internet, the host lookup fails (taking quite a long time I must add) and will show the ip address. (at least that is working for me like that..) Mvgr, Martin > -Original Message- > From: Mark Diggory [mailto:[EMAIL PROTECTED]] > Sent: Friday, August 17, 2001 5:06 PM > To: [EMAIL PROTECTED] > Subject: Fwd: REMOTE_HOST not showing up in Tomcat3.2 > > > > >Hello, > > > >Is there something I have to configure in mod_jk to get the remote host > >information > >to resolve. Its apparently available in Apache but seems to not show up > >in Tomcat when I do request.getRemoteHost(). How, is this setup > / configured? > > > >thank you, > >Mark Diggory > >
RE: Why and How Tomcat before Apache?
I will see if I can find time this weekend to throw together a simple example / manual.. You seem to know Debian, so you can change that accordingly.. I'll send it to you when I'm done.. (maby someone can add the solaris part and maby other linux disto's..) nice for a tomcat-unix howto or something? Mvgr, Martin > -Original Message- > From: Rob S. [mailto:[EMAIL PROTECTED]] > Sent: Friday, August 17, 2001 4:48 PM > To: [EMAIL PROTECTED] > Subject: Re: Why and How Tomcat before Apache? > > > "How do i make something automatically startup in *nix?" > > This is more of a *nix question than a Tomcat question, really. > You're better off searching the Internet or reading your *nix admin book. > > - r > > On Fri, 17 Aug 2001 16:43:41 +0200 [EMAIL PROTECTED] wrote: > > Ok ! but.. do you know the way to make this in automatic ( with > scripts at > > system start ) ?? > > > > - Original Message - > > From: "Barnabas Yohannes" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Friday, August 17, 2001 3:39 PM > > Subject: Re: Why and How Tomcat before Apache? > > > > > > > I cannot answer your "why" question, because, I am not one of the > > developers > > > of apache or tomcat. But here is the answer to your > "how" question: > > > > > > *To stop and start your tomcat: > > > > > > cd /usr/local/tomcat > > > > > > bin/shutdown.sh > > > > > > bin/startup.sh > > > > > > *Exit from tomcat and go to your apache server: > > > > > > su > > > > > > /usr/local/apache/bin/apachectl restart > > > > > > exit > > > > > > * Another way of stopping and starting apache: > > > > > > bin/apachectl stop > > > bin/apachectl start > > > > > > > > > > > > - Original Message - > > > From: "Roberto B." <[EMAIL PROTECTED]> > > > To: <[EMAIL PROTECTED]> > > > Sent: Friday, August 17, 2001 4:50 AM > > > Subject: Why and How Tomcat before Apache? > > > > > > > > > > I have a Linux/Debian system. > > > > I want to use Apache as web-server and Tomcat only for JSP file. > > > > > > > > Is it true that it is necessary to make start Tomcat before Apache? > > Why?.. > > > > and if it is true.. how?? > > > > > > > > Thanks! > > > > Roberto. > > > > > > > > > > > >
RE: Why and How Tomcat before Apache?
Please tell me what is dangerous about running tomcat as root? I've taken the following security measures : port 8007 and 8009 is blocked from the outside (firewall) tomcat is not running on 8080 and only allowing communications from localhost (127.0.0.1). The only potential problem is that if a tomcat /apache bug is exploited, you potentially have a problem. Looks pretty solid to me though.. Mvgr, martin > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf > Of David Cassidy > Sent: Friday, August 17, 2001 4:54 PM > To: [EMAIL PROTECTED] > Subject: Re: Why and How Tomcat before Apache? > > > unless you want to run your tomcat as root ( Very unwise ) > makesure that you use a 'su' command in your > call to tomcat's start script... > > > > David > > Rui Miguel Seabra wrote: > > > > Just hack apachectl script to launch tomcat just before apache, and to > > shut it down right aftwards. > > > > On 17 Aug 2001 16:43:41 +0200, Roberto B. wrote: > > > Ok ! but.. do you know the way to make this in automatic ( with > > scripts at > > > system start ) ?? > > > > > > - Original Message - > > > From: "Barnabas Yohannes" <[EMAIL PROTECTED]> > > > To: <[EMAIL PROTECTED]> > > > Sent: Friday, August 17, 2001 3:39 PM > > > Subject: Re: Why and How Tomcat before Apache? > > > > > > > > > > I cannot answer your "why" question, because, I am not one of the > > > developers > > > > of apache or tomcat. But here is the answer to your "how" question: > > > > > > > > *To stop and start your tomcat: > > > > > > > > cd /usr/local/tomcat > > > > > > > > bin/shutdown.sh > > > > > > > > bin/startup.sh > > > > > > > > *Exit from tomcat and go to your apache server: > > > > > > > > su > > > > > > > > /usr/local/apache/bin/apachectl restart > > > > > > > > exit > > > > > > > > * Another way of stopping and starting apache: > > > > > > > > bin/apachectl stop > > > > bin/apachectl start > > > > > > > > > > > > > > > > - Original Message - > > > > From: "Roberto B." <[EMAIL PROTECTED]> > > > > To: <[EMAIL PROTECTED]> > > > > Sent: Friday, August 17, 2001 4:50 AM > > > > Subject: Why and How Tomcat before Apache? > > > > > > > > > > > > > I have a Linux/Debian system. > > > > > I want to use Apache as web-server and Tomcat only for JSP file. > > > > > > > > > > Is it true that it is necessary to make start Tomcat before > > Apache? > > > Why?.. > > > > > and if it is true.. how?? > > > > > > > > > > Thanks! > > > > > Roberto. > > > > > > > > > > > > > > > -- > > + No matter how much you do, you never do enough -- unknown > > + Whatever you do will be insignificant, > > | but it is very important that you do it -- Ghandi > > + So let's do it...? >
RE: Cookies and IE5.5
If it returns null, then I read something about that this week.. Maby searching on of the archives for cookies helps you find the problem / solution... Also tomcat version could be important and the exception (if any..) Mvgr, Martin > -Original Message- > From: David Oxley [mailto:[EMAIL PROTECTED]] > Sent: Friday, August 17, 2001 5:28 PM > To: '[EMAIL PROTECTED]' > Subject: Cookies and IE5.5 > > > I am trying to set a cookie that can be picked up from a > different server to > the one setting it. They both belong to the same domain (daves.domain.com > and daves2.domain.com). > The first server sets the cookie and redirects to the second server where > the cookie is read. > On IE5.5 and above the cookie does not get set, but it works fine for IE5 > and Mozilla. > Is this a bug with later versions of IE or am I doing something wrong. > This is the code: > Cookie c = new Cookie("User", "DAVE"); > c.setDomain("domain.com"); > c.setPath("/servlet/LogonServlet"); > c.setMaxAge(60); > c.setVersion(1); > resp.addCookie(c); > resp.sendRedirect (redirect_url) ; > > Dave. > [EMAIL PROTECTED] >
RE: Why and How Tomcat before Apache?
> check out if you can do a rm -rf * from within java... Yep works cool.. It saves a lot of work if I'm the admin, integrator and programmer at the same time ;-)), so those things don't slip through (we have a small team of programmers and all things are tested first.. a nice form to type in rm -f that also gets invoked will never get through ;-)) > Don't know if you can, don't know how well the JVM will > protect you but Nope, if I want to do that, then it must work ;).. (we use all system options quite heavily, also admin of /etc/passwd etc, so we need access sometimes..) > I run mine as a different user. I you don't block 8007 and 8009 for unautharized access, you will get a lot of bad packets (at least in 3.3 and ajp13, don't know what happens with older versions though). Someone eventually could find a bug and exploit and down your server or delete your webapp or other data. You don't solve that problem with running as a seperate user.. > Do you run your apache as root ? Nope as nobody (which is also not completely safe on default installs, since it also used by some daemons..) Mvgr, Martin > David > > > Martin van den Bemt wrote: > > > > Please tell me what is dangerous about running tomcat as root? I've > > taken > > the following security measures : > > port 8007 and 8009 is blocked from the outside (firewall) > > tomcat is not running on 8080 and only allowing communications from > > localhost (127.0.0.1). > > The only potential problem is that if a tomcat /apache bug is exploited, > > you potentially have a problem. > > > > Looks pretty solid to me though.. > > > > Mvgr, > > martin > > > > > -Original Message- > > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On > > Behalf > > > Of David Cassidy > > > Sent: Friday, August 17, 2001 4:54 PM > > > To: [EMAIL PROTECTED] > > > Subject: Re: Why and How Tomcat before Apache? > > > > > > > > > unless you want to run your tomcat as root ( Very unwise ) > > > makesure that you use a 'su' command in your > > > call to tomcat's start script... > > > > > > > > > > > > David > > > > > > Rui Miguel Seabra wrote: > > > > > > > > Just hack apachectl script to launch tomcat just before apache, and > > to > > > > shut it down right aftwards. > > > > > > > > On 17 Aug 2001 16:43:41 +0200, Roberto B. wrote: > > > > > Ok ! but.. do you know the way to make this in automatic ( with > > > > scripts at > > > > > system start ) ?? > > > > > > > > > > - Original Message - > > > > > From: "Barnabas Yohannes" <[EMAIL PROTECTED]> > > > > > To: <[EMAIL PROTECTED]> > > > > > Sent: Friday, August 17, 2001 3:39 PM > > > > > Subject: Re: Why and How Tomcat before Apache? > > > > > > > > > > > > > > > > I cannot answer your "why" question, because, I am not one of > > the > > > > > developers > > > > > > of apache or tomcat. But here is the answer to your "how" > > question: > > > > > > > > > > > > *To stop and start your tomcat: > > > > > > > > > > > > cd /usr/local/tomcat > > > > > > > > > > > > bin/shutdown.sh > > > > > > > > > > > > bin/startup.sh > > > > > > > > > > > > *Exit from tomcat and go to your apache server: > > > > > > > > > > > > su > > > > > > > > > > > > /usr/local/apache/bin/apachectl restart > > > > > > > > > > > > exit > > > > > > > > > > > > * Another way of stopping and starting apache: > > > > > > > > > > > > bin/apachectl stop > > > > > > bin/apachectl start > > > > > > > > > > > > > > > > > > > > > > > > - Original Message - > > > > > > From: "Roberto B." <[EMAIL PROTECTED]> > > > > > > To: <[EMAIL PROTECTED]> > > > > > > Sent: Friday, August 17, 2001 4:50 AM > > > > > > Subject: Why and How Tomcat before Apache? > > > > > > > > > > > > > > > > > > > I have a Linux/Debian system. > > > > > > > I want to use Apache as web-server and Tomcat only for JSP > > file. > > > > > > > > > > > > > > Is it true that it is necessary to make start Tomcat before > > > > Apache? > > > > > Why?.. > > > > > > > and if it is true.. how?? > > > > > > > > > > > > > > Thanks! > > > > > > > Roberto. > > > > > > > > > > > > > > > > > > > > > > > -- > > > > + No matter how much you do, you never do enough -- unknown > > > > + Whatever you do will be insignificant, > > > > | but it is very important that you do it -- Ghandi > > > > + So let's do it...? > > > >
RE: Why and How Tomcat before Apache?
yep ;-)) > -Original Message- > From: Roberto B. [mailto:[EMAIL PROTECTED]] > Sent: Friday, August 17, 2001 5:41 PM > To: [EMAIL PROTECTED] > Subject: Re: Why and How Tomcat before Apache? > > > Do I have to insert this script in my rc2.d dir. and link it in init.d ? > > R. > > - Original Message - > From: "David Cassidy" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Friday, August 17, 2001 5:06 PM > Subject: Re: Why and How Tomcat before Apache? > > > > Ah what the hell try this ... > > ( works for me !) > > > > > > Watch out for the line wraps ! > > > > > > - 8< -- snip > > #!/bin/sh > > > > # Init file for Jakarta Tomcat > > # > > # chkconfig: 345 98 00 > > # description: Jakarta tomcat daemon > > # > > # processname: > > # config: /usr/local/tomcat/conf/server.xml > > > > RETVAL=0 > > > > TOMCAT_HOME=/usr/local/tomcat > > export TOMCAT_HOME > > > > case "$1" in > > start) > > F=`$0 status` > > if [ "$?" = "255" ] ; then > > echo -n "Starting Tomcat : " > > su - tomcat -c "cd $TOMCAT_HOME/bin; > > $TOMCAT_HOME/bin/startup.sh > $TOMCAT_HOME/logs/tomcat_stdout.log 2> > > $TOMCAT_HOME/logs/tomcat_stderr.log" > > echo " [ OK ] " > > else > > echo "Tomcat is already running" > > fi > > echo > > ;; > > stop) > > F=`$0 status` > > if [ "$?" = "255" ] ; then > > echo "Tomcat isn't running" > > else > > echo -n "Shutting down Tomcat : " > > su - tomcat -c "cd $TOMCAT_HOME/bin ; > > $TOMCAT_HOME/bin/shutdown.sh > $TOMCAT_HOME/logs/tomcat_down_stdout.log > > 2> $TOMCAT_HOME/logs/tomcat_down_stderr.log" > > echo " [ OK ] " > > fi > > echo > > ;; > > restart) > > $0 stop > > sleep 2 > > $0 start > > RETVAL=$? > > ;; > > status) > > S=`ps auxww | grep org.apache.tomcat.startup.Tomca[t] | wc -l` > > E=`expr $S` > > if [ "$E" = "0" ] ;then > > echo "Tomcat is stopped" > > RETVAL=-1 > > else > > PIDS=`ps auxww | grep org.apache.tomcat.startup.Tomca[t] > > | awk '{FS=" "}{print $2}'` > > P=`echo $PIDS` > > echo "Tomcat ( $P ) is running" > > RETVAL=0 > > fi > > ;; > > *) > > echo "Usage: tomcat {start|stop|restart|status}" > > exit 1 > > esac > > > > exit $RETVAL > > > > - 8< -- snip > > > > > > David Cassidy wrote: > > > > > > unless you want to run your tomcat as root ( Very unwise ) > > > makesure that you use a 'su' command in your > > > call to tomcat's start script... > > > > > > David > > > > > > Rui Miguel Seabra wrote: > > > > > > > > Just hack apachectl script to launch tomcat just before > apache, and to > > > > shut it down right aftwards. > > > > > > > > On 17 Aug 2001 16:43:41 +0200, Roberto B. wrote: > > > > > Ok ! but.. do you know the way to make this in automatic ( with > > > > scripts at > > > > > system start ) ?? > > > > > > > > > > - Original Message - > > > > > From: "Barnabas Yohannes" <[EMAIL PROTECTED]> > > > > > To: <[EMAIL PROTECTED]> > > > > > Sent: Friday, August 17, 2001 3:39 PM > > > > > Subject: Re: Why and How Tomcat before Apache? > > > > > > > > > > > > > > > > I cannot answer your "why" question, because, I am not > one of the > > > > > developers > > > > > > of apache or tomcat. But here is the answer to your "how" > > > question: > > > > > > > > > > > > *To stop and start your tomcat: > > > > > > > > > > > > cd /usr/local/tomcat > > > > > > > > > > > > bin/shutdown.sh > > > > > > > > > > > > bin/startup.sh > > > > > > > > > > > > *Exit from tomcat and go to your apache server: > > > > > > > > > > > > su > > > > > > > > > > > > /usr/local/apache/bin/apachectl restart > > > > > > > > > > > > exit > > > > > > > > > > > > * Another way of stopping and starting apache: > > > > > > > > > > > > bin/apachectl stop > > > > > > bin/apachectl start > > > > > > > > > > > > > > > > > > > > > > > > - Original Message - > > > > > > From: "Roberto B." <[EMAIL PROTECTED]> > > > > > > To: <[EMAIL PROTECTED]> > > > > > > Sent: Friday, August 17, 2001 4:50 AM > > > > > > Subject: Why and How Tomcat before Apache? > > > > > > > > > > > > > > > > > > > I have a Linux/Debian system. > > > > > > > I want to use Apache as web-server and Tomcat only > for JSP file. > > > > > > > > > > > > > > Is it true that it is necessary to make start Tomcat before > > > > Apache? > > > > > Why?.. > > > > > > > and if it is true.. how?? > > > > > > > > > > > > > > Thanks! > > > > > > > Roberto. > > > > > > > > > > > > > > > > > > > > > > > -- > > > > + No matter how much you do, you never do enough -- unknown > > > > + Whatever you do will be insignificant, > > > >
RE: Tomcat before Apache
If you created the bash script not in vi, but eg adjusted stuff in write and saved it, you need to fix the lineendings.. (there is a util for that which was added again on rh7.1, but I forgot the name).. You can test if this is the problem by moving the script to eg tomcat_old do a vi tomcat and do something that show up at the screen.. If that works, you know for sure that your bash file is messed up.. Also a hint : try running it after startup and see if it works.. Mvgr, Martin > -Original Message- > From: Roberto B. [mailto:[EMAIL PROTECTED]] > Sent: Friday, August 17, 2001 5:37 PM > To: [EMAIL PROTECTED] > Subject: Tomcat before Apache > > > I use Linux/Debian as root, Apache 1.3 and Tomcat 4 b6 > > I want to start automatically Tomcat before Apache. > I made this things : > > 1) I created this script named "tomcat": > > #! /bin/sh > TOMCAT_HOME=/usr/tomcat4b6 > # Test tomcat.sh > if [ ! -x $TOMCAT_HOME/bin/tomcat.sh ] > then > echo "Tomcat not found" > exit > fi > case $1 in > start) > # Start service > $TOMCAT_HOME/bin/startup.sh > echo -ne "Tomcat started \n" > ;; > stop) > $TOMCAT_HOME/bin/shutdown.sh > ;; > esac > > 2) I insert this script in dir /etc/init.d > 3) chmod u+x tomcat > 4) in /etc/rc2.d (because default runlever is 2 in file inittab) this > command (because i have @S91apache): > ln -s ../init.d/tomcat S90tomcat > > 5) I rebooted the system and this is the result: > > : > : > etc/init.d/rc: /etc/rc2.d/S90tomcat: No such file or directory > apache started > : > > Why?? > > Roberto > > > >
RE: Why and How Tomcat before Apache?
> > down your server or delete your webapp or other data. You don't solve > > that > > problem with running as a seperate user.. > > Tomcats ports are not visible from the outside. Only access is through > apache - ie mod_jk ... do a telnet to your port 8007 or 8009 and you'll see what I mean.. Mvgr, Martin
RE: Why and How Tomcat before Apache?
eh... addition : that is if you didn't change the defaults ;)) Would have saved me extra firewall entries ;-(( Mvgr, martin > -Original Message- > From: Martin van den Bemt [mailto:[EMAIL PROTECTED]] > Sent: Saturday, August 18, 2001 12:27 AM > To: [EMAIL PROTECTED] > Subject: RE: Why and How Tomcat before Apache? > > > > > down your server or delete your webapp or other data. You don't solve > > > that > > > problem with running as a seperate user.. > > > > Tomcats ports are not visible from the outside. Only access is through > > apache - ie mod_jk ... > > do a telnet to your port 8007 or 8009 and you'll see what I mean.. > > Mvgr, > Martin >
RE: Why and How Tomcat before Apache?
> -Original Message- > From: Pier P. Fumagalli [mailto:[EMAIL PROTECTED]] > Sent: Saturday, August 18, 2001 3:41 AM > To: [EMAIL PROTECTED] > Subject: Re: Why and How Tomcat before Apache? > > > Martin van den Bemt at [EMAIL PROTECTED] wrote: > > >>> down your server or delete your webapp or other data. You don't solve > >>> that problem with running as a seperate user.. > >> > >> Tomcats ports are not visible from the outside. Only access is through > >> apache - ie mod_jk ... > > > > do a telnet to your port 8007 or 8009 and you'll see what I mean.. > > It takes 5 minutes to write an AJP client that hacks into Tomcat. I guess that only works when the ports are bot blocked by a firewall and eg the address="127.0.0.1" is not added to the server.xml ? > We started > saying this in 1998, when we released Apache JServ 1.0 and I cry > to see that > still today people do not think about it... (BTW, in AJP version following > the original, the authentication mechanism was disabled because of > performance issues - and because I wasn't there when they "designed" those) Not everyone was around by then... And when growing up with MS, not a lot of people are made aware of security issues, since it has nice ui to let you handle everything.. (this was sarcasme btw..).. Hope people are alarmed by the code red thing in IIS though that their systems are far from secure. > Check out <http://www.apache.org/~stefano/papers/> in the 1998 section. > (Both of them are quite nice readings, or at least I hope it will be as nice as it was writing them) Didn't read it completely but I read the security section and it's a nice overview of what can go wrong.. The problem is that not much companies have the knowledge and willing to pay someone to prevent a lot of stuff from happening. (how good is eg unix security when you run sendmail?) (I use djb stuff btw).. Maby a nice security advisory should be made (just a couple of links for those issues you mentioned in your paper and some extra tips) and make that document highly noticeable.. You can stop crying (quoting you..) then and say that everything was done to say to the user : do something about security.. If they don't do it anyway : too bad for them.. Mvgr, Martin
RE: tomcat and proxuy cache server problem
A problem I had recently that someone forgot to add the FQDN in the apache configs (ServerName). There only was the hostname.. That confuses proxies regularly and sometimes even browsers.. So if your servername says www , it should be www.example.com.. Hope this helps.. (cannot help you with loadbalancing issues, since I never played with it.) Mvgr, Martin > -Original Message- > From: hatim [mailto:[EMAIL PROTECTED]] > Sent: Saturday, August 18, 2001 10:12 PM > To: [EMAIL PROTECTED] > Subject: tomcat and proxuy cache server problem > > > Hello , > im using the latest release of mod_backhand with apache 1.3.20 and with > jdk1.3 and tomcat . > > Desciption of my architecture : > > i have 2 web servers that make the same work , i use mod_backhand for the > loadbalancing between them . > and i use workers.properties in the Tomcat configuration to allow > loadballancing between the two tomcat server . > i have one dns server using bind who makes Round Robin with 1 > secondes TTL > for the both entries ( server web 1 and server web 2 ) > they are accessible from the internet under the same name www.server.com for ex) when a client connect for the first time in www.server.com , he is redirect to server web 1 ( for exemple ) . then a session is created (jsessionid=... )in this server , and when he makes another GET , he must be redirected to the same server web where he has a session opened . when i tried to connect from the internet to www.server.com with a direct connection , it s work very well session are always retrieved . but when i tried to surf on www.server.com using a proxy -cache server like squid ) to access to the internet , i have a problem with a JSP request . the client isnot redirected to the right server , so he didnt retrive his session . and i dont know why ? Any idea ? thank you from your help !! do you thing that it is possible to resolve this problem with installing a cluster for the 2 server web ? Any solution ? Hatim
RE: https, redirect
I think you have to install the https protocol handler from the jsse pacakage. Documentation is provided with jsse to get it working (I had troubles with the non programming solution, the java.policy file, so if you bump in to that, register it in your servlet Mvgr, Martin > -Original Message- > From: Erik Melkersson [mailto:[EMAIL PROTECTED]] > Sent: Monday, August 20, 2001 4:50 PM > To: [EMAIL PROTECTED] > Subject: https, redirect > > > Hi! > > I'm using Apache and tomcat version 4. Apache has ssl turned on and I > use https. > > I'm trying to make a redirect using HttpServletResponse.sendRedirect(...) > > When I enter the absolute or relative url to the page it adds only http > instead of https. This has been discussed before and the only real > answer I've seen working is to hardcode the full url, like > HttpServletResponse.sendRedirect("https://server/path/file";) > > But that doesnt work for me, I get a java.lang.IllegalArgumentException > > When I try to enter something with https. > > > Thankful for any help! > > /Erik Melkersson > > > --- > Erik Melkersson > [EMAIL PROTECTED] > http://www.edu.isy.liu.se/~erime844 > >
RE: https, redirect
Got lucky here.. I was assuming tc 3.. Mvgr, Martin > -Original Message- > From: craigmcc@localhost [mailto:craigmcc@localhost]On Behalf Of Craig > R. McClanahan > Sent: Monday, August 20, 2001 5:26 PM > To: [EMAIL PROTECTED] > Subject: RE: https, redirect > > > > > On Mon, 20 Aug 2001, Martin van den Bemt wrote: > > > I think you have to install the https protocol handler from the jsse > > pacakage. Documentation is provided with jsse to get it working (I had > > troubles with the non programming solution, the java.policy > file, so if you > > bump in to that, register it in your servlet > > > > The need to do this has (correctly) been posted as a bug in Tomcat 4. The > problem is that the implementation of sendRedirect is creating a new > java.net.URL in order to convert relative URLs to absolute (as required by > the servlet spec), and this won't work unless there are URLStreamHandlers > in place for the "https" scheme. > > Right now, Martin's workaround will fix the problem. But we're going to > change Tomcat 4 before final release so that you don't have to do it. > > > Mvgr, > > Martin > > > > Craig McClanahan > >
RE: Problem with page encoding for ISO-8859-2
- Is the data in the db stored as ISO-8859-2 ? (looks like it is stored is 8859-1) - Use UTF-8 to store the data, this way you can use UTF-8 as well as the ISO content type that corresponds with the data. If you gonna use utf 8 and run into a lot of MalformedInputExceptions you can be sure that the data is stored as 8859-1.. Mvgr, Martin > -Original Message- > From: Marcin Jaskuła [mailto:[EMAIL PROTECTED]] > Sent: Monday, August 20, 2001 8:39 PM > To: Tomcat-User > Subject: Problem with page encoding for ISO-8859-2 > > > Hi, > > I have change my JSP server form JServ to Tomcat (v. 3.2.3-1) recently and > found several problems with page encoding. > I have looked into the archive and found a lot of mails about the problem > but no simple solutions. > > The problems are: > > 1. Compilation problem: > I wrote some simple jsp page, which consists of some polish character: > > <%@ page contentType="text/html; charset=iso-8859-2" %> > > > > > > > ą > > > > The server crashes with error 500: > > Internal Servlet Error: > > org.apache.jasper.JasperException: Unable to compile class for JSP > Found 1 semantic error compiling "_0002fa_0002ejspa_jsp_0.java": > > 56. out.write("\n\n\n\n\n\n\n\u00-$\u00)% > <--\n\n\n"); > > *** Error: The value of this "String" literal is invalid. Perhaps it > contains a bad escape sequence? > > If I change "ą" to "a" it works ! > In my opinion the characters are translated to the Unicode in wrong way. > > 2. I cannot get proper values from the forms. When I use > request.getParameter() method I get different characters then I write into > form's fields (returned characters depend on the "page contentType" value > but always are wrong). > > 3. When I try to print some data from a database I get wrong characters in > the output ! > > > The best solution is to turn off all encoding of IO streams and before > compilation of the jsp page. Maybe somebody has done it already > or there is > some other method to solve the problems. > > Bye > Marcin > > >
RE: probing tomcat
Port 8007 shouldn't be available for that purpose.. It should only accept connections from the webserver you are running. If you telnet in, you will get a lot of bad packets and if you use an older version of tomcat, then tomcat/apache connection will be down when you telnet in.. If you run standalone check to see if there is a reply on port 8080, if you don't run standalone check to see if if a servlet gives a response. Mvgr, Martin > -Original Message- > From: Richard Draucker [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, August 21, 2001 2:50 PM > To: [EMAIL PROTECTED] > Subject: Re: probing tomcat > > > 1) Try hitting it on its default port, e.g. 8080 > 2) Try to telnet to it on its ajp port, e.g. 8007 > > On Tuesday 21 August 2001 08:32 am, you wrote: > > Hi, > > does anybody know whether there exists a way to probe from a remote > > computer whether tomcat is still alive ? > > > > Steven > >
RE: Does response.sendRedirect() work in tomcat3.3?
About 600 servlets at our site use the redirect (not using jsp's) and it works great.. mvgr, Martin > -Original Message- > From: Brandon Cruz [mailto:[EMAIL PROTECTED]] > Sent: Thursday, August 23, 2001 9:33 PM > To: [EMAIL PROTECTED] > Subject: Does response.sendRedirect() work in tomcat3.3? > > > When using tomcat 3.2.1 with apache, no matter what trick we > tried, we could > not get response.sendRedirect() to work properly, the page printed up > garbage 90% of the time. Is anyone using response.sendRedirect() in their > jsp code with 3.3 connected to apache? > >
RE: charset problem
The simplest solution is to set you form to encode for UTF-8 and store the data as UTF-8. This way you can output your greek characters as UTF-8 and ISO-8859-7. Mvgr, Martin > -Original Message- > From: Giannis [mailto:[EMAIL PROTECTED]] > Sent: Monday, August 27, 2001 1:46 PM > To: [EMAIL PROTECTED] > Subject: charset problem > > > I make some JSP pages on Jacarta tomcat. > I have problem with the character set. > I use content type ISO-8859-7 but the server doesnt appear the characters > (it appear ?) even if I use a META tag or a > page directive for the contentType. > The problem is especially on request.getParameter when I submit a form. > Please help > >
RE: charset problem
I will send a simple example tonight how to get this solved without too much hassle.. Mvgr, Martin > -Original Message- > From: yilmaz [mailto:[EMAIL PROTECTED]] > Sent: Monday, August 27, 2001 3:01 PM > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: Re: charset problem > > > hi Giannis > i had the same problem > no matter what i did, didn't help. > at last the ParameterParser.class (which is bundled with oreilly > package and > can be downloaded from www.servlets.com) solved my problem. > First try the straightforward method as below: > String yourparameter=req.getPrameter("parametername"); > yourparameter=new String(yourparameter.getBytes("ISO-8859-1", > "ISO-8859-7"); > if it doesn't help, use the ParameterParser.class to solve your problem. > hope it helps > a guy from your neighbour country (Turkey):) > - Original Message - > From: "Giannis" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Monday, August 27, 2001 7:45 PM > Subject: charset problem > > > > I make some JSP pages on Jacarta tomcat. > > I have problem with the character set. > > I use content type ISO-8859-7 but the server doesnt appear the > characters > > (it appear ?) even if I use a META tag or a > > page directive for the contentType. > > The problem is especially on request.getParameter when I submit a form. > > Please help > > > > > > >
RE: Content-Length limited to 2^31-1???
tomcat 3.2.3 is not http 1.1.. Mvgr, Martin > -Original Message- > From: David Daney [mailto:[EMAIL PROTECTED]] > Sent: Thursday, August 30, 2001 11:48 PM > To: [EMAIL PROTECTED] > Subject: Content-Length limited to 2^31-1??? > > > The problem I am having is that tomcat 3.2.3 seems to (kind of) limit > content length to Integer.MAX_VALUE (2^31-1 or 2GB). > > If I want to serve very large objects things do not work so well. > > I seems that ServletResponse.SetContentLength(int) is the prefered > manner to sent the content length of a servlet response and that the > default implemtation for the "HEAD" method in HttpServlet also is > limited to the range of int values. > > My reading of the HTTP/1.1 spec does not indicate that there are any > limitations to content length in the HTTP protocol. > > So my question is: Am I all messed up, or is Tomcat and the servlet > spec/implementation sub-optimal? > > David Daney > >
RE: HANDLER THREAD PROBLEM
Your are doing a request to the port that talks to apache and tomcat talk to.. That is not a protocol like http, it is the ajp protocol.. You have to do a request to http:// or http://:8080. Mvgr, Martin > -Original Message- > From: Juan Andres Sanin Pineda [mailto:[EMAIL PROTECTED]] > Sent: Thursday, September 06, 2001 5:03 AM > To: [EMAIL PROTECTED] > Subject: HANDLER THREAD PROBLEM > > > > Hi. > > I startup tomcat and every thing es ok. > > but when I try to access http://:8007 > in the console view the follow IOException: > > HANDLER THREAD PROBLEM: java.io.IOException: Stream broken > java.io.IOException: Stream broken > at > org.apache.tomcat.service.connector.AJP12RequestAdapter.readNextRe > quest(Ajp12ConnectionHandler.java:426) > at > org.apache.tomcat.service.connector.Ajp12ConnectionHandler.process > Connection(Ajp12ConnectionHandler.java:147) > at > org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) > at > org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501) > at java.lang.Thread.run(Thread.java:484) > > > what happen? > > thanks! > > Juan > >
RE: TRaX Transform Throwable Exception
Maybe it's better you ask the creators of the javax.xml package.. or step through the source (source is provided as far as I know..) Mvgr, Martin > -Original Message- > From: Evgeniy Strokin [mailto:[EMAIL PROTECTED]] > Sent: Thursday, September 06, 2001 4:55 PM > To: Tomcat-User@Jakarta. Apache. Org > Subject: TRaX Transform Throwable Exception > > > HI > > I have big XML (24 kB) and I try to make transformation to HTML. > And I get: > javax.xml.transform.TransformerException: TRaX Transform Throwable > > But if XML not so big everything well. > What this exception means? > > Thanks > Jenya > --- > NetZero Platinum > Only $9.95 per month! > Sign up in September to win one of 30 Hawaiian Vacations for 2! > http://my.netzero.net/s/signup?r=platinum&refcd=PT97 >