greptilian logo

IRC log for #javaee, 2013-11-13

Please see http://irclog.greptilian.com/javaee for which days have been logged.

| Channels | #javaee index | Today | | Search | Google Search | Plain-Text | plain, newest first | summary

All times shown according to UTC.

Time S Nick Message
00:52 scripty joined ##javaee
01:22 sfisque1 it finally dawned on me why i dislike spring
01:23 sfisque whenever i see what people do with spring, it's like seeing tourette syndrome painted in java code
01:25 whartung fu..shi..moth…as…what?
01:53 Guest26080 joined ##javaee
02:06 scripty hi guys
02:20 scripty ??
02:21 Guest26080 scripty,  hi
02:22 scripty hey there
02:22 Guest26080 whats up
02:24 scripty nothing
02:24 Guest26080 hm
02:24 Guest26080 is there a freeware app that runs on ubuntu  (linux) and on windows for making process flow diagrams like http://images.search.yahoo.com/search/images;_ylt=A0PDoV6O4YJSYW4AqFqZDWNH?p=process+flow+diagram&fr=&ei=utf-8&y=Search      ?
02:26 scripty Guest26080 time to use google
02:26 scripty any search engine for that matter
02:28 * scripty wth there no interesting things goes around here
02:29 scripty left ##javaee
02:47 myu joined ##javaee
02:49 sfw_ joined ##javaee
04:14 myu left ##javaee
04:53 sajjadg joined ##javaee
04:59 Quest joined ##javaee
05:05 Guest69374 left ##javaee
05:05 Guest69374 joined ##javaee
05:06 Guest69374 left ##javaee
05:06 quest1 joined ##javaee
05:10 quest1 joined ##javaee
05:10 quest1 sess:
05:10 quest1 how to view the status of file
05:12 quest1 i'm uploading the file and i dont know its uploading or not
05:12 sfisque uploading file to what?
05:13 quest1 means
05:15 quest1 to server
05:16 quest1 sfisque ?
05:18 quest1 can anyone help me out
05:20 quest1 sess
05:22 quest1 ./join #postgresql
05:23 quest1 sfisque using struts to upload file
05:23 quest1 to server
05:24 sfisque ah
05:24 sfisque well, you're submitting a form.  until the entire payload gets to the server, you're still submitting.  what is it you're expecting?
05:25 quest1 i want to know the progress
05:27 quest1 how can i know the progress
05:29 quest1 left ##javaee
05:29 sfisque not part of the spec
05:42 dangertools joined ##javaee
05:42 dangertools joined ##javaee
07:10 Quest joined ##javaee
07:25 neuro_sys joined ##javaee
07:44 Quest how can I generate java docs page for my own classes like the oracles javadocs are?
07:48 sess Quest:  check out maven site plugins
07:48 sess if not using mavens, there are probably ant plugins aswell
07:48 sess or standalone programs even
09:56 Quest hm
09:57 Quest sess thos actually parse the @params or @return or /** comments out of the class and make an html page?
09:57 sess yes
09:57 sess http://docs.oracle.com/javase/7/docs/technotes/tools/windows/javadoc.html
09:57 sess oracle has an official generator
09:58 Quest so no need for maven or ant?
09:59 sess nope, but it's convenient if you already use them
10:00 Quest hm
10:01 Quest sess so both maven/ant utils or official javadoc executable that comes with jdk would parse my class and make .html pages
10:01 Quest ?
10:02 Quest sess if yes, nice
10:07 sess Quest: yes
10:07 sess the maven/ant plugins would most likely use Oracles official generator
10:07 sess under the hood
10:07 sess just a convenient way to make it a part of your build lifecycle
10:30 Quest hm
10:31 mbc_ joined ##javaee
10:31 Quest sess I wonder how javadoc would recursively get all project files in dirs/packages and parse them. thats the task of maven/ant
10:32 sess not really rocket science
10:32 sess you probably give it a base directory
10:32 sess and it looks at all subfolders recursivly for all .java files
10:32 Quest hm
10:33 Quest I wish javac could compile in that manner too
10:40 ilhami joined ##javaee
10:40 ilhami Hey
10:40 Quest hi
10:41 ilhami how should I make GUI?
10:41 ilhami in Java?
10:41 ilhami with many classes and many frames or?
10:41 ilhami one frame with different panes?
10:44 Fubar^ How many frames do you need?
10:44 Fubar^ Do that amount of frames!
10:44 ilhami but I dont know what the best way to make Guis is
10:46 Fubar^ Are you asking how the GUI should look?
10:46 ilhami No just the best way to make it? In one frame with different panes or with many windows like pop up windows.
10:53 ilhami Whats the best way? I just want to know that
10:59 ilhami left ##javaee
11:00 Quest javadoc error: any one familier? C:\Program Files (x86)\Java\jdk1.6.0_21\bin>javadoc -sourcepath C:\\projects\\st
11:00 Quest ruts-dbservice-4.0\\src -use  -d C:\home\html -group "The Source" "java.*:com.*"  @packages    javadoc: error - cannot read packages (The system cannot find the file specified) 1 error
11:35 sess Quest: perhaps single \?
11:35 Quest tried that too
11:38 sess ah from the message your package wildcard probably has syntax errors
11:38 Quest like?
11:38 sess also im not sure -group is a proper option
11:38 sess im not sure what its supposed to look like
11:38 Quest it is http://docs.oracle.com/javase/7/docs/technotes/tools/windows/javadoc.html#documentingboth
11:38 Quest and i tried without using -group
11:39 Quest same
11:39 sess try just using javadoc -classpath c:\projects\struts-dbservice-4.0\src -d c:\home\html my.app.package
11:40 sess i donth think .* should be specified
11:40 sess just the base package - recursion is implied implicitly
11:40 sess javadoc -d \home\html -sourcepath \home\src -subpackages java -exclude java.net:java.lang
11:41 sess javadoc -d C:\home\html -sourcepath C:\home\src1;C:\home\src2 java.awt java.awt.event
11:41 sess some examples
11:43 Quest hm
11:43 Quest i have projectDir\src\tcm
11:43 Quest i have projectDir\src\com\tcm\autumn\...
11:43 Quest but it says com\tcm not found
11:44 Quest sess Loading source files for package com.tcm...
11:44 Quest javadoc: warning - No source files for package com.tcm
11:49 Quest sess complete info http://stackoverflow.com/questions/19952726/javadoc-path-error-cannot-read-packages
11:52 sess im not the right guy to help, never used javadoc
11:54 MegaMatt joined ##javaee
11:55 Quest np
11:56 sess Quest: try -subpackages
11:56 Quest hm
11:57 sess javadoc -d c:\html com.mycompany.myapp gave me the same error as you
11:57 sess javadoc -d c:\html -subpackages com.mycompany.myapp
11:57 sess generated stuff
11:57 Quest C:\Program Files (x86)\Java\jdk1.6.0_21\bin>javadoc -sourcepath C:\project\   -d
11:57 Quest C:\home\html  -subpackages com.tcm
11:57 Quest Constructing Javadoc information...
11:57 Quest javadoc: error - No public or protected classes found to document.
11:57 Quest 1 error
11:57 sess though i got some exceptions
11:57 sess the path should contain the "com" folder
11:58 Quest hm
11:58 sess some shit got corrupt for me so the main index html is empty
11:58 sess but at least it generated something
12:00 sess my errors are because i use annotations from 3rd party libs
12:00 sess those needs to be included in classpath apparentlyt
12:00 Quest hm same here
12:01 Quest C:\Program Files (x86)\Java\jdk1.6.0_21\bin>javadoc -sourcepath C:\project\src
12:01 Quest -d C:\home\html  -subpackages com.tcm
12:01 Quest Loading source files for package com.tcm.autumn.xml.cricbuzz...
12:01 Quest 38 errors
12:07 Quest sess edited http://stackoverflow.com/questions/19952726/javadoc-path-error-cannot-read-packages
12:08 weyer joined ##javaee
12:08 Matthijs joined ##javaee
12:08 sess well rather than ignoring them, perhaps you should fix the errors?
12:08 sess or just use maven...
12:09 sess you should also remove the old info and rename the question, or make a new question, or google more
12:09 Quest am. if maven uses javadoc under the hood. there must be a ignore error thing
12:09 sess the stack overflow question will get more downvotes if it looks like this
12:09 Quest hm
12:09 Quest ya
12:09 Matthijs left ##javaee
12:10 sess im curious, how does line 535 (and surrounding ones) in abc.java look?
12:10 sess causing the rror
12:12 Quest hm..
12:14 Quest just deleted abc.java . now only one error in some file. but no java doc created
12:14 Matthijs joined ##javaee
12:14 Matthijs left ##javaee
12:16 sess javadoc should be generated even with errors
12:16 sess i had loads of htmls files generated
12:17 Quest hm. why not me..
12:17 sess my guess either your errors are more severe
12:17 Quest updated http://stackoverflow.com/questions/19952726/no-javadoc-html-created-and-javadoc-giving-errors-while-parsing-the-code
12:17 sess or your output path is bad
12:19 lv2eof joined ##javaee
12:19 linuxuz3r joined ##javaee
12:28 acuzio Quest: did you write that code ?
12:28 acuzio cause if you did - then it might help in understanding what the actual problem is ?
12:29 Quest no. i didnt
12:30 acuzio then maven might be your best bet - otherwise no one really knows whats going on
12:31 acuzio or else if you are trying to understand whats going on - why not write some code , and then go with the java docs for that
12:35 Quest short question: how to suppress code errors and create javadocs?
12:43 sess short answer: fix errors
12:49 Quest sess hm.. well did that and got the html docs
12:49 Quest sess but still would want to know if I can suppress the errors. as those arnt errors. javadoc thinks they are
12:50 Quest except for abc.java
12:50 Quest which had errors. deleted that
12:51 Quest sess ever created docs?
12:51 sess not without maven no
12:51 sess if javadoc claims there are errors, i bet there are
12:53 Quest ok, I have the docs but 1. I dont see @auther name that I added. I do see the other stuff like description (stated above the class name). the @auther was in those lines though.   2. I also added description for someMehod() but as it was implementation of an other abstract method "someMethod()" , now I am getting description of the abstract method instead of the implemented one.  any solution?
12:53 Quest sess hm
12:55 sess read the docs spec
12:55 sess im not familiar with the rules
12:55 Quest it says @author some Name
12:56 Quest well, I would figure... thanks!! for the tech and moral support!
13:04 * Quest waves
13:20 SoniEx joined ##javaee
13:26 jieryn joined ##javaee
13:26 jieryn joined ##javaee
13:31 sfw joined ##javaee
13:44 sajjadg joined ##javaee
14:06 SoniEx2 joined ##javaee
14:09 pdurbin sess: this is my favorite example that uses maven-site-plugin: http://cescoffier.github.io/maven-play2-plugin/maven/snapshot/
14:24 Naros joined ##javaee
14:31 kobain joined ##javaee
14:49 cem_ joined ##javaee
14:49 cem_ komba wa
14:50 cem_ joins are pretty hard :(
15:07 bitwize joined ##javaee
15:09 Guest26080 joined ##javaee
15:51 Naros you mean like database joins?
15:54 sess He might have marriage issues
15:55 sfisque i hope it's not a fear of commitment
15:55 sfisque :P
15:57 cem_ yes database joins
15:57 cem_ really stuck :(
16:06 Naros whats up?
16:07 Naros what has you stuck?
16:13 Guest26080 my app worked fine locally but when I uploaded the .war file and tried to open the url. it says. HTTP Status 500 - The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application
16:14 Guest26080 am. I dont have maven installed on that server though.
16:15 Guest26080 the project used maven. I do need to install it or some script would auto do all?
16:15 Guest26080 or the .war is enough
16:16 sess Guest26080: there is no dependancy on maven after the artifact (war file) is created
16:18 sess http://stackoverflow.com/a/5657722/546128
16:18 sess use google
16:18 sess bbl
16:19 Guest26080 heres what i added http://pastie.org/8477782
16:20 Guest26080 sess,  I already did.
16:22 SoniEx joined ##javaee
16:22 cem_ orbital == orbitdistance ?
16:23 cem_ i'm unable understand english thats main reason i guess
16:26 cem_ need to take break
16:55 cem_ sqlite is bad
17:03 Naros cem_: imagine you have a table with 1 column and 2 rows.
17:04 Guest26080 replaced standard.jar with jstl 1.2 in maven but problem persists
17:04 Guest26080 my app worked fine locally but when I uploaded the .war file and tried to open the url. it says. HTTP Status 500 - The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application
17:04 Naros if you select that table against any other table without any where conditions, you'll get what is called a Cartesian product of the two tables..
17:05 Guest26080 I dont see jstl.jar in /lib dir either
17:05 Guest26080 but the app runs ok on my local install
17:05 Naros where the resulting columns are all the columns of the other table plus the 1 column from the above table but with the other table's # of rows * 2 since the above table has 2 rows.
17:05 cem_ its been 11 hours havent found a solution to this problem
17:05 Naros what is your problem ?
17:05 Naros Can u describe it for us, maybe we can help
17:06 Naros ewww jstl  :P
17:07 Guest26080 ya
17:08 Guest26080 i dont see jstl.jar either in libs of .war file
17:11 Naros using maven?
17:11 Naros if so, make sure the jstl-1.2.jar isn't marked as provided.
17:12 Naros it should  be flagged to be included in the war deployment process unless its deployed to the app server directly.
17:15 Guest26080 heres my pom file. http://pastie.org/8477960
17:15 Guest26080 oh......
17:15 Guest26080 it was marked as provided.
17:15 Guest26080 provided means?
17:16 Guest26080 Naros,  what should i replace provided with? and what does it means?
17:16 Naros provided means that it would be most likely in your appserver's /lib directory
17:17 Naros generally things like servlet-api and such are marked as provided because multiple versions can create havoc in the container.
17:17 Naros so to fix it, copy jstl-1.2.jar to your app server's lib folder
17:17 Naros if you expect the same version to be used by all webapps
17:17 Guest26080 provided means that the library.jar will be added in the .war file? (thats what i want)
17:17 Naros no
17:18 Guest26080 then?
17:18 Naros provided means it isn't included in the build, its expected to exist on the server where you deploy.
17:18 Guest26080 how can i make it in the war file
17:18 Guest26080 ok
17:18 Guest26080 ok
17:18 Guest26080 ok
17:18 Naros mark it as compile
17:18 Guest26080 hm
17:18 Guest26080 <scope>compile</scope>?
17:19 Naros <dependency>
17:19 Naros <groupId>javax.servlet</groupId>
17:19 Naros <artifactId>jstl</artifactId>
17:19 Naros <version>1.2</version>
17:19 Naros </dependency>
17:19 Naros that's all pom needs
17:19 Naros the default is compile :P
17:20 Guest26080 k
17:24 Guest26080 doing <scope>compile</scope> wont hurt either i gues
17:24 Guest26080 now I see the jstl.jar in libs
17:24 Naros it doesn't, i just think MyEclipse and Maven assume that no scope implies compile and include :P
17:25 Guest26080 application is running in Tomcat; tomcat already provides servlet API, JSP, &c. classes; bundling your own copy of them just leads to bugs.
17:25 Guest26080 ?
17:36 Naros Tomcat doesn't provide JSTL by default iirc.
17:36 Naros but Tomcat will complain when you start a WAr that contains servlet-api.jar
17:36 Naros the app will run but it will inform you that it is ignoring servlet-api in the app's lib folder
17:37 Naros cant say other servlet containers do that tho
17:41 acuzio JSTL - in 2013- come on
17:42 sfisque there is never a bad reason to learn commodity technology
17:42 whartung JSTL is awesome
17:42 sfisque there are cases where stability and predictability win over "GEE WHIZ!!!!"
17:47 whartung JSTL is pretty GEE WHIZ in itself, the new one is even better - though Ihaven't haven't had a chance to really use it
17:52 sfisque unified EL is cool yes
17:52 whartung yea I guess EL != JSTL
17:53 sfisque same tech, just unified to bring the JSF and JSTL camps together into one tech
17:53 whartung yea
17:53 sess isnt jstl still required in non-jsf web frameworks?
17:54 sfisque combining jstl and jsf tags was always a beeyatch.
17:54 nb-ben_h joined ##javaee
17:54 whartung required? No, many can skip JSP completely
17:54 whartung it's not "required" for JSP, but if you want to go back to 1999, be my guest.
17:54 sess what -non jsf framework does not use jsp
17:54 sfisque aye, JSP is required.  JSTL is an optinal add on, though every container provides it
17:55 whartung Struts 2 uses free marker, right?
17:55 sfisque so it's "not required by spec" but you get it for free anyway
17:55 sess whartung:  i mean required to do useful things
17:55 Naros It uses freemarker and/or velocity for templates.
17:55 sfisque struts 2 uses whatever you want
17:55 whartung so, there's an example
17:55 sfisque you can use jstl with S2/T2
17:55 Naros Yep
17:56 whartung but you don't have to
17:56 sess i want to use csv files
17:56 sess sfisque: will struts 2 allow that?
17:56 Naros But JSTL is kinda pointless with struts tags tho
17:56 Naros the s2 tags give you exactly the same JSTL functionality
17:56 sess each csv line renders 1 line of pixels in the web page
17:56 whartung JSTL replaced Struts 1 tags, IMHO
17:56 sfisque yah, the <S> tags coexist with jstl quite fine
17:56 Naros yah, lots of similarities.
17:56 sess anyways, nothing wrong with jstl, any replacement will work pretty much the same
17:57 sfisque though, as whartung indicates, the s-lib does subsume most of the functionality
17:57 sess unless you do something wildly different
17:57 whartung You'll need 14 Spring Jars, 7 apache commons jars, and a dependency on an a obsolete, no longer maintained project with only binary jars left to do that sess
17:57 sfisque >.<
17:58 sess huh? most containers have support out of the box
17:58 sess and spring has nothing to do with it
17:58 sfisque so i'm faced with trying to figure out how to talk to this remote system that was done all in spring.  guy has no docs, but points us to the codebase.  i swear it's 1000's of 3 line methods.  it's like looking at Tourettes described in java
17:58 sess nor apache commons
17:58 whartung heh
17:59 whartung when 75% of your code is interfaces, there are issues.
17:59 Naros plus the beauty is if struts doesn't give you what you want for whatever reason, write a tag extension and drop it in :P
17:59 Naros or code it into your action class and invoke via struts tags :P
18:08 pdurbin javaeebot: lucky netbeans key bindings in eclipse
18:08 javaeebot pdurbin: http://wiki.netbeans.org/ImprovedEclipseKeyBindings
18:08 pdurbin no no, the other way
18:24 freeburn :)
18:30 freeburn I was trolled my some person changed my nick :)
18:31 freeburn downloading irc client
18:35 SLovenberg joined ##javaee
18:42 springmonkey the db question is find max value of orbital <It wont make any sense you see my db>
19:05 springmonkey >.<
19:16 whartung anyone every use RabbitMQ?
19:21 pdurbin whartung: as part of openstack, I think. or maybe that was qpid
19:21 whartung but not as a first class citizen -- you didn't really interact with it
19:21 pdurbin whartung: there's #rabbitmq
19:22 pdurbin whartung: right. nope
19:22 whartung yea ok
19:29 pdurbin more like a hobo
20:34 buckets1337 joined ##javaee
20:38 pdurbin good times: hack this into working with ADFS · 2332255 · pdurbin/oiosaml.java-demo-8501-debug - https://github.com/pdurbin/oiosaml.java-demo-8501-debug/commit/2332255 :)
20:38 buckets1337 left ##javaee
20:51 * springmonkey deleted entire view starting again
20:51 pdurbin whartung: progress :)
20:51 whartung sweet
20:51 whartung ship it
20:51 pdurbin lol
20:52 pdurbin this is just the OIOSAML demo app
20:52 pdurbin hopefully I won't actually have to touch their code
21:24 Guest26080 joined ##javaee
21:26 SoniEx2 can/should watchdog threads be daemon threads?
22:10 kobain joined ##javaee
22:19 springmonkey pdurbin: you work on only opensource ?
22:22 springmonkey http://privatepaste.com/f375119548
22:22 springmonkey this is the paste Naros

| Channels | #javaee index | Today | | Search | Google Search | Plain-Text | plain, newest first | summary

Please see http://irclog.greptilian.com/javaee for which days have been logged.