| |
| |
| |
|
Page: 1 2 3 4
Comments:
<0> Hello I have just installed tomcat 5.5, I can load an HTML page (http://localhost:8080/myApp/static.html) but when i attempt to load a servlet (http://localhost:8080/myApp/servlet/FirstTomcat) I get error 404 (Requested resource unavailable) <0> any ideas what might be the problem <0> ? <0> Hello I have just installed tomcat 5.5, I can load an HTML page (http://localhost:8080/myApp/static.html) but when i attempt to load a servlet (http://localhost:8080/myApp/servlet/FirstTomcat) I get error 404 (Requested resource unavailable) <1> dude, are you just going to log in to every IRC server on the internet until someone solves your problem for you? <1> you could try the manual <0> which manual /. <0> '? <1> tomcat <0> it's useless <2> does the cl*** FirstTomcat.cl*** exist ? <0> yes <2> any messages in the tomcat consol ? <0> I am running on windows there is no console <0> I start it as a service program, not from the command prompt <2> runn it in a console and look
<0> how <2> same as any java program <0> I dont have any startup batches in the bin directory <2> me thinks you need to learn some java standard edition before J2EE <0> me thinks you should stop thinking <2> have you done an J2SE ? <2> if not you better <2> and with an attitude like that you are more likely to be kicked than helped <0> well you're giving me a silly attitde, of a typical IRC geek who is here to act smart rather than be helpful, I have been j2ee for ages, I have never used lame tomcat, I'm been using orion server and oc4j, for some reason I want to test tomcat <3> Does anyone here use jonas? <3> I'm trying to learn ejb and am wondering how to setup my beans properly <3> I'm trying to write a shopping cart from scratch. I'm using newbean to generate the beans <3> How do I roll the cart jar and the product jar together into one? <4> Hi, I've been noodling over a design issue, and I could use some feedback. (Advance disclaimer: I am not a student and this is not homework.) <4> I have an Expr object, the internal representation of an expression which might have been parsed from "a+b*c" or "(add a (mul b c))". It's a recursive structure, of course, abstract, with concrete subcl***es for AddExpr and MulExpr. <4> Instead of having a toString() method, my teammate has decided that we should have a method String Expr.render(Renderer), where Renderer is an object that controls the output format. The question is how to implement this without coupling it to the internal fields of Expr, which should remain private. <4> Her idea was that AddExpr.render(Renderer) would call Renderer.renderAdd(List<Expr>), which would return a string representation of a sum, and similarly for MulExpr / renderMul / string representation of a product. <4> This works fine for emitting prefix notation, but the abstraction doesn't work for infix notation. If done naively, then expressions corresponding to (a+b)*c and a+(b*c) would both be stringized to "a+b*c". On the other hand, if parens are blindly added to avoid that, then the first will stringize to "(a+b)*c", which is correct, but the second will stringize to "a+(b*c)", which contains redundant parens that I'd like to avoid. <4> Any thoughts? (The above is actually a simplification from the original code, which has more/different operators, but the same principles should apply.) <5> Have interfaces like BinaryExpr, UnaryExpr, NaryExpr, ValueExpr, ... Then these can provide the ability to render given a renderer (this would need to recursively descend the parsetree accumulating results in the renderer - you could have it return String but I expect that for performance you wouldn't probably want to. <4> For this simplified example, there are only two operators and both are n-ary. <4> (And something to bottom out the recursion, but that won't be relevant here.) <4> The problem with returning String isn't performance, but correctness -- the result of calling MulExpr.render(Renderer) has to encode not only a String like "b*c", but also something to keep track of whether parens will be needed later. <4> Oh -- unless I add an argument that will clue it in. Hm. <5> Well sure the ValueExpr is the leaf and it's render method is going to be trivial (not that the others are much worse)... Interestingly the expressions can call methods on the renderer to provide details like operands, operator and precedence... the renderer can then format for details like infix, postfix and bracketting. <4> Maybe Expr.render(Renderer, Cookie), where the Cookie somehow encodes info about the caller's precedence level, so that the callee will have enough information to know whether it needs to add parens or not. <4> (Cookie can probably even be an int.) <4> Let's see. The way I just described it, the Renderer can be stateless, and I'll only need one instance per output format. On the other hand, I'm constructing a lot of strings along the way, so it might be more efficient to have Renderer also do the job of a StringBuilder, and not return a String until the expression is fully formatted. <4> Wow. Nothing like explaining a problem to get the issues more clearly defined in ones own mind. :-) <5> Well the parsetree implies precedence so you might not even need to specify it if the rendering process can do it itself. <4> Right, the Expr object should not be concerned with precedence at all. <4> But if it's going to p*** a subexpression to the Renderer, then either the Renderer has to accept some sort of context cookie so that it will know what precedence level it's at, or else it'll have to retain state to remember how it got there... Hm, I seem to recall earlier coming up with an example that killed the idea of having a precedence table. <4> *Thinking* <4> If some operator (neg, say) is rendered using function notation, while another (+) is rendered using infix, then neg(a+b) and neg(a)+neg(b) are both possible outputs, and neither requires grouping parens. But if a precedence table is used, then the Renderer would probably want to add redundant parens to one of them. <5> Myself I'd have the renderer produced from a factory... the renderer collects state as it goes... therefore the expresssion need only know about the renderer interface and the renderer is free to collect any information it likes (such as depth, number of expressions, buffer type). <5> If the renderer knows about the leaf type (or a tag interface) then the renderer is able to decide when or if parentheses are needed. <4> Hm. With that idea, MulExp.render(Renderer r) might call r.beginRenderingMul(), for (f : this.factors) r.render(f), r.endRenderingMul() <4> Oops, that's not quite right <4> r.beginRenderingMul(); for (f : this.factors) f.render(r); r.endRenderingMul(); <5> r.renderExpression(e) where the renderer can ask if e is an operation or a value and for operations ask for the operator and the operands. <4> Okay, that could work too -- I'll have to check whether operator and operands are accessible and sufficient. <4> Though I think that may have been the model that my teammate vetoed earlier. <5> Still sounds like homework to me ;) Though of course it does come up at work occasionally. <6> Hey; In tomcat, how do I get my webapp to appear at http://localhost instead of http://localhost/mycontext <4> Yeah, the fact that it does come up in real-world applications is what would make it a good homework exercise. :-) <6> anyone? <7> alakazamy: only way I could think of off the top of my head is using apache as a frontend and mod_tomcat or mod_jk or whatever it's called these days <7> but that's a bastard to have to set up :( <6> no, theres another way to do it I just can't remember <7> then I guess it's back to google with you sorry. <8> sorry if this is the wrong channel to ask...but does anybody have any suggestions as to good webhosting company for servlets/.jsp + private jvm <8> thanks :) <9> krieg23: http://rimuhosting.com <8> thanks...i'll check 'em out <9> http://rimuhosting.com/javahosting.jsp <9> that's a better url <10> I just bought a computer with an athalon 64. Will my java cl***es compiled on my 32 bit athalon server run on the athalon 64? Will they utilize the 64 bit processor? <5> YEs it should run, no it is wouldn't use the 64bit features unless the JVM were running in 64bit mode... Which OS? There is a 64bit windows and there might, maybe, be a 64bit version of the JVM for it. <10> Windows
<10> although, the install is not going smoothly <10> the installer claims that the processsor type is not supported <2> jvm installer? <10> yea, installshield <10> (brb) <2> which file are you dowloading to instal? <10> AMD64 JSDK 1.5 <2> have you tried the jre alone? <10> no, i have not <10> ill try that next <2> might be a straw to clutch at <10> i just went out and bought two cheap emachines to take some of the load of my computer ( the application was designed to be distrbuted anyway) <10> and its been nothing but a hastle to get it running <10> emacines and linux dont mix too well. who would have thought. <10> awesome <10> windows xp cant run 64 bit applications without the VERY beta windows 64 bit <2> ouch <11> can a user set a directory path where chosen files would be downloaded? then the servlet would be downloading/writing the file(s) in the client's machine without the download dialog box popping out? <11> i mean is that possible? <7> andrew_e: unless the applet is signed, the program should be unable to write to a file on the filesystem anyway? <11> can't i do it without an applet? <7> oh, sorry, misread <7> no, you can't, the web browser is a client, it gets to make the decisions as to where to store (or how to deal with) files. <7> unless you have some sort of application or activex plugin or something that handles things client-side for you? <11> can't it be considered the client's choosing of where to download the files as a "decision" already? <11> oh ok <11> i just thought it could be done without an applet <7> some browsers may do so, I think firefox can be told to, not sure about IE, but it's a user decision generally iirc. <2> yes it could, but whether it does or not depends how the browser is designed and implemented, I don't know a browser that does that <11> have you guys tried download4j from javazoom.net? <2> no <7> no, sorry <11> been googling around and came to this site <11> thanks anyway <2> hi talios <12> luego luego los lambiskonez xD <13> 'llo <2> feyo as you are well aware, english works best here <12> si se gracias / i know 10x :) <14> good morning <15> Anyone know how to write an EOF to a stream? <15> Anyone know how to write an EOF to a stream? <16> hi there! <16> does anyone know how to get the hard disk or processor serial using java???thnx <17> You proably have to use JNI. <18> hello, looking for tips on how to create an axis webservice that streams xml inside the soap body, instead of it having to wait for the complete message to be made before sending it in one big go. <16> hmm..how ? :P <19> kosder: find a library or write your own C code which does what you need, write JNI wrapper code or use glue code generator, use it :) <19> kosder: see SWIG <17> kosder: google for JNI and read. <16> ok, thnx! <20> hi all, my question is: Is it possible to write a java program that will monitor the CPU usage of another standalone win32 application on windows? <17> Enchanter: yes, read up on JNI. <19> hm, looks like they come in batches with these questions? :P <17> Yes, so it seems. <21> bah.. who implements a string utilities cl*** without implementing a proper trim method.. <16> another thing...is it possible to get the e.g. hard disk serial using the Runtime.exec() without using JNI? <19> kosder: sure if you know of a standalone app which prints that on stdout <16> i c...but, doesnt commandline support a command to give this result (the serial), it would help i think <19> kosder: depends on what apps you have installed on your system <16> i understand <16> one last thing...wich libraries will i need for c/c++ to get these info and wich method should i use to reatrieve it?thnx again! <18> To create a webservice with good performance in axis, it will be used to have rather large payloads, what type of service offers the best performance? RPC or MESSAGE? Need something that can "flush" the payload as it is created, so the service doesnt wait with sending the response before the full payload is created (in memory). <22> I'm trying to make an Ohm's Law calculator right now. I've created the variables and I'm sure I can set the formulas no problem, but how do you make it accept some input for the variable value? <23> morning <24> i installed jdk-1_5_0_06-windows-i586-p , how can i compile .java files ? <23> javac <23> or by reading the tutorial <24> i used javac in Command promt but it doesnt compile my java <24> 'javac' is not recognized as an internal or external command ..... .... <23> then it's not in your path <23> fix that <24> some help please. im kinda lost
Return to
#java or Go to some related
logs:
recursif chmod for folder #linux #linuxhelp #chatzone #java #linuxhelp #AllNiteCafe kingsmen19
#teens cut off her ponytail
|
|