kimptoc     01/11/30 07:50:17

  Modified:    build/torque build.xml
               src/java/org/apache/jetspeed/om/profile BaseProfile.java
               src/java/org/apache/jetspeed/services/psmlmanager/db
                        DatabasePsmlManagerService.java
  Log:
  added some profile debug info and corrected jar name in torque build
  
  Revision  Changes    Path
  1.3       +1 -1      jakarta-jetspeed/build/torque/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed/build/torque/build.xml,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- build.xml 2001/11/28 15:04:53     1.2
  +++ build.xml 2001/11/30 15:50:17     1.3
  @@ -12,7 +12,7 @@
     <path id="classpath">
       <pathelement location="../../lib/turbine-2.2b1-20011124.jar"/>
       <pathelement location="../../lib/velocity-1.2-dev.jar"/>
  -    <pathelement location="../../lib/village-1.5.3.jar"/>
  +    <pathelement location="../../lib/village-1.5.3-dev.jar"/>
       <pathelement location="../../lib/xerces_1_3_1.jar"/>
     </path>
   
  
  
  
  1.11      +17 -1     
jakarta-jetspeed/src/java/org/apache/jetspeed/om/profile/BaseProfile.java
  
  Index: BaseProfile.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-jetspeed/src/java/org/apache/jetspeed/om/profile/BaseProfile.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- BaseProfile.java  2001/11/20 04:58:34     1.10
  +++ BaseProfile.java  2001/11/30 15:50:17     1.11
  @@ -64,7 +64,7 @@
   Provides base functionality within a Registry.
   
   @author <a href="mailto:[EMAIL PROTECTED]";>David Sean Taylor</a>
  -@version $Id: BaseProfile.java,v 1.10 2001/11/20 04:58:34 taylor Exp $
  +@version $Id: BaseProfile.java,v 1.11 2001/11/30 15:50:17 kimptoc Exp $
   */
   
   public class BaseProfile  extends BaseProfileLocator implements Profile
  @@ -145,6 +145,22 @@
           {
               PsmlManager.saveDocument(document);
           }
  +    }
  +
  +    /**
  +     provide useful info for ease of debugging
  +    */
  +    public String toString()
  +    {
  +        return "BaseProfile["+
  +               getUser()+","+
  +               getGroup()+","+
  +               getRole()+","+
  +               (getAnonymous() ? "anon,":"")+
  +               getMediaType()+","+
  +               getCountry()+","+
  +               getLanguage()+","+
  +               getName()+"]";
       }
   
   }
  
  
  
  1.7       +1 -0      
jakarta-jetspeed/src/java/org/apache/jetspeed/services/psmlmanager/db/DatabasePsmlManagerService.java
  
  Index: DatabasePsmlManagerService.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-jetspeed/src/java/org/apache/jetspeed/services/psmlmanager/db/DatabasePsmlManagerService.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- DatabasePsmlManagerService.java   2001/11/30 15:15:13     1.6
  +++ DatabasePsmlManagerService.java   2001/11/30 15:50:17     1.7
  @@ -590,6 +590,7 @@
           }
           catch (Exception e) // insert failed
           {
  +            Log.error("Error saving profile:"+profile);
               Log.error("Error occurred in Database PSML Manager: " , e);
               Log.error("Insert in table " + tableName + " failed");
               throw new RuntimeException("Could not create new profile in DB");
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to