Error: Connection was refused when attempting to contact 127.0.0.1
Hi people! I'm facing this error with my Tomcat (version 4.0.6) on Debian. It seems that is everything ok: I can access the JSP and servlets examples, the tomcat docs and others without any errors. The problem occurs when I attempt to run an application called maca_ad_web.war, that is available at http://maca.sourceforge.net. I put the war file on the webapps folder; then I start tomcat (startup.sh); so, the folder maca_ad_web is created. So, when I put the URL http://127.0.0.1:8080/maca_ad_web I received the error listed. Someone can help me? André Thiago. __ Faça ligações para outros computadores com o novo Yahoo! Messenger http://br.beta.messenger.yahoo.com/ __ Faça ligações para outros computadores com o novo Yahoo! Messenger http://br.beta.messenger.yahoo.com/
Error: Connection was refused when attempting to contact
Hi people! I'm facing this error with my Tomcat (version 4.0.6) on Debian. It seems that is everything ok: I can access the JSP and servlets examples, the tomcat docs and others without any errors. The problem occurs when I attempt to run an application called maca_ad_web.war, that is available at http://maca.sourceforge.net. I put the war file on the webapps folder; then I start tomcat (startup.sh); so, the folder maca_ad_web is created. So, when I put the URL http://127.0.0.1:8080/maca_ad_web I received the error listed. Someone can help me? André Thiago. __ Faça ligações para outros computadores com o novo Yahoo! Messenger http://br.beta.messenger.yahoo.com/
Jsvc and JRockit
: 0006d8b5 b7fec570 bfffeaf4 b8000998 0003 b7fdec58 bfffeab4: 0001 b8000998 b7fde4f0 bfffeaf4 bfffeacc: bfffea94 bfffebfc bfffeae4: 633d 703d bfffeb08 b7ff7a89 b7fcd65a 00ebbb0a bfffeafc: 00ebbb0a bfffeb68 b7ff3571 b7ebbb0a b7fcd682 0001 bfffeb14: b7fdeac8 0002 bfffeb2c: b80006bc b7fdec58 0020 b7ebbbcc bfffeb44: b7eb6bb4 b7eae384 b7fde508 0005 b7fde800 b7fdea78 bfffeb5c: b80006bc b7fde420 073c3a79 bfffec10 b7ff3930 b7fcd092 bfffeb74: 073c3a79 b7fcc0f4 bfffebcc b8000998 0003 b7fdea78 bfffeb8c: 0001 0001 b8000998 0002 bfffebcc bfffeba4: b80001b8 b7fdec58 0001 bfffec38 bfffebbc: b7fde280 b7fcd092 b7fec570 b7fec6f6 b7eaff44 b7fde508 bfffebd4: b7fec000 08048b10 08048b10 b80001b8 0002 b80006bc bfffebec: bfffec14 b7ff81da b7eb6a54 bfffec04: b80006bc b7fde280 b7fde420 bfffec48 b7ff69c4 643d bfffec1c: 693d bfffec3c 633d 703d bfffec48 b7ff7a89 bfffec34: b7fcd65a 00ebbb0a 00ebbb0a bfffeca8 b7ff3571 b7ebbb0a bfffec4c: b7fcd682 bfffed01 b7fdec38 bfff0004 b7fdeac8 bfffec64: b7fd0002 0040 0020 bfffec7c: b7ebbbcc b7eb6bb4 b7eae384 b7fde508 0005 bfffec94: b7fde800 b7fdea78 b80006bc b7fde420 07ab9ab2 bfffed50 bfffecac: b7ff3930 b7fcc695 07ab9ab2 b7fcbda4 bfffed0c b8000998 bfffecc4: 0003 b7fdea78 0001 0001 b8000998 bfffecdc: bfffed0c bfffed6c b7fde508 bfffecf4: bfffed78 b7fde280 b7fcc695 b80001b8 0004 bfffed0c: b7eb28f4 b7fde508 bfffed24: b80006bc bfffed3c: b7fde508 b7fde6a8 b80006bc b7fde280 b7fde420 bfffed88 bfffed54: b7ff69c4 b7fde420 b7fdea78 0001 0001 bfffed6c: b7fd8ad8 b7fcbda4 b7fcc695 b7eb28f4 b7fd8a4c bfffedd8 bfffed84: b7fd6910 b074 b7ff6b80 bfffed68 bfffedd8 bfffed9c: b7fd6910 b074 b7fce88e bfffedd8 b7fd6910 bfffedd8 Code: b7f14261: b874c689 5d8bf089 fc758bf8 c35dec89 04244489 0e2c838b b7f14279: 0489 1c93ff24 eb2c 48b38dba eb0e 8b9090b2 b7f14291: 8b042454 31082444 515151c9 51515151 51515151 51515151 b7f142a9: 51515151 51515151 51515151 51515151 51515151 51515151 b7f142c1: 51515151 51515151 51515151 51515151 6a515151 6a006a00 b7f142d9: 6a006a00 8a006a00 74c98408 0c0c8827 f601488a 1c74ffc1 b7f142f1: 8a0c0c88 c1f60248 881174ff 488a0c0c 04c08303 f60c0c88 b7f14309: d375ffc1 83fc428d 088a04c0 740c0c84 01488a1b 740c0c84 b7f14321: 02488a12 740c0c84 03488a09 750c0c84 404040de 0100c481 b7f14339: d029 559090c3 5657e589 8b10ec83 558b0c75 0eb60f08 b7f14351: 7b74c985 00768d4a 0027bc8d 4200 8502b60f 397174c0 b7f14369: 0ff475c8 85017eb6 835c74ff 758902c6 00b68df4 4200 b7f14381: 3902b60f 902274f8 0026b48d 3900 85ec74c8 424174c0 b7f14399: 3902b60f 85e074c8 423574c0 eb02b60f 01428de6 8bec4589 b7f143b1: b60ff445 894a0172 7589f045 30b60fe8 74e87539 f0458b52 b7f143c9: 4589f685 83d475f4 d08910c4 c35d5f5e 3110c483 5d5f5ec0 b7f143e1: ec45ffc3 0fec458b 45ff30b6 f4458bf4 0fe87589 753930b6 b7f143f9: 85ca75e8 ffd074f6 8b40ec45 b60fec75 f4458936 0fe87589 b7f14411: 753930b6 85ae75e8 ebc675f6 8b9090b2 8dc3241c 00b6 b7f14429: 00bf8d00 5300 eae8 e2c381ff 89000b2d 00ec81fa b7f14441: b901 0040 c031e789 89abf3fc 24948bd7 0108 b7f14459: 0eb0838b fa83 d0440f00 840fd285 00a2 0c24848b Loaded modules: (* denotes the module causing the exception) 0x08048000-0x0804e42f (null) 0xe000-0xe5fb (null) 0xb7fdb000-0xb7fdcd33 /lib/libdl.so.2 0xb7fca000-0xb7fd782b /lib/tls/libpthread.so.0 0xb7eab000-0xb7fc3a2f* /lib/tls/libc.so.6 0xb7fec000-0xb7fff153 /lib/ld-linux.so.2 0xb7ea-0xb7ea846b /lib/libnss_files.so.2 0xb7e8a000-0xb7e92cfb /lib/libnss_nisplus.so.2 0xb7e77000-0xb7e865d7 /lib/libnsl.so.1 0xb7e6e000-0xb7e75603 /lib/libnss_nis.so.2 0xb7e66000-0xb7e6c893 /lib/libnss_compat.so.2 0xb7bf1000-0xb7dfc95f /home/acruz/jrockit-jdk1.5.0_02/jre/lib/i386/jrockit/libjvm.so 0xb7bc2000-0xb7be3a7f /lib/tls/libm.so.6 Main Thread id=? idx=0x2 tid=-1209360256 lastJavaFrame=0xfffc Thread Stack Trace: Additional information is available in: /home/acruz/tmp/daemon-1.0.1/src/native/unix/jrockit.3366.dump /home/acruz/tmp/daemon-1.0.1/src/native/unix/core Please send the file(s), information about your system setup and the program you were running to [EMAIL PROTECTED] Thank you. Extended, platform specific info: libc release: 2.3.3-stable Elf headers: libc ehdrs: failed. libpthread ehdrs: failed. libjvm ehdrs: failed. = END DUMP === 02/06/2005 15:05:19 3365 jsvc.exec error: Service did not exit cleanly Any help is appreciated. André - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands
Tomcat banner
Hello! Is there anyway to remove the tomcat banner that appears in the header of all pages served by tomcat? I don't want to disclose that information to my users. Thanks. André Cruz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat output gets mixed up for different requests
QM wrote: Two clients' content getting mixed up with one another: sounds like misuse of a shared variable, such as an instance variable inside the servlet class, use of the servlet context for client data, etc. I checked all variables and declarations and I'm sure that there are no variables being misused. For debugging purposes I added a System.out(this); at the beginning of the doGet() method of the servlet class. No matter which client is calling the servlet, the output of System.out(this); is always the same. The output looks like this: [EMAIL PROTECTED] So it seems that Tomcat does not spawn a new servlet for a new request, althought my web.xml file contains: servlet servlet-nameNavigation/servlet-name servlet-classNavigation/servlet-class load-on-startup5/load-on-startup /servlet With every client calling the same Method it seems very likely that the output is getting mixed up. Adding a *synchronized* in front of the doGet() method, makes the problem disappear, but also makes the Tomcat very slow. Any help will be greatly appreciated, André. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat output gets mixed up for different requests
Caldarale, Charles R wrote: From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Subject: Re: tomcat output gets mixed up for different requests So it seems that Tomcat does not spawn a new servlet for a new request As per the spec - using a single instance of the servlet is correct behavior. You should be using local variables, not instance or static fields, within the servlet. If you need to save some persistent information, the session is frequently the right place to put it. - Chuck I was able to fix the error, it was one of those stupid mistakes... It wasn't a static variable but close to it. I had PrintWriter for the response.getWriter specified as a class-variable. It is working flawlessly now. André. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat output gets mixed up for different requests
Hi, I searched the net and also the tomcat-list archives but couldn't find any help. That is what lead me here... I'm quite new to Tomcat and Java. I'm using Tomcat 3.3.2 and Java 1.4.2 under Linux. I have the following problem: I have an application that reads from a mysql database and an openldap sever. There are two classes for navigation and then my htmlgenerator class generates all the output while the ldap and mysql class retrieve all the information necessary. My problem is that as soon as two clients are accessing the tomcat server simultaniously, the output is sometimes split up between the clients. In that case, one client lacks page content, which the other one will receive instead. So the first has too few lines on his page and the other one has additional lines that were not ment for him. I know that it is quite hard to tell without the source code, but does anyone have a slight idea what could be the cause for this? André. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
TomCat Server Killed
1. I am starting Tomcat version 3.2.2 as user A (not root) on a Solaris 8 system. 2. I exit the console screen from where I started tomcat and everything is still fine. 3. Once I logout the user (From the CDE environment), tomcat is killed. Is there a workaround to start tomcat (and keep it alive) without keeping the user session still open in the CDE environment? Thanx. André Ferreira Note: The information in this e-mail is confidential and is intended solely for the addressee. If you have received this e-mail in error, you are hereby notified that any review, copying or distribution is strictly prohibited. Please inform the sender immediately and destroy the original. Siemens Limited and/or its subsidiaries accepts no liability of whatever nature for any loss, liability, damage or expense resulting directly or indirectly from access to this message and any files or links that are attached hereto.
RE: TomCat Server Killed
HYes, your method does work to get Tomcat running, but then the application I am using with tomcat does not work. It seems the application logs some kind of session-id with the CDE session. Uhh:(! André Ferreira -Original Message- From: Giuliano Gavazzi [mailto:[EMAIL PROTECTED] Sent: Thursday, December 18, 2003 15:24 To: Tomcat Users List Subject:RE: TomCat Server Killed At 11:17 am + 2003/12/18, Donie Kelly wrote: We have had the same problem with Solaris 8 and tomcat 4.1.18 No solution found yet. Tried using nohup to start the process but still exits when you leave the session. have you tried my suggestion? What happens if you start other servers in the same way? What happens if you start a java application (with no GUI) that way? Giuliano - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Note: The information in this e-mail is confidential and is intended solely for the addressee. If you have received this e-mail in error, you are hereby notified that any review, copying or distribution is strictly prohibited. Please inform the sender immediately and destroy the original. Siemens Limited and/or its subsidiaries accepts no liability of whatever nature for any loss, liability, damage or expense resulting directly or indirectly from access to this message and any files or links that are attached hereto.
Connection Reset By Peer
Can someone please explain to me what does Connection reset by peer means? Does it mean the server does not recognize the connection attempt from Tomcat or are there some other explanations. Or is there some port not available...:-(. 2003-12-17 01:14:06 - ContextManager: SocketException reading request, ignored - java.net.SocketException: Connection reset by peer at java.net.PlainSocketImpl.socketAvailable(Native Method) at java.net.PlainSocketImpl.available(PlainSocketImpl.java:501) at java.net.SocketInputStream.available(SocketInputStream.java:142) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC onnectionHandler.java:217) 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:479) Thanx. André Ferreira Note: The information in this e-mail is confidential and is intended solely for the addressee. If you have received this e-mail in error, you are hereby notified that any review, copying or distribution is strictly prohibited. Please inform the sender immediately and destroy the original. Siemens Limited and/or its subsidiaries accepts no liability of whatever nature for any loss, liability, damage or expense resulting directly or indirectly from access to this message and any files or links that are attached hereto.
Re: Can't use Cookies in tag libraries ?????
Hi With Tomcat 4.0 I have developed a taglib for visit cookies. The relevant part of the code is very similar to what you sent: HttpSession session=pageContext.getSession(); HttpServletRequest request=(HttpServletRequest)pageContext.getRequest(); HttpServletResponse response=(HttpServletResponse)pageContext.getResponse(); if(session.isNew()) { String cValue=getCookie(request.getCookies(), name).getValue(); // getCookie is an auxiliary function session.setAttribute(visit, cValue); } Cookie cookie=new Cookie(name, getTimestamp()); cookie.setMaxAge(expires); response.addCookie(cookie); (this code belongs to a tag libray) And it seems to work without problems. Andre de Jesus Arnaud Héritier wrote: Hi all !! I face up to a problem concerning the use of cookies in a tag library. In my tag library I would like to store a cookie on the client. I wrote this in the doStartTag method of my tag : HttpServletResponse httpResponse = (HttpServletResponse)pageContext.getResponse(); Cookie cookie = new Cookie(myCookie,cookie); httpResponse.addCookie(cookie); but when later I retreive the list of cookies, this one is lacking. I tried to create cookies in my servlet and it works fine. I don't understand what it can happen !!! Can't we use cookies from tag libraries my configuration is : Tomcat 3.2.3 AJP1.2 Apache 1.3.20 IE5.5 Have you any ideas ??? thanks Arnaud HERITIER Ingénieur d'études SOPRA. Group EAI Consulting Tel : +33-1-53-33-44-74 Email : [EMAIL PROTECTED] -- André de Jesus [EMAIL PROTECTED] TEKTIX - Consultoria em Sistemas de Informação, L.da http://www.tektix.com
Tomcat 4.0 access log DIES all the time for no reason
Hi Access logs are very important to server maintenance and traffic analysis. So, a log system needs to be flexible. In UNIX (Linux), flexibility is obtainable through the filesystem interface. For example, logs can be sent to a pipe instead of a regular file. Then, a process reads the pipe and inserts the lines in a database. With Tomcat and its default system of attributing dates to the log files (a very good idea), I tried to have a process run by cron that reads the logs of the previous day, writes them to a database and then deletes the previous file. But then what happens is that the log DIES when the previous file is deleted. There is even an IOException in some other log files. This is what happens predictably. But unpredictably, the log also seems to DIE for no reason, sometimes. I haven't seen this problem described anywhere in this mailing list. Is it because no one worries about logs, or because there's something wrong with my use of Tomcat? Thanks, Andre de Jesus
Tomcat 4.0 weirdness setting bean properties from checkboxes
Hi The following JSP directive: jsp:setProperty name=reg property=* / is supposed to work for any CGI parameter coming form an HTML form. But with HTML form checkboxes, even if the bean function that receives the values checks for null or on, the resulting bean value corresponds always to the true state. This makes it necessary for a line like this: reg.setMailShow(request.getParameter(mailShow)); to be appended in the JSP to explicitly set the value, which would be unnecessary if the jsp:setProperty was working correctly. Is there some way to consistently have a bean function set the value correctly? Thank you Andre de Jesus
Re: Caching Login Info in Tomcat 3.2.x
If you are using container-managed authentication (the system that comes with Tomcat, that is configured for each Realm in the file server.xml), then the user roles and passwords are already automatically cached for each session (the isUserInrole() function and other similar functions do not trigger database accesses every time). If, on the other hand, you are authenticating the users with you own authentication system, then you could cache the authentication information in a session object (this is exactly what Tomcat does by default). Then, all private pages would check if the session object exists and if the user has been authenticated before displaying the private information. The only publicly visible key to this object is the session id, so all security problems could come from this session key being known to intermediate parties. Depending from the security level required by your application, you could consider setting lower expiration times for the session (or even explicitly expiring the session once some user operations have been successfully completed, with setMaxInactiveInterval()), or protecting the http communication with SSL. Andre de Jesus Renato Romano wrote: Hi, I would like Tomcat avoiding to access the DB for EVERY ACCESS to a reserved page. I think the best way to do this (apart from upgrading to Tomcat 4.0 !!) is to store the login info, or maybe just a flag I'm authenticated, in the session object. Does anyone already made something similar ? Should I only redefine methods in my Realm object ? Is there some security issue I'm not taking care of ?? Thanks Renato -- André de Jesus [EMAIL PROTECTED] TEKTIX - Consultoria em Sistemas de Informação, L.da http://www.tektix.com
Runing Tomcat as a NT Service with JDK1.3.1 - problem solved
Hi, I´ve been working on the problem of using jk_nt_service with jdk1.3, the problem described on the documentation for Tomcat 3.2.3 and also for th 3.3, and after a day of trying several ways to run Tomcat as a service I´ve just discovered at Sun that the problem was solved with a command line parameter for the java.exe that preventes the LOGOFF Event of the NT from hanging he JVM. It´s just putting -Xrs at the command line at the end of wrapper.properties. Please, include this information on the documentation, it will save much time from people. Thank You []'s André Rosenzweig [EMAIL PROTECTED]
Thanks!!
Thanks to Brandon Cruz, Greg Hanson, Boris Niyazov and Tew Tee Li. Their answer about debug log help me a lot. André Martiniano
mod_jk.conf-auto automatic generating
Hy My TomCat is not automaticaly generating the mod_jk.conf-auto file. As said in documentation,each TomCat inicialization should be generate this file. However, the tomcat-apache.conf file is been generated automaticaly. Anyone knows why? Thanks in advance.
mod_jk.conf-auto automatic generating
Hy My TomCat is not automaticaly generating the mod_jk.conf-auto file. As said in documentation,each TomCat inicialization should be generate this file. However, the tomcat-apache.conf file is been generated automaticaly. Anyone knows why? Thanks in advance.
Question about Debug log
Hy all I´m running TomCat 3.2.1 and Apache 1.3.19 on Red Rat Linux and it´s ok. I´d like to know if there is a way to deviate the Debug output (that one shown when script startup.sh is executed). I know that it´s just add the line path=´logs/tomcat.log´ to server.xml file. But what i want is that an user could see, using telnet, this debug in real-time, in other words, the user won´t need to open /logs/tomcat.log and after some time close it and open again to reflect the changes. Accurately as if this user it had executed script startup.sh and debug left in its screen. Any one can help me? Thanks!
Re: ClassPath question?
In the CLASSPATH is necessary put the name of the archive, as follow: /usr/local/tomcat/lib/servlet.jar --- Jian Zhang [EMAIL PROTECTED] escreveu: Hello; Can anyone help with this compile error msg: javac HelloWorld.java HelloWorld.java:1: Package javax.servlet not found in import. import javax.servlet.*; ^ I have included the servlet.jar in my classpath: printenv CLASSPATH /usr/local/jdk1.2.2/lib:/usr/local/tomcat/lib:/usr/local/ant/lib and servlet.jar is in the folder /usr/local/tomcat/lib what have I missed? Thanks in advance jian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] __ Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: problem with classpath and .jar files
Hi, Yes, I create the directory struct in .jar. --- CPC Livelink Admin [EMAIL PROTECTED] escreveu: Did you create the jar with directories? -Original Message- From: Andr Alves [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 23, 2001 11:46 AM To: [EMAIL PROTECTED] Subject: RE: problem with classpath and .jar files I'm putting the .jar file into WEF-INF/classes/my.jar... I too try put the .jar into lib directory, but it's no work too... --- "Morahg, Yoav" [EMAIL PROTECTED] escreveu: ARe you putting the .jar in the lib directory as opposed to the classes directory? That's where it should go. -Yoav -Original Message- From: Andr Alves [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 23, 2001 11:36 AM To: [EMAIL PROTECTED] Subject: problem with classpath and .jar files I have the following problem: I created a structure of directories to place mine .class and later generating one .jar. Below of WEB-INF/classes I have the structure: /com/mycompany/class and in this last directory I have mine .class... Wen I run tomcat, without grouping the class in a .jar, the program functions perfectly, but when I group the classes in a .jar, tomcat does not can to locate the .class. I tried to configure worker.properties and wrapper.properties, but this did not advance in nothing. It would like to know if somebody already had some problem similar to this and as I make to configure tomcat to use wrapper.properties or worker.properties correctly. I am using Redhat 6.1 with apache 1.3.12 and tomcat 3.2.1. __ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] __ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] __ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: problem with classpath and .jar files
In winnt I placed .jar below of the /WEB-INF/classes/ and only configured in wrapper.properties classpath for .jar and the program functioned perfectly. I made this same configuration in redhat, but it did not work. Somebody knows which can be the cause of this? --- Jeffry Guttadauro [EMAIL PROTECTED] escreveu: Sorry, but none that I know of. If I think of anything, I will let you know, but it was my understanding that it should just work without any extra tweaking... Good luck! [EMAIL PROTECTED] on 01/23/2001 11:05:41 AM Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: Subject: Re: problem with classpath and .jar files Hi Jeffry, Is necessary some type of special configuration so that tomcat to find the class? Some thing as to configure worker.properties or wrapper.properties? --- Jeffry Guttadauro [EMAIL PROTECTED] escreveu: The .jar should go directly in the WEB-INF/lib directory. [EMAIL PROTECTED] on 01/23/2001 10:36:41 AM Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: Subject: problem with classpath and .jar files I have the following problem: I created a structure of directories to place mine .class and later generating one .jar. Below of WEB-INF/classes I have the structure: /com/mycompany/class and in this last directory I have mine .class... Wen I run tomcat, without grouping the class in a .jar, the program functions perfectly, but when I group the classes in a .jar, tomcat does not can to locate the .class. I tried to configure worker.properties and wrapper.properties, but this did not advance in nothing. It would like to know if somebody already had some problem similar to this and as I make to configure tomcat to use wrapper.properties or worker.properties correctly. I am using Redhat 6.1 with apache 1.3.12 and tomcat 3.2.1. __ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] __ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] __ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: problem with classpath and .jar files
I already tried to place .jars in /WEB-INF/lib, but this did not function... therefore I is trying to know if it is necessary to configure or worker.properties or wrapper.properties so that tomcat finds jars... --- "Morahg, Yoav" [EMAIL PROTECTED] escreveu: .jars go in the WEB-INF/lib directory, not WEB-INF/classes. -Yoav -Original Message- From: Andr Alves [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 23, 2001 1:18 PM To: [EMAIL PROTECTED] Subject: Re: problem with classpath and .jar files In winnt I placed .jar below of the /WEB-INF/classes/ and only configured in wrapper.properties classpath for .jar and the program functioned perfectly. I made this same configuration in redhat, but it did not work. Somebody knows which can be the cause of this? --- Jeffry Guttadauro [EMAIL PROTECTED] escreveu: Sorry, but none that I know of. If I think of anything, I will let you know, but it was my understanding that it should just work without any extra tweaking... Good luck! [EMAIL PROTECTED] on 01/23/2001 11:05:41 AM Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: Subject: Re: problem with classpath and .jar files Hi Jeffry, Is necessary some type of special configuration so that tomcat to find the class? Some thing as to configure worker.properties or wrapper.properties? --- Jeffry Guttadauro [EMAIL PROTECTED] escreveu: The .jar should go directly in the WEB-INF/lib directory. [EMAIL PROTECTED] on 01/23/2001 10:36:41 AM Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: Subject: problem with classpath and .jar files I have the following problem: I created a structure of directories to place mine .class and later generating one .jar. Below of WEB-INF/classes I have the structure: /com/mycompany/class and in this last directory I have mine .class... Wen I run tomcat, without grouping the class in a .jar, the program functions perfectly, but when I group the classes in a .jar, tomcat does not can to locate the .class. I tried to configure worker.properties and wrapper.properties, but this did not advance in nothing. It would like to know if somebody already had some problem similar to this and as I make to configure tomcat to use wrapper.properties or worker.properties correctly. I am using Redhat 6.1 with apache 1.3.12 and tomcat 3.2.1. __ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] __ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] __ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] __ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
.jar files
Hi, I would like to know where I must make the configuration to use class contained in an archive jar. Thanks __ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: .jar files
I'm using HedHat 6.2 --- Andr Alves [EMAIL PROTECTED] escreveu: Hi, I would like to know where I must make the configuration to use class contained in an archive jar. Thanks __ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] __ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
mod_jk.so
Where I get mod_jk.so for linux?? Thanks __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: mod_jk.so
Hi against Eric, I located mine apxs and now the following error occurred: sorry, no DSO support for Apache avaliable under your plataform. Where I configures the DSO support for the apache? --- Eric Paul [EMAIL PROTECTED] escreveu: Do a locate/find to figure out where your copy of apxs really lives and edit the Makefile to call it from the right location. Eric At 02:41 PM 1/19/2001, you wrote: Hi Eric, I make this, but the following error occurred: make: /usr/sbin/apxs: command not found What it can be this? --- Eric Paul [EMAIL PROTECTED] escreveu: You need to download the source and compile it yourself. The mod_jk faq has info on how to do this, but some of it doesn't exactly work (as I found out today). Perhaps the best solution is untar the source, change to the native/apache1.3 directory, rename Makefile.linux to Makefile, set/export your JAVA_HOME variable to point to your JDK installation (usually something like /usr/java/jdk1.3) and type make. Hope this helps! Eric At 12:49 PM 1/19/2001, you wrote: Where I get mod_jk.so for linux?? Thanks __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
off-topic question - servlet notification
Hi, How I make to notify a servlet that the application client is down, or better, as a servlet can know that an application client down? thanks __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
AW: off-topic question - servlet notification
Hi, How I make to notify a servlet that the application client is down, or better, as a servlet can know that an application client down? thanks Hi, I'm making the follow application: The client application open a URLConnection with the serlet and the servlet makes some selects, updates to a data base. When the client down during a transaction would be necessary to make one rollback in data base. Therefore I needed to know if the customer is or up. thanks... __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
proxy authentication with domain
Hi, I am having problems to make authentication with Microsoft Proxy server because it requires a domain to authentication. I wrote the following program of test to try the authentication because I did not obtain access servlets. I only receive code 407, of required authentication. I would like know if somebody can help to decide this problem, mainly when is necessary a domain to carry through the authentication. Thanks in advance import java.net.*; import java.io.*; public class TesteProxyAuth { public static void main(String[] args) { try { System.setProperty("http.proxySet", "true"); System.setProperty("http.proxyType", "4"); System.setProperty("http.proxyHost", "my_proxy_ip"); System.setProperty("http.proxyPort", "my_proxy_port"); URL myURL = new URL("http://www.altavista.com"); HttpURLConnection connection = (HttpURLConnection) myURL.openConnection(); String password = "my_domain\\my_user:my_password"; String encodedPassword = URLEncoder.encode( password ); String auth = "Basic " + new sun.misc.BASE64Encoder ().encode (password.getBytes()); connection.setRequestProperty( "Proxy-Authorization", auth); connection.connect(); System.out.println("Response Code = "+connection.getResponseCode()); System.out.println("foi"); } catch(Exception e) { e.printStackTrace(); } } } __ Do You Yahoo!? Yahoo! Photos - Share your holiday photos online! http://photos.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
charset problem
Hi, I'm using apache 1.3.9, tomcat 3.2.1 and NT 4 SP 5. When I pass words with special characters like parameter to tomcat, to be inserted in a data base, the insert don't occurs. I would like know if exists any configuration to tomcat accept words with special characters, like "André" or "João". Thanks __ Do You Yahoo!? Yahoo! Photos - Share your holiday photos online! http://photos.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: charset problem
The query is simply ignored. setting environment variable "TOMCAT_OPTS=-Dfile.encoding=ISO8859_1", not work. Is like tomcat recived the request but made nothing . I enter data in the simple html form. tomcat receives this datas, and send the end page, as if the data were inserted but, when I made a search, the data had not been modified. This only occurs when characters special in the form exist. When I don't have any special characters in the form, the data are brought up to date. --- Michael Wentzel [EMAIL PROTECTED] escreveu: Does anything at all get inserted into the database or is the query simply ignored/Exception thrown/...? If you post the exact results of executing your query and a snippet of code used to do so it would help diagnose the problem. --- Michael Wentzel Software Developer Software As We Think - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] __ Do You Yahoo!? Yahoo! Photos - Share your holiday photos online! http://photos.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: charset problem
Hi Simon, The problem it not in sql beacuse when a run this servlet JServ this word perfectly. The problem occurs only in Tomcat --- Kitching Simon [EMAIL PROTECTED] escreveu: Hi Andre, I'm still willing to bet your sql is the problem. It looks exactly like you are catching a nasty exception somewhere, and totally ignoring it (though I have been known to be wrong on occasions :-) I think you will have to provide more info, and in particular do some research/debugging yourself, then ask *specific questions* in this group to get help - you know how hard it is to debug code you've written yourself, that is in front of you. And in addition, while people here are pretty helpful, no-one is being paid to solve problems.. (I'm just trying to avoid working on my own bugs at the moment..) I use special characters (french, german) with tomcat, inserting into database fields, and have no problems, so it works in the general case. Of course, we use instances of Oracle which have been configured to use the ISO-8859-1 character set, etc. I didn't have to set up Tomcat special in any way, as far as I can remember. What you *can* take away from the answers so far is that no-one seems to have encountered a similar issue with tomcat, ie that it is not a known bug or common problem. Good luck solving it! Simon -Original Message- From: André Alves [SMTP:[EMAIL PROTECTED]] Sent: Thursday, January 04, 2001 8:04 PM To: [EMAIL PROTECTED] Subject:RE: charset problem The query is simply ignored. setting environment variable "TOMCAT_OPTS=-Dfile.encoding=ISO8859_1", not work. Is like tomcat recived the request but made nothing . I enter data in the simple html form. tomcat receives this datas, and send the end page, as if the data were inserted but, when I made a search, the data had not been modified. This only occurs when characters special in the form exist. When I don't have any special characters in the form, the data are brought up to date. --- Michael Wentzel [EMAIL PROTECTED] escreveu: Does anything at all get inserted into the database or is the query simply ignored/Exception thrown/...? If you post the exact results of executing your query and a snippet of code used to do so it would help diagnose the problem. --- Michael Wentzel Software Developer Software As We Think - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] __ Do You Yahoo!? Yahoo! Photos - Share your holiday photos online! http://photos.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] __ Do You Yahoo!? Yahoo! Photos - Share your holiday photos online! http://photos.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
a simple test to charset
I, made the following test: import java.io.*; import java.text.*; import java.util.*; import javax.servlet.*; import javax.servlet.http.*; public class HelloWorldExample extends HttpServlet { public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { String strName = request.getParameter("name"); response.setContentType("text/html"); PrintWriter out = response.getWriter(); out.println("html"); out.println("head"); out.println("/head"); out.println("body bgcolor=\"white\""); out.println("body"); out.println("start"); out.println("br"); out.println("Name = "+strName); out.println("br"); out.println("end"); out.println("/body"); out.println("/html"); } } And I invoke this servlet with the url: http://my_ip/servlet/HelloWorldExample?name=André The html responde is: start Name: Andr end Tomcat did not catch special caracter "é". __ Do You Yahoo!? Yahoo! Photos - Share your holiday photos online! http://photos.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Apache and Tomcat 3.2.1
Hi, I'm using Tomcat 3.2.1 and Apache 1.3.9 with mod_jk. When a start Apache, tomcat don't start automatically. I would like know how do tomcat start when apache starts. Thanks. __ Do You Yahoo!? Yahoo! Photos - Share your holiday photos online! http://photos.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Mapping Zones
Hi, I'm trying create a zones means "servlet" to I type the url "http://my_ip/servlet/HelloWorldExample" to run the servlets but, I don't know make this. I just run it mapping the url "http://my_ip/servlet/servlet/HelloWorldExample". Anyone can help me? thanks in advanced __ Do You Yahoo!? Yahoo! Photos - Share your holiday photos online! http://photos.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]