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/
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]
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: Navigation Navigation 5 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: Retrieveing Unicode stuff from MySQL 4.1.x ?
Ivan Jouikov wrote: I tried to use table with CHARACTER SET UTF8, but it didn't change anything :( Any other suggestions? I'm using a line like the one below to connect to the MySQL DB and it is working quite well here: DBUrl="jdbc:mysql://"+server+":"+databaseport+"/"+database+"?user="+login+"&password="+password+"&useUnicode=true&characterEncoding=UTF-8"; You may want to specify "characterSetResults" as well. http://dev.mysql.com/doc/connector/j/en/index.html 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]
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.
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.
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: 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
Tomcat 4.0 weirdness setting bean properties from checkboxes
Hi The following JSP directive: 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
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
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
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]
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.
Thanks!!
Thanks to Brandon Cruz, Greg Hanson, Boris Niyazov and Tew Tee Li. Their answer about debug log help me a lot. André Martiniano
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
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]
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
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
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]
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]
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]
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]
.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: 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]
Re: mod_jk.so
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]
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]
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]
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]
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]
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(""); out.println(""); out.println(""); out.println(""); out.println(""); out.println("start"); out.println(""); out.println("Name = "+strName); out.println(""); out.println("end"); out.println(""); out.println(""); } } 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]
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]
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
I think that it is not an error of sql, because servlet worked perfectly in Jserv 1.1.1. I migrated for tomcat and servlet stopped to function when it inserts characters special. I do not know what's happening. --- Kitching Simon <[EMAIL PROTECTED]> escreveu: > I think the most likely cause is that it is your SQL > statement that is throwing an exception when you > try to insert non-ascii characters into a text column > in the database. > > Java text is all based on UNICODE, so it is unlikely > that tomcat has any problems at all with special > characters. > > So the point for *you* to check is whether your > SQL is being run, and if so whether it is throwing > an exception. > > If you can confirm that your SQL is not being > run at all (ie that the problem *is* somewhere in > tomcat) then I suggest you post again. > > > -Original Message- > > From: André Alves [SMTP:[EMAIL PROTECTED]] > > Sent: Thursday, January 04, 2001 6:34 PM > > To: [EMAIL PROTECTED] > > Subject: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] > > - > 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]
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]
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]
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]