|
From: Dennis B. <den...@co...> - 2009-03-15 21:07:42
|
Apologies if this has been mentioned before (I am new to this list).
One comment, in 2.5.6, I loaded the source code into ECLIPSE 2.5.6
using a JDK 1.6.0_12, and after attempting to load all of the libraries required
to the classpath to allow all source code to compile cleanly, one off the source files
still doesn't compile:
org.springframework.transaction.jta/WebSphereUowTransactionManager.java
I wrote a little script to search all of the lib/*/*.jar files for external
references for the missing class that is being referenced, and it appears that
none of those lib/*/*.jar files contains the missing class that is referenced
by the import line.
Class affected:
org.springframework.transaction.jta/WebSphereUowTransactionManager
Error message:
The import com.ibm.websphere cannot be resolved WebSphereUowTransactionManager.java spring-framework-2.5.6/src/org/springframework/transaction/jta line 23 Java Problem
------------------------------------------------------------------------------------
PS: here is the script that I used to create a big text file of
jar files and classes within that jar (I had to use an intermediate
text file (tmp.junk) because of a bug in the version of sh.exe
that runs on my computer - a very old version from MKS ).
I ran this script to see all of the classes defined in all of the
third party *.JAR files that Spring 2.5.6 uses.
-------------------------------------------------------------------------------------
# big.sh
# used to find out which jar file contains which class.
# Example: I was researching JTA, and wondered if
# a JSE app can use JTA or not.
# ==============================================
for jar in */*.jar
do
echo === $jar ===
jar tf $jar | grep class$ >tmp.junk
while read line; do echo $jar:$line; done <tmp.junk
rm tmp.junk
done
I ran above script as follows:
sh big.sh >big.txt
Sample output from above script (first 10 lines of output):
C:\DownLoads\SPRING_2.5.6\spring-framework-2.5.6\lib>uhead big.txt
=== ant/ant-junit.jar ===
ant/ant-junit.jar:org/apache/tools/ant/taskdefs/optional/junit/AggregateTransformer$Format.class
ant/ant-junit.jar:org/apache/tools/ant/taskdefs/optional/junit/AggregateTransformer.class
ant/ant-junit.jar:org/apache/tools/ant/taskdefs/optional/junit/ArrayEnumeration.class
ant/ant-junit.jar:org/apache/tools/ant/taskdefs/optional/junit/BaseTest.class
ant/ant-junit.jar:org/apache/tools/ant/taskdefs/optional/junit/BatchTest.class
ant/ant-junit.jar:org/apache/tools/ant/taskdefs/optional/junit/BriefJUnitResultFormatter.class
ant/ant-junit.jar:org/apache/tools/ant/taskdefs/optional/junit/CompoundEnumeration.class
ant/ant-junit.jar:org/apache/tools/ant/taskdefs/optional/junit/Constants.class
ant/ant-junit.jar:org/apache/tools/ant/taskdefs/optional/junit/DOMUtil$NodeFilter.class
|