00:00.03 | beron | have you done any servlets tutorial? |
00:00.07 | *** join/#tomcat ohsix (ohsix@bc111222.bendcable.com) |
00:00.08 | aiyaiyairc | yup |
00:00.15 | aiyaiyairc | they neglect to state this stuff |
00:00.16 | aiyaiyairc | one site.. |
00:00.30 | beron | and what have you learned about using deployment descriptor? |
00:00.38 | aiyaiyairc | said you can alter permissions file to allow a single servlet to compile from webapps, but it is a security reisk |
00:00.42 | aiyaiyairc | nada, brb |
00:01.48 | aiyaiyairc | wowzers lots of stuff just came up with that phrase...:) |
00:02.52 | aiyaiyairc | lol, k, yeah, i've been altering the web.xml file and not realizing it was called the DEPLOYMENT DESCRIPTOR...:) |
00:05.29 | aiyaiyairc | is there an automated process for generating all of these subdirs and pieces, likes the MANIFEST.MF file, etc? -ie an IDE ? ..........if an IDE doesn't speed up this process, seems like just copy/paste work, just tyring to figure that out I guess................any automated method available? .....just using command line ty |
00:06.38 | aiyaiyairc | wait...should i be asking this is ##java, because this has to do with jar creation as well....? |
00:09.27 | *** join/#tomcat ZweiSuchenAktiv (~x@p54A1B49B.dip.t-dialin.net) |
00:09.32 | ZweiSuchenAktiv | hi |
00:12.22 | beron | perhaps if you can learn Ant and xdocs |
00:12.44 | beron | automation can be done with those |
00:17.42 | aiyaiyairc | muahahahah excellent, have Ant installed, and found a link to Jar info it's gotta be time to find Ant instruction, will save me time in long run, THANK YOU for saying that, forgot about Ant, and didn't know it could do that as well!!! |
00:18.19 | aiyaiyairc | and for deployment descriptor 2 :) |
00:37.50 | puff | Lately I've been thinking that I should just do a start-to-finish, step-by-step for building a web application. |
00:37.55 | puff | Starting with downloading tomcat. |
00:38.09 | puff | hm... maybe. |
00:41.11 | jasonb | puff: Have you seen the AppFuse project? |
00:42.12 | jasonb | https://appfuse.dev.java.net/ |
00:48.25 | *** join/#tomcat soulcutter (~soulcutte@soulcutter.user) |
01:00.43 | *** join/#tomcat RizeNine (~RizeNine@vn.24.171.92.49.charter-stl.com) |
01:01.16 | RizeNine | Who here was having the tomcat trouble? |
01:01.34 | RizeNine | The on that would shutdown and leave processes running. |
01:01.43 | RizeNine | Using RH8. |
01:31.29 | *** join/#tomcat ph0enix (~phoenix@201-003-142-017.nhoce7005.dsl.brasiltelecom.net.br) |
02:12.36 | *** join/#tomcat alx_ (~alx@213-140-17-111.fastres.net) |
02:55.36 | *** join/#tomcat elihusmails (~iknowu@pool-129-44-208-228.syr.east.verizon.net) |
02:56.27 | elihusmails | I am looking into using Java Server Faces for the HTML generation part of my servlets. Is this the best approach, or is there a better one ?? |
05:18.49 | *** join/#tomcat FreemaniaX (~Freemania@pcp0011117215pcs.elkrdg01.md.comcast.net) |
05:40.51 | *** join/#tomcat jasonb (noneoyerbi@adsl-66-124-73-250.dsl.sntc01.pacbell.net) |
05:47.56 | *** join/#tomcat majic (~majic@nc-69-69-52-5.sta.sprint-hsd.net) |
05:57.11 | *** join/#tomcat stow (~stows_min@dialup-4.243.155.212.Dial1.SanFrancisco1.Level3.net) |
06:22.03 | *** join/#tomcat link128 (~mlm@203.27.101.152) |
06:22.29 | *** part/#tomcat link128 (~mlm@203.27.101.152) |
06:27.48 | *** part/#tomcat majic (~majic@nc-69-69-52-5.sta.sprint-hsd.net) |
06:31.42 | puff | RizeNine: I'm having a similar problem with tomcat crashing on FC1, and occasionally hanging and not releasing port 8080. |
06:32.06 | puff | jasonb: appfuse? I recognize the name, but I don't remember what it is. |
06:34.32 | jasonb | puff: It's a project to make starter webapps that people can just adopt and built upon instead of starting from scratch. |
06:34.51 | jasonb | puff: They have starter webapps of varying kinds.. including various technologies. |
06:35.09 | jasonb | puff: All servlet webapps though. |
06:38.33 | puff | Ah, yeah. |
06:41.47 | puff | Yeah, skimming the site, now I remember why I didn't get into it... it's struts-based. |
06:58.46 | jasonb | puff: Well, I think they have other implementations as well. |
07:00.11 | puff | It's definitely worth looking at. |
07:07.30 | puff | Specifically, trying to set up some files to *not* be forwarded to jkmounts. |
07:22.17 | jasonb | That's probably not easy to do. You probably found that out. :) |
07:46.20 | *** join/#tomcat daxuza (~lys-26cu6@81.13.149.221) |
07:51.54 | puff | Yeah, still playing with that. |
07:52.13 | puff | Well I think what I want is fairly straightforward, just not the way the hosting servic e set stuff up by default. |
07:52.40 | puff | And various factors (my netgear router repeatedly crashing for no reason) are making this painful to test and troubleshoot tonight;. |
07:53.40 | puff | And now firefox is sucking up all my cpu for no discernible reason. Sigh. |
07:54.30 | puff | Goddamnit... NOW what the fuck? |
07:54.40 | puff | Now it appears that the voice server is refusing connections. |
07:54.41 | puff | Hm. |
07:54.44 | puff | This is... problematic. |
07:54.55 | jasonb | heh. Friday night meltdown. |
07:55.25 | puff | Either that or something weird is going on at the hosting service's end, their firewall has been accidentally set to "don't allow outgoing http" or something. |
07:55.34 | puff | RE: netgear... this is the story of my life... |
07:55.47 | puff | I always have bad luck with hardware, for some reason. |
07:55.51 | puff | So I ask around before buying. |
07:56.02 | puff | And everybody says "Don't worry about it so much, just buy something." |
07:56.29 | jasonb | Yeah, I often scour the net for pages about hardware I think I'm about to buy. |
07:56.29 | puff | And I say, "no, I always have bad luck with hardware, I *really* need some suggestions on reliable hardware." |
07:56.44 | puff | And everybody says something like, "Okay, just buy a netgear then." |
07:56.48 | puff | And I say "which netgear?" |
07:56.54 | puff | And they say "Any netgear, they're all good." |
07:57.01 | puff | And I buy the WGT624 and it goes to hell in a handbasket. |
07:57.09 | jasonb | puff: You should probably then examine who you're asking. :) |
07:57.12 | puff | And they say, "Well, not *that* netgear, of course..." |
07:57.27 | jasonb | puff: Which OS do you run this stuff with? |
07:57.32 | puff | Which stuff? |
07:57.35 | puff | The netgear? |
07:57.52 | jasonb | Well, anything that requires a computer, and you're having trouble with it.. :) |
07:57.56 | puff | Heh. |
07:58.10 | *** part/#tomcat daxuza (~lys-26cu6@81.13.149.221) |
07:58.10 | puff | All kinds... winblows, various linux distros (mostly debian and fedora). |
07:58.25 | puff | Okay, I give up on this jkmount thing. |
07:58.31 | jasonb | Ahh.. Okay, those first two OSs explains your trouble. |
07:59.22 | puff | Heh. |
07:59.23 | puff | Debian? |
07:59.25 | jasonb | Yeah. |
07:59.33 | puff | Funny, that's what all the debian guys say about fedora :-). |
07:59.37 | jasonb | Should rename that Deb0rken. |
08:00.34 | puff | [Sat Mar 19 03:00:06 2005] [error] jk2_init() Can't find child 15865 in none of the 256 scoreboard slots |
08:01.00 | puff | Not sure what that means. |
08:01.07 | jasonb | Ignore that. |
08:01.28 | jasonb | Some of the log stuff from jk2 was debug output that ended up left on. |
08:01.34 | puff | Ah. |
08:02.16 | puff | I need to either find, or start, a good mailing list for ASP-style tomcat hosting. |
08:02.18 | puff | Dammit, there goes the router again. |
08:04.33 | puff | Application Service Provider? |
08:04.45 | jasonb | yes. |
08:04.52 | puff | Well, what else would you do? |
08:04.58 | puff | Lemme rephrase that. |
08:04.59 | jasonb | Run Tomcat myself. |
08:05.10 | puff | No, no.... *I* am the ASP. |
08:05.16 | jasonb | Oh. |
08:05.27 | puff | I have about 14 customers live and another 15 in the pipeline. |
08:05.48 | puff | And today we signed two more that dwarf the rest of 'em put together. |
08:05.53 | jasonb | Do you have customers sharing Tomcat JVMs? |
08:05.53 | puff | Each. |
08:05.58 | puff | At the moment, yeah. |
08:06.10 | puff | I'm definitely moving away from that soon :-). |
08:06.15 | puff | How is this normally done, btw? |
08:06.17 | jasonb | It would be so easy for one customer to bring down the web site(s) of other customers. |
08:06.32 | puff | Not in this case... our app. |
08:06.47 | jasonb | Hmm. So they don't write any code? |
08:06.49 | puff | We're not a hosting company, we're an application service provider (aka buisness process outsourcer). |
08:06.58 | puff | Right... they rent the apps from us. |
08:07.05 | jasonb | ahh. Well, that may work. |
08:07.05 | puff | So, let's say I run 30 tomcat instances. |
08:07.13 | puff | Well, it's worked so far, but I'm definitely moving away from it. |
08:07.27 | puff | I'm also moving towards a multi-process architecture... |
08:07.27 | jasonb | Why? |
08:07.44 | puff | Too many interdependencies... |
08:08.20 | jasonb | puff: But what trouble does that cause? |
08:08.53 | puff | For one example, any time I need to add an app, I have to restart tomcat. |
08:09.02 | puff | Which means all of my customers are offline. |
08:09.16 | jasonb | Well, you shouldn't need to. |
08:09.21 | puff | Really? |
08:09.39 | jasonb | When you add a webapp, do you add a host? Or, just another webapp? |
08:09.45 | puff | host? |
08:10.05 | jasonb | Does a new customer mean serving a whole new FQDN? |
08:10.11 | puff | No. |
08:10.17 | puff | Not right now. |
08:10.18 | jasonb | Or, same FQDN, different context name? |
08:10.30 | puff | Though I've been planning to move in that direction, too, so we can easily move customers around to different boxes. |
08:10.35 | jasonb | So if it's just a new context, you can do that without restarting all of Tomcat. |
08:10.36 | puff | Same FQDN, different context. |
08:10.41 | puff | Really? |
08:10.44 | jasonb | Of course. |
08:10.50 | jasonb | That would suck if you couldn't. :) |
08:10.56 | puff | I haven't seen that happen... unless it's with a newer tomcat. |
08:10.59 | jasonb | This is what the manager webapp is for. |
08:11.08 | jasonb | Nah, it's been in there since Tomcat 4.0 I think. |
08:12.05 | puff | Odd... |
08:12.11 | puff | Oh, I see.. I can tickle tomcat via the manager app;. |
08:12.23 | puff | But a lot of the tutorials I've seen recommend removing it as a security risk :-). |
08:12.27 | puff | Good to know, though. |
08:12.33 | jasonb | You can do this via the manager webapp, or you can use the Ant tasks that come with Tomcat.. which also hit the manager webapp I think. |
08:12.49 | puff | Still, if anything goes wrong - a typo in a web.xml change causes a re-deployment to hang, for example... |
08:12.59 | puff | So this i sodd... |
08:12.59 | jasonb | It's only a security risk if you leave the password wide open.. you have to test the auth to make sure it works properly. |
08:13.12 | puff | I changed the jkmount stuff back and now I *don't* get connection refused. |
08:13.50 | jasonb | Well, if a redeployment hangs, you may have to restart, yes. But, before restarting it may only adversely affect that one context. |
08:13.53 | puff | I suspect that's some sort of funky error. |
08:13.55 | puff | Oh well. |
08:14.17 | puff | Okay... so lemme get this straight, now you *don't* advocate using a separate tomcat instance per app? |
08:15.07 | jasonb | Well, if you can be pretty sure that one customer's webapp won't adversely affect another customer's webapp, then it is actually advantageous to share a JVM for two or more customers. |
08:15.23 | puff | Memory load? |
08:15.36 | puff | Er, memory overhead? |
08:15.38 | jasonb | But, regular traffic load has a lot to do with whether you can share without other-customer-starvation happening. |
08:15.53 | puff | I've already got plans to migrate some chunks of the apps out to a common, separate tomcat installation. |
08:16.06 | puff | A couple, actually... for some specific purposes. |
08:16.39 | puff | That is, right now there are certain features that are implemented, and managed, in each app, individually. |
08:16.58 | puff | I'm moving towards implementing a management app, and probably running that in a separate process. |
08:17.32 | jasonb | Sure. Sometimes you'll need / want to segment them off, but keep in mind the threading requirements.. each Tomcat requires a request thread pool, which is hard on the CPU. If you have more than one Tomcat JVM on a box, that means more than one thread pool, so your CPU requirements are higher. And, probably not just by a little bit. |
08:17.32 | puff | So, odd question... what's the "normal" way to handle having 30 instances of tomcat running on one machine? |
08:17.56 | puff | Give each tomcat instance its own port, and use FQDN and ip-based virtual hosting with apache to forward requests? |
08:17.59 | jasonb | Hmm, you shouldn't run 30 instances of tomcat on one machine. |
08:18.07 | puff | Ah? |
08:18.23 | jasonb | How many request processor threads would you allocate to each of the 30? |
08:18.23 | puff | Well, however many. |
08:18.36 | puff | That's a good question :-). |
08:19.08 | jasonb | Lets say you give a max of 10 to each one.. times 30, that would mean you'd spawn more than 300 threads on the poor box. |
08:19.08 | puff | Right now, I don't have a clear plan... I just have this uncomfortable feelng that having all the webapps running under one tomcat instance is akward and risky. |
08:19.13 | puff | Yeah. |
08:19.17 | puff | 300 processes. |
08:19.24 | jasonb | threads != processes. |
08:19.34 | puff | Depends on the threading implementations. |
08:19.45 | puff | So 300 threads. |
08:19.46 | jasonb | Kind of.. but threads are meant to be lighter weight. |
08:19.50 | puff | Is this really so bad? |
08:20.11 | puff | How many full-blown processes can a reasonable server handle? |
08:20.14 | jasonb | The best way to run that many threads is to use the JRockit JVM since it has a way of consolidating many JVM threads into fewer native threads. |
08:20.25 | puff | Yeah... a single JVM on a winblows box maxes out around 1000 threads. |
08:20.31 | puff | Hm. |
08:20.45 | jasonb | Different CPUs & architectures handle threads differently, so it really is hardware dependent. |
08:20.49 | puff | Ah. |
08:21.03 | puff | What time zone do you live in, btw? |
08:21.10 | puff | I'm a night owl.. EST. |
08:21.24 | jasonb | This is one of the deepest subjects about Tomcat configuration, and one I've spent lots and lots of time on, trying to get decent answers for T: TDG, SE. |
08:21.39 | jasonb | I'm in Pacific time, so it's just after midnight here. |
08:21.43 | puff | Ah. |
08:21.44 | jasonb | But, I do have to go to bed very soon. |
08:21.51 | puff | Yeah, me too. |
08:21.59 | puff | But I'd love to continue this conversation, sometime soon. |
08:22.03 | jasonb | Yes. |
08:22.11 | puff | One thing that I'm still curious about, btw... |
08:22.26 | jasonb | I do want to talk more about this because I also need others's opinions and experience to weigh in on it. |
08:22.30 | puff | In cases where you do run more than one JVM/tomcat onna box, what's the normal procedure for this? |
08:22.42 | puff | Other than simple using different ports and telling your users to use those ports. |
08:23.45 | jasonb | You can configure the networking stuff however works best for you.. and different people do this differently. Different port, same IP.. or same port, IP aliases. |
08:24.03 | puff | Ah... okay, so IP aliasing can address it? |
08:24.11 | jasonb | Yes. |
08:24.14 | puff | Is that typically done with apache or some other front-ending software? |
08:24.21 | puff | Or is it doable at the OS level? |
08:25.01 | jasonb | Another way I've seen people do it: configure a box to have one IP address, run one Tomcat on it on one port, map lots of FQDNs to that IP address in DNS, tell Tomcat about all the names, and then you have one Tomcat that serves lots of FQDNs. |
08:25.38 | jasonb | IP aliasing is done at the OS level on Linux and Solaris. As for the others, I really don't know since I don't do that. |
08:25.54 | puff | On the LocationMatch thing, btw... |
08:25.56 | puff | my general thought is that if LocationMatch is a true regexp, I can just something like "^/pathname " in the jkmounts... I was trying out Location instead of Location Match, on the idea that it would be lighter weight and might be more likely to Do The Right Thing by default. |
08:26.06 | jasonb | On linux it's "ifconfig eth0:1 1.2.3.4" |
08:26.08 | puff | Hm, interesting... so tomcat can do IP-based virtual hosting? |
08:26.36 | puff | Er, name-based virtual hosting? |
08:26.45 | puff | Would that be a valve? |
08:27.03 | jasonb | ibot: vhosting |
08:27.04 | ibot | i heard vhosting is a way of handling multiple domains on a single server. Ask me about apache_vhost, exim_vhost |
08:27.14 | jasonb | hmm, someone redefined that. :( |
08:27.40 | puff | Re: IP aliasing, I understand that you can tell the box to answer to more than one IP, I was trying to figure out how you route the requests to different processes. |
08:27.48 | jasonb | damn, no more jakarta either. |
08:27.57 | puff | Jakarta? |
08:28.01 | puff | ircbot? |
08:28.12 | jasonb | no. jakarta.apache.org. It's gone. |
08:28.16 | puff | Wtf? |
08:28.26 | jasonb | The Apache folks are doing some infrastructure work this weekend. |
08:28.29 | puff | whois --> not found? |
08:28.31 | puff | TWtf? |
08:28.40 | puff | good to know :-) |
08:28.43 | jasonb | They may be moving the data center or doing something else big. |
08:28.47 | jasonb | Don't worry, it'll be back. |
08:28.48 | puff | Hm. |
08:29.12 | jasonb | So anyway... |
08:29.14 | puff | Okay, g'night. |
08:29.20 | puff | ? |
08:29.35 | jasonb | As for the vhosting.. "routing the request" |
08:30.09 | jasonb | You can configure Tomcat to open server sockets (Connectors) on any name or IP address that you want. |
08:30.42 | jasonb | So if you open one on each IP address you want to serve from, that's enough to make it work, as long as the OS has been configured to use each of those IP addresses. |
08:31.25 | jasonb | You may alternatively configure Tomcat to open server sockets on FQDNs.. in which case it will look up the IP address for each, and bind to that IP address. |
08:31.43 | jasonb | Depending on how you're mapping the names to IP addresses, you configure for how you're doing it. |
08:32.03 | puff | Ah, interesting. |
08:32.08 | puff | Cool. |
08:32.10 | jasonb | You either need one big <Host>, with <Alias>s, or you need one <Host> per IP address. |
08:32.29 | puff | Okay, so if I went towards one-tomcat-per-customer, that'd be the route. |
08:32.35 | jasonb | So, Tomcat has all these scenarios covered. |
08:32.43 | puff | But it's a questionable strategy. |
08:32.51 | jasonb | So even that could be done in more ways than one. |
08:33.47 | puff | Okay, thanks. |
08:34.13 | jasonb | You could A) have one big IP address and map each customer's FQDN to that IP (which is usually called "Host-based vhosting", or B) Give each customer its own IP address with the FQDN mapped to it, which is usually called "IP aliased vhosting". |
08:34.40 | puff | Right, analogous to the same stuff done via apache. |
08:34.59 | jasonb | In scenario A), HTTP 1.1 requests to Tomcat give a "Host: www.somehost.com" header to Tomcat, and that is how Tomcat knows which host the request is for. |
08:35.19 | jasonb | In scenario B), it's more IP address based.. but HTTP 1.1 still gives the Host header. |
08:35.23 | puff | I'm familiar with how that works, yeah. |
08:35.33 | jasonb | Yeah. |
08:35.43 | puff | I've been familiar with the theory of it since they introduced http 1.1 :-). |
08:35.48 | puff | But the practice is another question. |
08:35.49 | jasonb | Yeah. |
08:36.00 | puff | I'm gonna sack out now, but I'm very interested in continuing the discussion on one-tomcat-per-webapp or not, and other issues related. |
08:36.10 | jasonb | Yeah.. threading issues. |
08:36.28 | jasonb | I'll be back on tomorrow. |
08:36.39 | puff | Well, I already see strategic advantages to splitting out some of the tasks to specialized servers, so that might make more sense. |
08:36.44 | puff | Ciaol. |
08:36.48 | puff | Er, Ciao. |
08:36.54 | jasonb | BCNU. |
09:10.50 | *** join/#tomcat loquace (~seb@aqu33-1-82-233-55-6.fbx.proxad.net) |
09:15.34 | loquace | lo |
09:29.12 | *** join/#tomcat linuxfreck (~freck@fry.fmi.uni-passau.de) |
11:00.39 | *** join/#tomcat alx_ (~alx@213-140-17-111.fastres.net) |
11:12.47 | *** join/#tomcat rghkth (~kth-rgh@triton.dsv.su.se) |
11:12.54 | rghkth | hey guys |
11:13.12 | rghkth | anyone can help me in enabling SSL on tomcat 5.0 |
11:13.16 | rghkth | ???? |
11:17.05 | linuxfreck | rghkth: you were here yesterday, no? |
11:17.17 | linuxfreck | you want to ask more specific questions |
11:29.02 | rghkth | ok, |
11:29.35 | rghkth | i download tomcat 5.0, i followed all steps exactly as said on website and documentation |
11:29.43 | rghkth | i download tomcat 5.0, i followed all steps exactly as said on website and documentation |
11:30.17 | rghkth | but it didn't work... what am asking for is some ideas about probable problems |
11:36.44 | *** join/#tomcat linuxfreck (~freck@fry.fmi.uni-passau.de) |
12:13.01 | *** join/#tomcat ym (ym@ppp83-237-254-20.pppoe.mtu-net.ru) |
13:14.09 | *** join/#tomcat FreemaniaX (~Freemania@pcp0011117215pcs.elkrdg01.md.comcast.net) |
13:17.28 | *** join/#tomcat Tilos (~tilos@c213-89-229-118.cm-upc.chello.se) |
13:52.36 | *** join/#tomcat majic (~majic@nc-69-69-52-5.sta.sprint-hsd.net) |
14:19.40 | *** join/#tomcat MarkT (~Mark@markt.user) |
15:05.00 | *** join/#tomcat Big_Bozz (~Big_Bozz@user-2168.l5.c1.dsl.pol.co.uk) |
15:05.19 | *** join/#tomcat Alexys (~Alexys@201.245.131.106) |
15:09.04 | Alexys | Buenos dias jasonb |
16:08.46 | *** join/#tomcat a4akb (bbwpleaser@as33-b242.qualitynet.net) |
16:12.18 | a4akb | Hello all. |
16:15.27 | majic | hello |
16:15.34 | a4akb | sup majic? |
16:16.00 | majic | same old shit, just trying to get up to speed on Tomcat |
16:17.01 | a4akb | cool |
17:10.40 | *** join/#tomcat jhassine (~jhassine@brainalliance5.evtek.fi) |
17:22.47 | *** join/#tomcat joered (~chatter@81-208-74-182.fastres.net) |
17:25.49 | *** join/#tomcat beron (~rodane@adsl-67-122-214-39.dsl.snfc21.pacbell.net) |
17:51.21 | *** join/#tomcat ph0enix (~phoenix@201-003-142-017.nhoce7005.dsl.brasiltelecom.net.br) |
18:21.50 | *** join/#tomcat grrrrr (~subtle@166-220-084-025.mobile.attwireless.net) |
19:34.00 | majic | does the servlet api provide anyway to hash passwords using md5? I've looked at the MessageDigest class in java.security but I've been unable to get the kind of output I'd like. It's giving me different output than say what the PHP md5sum function gives for a given string. |
19:36.31 | *** join/#tomcat Sir_Fawnpug (~raving@cpe-24-242-126-156.sport.res.rr.com) |
19:40.24 | puff | majic: Hm, that's gotta be doable... I'd suggest asking on ##java. |
19:42.39 | majic | I've been googling on this for 2 hours =) |
19:54.27 | *** join/#tomcat alx_ (~alx@213-140-17-111.fastres.net) |
20:02.28 | *** join/#tomcat harpoon (stueber@ultra20.rbg.informatik.tu-darmstadt.de) |
20:06.16 | *** join/#tomcat valmont (~chrisholl@lsanca1-ar8-4-43-220-080.lsanca1.elnk.dsl.genuity.net) |
20:09.47 | RizeNine | majic, you find anything? |
20:11.20 | majic | http://www.cadenhead.org/workbench/category/Advogato <- I found this |
20:11.35 | RizeNine | majic, so someone did answer you? |
20:11.57 | majic | I've been googling on it, I didn't want to appear like an asshole on #java |
20:12.32 | RizeNine | majic, so you just want to hash a string? |
20:12.45 | majic | yep |
20:13.21 | RizeNine | http://www.jonh.net/~jonh/md5/MD5.java |
20:13.56 | RizeNine | http://www.jonh.net/~jonh/md5/ |
20:14.03 | majic | the link I posted is a very small example on how to use MessageDigest properly |
20:14.07 | majic | that's what I was after |
20:14.13 | majic | not a complete implementation of md5 |
20:14.21 | RizeNine | ah |
20:16.26 | majic | with the code from the link I posted it will produce results equal to PHP's md5 function which is exactly what I was after |
20:16.48 | RizeNine | majic, ok, so your good to go then? |
20:17.09 | majic | yeah |
20:17.15 | Sir_Fawnpug | Is javax.servlets specific to tomcat? |
20:18.12 | RizeNine | majic, coo!. |
20:18.19 | RizeNine | Sir_Fawnpug, no |
20:19.22 | RizeNine | Sir_Fawnpug, it's specific to J2EE. |
20:19.35 | RizeNine | Sir_Fawnpug, why? |
20:31.48 | *** join/#tomcat harpoon_ (stueber@ultra20.rbg.informatik.tu-darmstadt.de) |
20:33.32 | *** join/#tomcat alx_ (~alx@213-140-17-111.fastres.net) |
20:41.06 | Sir_Fawnpug | RizeNine, just wondering, from what I was reading it looked like I could do servlets with j2se |
20:41.26 | RizeNine | Sir_Fawnpug, so your a newbie? |
20:41.47 | Sir_Fawnpug | RizeNine, you could say that. |
20:42.07 | RizeNine | Sir_Fawnpug, what ide you going to use? |
20:42.23 | Sir_Fawnpug | RizeNine, I'm using JBuilder since it's what I'm most familiar with |
20:42.37 | pucko | anyone got tips on shoppingcart/e-commerce app in tomcat? |
20:42.39 | RizeNine | Sir_Fawnpug, oh. |
20:42.40 | Sir_Fawnpug | Although I hear eclipse is really good |
20:43.00 | RizeNine | pucko, I'd have to look one up. I don't use any. |
20:43.08 | RizeNine | Sir_Fawnpug, I use Netbeans. |
20:43.20 | Sir_Fawnpug | RizeNine, ahh, the free one that comes with j2se now? |
20:43.22 | majic | I was using Eclipse 3.1M5a and then moved over to Netbeans 4.1 beta (I found it to be much more of a polished IDE, but that is a personal preference) |
20:43.27 | RizeNine | Sir_Fawnpug, all the servlet and stuff is there already. |
20:43.54 | RizeNine | Sir_Fawnpug, ya, they bundle the open source Netbeans IDE with java. |
20:44.19 | majic | I fell in love with NB's 4.1 beta |
20:44.20 | RizeNine | Yes I really like Netbeans. Been using it for years. |
20:44.45 | Sir_Fawnpug | RizeNine, I'll certainly give it a try then. The main reason I use jbuilder is that's what my teachers have us use |
20:44.52 | Sir_Fawnpug | But I'm certainly open to other options |
20:45.13 | RizeNine | majic, same here, but again. I liked the older one's as well, but when I jumped to 4 I was thrown for a while then I was like this rocks. |
20:45.16 | majic | I love the way NB's displays the contents of the web.xml |
20:45.56 | RizeNine | Sir_Fawnpug, ya, they don't know what there doing. I work at a College and our Java people a clueless. |
20:46.14 | Sir_Fawnpug | For a while I was using kdevelop for some of my development stuff but I got largely fed up with it |
20:46.15 | RizeNine | majic, ya. |
20:46.32 | RizeNine | majic, I like the dtd autocomplete stuff too. |
20:47.06 | majic | NB's just seems completely commited to java web development. I didn't get the same feel from the tomcat eclipse plugin |
20:47.22 | RizeNine | majic, ya. |
20:47.30 | majic | but maybe I didn't have some extra plugins installed or something |
20:47.44 | RizeNine | majic, but I've been doing some gui dev on it, and I like that as well. |
20:47.49 | majic | the out of box experience for NB 4.1 beta was impressive (well I was pretty impressed, haha) |
20:48.20 | RizeNine | majic, I don't see the kick with swt. I like swing. |
20:48.51 | majic | I've always liked Swing as well |
20:49.08 | majic | I don't have anything against Eclipse or SWT but I prefer NB's / Swing |
20:54.19 | Sir_Fawnpug | Rizenine, wow, this is a pretty awesome IDE |
20:54.24 | Sir_Fawnpug | None of that codeinsigh BS either |
21:06.17 | puff | Sir_Fawnpug: Hm. |
21:06.35 | puff | Sir_Fawnpug: Strictly speaking, servlets as a spec can be implemented in any language that would support the necessary constructs. |
21:06.42 | puff | But nobody does :-). |
21:07.37 | puff | You may want to read http://www.darksleep.com/notablog/format.cgi?article=Java_Web_Applications_0.foo |
21:08.06 | puff | It's an annoying topic, sprawl seems inevitable when discussing it... this is something I do'nt like about the java development culture :-). |
21:08.11 | *** part/#tomcat majic (~majic@nc-69-69-52-5.sta.sprint-hsd.net) |
21:08.36 | puff | Anyway, gotta idle and get to a party. Ciao. |
21:31.41 | *** join/#tomcat FreemaniaX (~Freemania@pcp0011117215pcs.elkrdg01.md.comcast.net) |
21:39.39 | *** join/#tomcat lilalinux (e-trolley@deepthroat.deswahnsinns.de) |
21:40.34 | aiyaiyairc | ~~Tomcat issue??~~ on 4.1.31??~~ 1)Had a VERY simplet servlet, to try and learn better, added some code to the servlet to have some fun __________________2)Java compiled it fine 3)reloaded the htm form page, put new info in, SUBMIT, the execution was that of the OLD SERVLET, not the newly compiled one__________4) wtf? ....so a)shutdown browser b)restart tomcat c)clear cache/history/etc. d) try again, same thing, somehow the OL |
21:42.01 | aiyaiyairc | ...basically, after altering a working servlet, and compiling, tomcat is somehow still using old version of the serlvet, even though it has been overwritten... |
21:42.10 | RizeNine | Sir_Fawnpug, yep, it's a nice one. |
21:42.24 | RizeNine | Sir_Fawnpug, netbeans.org it the site. |
21:42.32 | RizeNine | Sir_Fawnpug, if you want to learn more. |
21:44.00 | RizeNine | aiyaiyairc, and you restared the tomcat? |
21:44.39 | aiyaiyairc | yup multiple x before crying about knowing it would work after a comp restart... |
21:44.40 | RizeNine | aiyaiyairc, clear out the work dir. |
21:45.08 | RizeNine | aiyaiyairc, what comp restart? |
21:45.16 | aiyaiyairc | i physically overwrote all files in meta-inf/web-inf/etc. |
21:45.31 | aiyaiyairc | i restarted the computer, and it solved the problem, but that would be annoying |
21:45.37 | RizeNine | aiyaiyairc, meta-inf?? |
21:45.51 | aiyaiyairc | yeah...it's from a jar thingy, non-essential |
21:45.53 | RizeNine | aiyaiyairc, what are you using? |
21:46.03 | aiyaiyairc | command line and 4.1.31 |
21:46.06 | aiyaiyairc | tomcat... |
21:46.09 | aiyaiyairc | java 1.4.2_04 |
21:46.15 | RizeNine | aiyaiyairc, windows? |
21:46.15 | aiyaiyairc | i know 07 is out... |
21:46.17 | aiyaiyairc | yup |
21:46.24 | aiyaiyairc | winxp |
21:46.44 | RizeNine | aiyaiyairc, what's your base installed location? |
21:47.01 | RizeNine | aiyaiyairc, where you run tomcat from .bat. |
21:47.08 | aiyaiyairc | c |
21:47.23 | RizeNine | aiyaiyairc, so c:\tomcat? |
21:47.34 | aiyaiyairc | c:\tomcat4.1 sorry |
21:47.52 | aiyaiyairc | then webapps |
21:47.56 | RizeNine | aiyaiyairc, so, c:\tomcat4.1\webapps |
21:48.01 | RizeNine | aiyaiyairc, so, c:\tomcat4.1\webapps\mayapp |
21:48.07 | aiyaiyairc | correct, i just realized that's what you meant, EXACTLY |
21:48.09 | aiyaiyairc | i overwrote |
21:48.18 | aiyaiyairc | everything there, and still it kept using the old version |
21:48.19 | RizeNine | aiyaiyairc, is that where you mod your app? |
21:48.36 | RizeNine | aiyaiyairc, do you see c:\tomcat4.1\work? |
21:48.39 | aiyaiyairc | no, i compiled it in my java directory first |
21:48.40 | aiyaiyairc | brb |
21:48.45 | aiyaiyairc | yes, see it |
21:48.54 | aiyaiyairc | ahhhhh |
21:48.56 | aiyaiyairc | i get it |
21:49.01 | RizeNine | aiyaiyairc, clean that out. then restart tomcat. |
21:49.29 | aiyaiyairc | it has it's own cache!!! mfer! heheheh, i'm going to retry this situation again real quick it'll prob be about 4minutes |
21:49.31 | aiyaiyairc | brb |
21:49.39 | RizeNine | aiyaiyairc, if you use netbeans is will repackage all that for you. |
21:49.51 | RizeNine | aiyaiyairc, k |
21:53.13 | aiyaiyairc | yup that did it, wonder if will ever forget this one:-D thanks a TON!!!! >>>>about netbeans>>>> |
21:55.14 | aiyaiyairc | i started java this year, and it auto-installed netbeans, but have been concentrating on learning java instead of being inside an IDE, just last night actually fired up netbeans to start learning it because of JSP/servlets,, and found out that it had actually installed Tomcat 5.0 as well, I had some issues trying to compile with though....tried searching for a chat group about netbeans here, but didn't find one, do you have a "clos |
22:23.33 | *** join/#tomcat grrrrr_ (~subtle@166.220.45.196) |
22:53.10 | *** join/#tomcat grrrrr (~subtle@166-220-045-196.mobile.attwireless.net) |
22:55.27 | *** join/#tomcat joered (~chatter@81-208-74-182.fastres.net) |
23:31.05 | RizeNine | aiyaiyairc, ya, there's a group. |
23:31.16 | RizeNine | aiyaiyairc, not many in it. |
23:51.37 | RizeNine | aiyaiyairc, just me it looks like. |
23:51.54 | RizeNine | aiyaiyairc, : ) |
23:52.01 | RizeNine | aiyaiyairc, there was some people in it. |
23:52.16 | RizeNine | aiyaiyairc, if you want to learn java just start using Netbeans. |
23:52.33 | RizeNine | aiyaiyairc, unlike other IDE's it shows you all the code. |
23:52.48 | RizeNine | aiyaiyairc, with code completion you can also learn. |
23:53.13 | RizeNine | aiyaiyairc, while your writing have the j2se javadocs open and go to town. |
23:53.43 | RizeNine | aiyaiyairc, after learning the basic syntax this method should get you up and running fast. |
23:54.02 | RizeNine | aiyaiyairc, then just look up examples if you don't understand. |
23:54.14 | RizeNine | aiyaiyairc, the javadocs are very useful. |
23:54.41 | RizeNine | aiyaiyairc, plus the Netbeans IDE will show you the javadocs page in code completion. |
23:55.50 | RizeNine | aiyaiyairc, the hardest thing to learn wih Netbeans 4.0 is that projects are broke into folders. One with source one the stuff. The the build and dist is where the compiled got ends up after you build your project. |