WARN [org.jboss.seam.Component] Cannot create Seam component, scope is not active: entityManager(CONVERSATION)
a class has some dependency on another class; however, the latter class has incompatibly changed after the compilation of the former class.
Originally posted by Roger Chung-Wee:
Some common faults ...
1. The classpath is wrong despite what the programmer thinks.
2. The class or package name is wrong (could be incorrect case).
Originally posted by Roger Chung-Wee:
Some common faults ...
3. The class references another class that can't be found.
Originally posted by Ken Blair:
No, I mean compiling an application that uses a library and that library not being on the classpath at runtime. i.e. I send you an app that uses JAI and you don't have JAI.
Originally posted by Ken Blair:
Compiling an application that uses a library not on the classpath at runtime.
EDIT: In regards to inconsistencies that is.
[ January 03, 2006: Message edited by: Ken Blair ]
NoClassDefFoundError is thrown when the JVM or a class loader can't locate a class (for example because it's not on the classpath).
The error is thrown when a class couldn't be loaded because of some inconsistencies - a required class wasn't found, classes weren't compatible etc. pp.
You need to go through VMs linking modele concepts to find what you need.
Originally posted by Jim Yingst:
So, what to do? Don't use available. Period. (Except maybe for some rare cases too esoteric to get into here.) Just use the fact that the read() method by default will wait until either more data is available, or the stream closes, and will return -1 in the latter case:
Or for greater efficiency, use a buffer to read bytes in bulk:
Of course in this particular example you could just modify your shell script to read from the file directly, rather than copy the bytes to the process input stream.
[ July 05, 2005: Message edited by: Jim Yingst ][/QB]