irclog2html for #tomcat on 20061202

00:09.04*** join/#tomcat ratm83 (i=ratm83@bb-87-80-36-3.ukonline.co.uk)
00:09.40ratm83i deployed a servlet into a folder and it was working fine. I do the exact same thing with another servlet and i get a 404 error!?!? anyone know why this is happening, is it a bug or something?
00:09.57ratm83ive triple checked everything
00:12.11jasonbWhat do the logs say?  Anything?
00:15.42ratm8302-Dec-2006 00:08:25 org.apache.catalina.core.ApplicationContext log
00:15.42ratm83INFO: InvokerFilter(ApplicationFilterConfig[name=Path Mapped Filter, filterClass=filters.ExampleFilter]): 0 milliseconds
00:17.17ratm83got a long list of those
00:17.26ratm83is that related to the error?
00:17.34jasonbUse a paste server and start showing us your environment and configurations.
00:17.46ratm83ok
00:18.02jasonbAnd read & follow the topic line.
00:19.56ratm83http://rafb.net/paste/results/1Zfpf484.html
00:21.07ratm83HelloWorld is the first servlet that i deployed and was working fine. After, I deployed PostTestServlet and it doesnt work
00:21.27ratm83as you can, i did it in the same way
00:27.53ratm83yeah i know
00:27.55ratm83its weird
00:28.57ratm83is it a noob question, is that why you're blanking me?
00:29.49swentenobody blanks, most are busy i'd say
00:30.00ratm83oh ok
00:30.03swenteratm83: what error do you get/what happens?
00:30.14ratm83its happened to me before thats why lol
00:30.43ratm83type Status report
00:30.48ratm83The requested resource (/servlets-examples/servlet/PostTestServlet) is not available.
00:31.07ratm83but the other servlet which i deployed in the exact same way is working fine
00:32.22swenteyou're sure the servlet itself is good? tomcat restarted properly after deploying? nothing in tomcat's logs?
00:34.20ratm83i restarted tomcat and now it works
00:34.26ratm83i never knew i had to do that
00:34.38swentefine :)
00:34.39ratm83i didnt restart for the other servlet to work
00:34.43ratm83thanks for the tip
00:34.48swentenp
00:34.54ratm83bye
00:34.58swentebye ratm83
00:44.23swenteuh - better send it to me :)
00:48.25*** join/#tomcat Ixodes (n=ricinus_@86.73.109.201)
00:58.57jasonbswente: after I'm done beating him over the head with it..  :)
01:00.16*** part/#tomcat Ixodes (n=ricinus_@86.73.109.201)
01:51.24*** join/#tomcat wsmoak (n=wsmoak@ip68-96-53-53.ph.ph.cox.net)
01:54.39evoshA bloody book! It must be priceless -- I'll go ahead sell on eBay for $1,000, starter.
02:03.27jasonbBut then it wouldn't be priceless anymore..
02:17.20*** join/#tomcat yassine (n=yassine@xdsl-84-44-155-19.netcologne.de)
02:22.14jasonbGood morning yassine.
02:23.29yassine:) its like 3:22 morning here jasonb
02:26.26jasonbStill morning.  :)
02:26.34jasonbAnd what are you doing up??
02:27.30yassinesetting up ldap
02:27.44yassinewhich seem not to work att all :/
02:28.07yassinei need it for samba
03:03.31jasonbldap really sucks.
03:03.43jasonbAre you trying to use Samba to serve real windows machines?
03:40.57*** join/#tomcat o3236 (n=cschulth@pool-68-238-251-170.phlapa.fios.verizon.net)
03:45.56pfnldap doesn't suck
03:46.02pfnnor does samba in conjunction with ldap
03:46.17pfnit'd be nice if ldap+samba really could perform as AD for windows, but unfortunately, it doesn't
03:46.30pfnstupid proprietary crap
03:47.23pfnldap isn't very useful if you don't have a largish number of nodes/users
03:49.20pfnjasonb so, I've added more neat features to the ria... some cleanup (fixed some ugly cpu usage issues, so it doesn't drain 100% cpu anymore)
03:49.35pfnand some nice placeholders for images while they're loading
04:56.03*** join/#tomcat shibbz (n=schaible@MW-ESR1-72-49-69-240.fuse.net)
04:56.20shibbzHey, anyone in here
04:58.51shibbzI'm new to tomcat, and apache - If I have an installation of Apache running, do I need to run the HTTP server, or can Tomcat do it all?
05:04.07*** join/#tomcat fsee (n=Franz@58.69.180.205)
05:05.45fseenewbie question: im following the "JavaMail Sessions" section of http://tomcat.apache.org/tomcat-5.0-doc/jndi-resources-howto.html and im having some trouble...im getting a java.lang.ClassNotFoundException: org.apache.naming.factory.MailSessionFactory..any ideas?
05:08.20fseebtw, i am using TC5.5 and WinXP
05:08.58shibbzdisregard my question, figured it out, thanks
05:10.38pfntomcat can do it all
05:10.58pfnfsee dunno, never tried setting up a mail session
05:11.08fseepfn: tnx :)
05:11.09pfnfsee you're reading the docs for tc 5.0 while you're running 5.5
05:11.17pfnthat's bound to cause problems
05:11.20pfnread the docs for 5.5
05:11.31fseepfn: good point :-) sorry i didn't notice that earlier :-)
05:11.45shibbzthanks pfn
05:12.42fseepfn: im now looking at 5.5 and the content is the same with regards to JavaMail sessions :-)
05:12.55pfnthen did you download the activation and mail.jar as directed
05:13.30fseeyes
05:13.53fseeMailSessionFactory is in mail.jar, and i tried putting that in my CATALINA_HOME/common/lib, in my webapps lib, and in both..and it still won't find it
05:14.43pfnput it into your common/lib
05:14.45pfnit will find it
05:14.51pfnyou restarted tomcat after putting it there?
05:15.32fseepfn: yes, i've tried putting it in common/lib and restartng tomcat but still the same problem. nonetheless, i'll try again since i don't have much options :-)
05:16.59pfnboth mail.jar and activation.jar in common/lib, right?
05:17.01fseepfn: yup..still same problem
05:17.04pfnand pastebin the stack trace
05:17.07fseepfn: yes
05:17.10pfnand the context in the log file
05:20.39fseepfn: here's the stack trace: http://rafb.net/paste/results/5goBZC28.html
05:23.10pfnyou sure you have that exact class in there?
05:23.57pfnthis sounds like it's missing in tomcat 5.5
05:24.02fseepfn: and here's the catalina log file - http://rafb.net/paste/results/M2TcgC41.html and the jakarta_service log file - http://rafb.net/paste/results/sXEpda18.html
05:24.14fseewhat seems to be missing in tomcat 5.5?
05:24.23pfnMailSessionFactory
05:24.41fseebut it's in my mail.jar ...so im not sure why it wouldn't be able to see it
05:25.35pfnare you certain it's in your mail.jar?
05:25.42pfnjar tf mail.jar | grep MailSessionFactory
05:26.03pfnhttp://issues.apache.org/bugzilla/show_bug.cgi?id=40668
05:28.19fseepfn: whoah..seems like archiva made a mistake...that class isn't in the jar
05:28.30fseelet me find the correct one then, thanks pfn :-)
05:33.40pfnit helps if you google first
05:33.48pfnsince I found that answer via google
05:34.53fseepfn: tnx :-) i've been googling for days now but im entangled in a whole lot of problems that i get lost sometimes :-)
05:35.33fseei've now figured out what's wrong, the mail and activation are not what's at fault, but it's missing another dependency....which i've no included but can't seem to get to work :-)
07:22.29*** join/#tomcat jasonb (i=noneoyer@adsl-66-124-73-250.dsl.sntc01.pacbell.net)
08:36.10puckomorning mr b
08:59.32jasonbHi pucko.
09:00.29puckoI've heard it's quite amusing
09:01.24puckogotta see it someday
09:02.07pfnhey jasonb
09:02.12pfnlots of new goodies in the ria now
09:02.14jasonbhey pfn..
09:02.18pfntry logging in as tester1/testing1234
09:02.19jasonbYeah, I saw your messages earlier.
09:02.22jasonbSounds good..
09:02.40pfnup kinda late aren't you?
09:03.05pfn(wife is chatting away with some relatives in VN, so kinda free tonight)
09:04.01pfntrying to figure out a nice way to do databinding/forms in swing
09:04.18pfnso I can "transparently" bind my beans to form data items
09:04.26pfnI also ditched the aop http proxy stuff
09:05.00jasonbI'm up late, yes.
09:05.28jasonbGood, AOP is lame.
09:05.44pfnaop isn't that lame... quite handy for some purposes
09:06.37pfntransaction handling is a popular use-case that's brought up in support of it
09:07.40*** join/#tomcat zambaroo (n=zamba@209.216.245.214) [NETSPLIT VICTIM]
09:07.40*** join/#tomcat monteslu (n=monteslu@68.109.171.73) [NETSPLIT VICTIM]
09:07.40*** join/#tomcat teite (i=shu@sun-shu.ision.net) [NETSPLIT VICTIM]
09:07.40*** join/#tomcat pucko (n=andreas@81.234.246.21) [NETSPLIT VICTIM]
09:07.40*** join/#tomcat swente (i=potowv2U@195.227.35.66) [NETSPLIT VICTIM]
09:07.40*** join/#tomcat awelynant (n=cskinfil@208.65.172.147) [NETSPLIT VICTIM]
09:07.40*** join/#tomcat bugfixer (n=bugfixer@42gis175.gulftel.com) [NETSPLIT VICTIM]
09:07.46jasonbpfn: Wow, this looks quite nice!
09:07.58pfnyeah, the performance of the throbber is much better now
09:08.10jasonbpfn: It is able to show thumbnails of my pictures off of my local disk just fine.
09:08.11pfnI didn't realize that I was queuing up hundreds of threads
09:08.32pfnyeah, you can dnd the images into the album to upload, etc.
09:08.45pfn(except I've changed the ui to check for permissions before allowing dnd into particular folders now)
09:08.54pfnI'll incorporate your slideshow idea as well
09:09.14pfnjasonb I particular like the fact that the tree view tells you if a folder has images or not
09:09.21pfnso you can tell at a "glance" if a folder is worth going into
09:09.38jasonbYeah, I was looking at that, wondering what it was trying to tell me
09:09.41pfnI wonder how that could be distilled
09:10.37pfnthe properties button doesn't quite behave right on linux (sometimes it doesn't popup the message dialog for me)
09:10.57jasonbYou could have a checkbox (or something) to make toggle showing just the tree that contains images..
09:11.15pfnthat's kind of a problem, I don't do a dfs to determine if there are images in a particular branch
09:11.20pfnthat would also take too long
09:11.57pfnactually, this particular thing makes me wish java had an equivalent for readdir
09:12.40pfncan iterate through a folder until a match is found, and stop and go on to the next folder, instead of having to retrieve the entire file list and match against the file filter
09:12.43jasonbAlso, since people will often have their pictures in the same spot in the fs tree, why not give them a feature of being able to select a particular dir (with pictures in it), and create a shortcut icon at the top so they can open the ria, then just click on their picture dir immediately..
09:13.03pfnjasonb yeah, more features to come... I'm just hashing out basics first
09:13.19jasonbSure.  I'm just spewing ideas.  :)
09:13.25pfnI wonder how adaptable I could make this to other online image providers
09:13.41pfn(flickr, etc.)
09:13.50pfn(obviously, long-term thoughts)
09:13.56pfnnothing I'm really worrying about right now
09:14.04jasonbMake all-OSS equivalents.
09:14.34jasonbFor example, the ria is OSS, make it interoperate with a webapp that will host the images somewhat like flickr would.
09:14.46jasonb(you already have a gallery webapp)
09:15.00pfnyeah, that's the "default" implementation I'm working with right now
09:15.28jasonbJust make it so that 1) developers can modify it and do what they want with it, but also 2) package it so that non-developers can just untar it and go pretty much.
09:15.38pfnyeah, that's the plan
09:16.02pfnI've written a lot of cool stuff so far... heh, most of it in the ria code, lately
09:17.00jasonbYeah, the ria looks very nice.
09:17.37pfnugh, stupid sharity... whenever it hangs, kills a bunch of stuff along with it
09:21.04jasonbI see that the tree view on the left is very well structured and minimal, but I think it wastes a little bit of horizontal space.  When I have my picture dir all the way open, it's indented so far that many of the other dir names are cut off, horizontally.  I see that there is a horizontal scroll bar, but scrolling for that is more of a pain than necessary, I think.  I also know that I can open that panel wider, but that's als
09:21.04jasonbo not what I'd like to have to do.
09:21.33jasonbMaybe each time you select a dir, maybe it should horizontally scroll to the right for the user.
09:22.00jasonbMaybe it should keep, say, 2 indentations shown, but otherwise scroll right.
09:22.14jasonb(just another idea)
09:24.09jasonbAlso, the component to the left of the "HanHuy Server" icon.. the thing that decides if that tree node is open or not (I don't know what you call it).. that thing looks unnecessary to me.  You could nuke that and reclaim one indentation level right there.
09:25.20pfnthe scrolling part sounds reasonable
09:25.38pfnI kinda wish JTree mimicked microsoft in that sense, if the label isn't completely visible, use a tooltip to show the rest
09:26.00pfnstupid sharity has hosed it
09:26.08jasonbWhat's sharity?
09:26.30pfnsharity is a user-space "smbfs"
09:26.45pfn'cept for being user-space, it sure hoses my box pretty good when it runs into problems
09:27.20jasonbIs it Java?  Or what?
09:27.28pfnC code
09:27.35pfnwww.obdev.at or something like that
09:28.09jasonbSo you use that to locally mount an smbfs?
09:28.16pfnyeah, mount my windows shares
09:28.28jasonbWhy not use smbclient?
09:28.45pfnwell, I'd use smbfs, not smbclient
09:28.59jasonbwell, okay, that..
09:29.22pfnsmbfs also has problems although, I haven't used it in a really recent kernel
09:29.54jasonbIt is undoubtedly the best implementation though..  more people use it, and have used it for years I think.
09:30.22pfnyeah, I may have to switch back to it
09:30.32pfnI avoided using sharity for a while, I forget what my impetus for using it was
09:30.41pfnbut I was pretty unhappy with smbfs
09:31.06jasonbBlame M$.
09:31.34pfnweird, apache/tomcat still serve requests
09:31.40pfnI can't get plain apache to serve any requests at all, heh
09:32.08pfnactually, static content works, I can't get mod_perl or mod_python to respond
09:32.13jasonbWelp, I have to head to bed..
09:32.18jasonbLooks quite cool though!
09:32.25pfn'nite
09:32.26pfnthanks
09:32.38jasonbKeep up the great work..
09:32.49pfnyeah, we'll see if we can get something usable out of this yet!  :)
09:33.14jasonbheh.. looks like you already do.
09:39.33*** join/#tomcat pfn (n=pfnguyen@netblock-66-245-252-239.dslextreme.com)
09:52.27*** join/#tomcat Roby (n=chatzill@adsl-18-135.38-151.net24.it)
09:52.51Robyhi to all
09:53.45RobyI have some config. problem with tomcat security. Can anyone help me?
09:54.45puckoif you state your problem in more detail and possibly provide pastebins of relating configuration-snippets someone who have a clue may answer to your call
09:54.49pucko:)
09:55.10RobyI'm trying to secure a Tomcat installation with javamail in ./shared dir.
09:55.11RobyI tried this code without any success:
09:55.13Robygrant codeBase "file:${catalina.home}/shared/-" {
09:55.14Roby<PROTECTED>
09:55.16Roby<PROTECTED>
09:55.18Roby};
09:55.19RobyI alway obtain this error:
09:55.22Robyjava.security.AccessControlException: access denied (java.lang.RuntimePermission
09:55.24Robyacce
09:55.25RobyssClassInPackage.sun.net.smtp)
09:55.27Roby<PROTECTED>
09:55.29Robyjava.security.AccessControlContext.checkPermission(AccessControlContext.ja
09:55.30Robyva:264)
09:55.32Roby<PROTECTED>
09:55.33Roby<PROTECTED>
09:55.35Roby<PROTECTED>
09:55.37Roby<PROTECTED>
09:55.38Roby<PROTECTED>
09:55.40Roby<PROTECTED>
09:55.41Roby....
10:27.43*** join/#tomcat fsee (n=Franz@58.69.180.205)
10:47.20*** join/#tomcat Roby (n=chatzill@adsl-18-135.38-151.net24.it)
11:48.40ajehello there...
11:49.00ajehow can i add some properties to my servlet?
11:49.08ajei know i need to add it in the web.xml file...
11:49.23ajei just want to parameterize database connection info, etc.
11:50.49kaouetehm, i think you have to add <parameter> tags, and use getInitParameters from servletconfig
11:50.54kaoueteServletConfig
11:52.04kaouetehttp://www.oracle.com/technology/sample_code/tech/java/codesnippet/servlets/ReadInitParams/ReadInitParams.html
11:52.07kaouetethere is an example here
11:54.39ajethanks!
11:56.28*** join/#tomcat yassine_ (n=yassine@xdsl-87-78-100-116.netcologne.de)
11:57.52ajehrm..
12:46.52*** join/#tomcat bXi (i=bluepunk@irssi.co.uk)
15:26.55*** join/#tomcat b0fh_ua (n=b0fh_ua@office.redwerk.com)
15:26.57b0fh_uahi there
15:27.30b0fh_uacould somebody please tell me - is it possible to keep sources/binary code of JSP pages in the database/whatever?
15:34.18yassinewhy would you do so b0fh_ua  ?
15:39.44b0fh_uayassine: we would like to move JSP pages from filesystem into a JCR respository
15:40.19b0fh_uaand allow some customers to edit that JSP pages online
15:40.47b0fh_uai know it is possible to allow them edit pages on the filesystem, but the requirement is to keep everything in JCR
15:48.51yassineb0fh_ua, there is a problem in doing that
15:49.15b0fh_uayassine: ?
15:49.17yassinejsp files need to be first converted and than compiled after it can be executed
15:49.39b0fh_uaright
15:49.40yassinebasicly you should be able storing them where ever you want
15:49.53yassinebut imagine one of your customers edits a jsp file
15:50.07yassineyou need to generates a new file pass it to tomcat
15:50.20yassineand tomcat needs to convert/compile it
15:50.34yassineand than the user can execute/call it
15:50.47yassinebut that's too much overhead imho
15:51.42yassinebbl food time now
15:51.51b0fh_uaisn't there any way to tell tomcat not take JSP source from the filesystem but from some other storage?
15:52.39b0fh_uabasically I would like Tomcat to to all these things with parsing/compiling ;)
15:52.46Hughb0fh_ua: you probably could do with some hackery
15:52.57b0fh_uaI just need to store JSP pages somewhere - nothing more, nothing less
15:53.19Hughhowever as yassine suggests, writing something to pull out of db and onto disk so that tomcat can process normally is probably simplest solution
15:53.21b0fh_uawhen examining JspServlet, I found it uses a classloader to obtains JSP as a stream
15:53.29b0fh_uaprobably that it extension point I could use?
15:53.59b0fh_uaHugh: yep, but this is error-prone way
15:54.15b0fh_uathere could be some synchronization issues, concurrent access issues etc
15:55.43Hughsure, but it might be better/easier than modifying tomcat (based on my humble experience)
15:56.02Hughare you going to prevalidate the jsps before you try and deploy them?
15:56.10Hughor are you going to be generating them in some templated manner?
15:57.52b0fh_uaThe JSP will be prevalidated, I guess
15:58.08b0fh_uaor may be templates. I'd prefer to use Velocity etc, but the requirement is to use JSP
15:58.34b0fh_uaso we need to inject tomcat classloaders chain with our classloader somehow
15:58.45b0fh_uais it possible?
17:16.56*** join/#tomcat prgrmr (n=prgrmr@bzq-88-154-1-58.red.bezeqint.net)
17:22.27*** join/#tomcat Sardu (n=pere@89.129.145.237)
17:22.29Sarduhello
17:25.27SarduI have a servlet in  $TOMCAT_HOME/webapps/..../WEB-INF/classes/ that needs to creat an other object placed in /home/user/classes/object.class. My CLASSPATH includes teh /home/user/classes/ directory.
17:26.30*** join/#tomcat wsmoak (n=wsmoak@ip68-96-53-53.ph.ph.cox.net)
17:27.04SarduWhen the servlet is executed, it throws a NotClassDef exception telling that "object" does not exist.
17:27.48Sarduso I think the CLASSPATH that uses Tomcat, does not include that directory
17:28.08SarduHow can I tell Tomcat to look for classes in that directory?
17:28.12Sarduany suggestion please?
18:21.41yassineSardu, sure that your classes are in WEB-INF/classes ?
18:34.36Sarduno
18:34.43yassinemhh
18:35.08SarduMy servlet do: XMLModul xml = XMLModul.getInstance();
18:35.20Sarduand tomcat crashes there
18:35.28yassinewhy not copying the /home/user/classes/object.class to $TOMCAT_HOME/webapps/..../WEB-INF/classes/
18:35.39Sarduyes
18:35.54yassineor if its a jar into .../WEB-INF/lib
18:35.55Sardubut, object.class imports a lirary (jdom)
18:36.00Sarduaaa
18:36.23SarduI will try to put the jar to the lib/ directory.-
18:36.38yassineyou should be fine there
18:41.47Sarduyes!
18:41.57Sarduit works!
18:42.04Sarduthanks yassine ;)
18:42.18yassinehappy to help
18:42.25yassine:)
18:56.49*** join/#tomcat prgrmr_ (n=prgrmr@bzq-82-81-220-213.cablep.bezeqint.net)
19:38.18*** join/#tomcat gregor_k (n=Miranda@p54A19572.dip0.t-ipconnect.de)
19:40.26*** join/#tomcat ix___ (n=ix@216-51-178.7001.adsl.tele2.no)
19:41.00ix___where is the default location of the coyote connector?
19:53.08*** join/#tomcat PR0JECT (n=frank@209.226.66.171)
19:53.23PR0JECTIs there a way to access a servlet directly in a form action tag?  Setting up servlet mappings everytime is a pain.
20:26.00*** join/#tomcat wsmoak (n=wsmoak@ip68-96-53-53.ph.ph.cox.net)
20:43.57*** join/#tomcat LongBeach (n=mike@AFontenayssB-152-1-30-2.w83-114.abo.wanadoo.fr)
21:14.45puckohooo.. jboss+ejb3+struts actually works. o.O
22:49.25*** join/#tomcat JavaDeveloper (n=andyleun@CPE001839805b13-CM0011e6bec69f.cpe.net.cable.rogers.com)
22:51.33*** join/#tomcat kasbah (n=kasbah@port-212-202-42-65.dynamic.qsc.de)
23:41.36*** join/#tomcat JavaDeveloper (n=andyleun@CPE001839805b13-CM0011e6bec69f.cpe.net.cable.rogers.com)

Generated by irclog2html.pl by Jeff Waugh - find it at freshmeat.net! Modified by Tim Riker to work with blootbot logs, split per channel, etc.