Changes for page Development-Common Pitfalls and Troubleshooting
                  Last modified by Pascal Robert on 2010/09/13 00:24
              
      
      From version  5.1 
    
    
              edited by smmccraw
        
on 2007/07/08 09:45
     on 2007/07/08 09:45
      Change comment:
              There is no comment for this version
          
         
      To version  6.1 
    
    
              edited by Pascal Robert
        
on 2007/09/03 15:19
     on 2007/09/03 15:19
      Change comment:
              There is no comment for this version
          
         Summary
- 
          Page properties (3 modified, 0 added, 0 removed)
 
Details
- Page properties
 - 
      
- Title
 -   
... ... @@ -1,1 +1,1 @@ 1 - Programming__WebObjects-WebApplications-Development-Common Pitfalls and Troubleshooting1 +Web Applications-Development-Common Pitfalls and Troubleshooting  - Author
 -   
... ... @@ -1,1 +1,1 @@ 1 -XWiki. smmccraw1 +XWiki.probert  - Content
 -   
... ... @@ -1,28 +1,25 @@ 1 -== Debugging Classpath Problems ==1 +== Debugging Classpath Problems == 2 2 3 -=== Chuck Hill ===3 +=== Chuck Hill === 4 4 5 5 I recently found this useful and thought others might too: 6 6 7 -{{ panel}}7 +{{code}} 8 8 9 - System.out.println("\nClassPath Follows....\n"); 10 - ClassLoader classLoader = ClassLoader.getSystemClassLoader(); 11 - URL[] urls = ((URLClassLoader)classLoader).getURLs(); 12 - for(int i=0; i<urls.length; i++) 13 - { 14 - System.out.println(urls[i].toString() + "\n"); 15 - } 9 +System.out.println("\nClassPath Follows....\n"); 10 +ClassLoader classLoader = ClassLoader.getSystemClassLoader(); 11 +URL[] urls = ((URLClassLoader)classLoader).getURLs(); 12 +for(int i=0; i<urls.length; i++) { 13 + System.out.println(urls[i].toString() + "\n"); 14 +} 16 16 17 -{{/ panel}}16 +{{/code}} 18 18 19 -Add this to public static void main(String argv [[]]) before the call to WOApplication.main(argv, Application.class) and add these imports:18 +Add this to public static void main(String argv) before the call to WOApplication.main(argv, Application.class) and add these imports: 20 20 21 -{{ panel}}20 +{{code}} 22 22 23 - import java.io.*;24 - import java.net.*;22 +import java.io.*; 23 +import java.net.*; 25 25 26 -{{/panel}} 27 - 28 -Category:WebObjects 25 +{{/code}}