[opencms-dev] Re: opencms-dev Digest, Vol 53, Issue 4

Swamy KPN swamy.kpn at gmail.com
Thu Aug 11 17:25:17 CEST 2005


Hi All,
 i am trying to install Opencms6.0  with WSAD 5.1.1 but during
instalation i am getting the error like

 " Your system does not have the necessary components to use OpenCms.
It is assumed that OpenCms will not run on your system.
OpenCms 6.0 requires Xerces version 2 to run, your Xerces version is
1. Usually Xerces 2 should be installed by default as part of the
servlet environment".

Could you any one explain how to install opencms6.0 with WSAD
and tell me the solution of above error which i showed in double quotes.


Thanks,
Narasi. 




On 8/11/05, opencms-dev-request at opencms.org
<opencms-dev-request at opencms.org> wrote:
> Send opencms-dev mailing list submissions to
>        opencms-dev at opencms.org
> 
> To subscribe or unsubscribe via the World Wide Web, visit
>        http://lists.opencms.org/mailman/listinfo/opencms-dev
> or, via email, send a message with subject or body 'help' to
>        opencms-dev-request at opencms.org
> 
> You can reach the person managing the list at
>        opencms-dev-owner at opencms.org
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of opencms-dev digest..."
> 
> 
> Today's Topics:
> 
>   1. Re: Bug in CmsSearchIndex (Claus Priisholm)
>   2. Re: MS SQL Server support in OpenCMS 6 (Marcus Popetz)
>   3. Database migration
>      (Gonzalez, Arnau (GE Consumer Finance,    consultant))
>   4. Re: Database migration (Andras Balogh)
>   5. unlock a disabled web user (Siegfried Puchbauer)
>   6. Re: using A_CmsListDialog, where is all the JavaScript?
>      (Alexander Wallace)
>   7. Re: using A_CmsListDialog, where is all the JavaScript?
>      (Michael Moossen)
>   8. Errors in the JBoss log when running the setup for        version
>      6.0 (Ricky Tapper)
>   9. Re: using A_CmsListDialog, where is all the JavaScript?
>      (Alexander Wallace)
>  10. Re: using A_CmsListDialog, where is all the JavaScript?
>      (Alexander Wallace)
>  11. Using CMS to programmatically publish files (Brett Beaumont)
>  12. RE: bvr- body tags done seem to be working - What i       swrong
>      with this line of code (Michael, Nick N)
>  13. Re: using A_CmsListDialog, where is all the JavaScript?
>      (Michael Moossen)
>  14. RE: Database migration
>      (Gonzalez, Arnau (GE Consumer Finance,    consultant))
> 
> 
> ----------------------------------------------------------------------
> 
> Message: 1
> Date: Wed, 10 Aug 2005 12:10:47 +0200
> From: Claus Priisholm <cpr at codedroids.com>
> Subject: Re: [opencms-dev] Bug in CmsSearchIndex
> To: The OpenCms mailing list <opencms-dev at opencms.org>
> Message-ID: <42F9D2A7.3020700 at codedroids.com>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
> 
> Since the it is looping over the entire result set anyway in order to
> check the resources with the hasReadPermission() method the penalty has
> been paid already, it just seems to miss reporting the adjusted hit
> count (which is what you want to report on the search result page)
> 
> Rainer Vehns wrote:
> > Hello all,
> >
> >
> >
> > I think there is a bug in the CmsSearchIndex-class, but perhaps the
> > behaviour is desired (due to efficiency):
> >
> >
> >
> > We have implemented a site with public and non-public areas using the
> > OpenCms access control mechanisms. We have indexed the whole site
> > (including public and non-public areas) for searching and everything
> > works well, except the search result count.
> >
> > If the search term produces search results from the public and the
> > non-public areas, the number of results
> > (org.opencms.search.CmsSearch.getSearchResultCount()) corresponds to the
> > total number of hits, not only the number of hits the user has really
> > read-access to. For example that means, a normal (not authenticated)
> > user sees a total count of 20 hits for the search term, but he only sees
> > 5 documents in the list (which are the only documents he has access to).
> >
> >
> >
> > With a patch to the class CmsSearchIndex, this could be fixed, but you
> > have to iterate over all search results each time (efficient?).
> >
> >
> >
> > What do you mean?
> >
> >
> >
> > I have attached a patch (based on build_6_0_0) and the modified source
> > of CmsSearchIndex.
> >
> >
> >
> > Kind regards,
> >
> >
> >
> > Rainer
> >
> >
> >
> >
> >
> >
> > ------------------------------------------------------------------------
> >
> > Index: org/opencms/search/CmsSearchIndex.java
> > ===================================================================
> > RCS file: /usr/local/cvs/opencms/src/org/opencms/search/CmsSearchIndex.java,v
> > retrieving revision 1.54
> > diff -u -r1.54 CmsSearchIndex.java
> > --- org/opencms/search/CmsSearchIndex.java    27 Jun 2005 23:22:16 -0000      1.54
> > +++ org/opencms/search/CmsSearchIndex.java    9 Aug 2005 21:20:41 -0000
> > @@ -623,12 +623,14 @@
> >                      end = hitCount;
> >                  }
> >
> > -                for (int i = 0, cnt = 0; i < hitCount && cnt < end; i++) {
> > +                // effectiveHitCount is the total hitCount subtracted by the number of hits, to which the user has no read access
> > +                int effectiveHitCount = hitCount;
> > +                for (int i = 0, cnt = 0; i < hitCount; i++) {
> >                      try {
> >                          doc = hits.doc(i);
> >                          if (hasReadPermission(cms, doc)) {
> >                              // user has read permission
> > -                            if (cnt >= start) {
> > +                            if (cnt >= start && cnt < end) {
> >                                  // do not use the resource to obtain the raw content, read it from the lucene document !
> >                                  if (m_createExcerpt) {
> >                                      excerpt = getExcerpt(
> > @@ -640,6 +642,10 @@
> >                                  searchResults.add(searchResult);
> >                              }
> >                              cnt++;
> > +                        } else {
> > +
> > +                             // the user has no read access to this resource, so this resource should not be counted
> > +                             effectiveHitCount--;
> >                          }
> >                      } catch (Exception e) {
> >                          // should not happen, but if it does we want to go on with the next result nevertheless
> > @@ -650,7 +656,7 @@
> >                  }
> >
> >                  // save the total count of search results at the last index of the search result
> > -                searchResults.setHitCount(hitCount);
> > +                searchResults.setHitCount(effectiveHitCount);
> >              } else {
> >                  searchResults.setHitCount(0);
> >              }
> >
> >
> > ------------------------------------------------------------------------
> >
> >
> >
> > _______________________________________________
> > This mail is send to you from the opencms-dev mailing list
> > To change your list options, or to unsubscribe from the list, please visit
> > http://mail.opencms.org/mailman/listinfo/opencms-dev
> 
> --
> Claus Priisholm, CodeDroids ApS
> cpr (you know what) codedroids.com - http://www.codedroids.com
> 
> Javadocs and other OpenCms stuff:
> http://www.codedroids.com/community/opencms
> 
> ------------------------------
> 
> Message: 2
> Date: Wed, 10 Aug 2005 07:53:47 -0400
> From: Marcus Popetz <marcus at roundpeg.com>
> Subject: Re: [opencms-dev] MS SQL Server support in OpenCMS 6
> To: The OpenCms mailing list <opencms-dev at opencms.org>
> Message-ID: <6.1.0.6.0.20050810075010.0223cec0 at mail.navisite.com>
> Content-Type: text/plain; charset="us-ascii"; format=flowed
> 
> At 02:37 AM 8/10/2005, Andras Balogh wrote:
> >    I'm involved in creating the MS-SQL support for OpenCMS 6. I think i'm
> > somewhere at 90%, the DB is up and running
> >but the unit tests are not all completed. I will try to make some more
> >steps in the weekend if i have time.
> 
> Excellent!  I'm going to do the evaluation and learning with mysql but once
> I know OpenCms well enough to know what is my problem and what is a
> possible bug, I'd be happy to help with the testing of it.  We're not going
> live until the end of the year (and hopefully later) so we'll have some
> time to bash against it and we can always switch back to mysql if it's not
> stable enough by then.
> 
> -mp
> 
> 
> 
> ------------------------------
> 
> Message: 3
> Date: Wed, 10 Aug 2005 13:56:14 +0100
> From: "Gonzalez, Arnau \(GE Consumer Finance,   consultant\)"
>        <arnau.gonzalez at ge.com>
> Subject: [opencms-dev] Database migration
> To: <opencms-dev at opencms.org>
> Message-ID:
>        <B61757CDBBC8BA478834BB3B96A5A5240F7A54CE at KINMLVEM04.e2k.ad.ge.com>
> Content-Type: text/plain;       charset="iso-8859-1"
> 
> Hello,
> 
> It would be possible to move all the OpenCms content stored in a DB to another DB? In example, from MySQL to Oracle. How difficult would it be?
> 
> Thanks in advance
> 
> ------------------------------
> 
> Message: 4
> Date: Wed, 10 Aug 2005 16:00:35 +0300
> From: Andras Balogh <abalogh at gmail.com>
> Subject: Re: [opencms-dev] Database migration
> To: The OpenCms mailing list <opencms-dev at opencms.org>
> Message-ID: <42F9FA73.9060105 at gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
> 
> Hello,
> 
> I think this would be possible using OpenCms's Export/Import Database
> and/or Export/Import Modules
> functionality.
> 
> Best regards,
> Andras
> 
> Gonzalez, Arnau (GE Consumer Finance, consultant) wrote:
> 
> >Hello,
> >
> >It would be possible to move all the OpenCms content stored in a DB to another DB? In example, from MySQL to Oracle. How difficult would it be?
> >
> >Thanks in advance
> >
> >
> >_______________________________________________
> >This mail is send to you from the opencms-dev mailing list
> >To change your list options, or to unsubscribe from the list, please visit
> >http://mail.opencms.org/mailman/listinfo/opencms-dev
> >
> >
> >
> 
> 
> ------------------------------
> 
> Message: 5
> Date: Wed, 10 Aug 2005 15:36:45 +0200
> From: Siegfried Puchbauer <siegfried.puchbauer at gmail.com>
> Subject: [opencms-dev] unlock a disabled web user
> To: opencms-dev at opencms.org
> Message-ID: <53239a2005081006361fe953b at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
> 
> hi!
> 
> Is it possible to unlock a web-user, who tried to authenticate with opencms
> more than 3 times using a invalid password?
> I did not find any way to do this in the administration...
> 
> this message is thrown when i want to log in... (using
> org.opencms.CmsObject.loginWebUser(usr,pwd);)
> 
> > Failed login of user "web1" (type 2) from IP 10.1.1.60 <http://10.1.1.60>.
> > The user has been disabled until 10.08.2005 17:10:19 because of 3 invalid
> > login attempts.
> 
> 
> thanks for help!
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: http://lists.opencms.org/pipermail/opencms-dev/attachments/20050810/5c8b274b/attachment-0001.html
> 
> ------------------------------
> 
> Message: 6
> Date: Wed, 10 Aug 2005 09:42:31 -0500
> From: Alexander Wallace <aw at avatartechnology.com>
> Subject: Re: [opencms-dev] using A_CmsListDialog, where is all the
>        JavaScript?
> To: The OpenCms mailing list <opencms-dev at opencms.org>
> Message-ID: <200508100942.32162.aw at avatartechnology.com>
> Content-Type: text/plain;  charset="iso-8859-1"
> 
> Hi! I'm sooo glad to see this response.... My intention is to figure out how
> to creat GUIs inside of opencms for administration of custom features (app
> specific features).... So, if i'm able to figure it all out, we will
> certainly use CmsDialog and its peers a lot.
> 
> Indeed i'm displaying the dialog as you indicate in your response, and it
> displays and pulls my data correctly, but none of the actions work... It can
> be related to the fact that the parts to display the help are missing...
> Because, when i click on, let's say the "delete" icon, i get the confirmation
> dialog with the right text, however, when i click OK, a JavasCript error is
> generated, complaining that "hMH" is not defined, which is the same error
> that i get when i mouse over many of the action icons.
> 
> As a quick hack to see if i could get that JS in, i created a frameset like
> the ones used in the Administration area (ie: accounts), and tho i get the
> Admin menu, and it's own help works, my dialog still has the same issues...
> 
> I'll try to figure out where/what is doing that for the admin menu and not for
> my dialog, but if you have suggestions, that would be wonderful...
> 
> My hope is that i can reuse all this GUI tools and that at one pont it will
> take me less time to make UI using them than with no framework... You think
> this is possible?
> 
> Thanks!
> On Wednesday 10 August 2005 02:38 am, Michael Moossen wrote:
> > Hi, Alexander!
> >
> >   i am glad to hear somebody is using it :)
> >   please do not hesitate to send feedback: comments, suggestions,
> requirements!
> >
> >   if you use the A_CmsListDialog class for writing your own dialog, for
> instance
> > MyListDialog, your JSP page should look just like:
> > <%@ page import="my.package.MyListDialog" %>
> > <%
> > MyListDialog wp = new MyListDialog(pageContext, request, response);
> > wp.displayDialog();
> > %>
> > this will call the CmsHtmlList.getJs(Locale) method, which includes the
> needed
> > js code, for the list.
> > but there is also aditional js code from the admin framework, for instance
> for
> > handling helptext which is included by the CmsToolDialog.pageHtmlStyle(int,
> > String, String) method.
> >
> > hth
> > --
> > Regards
> > Michael Moossen
> > Alkacon SOftware GmbH - The OpenCms Experts
> >
> > http://www.alkacon.com
> >
> >
> >
> > Quoting Alexander Wallace <aw at avatartechnology.com>:
> >
> > > Hi there... I'm starting to use the widget classes to write my own UI
> inside
> > >
> > > of opencms workspace... I have a list being built and filled up
> succesfully,
> > >
> > > but it dependes on several javascript functions a for mouse over and list
> > > actions... Can someone give me a hint as to how to make my UI classes
> include
> > >
> > > or cause those to be included, or any other way to get those functions?
> > >
> > > Thanks!
> > >
> > >
> > > _______________________________________________
> > > This mail is send to you from the opencms-dev mailing list
> > > To change your list options, or to unsubscribe from the list, please visit
> > > http://mail.opencms.org/mailman/listinfo/opencms-dev
> > >
> >
> >
> > ----------------------------------------------------------------
> > This message was sent using IMP, the Internet Messaging Program.
> >
> >
> >
> > _______________________________________________
> > This mail is send to you from the opencms-dev mailing list
> > To change your list options, or to unsubscribe from the list, please visit
> > http://mail.opencms.org/mailman/listinfo/opencms-dev
> >
> 
> ------------------------------
> 
> Message: 7
> Date: Wed, 10 Aug 2005 17:31:20 +0200
> From: Michael Moossen <m.moossen at alkacon.com>
> Subject: Re: [opencms-dev] using A_CmsListDialog, where is all the
>        JavaScript?
> To: The OpenCms mailing list <opencms-dev at opencms.org>
> Message-ID: <1123687880.42fa1dc83dd62 at webmail.alkacon.com>
> Content-Type: text/plain; charset=ISO-8859-1
> 
> Hi, Alexander!
> 
> > Indeed i'm displaying the dialog as you indicate in your response, and it
> > displays and pulls my data correctly, but none of the actions work... It can
> > be related to the fact that the parts to display the help are missing...
> > Because, when i click on, let's say the "delete" icon, i get the confirmation
> > dialog with the right text, however, when i click OK, a JavasCript error is
> > generated, complaining that "hMH" is not defined, which is the same error
> > that i get when i mouse over many of the action icons.
> ok, i understand the problem:
> you have to call the page with the parameter style=new
> 
> the point is that there are a lot of older dialogs (but no list dialog) used in
> the new administration framework, and this parameter controls the included
> style sheets, js, and other stuff.
> the best fix for that is to always set this magical parameter somewhere in the
> A_CmsListDialog class.
> 
> > My hope is that i can reuse all this GUI tools and that at one pont it will
> > take me less time to make UI using them than with no framework... You think
> > this is possible?
> that is the idea, but your are the first one trying it out! so as said before
> give us your feedback.
> 
> --
> Regards
> Michael Moossen
> Alkacon Software - The OpenCms Experts
> 
> http://www.alkacon.com
> 
> 
> 
> Quoting Alexander Wallace <aw at avatartechnology.com>:
> 
> > Hi! I'm sooo glad to see this response.... My intention is to figure out how
> >
> > to creat GUIs inside of opencms for administration of custom features (app
> > specific features).... So, if i'm able to figure it all out, we will
> > certainly use CmsDialog and its peers a lot.
> >
> > Indeed i'm displaying the dialog as you indicate in your response, and it
> > displays and pulls my data correctly, but none of the actions work... It can
> >
> > be related to the fact that the parts to display the help are missing...
> > Because, when i click on, let's say the "delete" icon, i get the confirmation
> >
> > dialog with the right text, however, when i click OK, a JavasCript error is
> > generated, complaining that "hMH" is not defined, which is the same error
> > that i get when i mouse over many of the action icons.
> >
> > As a quick hack to see if i could get that JS in, i created a frameset like
> > the ones used in the Administration area (ie: accounts), and tho i get the
> > Admin menu, and it's own help works, my dialog still has the same issues...
> >
> > I'll try to figure out where/what is doing that for the admin menu and not
> > for
> > my dialog, but if you have suggestions, that would be wonderful...
> >
> > My hope is that i can reuse all this GUI tools and that at one pont it will
> > take me less time to make UI using them than with no framework... You think
> > this is possible?
> >
> > Thanks!
> > On Wednesday 10 August 2005 02:38 am, Michael Moossen wrote:
> > > Hi, Alexander!
> > >
> > >   i am glad to hear somebody is using it :)
> > >   please do not hesitate to send feedback: comments, suggestions,
> > requirements!
> > >
> > >   if you use the A_CmsListDialog class for writing your own dialog, for
> > instance
> > > MyListDialog, your JSP page should look just like:
> > > <%@ page import="my.package.MyListDialog" %>
> > > <%
> > > MyListDialog wp = new MyListDialog(pageContext, request, response);
> > > wp.displayDialog();
> > > %>
> > > this will call the CmsHtmlList.getJs(Locale) method, which includes the
> > needed
> > > js code, for the list.
> > > but there is also aditional js code from the admin framework, for instance
> >
> > for
> > > handling helptext which is included by the
> > CmsToolDialog.pageHtmlStyle(int,
> > > String, String) method.
> > >
> > > hth
> > > --
> > > Regards
> > > Michael Moossen
> > > Alkacon SOftware GmbH - The OpenCms Experts
> > >
> > > http://www.alkacon.com
> > >
> > >
> > >
> > > Quoting Alexander Wallace <aw at avatartechnology.com>:
> > >
> > > > Hi there... I'm starting to use the widget classes to write my own UI
> > inside
> > > >
> > > > of opencms workspace... I have a list being built and filled up
> > succesfully,
> > > >
> > > > but it dependes on several javascript functions a for mouse over and list
> >
> > > > actions... Can someone give me a hint as to how to make my UI classes
> > include
> > > >
> > > > or cause those to be included, or any other way to get those functions?
> > > >
> > > > Thanks!
> > > >
> > > >
> > > > _______________________________________________
> > > > This mail is send to you from the opencms-dev mailing list
> > > > To change your list options, or to unsubscribe from the list, please
> > visit
> > > > http://mail.opencms.org/mailman/listinfo/opencms-dev
> > > >
> > >
> > >
> > > ----------------------------------------------------------------
> > > This message was sent using IMP, the Internet Messaging Program.
> > >
> > >
> > >
> > > _______________________________________________
> > > This mail is send to you from the opencms-dev mailing list
> > > To change your list options, or to unsubscribe from the list, please visit
> > > http://mail.opencms.org/mailman/listinfo/opencms-dev
> > >
> >
> >
> > _______________________________________________
> > This mail is send to you from the opencms-dev mailing list
> > To change your list options, or to unsubscribe from the list, please visit
> > http://mail.opencms.org/mailman/listinfo/opencms-dev
> >
> 
> 
> ----------------------------------------------------------------
> This message was sent using IMP, the Internet Messaging Program.
> 
> 
> ------------------------------
> 
> Message: 8
> Date: Wed, 10 Aug 2005 10:32:44 -0700 (PDT)
> From: Ricky Tapper <rstapper at yahoo.com>
> Subject: [opencms-dev] Errors in the JBoss log when running the setup
>        for     version 6.0
> To: opencms-dev at opencms.org
> Message-ID: <20050810173244.17039.qmail at web51803.mail.yahoo.com>
> Content-Type: text/plain; charset=iso-8859-1
> 
> Here are the stats:
> JBoss 4.0.2
> MySQL 4.1.x
> Windows XP Pro
> OpenCMS 6.0 (deployed in exploded form to an
> opencms.war direcory in the deploy directory of the
> "all" server)
> 
> I am receiving the following errors in the log when I
> run the setup program. The funny thing is that OpenCMS
> appears to run normally, even though these errors
> occur during setup. Can anyone tell me if these are
> normal? If they are not, what is being impacted?
> And...is there a workaround?
> 
> Errors: (this is not the full log - just the errors -
> the full log is way too long to include here)
> 
> 12:41:03,755 ERROR [CmsProjectDriver] Error publishing
> file content of "[org.opencms.file.CmsResource, path:
> /sites/default/alkacon-documentation/javadoc/core/constant-values.html,
> structure id 791662e0-09bd-11da-b565-000e3557c3d5,
> resource id: 3ead958c-e8dd-11d9-820a-1937cc62396b,
> type id: 1, folder: false, flags: 0, project: 55,
> state: 2, date created: Mon Jun 27 04:00:00 EDT 2005,
> user created: c300ba5c-01e8-3727-b305-5dcc9ccae1ee,
> date lastmodified: Mon Jun 27 04:00:00 EDT 2005, user
> lastmodified: c300ba5c-01e8-3727-b305-5dcc9ccae1ee,
> date released: Wed Dec 31 19:00:00 EST 1969, date
> expired: Sun Aug 17 02:12:55 EST 292278994, size:
> 1418103 sibling count: 1]".
> org.opencms.file.CmsVfsResourceNotFoundException:
> Unable to read file with structure ID
> "791662e0-09bd-11da-b565-000e3557c3d5".
>        at
> org.opencms.db.generic.CmsVfsDriver.readFile(CmsVfsDriver.java:1052)
>        at
> org.opencms.db.generic.CmsProjectDriver.publishFileContent(CmsProjectDriver.java:1228)
>        at
> org.opencms.db.generic.CmsProjectDriver.publishFile(CmsProjectDriver.java:1089)
>        at
> org.opencms.db.generic.CmsProjectDriver.publishProject(CmsProjectDriver.java:1611)
>        at
> org.opencms.db.CmsDriverManager.publishProject(CmsDriverManager.java:4365)
>        at
> org.opencms.db.CmsSecurityManager.publishProject(CmsSecurityManager.java:2790)
>        at
> org.opencms.file.CmsObject.publishProject(CmsObject.java:1873)
>        at
> org.opencms.file.CmsObject.publishProject(CmsObject.java:1898)
>        at
> org.opencms.file.CmsObject.publishProject(CmsObject.java:1854)
>        at
> org.opencms.module.CmsModuleImportExportHandler.importData(CmsModuleImportExportHandler.java:352)
>        at
> org.opencms.importexport.CmsImportExportManager.importData(CmsImportExportManager.java:708)
>        at
> org.opencms.setup.CmsSetupBean.importModuleFromDefault(CmsSetupBean.java:1585)
>        at
> org.opencms.setup.CmsSetupBean.importModulesFromSetupBean(CmsSetupBean.java:911)
>        at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
>        at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>        at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>        at java.lang.reflect.Method.invoke(Method.java:585)
>        at
> org.opencms.main.CmsShell$CmsCommandObject.executeMethod(CmsShell.java:246)
>        at
> org.opencms.main.CmsShell.executeCommand(CmsShell.java:767)
>        at
> org.opencms.main.CmsShell.executeCommands(CmsShell.java:842)
>        at org.opencms.main.CmsShell.start(CmsShell.java:663)
>        at
> org.opencms.setup.CmsSetupWorkplaceImportThread.run(CmsSetupWorkplaceImportThread.java:179)
> 12:41:03,755 ERROR [CmsProjectDriver] Error publishing
> resource
> "/sites/default/alkacon-documentation/javadoc/core/constant-values.html".
> org.opencms.file.CmsVfsResourceNotFoundException:
> Unable to read file with structure ID
> "791662e0-09bd-11da-b565-000e3557c3d5".
>        at
> org.opencms.db.generic.CmsVfsDriver.readFile(CmsVfsDriver.java:1052)
>        at
> org.opencms.db.generic.CmsProjectDriver.publishFileContent(CmsProjectDriver.java:1228)
>        at
> org.opencms.db.generic.CmsProjectDriver.publishFile(CmsProjectDriver.java:1089)
>        at
> org.opencms.db.generic.CmsProjectDriver.publishProject(CmsProjectDriver.java:1611)
>        at
> org.opencms.db.CmsDriverManager.publishProject(CmsDriverManager.java:4365)
>        at
> org.opencms.db.CmsSecurityManager.publishProject(CmsSecurityManager.java:2790)
>        at
> org.opencms.file.CmsObject.publishProject(CmsObject.java:1873)
>        at
> org.opencms.file.CmsObject.publishProject(CmsObject.java:1898)
>        at
> org.opencms.file.CmsObject.publishProject(CmsObject.java:1854)
>        at
> org.opencms.module.CmsModuleImportExportHandler.importData(CmsModuleImportExportHandler.java:352)
>        at
> org.opencms.importexport.CmsImportExportManager.importData(CmsImportExportManager.java:708)
>        at
> org.opencms.setup.CmsSetupBean.importModuleFromDefault(CmsSetupBean.java:1585)
>        at
> org.opencms.setup.CmsSetupBean.importModulesFromSetupBean(CmsSetupBean.java:911)
>        at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
>        at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>        at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>        at java.lang.reflect.Method.invoke(Method.java:585)
>        at
> org.opencms.main.CmsShell$CmsCommandObject.executeMethod(CmsShell.java:246)
>        at
> org.opencms.main.CmsShell.executeCommand(CmsShell.java:767)
>        at
> org.opencms.main.CmsShell.executeCommands(CmsShell.java:842)
>        at org.opencms.main.CmsShell.start(CmsShell.java:663)
>        at
> org.opencms.setup.CmsSetupWorkplaceImportThread.run(CmsSetupWorkplaceImportThread.java:179)
> 
> Regards,
> 
> Ricky Tapper
> 
> 
> ------------------------------
> 
> Message: 9
> Date: Wed, 10 Aug 2005 15:21:12 -0500
> From: Alexander Wallace <aw at avatartechnology.com>
> Subject: Re: [opencms-dev] using A_CmsListDialog, where is all the
>        JavaScript?
> To: The OpenCms mailing list <opencms-dev at opencms.org>
> Message-ID: <200508101521.12700.aw at avatartechnology.com>
> Content-Type: text/plain;  charset="iso-8859-1"
> 
> Ok! thanks that did something different :)
> 
> Indeed now the javascript is in place, there are no javascript errors
> whatsoever and the help is being displayed on the "admin menu"....
> 
> Maybe i started this the wrong way, but i really have no way of knowing the
> requirements of this whole framework, so let me tell you what i'm doing, and
> perhaps you can tell me what's the right aproach to the framework and if
> there are limmitations, etc...
> 
> What i did was to create a class that extednds A_CmsListDialog and implemented
> enough code to list my items, and also placed code on the
> executeListSingleActions method... Now i placed the setParamStyle("new"); in
> the constructor and have no javascript errors....
> 
> I went on and created my own "view" in opencms and created a jsp that pulls
> the Administration menu (a temporary solution to see if it would give me the
> javascript) which eventually i want to replace with my own menu, it really is
> there just to see something.... In another frame, i have my dialog, which
> displays fine...
> 
> However, all actions on any of the icons and the search box take me to the
> administration view... So evidently there is some settings that tell the
> browser where to go once actions are executing, and i'm not setting that...
> 
> I am hoping that the framework is not made so it will only work when adding
> modules to the administration view.
> 
> I'll do more code digging, but if you have suggestions on how to effectively
> use the framework, i really appreciate it!
> 
> Thanks!
> On Wednesday 10 August 2005 10:31 am, Michael Moossen wrote:
> > style
> 
> ------------------------------
> 
> Message: 10
> Date: Wed, 10 Aug 2005 15:26:08 -0500
> From: Alexander Wallace <aw at avatartechnology.com>
> Subject: Re: [opencms-dev] using A_CmsListDialog, where is all the
>        JavaScript?
> To: The OpenCms mailing list <opencms-dev at opencms.org>
> Message-ID: <200508101526.08328.aw at avatartechnology.com>
> Content-Type: text/plain;  charset="iso-8859-1"
> 
> Also, i just tried displaying my dialog by itself (no frames or menues)....
> The case is the same, when i click on any action icon, i get redirected to
> the "Admin content" of the admin view, and the executeListSingleActions
> method on my class never gets called...
> 
> Here is what the jsp has:
> 
> <%@ page import="com.company.opencms.ui.admin.*" %>
> <%
>    MyList wp = new MyList(pageContext, request, response);
>    wp.displayDialog();
> %>
> 
> I hope there is some parameter i'm missing or something so that all actions
> submit to my form to handle the user requests...
> 
> Thanks!
> 
> 
> On Wednesday 10 August 2005 10:31 am, Michael Moossen wrote:
> > style
> 
> ------------------------------
> 
> Message: 11
> Date: Thu, 11 Aug 2005 14:11:08 +1200
> From: "Brett Beaumont" <brett.beaumont at sytec.co.nz>
> Subject: [opencms-dev] Using CMS to programmatically publish files
> To: <opencms-dev at opencms.org>
> Message-ID:
>        <E9A401348CAF8E41A736032FC7D6F0320166CA91 at sywns013.ad.sytec.com>
> Content-Type: text/plain; charset="iso-8859-1"
> 
> All,
> 
> I'm running OpenCMS 5.0 for one of our clients. We have implemented separate sites as different root level folders. However, since different groups of people manage the different sites, we have run into an issue with the publishing and exporting processes. I can't make everyone admins, because then they get rights on each other's sites, and I can't use projects because the system allows you to copy any file into your project.
> 
> The ideal solution would be for the "site1" people to be able to publish and export their site, and for the "site2" people to be able to publish and export theirs. To do this, I've started down the line of writing a basic JSP that will switch to Admin rights and publish "site1".
> 
> I've got some base level code working as below. I haven't tested it too much, but it seems to publish okay as long as everything is already unlocked. If files are locked, then those get left unpublished (which is ideal), but they get moved into the temporary publishing project (which is destroyed at the end of the publishing process, leaving the files locked in an unexisting project). Ideally, I would like to publish all files or folders that are not locked. In terms of folders, I want to be able to publish unlocked folders, but ignore any of their locked children?
> 
> An alternative might be to try and publish everything, and then go through after the publish and tidy up the locks.
> 
> Otherwise, I might implement a solution where "site1" managers can only publish their site if everything is unlocked. It's not ideal, but it will help reduce the load on our super-admin.
> 
> Any help, or suggestions would be useful.
> 
> // Initialise
> Configurations conf = new Configurations(new ExtendedProperties("/var/tomcat4/webapps/opencms/WEB-INF/config/opencms.properties"));
> OpenCms m_openCms = new OpenCms(conf);
> CmsObject m_cms = new CmsObject();
> 
> // Log in as Admin (may exceed normal users rights).
> m_openCms.initUser(m_cms, null, null, I_CmsConstants.C_USER_ADMIN, I_CmsConstants.C_GROUP_ADMIN, 4, null);
> 
> // Publish
> m_cms.publishResource("/site1/");
> 
> Regards,
> 
> Brett Beaumont
> Technical Consultant
> Sytec Resources Limited
> 
> Phone   +64 4 473 5805
> Fax     +64 4 473 5812
> Email   <mailto:brett.beaumont at sytec.com>
> WWW     http://www.sytec.com
> 
> Important:  This electronic mail message and attachments (if any) are confidential and may be legally privileged.  If you are not the intended recipient please contact us immediately and destroy this message.  You may not legally copy, disclose, disseminate or use the contents in any way.  Thank you.
> 
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: http://lists.opencms.org/pipermail/opencms-dev/attachments/20050811/3a1ced6b/attachment-0001.html
> 
> ------------------------------
> 
> Message: 12
> Date: Thu, 11 Aug 2005 06:37:28 +0200
> From: "Michael, Nick N" <Nick.Michael at standardbank.co.za>
> Subject: RE: [opencms-dev] bvr- body tags done seem to be working -
>        What i  swrong with this line of code
> To: 'The OpenCms mailing list' <opencms-dev at opencms.org>
> Message-ID:
>        <892F4FC670DD434E95716021E17ADE30080AAB8F at sbicjnbmsg09.za.sbicdirectory.com>
> 
> Content-Type: text/plain; charset="iso-8859-1"
> 
> Thanks very much
> 
> It works
> 
> 
> With kind regards
> Nick Michael
> tel 2-9032
> cell 082-508-1950
> 
> -----Original Message-----
> From: opencms-dev-bounces at opencms.org
> [mailto:opencms-dev-bounces at opencms.org]On Behalf Of Arash Kaffamanesh
> Sent: Tuesday, August 09, 2005 00:02
> To: 'The OpenCms mailing list'
> Subject: RE: [opencms-dev] bvr- body tags done seem to be working - What
> iswrong with this line of code
> 
> 
> Hi Nik,
> 
> 
> <%@ taglib prefix="cms" uri="  <http://www.opencms.org/taglib/cms>
> http://www.opencms.org/taglib/cms" %>
> <%@ page buffer="none" import = "org.opencms.jsp.CmsJspActionElement,
> org.opencms.file.CmsObject, org.opencms.file.CmsRequestContext"%>
> 
> ........................
> ........................
> ........................
> 
> <cms:template element="body">
> 
> <!-- start content text -->
> <div class="element">
> <cms:include element="body" editable="true"/>
> </div>
> </cms:template>
> 
> or the templateone solution.
> 
> HTH,
> 
> Regards,
> Arash
> 
> 
> 
> -----Original Message-----
> From: opencms-dev-bounces at opencms.org
> [mailto:opencms-dev-bounces at opencms.org] On Behalf Of Michael, Nick N
> Sent: Montag, 8. August 2005 14:22
> To: 'The OpenCms mailing list'
> Subject: [opencms-dev] bvr- body tags done seem to be working - What iswrong
> with this line of code
> 
> 
> Hi there
> 
> I cant get content in the body tags
> What am I doing wrong ?
> 
> see code below
> 
> 
> 
> <%  // Create a JSP action element for getting body content
>  org.opencms.jsp.CmsJspActionElement cmsAct= new
> org.opencms.jsp.CmsJspActionElement(pageContext, request, response);
> %>
> 
> 
> <!-- (body content) -->
> <%
> // the body element
> cmsAct.include(null, "body");            /////  what is wrong with this line
> of code ?
> %>
> <!-- (body content) -->
> 
> 
> 
> 
> With kind regards
> Nick Michael
> tel 2-9032
> cell 082-508-1950
> 
> 
> 
> ____________________________________________________________________________
> ______________________________________________________
> Standard Bank Disclaimer and Confidentiality Note
> 
> 
> 
> This e-mail, its attachments and any rights attaching hereto are, unless the
> context clearly indicates otherwise, the property of Standard Bank Group
> Limited and/or its subsidiaries ("the Group"). It is confidential, private
> and intended for the addressee only.
> 
> Should you not be the addressee and receive this e-mail by mistake, kindly
> notify the sender, and delete this e-mail, immediately and do not disclose
> or use same in any manner whatsoever. Views and opinions expressed in this
> e-mail are those of the sender unless clearly stated as those of the Group.
> The Group accepts no liability whatsoever for any loss or damages whatsoever
> and howsoever incurred, or suffered, resulting, or arising, from the use of
> this email or its attachments.
> 
> The Group does not warrant the integrity of this e-mail nor that it is free
> of errors, viruses, interception or interference. Licensed divisions of the
> Standard Bank Group are authorised financial services providers in terms of
> the Financial Advisory and Intermediary Services Act, No 37 of 2002 (FAIS).
> 
> 
> 
> For information about the Standard Bank Group Limited visit our website
> <http://www.standardbank.co.za> http://www.standardbank.co.za
> 
> ____________________________________________________________________________
> ______________________________________________________
> 
> 
> 
> __________________________________________________________________________________________________________________________________
> 
> Standard Bank Disclaimer and Confidentiality Note
> 
> This e-mail, its attachments and any rights attaching hereto are, unless the context clearly indicates otherwise, the property of Standard Bank Group Limited
> and/or its subsidiaries ("the Group"). It is confidential, private and intended for the addressee only. Should you not be the addressee and receive this e-mail by
> mistake, kindly notify the sender, and delete this e-mail, immediately and do not disclose or use same in any manner whatsoever. Views and opinions
> expressed in this e-mail are those of the sender unless clearly stated as those of the Group. The Group accepts no liability whatsoever for any loss or
> damages whatsoever and howsoever incurred, or suffered, resulting, or arising, from the use of this email or its attachments. The Group does not warrant the integrity
> of this e-mail nor that it is free of errors, viruses, interception or interference. Licensed divisions of the Standard Bank Group are authorised financial services providers
> in terms of the Financial Advisory and Intermediary Services Act, No 37 of 2002 (FAIS).
> For information about the Standard Bank Group Limited visit our website http://www.standardbank.co.za
> ___________________________________________________________________________________________________________________________________
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: http://lists.opencms.org/pipermail/opencms-dev/attachments/20050811/7ac5ab2c/attachment-0001.html
> 
> ------------------------------
> 
> Message: 13
> Date: Thu, 11 Aug 2005 09:26:06 +0200
> From: Michael Moossen <m.moossen at alkacon.com>
> Subject: Re: [opencms-dev] using A_CmsListDialog, where is all the
>        JavaScript?
> To: The OpenCms mailing list <opencms-dev at opencms.org>
> Message-ID: <1123745166.42fafd8ece0a8 at webmail.alkacon.com>
> Content-Type: text/plain; charset=ISO-8859-1
> 
> Hi, Alexander!
> 
> > Now i placed the setParamStyle("new"); in
> > the constructor and have no javascript errors....
> good :)
> 
> > I am hoping that the framework is not made so it will only work when adding
> > modules to the administration view.
> until now, that is the approach... to have only one admin view, where you can
> add your own group of tools. i think it could also works in a own view, but it
> will not be so easy. for more info read this thread:
> http://mail.opencms.org/pipermail/opencms-dev/2005q3/018781.html
> i would recommend to experience in the admin view and when you feel confidential
> with the whole thing, then try it out outside of the admin view.
> 
> > I hope there is some parameter i'm missing or something so that all actions
> > submit to my form to handle the user requests...
> this does not make much sence for me... (well, i never tried out a list dialog
> outside of the admin view). may be you could check followings:
> - there is a parameter called "closelink", where you can set page displayed
> after "closing" a dialog.
> - take a look at the A_CmsListDialog.actionDialog() method, there are the
> actions triggered.
> 
> --
> Regards
> Michael Moossen
> Alkacon Software - The OpenCms Experts
> 
> http://www.alkacon.com
> 
> 
> 
> Quoting Alexander Wallace <aw at avatartechnology.com>:
> 
> > Ok! thanks that did something different :)
> >
> > Indeed now the javascript is in place, there are no javascript errors
> > whatsoever and the help is being displayed on the "admin menu"....
> >
> > Maybe i started this the wrong way, but i really have no way of knowing the
> > requirements of this whole framework, so let me tell you what i'm doing, and
> >
> > perhaps you can tell me what's the right aproach to the framework and if
> > there are limmitations, etc...
> >
> > What i did was to create a class that extednds A_CmsListDialog and
> > implemented
> > enough code to list my items, and also placed code on the
> > executeListSingleActions method... Now i placed the setParamStyle("new"); in
> >
> > the constructor and have no javascript errors....
> >
> > I went on and created my own "view" in opencms and created a jsp that pulls
> > the Administration menu (a temporary solution to see if it would give me the
> >
> > javascript) which eventually i want to replace with my own menu, it really is
> >
> > there just to see something.... In another frame, i have my dialog, which
> > displays fine...
> >
> > However, all actions on any of the icons and the search box take me to the
> > administration view... So evidently there is some settings that tell the
> > browser where to go once actions are executing, and i'm not setting that...
> >
> > I am hoping that the framework is not made so it will only work when adding
> > modules to the administration view.
> >
> > I'll do more code digging, but if you have suggestions on how to effectively
> >
> > use the framework, i really appreciate it!
> >
> > Thanks!
> > On Wednesday 10 August 2005 10:31 am, Michael Moossen wrote:
> > > style
> >
> >
> > _______________________________________________
> > This mail is send to you from the opencms-dev mailing list
> > To change your list options, or to unsubscribe from the list, please visit
> > http://mail.opencms.org/mailman/listinfo/opencms-dev
> >
> 
> 
> ----------------------------------------------------------------
> This message was sent using IMP, the Internet Messaging Program.
> 
> 
> ------------------------------
> 
> Message: 14
> Date: Thu, 11 Aug 2005 09:38:55 +0100
> From: "Gonzalez, Arnau \(GE Consumer Finance,   consultant\)"
>        <arnau.gonzalez at ge.com>
> Subject: RE: [opencms-dev] Database migration
> To: "The OpenCms mailing list" <opencms-dev at opencms.org>
> Message-ID:
>        <B61757CDBBC8BA478834BB3B96A5A5240F761D1A at KINMLVEM04.e2k.ad.ge.com>
> Content-Type: text/plain;       charset="iso-8859-1"
> 
> I see the options in the Database Management.
> 
> Thankyou
> Arnau
> 
> -----Mensaje original-----
> De: opencms-dev-bounces at opencms.org
> [mailto:opencms-dev-bounces at opencms.org]En nombre de Andras Balogh
> Enviado el: mi�rcoles, 10 de agosto de 2005 15:01
> Para: The OpenCms mailing list
> Asunto: Re: [opencms-dev] Database migration
> 
> 
> Hello,
> 
> I think this would be possible using OpenCms's Export/Import Database
> and/or Export/Import Modules
> functionality.
> 
> Best regards,
> Andras
> 
> Gonzalez, Arnau (GE Consumer Finance, consultant) wrote:
> 
> >Hello,
> >
> >It would be possible to move all the OpenCms content stored in a DB to another DB? In example, from MySQL to Oracle. How difficult would it be?
> >
> >Thanks in advance
> >
> >
> >_______________________________________________
> >This mail is send to you from the opencms-dev mailing list
> >To change your list options, or to unsubscribe from the list, please visit
> >http://mail.opencms.org/mailman/listinfo/opencms-dev
> >
> >
> >
> 
> 
> 
> _______________________________________________
> This mail is send to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://mail.opencms.org/mailman/listinfo/opencms-dev
> 
> ------------------------------
> 
> _______________________________________________
> This mail is send to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://mail.opencms.org/mailman/listinfo/opencms-dev
> 
> End of opencms-dev Digest, Vol 53, Issue 4
> ******************************************
> 


-- 
Swamy K.P.N
             Software Engineer


More information about the opencms-dev mailing list