00:04.40 | *** join/#tomcat aFlag (n=r00t@189.107.137.13) |
00:06.26 | aFlag | I 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.22 | yobo2 | aFlag: you should be able to right click on the project and export ant buildfiles |
00:10.11 | aFlag | hm, I'm not using an IDE :-( |
00:11.59 | yobo2 | oh i'm sorry |
00:12.07 | yobo2 | i thought this window was #eclipse |
00:12.17 | yobo2 | sorry, ignore me. |
00:13.50 | aFlag | I 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.42 | MHSL | aFlag, have you read ant doc? |
01:39.20 | aFlag | I 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.57 | MHSL | aFlag, you havent answered my question |
01:41.23 | MHSL | aFlag, have you opened this page before http://ant.apache.org/manual/index.html? |
01:41.46 | MHSL | aFlag, especially this http://ant.apache.org/manual/CoreTasks/javac.html |
01:43.17 | aFlag | hm, 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.30 | aFlag | cool, my build.xml is really good now :-) |
03:54.11 | aFlag | now, 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.07 | MHSL | aFlag, WEB-INF/classes |
03:55.47 | MHSL | aFlag, you can also put it in subdirectories under WEB-INF/classes which associated with the packages |
03:55.49 | aFlag | I mean stuff like images and the like |
03:56.12 | MHSL | you can put it anywhere |
03:56.20 | aFlag | alright |
03:56.29 | MHSL | personally 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.52 | defenderBG | hi guys, my question might be kind of offtopic, but is there any IDE for writing jsp? |
05:04.05 | MHSL | netbeans or eclipse support it |
05:05.25 | defenderBG | MHSL: I am currently looking at eclipse, version 3.4.0 under linux, and I cannot find such a functionality |
05:06.07 | MHSL | what do you mean? |
05:06.11 | defenderBG | MHSL: can you be more exact on where I can find it? |
05:06.12 | MHSL | i'm using it to write jsp |
05:06.23 | MHSL | just create a jsp file and edit it |
05:06.26 | MHSL | what are you expecting? |
05:07.18 | MHSL | what functionality are you looking for? |
05:07.23 | MHSL | jsp is just a text file, just create it and edit it under an IDE or a text editor |
05:08.16 | defenderBG | MHSL: 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.42 | MHSL | you dont need to restart tomcat to deploy your jsp |
05:08.49 | defenderBG | MHSL: I expected to be able to manipulate html (I think there is a plugin for that in eclipse, still figuring out) |
05:08.59 | MHSL | manipulate html as in? drag and drop? |
05:09.34 | MHSL | again, html is just a text file, you can always edit it with a text editor or IDE |
05:09.41 | MHSL | nothing fancy about it |
05:10.14 | defenderBG | MHSL: 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.36 | MHSL | i think you should download jee version of eclipse, that will include that |
05:11.27 | defenderBG | MHSL: 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.51 | MHSL | no, that's configurable, you can set it to auto reload your webapp |
05:12.03 | MHSL | and with jsp obviously you dont need to restart at all |
05:12.32 | MHSL | defenderBG, per default eclipse does not support html -> depends which package you downloaded |
05:12.53 | defenderBG | MHSL: eclipse-sdk... |
05:12.56 | MHSL | defenderBG, 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.03 | MHSL | Eclipse IDE for Java EE Developers |
05:13.14 | defenderBG | and for linux? |
05:13.26 | MHSL | the same, just select the OS |
05:13.31 | MHSL | http://www.eclipse.org/downloads/ |
05:14.38 | MHSL | interesting that you can figure out which package to download, you should have seen the comparison |
05:14.43 | MHSL | you cant* |
05:16.38 | defenderBG | MHSL: thanks, I am currently downloading the JEE edition |
05:16.53 | MHSL | ok |
05:17.25 | defenderBG | just another question, what is better for jee eclipse or netbeans? |
05:17.42 | MHSL | try out yourself, there are advantages and disadvantages of both |
05:20.34 | MHSL | in 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.26 | defenderBG | MHSL: so... I should try netbeans as well. Is there a special version, which I should use? |
05:26.47 | MHSL | no, only 1 version for netbeans |
05:27.35 | defenderBG | MHSL: 5.5, 6.1 or 6.5? |
05:27.43 | defenderBG | or 6.0...? |
05:28.00 | MHSL | 6.1 is the latest stable |
05:28.05 | MHSL | 6.5 is still RC |
05:28.25 | defenderBG | MHSL: Yep, I saw that, so I will give 6.1 a test |
05:28.31 | defenderBG | thanks for your help |
05:28.59 | MHSL | np |
07:15.36 | *** join/#tomcat cppexpert (n=cppexper@c-24-130-62-198.hsd1.ca.comcast.net) |
07:15.43 | cppexpert | Hi 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.16 | imdying | 6.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.50 | imdying | well that's what i think is happening. |
07:28.45 | imdying | there 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.42 | aFlag | hello, 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.51 | imdying | hrm i would've thought there would be more people in this channel.. |
07:33.05 | imdying | is jboss/sun application server taking over now? |
07:37.40 | cppexpert | imdying: 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.53 | cppexpert | You have = You can configure.. |
07:38.34 | imdying | bleh 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.26 | imdying | i don't understand why the index.jsp file has some special privelege.. |
07:40.01 | cppexpert | imdying: do you have authentication on your web-app ? I mean for users. |
07:40.22 | imdying | no.... it's basically a free service |
07:40.35 | imdying | no required logins or whatnot |
07:40.59 | cppexpert | why do you need to resctrict access then ? |
07:41.41 | imdying | it's more an organizational thing |
07:42.25 | cppexpert | I see. |
07:42.57 | aFlag | what 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.45 | imdying | also 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.50 | aFlag | I'm getting this: java.security.AccessControlException: access denied (java.util.PropertyPermission java.io.tmpdir read) |
08:03.06 | aFlag | I've set all possible permissions to the file |
08:03.14 | aFlag | I 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.51 | aFlag | I got it down to this error: java.security.AccessControlException: access denied (java.io.FilePermission /var/lib/tomcat5.5/webapps/brh/registros read) |
08:27.12 | aFlag | but whatever I write on /etc/tomcat5.5/policy.d/04webapps.policy |
08:27.18 | aFlag | I don't get it to work |
08:37.50 | aFlag | hm, I was able to get it to work when the file was on /tmp |
08:38.10 | aFlag | I wanted it to work when it was on the webapp's root as well |
08:43.57 | aFlag | this tomcat is beating me senseless :-P |
09:34.05 | MHSL | <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.19 | MHSL | aFlag, except that you should make sure the path points to the correct directory |
09:34.37 | MHSL | aFlag, where did you get tomcat? there is no such 04webapps.policy file under tomcat standard distribution |
09:39.34 | aFlag | hm, it's from debian's package |
09:40.17 | aFlag | seems like it concatenates all the policies into one file, called catalina.policy |
09:40.42 | aFlag | my 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.51 | MHSL | aFlag, if you're a newbie, use the official tomcat package from tomcat website instead |
10:39.15 | MHSL | cant help you with using tomcat from debian package, since it's not using a standard directory structure |
11:00.54 | aFlag | well, 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.58 | MHSL | aFlag, well at least you wont have issue with security like you mentioned with the standard package |
11:06.18 | MHSL | then good luck if you think it's the same and you think you can solve it :) |
11:07.12 | aFlag | yeah, it's working now. I'll have to investigate how that permission system works later, but it has been working for now |
11:17.27 | defenderBG | MHSL: it sound like something specific to his linux distribution. |
11:18.08 | defenderBG | aFlag: check if the file and directory have the same user as the user, which is used to start tomcat |
11:19.24 | defenderBG | wow... 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.22 | defenderBG | hi guys |
15:55.47 | defenderBG | how can i make tomcat reload the class file every time I request it? |
15:56.40 | defenderBG | basicly, 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.32 | MHSL | <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.46 | MHSL | set reloadable attribute to true on your <Context> |
16:03.01 | MHSL | defenderBG, you should have read this page before you ask http://tomcat.apache.org/tomcat-6.0-doc/config/context.html |
16:04.24 | defenderBG | MHSL: you are right... I should do it... I am currently reading a manual about servlets and jsp... :/ |
16:05.16 | defenderBG | MHSL: in which file is it? I cant find reloadable in server.xml |
16:05.28 | MHSL | defenderBG, check out the page i give you first, then ask |
16:06.03 | MHSL | there is always the first time |
16:06.10 | MHSL | suffering the first time is a good thing |
16:06.31 | defenderBG | yep, you are right... |
16:06.37 | defenderBG | thanks for the help again |
16:06.51 | MHSL | np |
16:18.54 | defenderBG | MHSL: 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.44 | imdying | anyone have experience requesting resources via actionscript? |
18:21.17 | imdying | i keep trying to fetch some file off of my server.. and it only works half the time |
18:26.55 | imdying | hrm |
18:27.02 | imdying | maybe it has something to do with my ide.. |
18:30.47 | *** join/#tomcat Soer (n=qwerty@190.51.22.26) |
18:30.57 | Soer | Hello |
18:31.00 | *** join/#tomcat gwash (n=gwash@217.54.184.86) |
18:31.22 | gwash | hi, 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.35 | Soer | I 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.18 | aFlag | request.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) |