Hi,

I faced this problem by myself. In my opinion the whole registry will be
rewritten on shutdown of Tomcat (or maybe during the execution of Jetspeed).

The thing is that the castor framework deletes the old file and creates a
completely new file. It uses the information to create the tags from the
specification in the file registry.xml. There variables and class are tied
to tags. 

So if you have a tag that the castor framework doesn't know, it might skip
it during writing this file. In my case I lost the xml comments I filled
into the xreg files.

Example:
I had a file like this:
  <?xml version="1.0" encoding="UTF-8" ?> 
  <registry>
    <!-- This is a test of my very own and personal skin -->
    <skin-entry name="my_own_skin" hidden="false">
      <!-- I choose my own textcolor -->
      <property name="text-color" value="#00FF00" hidden="false" /> 
      <!-- I choose my own backgroundcolor -->
      <property name="background-color" value="#ff00ff" hidden="false" /> 
    </skin-entry>
  </registry>



It will be rewritten as that:
  <?xml version="1.0" encoding="UTF-8" ?> 
  <registry>
    <skin-entry name="my_own_skin" hidden="false">
      <property name="text-color" value="#00FF00" hidden="false" /> 
      <property name="background-color" value="#ff00ff" hidden="false" /> 
    </skin-entry>
  </registry>


hope that helps

Matt






> -----Original Message-----
> From: Kamal Muthuswamy [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, August 15, 2002 11:46 AM
> To: Jetspeed Users List
> Subject: Re: Registry file getting trimmed
> 
> 
> > Kamal,
> > 1) Are the xreg files being updated AFTER jetspeed is 
> started, i.e. are
> > you editing the file?
> 
> No, I am not modifying the registry file.
> 
> >
> > 2) What should the size be?  What is missing? When and how where the
> > missing items added?
> 
> The missing items were there from the start. After the tomcat 
> shutsdown,
> there are only 4 - 5 lines of XML tags and content in each of the xreg
> file.
> 
> >
> > 3) How is tomcat being shutdown, i.e. tomcat/bin/shutdown, 
> stopping the
> > NT service?
> 
> tomcat/bin/shutdown
> 
> 
> >
> > Paul Spencer
> >
> > Kamal Muthuswamy wrote:
> >
> > > Hi,
> > >
> > > I am facing a very odd problem. I have Jetpseed 1.3a2 and 
> I am running
> > > a portal with 4 to 5 simple html and RSS portlets. Off late I saw
> > > a problem where in whenever I shutdown my tomcat, all my 
> .xreg files
> > > get reduced to the size of 1K.
> > >
> > >
> > > Any help would be appreciated.
> > >
> > > Regards
> > > Kamal
> > >
> > >
> > >
> > >
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:   
> <mailto:[EMAIL PROTECTED]>
> > > For additional commands, e-mail: 
> <mailto:[EMAIL PROTECTED]>
> > >
> > >
> >
> >
> >
> > --
> > To unsubscribe, e-mail:   
> <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail: 
> <mailto:[EMAIL PROTECTED]>
> >
> >
> 
> 
> --
> To unsubscribe, e-mail:   
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: 
> <mailto:[EMAIL PROTECTED]>
> 

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

Reply via email to