IRC log for #tomcat on 20090312

00:22.26*** join/#tomcat npm (n=NielsMay@cpe-75-83-171-237.socal.res.rr.com)
00:41.48*** join/#tomcat karstensrage (n=karstens@c-76-103-32-139.hsd1.ca.comcast.net)
00:56.54*** join/#tomcat internat1 (n=nf@123-243-184-161.static.tpgi.com.au)
01:29.43*** join/#tomcat bwr (n=bwr@adsl-75-34-65-74.dsl.spfdmo.sbcglobal.net)
01:40.10bwrHi, I am trying to learn how to use Joid the openid library. I am just trying to use the example war provided in tomcat 6.0.18. I get an error "SEVERE: Error filterStart" and "SEVERE: Context [/joid] startup failed due to previous errors" but nothing else. I have tried searching but haven't been able to figure out what might be the problem and I can't figure out anything from the output. Any ideas?
01:42.38*** join/#tomcat rchern-afk (n=UPP@unaffiliated/rchern)
01:43.25*** join/#tomcat vinse_ (n=vinse_@208.253.223.146)
01:46.49*** join/#tomcat SJr|Work (n=unknown@216.152.207.157) [NETSPLIT VICTIM]
01:46.51*** join/#tomcat mirari (n=iostream@89.221.166.136) [NETSPLIT VICTIM]
02:48.29karstensragebwr, check all the logs in $CATALINA_HOME/logs
02:48.40karstensrageand see if you can find an exception or something
02:49.48bwryea, i've looked and haven't been able to figure anything out. I switched libraries to openid4java now
03:04.52*** join/#tomcat jimmygoon (n=jimmygoo@pcp085179pcs.unl.edu)
03:05.17jimmygoonOk, so I want to add -Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n to my launch configuration... where does this go?
03:46.15karstensragejimmygoon, 'set CATALINA_OPTS = '
03:46.41karstensrageor maybe.. hold on a sec
03:47.25jimmygoonkarstensrage: well I ran catalina.sh debug but it just hangs at $ ./catalina.sh debug
03:47.25jimmygoonUsing CATALINA_BASE:   /home/xxx/tomcat
03:47.25jimmygoonUsing CATALINA_HOME:   /home/xxx/tomcat
03:47.26jimmygoonUsing CATALINA_TMPDIR: /home/xxx/tomcat/temp
03:47.26jimmygoonUsing JAVA_HOME:       /usr/java/jdk1.6.0_06
03:47.26jimmygoonInitializing jdb ...
03:47.28jimmygoon>
03:47.38jimmygoon{{ and then it hangs }}
03:47.49karstensrageset JDPA_OPTS?
03:47.59karstensrageset JPDA_OPTS?
03:48.56jimmygoonkarstensrage: the debug option in the catalina.sh script launches it in debug mode with JPDA_OPTS :/
03:56.31jimmygoonI just don't understand why it hangs there :/
03:59.53karstensragewhats it doing in the shell?
04:14.10jimmygoonWell when I run ./catalina.sh debug it just sits there and no jdb seems to start, but tomcat does _not_ run
04:14.40jimmygoonand when I run ./catalina.sh jdba start    then it runs tomcat but does not create an open port on port 8000 as it should and I can confirm w/ netstat
04:27.11*** join/#tomcat Gopaul (n=chatzill@61.17.185.118)
04:34.10jimmygoonso now I get : "Listening for transport dt_socket at address: 8000"
04:34.15jimmygoonwhen I use ./catalina.sh jdba run
04:34.26jimmygoonbut netstat -n says there is nothing listening on port 8000
04:42.36*** join/#tomcat acidjnk (i=acid@pD950A4E8.dip0.t-ipconnect.de)
04:50.36*** join/#tomcat trifon (n=chatzill@79.124.70.209)
04:52.22*** join/#tomcat jasonb (n=jasonb@adsl-66-124-73-250.dsl.sntc01.pacbell.net)
05:27.03*** join/#tomcat shashi (n=shashi@122.181.1.158)
06:30.16*** join/#tomcat kjkoster5489 (n=kjkoster@unl201395.nl.customer.alter.net)
07:15.56*** join/#tomcat dvayanu (n=another@ppp-93-104-113-185.dynamic.mnet-online.de)
07:28.09*** join/#tomcat JohnBat26 (n=Eugene@89.175.77.49)
07:28.15JohnBat26hello
07:28.22JohnBat26I use tomcat 5.5
07:28.58JohnBat26and my several threads hangup after failed jdbc connection
07:29.29JohnBat26and they hangs  very long
07:29.59JohnBat26Q: How in tomcat terminate threads which is hangs?
07:30.53deebofix your app
07:30.58deeboi doubt its tomcats fault
07:35.06kjkoster5489JohnBat26: make thread dumps and find the faulty code that way.
07:39.51JohnBat26kjkoster5489: ok, but may I kill hang thread?
07:40.17JohnBat26kjkoster5489: by timeout?
08:05.40kjkoster5489You have to examine the code that the thread runs and make sure it handles the failed JDBC connection by terminating.
08:19.46*** join/#tomcat yassine (n=yassine@unaffiliated/yassine)
08:38.46*** join/#tomcat dvayanu (n=another@host-62-245-224-138.customer.m-online.net)
08:53.48*** join/#tomcat dvayanu_ (n=another@host-62-245-224-138.customer.m-online.net)
09:12.05*** join/#tomcat Yves_ (n=quassel@195.46.234.222)
10:49.46*** join/#tomcat Yves_ (n=quassel@195.46.234.222)
10:55.07*** join/#tomcat l3v0n (n=l3v0n@p579F4D07.dip.t-dialin.net)
12:00.12*** join/#tomcat coachz (i=40108302@gateway/web/ajax/mibbit.com/x-efcb22fdd015de2c)
12:02.49coachzHi, i'm running Tomcat 5.5.23 on Centos5.2 and i have my Java and Tomcat running but my Hello.jsp page doesn't process.   The setup web page didn't give me much more to go on.  Is there another page with detail setup steps to get my page processing please ?
12:03.42coachzi have not edited tomcat.conf yet, i guess that's next
12:08.31*** join/#tomcat acidjnk (i=acid@pD950A4E8.dip0.t-ipconnect.de)
12:09.09*** join/#tomcat stimpie (n=michiel@84-104-5-142.cable.quicknet.nl)
12:10.55coachzisn't this wrong:  JAVA_HOME=/usr/lib/jvm/jre-1.6.0-sun      don't i need to point to the JDK directory instead ?
12:12.55stimpiesomebody knows why I get this error in my jsp: The method replaceAll(String, String) is undefined for the type String?
12:13.04stimpieusing it in a standalone application works perfectly
12:39.42kjkoster5489stimpie: check your Java versions at run-time.
12:39.56kjkoster5489coachz: tomcat worls well in a JRE and does not need a ful jdk.
12:46.09stimpiekjkoster5489, getProperty("java.version") returns 1.6.0_10
12:46.34kjkoster5489In the JSP?
12:46.40stimpieyes
13:25.03coachznew Tomcat5.5 install.......firewall 8080 open in iptables and tomcat5, JAVA_HOME is set in tomcat5.conf  My Hello.jsp page opens blank.  Any ideas ?  Without 8080 in the url it opens unprocessed too.
13:25.51kjkoster5489Stock tomcat or apt/rpm one?
13:26.08coachzcentos 5.5 yum package
13:26.34kjkoster5489Hmm. Try a stock one, just to be sure the package is not broken.
13:26.39kjkoster5489Check catalina.out for messages/
13:28.05coachzcatalina.out just says the server started.  this is the package that Red Hat enterprise so i'm sure it's not broken
13:28.34coachzhere's catalina.out     http://rafb.net/p/XLspk938.html
13:29.04coachzjava -version shows  java version "1.6.0_11"
13:31.41*** join/#tomcat randrew (n=raj@dyn-128-59-52-242.dyn.columbia.edu)
13:33.07kjkoster5489coachz: rpm's for Tomcat are a pain, see e.g. http://java-monitor.com/forum/showthread.php?t=4
13:33.33kjkoster5489Try a real one from Apache.org and see if that one does work.
13:33.54kjkoster5489If that one fails too more people can help you, because then it is not a packaging issue.
13:34.08coachzi can't imagine that red hat enterprise tomcat is broken
13:34.21kjkoster5489I can.
13:35.02kjkoster5489It is not broken by accident, it is packaged differently from the standard tomcat so it works differently in unexpected ways.
13:35.21kjkoster5489Try a real one, just to prove me wrong.
13:35.31coachzdo i have to compile the other one ?
13:36.08kjkoster5489No.
13:36.27coachzok, i'll get it now, thank you
13:36.31kjkoster5489Just download from tomcat.apache.org (core zip), unzip, chmod 755 bin/*.sh and bin/startsup.sh
13:36.34kjkoster5489Poof.
13:36.46coachzi like POOF
13:38.41kjkoster5489:)
13:40.51coachzshould i put it back in /etc/tomcat5 ?
13:43.32coachzor in /usr/share/tomcat5
13:45.11kjkoster5489Any place you like. It is a self-contained folder.
13:45.26coachzand do i need to create a user "tomcat"
13:45.31kjkoster5489Just make sure you run it withut any CATALINA_* env settigns.
13:45.33kjkoster5489No.
13:45.56kjkoster5489You can do all that later, once it works. :)
13:48.54*** join/#tomcat randrew (n=raj@dyn-128-59-52-242.dyn.columbia.edu) [NETSPLIT VICTIM]
13:48.54*** join/#tomcat acidjnk (i=acid@pD950A4E8.dip0.t-ipconnect.de) [NETSPLIT VICTIM]
13:51.01coachzi ran it and it says it's Using  CATALINA_BASE......blah blah
13:51.08kjkoster5489ok
13:51.10coachzand it sees my JRE_HOME
13:51.32kjkoster5489But does it show the demo page on 8080?
13:51.45coachzyes
13:51.48kjkoster5489Hmm.
13:51.54coachzApache Tomcat/5.5.27
13:52.27kjkoster5489If you are not tied to a version, better use 6.0.18.
13:52.45kjkoster5489Does this solve the problem you had earlier?
13:52.56coachzi don't think coccon or maven  uses 6
13:53.23coachzi'm getting closer :-)     my Hello.jsp page doesn't run yet
13:53.39*** join/#tomcat lrk (n=lrk@193.42.156.205)
13:53.50kjkoster5489See what I mean with the RPM being broken, though?
13:54.12coachzwell, maybe it needs some funky setting,   that's typical for me in linux
13:54.38coachzwhat's the pass for tomcat manager
13:55.08*** join/#tomcat coachz (i=40108302@gateway/web/ajax/mibbit.com/x-3dc15b15ccbfdc47)
13:55.22kjkoster5489Don't use the manager, it is an attack vector for viruses.
13:55.36kjkoster5489Just create your webapp under ${tomcat}/webapps/
13:55.36coachzhow about tomcat administrator
13:55.47kjkoster5489?
13:57.08coachzdoes my Hello.jsp go under /usr/share/tomcat5/webapps  too ?  I put it there but i get a 404
13:57.57kjkoster5489Put it into ${tomcat}/webapps/ROOT and see.
13:58.16kjkoster5489You can access it using http://localhost:8080/Hello.jsp
13:58.19coachzsuccess !
13:58.34coachzthank you kjkoster5489 for the spoonfeeding
13:58.42kjkoster5489I'll send the bill. :)
13:59.06coachzi don't see any limits on cocoon so i'll get the latest tomcat
14:06.59coachzcool, running 6.0.18 now.   very simple to get going at least.   thanks again
14:12.39kjkoster5489np
14:12.46*** join/#tomcat randrew1 (n=raj@dyn-128-59-52-242.dyn.columbia.edu)
14:12.58coachzi'm reading about the best way to start it on boot up
14:13.20coachzlooks good   http://www.howtogeek.com/howto/linux/installing-tomcat-6-on-ubuntu/
14:15.14*** join/#tomcat randrew (n=raj@dyn-128-59-52-242.dyn.columbia.edu) [NETSPLIT VICTIM]
14:15.14*** join/#tomcat acidjnk (i=acid@pD950A4E8.dip0.t-ipconnect.de) [NETSPLIT VICTIM]
14:23.38*** join/#tomcat dvayanu (n=another@host-62-245-224-138.customer.m-online.net)
14:54.29*** join/#tomcat prgrmr_ (n=prgrmr@unaffiliated/prgrmr)
15:56.26*** join/#tomcat C_Kode (n=_C_Kode@38.108.104.210)
15:59.36C_KodeHi, mod_jk question:  I have mod_jk 1.2.27 with the new settings (ping_mode etc)  socket_connect_timeout and socket_timeout.   Is socket_timeout how long a socket can be open before it's closed, or how long it waits for a responce after a message (or whatever else) is sent?
16:37.23*** join/#tomcat MHSL- (i=Linux@cm18.eta6.maxonline.com.sg)
16:39.30*** join/#tomcat IIVQ (n=Tijmen@a80-101-215-78.adsl.xs4all.nl)
16:39.46IIVQhey
16:40.27IIVQquestion: While working on a new tomcat app I get the following error
16:40.28IIVQorg.apache.jasper.JasperException: javax.servlet.ServletException: javax.servlet.jsp.JspException: Unable to get connection, DataSource invalid: "org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Could not create connection to database server.
16:41.02IIVQhowever, one week ago, it worked fine with the same db & settings, and I can manually connect to the db
16:41.12IIVQany idea how I can get a more elaborate message?
16:41.42IIVQbtw: Tomcat 6.0.14 from XAMPP + mysql 5 on windows vista
16:52.23*** join/#tomcat jasonb (n=jasonb@75.144.23.117)
16:59.56*** join/#tomcat karstensrage (n=chatzill@75-55-199-5.mobitv.com)
17:39.19*** join/#tomcat PeepOle (i=7c7ce905@gateway/web/ajax/mibbit.com/x-821bc1a410ccacaa)
17:42.10IIVQfound the errror: in my vista-> hosts file, the localhost was set to ::1 instead of 127.0.0.1
17:42.13IIVQstrangely enough
17:44.22PeepOleHi all. I have Tomcat 6.0.18-0ubuntu3.1, java version "1.6.0_0", Ubuntu 8.10. I have just started to use tomcat. I have copied a war file xyz.war to /usr/share/tomcat6/webapps/. However http://localhost:8080/xyz shows error "Requested resource is not available" HTTP Status 404. What have I done wrong?
17:48.18*** join/#tomcat da_krowa (i=Miranda@chello089078230060.chello.pl)
17:50.27*** part/#tomcat coachz (i=40108302@gateway/web/ajax/mibbit.com/x-3dc15b15ccbfdc47)
17:53.33*** join/#tomcat PeepOle (i=7c7ce905@gateway/web/ajax/mibbit.com/x-5d5893ccc9b145eb)
17:53.51PeepOleWhooo, am back. Any answers yet?
17:58.00*** join/#tomcat karstensrage (n=chatzill@75-55-199-5.mobitv.com)
17:58.53pfnyour situation is too vague to answer
17:58.57*** join/#tomcat fommil (n=samuel@host-80-192-121-116.static.telewest.net)
18:00.02fommilI have an AJP 1.3 Connector on port 8010, which I've flagged as secure="true" scheme="https". This only receives requests that have arrived via Apache + SSL. However, servlets are reporting request.getProtocol of HTTP/1.1
18:00.45fommilhow can I make the servlets see requests on this port as if they were arriving through tomcat's raw SSL server
18:01.23pfnfommil, req.isSecure()
18:01.28pfnprotocol is always HTTP/1.1
18:01.58pfnwell, I suppose it could be HTTP/1.0
18:02.02pfnbut no one really sends that anymore
18:02.05fommilok, now here's the thing... this essentially completely breaks response.sendRedirect
18:02.22pfnno it doesn't
18:02.25pfnyour code is wrong then
18:02.59fommilmy code does response.sendRedirect(request.getRequestURI() + "someparams")
18:03.24fommilwhat's broken with that? should I be skipping the getRequestURI ?
18:10.43pfnhow does that break sendRedirect then?  Location: should always be a full URL, use something to read the HTTP headers to determine what url you are being redirected to
18:10.48pfnbecause there's nothing there that should break
18:11.05pfnif it's sending you back to http:, then it's likely a browser issue
18:13.24fommilpfn: it's an Apache issue... Apache is https port 443, but then it's getting passed to Tomcat through AJP + secure set
18:13.55*** join/#tomcat oxi (n=oxi@213.189.154.84)
18:13.56pfnthat has nothing to do with it
18:13.57oxihi
18:14.01fommilpfn: is there a convenience method to obtain the full URI
18:14.13pfnfommil, you also are neglecting to use response.encodeRedirectURL
18:14.19oxican anyone please help me to setup tomcat as a service on windows 2003?
18:14.41oxiI'm having trouble creating an own user for that and running it under that created user
18:14.52oxiI have no trouble running tomcat as a system user
18:15.20fommilpfn: i'll do that... the docs do not say if it needs to be relative or absolute. If I feed it relative, will it make absolute?
18:15.22oxiI tried creating an own user for tomcat named "Tomcat" and put that user in the "Users" group
18:15.39pfnno
18:15.51pfnwell, if you feed encodeRedirectURL it should
18:15.53oxinow I get a timeout trying to access the tomcat webserver
18:16.03pfnHTTP *specification* has always required a full url for the Location: header
18:16.15pfnmost browsers will support malformed Location: headers and do their own thing
18:16.39oxiis there a way to give my "Tomcat" user credentials to open a port and access to required runtime stuff (tomcat.exe, java, ...)?
18:16.47pfnshrugs
18:16.49pfnnot a windows guy
18:17.03oxior do I have to run tomcat on a "administrator" user account on windows
18:17.19oxipfn: yeah, that's the trouble, I'm also not really a windows guy anymore
18:17.20oxi:-)
18:17.39oxiI find it much harder to setup than on *nix or bsd
18:18.02pfnbest to ask a windows-specific channel
18:18.09pfn##windows
18:19.04oxiI tried
18:19.05oxi:-)
18:22.16pfnkeep trying
18:24.52jasonb"contact your vendor.."  :)
18:25.24*** part/#tomcat fommil (n=samuel@host-80-192-121-116.static.telewest.net)
18:26.04*** join/#tomcat vncsnvs (n=vncsnvs_@201.86.135.130.dynamic.adsl.gvt.net.br)
18:26.37oxijasonb: lol :-)
18:31.05oxiI had to give the user the rights to access files in the tomcat installation folder
18:31.23oxiseems natural, but in windows doooh, you never know
18:50.42vncsnvshello! i'm getting the following error: http://www.pastebin.ca/1359195 , ne1 knows something about it?
18:52.02pfnthat message has nothing to do with tomcat
18:52.18pfnjavax.servlet.http.HttpServlet.service(tomcat5-servlet-2.4-api-5.5.23.jar.so)
18:52.22vncsnvspfn, whatz the broblem?
18:52.24pfnheh, built into .so?  eh?
18:52.33pfnvncsnvs, openbravo
18:54.13vncsnvspfn, i'm new with tomcat
18:54.19vncsnvspfn, don't know where i start!
18:54.38Ledesetting up tomcat is a pain
18:54.48Ledei really recommend a good book
18:55.01Ledeunless you like banging your head against the documentation
18:56.33pfnor you are extraordinarily skilled  :)
18:58.11Ledeor that yeah
19:17.19*** join/#tomcat yassine (n=yassine@unaffiliated/yassine)
19:18.40*** join/#tomcat rightsprocket (n=mrray@c-68-35-224-69.hsd1.fl.comcast.net)
19:19.14*** part/#tomcat clajo04_ (n=clajo04_@cpe-67-243-136-111.nyc.res.rr.com)
19:23.11rightsprocketHello.  I am trying to track down information on how to manage the amount of memory tomcat / apache solr are allowed to use on my server. I have it up and running fine but am having a hard time understanding the documentation.  Is there a tutorial or some reading someone could recommend.  I am not that familiar with java based apps.   Apache Tomcat/6.0.18  JVM = Sun 1.6.0_12-b04 Cent OS 2.6.9-023stab046.2-enterprise
19:23.15*** join/#tomcat clajo04_ (n=clajo04_@cpe-67-243-136-111.nyc.res.rr.com)
19:23.15rightsprocketThank You.
19:24.17pfnthere is no way to quota precise amount of memory used
19:25.11jasonbThat's a very old CentOS.
19:25.35rightsprocketHmm sorry that was from the jvm status
19:26.15rightsprocketCentOS release 5
19:26.23jasonbThat's much better.  :)
19:26.25rightsprocket:)
19:26.31pfn2.6.9 is the kernel version, obviously  :p
19:26.33rightsprocketSorry
19:26.43rightsprocketYea that was what is should have put :)
19:26.48pfn2.6.9 is awfully old, though, for centos5
19:26.56rightsprocketIt is a virtual server
19:27.05rightsprocketI let the company manage the OS so I can focus on apps
19:27.15rightsprocketHowever I am always open too suggestions :)
19:27.36rightsprocketSOrry if this question has been asked a lot but I am not a java person but need to run tomcat / solr
19:27.57rightsprocketIs there a config that allows you to just limit how much memory it can use at one time?
19:28.00pfnno
19:28.04pfnnot a drop-dead limit
19:28.08pfnnot a physical ram limit
19:28.11rightsprocketah
19:28.27pfnyou can define a VM limit that has no real correlation to "reality"
19:29.21rightsprocketAre you referring to the JVM heap size?
19:29.32pfnbasically, yes
19:30.48rightsprocketSo if I set a heap size of 512mb ram it is basically telling the JVM to not go over that size?
19:31.06rightsprocketCan you tell I am a front end web developer :)
19:31.27pfnit's telling the JVM that its heap cannot go beyond that size
19:31.39pfnthe JVM has other ram usage besides just the heap
19:31.44pfnthread stack, native code, etc.
19:31.45rightsprocketah
19:32.01pfnso even if you set a limit of 100MB, it doesn't mean physical ram usage will only be 100MB max
19:32.11pfnbut it'll be 100MB + other overhead
19:32.39rightsprocketGenerally speaking is the overhead usually low versus the application? Or is that app dependant?
19:32.46rightsprocketdependent?
19:32.52pfnvery app dependent
19:33.23rightsprocketI read by default the heap size is 64mb is that correct?
19:35.42pfnit depends
19:35.48pfnbut a client VM is probably about that
19:36.15rightsprocketThank you for your time.  This helps to ensure I am looking in the right direction.
19:37.01*** part/#tomcat rightsprocket (n=mrray@c-68-35-224-69.hsd1.fl.comcast.net)
19:37.08*** join/#tomcat rightsprocket (n=mrray@c-68-35-224-69.hsd1.fl.comcast.net)
19:49.22*** join/#tomcat trifon (n=chatzill@79.124.70.209)
20:06.52*** join/#tomcat oxi (n=oxi@dyn.144-85-157-251.dsl.vtx.ch)
20:14.53deebocan tomcat serve jsp as source?
20:15.02deebosimiliar to apache able to do .phps
20:19.06*** part/#tomcat randrew1 (n=raj@dyn-128-59-52-242.dyn.columbia.edu)
20:29.58*** part/#tomcat vncsnvs (n=vncsnvs_@201.86.135.130.dynamic.adsl.gvt.net.br)
20:33.34pfndeebo, sure, disable jsp
20:34.02deebo:P
20:34.07deebo.phps does syntax highlighting etc
20:49.29pfnno
20:49.41pfnwhy would you ever want to serve your jsp as source anyway
20:49.49pfnif you want syntax highlighting, no, it doesn't do that either
20:54.36*** join/#tomcat dvayanu (n=another@ppp-93-104-113-185.dynamic.mnet-online.de)
21:03.22*** join/#tomcat IoNu|z (n=Ionut@adsl-99-160-57-241.dsl.bcvloh.sbcglobal.net)
21:04.10*** part/#tomcat C_Kode (n=_C_Kode@38.108.104.210)
21:04.36IoNu|zanybody know what this error is?
21:04.37IoNu|zhttp://pastebin.com/d31602471
21:28.06*** join/#tomcat Inc` (n=incendiu@pool-72-64-103-206.dllstx.fios.verizon.net)
22:05.41*** join/#tomcat dMaggot (n=david@201.227.175.3)
22:07.15dMaggotis there anything I'm missing about Tomcat5.5+Java 6? I'm using that combinatino in a Debian Lenny system and is awfuly slow
22:07.52dMaggotan hour ago I was still working with Java 5 and it was ok
22:14.15*** join/#tomcat rightsprocket (n=mrray@c-69-246-170-128.hsd1.fl.comcast.net)
22:19.25*** join/#tomcat oxi (n=oxi@dyn.144-85-157-251.dsl.vtx.ch)
22:30.13*** part/#tomcat dMaggot (n=david@201.227.175.3)
22:30.43*** join/#tomcat legistrate (i=89801b11@gateway/web/ajax/mibbit.com/x-8bc2eb1f0e862d75)
22:35.29legistrateApache Tomcat/5.0.30   Java 1.4.2  Win Server 2003
22:36.04*** part/#tomcat mirari (n=iostream@89.221.166.136)
22:36.22legistrateI am looking for a way to force the returned octet content of a page into an InputStream using the seesion information to grab the page
22:36.57legistrateI was trying to use java.net.URLConnection, but it is opening a new session that is not authenticated as the user
22:37.26legistratethe page I am trying to grab content from is the PDF return of an Apache FOP servlet
22:38.11legistrateI would like the content in an InputStream because thats how the propiety API call that wraps my database takes in BLOBs to be stored with an "object" entry
22:40.17legistratebecause the new URL("https:\\domain\mypath\pdfFile.jsp").getInputStream() is being called in a JSP file on the same server as the jsp that forwards the the FOP servlet, using the same context should solve my authentication failure result currently of Error 401
22:41.39legistrateIs there some way that I can grab the binary return of the JSP page after it calls the servlet using the current Session to store the result in an InputStream?
22:45.49legistrateAnother problem is that I use different servers for test, development, and production, but the URL() parser doesnt have a context, so it wants the protocal, and full path, I would prefer to give \Base\Project\file.jsp, rather than https:\\Domain\Base\Project\file.jsp
22:47.17legistrateBut Im guessing a solution that uses the session information might also solve that.  If it comes to it, there are other ways to find out the full path, but I would prefer to be able to keep the path relative
22:56.26legistrate:(, well I have to go(involves logging out), but hopfully I will be able to ask later, cya
23:16.27*** join/#tomcat Nicke_ (n=niclasa@ua-83-227-140-135.cust.bredbandsbolaget.se)
23:18.47*** join/#tomcat clovisw (n=Clovis@189.115.66.9)

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