[opencms-dev] need that code be fixed - 7.0.5

Jonathan Woods jonathan.woods at scintillance.com
Thu Jul 23 18:43:32 CEST 2009


CmsLockType.TEMPORARY? 

> -----Original Message-----
> From: opencms-dev-bounces at opencms.org 
> [mailto:opencms-dev-bounces at opencms.org] On Behalf Of 
> Christoph P. Kukulies
> Sent: 23 July 2009 17:25
> To: opencms-dev at opencms.org
> Subject: [opencms-dev] need that code be fixed - 7.0.5
> 
> I had a piece of code that generates a sitemap (sitemap.jsp) 
> and it used to work under 6.2.3.
> 
> I tried it under 7.0.5 and wnated to run it under 7.5.0 also and it
> misbehaves:
> 
> An error occurred at line: 77 in the jsp file:
> /WEB-INF/jsp/offline/sites/mysite/sitemap.jsp
> CmsLock.TEMPORARY cannot be resolved
> 74:  String s_filecontent="<?xml version=\"1.0\" encoding=\"UTF-8\"
> ?>\n<urlset xmlns=\"http://www.google.com/schemas/sitemap/0.84\">";
> 75:
> cmso.getRequestContext().setCurrentProject(cmso.readProject("O
> ffline"));
> 76: if (cmso.existsResource(filename)) {
> 77:        cmso.lockResource(filename,CmsLock.TEMPORARY);
> 78:         cmso.deleteResource(filename,
> 79: CmsResource.DELETE_PRESERVE_SIBLINGS);
> 80:         if (cmso.existsResource(filename)) {
> 
> 
> Any clues how to fix this for 7.x?
> 
> 
> --
> Chris Christoph P. U. Kukulies kukulies (at) rwth-aachen.de
> 
> 
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list To 
> change your list options, or to unsubscribe from the list, 
> please visit http://lists.opencms.org/mailman/listinfo/opencms-dev




More information about the opencms-dev mailing list