IRC log for #tomcat on 20081108

00:04.40*** join/#tomcat aFlag (n=r00t@189.107.137.13)
00:06.26aFlagI have my source code on src/package-path, I don't have much experience with ant, does anyone have an ant example that will compile all the packages on src/ and throw them into web/WEB-INF/classes ?
00:08.22yobo2aFlag: you should be able to right click on the project and export ant buildfiles
00:10.11aFlaghm, I'm not using an IDE :-(
00:11.59yobo2oh i'm sorry
00:12.07yobo2i thought this window was #eclipse
00:12.17yobo2sorry, ignore me.
00:13.50aFlagI tried to use eclipse at the beginning, but I didn't know how to use it so I just took the easiest path for me. I was going to write a Makefile to do that stuff, but I saw that ant did most of the work I needed already, so I used it, but I'm not really sure how to do this bit.
00:58.50*** join/#tomcat karstensrage (n=karstens@76.21.8.74)
01:37.42MHSLaFlag, have you read ant doc?
01:39.20aFlagI read some tutorial, but I read it only in order to get stuff compiling. If someone had an example at hands I could take a look and change it in order to get stuff working.
01:40.57MHSLaFlag, you havent answered my question
01:41.23MHSLaFlag, have you opened this page before http://ant.apache.org/manual/index.html?
01:41.46MHSLaFlag, especially this http://ant.apache.org/manual/CoreTasks/javac.html
01:43.17aFlaghm, I think I had, but I hadn't notice that destdir parameter before
03:24.33*** part/#tomcat yobo2 (i=y@ool-18bed8ce.dyn.optonline.net)
03:25.30aFlagcool, my build.xml is really good now :-)
03:54.11aFlagnow, for something more tomcat related, if there are data that I want access on the filesystem I should just place it in the root of my webapp, or is there a more appropriated place?
03:55.07MHSLaFlag, WEB-INF/classes
03:55.47MHSLaFlag, you can also put it in subdirectories under WEB-INF/classes which associated with the packages
03:55.49aFlagI mean stuff like images and the like
03:56.12MHSLyou can put it anywhere
03:56.20aFlagalright
03:56.29MHSLpersonally i put it under a subdirectory named img under my webapp root
04:51.13*** join/#tomcat acidjnk (i=acid@pD950A961.dip0.t-ipconnect.de)
04:57.19*** join/#tomcat defenderBG (n=defender@91-66-158-199-dynip.superkabel.de)
04:57.52defenderBGhi guys, my question might be kind of offtopic, but is there any IDE for writing jsp?
05:04.05MHSLnetbeans or eclipse support it
05:05.25defenderBGMHSL: I am currently looking at eclipse, version 3.4.0 under linux, and I cannot find such a functionality
05:06.07MHSLwhat do you mean?
05:06.11defenderBGMHSL: can you be more exact on where I can find it?
05:06.12MHSLi'm using it to write jsp
05:06.23MHSLjust create a jsp file and edit it
05:06.26MHSLwhat are you expecting?
05:07.18MHSLwhat functionality are you looking for?
05:07.23MHSLjsp is just a text file, just create it and edit it under an IDE or a text editor
05:08.16defenderBGMHSL: I was expecting to be able to test it (now for testing I need to restart tomcat, so that I am sure the new version will be tested)
05:08.42MHSLyou dont need to restart tomcat to deploy your jsp
05:08.49defenderBGMHSL: I expected to be able to manipulate html (I think there is a plugin for that in eclipse, still figuring out)
05:08.59MHSLmanipulate html as in? drag and drop?
05:09.34MHSLagain, html is just a text file, you can always edit it with a text editor or IDE
05:09.41MHSLnothing fancy about it
05:10.14defenderBGMHSL: no! per default eclipse does not support html format, so when I write html I get parse errors, I need to find a plugin that supports html
05:10.36MHSLi think you should download jee version of eclipse, that will include that
05:11.27defenderBGMHSL: from what I read, tomcat preloads all class files, so when I change a class file with a newer version, I still will open the older one. this is what I read from a manual, is this false?
05:11.51MHSLno, that's configurable, you can set it to auto reload your webapp
05:12.03MHSLand with jsp obviously you dont need to restart at all
05:12.32MHSLdefenderBG, per default eclipse does not support html -> depends which package you downloaded
05:12.53defenderBGMHSL: eclipse-sdk...
05:12.56MHSLdefenderBG, i suggest you to download this http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/ganymede/SR1/eclipse-jee-ganymede-SR1-win32.zip
05:13.03MHSLEclipse IDE for Java EE Developers
05:13.14defenderBGand for linux?
05:13.26MHSLthe same, just select the OS
05:13.31MHSLhttp://www.eclipse.org/downloads/
05:14.38MHSLinteresting that you can figure out which package to download, you should have seen the comparison
05:14.43MHSLyou cant*
05:16.38defenderBGMHSL: thanks, I am currently downloading the JEE edition
05:16.53MHSLok
05:17.25defenderBGjust another question, what is better for jee eclipse or netbeans?
05:17.42MHSLtry out yourself, there are advantages and disadvantages of both
05:20.34MHSLin my opinion, eclipse gui is more responsive compared to netbeans which is using swing, eclipse is a bit hard to use at the start compared to netbeans, netbeans integrates very well (also easy to configure) with tomcat, it's not as straight forward as in eclipse
05:25.26defenderBGMHSL: so... I should try netbeans as well. Is there a special version, which I should use?
05:26.47MHSLno, only 1 version for netbeans
05:27.35defenderBGMHSL: 5.5, 6.1 or 6.5?
05:27.43defenderBGor 6.0...?
05:28.00MHSL6.1 is the latest stable
05:28.05MHSL6.5 is still RC
05:28.25defenderBGMHSL: Yep, I saw that, so I will give 6.1 a test
05:28.31defenderBGthanks for your help
05:28.59MHSLnp
07:15.36*** join/#tomcat cppexpert (n=cppexper@c-24-130-62-198.hsd1.ca.comcast.net)
07:15.43cppexpertHi guys. Is there channel where I can ask question about Apache OJB ?
07:23.41*** join/#tomcat imdying (n=imdying@c-71-202-178-158.hsd1.ca.comcast.net)
07:27.16imdying6.0.18, windoh's, 1.6. ok then. How do I configure access to subfolders and such? it appears index.jsp has access to everything, but another jsp file residing in the same folder as index.jsp doesn't have access to the same resource also residing in the same folder...
07:27.50imdyingwell that's what i think is happening.
07:28.45imdyingthere is a flash swf requesting some resource but it won't see it unless it's in the root folder/context name thingy
07:30.43*** join/#tomcat aFlag (n=r00t@189.107.137.13)
07:31.42aFlaghello, I have an index directory that I wish to open in order to make the search on my website. Where do I have to save the index directory?
07:32.51imdyinghrm i would've thought there would be more people in this channel..
07:33.05imdyingis jboss/sun application server taking over now?
07:37.40cppexpertimdying: I'm not very familiar with this subject but as far as I know Tomcat doesn't let you configure access. YOu have configure it in apache web server and have tomcat as a addon. Or you can write servlet filter which your requests will go through .
07:37.53cppexpertYou have = You can configure..
07:38.34imdyingbleh i guess the only solution is to move everything out of the web folder and into the context root whatever that thing is (the explanation isn't clear on the docs..)
07:39.26imdyingi don't understand why the index.jsp file has some special privelege..
07:40.01cppexpertimdying: do you have authentication on your web-app ? I mean for users.
07:40.22imdyingno.... it's basically a free service
07:40.35imdyingno required logins or whatnot
07:40.59cppexpertwhy do you need to resctrict access then ?
07:41.41imdyingit's more an organizational thing
07:42.25cppexpertI see.
07:42.57aFlagwhat should I edit so I'm able to open and write to a file inside my application? Or should that file be located somewhere else?
07:44.45imdyingalso the 50% of why i don't have authentication + functionality that requires authentication: http://tomcat.apache.org/tomcat-5.5-doc/realm-howto.html confuses the fuck out of me...
08:02.50aFlagI'm getting this: java.security.AccessControlException: access denied (java.util.PropertyPermission java.io.tmpdir read)
08:03.06aFlagI've set all possible permissions to the file
08:03.14aFlagI don't understand why I can't open it :-/
08:12.53*** join/#tomcat internat1 (n=nf@123-243-184-161.static.tpgi.com.au)
08:26.51aFlagI got it down to this error: java.security.AccessControlException: access denied (java.io.FilePermission /var/lib/tomcat5.5/webapps/brh/registros read)
08:27.12aFlagbut whatever I write on /etc/tomcat5.5/policy.d/04webapps.policy
08:27.18aFlagI don't get it to work
08:37.50aFlaghm, I was able to get it to work when the file was on /tmp
08:38.10aFlagI wanted it to work when it was on the webapp's root as well
08:43.57aFlagthis tomcat is beating me senseless :-P
09:34.05MHSL<aFlag> what should I edit so I'm able to open and write to a file inside my application? -> just do it normally
09:34.19MHSLaFlag, except that you should make sure the path points to the correct directory
09:34.37MHSLaFlag, where did you get tomcat? there is no such 04webapps.policy file under tomcat standard distribution
09:39.34aFlaghm, it's from debian's package
09:40.17aFlagseems like it concatenates all the policies into one file, called catalina.policy
09:40.42aFlagmy problem was that I needed to change a few permissions on the policy file
10:23.15*** join/#tomcat loiseau (n=marius@dslb-084-063-041-234.pools.arcor-ip.net)
10:38.51MHSLaFlag, if you're a newbie, use the official tomcat package from tomcat website instead
10:39.15MHSLcant help you with using tomcat from debian package, since it's not using a standard directory structure
11:00.54aFlagwell, not as newbie as I was 8 hours ago :-). Debian package is not too different from the default structure. /var/lib/tomcat5.5 has everything $CATALINA_HOME has :-)
11:05.58MHSLaFlag, well at least you wont have issue with security like you mentioned with the standard package
11:06.18MHSLthen good luck if you think it's the same and you think you can solve it :)
11:07.12aFlagyeah, it's working now. I'll have to investigate how that permission system works later, but it has been working for now
11:17.27defenderBGMHSL: it sound like something specific to his linux distribution.
11:18.08defenderBGaFlag: check if the file and directory have the same user as the user, which is used to start tomcat
11:19.24defenderBGwow... didnt notice that the problem was solved...
15:24.26*** join/#tomcat Soer (n=qwerty@190.51.54.150)
15:55.14*** join/#tomcat defenderBG (n=defender@91-66-158-199-dynip.superkabel.de)
15:55.22defenderBGhi guys
15:55.47defenderBGhow can i make tomcat reload the class file every time I request it?
15:56.40defenderBGbasicly, I am currently starting with jsp, servlets and it is hm... not good to restart tomcat every time I want to see how the new class is working
16:01.32MHSL<defenderBG> how can i make tomcat reload the class file every time I request it? -> this is very inefficient, all you can do is to tell tomcat to automatically reload your webapp if you add/replace/delete your classes/libs etc
16:01.46MHSLset reloadable attribute to true on your <Context>
16:03.01MHSLdefenderBG, you should have read this page before you ask http://tomcat.apache.org/tomcat-6.0-doc/config/context.html
16:04.24defenderBGMHSL: you are right... I should do it... I am currently reading a manual about servlets and jsp... :/
16:05.16defenderBGMHSL: in which file is it? I cant find reloadable in server.xml
16:05.28MHSLdefenderBG, check out the page i give you first, then ask
16:06.03MHSLthere is always the first time
16:06.10MHSLsuffering the first time is a good thing
16:06.31defenderBGyep, you are right...
16:06.37defenderBGthanks for the help again
16:06.51MHSLnp
16:18.54defenderBGMHSL: I tried adding <Context reloadable="true"/> to the context.xml in META-INF folder of the project, restarted tomcat and it did not work
18:20.31*** join/#tomcat imdying (n=imdying@c-71-202-178-158.hsd1.ca.comcast.net)
18:20.44imdyinganyone have experience requesting resources via actionscript?
18:21.17imdyingi keep trying to fetch some file off of my server.. and it only works half the time
18:26.55imdyinghrm
18:27.02imdyingmaybe it has something to do with my ide..
18:30.47*** join/#tomcat Soer (n=qwerty@190.51.22.26)
18:30.57SoerHello
18:31.00*** join/#tomcat gwash (n=gwash@217.54.184.86)
18:31.22gwashhi, anyone knows what's wrong with this? http://pastebin.com/m5f301ad3
18:33.40*** join/#tomcat Walex2 (n=Walex@82-69-39-138.dsl.in-addr.zen.co.uk)
18:38.35SoerI am using JAVA 1.4, Windows Vista and Tomcat 6.0.18, I have a problem when I put a file in the folder that I want to access I try to access from the browser and nothing happeen, appear a blank page only, what can be this?
18:41.32*** join/#tomcat wltjr (n=wltjr@unaffiliated/wltjr)
19:31.44*** join/#tomcat Orphis_ (n=quassel@belgarath.moomoocamp.net)
20:44.27*** join/#tomcat yassine (n=yassine@unaffiliated/yassine)
20:44.43*** join/#tomcat victori_ (n=victori@cpe-75-80-141-237.san.res.rr.com)
21:32.18*** join/#tomcat jasonb (n=jasonb@adsl-66-124-73-250.dsl.sntc01.pacbell.net)
22:53.18aFlagrequest.getParameter() can always return a null, how do you guys handle this? Should I always check for null? Isn't there a way to define a default value such as "" or something?
23:03.20*** join/#tomcat Plaatjie_uK (n=Plaatjie@93-97-48-92.zone5.bethere.co.uk)
23:41.59*** join/#tomcat acidjnk (i=acid@pD950A961.dip0.t-ipconnect.de)
23:42.09*** join/#tomcat da_krowa (n=Miranda@chello089077099221.chello.pl)

Generated by irclog2html.pl Modified by Tim Riker to work with infobot.