00:38.33 | *** part/#tomcat bun0 (~hito@ppp-66-123-206-152.dialup.snfc21.pacbell.net) |
00:46.00 | *** part/#tomcat Blaze (dirc@boha41ovy1da.ab.hsia.telus.net) |
00:58.16 | *** join/#tomcat tang^ ([6JxgMrw9o@ahgn23wky5824.ab.hsia.telus.net) |
03:31.50 | *** join/#tomcat lalle_ (lars@h229n2fls31o267.telia.com) |
03:45.08 | *** join/#tomcat lapse (lapse@CPE0050bac94fdd-CM014490004333.cpe.net.cable.rogers.com) |
03:46.38 | *** part/#tomcat lapse (lapse@CPE0050bac94fdd-CM014490004333.cpe.net.cable.rogers.com) |
04:00.44 | *** join/#tomcat Hellaenergy (~Hellaener@hellaweb.com) |
04:03.36 | Hellaenergy | yo |
04:33.51 | *** join/#tomcat xerov (123@ip68-4-0-92.pv.oc.cox.net) |
04:35.03 | xerov | hello, if im not running tomcat as root, how can i ln -s /home/user/rootwebapp /var/tomcat/webapps-dom/ROOT, when i try it now i get Status 404 |
04:40.14 | xerov | can this be done as a non root user? |
05:01.17 | *** join/#tomcat supasteri (~supasteri@r96-5.bas1.srl.dublin.eircom.net) |
05:01.43 | supasteri | hey guys... quicky for the servlet/jsp gurus :) |
05:02.02 | supasteri | is it possible from within a servlet to detect if a user has cancelled a http request? |
05:02.27 | supasteri | i.e. is some sorta event raised within tomcat? |
05:29.22 | *** part/#tomcat supasteri (~supasteri@r96-5.bas1.srl.dublin.eircom.net) |
05:44.19 | *** join/#tomcat bun0 (~hito@ppp-67-119-118-129.dialup.snfc21.pacbell.net) |
05:58.06 | *** part/#tomcat bun0 (~hito@ppp-67-119-118-129.dialup.snfc21.pacbell.net) |
05:59.09 | *** join/#tomcat akb (akb@as20-27.qualitynet.net) |
05:59.18 | akb | hi |
06:03.51 | akb | HELP!! |
06:03.54 | akb | lol |
06:05.07 | akb | hey jasonb i am encountering the strangest of problems on this new p4 machine |
06:06.17 | akb | first my java compiler didnt work as the version was old itseems when i got the latest one, all is well but the sql isnt inserting the right values in the db, i wrote a servlet to take in values, on my p3 it takes them fine be it in english or any other language(Regional) |
06:06.45 | akb | but the p4 takes english only and other language it takes the entires and stores/retrieves in/from the db table as ?????? |
06:06.56 | akb | anything other than english is stored as ?????? |
06:07.21 | akb | why on earth i am unable to understand.. man i didnt sleep for 48 hrs trying to figure this out! |
06:07.40 | jasonb | Sounds to me like you're trying to solve 50 problems all at once. |
06:07.52 | jasonb | Probably a good idea to take it one step at a time. |
06:07.58 | akb | lol |
06:08.02 | akb | yeah true |
06:08.26 | jasonb | So what version of Java do you have installed on your p4? |
06:08.29 | akb | man code works 199% efficiently on a p3 but on this new p4 2Mhz all hell breaks loose |
06:08.38 | akb | jsdk1.4.1_01 |
06:08.40 | akb | latest release |
06:08.48 | akb | and tomcat 4.1.8 i guess |
06:08.51 | jasonb | Okay. Now, which version did you have installed on your p3? |
06:09.02 | akb | jdk 1.2.2 |
06:09.20 | jasonb | You realize there's a HUGE difference between those two versions, right? Including incompatibilities? |
06:09.44 | akb | but i guess new versions are better versions that eliminate the incompatibilities |
06:09.49 | akb | not add more.. |
06:09.59 | jasonb | You guess wrong. |
06:10.14 | akb | and jdk1.2.2/ jdk1.3 dont compile on the p4 |
06:10.15 | jasonb | New versions may be better overall, but may indeed introduce new incompatibilities. |
06:10.29 | jasonb | don't compile?? What does that mean? |
06:10.36 | jasonb | Okay, back up.. |
06:10.39 | akb | it gives me a .dll error |
06:10.45 | jasonb | Which operating system are you using? Windows? |
06:10.56 | akb | yeah that too 98 se |
06:11.00 | akb | :~~~~~~~~~( |
06:11.09 | jasonb | That's your largest problem. |
06:11.12 | jasonb | Don't use Windows. |
06:11.35 | jasonb | Microsoft doesn't want you to be able to run Tomcat. |
06:11.40 | akb | what should i use then? Unix? |
06:11.47 | jasonb | Anything other than Windows. |
06:11.56 | akb | :( |
06:12.25 | akb | this is so agonizingly painful |
06:12.49 | akb | i wrote an application that is like 30 pages (servlet) |
06:13.09 | jasonb | You may be able to use Solaris's JDK 1.3.x and a very new Tomcat like 4.1.18. |
06:13.12 | akb | i built it on my p3 but when i install on a p4 i get this sh** |
06:13.27 | jasonb | Both machines run Win 98? |
06:13.30 | akb | yes |
06:13.43 | jasonb | Then you can't use jdk 1.2.2 on the p4? |
06:13.48 | jasonb | Did you try that? |
06:13.48 | akb | no |
06:13.53 | akb | yes |
06:13.57 | akb | i tried |
06:13.59 | akb | when i compile it |
06:14.04 | akb | it gives me an error |
06:14.11 | akb | wait i wrote that error name somewhere |
06:14.19 | jasonb | Okay, so then I don't understand.. You put the same OS on the new machine, same exact JDK package and it doesn't run?? |
06:14.36 | akb | when i did some research online on that error, it gave out that it happens only on p4 machines this error encontered |
06:14.41 | jasonb | By the way, you don't compile the JDK. You might install it, and you might run it, but you don't compile it. |
06:14.58 | akb | my servlets arent being compiled not jdk |
06:15.21 | jasonb | Okay, well before you dig into your custom code, just get Tomcat working first. |
06:15.31 | jasonb | Forget about your servlets for a minute. |
06:16.01 | akb | tomcat works 100% fine thanks to hellaguy |
06:16.06 | jasonb | If you found pages on the net about p4s and jdk 1.2.2, then you probably also read what people are doing as a work around? |
06:16.17 | jasonb | Like, maybe installing JDK 1.3.x? |
06:16.42 | jasonb | Okay, so when you run Tomcat, what JDK do you run it on? JDK 1.4?? |
06:16.49 | akb | javac.exe gave me the error called symcjit.dll error |
06:17.01 | akb | yes jdk 1.4.1 and tomcat 1.4.08 |
06:17.35 | jasonb | Well, I suggest you try harder to get JDK 1.3.x installed since it's much more compatible with jdk 1.2.2 that you were using before. |
06:18.07 | akb | i installed 1.3 it too gave me the same error |
06:18.09 | jasonb | 1.4.1 will run Tomcat I'm sure, but it is incompatible with some code written for JDK 1.3.x and below. |
06:18.35 | akb | hmm |
06:18.39 | jasonb | hmmm.. |
06:18.56 | akb | what do you suggest finally? |
06:19.07 | jasonb | Well, okay, so if you have jdk 1.4.1 installed, and tomcat runs, then what happens when you try to compile your servlets? |
06:19.26 | akb | servlets are being compiled well nothing happens |
06:19.35 | jasonb | huh? |
06:19.39 | akb | am very happy with tomcat and jdk 1.4.1 |
06:19.46 | akb | i run my code as well |
06:19.48 | akb | they work fine |
06:19.55 | jasonb | Okay, so what's yer problem then?? |
06:20.19 | akb | but the problem arises when i use a regional language (NON English) |
06:20.34 | jasonb | Which locale? |
06:20.44 | akb | in database it is stored as '???????' not as the chareter i am entering |
06:20.50 | jasonb | ok. |
06:20.57 | jasonb | Which locale, and which database? |
06:21.05 | akb | oracle 8i |
06:21.17 | akb | am trying to enter arabic text |
06:21.40 | jasonb | Okay, I don't know how to tell Oracle how to deal with this, but I know what your problem is, I think. |
06:22.08 | jasonb | just a sec. |
06:22.14 | akb | ok.. mind you, it works fine on the p3 with jdk1.2.2 |
06:22.41 | akb | i am able to enter and retrieve arabic text fine on the p3 with lower version of jdk and NOT Tomcat but Javawebserver 2.0 |
06:23.04 | jasonb | Right. |
06:23.21 | jasonb | Here, copy this, put it in a file called PrintEncoding.java: |
06:23.23 | jasonb | import java.io.*; |
06:23.23 | jasonb | public class PrintEncoding |
06:23.23 | jasonb | { |
06:23.23 | jasonb | <PROTECTED> |
06:23.23 | jasonb | <PROTECTED> |
06:23.24 | jasonb | <PROTECTED> |
06:23.26 | jasonb | <PROTECTED> |
06:23.28 | jasonb | <PROTECTED> |
06:23.30 | jasonb | <PROTECTED> |
06:23.34 | jasonb | } |
06:23.38 | jasonb | Compile that, and run it on your p4, then paste in the output here. |
06:24.34 | akb | ok |
06:27.06 | akb | o's encoding : Cp1256 |
06:27.56 | akb | thats the output |
06:28.15 | jasonb | Does that look like the right encoding for what you're doing? |
06:28.39 | akb | .... |
06:28.46 | akb | u tell me |
06:29.31 | jasonb | What it just said is that the JVM is defaulting to the character encoding "Cp1256", and any time you transmit or receive a byte stream without specifying another encoding, that's the one it'll use. |
06:29.46 | akb | ok.. |
06:30.03 | akb | so what should i do? |
06:30.04 | jasonb | But, I'm not sure Oracle wants to communicate with that encoding. It may choose ISO-8859-1 or us-ascii. |
06:30.14 | akb | ok |
06:30.29 | jasonb | The way I fixed this problem with MySQL is this: I told the JDBC driver to use Unicode.. 16-bit characters. |
06:31.21 | akb | ok |
06:31.21 | jasonb | The way I told it that was: I set two JDBC URL parameters that were something like useUnicode=true (and one other one that I don't remember). But, these are specific to the MySQL driver I was using at the time (the mm mysql driver). |
06:31.32 | *** join/#tomcat IRCMonkey (~chatzilla@Toronto-HSE-ppp3674678.sympatico.ca) |
06:31.44 | jasonb | The Oracle JDBC driver you use will likely have similar JDBC URL parameter settings for you to use. |
06:31.44 | akb | ok |
06:32.17 | akb | am using this |
06:32.17 | akb | try |
06:32.18 | akb | { |
06:32.18 | akb | super.init(sc); |
06:32.18 | akb | Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); |
06:32.18 | akb | con=DriverManager.getConnection("jdbc:odbc:bubyan","scott","tiger"); |
06:32.20 | jasonb | if you do your homework and find out that "Cp1256" is indeed the character encoding you need/want, then you should tell your JDBC driver (and hence Oracle) that you want it to use that encoding. |
06:32.20 | akb | } |
06:32.49 | jasonb | What the parameters are, I won't have any idea because I don't have the driver. |
06:32.58 | jasonb | But, you can research the driver's features and find that out |
06:33.11 | akb | hmm |
06:33.38 | akb | am getting lost right now |
06:33.52 | akb | why didnt i encounter this problem on the p3 system? |
06:33.55 | jasonb | The trick is just to make sure that the JDBC driver knows the correct character encoding to use. |
06:34.11 | akb | it gives me perfect results on the p3 sys with jdk1.2.2 |
06:34.31 | akb | but on p4 it whines the living daylights outo f me |
06:34.40 | jasonb | Probably you didn't see this problem before because character encoding was handled differently in JDK 1.2.2, or in JavaWebServer, or in the Oracle driver you were using (did you switch driver versions?).. |
06:34.56 | jasonb | Things change. |
06:35.02 | akb | which driver version? |
06:35.08 | akb | i didnt do anything |
06:35.10 | jasonb | Your Oracle JDBC driver version. |
06:35.14 | akb | no |
06:35.24 | akb | it is the same default one what the OS gave |
06:35.42 | jasonb | If that's exactly the same, then it's either the change of JDK functionality, or it's the change of the application server (less likely). |
06:36.06 | akb | hmm |
06:36.14 | akb | this is weired |
06:36.28 | jasonb | Did you install Oracle on this p4 machine from the exact same Oracle CDROM that you installed on the p3? |
06:36.28 | akb | man the client thinks i am playing around tricks and the code isnt ready |
06:36.34 | akb | yes |
06:36.45 | akb | its getting too frustrating |
06:36.56 | jasonb | Okay, so then your JDBC driver is almost certainly the exact same one, and it's probably switching JDKs that made things change. |
06:37.11 | jasonb | I know from experience that different JDKs treat character encodings differently. |
06:37.15 | jasonb | :( |
06:37.26 | akb | :`( |
06:37.45 | akb | i should have chosen to be a doctor not a software engineer |
06:37.53 | jasonb | So, find out exactly which character encoding you need.. or just try to use Unicode. |
06:37.57 | akb | at least i can say the patient his problem ... |
06:38.07 | akb | hmm |
06:38.24 | akb | how do i use unicode jasonb? |
06:38.26 | jasonb | Remember that String conversion methods in Java take an optional argument for the character encoding to use. |
06:38.29 | akb | can i have a sample example |
06:38.52 | akb | ok.. |
06:40.17 | jasonb | I don't really have an example of that. |
06:40.26 | akb | am too lost at this moment to think of anything.. can you tell me what exactly should i do so that this problem can be eliminate |
06:40.39 | akb | eliminated |
06:40.46 | akb | terminated |
06:40.49 | akb | exterminated |
06:40.57 | akb | whatever i just want to get rid of it |
06:41.11 | jasonb | I think you can use the encoding ISO_8859-1 to make the JDK use 16-bit characters, but doing that may not yield you the correct character set. |
06:41.44 | jasonb | I can't tell you exactly what you should do.. what to do depends on what you're writing. |
06:42.06 | akb | can i DCC u a sample code of mine? |
06:42.15 | akb | maybe i missed out something |
06:42.18 | jasonb | All I can tell you is that whenever you send or receive a String in your Java code, you need to make sure to encode/decode it with a character encoding that will do what you want it to do. |
06:42.33 | jasonb | Unfortunately, I don't have the time. |
06:42.51 | akb | :S |
06:43.04 | akb | or atlest |
06:43.23 | akb | give me the url where i can download the jdk1.3.x that you used which worked |
06:43.33 | akb | i will try to switch the jdk |
06:43.41 | jasonb | Well, I'm no longer convinced you need jdk 1.3.x. |
06:43.57 | jasonb | If you were able to at least run 1.2.2, I'd suggest doing that because you know that JDK works. |
06:44.03 | jasonb | 1.3.x may not. |
06:44.09 | akb | hmm |
06:44.21 | jasonb | And, btw, they all come from the same SUN web pages, so you should be able to find these very easily. |
06:44.25 | akb | jdk1.2.2 gives me symcjit.dll error |
06:44.39 | akb | during java compilation |
06:44.42 | jasonb | But, I think you'd just be chasing your tail if you tried to switch JDKs now. |
06:44.52 | akb | yes |
06:45.05 | akb | and i got a very short tail i can never catch it up for sure |
06:45.19 | jasonb | I suggest that you stick with 1.4.x, and learn some things about character encodings and Java Strings and JDBC drivers. |
06:45.51 | akb | hmm |
06:45.57 | jasonb | Look at the JavaDoc documentation for java.lang.String, and look for the encoding arguments in the constructor and the toString() methods. |
06:46.31 | jasonb | Plus, read the documentation for the Oracle JDBC driver you're using and find out which JDBC URL parameters it supports, and anything about character encodings. |
06:46.50 | akb | ok |
06:47.00 | akb | do you think this is the problem? |
06:47.45 | jasonb | And in your code, always do stuff like "fieldString.toString(myCharacterEncoding)" where fieldString is a String you're sending into the database, and myCharacterEncoding is a String variable containing the name of the character encoding you want to use. |
06:47.58 | jasonb | I'm positive this is the problem. I've had it before. |
06:48.04 | akb | hmm |
06:48.24 | akb | am using a simple : |
06:48.26 | akb | String datein=req.getParameter("t1"); |
06:48.38 | akb | for input |
06:48.50 | akb | and am using a simple : getString() |
06:48.56 | akb | to fetch the o/p |
06:48.58 | jasonb | Then when you pass datein to the JDBC driver, do "datein.toString(myCharacterEncoding)" |
06:49.45 | akb | st.executeUpdate("insert into vehicleinfo values ('"+datein+"'); |
06:49.52 | akb | am storing it this way |
06:49.59 | jasonb | And when you create your JDBC connection, pass a JDBC URL parameter that tells the driver you want to use the myCharacterEncoding. |
06:50.30 | jasonb | So do this instead: st.executeUpdate("insert into vehicleinfo values ('"+datein.toString(myCharacterEncoding)+"'); |
06:50.43 | akb | cool |
06:51.07 | jasonb | But, make sure the myCharacterEncoding variable is set right first, and make sure that your connection was created with that char encoding too. |
06:51.23 | akb | how do i do that? |
06:51.45 | jasonb | By doing what I described above -- read the Oracle documentation for the JDBC driver. |
06:51.54 | akb | ok.. |
06:51.54 | jasonb | Find out what parameter(s) to use. |
06:52.36 | jasonb | Also, use Google to find out which character encoding you should use. |
06:52.47 | akb | hmm |
06:52.50 | jasonb | Probably needs to be a char encoding that uses 16-bit characters. |
06:53.03 | jasonb | (and is specifically for your language that you're trying to use) |
06:53.26 | akb | myCharacterEncoding is this a subclass? |
06:53.45 | jasonb | It's a variable that you will create, and that you will assign the proper value to. |
06:53.48 | *** part/#tomcat xerov (123@ip68-4-0-92.pv.oc.cox.net) |
06:53.56 | akb | ok |
06:54.02 | jasonb | String myCharacterEncoding = "ISO_8859-1"; |
06:54.11 | jasonb | Something like that.. but change the encoding to the one that you need. |
06:54.18 | akb | ok |
06:54.33 | akb | which accepts my regional language right? |
06:54.38 | jasonb | Yes. |
06:54.45 | jasonb | And that uses 16-bit characters. |
06:55.05 | jasonb | I'm not positive it needs 16-bit characters, but I have a feeling it does. |
06:55.20 | akb | ok |
06:55.22 | jasonb | If the only one you can find only supports 8-bit characters, try it and see if that works. If not, you need 16-bit characters. |
06:56.15 | akb | what is ISO_8859-1 used for? |
06:56.28 | akb | shall I try to use this and check it out? |
06:56.34 | jasonb | If you want. |
06:56.47 | akb | ok.. |
06:56.59 | jasonb | Make sure you pass it to the JDBC driver, though. |
06:57.17 | akb | :( how do i pass it? |
06:57.33 | jasonb | You've asked that question like 4 times now, and I've answered it that many times. |
06:57.39 | akb | oh |
06:57.48 | akb | u mean the way u told me |
06:57.48 | akb | k |
06:58.08 | akb | man i never did this in my life.. and to top it all my mind is a mess at this moment, I am sorry if i sound irritating |
06:58.52 | jasonb | You do need to be able to focus, and to spend a little time on researching and fixing this problem.. otherwise you'll never fix it. |
06:59.10 | akb | yes i realise that and understand it very well |
07:00.29 | akb | brb i will try what you said right now :) |
07:00.34 | akb | one min |
07:03.34 | nDuff | <PROTECTED> |
07:15.12 | akb | the method toString |
07:15.34 | akb | it says cant resolve symbol |
07:56.15 | *** join/#tomcat Nurbs (~foo@p50859F30.dip.t-dialin.net) |
08:49.17 | *** join/#tomcat hans___ (~chatzilla@p50800362.dip0.t-ipconnect.de) |
08:50.19 | hans___ | Hi, is there a change log for the Tomcat 4.x releases somewhere in the web? |
08:52.07 | *** join/#tomcat samppa (~samppa@a4.veijo.ton.tut.fi) |
08:53.28 | samppa | hi, any http gurus here? i'd like to know the use of IdentityOutputFilter, in which case does Tomcat use identity for Transfer-Encoding? |
08:55.39 | samppa | in RFC 2616 there are some mentionings about identity transfer-encoding, but it is declared as "do not use" since then |
08:56.21 | samppa | Tomcat contains support for it, i guess for backward compatibility |
10:51.05 | *** join/#tomcat akb (akb@62.150.153.102) |
10:51.08 | akb | sup |
11:58.14 | *** join/#tomcat webdaemon (~webdaemon@Mix-Marseille-107-1-77.abo.wanadoo.fr) |
12:15.32 | *** join/#tomcat NewtUK (~chatzilla@193.133.0.124) |
12:41.24 | *** join/#tomcat webdaemon (~webdaemon@Mix-Marseille-107-1-251.abo.wanadoo.fr) |
13:58.46 | *** join/#tomcat funroll-loops (~cmiller@dialup-209.244.146.247.Dial1.Orlando1.Level3.net) |
14:37.57 | *** join/#tomcat xover (~link@mail.tj.unn.no) |
14:51.53 | *** join/#tomcat hlin___ (~trillian@h0.vonage.bbnplanet.net) |
15:18.57 | *** join/#tomcat akb (akb@62.150.182.167) |
15:19.17 | akb | hi ppl |
15:19.23 | akb | lol jasonb u here? |
15:20.49 | *** join/#tomcat lalle (lars@h229n2fls31o267.telia.com) |
15:21.04 | funroll-loops | hi akb r u 1fngd? |
15:21.27 | akb | no funroll-loops |
15:21.45 | akb | i am unique one and only akb with equally unique situations and doubts.. |
15:21.48 | akb | :S |
15:22.08 | funroll-loops | Oh, good. |
15:22.15 | akb | lol |
15:22.34 | akb | jasonbbbbbbbbbbbbbbbbbbbbbeeeeeeeeeeeeeeeee where r u? |
15:22.48 | akb | umm |
15:22.51 | akb | funroll-loops |
15:23.11 | akb | i got a doubt that jasonb cleared very well i appreciate that very much |
15:23.24 | akb | but it didnt work :/ maybe its my fault or what i am not sure |
15:23.28 | funroll-loops | What? |
15:23.31 | akb | can i share that with you? |
15:25.15 | funroll-loops | If your code lacks the structure your sentences do, then I imagine it doesn't work very well/. |
15:26.14 | akb | well I am not a cambridge or a Harward like you funroll-loops but my code and sentences do make some sense |
15:27.40 | akb | takecare funroll-loops thanks for the help |
15:30.03 | funroll-loops | Good riddance. Why are some people willing and eager to trade sloppiness on their parts for difficulty on their reader's parts? Do they think it's pleasant to read? |
16:04.09 | *** join/#tomcat Claudus (~Claudus@dial-20-41.win.be) |
16:04.13 | funroll-loops | Hi. |
16:04.21 | Claudus | Hi |
16:05.15 | Claudus | I dont speak english very well |
16:05.28 | Claudus | is there some people who speak french ? |
16:06.02 | funroll-loops | Pas moi. Seulment un peu, or something like that. |
16:06.12 | Claudus | i' ve got a problem with tomcat 4.1.18 |
16:06.41 | Claudus | when i do %CATALINA_HOME%/bin/startup on W2K |
16:07.14 | Claudus | OOPS i've found sorry :-) |
16:07.20 | funroll-loops | classpath? |
16:08.10 | Claudus | i've do i mispel in java_home environment variable |
16:08.11 | Claudus | hihi |
16:08.22 | funroll-loops | We're glad we could help. :) |
16:08.24 | Claudus | i'am so stupid |
16:08.33 | Claudus | thank you very much :-) |
16:09.51 | Claudus | yeah it's working very well |
16:10.42 | Claudus | is it harder on linux dan w2k ? |
16:11.41 | funroll-loops | By "it", do you mean using Tomcat? No. It's pretty much the same, as far as I know. |
16:12.22 | funroll-loops | Though, the Debian packaging of Tomcat is especially nice. |
16:18.00 | Claudus | yes tanks i'ill try immediatly |
16:18.07 | Claudus | bye and thanks |
16:18.10 | funroll-loops | Bye. |
16:18.16 | *** part/#tomcat Claudus (~Claudus@dial-20-41.win.be) |
16:55.17 | *** join/#tomcat Sou|cutter (Sou_cutter@el79-250.med.utah.edu) |
17:11.43 | *** join/#tomcat jurrend (~jurrend@203.77.197.35) |
17:51.37 | *** join/#tomcat webdaemon (~webdaemon@Mix-Marseille-106-4-199.abo.wanadoo.fr) |
20:01.02 | *** join/#tomcat ibot (ibot@rikers.org) |
20:01.02 | *** topic/#tomcat is Tomcat Servlet Container Discussion; The Tomcat project is located at http://jakarta.apache.org/tomcat Some other useful channels for our kind are #struts #apache #web #java |
20:02.31 | *** join/#tomcat ldog (~ldog@ip68-2-131-23.ph.ph.cox.net) |
20:05.10 | *** join/#tomcat kill9 (wack@ANTI2.RES.cmu.edu) |
20:05.21 | kill9 | hey anyone that can help me with a basic setup q? |
20:10.56 | kill9 | for some reason my servlets only work when i put them in my /examples folder... if i put them in ROOT/WEB-INF/classes/ they are 404 |
20:11.15 | kill9 | do i have to change tomcats config somehow? |
20:15.52 | *** join/#tomcat LordJ|m (~more@ABordeaux-103-1-11-19.abo.wanadoo.fr) |
20:16.05 | LordJ|m | hi |
20:16.09 | funroll-loops | Hey. |
20:16.38 | *** join/#tomcat jasonb (~jasonb@ar1-nat-sp.collab.net) |
20:17.39 | LordJ|m | is it possible to install cocoon 2.0 on tomcat 4.0.6 and over ? |
20:29.01 | funroll-loops | Eh, I want to debug some code by putting System.out.println()s in my code, which works under Linux and tomcat 4.0, but right now I'm using Windows and Tomcat 4.1. Is there something I should be doing when using either 4.1 or Windows? |
20:29.56 | kill9 | you could write to a file |
20:30.08 | kill9 | i assume you are running tomcat as a service? |
20:30.12 | funroll-loops | Yes. |
20:30.15 | kill9 | otherwise you can println and it will go to the console |
20:30.15 | kill9 | ah ok |
20:30.34 | kill9 | probably just write to a logfile |
20:31.06 | funroll-loops | There's a stdout.log and stderr.log in logs/, but they're misleadingly named. |
22:21.27 | *** join/#tomcat Hellaenergy (~Hellaener@209.181.237.141) |
22:21.45 | Hellaenergy | anyone here know of a free .eps viewer? |
22:31.48 | funroll-loops | Hellaenergy: postscript? Use a ghostscript, or a front-end for it like 'gv'. |
22:44.03 | *** join/#tomcat destr0 (~duke@msp-65-29-38-209.mn.rr.com) |
22:44.09 | destr0 | anyone home? |
22:45.07 | jasonb | no. |
22:45.30 | destr0 | excellent |
22:45.33 | funroll-loops | jasonb is right. |
22:46.01 | destr0 | has anyone here had any success getting the jk2 connector to work with apache 2 on redhat8? |
22:46.51 | destr0 | did you compile your own mok_jk2.so? |
22:47.00 | jasonb | Yes. |
22:47.09 | jasonb | I ended up needing to, as probably most will. |
22:47.32 | destr0 | yeah, I dropped it in and it keeps saying that it's not compatible with my version of apache |
22:47.50 | jasonb | Right. |
22:47.54 | destr0 | dropped the binary version from the tomcat site that is. |
22:47.56 | jasonb | I have a feeling that basically everyone's in that boat. |
22:48.11 | destr0 | good thing they don't put anything up on the site about that. |
22:48.44 | destr0 | do you have to download tomcat source to get the mod_jk2 source? |
22:48.46 | jasonb | Yeah, I just wish someone would write a new connector so we can throw away jk2. :) |
22:49.06 | jasonb | destr0: Nope. jakarta-tomcat-connectors is a separate repository. |
22:49.39 | destr0 | I just wish I didn't have 1 piss ant customer who has to access my servlet container on 80 because his companies firewall blocks all else. |
22:52.15 | destr0 | whats the asc on the end of the jk2 module? |
22:52.31 | jasonb | asc? |
22:54.30 | destr0 | there's one source package for jk2 and one with asc on the end and in the binaries section theres mod_jk-2.0.42.so and mod_jk-2.0.42.asc.so |
22:55.46 | jasonb | destr0: Forget about the binaries. |
23:00.52 | *** join/#tomcat TPABKA (tar@dragon.roadtoad.net) |
23:00.55 | TPABKA | hello |
23:01.23 | TPABKA | are there any docs about how to run tomcat as specified user? |
23:02.23 | jasonb | TPABKA: That's just basic UNIX stuff. Tomcat doesn't require anything special. |
23:02.39 | destr0 | jasonb: what platform did you build the connectors for? |
23:03.06 | funroll-loops | TPABKA: Though, you can't listen on a port < 1024 if you're not root, as always. |
23:03.18 | TPABKA | jasonb: oh ok... thanks |
23:03.20 | jasonb | destr0: Only RedHat 7.1. But, I could have built them for Solaris as well. |
23:03.28 | TPABKA | funroll-loops: yeah... read that |
23:03.44 | destr0 | you don't still have your build.properties file handy do you? |
23:03.52 | funroll-loops | TPABKA: Debian just su's. It works. |
23:04.31 | jasonb | destr0: There are several build.properties files, and anything I changed was specific to my setup, and may not apply to yours. |
23:05.07 | jasonb | destr0: Here, read this.. it's almost correct, and quite helpful: http://www.pubbitch.org/jboss/mod_jk2.html |
23:06.09 | TPABKA | hmm |
23:06.28 | TPABKA | speaking about connectors... which one is "the one"? :) |
23:09.49 | *** part/#tomcat kill9 (wack@ANTI2.RES.cmu.edu) |
23:10.40 | *** join/#tomcat oNoGM (ircap72@62-37-161-218.dialup.uni2.es) |
23:11.29 | jasonb | TPABKA: There really isn't a uber tomcat connector.. All of them suck. :) |
23:12.32 | TPABKA | heh :) |
23:12.55 | TPABKA | i'm installing webapp... |
23:13.09 | TPABKA | is there like "leading candidate"? |
23:13.27 | destr0 | excellent, thanks for that doc jasonb |
23:14.06 | jasonb | destr0: No problem. That's the best mod_jk2 doc I know of on the net. |
23:14.43 | oNoGM | sorry jasonb, which doc? |
23:15.04 | jasonb | oNoGM: http://www.pubbitch.org/jboss/mod_jk2.html |
23:15.31 | oNoGM | thx |
23:15.40 | jasonb | oNoGM: np. |
23:15.57 | jasonb | Using that, one can actually *almost* get mod_jk2 working. :) |
23:17.13 | TPABKA | heh |
23:17.25 | TPABKA | apache2 is still *almost* working :) |
23:18.01 | TPABKA | do i need to build tomcat-webapp.jar? |
23:28.04 | oNoGM | someone can tell me if AJP is a standard protocol or an Apache protocol?? |
23:29.27 | jasonb | It's a standard Apache protocol. :) |
23:29.40 | funroll-loops | Ha! |
23:31.32 | oNoGM | i'm looking for a specification reference or some RFC but... nothing |
23:31.41 | funroll-loops | It's private to Apache. |
23:31.59 | jasonb | There is no RFC. But, there is at least one protocol doc by Pier Fumagalli and others. |
23:32.13 | oNoGM | where?? |
23:33.16 | jasonb | oNoGM: This is *real* old, but probably still mainly applies.. |
23:33.21 | jasonb | oNoGM: http://java.apache.org/jserv/protocol/AJPv11.html |
23:33.31 | oNoGM | ok :) |
23:33.51 | jasonb | Actually, there's a newer one.. let me look for it. |
23:34.04 | randrew | http://jakarta.apache.org/tomcat/tomcat-3.2-doc/AJPv13.html perhaps? |
23:34.51 | destr0 | jasonb: when you built for rh7.2, did you download the apache src from apache, or install the src rpm from redhat? |
23:36.08 | jasonb | randrew: Yes, that's the one I'm thinking of. |
23:36.18 | randrew | jasonb: there's also this: |
23:36.20 | randrew | http://java.apache.org/jserv/protocol/AJPv21.html |
23:36.33 | jasonb | destr0: I actually didn't need to rebuild apache2 itself. I was able to use a binary release. |
23:37.29 | destr0 | you don't need to compile the jk2 connectors against apache source code? |
23:37.58 | jasonb | randrew: I have a feeling that ajp21 was never actually implemented. So, some stuff in there may not apply. |
23:38.14 | jasonb | destr0: You can compile mod_jk2 against apache2 binaries. |
23:38.37 | destr0 | ahh. |
23:38.39 | destr0 | awesome. |
23:38.46 | destr0 | that makes life a little easier |
23:38.47 | jasonb | destr0: I think maybe the apache2 bin distribution contains include files.. |
23:39.20 | jasonb | destr0: Yeah, heh. So they don't make you go through totall fire and brimstone hell, just total hell. :) |
23:39.25 | randrew | jasonb: this looks like it might be useful, too bad you need to use google to find it: http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/doc/ |
23:39.45 | jasonb | randrew: It's helpful in fewer ways than it's harmful, IMO. |
23:40.17 | randrew | jasonb: there's even an example no less! |
23:40.57 | jasonb | randrew: The examples are horrible, and some are just plain broken. |
23:41.46 | jasonb | You know something's really wrong when the example of how to do something doesn't work. |
23:42.38 | randrew | jasonb: are there some unbroken examples which don't use tcp/ip sockets. I have the feeling that the systems I use could be better configured in another way... |
23:46.25 | randrew | tomcat 4.1.18, apache 2.0.44 on solaris, which is the best jk2 src dist to build? should I use what's in the tomcat/v4.1.18/src dist directory? |
23:46.36 | destr0 | jasonb: when you set the the apache home in your build.properties file, did you set it to the home directory of the apache executable? |
23:48.18 | jasonb | destr0: No, to the apache2 binary distribution directory's path. |
23:57.17 | oNoGM | I have a problem witn tomcat 4.1.18 |
23:57.27 | oNoGM | the another day i installed this version, then i ran my application. |
23:57.31 | oNoGM | Suddenly, tomcat throught me an error |
23:57.32 | oNoGM | this one: |
23:57.37 | oNoGM | code too large for an try...catch block (more than 65535 bytes) |
23:57.41 | oNoGM | my app runs correctly un tomcat 4.0.x |
23:58.51 | oNoGM | someone else has experimented this problem?? |
23:59.06 | funroll-loops | Cool. |
23:59.51 | TPABKA | hmm |