greptilian logo

IRC log for #javaee, 2014-02-26

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:01 ilhami :D it depends
00:05 idrofer joined ##javaee
00:16 Naros joined ##javaee
00:52 ilhami is anybody here?
00:53 pdurbin ilhami: why do you keep asking that? and why do you keep saying "dude"? :)
00:54 ilhami bad habit I think.
00:54 ilhami org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null'
00:54 ilhami what is this?
00:54 GayPro dudes <3
00:55 GayPro dude, that's a bad jdbc config string issue probably
00:55 ilhami let me show you my context.xml dude
00:57 GayPro do you love dudes like me?
00:57 ilhami http://pastebin.com/6JjuUeDJ
00:57 ilhami what is wrong with this?
00:57 tjsnell your url is full of blanks
00:58 tjsnell of never mind
00:58 tjsnell oh
00:58 GayPro url="jdbc:mysql://**"
00:59 GayPro that's wrong
00:59 ilhami hahah whats wrong with it? normally it doesnt look like that
00:59 ilhami I just put two asterics
00:59 GayPro google java jdbc url
00:59 GayPro you left several things blank
01:00 ilhami because I dont want you to see my DB info
01:00 ilhami thats why I removed it
01:00 GayPro it's some gay porn?
01:00 ilhami no
01:00 ilhami are you gay?
01:00 GayPro or just top secritz?
01:00 pdurbin guys. please
01:00 GayPro yes
01:00 ilhami please stop being gay :D
01:01 ilhami thats a bit gross
01:01 GayPro gross!?
01:01 ilhami yeah disgusting.
01:01 pdurbin GayPro and ilhami: please take this somewhere else. not here in ##javaee
01:01 ilhami ok pdurbin :)
01:01 GayPro let's get a room lover boy
01:01 ilhami so its my url which is wrong?
01:02 GayPro google it, compare your secrit url to the correct form
01:04 GayPro got to go! back later!
01:04 * GayPro give you a big sloppy kiss
01:04 ilhami :S
01:04 ilhami pdurbin warn this guy
01:09 Naros left ##javaee
01:29 ilhami pdurbin?
02:42 tjsnell bueller?
07:08 AlexCzar joined ##javaee
07:21 ramsrib joined ##javaee
07:42 TxRx127 left ##javaee
08:10 sajjadg joined ##javaee
08:41 sajjadg joined ##javaee
10:55 cbgx74 joined ##javaee
11:54 ilhami joined ##javaee
11:56 ilhami hey guys
12:14 sajjadg :-)
12:14 sajjadg Hi
12:17 ilhami how are you ?
12:21 ilhami sajjadg dude....
12:22 sajjadg i'm not OK
12:23 sajjadg I have a tongue ache
12:23 sajjadg I hardy can talk
12:23 sajjadg I hardly can eat
12:23 sajjadg :(
12:28 ilhami :S
12:28 ilhami thats bad
12:28 ilhami can you help me with my problem?
12:28 ilhami I hope you get better soon
12:30 sajjadg I don't know I can or not. you should first ask your question then ask me if I can!?
12:30 sajjadg go ahead and ask. people see the question and answer it if they know the answer
12:30 ilhami org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null' I keep getting this error
12:31 ilhami I asked this yesterday as well
12:31 sajjadg what's the url and jdbc driver your are using?
12:32 ilhami I am using the jdbc driver.
12:32 ilhami oh
12:32 ilhami driverClassName="com.mysql.jdbc.Driver"
12:32 ilhami I have this
12:32 ilhami and I put the jdbc driver into my WEB-INF lib folder
12:32 ilhami or sorry. I mean in the Build Path
12:33 ilhami I think its not finding my driver
12:34 sajjadg ilhami: try this :
12:34 sajjadg Class.forName("com.mysql.jdbc.Driver");
12:34 sajjadg Connection conn = null;
12:34 sajjadg conn = DriverManager.getConnection("jdbc:mysq​l://hostname:port/dbname","username", "password");
12:34 ilhami dude I am using a context.xml
12:34 sajjadg ilhami: aha.
12:34 ilhami so I am not doing this in code.
12:35 ilhami should I check the TOMCAT log? :D
12:35 sajjadg ilhami: I don't handle the jar files manually and let maven take care of them
12:35 ilhami hehe :D
12:36 sajjadg it seems your tomcat can't find the right jar files for mysql
12:36 ilhami yeah
12:36 sajjadg give it the jar then ;)
12:39 ilhami mysql-connector-java-5.1.29-bin do you agree with me that this is the name of the jar?
12:40 sajjadg mysql-connector-java-5.1.8-bin.jar
12:40 sajjadg yeah
12:40 ilhami In which folder should this be?
12:40 sajjadg mysql-connector-java-{version}-bin.jar
12:43 sajjadg /WEB-INF/lib/
12:43 ilhami ok I put it there.
12:44 ilhami still the same error .s
12:45 sajjadg $CATALINA_HOME/lib
12:46 sajjadg https://confluence.atlassian.com/display/DOC/Configuring+a+MySQL+Datasource+in+Apache+Tomcat
12:46 ilhami where is $CATALINA_HOME ??
12:46 sajjadg http://www.mkyong.com/tomcat/how-to-configure-mysql-datasource-in-tomcat-6/
12:47 sajjadg http://www.mulesoft.com/tcat/tomcat-mysql
12:47 ilhami oh wait maybe I know where it is
12:51 ilhami are you there?
12:53 ilhami sajjadg ?
12:53 ilhami http://pastebin.com/e97a08RW in my server.xml in the conf folder I see this
12:54 ilhami should I edit it?
12:54 ilhami in the tutorial it says look for Context in that file but I dont see it. I only see this resource.
12:54 ilhami in GlobalNamingResources.
12:55 ilhami <!-- Editable user database that can also be used by
12:55 ilhami UserDatabaseRealm to authenticate users
12:55 ilhami --> and the comment above it
12:55 ilhami or should I add a Context to it? :D
13:00 ilhami still the same error
13:00 sajjadg_ joined ##javaee
13:00 sajjadg_ go ahead and add it and see what happens.
13:00 sajjadg_ UserDatabaseRealm???!!!!
13:02 ilhami I dont think I should :P
13:02 ilhami I will mess up the server.xml.
13:02 ilhami I tried to add my context to that server.xml
13:02 ilhami it still doesnt work
13:05 ilhami what is this dude? why doesnt it work?
13:07 sajjadg_ don't be scared.
13:08 ilhami dude you dont know how much time I have spent on this
13:08 ilhami error after error :D
13:08 sajjadg_ just keep a backup somewhere
13:09 ilhami aaaaaah Tomcat has a channel LOL
13:10 sajjadg_ that's what happens with Java ;)
13:10 ilhami LOL
13:10 sajjadg_ that's why people hate it :P
13:12 tjsnell what lib/program is there that doesn't have a vocal group of haters
13:12 tjsnell ilhami is our channel LGBT hater
13:13 ilhami :D
13:13 ilhami do you also hate it?
13:13 tjsnell tomcat? nah
13:13 ilhami it's probably some small change I need to make to get it working
13:13 tjsnell it works well for what it does
13:13 tjsnell typically go jetty though
13:21 Matthijs joined ##javaee
13:29 * tjsnell hugs Matthijs
13:29 pdurbin tjsnell: please stop
13:29 * Matthijs strokes tjsnell's hair affectionately.
13:30 tjsnell pdurbin:  he has me on ignore
13:30 tjsnell and I know Matthijs
13:31 pdurbin tjsnell: you are contributing to recent ugliness in this channel: http://irclog.perlgeek.de/crimsonfu/2014-02-25#i_8343749
13:31 tjsnell sorry
13:31 pdurbin it's ok. let's just all play nice
13:32 tjsnell ilhami spewed massively vile shit, I despise his very being here, he's a liar, a hate monger and evil. But I'll make an effort to keep it in check.
13:32 tjsnell hell I even tried to help him yesterday before I realized after weeks of non stop pm's from him I had finally came up with a way to make him stop
13:33 tjsnell now I'm done, again sorry :)
13:33 pdurbin ilhami: no vile shit in here, please
13:34 jieryn joined ##javaee
13:34 jieryn joined ##javaee
13:34 pdurbin tjsnell: no more frequent reminders of ilhami's apparent intolerance of and prejudice against homosexuality
13:35 tjsnell and wishes of death on my family members, got it
13:35 sajjadg_ joined ##javaee
13:35 pdurbin thanks
13:36 ilhami what did he write?
13:36 ilhami I dont see it. If its bad dont write it
13:36 tjsnell the truth
13:39 Voyage joined ##javaee
13:45 fabioportieri joined ##javaee
13:46 fabioportieri hello
13:46 ilhami hello
13:56 sajjadg_ joined ##javaee
14:03 CJ_ pdurbin, Do all freenode channels get logged like that?  Or is that specific to this one?
14:04 pdurbin CJ_: some channels are logged: http://wiki.greptilian.com/irc/logging
14:06 CJ_ Interesting.
14:13 tjsnell nice link
14:15 AlexCzar I'm trying to find and working example of custom mongo mapper for spring-data-mongodb. I want to replace it with Jackson.
14:16 AlexCzar s/and/a/
14:16 AlexCzar ideas?
14:17 tjsnell ask cheeser? :)
14:17 CJ_ AlexCzar, Have you looked at not using spring-data?  I'm directly hitting mongo, albiet not at the level you're planning on.
14:17 tjsnell he's the mongodb guy
14:19 sheenobu joined ##javaee
14:21 TinkerTyper joined ##javaee
14:25 TinkerTyper joined ##javaee
14:30 AlexCzar CJ_, yes, and I've decided to use spring-data because I'll have other storage backends in the same application and spring data gives me unified exception tree and other goodies.
14:32 AlexCzar unfortunately though spring's mapping is around 40% slower than jackson, so for the time being I use MongoTemplate.execute with callback, in the callback I directly work with DBCollection and convert received DBObjects via Jackson
14:33 AlexCzar this deprives me from easy to use mongoTemplate APIs and Spring Data's Repositories. If I could replace the Spring Mapper with Jackson based mapper I would not need the callback 'hack'
14:34 AlexCzar except for some advanced low-level features of course (I try to minimize thouse by denormalization, but some still creep in from time to time)
14:34 AlexCzar s/thouse/those
14:36 kobain joined ##javaee
14:38 Naros joined ##javaee
14:47 CJ_ AlexCzar, Interesting.
14:50 ilhami DUDES
14:50 tjsnell and dudettes
14:52 Bombe GAY DUDES
14:53 pdurbin Bombe: please stop: I already asked tjsnell: http://irclog.greptilian.com/javaee/2014-02-26#i_60264
14:54 ilhami pdurbin he is also accusing me for all sorts of stuff. That I am a liar and that I wish death for his family members.
14:55 tjsnell all true
14:55 tjsnell logs if needed
14:55 sess anyone got any idea why a EJB lookup would fail from a new Thread when the exact same lookup works from the parent thread?
14:55 Bombe Yeah, I’m sure those accusations are completely unwarranted.
14:56 ilhami Bombe I never wished death for his family members.
14:56 tjsnell sess:   that shouldn't happen
14:57 tjsnell odd
14:58 sess I was thinking the same
14:59 ilhami org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null' why??????
15:00 Bombe Probably because the class and the URL are gay?
15:00 Bombe Er, empty? I meant empty.
15:00 Bombe Yes, that is what I meant.
15:03 fabioportieri sess: iirc you can do it only from a servlet thread
15:09 ilhami hahah
15:09 pdurbin Bombe: please stop it
15:09 ilhami Bombe is it because it doesn't see the driver?
15:10 ilhami I must admit that pdurbin is doing his job fairly well compared to other OPs
15:12 tjsnell doing his job is being the only channel that hasn't perm banned ilhami
15:21 ilhami I fixed it :D
15:28 Bombe Yeah, doesn’t really sound like an awesome job.
15:30 ilhami what? :D
15:36 sess tjsnell: btw if you were intrested, looking it up from another thread changed the context i could use for the EJB
15:36 sess had to use a different string
15:37 sess i.e java:global/myapp/mymodule/bean instead of java:app/mymodule/bean
15:38 ilhami left ##javaee
15:44 sfisque sess were you doing a jndi lookup?  if so, different thread should not affect that, jndi lookup is global (unless you're using the "module:" macro
15:45 sess sfisque: I was using a lesser context than global, might be jboss specific
15:45 sess jboss allows lookup by global, app or module
15:46 sfisque they all do, but you should be using global for exactly the reason you just discovered
15:46 sess creating a new thread meant leaving the app apparently
15:46 sfisque did you "create" the app or did you get one from the container (aka via @Asynch or MDB)?
15:46 sfisque s/app/thread/
15:46 sess it's a normal deployed ear
15:47 sfisque aye, how was the thread created
15:47 sess just a new MyThread(); myThread.run()
15:47 sess extending Thread
15:48 sfisque oh my.  please fix that, and read the chapter on Bean contract in the EE spec
15:48 sess this isn't inside a bean
15:48 sess it's outside the EJB layer
15:48 sfisque ah
15:49 sess regardless I'm replacing it with @Asynchronous which seems extremly easy to use
15:49 sfisque then yeah, if you're "outside" then context is meaningless for jndi lookup
15:49 sfisque aka, use global
15:50 sess not sure what jboss determines jndi context from
15:50 sess I assumed it was classloader related, and the thread should run in the same classloader i think?
15:50 sfisque if the call is from inside the war/jar/ear app: and module: work
15:51 sess what determines "inside"?
15:51 sfisque global: works all the time
15:51 sfisque where is the class executing from
15:51 sess the class was inside the EJB module
15:51 sess and thus should be inside app context still
15:51 sfisque but you spawned it in a thread that puts it outside of the ejb scope
15:52 sfisque so it could not live there
15:52 sfisque so it was probably executing in the container scope
15:52 sess ejb module is a bad name, service module is better
15:52 sess not sure what would determine the "scope"?
15:52 mikee joined ##javaee
15:53 tjsnell sess, sorry I'm now in meeting hell :(
15:53 sfisque in an ee container you only have several scopes.   app refers to the EAR.  module refers to teh war/jar/sar/rar.  global is everything in the container.
15:54 sess ah yes
15:54 sfisque when a class executes it's either in a module or executing at the container level
15:54 sfisque container == jdbc driver, jms driver, worker thread, etc.
15:54 sess but my Thread class is inside the same app
15:54 sess but the instance is created outside it?
15:54 sfisque right but it's a thread which puts it outside the ejb container, even though it is contained in your ejb jar
15:55 sfisque the object has to be managed by the container for it to execute in the container context
15:55 sfisque aka @Inject, @EJB, jndi lookup, etc.
15:56 sess hmmm
15:56 sess makes sense
15:56 sess normally all my calls are managed by the container i guess
15:56 sess would a simple servlet require global?
15:58 sfisque depends
15:58 sfisque if it's bundled int he same ear, app: would work
15:58 sfisque if the ejb's are bundled in teh same war, module will work
15:58 sess what's the difference between a servlet and a new thread then?
15:59 sess I have no framework that works at servlet level that I know of
15:59 sess @EJB doesn't work etc.
15:59 sfisque your thread was "new'ed" and not managed from a pool, unless you use @Asynch
15:59 sfisque so it's not a managed object, hence outside the container
15:59 sess the servlet would be managed just because tomcat inside jboss created it?
16:00 sess wouldn't that enable @EJB annotations in servlets and such
16:01 sfisque yes
16:01 sfisque and tomcat has no ejb container
16:01 sfisque it's JUST servlet
16:01 sfisque you need a "real" container like jboss, glassfish, websphere, etc. for @EJB to work
16:01 sess oh so there's multiple levels of managed
16:02 sfisque no, there are basically 2 types of container in the EE world
16:02 sess well I use jboss
16:02 sess and jboss uses tomcat for the web parts
16:02 sfisque tomcat, jrun, jetty, == servlet container (just servlets and maybe 1 or two other mechs, like jdbc pooling, etc.)
16:02 sfisque what version of jboss?
16:02 sfisque because it matters
16:03 sfisque v4.x == EE container
16:03 sfisque v5.x == EE container
16:03 tjsnell tomcat is a real container
16:03 sfisque v6.x == web profile
16:03 sess 7
16:03 tjsnell just a servlet container but it's a real one
16:03 sfisque 7.0?  7.1>?
16:03 sess 7.2
16:03 sess aka eap 6.1
16:03 sfisque ah, then @EJB should inject fine in your servlets
16:03 tjsnell fruitfly or whatever it is is a jee container :)
16:03 sess oh cool, didn't know that
16:03 sfisque if it does not, there is a configuration issue with your app
16:04 sess never tried it too be honest
16:04 sess thanks for the explanation :)
16:04 ilhami joined ##javaee
16:04 ilhami hey
16:04 sfisque yes tjs, it is a real "servlet" container, but IMO, a servlet container is pointless, except for toy apps, or the masochistic who hate leveraging existing solutions
16:05 sfisque npnp sess
16:05 tjsnell weird
16:05 tjsnell I've deployed some high value production apps using pointless toys then :)
16:05 sess sfisque: when using spring there's no big reason to go beyond a servlet container
16:05 sfisque the second point.  how much time did you spend vetting third party apps and piecing together the platform
16:06 sfisque you still have to swallow the vetting footprint.  with an EE stack, it's fully vetted for you. you just run with it
16:06 sfisque i HATE vetting third party libs.
16:06 sess I'd call a full spring stack on top of tomcat pretty much as convenient as a full java EE stack
16:07 sess with spring being testable and more portable
16:07 tjsnell you have to vet the full stack still
16:07 sfisque why? why would i ahve to vet hibernate if jboss has already vetted the version in the container i am running?
16:07 sfisque i know it's compatible and upto spec
16:07 sfisque otherwise it failes the TCK
16:07 sess well that's a two edged blade
16:08 sess it's a bitch to upgrade
16:08 sfisque not since osgi
16:08 sfisque 5-10 years ago, yes, a freakish nightmare
16:08 sfisque not anymore
16:08 sess I've tride updating hibernate in jboss 4 instances, not fun
16:08 sfisque jboss 4 == pre-osgi
16:08 ilhami what do you use jboss for?
16:08 sfisque jboss 4 == pleistiocene era
16:08 sfisque :P
16:08 sess so what would you do today? Switch the lib inside the container? Or include your own implementation and instruct the container to not use its own?
16:09 sfisque either.  depends on what's being upgraded
16:09 sfisque if it's something the container relies on and needs a bug fix, upgrade the global lib.  if it's just a feature upgrade for my app, just bundle and set the classloading appropriately
16:10 sess lets say we want JPA 3
16:10 sess on wildfly
16:10 sess in a few years
16:10 sfisque that might not be viable.  you're talking about an API upgrade, not just impl
16:10 sess I would really not feel comfortible upgrading internal libraries inside wildfly
16:11 sess sure, but API upgrades are sometimes wanted
16:11 sfisque aye but you're also talking about a spec change.  that container wouldn't be to that spec
16:11 sfisque aye but you'd probabl need a newer container
16:11 sess even if only the implementation was upgraded, I wouldn't feel comfortible switching out wildflys internal libraries
16:11 sess the whole thing would be a non issue with spring
16:11 sess thus my portability statement :)
16:12 sess I'm a bit biased probably because I spent the last year migrating multiple apps from old servers to newer jboss versions
16:13 sess OC4J -> jboss7 was pretty big
16:13 sfisque well, you're also talking API changes, spec changes, and "feature bleed" (aka using orm level annotations, etc.)
16:14 sess those are all part of reality
16:14 sfisque the key there is, did the original devs provide you good isolation of the "sharp edges" or was it a mess?
16:14 sess of the app?
16:15 sess or server?
16:16 ilhami I have a question.. if I want to upload my web project/web service which I made in Eclispe to my http server. Do I just create a .jar file which runs on the server and upload it?
16:17 sess what server/container? what kind of packaging?
16:18 ilhami I have made a Dynamic Web Project in Eclipse
16:18 sess i have no idea what that is
16:18 ilhami and I want to upload it somehow. It contains servlets and all that
16:19 sess java ee? spring? simple servlets?
16:19 sess you need to make a WAR
16:19 sess and deploy it on a proper container
16:22 ilhami oh okay.
16:22 ilhami thanks I will look into WARs
16:22 sess a WAR is just a JAR with a specific structure
16:23 sess Eclipse most likely has support to make one
16:23 sfisque any modern ide will build a war/jar/ear with just a couple mouse clicks.  unfortunately, rar/sar treatment is lacking afaict
16:25 sess I only use maven or in worst case Ant so :>
16:25 tjsnell but using maven is better
16:25 sess never tried it
16:25 sfisque aye but all the ide's just hand off to ant/maven also, so it's the same mech.  even idea just uses ant/maven under the hood
16:28 tjsnell but relying on your ide to do your builds 1 - ties you to that ide for everyone on the project, 2 - only allows you to build from a machine that's running the ide
16:29 AlexCzar joined ##javaee
16:29 sfisque not for many years.  i know netbeans builds can be done from the CLI because it's just ant/maven task/target calls
16:29 sfisque idea same deal
16:29 sfisque not sure on eclipse.
16:29 sess had no idea about that
16:29 sfisque but eclipse eats ass anywah
16:30 sfisque :P
16:30 tjsnell just use maven
16:30 sess yeah i hate eclipse
16:30 sess :(
16:34 AlexCzar I learned java in Netbeans, then I tried to adopt eclipse thrice (once a year) and failed. Then I switched to IDEA, 1 week of accomodation later my coding/debugging/younameit productivity noticeably improved
16:34 sfisque yeah.  when i have the money to spend, i love IDEA.  for freebie, i'm a Netbeans dude
16:34 sess +1
16:35 AlexCzar sfisque, there is a community version, also if you just ask nicely jetbrains will give you 15-25% discount
16:36 sess community version doesn't support java EE though
16:36 sfisque aye.  but i've found the CE version is clunky after having used several of the commercial versions
16:36 sfisque the commercial version is VERY polished
16:36 AlexCzar can't argue with that
16:37 sfisque i find NB less clunky than the CE version, though the spendy version is primo if you have the $$
16:38 ilhami I will start using IDEA after this project.
16:45 tjsnell or qualify for a free license :)
16:47 sfisque yes.  if you're doing non-profit work you can get a freebie license
16:47 tjsnell or oss work
16:47 tjsnell my apache email address got me one :)
16:48 tjsnell but I have a couple of paid keys too
16:48 Voyage joined ##javaee
16:49 tjsnell I don't mind paying for tools
16:51 ilhami I am going to do profit work. How much will I have to pay then?
16:51 sfisque aye, but i have to keep it to "opportunity" purchases.  i can't just willy nilly go buying every license i WANT :P
16:51 sfisque idea ranges from about 100-500 a seat
16:51 sfisque roughly
16:51 sfisque usd
16:51 ilhami thats not cheap.
16:51 * sfisque nods
16:52 sfisque you get what you pay for.  it's worth it.  but like you said, it's not cheap
16:52 ilhami Eclipse is free, right? no matter what?
16:52 sfisque eclipse, netbeans, idea CE  all free
16:52 tjsnell $500 is cheap in the scheme of things
16:53 tjsnell if you believe it'll help a programmer be more productive
16:53 sfisque well, yes it's cheaper than buying a sunfire
16:53 ilhami I mean Eclipse is really slow but not that bad.
16:53 AlexCzar ilhami, independent develoepr license is $200
16:54 tjsnell if Idea lets a developer be 5% more productive than Eclipse then Idea is massively cheaper than Idea
16:54 tjsnell err
16:54 tjsnell if Idea lets a developer be 5% more productive than Eclipse then Idea is massively cheaper than Eclipse
16:54 sfisque depends.  are you getting salary or billing by the hour ;-D
16:54 ilhami so I have a .war file now? What now? can I just upload it to my remote server?
16:54 sfisque ilhami yes
16:55 sfisque deploy to container, watch the magic
16:55 AlexCzar for me eclipse is unusable. if not IDEA, then I'll use Nb, but under no curcumstances I'll use eclipse on a daily basis
16:55 sfisque oooohhhhh
16:55 sfisque aaaaaahhhhhh
16:55 ilhami that was kind of easy. With 2 clicks I got the war :D
16:55 sfisque magic
16:55 sfisque BLACK
16:55 tjsnell sfisque:  I'm speaking from the perspective of someone that hires developers
16:55 sfisque MAGIC
16:55 sfisque !~!!!
16:55 ilhami :S
16:55 ilhami bad
16:55 sfisque aye tjs, i was being snarky :P
16:55 tjsnell but as a consultant it's morally on me to be as productive as possible :)
16:56 sfisque aye, but we can definitely joke about billing for hours spent watchign spinning beachballs :P
16:56 ilhami file uploaded.
16:56 ilhami so now I just write its path in a browser?
16:57 sfisque http://hostname:8080/context_name_of_webapp
16:57 tjsnell I'm billing now sitting in meeting hell
16:57 sfisque or if you didnt configure a context name,   http://hostname:8080/war_name
16:57 ilhami ok ok let me try :D
16:57 sfisque :-D
16:58 ilhami it opens a dialog
16:58 ilhami if I want to open or save
16:58 ilhami I dont want that
16:58 ilhami :S
16:59 sfisque mime-type mismatch
16:59 ilhami so what do I do? :S
17:00 ilhami but dude inside it I have a index.jsp which I want to open. How can I do that?
17:01 tjsnell dude!
17:01 sfisque dude!
17:01 ilhami yes?
17:01 ilhami dude
17:01 ilhami ?
17:01 sfisque duuuuude....
17:01 ilhami stop saying dude. :D get to the point.
17:02 sfisque duuuuuuuuuuuuuuuuuuude......
17:02 ilhami Whats the point of downloading it? :S I want to use it on the server.
17:02 ilhami haha
17:02 tjsnell use bro instead
17:02 sfisque brah.....
17:03 ilhami ???????????????????????????????????????????????? :D
17:03 tjsnell ~bras++
17:05 AlexCzar miss javabot goodies? :)
17:05 ilhami I don't get it dude.
17:05 ilhami What can I use this .war file for? I want to access index.jsp which produces a JSON object.
17:06 ilhami it's inside the .war I guess.
17:06 ilhami and do I need to upload the tomcat server to my server as well?
17:10 * sfisque puts his drink down, and hides behind the sofa
17:10 tjsnell too late
17:11 ilhami dude come back
17:11 tjsnell duuuuude
17:11 sfisque nobody here but us dust bunnies
17:11 sfisque and this moldy cracker
17:12 tjsnell lunch!
17:14 neuro_sys joined ##javaee
17:14 neuro_sys joined ##javaee
17:14 sfisque >.<
17:14 whartung I'm not here, that's for sure. uh uh.
17:16 sess ilhami: you dont access a jsp directly
17:17 sess you access a servlet that serves the compiled version of the jsp
17:17 ilhami yeah I have a servlet inside my .war file
17:17 ilhami how can I access it?
17:19 tjsnell dude!
17:20 neuro_sys dude...
17:20 ilhami yes?
17:21 Noodep joined ##javaee
17:22 * whartung looks longingly at the "Head First Servlets and JSP" book -- and weeps.
17:23 sfisque javaeebot google learn jsp servlet tutorial simple walk through
17:23 javaeebot sfisque: A Tutorial on Java Servlets and Java Server Pages (JSP): <http://aplcenmp.apl.jhu.edu/~hall/java/Servlet-Tutorial/>; Serlvets & JSP - Java: <http://java.cnam.fr/iagl/biblio/Serlvets%20&%20JSP%20-%20Falkner%20Jones.pdf>; JSP Tutorial - Tutorials Point: <http://www.tutorialspoint.com/jsp/>; Struts 2 Tutorial - Tutorials Point: <http://www.tutorialspoint.com/struts_2/>; Hibernate and JPA: An (2 more messages)
17:23 * sfisque ducks behind the sofa again
17:37 jieryn joined ##javaee
17:40 Naros any of you guys ever tried to access ServletActionContext in a OGNL property tag in Struts?
17:40 Naros cannot seem to access it's static methods
17:41 sfisque i do not believe class methods are exposed in jsp
17:41 sfisque via tags
17:41 Naros according to OGNL they are
17:42 Naros I should be able to do <s:property value="org.apache.struts2.ServletActionContext@getActionMapping().namespace" />
17:42 sfisque if so that's cool.  i always hated having to proxy static methods to make jsf and tiles happy
17:42 Naros but no matter what syntax i use, i cannot get the static method to invoke :S
17:43 Naros oh wait, maybe i need to wrap it with attrs, let me try that
17:44 Naros nope
17:44 sfisque u using struts2?
17:44 Naros yah
17:44 sfisque http://struts.apache.org/release/2.3.x/docs/ognl-basics.html  (half way down)
17:44 sfisque looks like you have to prefix the class ref with @ also
17:44 sfisque so @org.apache…..
17:44 Naros my v6 branch code uses @package.Constants@KEY_NAME
17:44 Naros I've tried that too
17:45 Naros I guess I could just write the jsps and omit the namespace
17:45 Naros it defaults to the current namespace but i kinda wanted to make sure I enforced what i wanted.
17:46 sfisque is namespace a key in the mapping?
17:46 sfisque "namespace"
17:46 sfisque or is it an attribute of the mapping object
17:46 Naros sorta yah.  basically its a way to package actions together
17:46 sfisque right but is it a key or an attribute
17:46 Naros I want to create some jsps that are gonna be shared across namespace boundaries.
17:46 sfisque my question stands
17:46 Naros oh namespace is a property on a static method that returns the mapping object
17:47 Naros ServletActionContext.getAct​ionMapping().getNamespace()
17:47 sfisque ok
17:47 Naros where action mapping is static
17:47 sfisque that's what i was wondering
17:47 ilhami left ##javaee
17:47 Naros docs seem to lead me to believe i can access it
17:47 sfisque maybe "actionMapping" rather than "getActionMapping"
17:48 Naros tried that variant as well
17:48 sfisque OH
17:48 sfisque @class@method@method
17:48 sfisque try that
17:48 Naros tried that too
17:48 sfisque ok
17:48 sfisque well,  damn
17:48 sfisque maybe a bug?
17:48 sfisque configuration issue?
17:48 Naros ive even just tried to get the ActionMapping object and nada
17:48 sfisque stars are wrong?
17:48 Naros or maybe that object is somehow protected
17:48 sfisque oh is it on the stack?
17:49 Naros it should be
17:49 sfisque how is it being put into the value stack for struts/tiles to use
17:49 Naros i'd have to dig through their interceptors to find that out
17:49 sfisque oh so it's being done explicitly
17:49 sfisque maybe the interceptor isnt firing?
17:49 Naros in actions i just access the class as i said earlier, "ServletActionContext.getActionMapping()"
17:49 sfisque put in some logging or a break point
17:49 Naros i would think i could do the same in the JSP
17:50 sfisque well, bear in mind that jsp is evaluated at runtime, it's not compiled with all the pointers resolved
17:50 Naros nod but if my custom final constants class works, i would think shoudl too
17:51 Naros But my constant class just holds a bnch of props
17:51 Naros not methods
17:51 Naros i'll play with it; gotta work i would think unless they either added some security things i have enabled in the 7 branch that are disasbled in my 6 branch.
17:54 Naros fyi: @org.apache.struts2.ServletActionContext@ACTION_MAPPING works to get a property
17:55 Naros lol ding ding ding
17:55 sfisque spill
17:55 Naros struts.ognl.allowStaticMethods must be enabled to do it
17:55 Naros silly access constant that is disabled by default
17:55 sfisque ah.  you forgot to set the CORE_DUMP_ON_LAUNCH resource to faluse
17:55 sfisque **false
17:56 Naros :P
17:56 sfisque :D
17:56 Naros So i guess alternative is just to expose the value through a base action property instead
17:56 Naros rather than enable that
17:56 sfisque aye.  proxies
17:56 Naros nod :(
17:56 sfisque because having instance methods return static values is A W E S O M E
17:56 Naros lol yah
17:58 AndroidLoverInSF joined ##javaee
18:50 sheenobu joined ##javaee
19:37 Voyage Hi
19:38 Voyage I want to make a jasper report after getting some date range parameters and which collumn to sort the report by, from user (at jsp), then create the report according to those parameters. I am using spring 3, hibernate, jasperstudio. Any one can brief me the methodology ?
19:39 Voyage I would have to use JPQL to make some queries from my different entities.
19:44 Voyage In this link, only one entity (user) is used for generating report. What if I want to make a proper JPQL query e.g joining multiple tables or columns and then generate a report. http://keytotechnologies.blogspot.com/2013/02/jasper-report-spring-hibernate-example.html
19:57 mikee joined ##javaee
19:57 Bombe joined ##javaee
19:57 acuzio joined ##javaee
19:57 neuro_sy1 joined ##javaee
19:58 Matthijsh joined ##javaee
19:58 ilhami joined ##javaee
19:58 ilhami Hey
19:58 ilhami anybody here?
19:59 ilhami I have a new server. The server I tried to upload the .war to was a plain http apache server
19:59 ilhami now I have a server that supports Tomcat
20:00 liecno joined ##javaee
20:01 AlexCzar ilhami, first, you need tomcat or jetty, or any other servlet copntainer, not "a server that supports tomcat"
20:01 ilhami I have tomcat
20:01 ilhami :)
20:01 ilhami installed on localhost
20:01 ilhami so I guess I can just move it to my new server
20:01 ilhami right?
20:02 AlexCzar yeah, why not.
20:03 ilhami do I need to change the server.xml before deploying it?
20:04 mikee joined ##javaee
20:04 Bombe joined ##javaee
20:04 acuzio joined ##javaee
20:04 CJ_ I have a servlet that needs to create a new bean every time someone makes a get request.  What is the best way to handle this in spring?
20:05 ilhami Bombe :D
20:05 ilhami I have a new server now.
20:06 AlexCzar CJ_, request-scoped bean
20:06 CJ_ Oh, right.  I forgot you could do that.  Thanks.
20:06 AlexCzar you're welcome :)
20:08 CJ_ But I still need to call the appcontext to get the bean.
20:08 CJ_ So prototype will do the same thing.
20:08 sfisque1 joined ##javaee
20:08 CJ_ Because my servlet isn't a spring bean.
20:09 sfisque1 left ##javaee
20:09 ilhami AlexCzar actually Tomcat is already installed on my new server. I dont even need to deploy it :D
20:09 waz joined ##javaee
20:09 waz joined ##javaee
20:11 AlexCzar CJ_, if your servlet is not configured by spring, then yes, you'd have to call getBean and specify your prototype bean as a parameter
20:11 waz yay freenode DOS fun
20:11 Voyage_ joined ##javaee
20:12 liecno_ joined ##javaee
20:15 gvdevil joined ##javaee
20:16 CJ_ If I configure my servlet via spring, that I have to implement HttpRequestHandler.  As such, I have to do the checking to determine if it's a GET, POST, etc.  Correct?
20:17 ilhami Yes
20:17 ilhami I think you do
20:35 Voyage_ I want to make a jasper report after getting some date range parameters and which collumn to sort the report by, from user (at jsp), then create the report according to those parameters. I am using spring 3, hibernate, jasperstudio. Any one can brief me the methodology ?
20:35 Voyage_ I would have to use JPQL to make some queries from my different entities.
20:35 Voyage_ In this link, only one entity (user) is used for generating report. What if I want to make a proper JPQL query e.g joining multiple tables or columns and then generate a report. http://keytotechnologies.blogspot.com/2013/02/jasper-report-spring-hibernate-example.html
20:43 cbgx74 joined ##javaee
21:09 neuro_sys joined ##javaee
21:13 ilhami anybody here?
21:16 tjsnell nope
21:16 tjsnell empty channel
21:17 tjsnell always with the insightful questions
21:17 tjsnell btw - reading the logs is cheating. You're not ignoring me, you're delaying reading me
21:20 whartung I'm ignoring you…but, that's just me. and you. we.
21:27 cbgx74 joined ##javaee
21:34 AndroidLoverInSF joined ##javaee
21:34 tjsnell joined ##javaee
21:35 huhlig joined ##javaee
21:44 ilhami :D
21:47 tjsnell dude!
22:00 Bombe Haha, is he really doing that?
22:00 Bombe That’s quite pathetic.
22:04 tjsnell he quoted me today :)
22:15 ilhami left ##javaee
23:07 AndroidLoverInSF i have a view that represents the latest prices for different tickers. in jpa how would i get that into a just a list of some type of entity that represents the view. it very closely matches my entity but its not quite the same (for instance, no ID)
23:08 Voyage_ joined ##javaee

| 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.