[opencms-dev] publishProject using CmsMain doesn't work?

Bart Elberg belberg at idealcorp.com
Thu Jul 18 16:43:46 CEST 2002


I am automating several OpenCms activities by running CmsMain and 
supplying a script file.  The one problem I am having is that 
pushlishProject and publishResource always report "[CmsStaticExport] 
Nothing found to export.", yet if I login to OpenCms via the web and 
click on the publish button, it does work.  There are modified files to 
be exported.  Below (after my signature) is an example session with the 
commands I use.  It even shows that the publishResource command does the 
same thing.  The basic sequence is :

    login
    setCurrentProject
    publishProject

Has anyone successfully used the command line interface to publish?  Any 
help is appreciated!!

System Configuration:

    OpenCms 4.6.1
    JDK 1.4.0
    Mandrake Linux

-- 
Bart Elberg
__________________________________________________
I.D.E.A.L. Technology Corporation - Orlando Office
http://www.idealcorp.com - 407.999.9870 x15



> cd ${CATALINA_HOME}/webapps/opencms/WEB-INF/config
> java com.opencms.boot.CmsMain -base= ${CATALINA_HOME}/webapps/opencms/WEB-INF

[CmsBase] Setting OpenCms home folder to /home/belberg/rbocs/jakarta-tomcat-4.0.3/webapps/opencms/WEB-INF/.
Collecting Repositories
[CmsClassLoader] Adding repository /home/belberg/rbocs/jakarta-tomcat-4.0.3/webapps/opencms/WEB-INF/occlasses
oclib folder: /home/belberg/rbocs/jakarta-tomcat-4.0.3/webapps/opencms/WEB-INF/oclib
jarlist
[CmsClassLoader] Adding repository /home/belberg/rbocs/jakarta-tomcat-4.0.3/webapps/opencms/WEB-INF/oclib/activation.jar
[CmsClassLoader] Adding repository /home/belberg/rbocs/jakarta-tomcat-4.0.3/webapps/opencms/WEB-INF/oclib/mm.mysql-2.0.4-bin.jar
[CmsClassLoader] Adding repository /home/belberg/rbocs/jakarta-tomcat-4.0.3/webapps/opencms/WEB-INF/oclib/mail.jar
[CmsClassLoader] Adding repository /home/belberg/rbocs/jakarta-tomcat-4.0.3/webapps/opencms/WEB-INF/oclib/Tidy.jar
[CmsClassLoader] Adding repository /home/belberg/rbocs/jakarta-tomcat-4.0.3/webapps/opencms/WEB-INF/oclib/fop.jar
[CmsClassLoader] Adding repository /home/belberg/rbocs/jakarta-tomcat-4.0.3/webapps/opencms/WEB-INF/oclib/xerces-1_4_4.jar
[CmsClassLoader] Adding repository /home/belberg/rbocs/jakarta-tomcat-4.0.3/webapps/opencms/WEB-INF/oclib/opencms.jar
[CmsClassLoader] Adding repository /home/belberg/rbocs/jakarta-tomcat-4.0.3/webapps/opencms/WEB-INF/oclib/jakarta-oro-2.0.6.jar
[CmsClassLoader] Adding repository /home/belberg/rbocs/jakarta-tomcat-4.0.3/webapps/opencms/WEB-INF/oclib/fesi.jar
%%% props: /home/belberg/rbocs/jakarta-tomcat-4.0.3/webapps/opencms/WEB-INF/config/opencms.properties
[OpenCmsServlet] logging started
[OpenCmsServlet] JDK Info: Java HotSpot(TM) Client VM 1.4.0-b92 mixed mode Sun Microsystems Inc.
[OpenCmsServlet] OS Info: Linux 2.4.18-6mdk i386
[OpenCmsServlet] file.encoding: ISO-8859-1
[OpenCms] creating first cms-object
[OpenCms] initializing the main resource-broker
[CmsRbManager] ressourcebroker-name: mysql
[CmsRbManager] ressourcebroker-classname: com.opencms.file.mySql.CmsResourceBroker
[CmsRbManager] got rb-class
[CmsRbManager] created rb-instance
[CmsResourceBroker] init the dbaccess-module.
[CmsDbAccess] init the dbaccess-module.
[CmsDbAccess] read pool-name from configurations: jdbc:opencmspool:mysql
[CmsDbAccess] read online-pool-name from configurations: jdbc:opencmspool:mysqlonline
[CmsDbAccess] read backup-pool-name from configurations: jdbc:opencmspool:mysqlbackup
[CmsDbAccess] read digest from configurations: MD5
[CmsDbAccess] read digestFileEncoding from configurations: UTF-8
[CmsDbAccess] digest created, using: MD5 Message Digest from SUN, <initialized>
[com.opencms.dbpool.CmsPool] mysql: creating new connection. Current Amount is:0
[com.opencms.dbpool.CmsPool] mysql: creating new connection. Current Amount is:1
[com.opencms.dbpool.CmsPool] mysql: creating new connection. Current Amount is:2
[com.opencms.dbpool.CmsPool] mysql: creating new connection. Current Amount is:3
[com.opencms.dbpool.CmsPool] mysql: creating new connection. Current Amount is:4
[com.opencms.dbpool.CmsPool] mysql: creating new connection. Current Amount is:5
[com.opencms.dbpool.CmsPool] mysql: creating new connection. Current Amount is:6
[com.opencms.dbpool.CmsPool] mysql: creating new connection. Current Amount is:7
[com.opencms.dbpool.CmsPool] mysql: creating new connection. Current Amount is:8
[com.opencms.dbpool.CmsPool] mysql: creating new connection. Current Amount is:9
[com.opencms.dbpool.CmsPool] mysql: created
[com.opencms.dbpool.CmsPool] mysql: starting connection-guard
[CmsResourceBroker] init registry.
[CmsRbManager] initialized the rb-instance
${env.USERNAME}_2002-06-05-16-57 Ecaz

Copyright (C) 2001 The OpenCms Group
OpenCms comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to
redistribute it under certain conditions.
Please see the GNU Lesser General Public Licence for
further details.

${env.USERNAME}_2002-06-05-16-57 Ecaz

Copyright (C) 2001 The OpenCms Group
OpenCms comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to
redistribute it under certain conditions.
Please see the GNU Lesser General Public Licence for
further details.

[OpenCms] read mime types
[CmsResourceBroker] could not read mimetypes from properties. null
[OpenCms] found 0 mime-type entrys
[OpenCms] HTTP streaming disabled.
[OpenCmsServlet] initializing CmsCronScheduler... DONE
[OpenCms] initialize launchers...
[CmsLauncherManager] launcher package is:com.opencms.launcher
[CmsLauncherManager] Unknown error while initializing launcher "com.opencms.launcher.CmsXmlLauncher". Ignoring.
[CmsLauncherManager] java.lang.NoClassDefFoundError: javax/servlet/ServletRequest
[CmsLauncherManager] Unknown error while initializing launcher "com.opencms.launcher.CmsDumpLauncher". Ignoring.
[CmsLauncherManager] java.lang.NoClassDefFoundError: javax/servlet/ServletRequest
[CmsLauncherManager] Unknown error while initializing launcher "com.opencms.launcher.CmsLinkLauncher". Ignoring.
[CmsLauncherManager] java.lang.NoClassDefFoundError: javax/servlet/http/HttpServletResponse
[CmsLauncherManager] OpenCms launcher "com.opencms.launcher.CmsPdfLauncher" not found. Ignoring.
[OpenCms] element cache enabled.
[OpenCms] initializing link replace rules.
[CmsStaticExport] Generating the dynamic rulesets.
[com.opencms.dbpool.CmsPool] mysqlonline: creating new connection. Current Amount is:0
[com.opencms.dbpool.CmsPool] mysqlonline: creating new connection. Current Amount is:1
[com.opencms.dbpool.CmsPool] mysqlonline: creating new connection. Current Amount is:2
[com.opencms.dbpool.CmsPool] mysqlonline: creating new connection. Current Amount is:3
[com.opencms.dbpool.CmsPool] mysqlonline: creating new connection. Current Amount is:4
[com.opencms.dbpool.CmsPool] mysqlonline: created
[com.opencms.dbpool.CmsPool] mysqlonline: starting connection-guard
${env.USERNAME}_2002-06-05-16-57 Ecaz

Copyright (C) 2001 The OpenCms Group
OpenCms comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to
redistribute it under certain conditions.
Please see the GNU Lesser General Public Licence for
further details.

help              Gives a list of available commands with signature
help <command>    Shows signature of command
help <substring>  Lists only those commands containing this substring
help help         Prints this text
exit or quit      Leaves the Shell

{Guest at Online}> login admin admin
[User]:Admin , Id=2 , flags=0 , type=0 :the admin-user
[Admin at Online}> setCurrentProject 21
[Project]:RBOCS , Id=21 :Role Based Online Collaboration System
{Admin at RBOCS}> publishProject 21
[CmsClassManager] clearing class instance cache.
[com.opencms.dbpool.CmsPool] mysqlbackup: creating new connection. Current Amount is:0
[com.opencms.dbpool.CmsPool] mysqlbackup: creating new connection. Current Amount is:1
[com.opencms.dbpool.CmsPool] mysqlbackup: creating new connection. Current Amount is:2
[com.opencms.dbpool.CmsPool] mysqlbackup: creating new connection. Current Amount is:3
[com.opencms.dbpool.CmsPool] mysqlbackup: creating new connection. Current Amount is:4
[com.opencms.dbpool.CmsPool] mysqlbackup: created
[com.opencms.dbpool.CmsPool] mysqlbackup: starting connection-guard
[CmsClassManager] clearing class instance cache.
[CmsStaticExport] Nothing found to export.
###################################
PublishProject 21 CmsObject Time:Thu Jul 18 10:25:16 EDT 2002
currentUser:[User]:Admin , Id=2 , flags=0 , type=0 :the admin-user
Vector was null or empty
{Admin at RBOCS}> publishResource "/"
[CmsClassManager] clearing class instance cache.
[CmsClassManager] clearing class instance cache.
[CmsStaticExport] Nothing found to export.
{Admin at RBOCS}>





More information about the opencms-dev mailing list