Java Tools Section Index | Page 4
Unless you need the "status" functionality (that can be added, anyway), you can use 'catalina.sh' (for Tomcat 4.x) or 'tomcat.sh' (tomcat 3.x) directly for that. ln -s /usr/local/tomcat...more
You can change the shell script specifying those params: java -Xms64m -Xmx512m where -Xms<size> specifies the initial Java heap size and -Xmx<size> the maximum Java heap size.more
How to read a file from the WAR or webapp? If I have a configuration file, say an XML file, stored inside the WAR, how do I open it from a servlet?
How to read a file from the WAR or webapp? If I have a configuration file, say an XML file, stored inside the WAR, how do I open it from a servlet? I.e., InputStream in = new FileInputStream(????); more
Check out Jeff Schnitzer's JUnitEE package and the Wiki EJB Unit Testing page.
Open server.xml in %TOMCAT_HOME%conf directory and edit the <Connector> element. For SimpleTcpConnector, change the sub-element "port" value to 80. Yes, You got it! more
I am using ResultSetMetaData.getColumnLabel() to create headers for a table. I have specified column labels on the table ( DB2 on an AS/400, ) which show up when I run an SQL statement directly over the table, but the method returns the same data as getColumnName(). Any ideas, help or explanation?
Many drivers implement this method identically to getColumnName(), apparently because it is a "suggested" title, but always be sure you have the latest versions. For the AS/400 drivers ...more
Complicated input languages often have a few lexical constructs that are really nested lexical structures such as Java's javadoc comments, regular comments, or even just strings. In other words, ...more
To: firstname.lastname@example.org Subject: Re: P: session tracking * encodeURL From: Jason Rumney <email@example.com> Date: 18 May 2000 14:38:58 +0100 Johannes_Lorenz@mn.man.de writes: ...more
Check out logging packages like log4j and unit testing frameworks like JUnit. Check out static analysis tools such as Metamata's Audit and Metrics products. For dyanmic analysis and manipulati...more
Look at the Tomcat IIS How to file located at the address : http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/tomcat-iis-howto.html (or http://jakarta.apache.org/cvsweb/index.cgi/jakarta-t...more
While I am still making changes to a servlet code, how can I make a servlet reload every time I test it?
It depends on the web server you are using to test your servlet. For instance, with Tomcat, you would replace the WAR file and the server notices the change and loads the new servlet on the next r...more
All I know is that I need to build a parser or translator. Give me an overview of what ANTLR does and how I need to approach building things with ANTLR.
[See also Getting started ] To build a language recognizer, you specify the structure of that langage with a grammar and then have ANTLR generate a Java or C++ class definitio...more
Lucene can index anything that can be represented as a String. One can extract text out of PDF files and feed that to Lucene. See Lucene's Contributions Page for some PDF parsers. more
[ I am using tomcat 3.2.1 and cocoon 1.8.2. and I am using JSP's for dynamic generation of XML. How can i give this XML output to cocoon to apply XSLT (based on the requested client) and to give t...more