QueryCAT Logo
Search 5,000,000+ questions and answers.

Frequently Asked Questions

top]Why should I use log4j when JDK 1.4 already ships with a logging API?

Apache log4j 1.2 - Frequently Asked Technical Questions
Although both APIs are conceptually similar, the log4j API is significantly more flexible and offers many more features, too numerous to be listed here. You will discover that the additional features and flexibility turn out to be indispensable in the context of a mission-critical application. The open and collaborative way in which log4j is developped ensures that it continues to preserve and even widen its competitive edge.

I am using Linux Fedora 1 and Sun JDK 1.5.0. Can I use 1.5 or do I need to use 1.4?

FAQs - Cocoon Wiki
To answer my own question... I uninstalled 1.5 and installed 1.4. Compiled and works fine. I suspect this is actually a problem with Ant. Is it possible to extend for example the form object in Flow? So that we have our own implementation of it? If so, are there examples. ps why was Flow written in javascript, and not java? Probably a stupid one:). Do you serialize it to JPG or PNG? Otherwise this error can not occur. But if, it's of course no longer SVG.

How do I compile generics for use with JDK <= 1.4?

Java Generics FAQs - Under The Hood Of The Compiler
Retroweaver is a Java bytecode weaver that enables you to take advantage of the new 1.5 language features in your source code, while still retaining compability with 1.4 virtual machines. Retroweaver rewrites class files so that they are compatible with older virtual machines. Check out http://sourceforge.net/projects/retroweaver .

How do I use Jakarta Commons Logging and Simple Logging Facade for Java API?

x4juli - Extensions for the java.util.logging implementation
This is an x4juli FAQ. Please have a look at the project pages for their documentation regarding usage in user code.

Can I use Log::Log4perl with log4j's Chainsaw?

Log::Log4perl::FAQ - Frequently Asked Questions on Log::Log4...
Get Guido Carls' <gcarls@cpan.org> Log::Log4perl extension Log::Log4perl::Layout::XMLLayout from CPAN and install it: perl -MCPAN -eshell cpan> install Log::Log4perl::Layout::XMLLayout Install and start Chainsaw, which is part of the log4j distribution now (see http://jakarta.apache.org/log4j ). Create a configuration file like <log4j:configuration debug="true"> <plugin name="XMLSocketReceiver" class="org.apache.log4j.net.

How do I override the JAXP implementation in JDK 1.4 and above?

Unofficial JAXP FAQ
In JDK 1.4, there is an Endorsed Standards Override Mechanism which can be used to override the classes in the JDK itself. One way to replace the classes in the JDK with the classes contained in a set of jar files is to place the jar files in some directory, "my-endorsed", and define a system property. For example, to use a newer version of Xalan, place the newer version of xalan.jar in the "my-endorsed" directory and invoke the Java launcher with the -Djava.endorsed.dirs= my-endorsed option.

How do you remove log4j for logging?

Frequently Asked Questions (List likely to grow with time)
Because log4j is configured by default to log to a file, you may want to remove it from the implementaton. Doing this is quite simple - modify gov.nist.core.LogWriter.java. You can change its behavior to log to a network connection or remove it entirely and convert to println. The Listener may have blocked while processing a transaction. Do not block in your listener method. If you need to block, start a thread and block in it dont block in the thread that you were called in the listener.

Can I use J2EE 1.4 products to run this benchmark?

SPECjAppServer2004 Frequently Asked Questions
Yes. Any product conforming to the J2EE 1.3 or later specifications can be used to run this benchmark. CTS certification ensures that the application server being tested is a J2EE technology-based application server and not a benchmark-special application server that is crafted specifically for SPECjAppServer2004. The CTS certification is validated by Sun Microsystems, Inc.

How can I use the Fotolia API?

Fotolia.com - FAQ: Frequently Asked Questions
The Fotolia API is a tool that allows a website to make requests to the Fotolia database and receive results with images. Thus, your website visitors can search images on your website without leaving it, and they will become your affiliates if they register on Fotolia. In addition the Fotolia API can be used to integrate our services in your product (search and purchase functions) or to build applications using Fotolia (plugin, add-on software, web service, widget etc).

Why do Swing GUI applications (including JDebugTool) hang in JDK 1.4?

JDebugTool - Graphical Java Debugger
Java Swing GUI applications (including JDebugTool) can hang in JDK 1.4. The work around is to add the following argument to java -Dsun.java2d.noddraw=true

Is there a sample that illustrates Non-Blocking Socket I/O in JDK 1.4?

jGuru: JNI FAQ Home Page
A sample server that illustrates Non-Blocking Socket I/O can be found at http://www.owlmountain.com/tutorials/NonBlockingIo.htm.

How can I let MINA log messages using my favorite logging framework (i.e. Log4J)?

Apache MINA - FAQ
We recommend to switch the default buffer type to 'heap' by inserting the following code before you start a server: If you prefer direct buffers to heap buffers, JVM might have ran out of direct memory. Please try increasing maximum direct memory size using -XX:MaxDirectMemorySize option (e.g. -XX:MaxDirectMemorySize=128M) Please make sure if you called ByteBuffer.flip() to flip the buffer before writing the buffer out. It is a common mistake NIO beginners make.

Which JDK should I use?

Frequently Asked Questions
We recommend Sun's SDK for Java 1.4 or 1.3. Xindice will not work with the SDK 1.2 or earlier. When using 1.3, be aware that there are known issues with Sun's SDK for Java 1.3.1 on several Linux distributions, but 1.3.0 or 1.4.2 should work without any problems.

What are ships?

F.A.Q.: Frequently Asked Questions
Ships" are short for "relationships." This is commonly a fanfic term, but if you support a particular pairing of characters between Harry Potter characters Several of you have accused me of "selling out" and all this other junk. I can tell you that it's downright hurtful, but I understand your own pain. I don't like that I have to put ads up, but there is a reason I must. I cannot afford to run the site on my own accord - and my parent's.

Q 1.4: Can I use Ethereal as part of my commercial product?

Ethereal: Frequently Asked Questions
As noted, Ethereal is licensed under the GNU General Public License. The GPL imposes conditions on your use of GPL'ed code in your own products; you cannot, for example, make a "derived work" from Ethereal, by making modifications to it, and then sell the resulting derived work and not allow recipients to give away the resulting work.

How do I use the API?

OpenChecklist - FAQ
To use the OpenChecklist API, you must be a registered user of OpenChecklist and also apply for an API key that must be submitted with all requests.

Are there API's I can use?

Process Plus - Frequently Asked Questions
There are many API's and integration options to allow for customized integration and enterprise software needs. Guides are available for download and review.

What JDK does the JavaMail API need?

JavaMail API - FAQ
The JavaMail API requires JDK/JRE 1.4 or higher. The JavaMail API is a Java optional package, it is not part of the core Java SE but is included in Java EE.

What JDK release does the JMS API need?

Java Message Service API - FAQ
The JMS API can be used, in general, as a notification service; however, it does not define a distributed version of Java Events. One alternative for implementing distributed Java Events would be as JavaBeans components that transparently, to the event producer and listener beans, distribute the events via the JMS API. Even though there are many similarities, providing separate domains still seems to be important.

How do I configure a project to use a specific version of a JDK?

FAQs-1 - Maven User - Codehaus
lt;plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <verbose>true</verbose> <fork>true</fork> <executable><!-- path-to-javac --></executable> <compilerVersion>1.3</compilerVersion> </configuration> </plugin>
More Questions >>

© Copyright 2007-2012 QueryCAT
About • Webmasters • Contact