comp.lang.java.programmer http://groups-beta.google.com/group/comp.lang.java.programmer [EMAIL PROTECTED]
Today's topics: * Please helpppppp me on base64 Codec - jakarta - 6 messages, 2 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/f5a122782d774c0a * getLocalHost Question - 2 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/e4c429df340243d0 * How Web Service get container context??? - 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/35212768039a49a6 * JTree-object - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/63aa95fb10c9d312 * Encode url with JSDK 1.3 - 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/c90968ed885b60c9 * Java was created in SODOM and GOMORRAH !!!! - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/241d795807847c94 * How do I start up JBoss using ant? - 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/e20ea52fd1c63536 * Good JSP 2.0 Book? - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/23bfc11924c6feb3 * dotbox cursor - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/d5339f7085cfa2d0 * subscribing to JMS queue on a different server ?[SOLVED] - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/c92139ead135c5f0 * Which Compiler? - 3 messages, 2 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/eaff02cdae418719 * VM Error - heap memory problem - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/363218dc7986a594 * double '*' - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/737e08f82f0a0f79 * jsp script timeout - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/23c40ebe6db1aef3 ============================================================================== TOPIC: Please helpppppp me on base64 Codec - jakarta http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/f5a122782d774c0a ============================================================================== == 1 of 6 == Date: Tues, Dec 21 2004 12:05 pm From: "Robert kebernet Cooper" jsp beginner wrote: > Hi guys > > I am a beginner on JSP. I have a script to decode a string but it > generates an error. > > This is what I did. > > 1. Download "commons-codec-1.3" from the Jakara web site. - > http://jakarta.apache.org/commons/codec/ > > 2. And put it onto this directory - C:\Tomcat4\commons-codec-1.3 > 3. Set up the jar file in classpath like - > C:\Tomcat4\commons-codec-1.3\commons-codec-1.3.jar; You should really just drop the jar file in the WEB-INF/lib directory for your application. > 4. Rebooth my machine. You never have to do that with Java stuff :P > 5. Run my jsp script below. > 6. Apache error. > * My tomcat set up is working fine. All my jsp files work fine but I > guess I am doing wrong with this following script and the set-up with > the CODEC. > > Please help me what I am doing wrong. Do I add "import" in the first > tag next contentType property? If so, what should it be? > > <%@ page contentType="text/html;" import="what?" %> Look at the docs for the Base64 encoder. Its probably something like org.apache.commons.codec.Base64, assuming the rest of your code is correct == 2 of 6 == Date: Tues, Dec 21 2004 2:10 pm From: "humm" Thank you so much for your help. Here are the structures of my tomcat directories. C:\Tomcat4\webapps\examples\WEB-INF C:\Tomcat4\webapps\examples\jsp C:\Tomcat4\webapps\examples\jsp\test C:\Tomcat4\webapps\examples\WEB-INF\classes C:\Tomcat4\webapps\examples\WEB-INF\jsp C:\Tomcat4\webapps\ROOT\WEB-INF C:\Tomcat4\webapps\ROOT\WEB-INF\web.xml I have a lot of jsp files in C:\Tomcat4\webapps\examples\jsp\test They all work fine so I would like to add the base64.jsp into the folder. Please let me know which WEB-INF/lib I should put in the jar file and is there any other things I need to configure to make it work? maybe modifying web.xml file or something? And, you didn't mention about <%@ page contentType="text/html;" import="what?" %>. I guess I don't need to change any code in my script then, rigth? Please please help! == 3 of 6 == Date: Tues, Dec 21 2004 2:38 pm From: "Robert kebernet Cooper" Ok. You need to think about things in terms of "Context". Generally each "top directory" in your server is a context, though the "ROOT" context is a special case-- many times its better to just pretend it doesn't exist. Since you are putting stuff in eamples/jsp/ that means you are in the "examples" context and want to put your files in the examples/WEB-INF directory. In the world of J2EE, each context exists as a separate application, with its own Session information, "Application/Context" information, and classpath. Any jar files you put in a webapp's WEB-INF/lib file will automagically appear in the classpath for anything you run from there (jsp/servlet/etc), and the WEB-INF/classes contains class files (with proper directory pathing) to be put in the class path. == 4 of 6 == Date: Tues, Dec 21 2004 2:54 pm From: "humm" Thank you so much for your help. Here are the structures of my tomcat directories. C:\Tomcat4\webapps\examples\WEB-INF C:\Tomcat4\webapps\examples\jsp C:\Tomcat4\webapps\examples\jsp\test C:\Tomcat4\webapps\examples\WEB-INF\classes C:\Tomcat4\webapps\examples\WEB-INF\jsp C:\Tomcat4\webapps\ROOT\WEB-INF C:\Tomcat4\webapps\ROOT\WEB-INF\web.xml I have a lot of jsp files in C:\Tomcat4\webapps\examples\jsp\test They all work fine so I would like to add the base64.jsp into the folder. Please let me know which WEB-INF/lib I should put in the jar file and is there any other things I need to configure to make it work? maybe modifying web.xml file or something? And, you didn't mention about <%@ page contentType="text/html;" import="what?" %>. I guess I don't need to change any code in my script then, rigth? Please please help! Robert kebernet Cooper wrote: > jsp beginner wrote: > > Hi guys > > > > I am a beginner on JSP. I have a script to decode a string but it > > generates an error. > > > > This is what I did. > > > > 1. Download "commons-codec-1.3" from the Jakara web site. - > > http://jakarta.apache.org/commons/codec/ > > > > 2. And put it onto this directory - C:\Tomcat4\commons-codec-1.3 > > 3. Set up the jar file in classpath like - > > C:\Tomcat4\commons-codec-1.3\commons-codec-1.3.jar; > > You should really just drop the jar file in the WEB-INF/lib directory > for your application. > > > 4. Rebooth my machine. > > You never have to do that with Java stuff :P > > > 5. Run my jsp script below. > > 6. Apache error. > > * My tomcat set up is working fine. All my jsp files work fine but I > > guess I am doing wrong with this following script and the set-up with > > the CODEC. > > > > Please help me what I am doing wrong. Do I add "import" in the first > > tag next contentType property? If so, what should it be? > > > > <%@ page contentType="text/html;" import="what?" %> > > Look at the docs for the Base64 encoder. Its probably something like > org.apache.commons.codec.Base64, assuming the rest of your code is > correct == 5 of 6 == Date: Tues, Dec 21 2004 3:05 pm From: "humm" Thank you so much for your help. Here are the structures of my tomcat directories. C:\Tomcat4\webapps\examples\WEB-INF C:\Tomcat4\webapps\examples\jsp C:\Tomcat4\webapps\examples\jsp\test C:\Tomcat4\webapps\examples\WEB-INF\classes C:\Tomcat4\webapps\examples\WEB-INF\jsp C:\Tomcat4\webapps\ROOT\WEB-INF C:\Tomcat4\webapps\ROOT\WEB-INF\web.xml I have a lot of jsp files in C:\Tomcat4\webapps\examples\jsp\test They all work fine so I would like to add the base64.jsp into the folder. Please let me know which WEB-INF/lib I should put in the jar file and is there any other things I need to configure to make it work? maybe modifying web.xml file or something? And, you didn't mention about <%@ page contentType="text/html;" import="what?" %>. I guess I don't need to change any code in my script then, rigth? Please please help! Robert kebernet Cooper wrote: > jsp beginner wrote: > > Hi guys > > > > I am a beginner on JSP. I have a script to decode a string but it > > generates an error. > > > > This is what I did. > > > > 1. Download "commons-codec-1.3" from the Jakara web site. - > > http://jakarta.apache.org/commons/codec/ > > > > 2. And put it onto this directory - C:\Tomcat4\commons-codec-1.3 > > 3. Set up the jar file in classpath like - > > C:\Tomcat4\commons-codec-1.3\commons-codec-1.3.jar; > > You should really just drop the jar file in the WEB-INF/lib directory > for your application. > > > 4. Rebooth my machine. > > You never have to do that with Java stuff :P > > > 5. Run my jsp script below. > > 6. Apache error. > > * My tomcat set up is working fine. All my jsp files work fine but I > > guess I am doing wrong with this following script and the set-up with > > the CODEC. > > > > Please help me what I am doing wrong. Do I add "import" in the first > > tag next contentType property? If so, what should it be? > > > > <%@ page contentType="text/html;" import="what?" %> > > Look at the docs for the Base64 encoder. Its probably something like > org.apache.commons.codec.Base64, assuming the rest of your code is > correct == 6 of 6 == Date: Tues, Dec 21 2004 3:06 pm From: "humm" Thank you so much for your help. Here are the structures of my tomcat directories. C:\Tomcat4\webapps\examples\WEB-INF C:\Tomcat4\webapps\examples\jsp C:\Tomcat4\webapps\examples\jsp\test C:\Tomcat4\webapps\examples\WEB-INF\classes C:\Tomcat4\webapps\examples\WEB-INF\jsp C:\Tomcat4\webapps\ROOT\WEB-INF C:\Tomcat4\webapps\ROOT\WEB-INF\web.xml I have a lot of jsp files in C:\Tomcat4\webapps\examples\jsp\test They all work fine so I would like to add the base64.jsp into the folder. Please let me know which WEB-INF/lib I should put in the jar file and is there any other things I need to configure to make it work? maybe modifying web.xml file or something? And, you didn't mention about <%@ page contentType="text/html;" import="what?" %>. I guess I don't need to change any code in my script then, rigth? Please please help! Robert kebernet Cooper wrote: > jsp beginner wrote: > > Hi guys > > > > I am a beginner on JSP. I have a script to decode a string but it > > generates an error. > > > > This is what I did. > > > > 1. Download "commons-codec-1.3" from the Jakara web site. - > > http://jakarta.apache.org/commons/codec/ > > > > 2. And put it onto this directory - C:\Tomcat4\commons-codec-1.3 > > 3. Set up the jar file in classpath like - > > C:\Tomcat4\commons-codec-1.3\commons-codec-1.3.jar; > > You should really just drop the jar file in the WEB-INF/lib directory > for your application. > > > 4. Rebooth my machine. > > You never have to do that with Java stuff :P > > > 5. Run my jsp script below. > > 6. Apache error. > > * My tomcat set up is working fine. All my jsp files work fine but I > > guess I am doing wrong with this following script and the set-up with > > the CODEC. > > > > Please help me what I am doing wrong. Do I add "import" in the first > > tag next contentType property? If so, what should it be? > > > > <%@ page contentType="text/html;" import="what?" %> > > Look at the docs for the Base64 encoder. Its probably something like > org.apache.commons.codec.Base64, assuming the rest of your code is > correct ============================================================================== TOPIC: getLocalHost Question http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/e4c429df340243d0 ============================================================================== == 1 of 2 == Date: Tues, Dec 21 2004 12:18 pm From: "Yamin" :) You're just run into the common problem I mentioned with direct file transfers. Take any multiplayer game, IM client...they all have the same problem you've just talked about. A lot of the time, their solution is simply...you can't do it. The other alternative is to use upnp. I think most modern routers/OS support it. I don't know too much about it. You might want to look around for java libraries for it... In general though, on the 'server' computer they would have to configure the router to forward the port to their local PC. They'd create an entry something like this: Send all packets coming in to the router on port Y to 192.168.1.1 port Z. You would have to publish port Y somewhere (probably make it user configurable). The thing here is that if they can setup port forwarding...chances are they can get their ip address. However, it might be nice even for the 'expert' to automically have his external ip address show up, so he can easily tell his friends about it. One way to do this off the top of my head is to visit a website that will show it. Check out http://www.whatismyip.com. You could perhaps just link that html page in your application, or if you're really really really cool, get that webpage, parse it, and extract the ip address. At the end, this expert would still need to publish his ip/port to his friends by phone, msn, e-mail, webpage... Yamin == 2 of 2 == Date: Tues, Dec 21 2004 12:25 pm From: "Yamin" :) You're just run into the common problem I mentioned with direct file transfers. Take any multiplayer game, IM client...they all have the same problem you've just talked about. A lot of the time, their solution is simply...you can't do it. The other alternative is to use upnp. I think most modern routers/OS support it. I don't know too much about it. You might want to look around for java libraries for it... In general though, on the 'server' computer they would have to configure the router to forward the port to their local PC. They'd create an entry something like this: Send all packets coming in to the router on port Y to 192.168.1.1 port Z. You would have to publish port Y somewhere (probably make it user configurable). The thing here is that if they can setup port forwarding...chances are they can get their ip address. However, it might be nice even for the 'expert' to automically have his external ip address show up, so he can easily tell his friends about it. One way to do this off the top of my head is to visit a website that will show it. Check out http://www.whatismyip.com. You could perhaps just link that html page in your application, or if you're really really really cool, get that webpage, parse it, and extract the ip address. At the end, this expert would still need to publish his ip/port to his friends by phone, msn, e-mail, webpage... Yamin ============================================================================== TOPIC: How Web Service get container context??? http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/35212768039a49a6 ============================================================================== == 1 of 2 == Date: Tues, Dec 21 2004 12:38 pm From: [EMAIL PROTECTED] (TDOR) I have a webservice that need to read files relative to the root of the webapp that it is deployed in. Looking into apache axis and oracle web services frameworks I just cant find any method to get the container/ or servlet context to read its path. How can it be done? == 2 of 2 == Date: Tues, Dec 21 2004 4:46 pm From: Sudsy TDOR wrote: > I have a webservice that need to read files relative to the root of > the webapp that it is deployed in. Looking into apache axis and oracle > web services frameworks I just cant find any method to get the > container/ or servlet context to read its path. How can it be done? ServletContext#getRealPath( String path ) ============================================================================== TOPIC: JTree-object http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/63aa95fb10c9d312 ============================================================================== == 1 of 1 == Date: Tues, Dec 21 2004 10:45 pm From: "codemaster" How can I get a view of "My computer", "C:", "D:" and so on to JTree? Like in Windows explorer? ============================================================================== TOPIC: Encode url with JSDK 1.3 http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/c90968ed885b60c9 ============================================================================== == 1 of 2 == Date: Tues, Dec 21 2004 9:51 pm From: "Jacob Welsh" I have an url as a String that I want to encode before I use it for my call to a webserver . The problem is that I'm bound to use JSDK 1.3.1 so the URLEncoder.encode(String) only provides one type of encoding (UTF-8 ?). Are there any other solutions to encode the url to different encodings? == 2 of 2 == Date: Tues, Dec 21 2004 1:41 pm From: "Jon Caldwell" In JDK 1.4, they introduced a encode(String,String) method which accepts an character encoding name as the second parameter. ============================================================================== TOPIC: Java was created in SODOM and GOMORRAH !!!! http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/241d795807847c94 ============================================================================== == 1 of 1 == Date: Tues, Dec 21 2004 9:57 pm From: "Boudewijn Dijkstra" "Bruno Beam" <[EMAIL PROTECTED]> schreef in bericht news:[EMAIL PROTECTED] > JAVA was written by SATAN in SODOM with help of the ANTICHRIST > in GOMORRAH !!! In that case I think you've got yourself a fake antichrist, because the real one has been with me all the time and there was no writing of Java involved. > DEMONS added a lot of BLASPHEMY and HERETICS and WITCHES tons of pure > SIN !!!! You are so right. We should write Sun that it is totally unacceptable to have a method java.christ.Jesus#isACunt() that could return true. > That makes JAVA extremly EVIL and UNHOLY !!!! That is exactly why I don't use it: because it isn't holy. It feels so much better to eat holy food and sleep in a holy bed and program in a holy language. > If you want to use JAVA, you need HOLY WATER, a BIBLE and a > CRUCIFIX and only experienced EXORCISTS can master JAVA !!!! How about a keyboard? ============================================================================== TOPIC: How do I start up JBoss using ant? http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/e20ea52fd1c63536 ============================================================================== == 1 of 2 == Date: Tues, Dec 21 2004 4:35 pm From: Sudsy [EMAIL PROTECTED] wrote: > <exec command="run.bat" dir="${jboss.root.dir}\bin\" spawn="true" /> > > here's the error: > BUILD FAILED: > C:\eclipse3.0.1\eclipse\IsrsQueryWebServiceWorkSpace\IsrsQueryWebService\build.xml:88: > Execute failed: java.io.IOException: CreateProcess: run.bat error=2 You need to feed it an executable, not a batch file. Batch files cannot be invoked directly; you need some kind of command processor. On *UNIX systems it would be something like /bin/sh. It goes under various guises on M$ systems. == 2 of 2 == Date: Tues, Dec 21 2004 10:47 pm From: "Michiel Konstapel" On Tue, 21 Dec 2004 16:35:34 -0500, Sudsy <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: >> <exec command="run.bat" dir="${jboss.root.dir}\bin\" spawn="true" /> >> here's the error: >> BUILD FAILED: >> C:\eclipse3.0.1\eclipse\IsrsQueryWebServiceWorkSpace\IsrsQueryWebService\build.xml:88: >> Execute failed: java.io.IOException: CreateProcess: run.bat error=2 > > You need to feed it an executable, not a batch file. Batch files cannot > be invoked directly; you need some kind of command processor. On *UNIX > systems it would be something like /bin/sh. It goes under various > guises on M$ systems. In the case of NT/2000/XP it's cmd.exe, for 9x/Me it's command.com. Michiel ============================================================================== TOPIC: Good JSP 2.0 Book? http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/23bfc11924c6feb3 ============================================================================== == 1 of 1 == Date: Tues, Dec 21 2004 4:44 pm From: Sudsy [EMAIL PROTECTED] wrote: > Can anyone recommend a good book? Looking for a book which assumes that > the reader has a web development background - don't need a tutorial on > how/why pages need to be generated dynamically. Need a "how to build > web apps using JSP" type of book.. I highly recommend "Advanced JavaServer Pages" by David M. Geary, ISBN 0-13-030704-1. It dives right into custom tags and covers all the bases (i18n, templates, security, etc.) with aplomb. ============================================================================== TOPIC: dotbox cursor http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/d5339f7085cfa2d0 ============================================================================== == 1 of 1 == Date: Tues, Dec 21 2004 9:53 pm From: ivan danicic Hello All, I'd like to use this cursor, so would appreciate seeing an example, perhaps a fragment of a java program. I believe this cursor can be got via gnu.x11.Cursor, whatever that is! Thanks in advance, Ivan ============================================================================== TOPIC: subscribing to JMS queue on a different server ?[SOLVED] http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/c92139ead135c5f0 ============================================================================== == 1 of 1 == Date: Tues, Dec 21 2004 11:09 pm From: gabriel Robert kebernet Cooper wrote: > I have never worked with JBoss, but you can use the JNDI stuff in your > web.xml file thusly: > > <jndi-link> > <jndi-name>java:comp/env/jms-local</jndi-name> > > <jndi-factory>com.swiftmq.jndi.InitialContextFactoryImpl</jndi-factory> > <init-param > java.naming.provider.url="smqp://localhost:4001/timeout=10000"/> > </jndi-link> > <jndi-link> > <jndi-name>java:comp/env/jms-remote</jndi-name> > > <jndi-factory>com.swiftmq.jndi.InitialContextFactoryImpl</jndi-factory> > <init-param > java.naming.provider.url="smqp://other-server.mydomain.tld:4001/timeout=10000"/> > </jndi-link> > > then do a (new InitialContext()).lookup( "java:comp/env/jms-remote"); > out of the servlet. > I am sure JBoss has some similar factory and provider URL format. > ok that's it : I declare my jndi call in my tomcat app with a reference to jboss server. Thank you very much for your quick answer :) ============================================================================== TOPIC: Which Compiler? http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/eaff02cdae418719 ============================================================================== == 1 of 3 == Date: Tues, Dec 21 2004 2:45 pm From: "smitsky" Hi. Is there another good free compiler (besides the JDK) that is recommended? I would like to hear from those who have used it if there is. Thanks, Steve == 2 of 3 == Date: Tues, Dec 21 2004 2:54 pm From: "smitsky" Hi. Is there another good free compiler (besides the JDK) that is recommended? I would like to hear from those who have used it if there is. Thanks, Steve == 3 of 3 == Date: Tues, Dec 21 2004 2:55 pm From: Karthik Kumar smitsky wrote: > Hi. Is there another good free compiler (besides the JDK) that is > recommended? I would like to hear from those who have used it if there > is. Thanks, Steve > jikes from IBM research labs. ============================================================================== TOPIC: VM Error - heap memory problem http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/363218dc7986a594 ============================================================================== == 1 of 1 == Date: Tues, Dec 21 2004 11:57 pm From: "Jeff" "Surendra Singhi" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > I am using Java on a windows xp machine. Recently while writing a program > which takes large amount of memory I ran into this runtime error. And it > is giving me nightmares, as I have a very important deadline to meet. > The program takes large amount of memory so I tried increasing the heap > size and set the following options for the vm > -verbosegc -ms128m -mx128m > Also, at one or two places I am explicitly calling gc, to help free up > some memory. The time the program will take to execute is not a concern as > long as it runs smoothly. > > Attached is a part of the trace of the gc run and the run time error. > > How to fix this bug? And is it memory allocation which is causing it? > > Any help on this will be heartily appreciated. > Thanks in advance. > > -- > Surendra Singhi > > www.public.asu.edu/~sksinghi/ > > > [GC 14246K->6146K(130112K), 0.0047735 secs] > [GC 14273K->6473K(130112K), 0.0017715 secs] > [Full GC 9045K->6183K(130112K), 0.0460307 secs] > [GC 14310K->6221K(130112K), 0.0022045 secs] > [GC 14349K->6206K(130112K), 0.0014379 secs] > [GC 14333K->6222K(130112K), 0.0006643 secs] > [GC 14350K->6206K(130112K), 0.0005355 secs] > [GC 14334K->6209K(130112K), 0.0005559 secs] > [GC 14337K->6212K(130112K), 0.0006160 secs] > [GC 14339K->6215K(130112K), 0.0019924 secs] > [GC 14343K->6218K(130112K), 0.0006233 secs] > [GC 14346K->6232K(130112K), 0.0021648 secs] > [GC 14360K->6229K(130112K), 0.0007012 secs] > [Full GC 6988K->6229K(130112K), 0.0446780 secs] > # > # HotSpot Virtual Machine Error, Internal Error > # Please report this error at > # http://java.sun.com/cgi-bin/bugreport.cgi > # > # Java VM: Java HotSpot(TM) Client VM (1.4.2_06-b03 mixed mode) > # > # Error ID: 43113F2652414D452D41503F491418160E435050005C > # > # Problematic Thread: prio=5 tid=0x0035f020 nid=0x358 runnable > # > > Heap at VM Abort: > Heap > def new generation total 9088K, used 2794K [0x10010000, 0x109e0000, > 0x109e0000) > eden space 8128K, 34% used [0x10010000, 0x102cab28, 0x10800000) > from space 960K, 0% used [0x10800000, 0x10800000, 0x108f0000) > to space 960K, 0% used [0x108f0000, 0x108f0000, 0x109e0000) > tenured generation total 121024K, used 6229K [0x109e0000, 0x18010000, > 0x18010000) > the space 121024K, 5% used [0x109e0000, 0x10ff5628, 0x10ff5800, > 0x18010000) > compacting perm gen total 4096K, used 2159K [0x18010000, 0x18410000, > 0x1c010000) > the space 4096K, 52% used [0x18010000, 0x1822bcc8, 0x1822be00, > 0x18410000) > > Setting Xmx can limit the size of the heap which you don't want to do. I set Xms240m and don't set Xmx. The heap starts big and can grow. Profiling to find the memory leaks is the sustainable solution. ============================================================================== TOPIC: double '*' http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/737e08f82f0a0f79 ============================================================================== == 1 of 1 == Date: Wed, Dec 22 2004 1:24 am From: Alain Laroche Joona I Palaste wrote: > It's a special trick. "**" isn't parsed as two '*', it's a special token > on its own right, meaning "every subdirectory inside this directory, no > matter how deep in the directory tree". > Thanks Joona. ============================================================================== TOPIC: jsp script timeout http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/23c40ebe6db1aef3 ============================================================================== == 1 of 1 == Date: Tues, Dec 21 2004 5:03 pm From: [EMAIL PROTECTED] I am using common file upload in the web application, after deploy to the server, and when I upload a huge 20MB file, it displays "The page cannot be displayed." But if I run in local machine, it is perfect. I suspect this maybe the browser timeout. Can I have a timeout setting in JSP file? What is the jsp script timeout settings? Please advise. thanks!! ============================================================================== You received this message because you are subscribed to the Google Groups "comp.lang.java.programmer" group. To post to this group, send email to [EMAIL PROTECTED] or visit http://groups-beta.google.com/group/comp.lang.java.programmer To unsubscribe from this group, send email to [EMAIL PROTECTED] To change the way you get mail from this group, visit: http://groups-beta.google.com/group/comp.lang.java.programmer/subscribe To report abuse, send email explaining the problem to [EMAIL PROTECTED] ============================================================================== Google Groups: http://groups-beta.google.com
