00:46.31 | *** join/#tomcat jasonb (i=noneoyer@adsl-66-124-73-250.dsl.sntc01.pacbell.net) |
02:05.14 | jasonb | lyken: you around? |
02:07.39 | jasonb | lyken: The OSS broadcomm 43xx driver works for me now under FC4.. JSYK. http://bcm43xx.berlios.de/ |
02:29.07 | *** join/#tomcat FreemaniaX (n=Freemani@pcp0011117215pcs.elkrdg01.md.comcast.net) |
02:35.59 | *** join/#tomcat vinse_ (n=vinse_@208.253.223.146) |
02:53.33 | *** join/#tomcat vinse_ (n=vinse_@208.253.223.146) |
03:27.58 | CAz | anyone in here use tomcat with Solaris 10 ? |
03:41.33 | *** join/#tomcat map7 (n=map7@teksup41.lnk.telstra.net) |
03:44.05 | *** join/#tomcat puff (i=puff@66.45.34.102) |
03:45.16 | map7 | I'm starting a large project using JSP but want to know how I should design it? I've learnt some UML but understand that this should only be used for tricky and common parts of code. What methods do you guys use to design? |
03:50.11 | CAz | map7 you ever worked on a large project ? |
03:50.34 | *** join/#tomcat dorileo (n=dorileo@201.22.172.98.adsl.gvt.net.br) |
03:50.37 | map7 | not this large, it's an Accounting system |
03:50.44 | CAz | yikes |
03:50.53 | CAz | but i guess that's where all the money is |
03:51.36 | map7 | what design method do u use? |
03:58.00 | map7 | I'm thinking of breaking up the business layer into sections and showing them visually in a basic flow chart |
03:58.19 | map7 | Then use UML to show any tricky or common parts of the project |
03:58.57 | map7 | It's only the business layer I'm having trouble designing, I'm fine with DB, or User Interface |
04:00.05 | map7 | what are your thoughts? |
04:35.24 | puff | Evening. |
04:35.34 | puff | map7: That's a large topic :-). |
04:36.05 | puff | map7: JSP is intended for fairly shallow purposes. |
04:36.17 | map7 | yes i know, i just want to know where to look |
04:36.34 | puff | map7: Can you clarify your question a bit? |
04:36.58 | puff | map7: I've done a fair bit of java webapps, for the financial and medical industries. |
04:37.21 | puff | map7: Btw, you may want to dig up a copy of Martin Fowler's _UML Distilled_. |
04:37.49 | puff | map7: He also has a book on financial patterns, but I suspect the subject domain of his book may be more than you need. |
04:37.49 | map7 | I have a book called UML for Java Programmers |
04:38.10 | puff | map7: That's cool... Fowler's book is considered extremely good. |
04:38.35 | puff | map7: It was one of the first UML books and it became one of the most popular... mainly because he focused on "just enough" |
04:38.49 | puff | map7: His books in general are pretty damn good for higher level coding topics. |
04:38.57 | puff | map7: Also very readable. |
04:39.22 | map7 | puff: cool i might get it |
04:39.28 | map7 | puff: I need to know where to start design of the application layer |
04:39.30 | puff | map7: You should also maybe pick up his Enterprise Application PAtterns. |
04:39.43 | puff | map7: I need to hear a little bit more about your context... |
04:40.29 | map7 | puff: well I am programming an accounting package, it will generate reports and such. |
04:40.34 | puff | map7: First, are you working for a big company, small company, medium company? |
04:40.46 | puff | map7: Is this something you're coding up custom for your employer? |
04:40.50 | puff | map7: What's your experience level? |
04:41.14 | map7 | medium company, and it will be sold commercial |
04:41.30 | puff | map7: Report-oriented? Good, that's a little more reasonable for a starter project. |
04:41.34 | map7 | I've programmed in many languages and done something simular to this before |
04:41.36 | puff | map7: Hm, you working alone on this? |
04:41.53 | map7 | mainly yes |
04:42.09 | puff | map7: Is this going to be hosted or are you selling shrinkwrapo? |
04:42.20 | map7 | .hosted |
04:42.22 | map7 | here |
04:42.25 | puff | map7: What part of the world are you in ? :-) |
04:42.36 | map7 | australia |
04:42.41 | puff | map7: Fun. |
04:42.45 | puff | map7: I have friends from oz. |
04:42.49 | map7 | cool |
04:43.02 | map7 | so i've just about finished design of the database |
04:43.15 | map7 | and would like to start working on the application level |
04:43.32 | puff | Ah, sounds like you have a clearer idea of what you're doing than you sounded like at first. |
04:43.57 | map7 | all my DB is designed using NIAM and ER diagrams |
04:43.58 | puff | Can you discuss the requirements a little? |
04:45.01 | puff | Okay, so the general scheme of a J2ee/webapp is that you have typically five layers. |
04:45.08 | puff | This is, of course, a generalization. |
04:45.35 | map7 | basically the requirements are: reporting such as bal sheet, p&l, trail bal, etc. data entry of payments journals, reciept journals. Multi language, fast, flexible, appointments, todo list, phone messages. |
04:45.57 | puff | On one end you have the database. On the other end you have the JSPs, which generally should be extremely simple and are just in charge of taking specialized data objects and outputing HTML with the data in it. |
04:46.09 | lyken | nice jason |
04:46.21 | puff | lyken: What? |
04:46.57 | puff | map7: A classic mistake is putting too much into the JSPs. This is why the boys at Sun came up with "Model 2 MVC" |
04:46.59 | lyken | broadcom driver for his mac |
04:47.03 | puff | Ah, cool. |
04:47.37 | puff | map7: "Model 2 MVC" (and various variations on the phrase) was simply an attempt to redefine "the usual" way of writing a J2EE application and include some good basic design principles. |
04:47.57 | lyken | 'i know mvc'!! |
04:48.02 | map7 | puff: ok |
04:48.07 | puff | map7: There is much confusion resulting from the massive amounts of stuff written about this :-). |
04:48.54 | puff | MVC is basically a simple way of divvying up the application design, the smalltalk crowd came up with it long ago. Model, View, and Controller. The same crowd that invented MVC no longer like it, btw, their preferred scheme is "Morphic" |
04:49.21 | puff | Oh, yeah, they came up with MVC in a GUI context, for devleoping GUI components. |
04:49.52 | map7 | i remember this from UNI |
04:49.58 | puff | map7: Yeah, I'm sure you do :-). |
04:50.21 | puff | So, how much do you know about tomcat, servlets, webapps, j2ee, etc? |
04:51.13 | map7 | well I'm new to tomcat and servlets but have already setup my tomcat under FreeBSD and written a servlet that connects to mysql |
04:51.20 | map7 | and displays a list from a table |
04:51.30 | map7 | then i was happy with that so I started design |
04:51.46 | map7 | I chose this language over PHP mainly because it scaleable |
04:51.50 | map7 | and PHP isn't |
04:51.51 | puff | map7: Cool to hear that. I'm more worried about the general shape of webapps and j2ee ... a lot of people don't click to that. |
04:52.01 | puff | map7: As I said earlier, you have 5 layers. Leaving aside JSP for a moment... |
04:52.32 | map7 | and I've connected to webapps and connected through to the DB from there as well |
04:52.35 | puff | map7: So you have the database layer. Typically people like to have some sort of object-relational mapping (ORM) layer between the database and the rest of the apop. |
04:52.53 | puff | map7: This is because an object model and a relational data model don't really mesh all that well. |
04:53.13 | map7 | yes i see |
04:53.29 | puff | And the general topic area of object databases has really not matured yet, and ORMs have become very popular in the past 5-10 years, largely due to the rise of J2EE apps IHMO. |
04:54.36 | puff | Because of this "impedance mismatch" (a term borrowed from electronics and kept around because it just sounds so cool and techie) ORMs are problematic... |
04:55.03 | puff | Hm... see, it's all about finding strategies for dividing up the code. |
04:55.17 | puff | In ways that make it more feasible to tay sane. |
04:55.20 | puff | Stay sane. |
04:55.56 | puff | Unfortunately, none of these strategies is perfect. They all break down. |
04:56.01 | puff | So you do the best you can and muddle through. |
04:56.08 | map7 | I've read that I shouldn't use UML for designing the whole thing, and I see why it becomes too repeatitive and too many diagrams |
04:56.22 | puff | Yeah.... UML is best used sparingly, IMHO. |
04:57.02 | puff | UML is useful if you need to communicate what you're doing in a formal manner. informal UML at the whiteboard is useful as a commonly-understood notation, but if you get too neurotic about "doing it right" it's a pain in the ass. |
04:57.07 | map7 | So maybe i should use just a flow chart to show certain areas of the program and give a graphical representation of the overall area |
04:57.17 | puff | UML tools that are no "round trip" are, IMHO, worthless and worse than worthless. |
04:57.48 | puff | Er, not "round-trip". Round-trip means you can point the tool at some java source and generate diagrams, and adjust diagrams and have it update the source to match. |
04:58.05 | puff | Tool that let you draw diagrams and genreate source from it are poison, IMHO, because the source changes. |
04:58.17 | map7 | i agree |
04:58.24 | map7 | CASE tools are crap |
04:58.30 | puff | The source is the truth because it, ultimately, is what's going to run. Anything that obscures that is going to kill you. |
04:58.34 | puff | Slowly or quickly. |
04:59.11 | puff | Even UML tools that *are* "round-trip" are dubiious, but at least they're not so flat-out counterproductive. |
04:59.12 | map7 | puff: What's a good book on design |
04:59.37 | puff | Unfortuantely, you're going to need a library. Martin Fowler's _Enterprise Application Patterns_ is a good one. |
04:59.50 | puff | map7: Good starting point. |
04:59.59 | map7 | ok ill check it out |
05:00.06 | puff | Cool. |
05:00.18 | puff | I've gotta head out momentarily. |
05:00.36 | map7 | puff: ok well ill catch ya around |
05:00.42 | map7 | thanks for the insite |
05:00.45 | puff | Damn, this is a complex topic... I can sort of envision what I want to say, but I can't articulate it :-). |
05:00.58 | map7 | i may require a lot more discussion later |
05:01.04 | puff | Sure. |
05:01.20 | puff | I wish I knew of a good mailing list for this sort of convo. If you find one, let me know. |
05:01.31 | lyken | heh |
05:01.36 | map7 | yeah i will |
05:01.40 | lyken | mailing list would be slow and painful |
05:01.43 | lyken | you just need an open forum |
05:02.00 | puff | lyken: Eh... I like mailing lists. |
05:02.17 | puff | lyken: Different style of discourse, but useful. |
05:02.21 | lyken | indeed |
05:02.54 | puff | map7: One last thing... be wary of "frameworks" in the java webapp world. |
05:03.01 | puff | map7: also be wary of ejbs. |
05:03.07 | puff | map7: Though I hear ejbs are getting better. |
05:03.12 | lyken | ejbs *shudder* |
05:03.27 | puff | lyken: ejb3 is supposed to be much, much influenced bvy hibernate. |
05:03.39 | lyken | arh |
05:03.49 | lyken | yer i got bitten by ejb on a project about 2 years ago |
05:03.53 | lyken | havent touched em since |
05:03.58 | puff | map7: Lots of people advocate using frameworks. Almost all of these frameworks have their own implementation of MVC. |
05:04.21 | puff | lyken: I'd like to hear about that, some time, because I hear lots of vague criticisms of ejb but few detailed experiences. |
05:04.41 | puff | lyken: I'd like to have some detailed horror stories to cite :-). |
05:04.45 | lyken | i think it was a comibination of 'ejbs' and internal framework |
05:04.56 | lyken | which just broke so many 'standards' |
05:04.59 | puff | map7: I don't like most of these MVC frameworks, for various reasons. |
05:05.07 | lyken | because of some hack programmer that started the project |
05:05.27 | puff | map7: A big reason being that there's little need for most of the MVC crap in them, servlets can provide MVC quite well. |
05:06.24 | puff | map7: Another big reason being that I'm not sure they really solve the problems they set out to solve, and in the proces they lead you down a non-standard path, so you're basically adding more complexity to your project for a dubious payoff. |
05:07.10 | map7 | well i haven't used frameworks but it sounds crap |
05:07.20 | puff | map7: Typically MVC is meant to be such; to start with, most of your HTML should be generated by extremely shallow JSPs. |
05:07.54 | puff | map7: Other parts of your application will do the logic, munge the data, etc, and prepare a data object (typically called just "A java bean", but frnakly I think that term gets so overused that it's almost useless). |
05:08.11 | puff | Then your code will invoke the jsp somehow, passing the data object along. |
05:08.31 | puff | The JSP will pull the details out of the data object and print HTML, inserting the details into the HTML. |
05:08.46 | puff | Now your JSP gets "invoked" and how the data gets passed, there are several options. |
05:09.03 | puff | There's a server-side include/forward, or a client-side redirect. |
05:09.22 | *** join/#tomcat dorileo_ (n=dorileo@200.175.149.85.adsl.gvt.net.br) |
05:09.58 | puff | The server-side include/forward always passes the http request and http response objects, and you add your javabean as an "attribute" on the request. |
05:10.10 | puff | A request attribute is sort of like a request parameter, except the value can be any java opbject. |
05:10.32 | puff | You can also pass it less directly, by setting a session attribute. |
05:10.48 | puff | I generally prefer to use a client-side redirect and pass the javabean as a session attribute. |
05:11.05 | puff | Mainly because using a redirect prevents the browser from re-submitting form data. |
05:11.41 | puff | Note, however, that this means that multiple browser windows/requests may clash, since they're sharing the same session space. |
05:12.03 | puff | In general, this is a design constraint. I think it's preferable to focus on solving that problem than on the problems you get from the other alternatives. |
05:12.26 | puff | But then again, I can't say I've spent a ton of time trying the other alternatives. |
05:14.00 | puff | Btw, be wary of putting too much into your user sessions. Remember that each user is going to have a session, that's going to add up to memory usage... |
05:14.03 | puff | Okay, now we've gone over the javabean and the display-oriented JSP and the way you invoke it... but what about the other two parts of the process, the initial brower request and the application logic? |
05:14.56 | puff | The initial browser request sends an HTTP request to the server, one of the parameters of that request is going to be the page requested. Also any form parameters. |
05:15.54 | puff | This is where a lot of MVC frameworks fuck up, IMNSHO. They decide we need some sort of special, complex mapping solution, some way of defining this reqeust invoke that logic. Well, we HAVE one of those, it's called HTTP. I.e. the page you request. |
05:16.51 | map7 | puff: i gotta go, catch u l8r |
05:16.55 | puff | Most MVC frameworks try to bury and obscure the mapping, usually in a specially chosen form parameter. I prefer to keep it visible in the page you're requesting. |
05:16.57 | puff | Okay, nevermind. |
06:14.55 | *** join/#tomcat dorileo_ (n=dorileo@200.175.149.85.adsl.gvt.net.br) |
06:20.25 | *** join/#tomcat jasonb (i=noneoyer@adsl-66-124-73-250.dsl.sntc01.pacbell.net) |
06:48.40 | *** part/#tomcat jsisson (n=sissonj@210-0-83-196.nexnet.net.au) |
07:31.45 | *** join/#tomcat GedasRx (i=usr26@c1.edrana.lt) |
08:00.05 | *** join/#tomcat GedasRx (i=usr36@c1.edrana.lt) |
08:12.23 | *** join/#tomcat vinse__ (n=vinse_@ppp-71-139-118-75.dsl.snfc21.pacbell.net) |
09:59.41 | *** join/#tomcat didier (n=didier@aa3.informactis.com) |
10:00.11 | didier | hello, is there a way to reload an application with a command in a cmd.exe window ? |
10:33.31 | *** join/#tomcat dreivier (n=dreivier@port-212-202-43-109.dynamic.qsc.de) |
10:59.08 | *** join/#tomcat jsisson (n=sissonj@ppp39-16.lns2.syd6.internode.on.net) |
11:18.24 | *** join/#tomcat levon (n=levon@ad96eab9e.dsl.de.colt.net) |
11:42.37 | *** join/#tomcat DrizztPassos (n=chatzill@firewall.cesar.org.br) |
11:46.45 | DrizztPassos | I need your help. So that my Server can legalize a client certificate is necessary before to insert a certificate in an file of the JDK, called cacerts. I would like know, if I could define one another file (keystore) of access, that no was cacerts for tomcat (I am not using Apache). I need change my cacerts for another archive. IS that possible? |
12:46.41 | *** join/#tomcat mnemonic (i=none@80.91.145.226) |
13:30.58 | *** join/#tomcat Elias (n=EC@host86-129-102-85.range86-129.btcentralplus.com) |
13:35.42 | Elias | hi guys, i just install tomcat 5.5.12 |
13:36.05 | Elias | the service is running but when i type into IE localhost:8080 |
13:36.23 | Elias | it returns page not found |
13:36.27 | Elias | any ideas? |
13:37.05 | Elias | sorry it returns page cannot be displayed |
13:41.29 | swente | Elias: did you prefix it with http:// ? |
13:42.16 | Elias | bloodyhell hell im going to jump out the window. that was it thanks swente |
13:42.37 | swente | Elias: IE is very picky about that (if port != 80) |
13:43.50 | Elias | i never realised it would be picky to the extent of having to include http:// |
13:44.03 | Elias | but never mind |
13:44.10 | Elias | thanks again |
13:45.20 | swente | no problem :-). |
14:33.55 | *** join/#tomcat blackcarrera (n=blackcar@ti111210a080-2752.bb.online.no) |
14:34.34 | blackcarrera | a problem: We are deploying a WAR on the latest tomcat. This contains a pure-java server that, among other things, create subdirectories. |
14:34.46 | blackcarrera | however, the sub directories are create under /usr/tomcat, not the application directory |
14:35.36 | blackcarrera | also, we load resources (property files, etc) which is at the root of the deployed app, but it seems tomcat expects them to be at tomcat root |
14:35.41 | blackcarrera | what are we doing wrong? |
14:36.31 | blackcarrera | in "web.xml", we set display-name, servlet-name and servlet-class |
14:36.48 | blackcarrera | ideas? |
14:44.26 | blackcarrera | I guess what I'm after is a root path for the web app |
14:49.53 | *** join/#tomcat levon (n=levon@ad96eab9e.dsl.de.colt.net) |
14:55.32 | *** join/#tomcat FreemaniaX (n=Freemani@pcp0011117215pcs.elkrdg01.md.comcast.net) |
14:57.30 | *** join/#tomcat califerno (n=marcello@host16-224.pool871.interbusiness.it) |
15:01.18 | *** join/#tomcat keesj_ (n=keesj@deusplus.xs4all.nl) |
15:01.34 | califerno | I need to install tomcat5 on a debian sarge linux box. Is it better to install from apt testing repository or from tar.gz apache site? |
15:30.02 | *** join/#tomcat putzel (n=putzel@183-237-221-213-pool.cable.lan.ch) |
15:30.17 | *** join/#tomcat randrew (n=raj@dolmen.cc.columbia.edu) |
15:36.11 | *** join/#tomcat vito_ (n=vito@www.perspectivepartners.com) |
15:57.32 | *** join/#tomcat Elias (n=EC@host86-129-102-85.range86-129.btcentralplus.com) |
16:14.26 | *** join/#tomcat drN0 (n=chatzill@64.3.161.164.ptr.us.xo.net) |
16:20.30 | *** join/#tomcat bdudney (n=bdudney@c-24-9-189-43.hsd1.co.comcast.net) |
16:26.26 | *** join/#tomcat linuxfreck (n=freck@fry.fmi.uni-passau.de) |
16:36.13 | *** join/#tomcat Megaratta (n=moomoo@ppp-58.9.131.87.revip2.asianet.co.th) |
16:54.16 | blurpy | do i need invoker servlet to be enabled to use servlets? i thought i only needed it to use servletd without web.xml files, but it seems nothing works when invoker servlet is disabled |
16:54.26 | *** join/#tomcat FreemaniaPrime (n=Freemani@ip67-153-106-58.z106-153-67.customer.algx.net) |
16:54.44 | linuxfreck | the invoker servlet is deprecated and should be avoided |
16:55.01 | linuxfreck | better use a framework, or servlet-mapping elements in web.xml |
16:55.23 | blurpy | what kind of framework? |
16:56.02 | linuxfreck | well there are lots of frameworks to make servlet programming easier, a common one is apache struts |
16:56.31 | *** part/#tomcat FreemaniaPrime (n=Freemani@ip67-153-106-58.z106-153-67.customer.algx.net) |
16:56.50 | blurpy | thanks, i'll take a look :) |
16:57.43 | blurpy | ah, i got the servlet to work when i added servlet-mapping to the web.xml file! |
16:58.45 | blurpy | i wonder why it doesn't work when using port 80 though, only jsp works |
16:59.06 | linuxfreck | probably mod_jk is playing tricks on you |
16:59.14 | linuxfreck | i.e. the JkMount directives are wrong |
16:59.50 | blurpy | the only one i have is jkMount /*.jsp ajp13 |
17:00.02 | *** join/#tomcat FreemaniaPrime (n=Freemani@ip67-153-106-58.z106-153-67.customer.algx.net) |
17:00.04 | blurpy | what would i need to get servlets to work? |
17:00.58 | linuxfreck | depends on how your urls look like |
17:01.29 | blurpy | http://fluffy/~blurpy/mou <-- that is my testing servlet |
17:01.50 | linuxfreck | they must match the pattern given in JkMount |
17:02.29 | blurpy | jkMount /* ajp13 <-- would that be bad? |
17:02.33 | linuxfreck | the best thing you can do is avoid mod_jk completely and use tomcat's http server |
17:03.02 | linuxfreck | blurpy: that means that everything would be handled by tomcat |
17:03.11 | blurpy | oh |
17:03.54 | blurpy | i thought that tomcat + apache was a good combo, don't really know why though. what would i miss if i just used tomcat as the http server? |
17:04.57 | linuxfreck | You won't have apache modules then, e.g. mod_php etc |
17:05.11 | linuxfreck | on the other hand, you don't have to fsck with mod_jk |
17:05.53 | blurpy | ok, not using php at the moment, but might do so later |
17:09.14 | *** join/#tomcat Nopik (n=nopik@ztpnet-73-113.ztpnet.pl) |
17:11.00 | Nopik | hi all.. anyone take care to explain some tomcat basics on app deployment to newbie? :) |
17:12.00 | Nopik | i have set up tomcat on my linux machine and created some sample jsp pages servlets runned from invoker servlet, they work fine, but i would like to get also bigger app deployed, not via invoker |
17:12.16 | Nopik | and i do not know how to deploy it correctly (tried many ways, none of them worked :D) |
17:13.05 | Nopik | lets say i have app named 'foo' and i want to get servlet running inside - and assign it to e.g. /foo context |
17:13.06 | linuxfreck | sounds like a rtfm question :) |
17:13.25 | Nopik | yeah, maybe.. but i've read all manuals i've found and i'm still missing something :) |
17:13.41 | linuxfreck | see http://tomcat.apache.org/tomcat-5.5-doc/appdev/index.html for an introduction into servlet programming and http://tomcat.apache.org/tomcat-5.5-doc/deployer-howto.html on the different ways to deploy webapps |
17:14.38 | Nopik | i've created /var/lib/tomcat-5/defaults/ROOT/foo and put WEB-INF/web.xml and WEB-INF/classess/foo/MyServlet.class there.. and now i am not able to invoke it at all - probably web.xml is broken |
17:14.42 | Nopik | or, not read at all :) |
17:15.43 | linuxfreck | ROOT is special, don't use it |
17:16.17 | Nopik | ok, if i put ROOT/foo/test.jsp i can invoke it, but if i omit ROOT, i even cannot invoke jsp pages, let alone servlets ;) |
17:16.26 | Nopik | good to know, anyway ;) |
17:16.53 | linuxfreck | /var/lib/tomcat-5/defaults/ is a non-standard directory, too. |
17:18.03 | Nopik | what is standard directory, then? |
17:18.15 | Nopik | $CATALINA_HOME/webapps? |
17:18.19 | linuxfreck | yes |
17:19.37 | Nopik | hm, on my system CATALINA_HOME is set to /usr/share/tomcat-5, while there is no webapps directory there.. there is $CATALINA_HOME/server/webapps however, containing admin and manager apps |
17:20.01 | linuxfreck | your distro does wierd things then |
17:20.17 | Nopik | maybe :( |
17:20.17 | linuxfreck | server/webapps is a different thing though |
17:22.19 | Nopik | now i'm trying to do simple thing: downloaded sample.war from url given above, and trying to invoke it.. tried many places (also all mentioned above), restarted tomcat after any modification - but i still get 404 :( |
17:23.40 | Nopik | i.e. placing sample.war into $CATALINA_HOME/webapps does not work in particular ;) |
17:23.59 | linuxfreck | check server.xml |
17:24.46 | Nopik | what should i find there? |
17:24.58 | linuxfreck | the dir where webapps is |
17:26.13 | *** join/#tomcat godot73 (n=godot@80-218-0-145.dclient.hispeed.ch) |
17:26.15 | linuxfreck | it's in the appBase attribute of the Host element |
17:26.52 | Nopik | appBase is just webapps |
17:29.05 | linuxfreck | it's relative to CATALINA_BASE, whereever that is set |
17:30.22 | Nopik | does tomcat put into logs the value of CATALINA_BASE - as tomcat sees it? |
17:30.53 | Nopik | hm, probably not ;( |
17:34.32 | Nopik | ah, CATALINA_HOME is set to /usr/share/tomcat-5, while CATALINA_BASE is /var/lib/tomcat-5/default |
17:37.48 | Nopik | hm, strange.. putting sample.war into webapps does not work, but unpacking it worked |
17:37.52 | Nopik | i.e. i see the app now |
17:38.16 | *** join/#tomcat yel (n=yel@xdsl-87-78-23-200.netcologne.de) |
17:38.19 | Nopik | i will be use it as a base now.. dunno why .war did not worked ;) |
17:39.02 | Nopik | thanks for explaination |
17:47.23 | Nopik | ok, i managed to get my own app deployed, too :) |
17:56.39 | *** join/#tomcat hosa_die_waldfee (n=pool@dslb-084-056-155-143.pools.arcor-ip.net) |
17:57.05 | hosa_die_waldfee | ok this is really strange |
17:58.01 | hosa_die_waldfee | i have an string array in which holds my options/parameter for some cmd-line tools |
17:58.41 | hosa_die_waldfee | these are identical to the values which i submit via my jsp site |
17:59.48 | hosa_die_waldfee | never the less if i want to get these parameter values from the submited form via request.getParameter(s[i]) i only recieve null |
17:59.58 | hosa_die_waldfee | any idea? |
18:00.30 | hosa_die_waldfee | meanwhile i try to get around with an hashmap construction |
18:00.56 | hosa_die_waldfee | but would be great if someone has an solution THX!!! :-) |
18:01.16 | linuxfreck | you probably want to give examples |
18:01.39 | linuxfreck | i.e. how does your request parameters look like, and how do the elements of the s array |
18:03.05 | yel | hi everyone |
18:03.20 | linuxfreck | hi yel |
18:03.28 | hosa_die_waldfee | <PROTECTED> |
18:03.28 | hosa_die_waldfee | <PROTECTED> |
18:03.28 | hosa_die_waldfee | <PROTECTED> |
18:03.28 | hosa_die_waldfee | <PROTECTED> |
18:03.28 | hosa_die_waldfee | <PROTECTED> |
18:03.29 | hosa_die_waldfee | <PROTECTED> |
18:03.54 | hosa_die_waldfee | ex. for an parameter would be Gamma |
18:04.21 | hosa_die_waldfee | request.getParameter("Gamma"); gives me the 0.0 which was submited |
18:04.45 | linuxfreck | then the content of the usage String is interesting |
18:05.00 | linuxfreck | and btw don't paste more than 3 lines here |
18:05.08 | hosa_die_waldfee | Gamma UseGamma and so on |
18:05.13 | hosa_die_waldfee | k |
18:05.14 | hosa_die_waldfee | sorry |
18:05.17 | linuxfreck | use the pastebin for the rest |
18:05.48 | linuxfreck | I suppose there is something wrong with your split, what is the exact string? |
18:07.03 | hosa_die_waldfee | ProteinMLdist PInvar UsePInvar Gamma UseGamma Model Estimate_variances |
18:08.20 | *** join/#tomcat bdudney (n=bdudney@71-211-141-201.hlrn.qwest.net) |
18:08.25 | linuxfreck | well it should work then, unless there is more than one space between the words |
18:08.32 | linuxfreck | and _ is not valid in urls |
18:09.06 | linuxfreck | bbiab |
18:10.16 | hosa_die_waldfee | hmm there is only one space even .split(" +") gives the same failure |
18:12.37 | hosa_die_waldfee | the funny thing is if i procede the parameters over the enumeration everything is fine |
18:15.40 | *** join/#tomcat drN0 (n=chatzill@64.3.161.164.ptr.us.xo.net) |
19:16.05 | *** join/#tomcat drN0_ (n=chatzill@64.3.161.164.ptr.us.xo.net) |
19:19.43 | *** part/#tomcat randrew (n=raj@dolmen.cc.columbia.edu) |
19:27.47 | *** join/#tomcat Hellaenergy (n=Hellaene@206.231.92.70) |
19:38.19 | Nopik | when i change servlet class on disk, is it necessary to restart tomcat? |
19:39.35 | hosa_die_waldfee | u mean u have a webapp running an change an existing class? |
19:40.50 | Nopik | yeah |
19:46.11 | hosa_die_waldfee | im not really sure but i would guess a normal redeploy would do the job |
19:48.53 | Nopik | ok, i'll try |
19:50.33 | hosa_die_waldfee | gl |
19:52.47 | Nopik | hm, it doesnt :( |
19:53.07 | Nopik | it can be necessary to switch some development mode or something like this, though |
19:55.13 | hosa_die_waldfee | is that a prodction server you're running or just local development? do you use any ide? |
19:58.56 | *** join/#tomcat drN0__ (n=chatzill@64.3.161.164.ptr.us.xo.net) |
19:59.24 | Nopik | local development, no ide (just vim :D) |
19:59.33 | *** join/#tomcat Elmar (n=chatzill@f54064.upc-f.chello.nl) |
19:59.49 | Nopik | when i'll put into production, it will not change very often, thus server restart will be ok |
20:00.47 | Hellaenergy | Nopik: I think hosa_die_waldfee is suggesting you do use an IDE if you want that functionality. Eclipse or NetBeans will allow you to change things on the fly. |
20:01.42 | Nopik | ;) |
20:02.09 | Nopik | well, i would rather stay restarting server than have to use eclipse ;p |
20:02.33 | Nopik | btw. if eclipse is able to force server to update, there must be a way of doing it without eclipse ;p |
20:02.50 | Nopik | unless tomcat is heavily integrated with it, which i doubt |
20:03.21 | hosa_die_waldfee | which os do u run? |
20:03.35 | Nopik | linux, gentoo distro |
20:03.42 | Hellaenergy | It is embeded within, but it just starts a new server every time. |
20:03.59 | Nopik | ah, ok |
20:04.22 | hosa_die_waldfee | ok than u should use the .sh scripts for deployment or you use the manager app from tomcat |
20:05.04 | *** join/#tomcat Dr_Q (n=chatzill@f54064.upc-f.chello.nl) |
20:05.30 | Nopik | hm, manager app could be nice - i never managed to log into it ;) |
20:06.41 | hosa_die_waldfee | have you modified the users name and pw in the conf file? ;-) |
20:07.08 | *** part/#tomcat Dr_Q (n=chatzill@f54064.upc-f.chello.nl) |
20:09.19 | Nopik | no, i did not ;p |
20:09.19 | Nopik | what should i put there? |
20:10.34 | hosa_die_waldfee | im not quiet sure but should be sth like that in the tomcat-user.xml <user username="tomcat" password="tomcat" roles="manager"/> |
20:11.19 | Nopik | thanks |
20:11.31 | hosa_die_waldfee | the admin webapp should be able of the user managment too, that can be downloaded from the webpage |
20:11.38 | Nopik | i think, i've seen roles="admin" somewhere, gotta try both of them :) |
20:11.51 | hosa_die_waldfee | have a nice try ;-) |
20:11.59 | Nopik | well, did not managed to get log into admin app either :D |
20:12.07 | Nopik | i did not tried too much, however |
20:12.53 | hosa_die_waldfee | did you make a restart? |
20:13.55 | Nopik | well, i was not modifying users.xml yet, so restart was not necessary :) |
20:16.07 | Nopik | yeah, managed to log into admin app when role set to admin |
20:16.10 | hosa_die_waldfee | this could be of help |
20:16.12 | hosa_die_waldfee | http://tomcat.apache.org/tomcat-5.0-doc/manager-howto.html#Configuring%20Manager%20Application%20Access |
20:16.32 | hosa_die_waldfee | ahh ic |
20:16.35 | hosa_die_waldfee | :_) |
20:19.12 | Nopik | hm, quite powerfull app ;) |
20:19.28 | Nopik | but strangely, manager app stopped to working at all (access forbidden) |
20:19.29 | Hellaenergy | when it works ;) |
20:19.34 | Nopik | yeah :D |
20:20.57 | Nopik | with admin app i can turn on reloadable switch, so server is now checking for updates on disk |
20:21.03 | Nopik | though, it is not done at every access :( |
20:21.24 | Hellaenergy | I assume it works on timestamps |
20:21.39 | Hellaenergy | or touch'es |
20:23.33 | Nopik | yes, but i do experience following: i compile new version, copy class to server location, click on reload, see old app, click on reload again, again old, and after few clicks (<5) it suddenly slows down (it is being recompiled) and then i see new version |
20:23.36 | Nopik | not big problem, though |
20:24.15 | Hellaenergy | Its a time think. Wait the duration of the five clicks ;) |
20:25.00 | Nopik | ;) |
20:25.18 | Nopik | well, if i mount autofire to my mouse, it will be 50-click time :D |
20:25.29 | Hellaenergy | DO IT! |
20:25.31 | Hellaenergy | :) |
20:27.15 | Nopik | no, thanks.. i tried once, but it is nightmare if you want close window |
20:27.27 | Nopik | you end up closing all of your windows, actually :) |
20:27.44 | Hellaenergy | silly |
20:27.50 | hosa_die_waldfee | do u have any jsps in your webapp? |
20:27.57 | Nopik | yes, i have |
20:28.06 | Nopik | and they are checked at every acces, i think |
20:28.30 | Nopik | at least i've turned on reloadable param in server.xml :) |
20:28.31 | hosa_die_waldfee | ;-) |
20:29.23 | hosa_die_waldfee | since the jsp is not fully recompiled you will see the old temporarly hold page |
20:29.36 | hosa_die_waldfee | at least that is what i guess is the problem |
20:33.33 | *** join/#tomcat grzywacz (n=grzywacz@195.69.80.9) |
20:36.37 | Nopik | is there any good tutorial to do user authentication on jsp/servlets? |
20:36.52 | Nopik | just like admin app: in order to do anything you have to login |
20:37.09 | Nopik | gotta go through google.. |
20:37.45 | *** join/#tomcat a4akb (i=a4akb@ask13-171.qualitynet.net) |
20:38.02 | a4akb | Yo. |
20:39.28 | a4akb | ibot Hellaenergy |
20:39.29 | ibot | [hellaenergy] cute! |
20:49.09 | *** join/#tomcat ye1 (n=yel@xdsl-87-78-114-89.netcologne.de) |
20:52.02 | Nopik | hm, in some web.xml i've found <login-config> secition.. anyone know where can i found documentation on it? |
20:52.33 | a4akb | www.google.com |
20:52.47 | Hellaenergy | amen |
20:53.08 | Hellaenergy | a4akb: I think that is the first smart thing I have ever seen you say. |
20:53.40 | a4akb | welp Hellaenergy you are never here, I do say a lot of smart things in here ;o) |
20:53.52 | Hellaenergy | keep it up. |
20:54.00 | a4akb | Thanks. |
20:54.13 | a4akb | Howz life? |
20:54.31 | Hellaenergy | Wonderful thanks |
20:54.36 | a4akb | cool |
20:54.44 | a4akb | You are Welcome. |
20:54.59 | Hellaenergy | Now get back to work. |
20:55.03 | Hellaenergy | lol |
20:55.10 | a4akb | Studies completed? |
20:55.22 | a4akb | yea, get back to work @ 11:54PM |
20:55.25 | Hellaenergy | nevermind me. This is the #tomcat channel |
20:55.54 | a4akb | ok lets pm |
20:56.29 | Hellaenergy | hell no |
20:56.32 | a4akb | lol |
20:56.39 | Hellaenergy | later |
20:56.52 | a4akb | later, am going to bed soon. |
20:57.00 | a4akb | Good to see you. |
20:57.10 | Hellaenergy | whatever |
20:57.24 | a4akb | I love you. :P~ |
20:57.41 | Hellaenergy | um... no. |
20:57.51 | a4akb | lol |
20:58.19 | a4akb | we all love you for creating the channel |
20:58.22 | a4akb | ibot love |
20:58.24 | ibot | If you love <insert item> so much, why don't you marry it |
20:58.40 | Hellaenergy | ibot: hate a4akb |
20:58.56 | a4akb | ibot goodgirl |
20:58.59 | Hellaenergy | ibot: what is hate |
20:59.01 | ibot | Hellaenergy: I think you lost me on that one |
20:59.24 | a4akb | she is a love bot Hellaenergy, dont corrupt it |
20:59.28 | Hellaenergy | lol |
20:59.33 | a4akb | ;P |
20:59.33 | Hellaenergy | damn her |
20:59.41 | a4akb | ibot i love you |
20:59.43 | ibot | You love you? |
20:59.51 | a4akb | ibot love you |
20:59.53 | ibot | If you love you so much, why don't you marry it? (oooooh) |
21:00.26 | Hellaenergy | ibot: a4akb is a spammer |
21:00.27 | ibot | ...but a4akb is already something else... |
21:00.32 | a4akb | :P |
21:00.35 | a4akb | ibot a4akb |
21:00.37 | ibot | rumour has it, a4akb is Analysis_Paralysis |
21:00.45 | a4akb | yep, thats me |
21:00.46 | Hellaenergy | ibot: forget a4akb |
21:00.46 | ibot | i forgot a4akb, Hellaenergy |
21:00.56 | Hellaenergy | ibot: a4akb is a spammer |
21:00.58 | ibot | okay, Hellaenergy |
21:01.03 | Hellaenergy | good boy |
21:01.21 | a4akb | ibot forget Hellaenergy |
21:01.21 | ibot | a4akb: i forgot hellaenergy |
21:01.32 | a4akb | ibot Hellaenergy is a porn bot |
21:01.33 | ibot | okay, a4akb |
21:01.33 | a4akb | :P |
21:01.39 | Hellaenergy | ibot: forget Hellaenergy |
21:01.39 | ibot | i forgot hellaenergy, Hellaenergy |
21:01.47 | Hellaenergy | ibot: a4akb |
21:01.49 | ibot | extra, extra, read all about it, a4akb is a spammer |
21:01.54 | a4akb | \o/ |
21:02.29 | a4akb | sleep well Hellaenergy |
21:04.39 | *** join/#tomcat drN0__ (n=chatzill@64.3.161.164.ptr.us.xo.net) |
21:07.00 | *** join/#tomcat jasonb (i=noneoyer@adsl-66-124-73-250.dsl.sntc01.pacbell.net) |
21:07.13 | a4akb | Lo! The great one returns |
21:07.52 | Hellaenergy | Hey jasonb |
21:08.16 | jasonb | Hellaenergy: Hi! How's it going? |
21:08.31 | Hellaenergy | Very well thanks |
21:09.25 | jasonb | Hellaenergy: How's the harley? :) |
21:09.35 | Hellaenergy | in winter storage |
21:09.39 | Hellaenergy | :( |
21:09.54 | Hellaenergy | Did you get a ride yet? |
21:09.59 | a4akb | and i thought it was a tomcat channel Hellaenergy :P |
21:10.27 | Hellaenergy | owww I got dogged |
21:10.31 | Hellaenergy | my fault |
21:10.34 | jasonb | heh |
21:10.48 | a4akb | damn u got an harley n did not even tell me! |
21:10.53 | *** part/#tomcat jsisson (n=sissonj@ppp39-16.lns2.syd6.internode.on.net) |
21:11.29 | *** topic/#tomcat by a4akb -> http://tomcat.apache.org Latest stable versions of Tomcat are 5.5.12, 4.1.31, and 3.3.2 If you are a newbie, use the official distribution on Jakarta's site. Be sure to check the log files before you attempt to search for a solution. SLOW-MOTION CHANNEL (we all have jobs): Ask your question, then wait; check back often to see if anybody answered.owner got an harley |
21:12.11 | jasonb | Don't change the channel topic to off topic things, please. |
21:12.32 | *** topic/#tomcat by a4akb -> http://tomcat.apache.org Latest stable versions of Tomcat are 5.5.12, 4.1.31, and 3.3.2 If you are a newbie, use the official distribution on Jakarta's site. Be sure to check the log files before you attempt to search for a solution. SLOW-MOTION CHANNEL (we all have jobs): Ask your question, then wait; check back often to see if anybody answered. |
21:13.07 | a4akb | sorry |
21:13.48 | Hellaenergy | a4akb: I think we have had enough for you today. Its time for you to leave. |
21:16.18 | *** mode/#tomcat [+o Hellaenergy] by ChanServ |
21:16.18 | *** part/#tomcat a4akb (i=a4akb@ask13-171.qualitynet.net) |
21:16.18 | Hellaenergy | lol |
21:17.17 | Hellaenergy | true |
21:17.42 | Hellaenergy | Yeah he is a bit like a cockaroch |
21:18.16 | jasonb | heh.. I like your spelling of that. :)( |
21:18.28 | Hellaenergy | lol |
21:18.39 | jasonb | That must be the Scarface spelling.. |
21:18.58 | Hellaenergy | what is it cockroach? |
21:19.11 | jasonb | Depends on if you're hispanic or not. :) |
21:19.25 | Hellaenergy | hehe |
21:19.44 | Hellaenergy | I installed Geronimo the other day. |
21:19.49 | jasonb | How did that go? |
21:19.54 | Hellaenergy | Easy |
21:20.02 | jasonb | Did it come pre-configured to use Jetty? :) |
21:20.14 | Hellaenergy | However they seem to be defaulted to using jetty |
21:20.19 | Hellaenergy | yup |
21:20.21 | jasonb | Geronimo is probably really nice now. |
21:20.33 | Hellaenergy | Dude you ain't lyin |
21:20.40 | Hellaenergy | The management console is nice |
21:20.41 | jasonb | Those guys rock. |
21:21.07 | Hellaenergy | I wan't to switch from JBoss to it now. |
21:21.22 | Hellaenergy | Once it gets released I will attempt the right up |
21:21.31 | jasonb | It has Tomcat in it, but I understand that it defaults to using its built-in Jetty instead. |
21:21.52 | jasonb | It's open source. It's released. :) |
21:22.02 | Hellaenergy | milestone 4 |
21:22.16 | jasonb | You can get the source code, right? |
21:22.30 | jasonb | .. Then it's released. :) |
21:22.42 | Hellaenergy | http://geronimo.apache.org/ |
21:22.46 | Hellaenergy | Look at the front page |
21:22.49 | jasonb | Everything in this world is a work in progress. |
21:22.57 | Hellaenergy | "Geronimo 1.0 Release Pending" |
21:23.13 | Hellaenergy | Apparently someone leaked that 1.0 was final |
21:23.20 | Hellaenergy | You know what I mean silly. |
21:23.27 | Hellaenergy | Its half political |
21:24.03 | jasonb | No it isn't. |
21:24.04 | jasonb | It's 100% political. |
21:24.13 | jasonb | (the "released" thing, I mean) |
21:24.18 | Hellaenergy | no doubt |
21:24.46 | Hellaenergy | Its is slightly tech as well. People have to know what to support |
21:26.19 | jasonb | I find it strange that people will wait for a Dot Zero release of something, then just sit back and complain that there are bugs when it's a dot zero. Then, when dot somethingelse comes out, they won't upgrade. |
21:26.37 | jasonb | Just get what works. |
21:27.01 | Hellaenergy | Yeah I tend to stay away from .0 of anything |
21:27.17 | Hellaenergy | generally are tons of bugs |
21:40.18 | *** join/#tomcat aaronc (n=acline@12.104.6.129) |
21:40.23 | aaronc | super-complicated question |
21:40.40 | aaronc | tomcat server on port 8080 is behind a BigIP unit that is doing SSL for the tomcat server |
21:41.05 | Hellaenergy | lol |
21:41.19 | aaronc | now... tomcat doesn't know that it is behind an SSL proxy |
21:41.30 | aaronc | but I need it to return URLs like it is |
21:41.36 | aaronc | does that make sense? |
21:42.13 | aaronc | if the app makes a redirection, I need the redirection to start with an https:// not a http:// |
21:42.18 | hosa_die_waldfee | does that proxy some kind of portmapping |
21:42.41 | aaronc | it does coming in, and it might going out, but I haven't figured the "out" part yet |
21:42.46 | Hellaenergy | That is a nasty one |
21:42.48 | aaronc | is that the best way to go? |
21:43.12 | aaronc | Hellaenergy: that's kind what I thought... very nasty |
21:43.13 | hosa_die_waldfee | what app do u use as proxy? |
21:43.22 | aaronc | its a BigIP Load Balancer |
21:43.39 | aaronc | not an app, per say, but a piece of hardware |
21:44.39 | Hellaenergy | aaronc: If you find out let me know. |
21:44.47 | aaronc | heheheh... will do |
21:45.35 | hosa_die_waldfee | thats why i never heard of ;-) |
21:47.31 | jasonb | aaronc: Set proxyPort and redirectPort on your Connector to what that BigIP uses. |
21:49.39 | Hellaenergy | anyone know how well Harmony is coming along? |
21:50.40 | jasonb | Yes.. entities are starting to donate lots of code now. |
21:51.02 | jasonb | The pieces seem to be falling out of the sky into Harmony, but it will take a very long time to assemble them in an intelligent and useful way. |
21:51.38 | jasonb | And, at the same time it seems like there is no progress in getting ASF & FSF together on licensing enough for Harmony to be able to incorporate Classpath (as I expected). |
22:19.19 | *** join/#tomcat h0ngry_ (n=thinker@68-190-245-247.dhcp.snbr.ca.charter.com) |
22:19.21 | h0ngry_ | hi folks |
22:20.40 | h0ngry_ | I am having a great deal of trouble getting tomcat working properly. in the catalina_log, I keep receiving this error: "2005-12-20 14:25:49 UserDatabaseRealm[Catalina]: Exception looking up UserDatabase under key UserDatabase |
22:20.40 | h0ngry_ | javax.naming.NamingException: The processing instruction target matching "[xX][mM][lL]" is not allowed. |
22:20.59 | h0ngry_ | might anyone be able to give me a clue as to what might be wrong? |
22:28.55 | h0ngry_ | hello? |
22:29.13 | *** part/#tomcat h0ngry_ (n=thinker@68-190-245-247.dhcp.snbr.ca.charter.com) |
22:29.13 | *** part/#tomcat Hellaenergy (n=Hellaene@206.231.92.70) |
22:33.34 | *** part/#tomcat aaronc (n=acline@12.104.6.129) |
22:37.19 | *** join/#tomcat jsisson (n=sissonj@210-0-83-196.nexnet.net.au) |
22:57.49 | *** join/#tomcat Elias (n=EC@host86-129-102-85.range86-129.btcentralplus.com) |
23:03.48 | Elias | hi guys i wonder if any of you can explain this. i created a few html pages on my desktop and then copied them into the webapps folder and everything worked fine. i then copied them onto my laptop and put them into the webapps folder on the laptop, but when i display the pages on the laptop the images included in the page are not displayed |
23:07.12 | *** join/#tomcat jasonb (i=noneoyer@adsl-66-124-73-250.dsl.sntc01.pacbell.net) |
23:08.48 | *** join/#tomcat vinse_ (n=vinse@208.253.223.146) |
23:14.11 | *** part/#tomcat vinse_ (n=vinse@208.253.223.146) |
23:21.03 | *** join/#tomcat vinse_ (n=vinse@208.253.223.146) |
23:38.04 | *** join/#tomcat vins1 (n=Alon@208.253.223.146) |
23:47.42 | *** join/#tomcat HotDogHotDog (n=jeff@h24-207-85-163.cst.dccnet.com) |