Forum Ametys

Forum de la communauté Ametys

You are not logged in.

#1 17/09/2014 14:23:52

rafael
Guest
Registered: 17/09/2014
Posts: 12

Confused about the package

Hi,

Ametys 3.5.4 archive produced 2 folders - cms and site. I uploaded the cms directory to the webapps directory of the Tomcat container and accessed the URL as http://mydomain:8080/cms

I was prompted for a admin password and redirected to the Admin Configuration page. I presume this is the Admin Panel for the CMS and hence I filled up all the relevant details and hit "Save Configurations". Redirected to the Admin Panel with huge menu icons. Looks good.

http://mydomain:8080/cms/_admin

If I access http://mydomain:8080/cms/ I can simply see a static page which I presume is the Site of the CMS.
This completes my Ametys installation.

Now the main questions is - What is the requirement of the site directory ?

Any help is highly appreciated.

Last edited by rafael (17/09/2014 14:25:09)

Offline

#2 17/09/2014 14:29:30

Raphaël Franchet
Expert Team
From: Toulouse
Registered: 10/08/2010
Posts: 1,117

Re: Confused about the package

Hi,

in Ametys there is a back-office application 'cms' and a front-office application 'site'.
Each one has a system administrator space (cms/_admin and site/_admin) to handle system parameters.

When you go to the cms root, you will obtain a static page listing the sites you are allowed to handle.

Consider using the "demo" package that is functionnaly exactly the same, but with demo data.


Raphael Franchet
Expert Ametys

Offline

#3 18/09/2014 09:32:36

rafael
Guest
Registered: 17/09/2014
Posts: 12

Re: Confused about the package

An error occurred. Please contact the administrator of the application.org.apache.avalon.framework.component.ComponentException: Unable to initialize the ComponentManager (key [org.apache.cocoon.Processor]) at org.ametys.runtime.cocoon.TreeProcessor.compose(TreeProcessor.java:94) at org.apache.avalon.framework.container.ContainerUtil.compose(ContainerUtil.java:173) at org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:266) at org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:108) at org.apache.avalon.excalibur.component.ExcaliburComponentManager.initialize(ExcaliburComponentManager.java:524) at org.apache.cocoon.components.CocoonComponentManager.initialize(CocoonComponentManager.java:583) at org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:244) at org.apache.cocoon.Cocoon.initialize(Cocoon.java:345) at org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:244) at org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:1435) at org.ametys.runtime.servlet.RuntimeServlet.createCocoon(RuntimeServlet.java:225) at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:495) at org.ametys.runtime.servlet.RuntimeServlet.init(RuntimeServlet.java:171) at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1284) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1197) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1087) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5210) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5493) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1247) at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1898) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.Exception: Caught an exception trying to initialize the component org.ametys.web.live.RebuildLiveWorkspaceTimerTask at org.ametys.runtime.plugin.component.ThreadSafeComponentManager.initialize(ThreadSafeComponentManager.java:205) at org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:244) at org.ametys.runtime.cocoon.TreeProcessor.compose(TreeProcessor.java:62) ... 28 more Caused by: org.apache.avalon.framework.service.ServiceException: Unable to initialize component javax.jcr.Repository (key [javax.jcr.Repository]) (Key='javax.jcr.Repository') at org.apache.avalon.framework.service.WrapperServiceManager.lookup(WrapperServiceManager.java:80) at org.ametys.web.live.RebuildLiveWorkspaceTimerTask.service(RebuildLiveWorkspaceTimerTask.java:94) at org.apache.avalon.framework.container.ContainerUtil.service(ContainerUtil.java:143) at org.ametys.runtime.plugin.component.ThreadSafeComponentManager$ComponentFactory.instanciate(ThreadSafeComponentManager.java:376) at org.ametys.runtime.plugin.component.PluginsComponentManager$ProxyComponentFactory.newInstance(PluginsComponentManager.java:104) at org.ametys.runtime.plugin.component.PluginsComponentManager$ProxyComponentFactory.newInstance(PluginsComponentManager.java:94) at org.ametys.runtime.plugin.component.ThreadSafeComponentManager.initialize(ThreadSafeComponentManager.java:200) ... 30 more

Any idea what this could be ?

Offline

#4 18/09/2014 09:45:03

rafael
Guest
Registered: 17/09/2014
Posts: 12

Re: Confused about the package

Unable to initialize component javax.jcr.Repository

This is the cause - Any suggestions to fix it up ?

Offline

#5 18/09/2014 09:51:58

Raphaël Franchet
Expert Team
From: Toulouse
Registered: 10/08/2010
Posts: 1,117

Re: Confused about the package

It says it cannot start the JCR repository : can be due to rights issues on cms/WEB-INF/data
But the trace is incomplete. Can you give me the complete one from the log file : cms/WEB-INF/logs


Raphael Franchet
Expert Ametys

Offline

#6 18/09/2014 10:04:51

rafael
Guest
Registered: 17/09/2014
Posts: 12

Re: Confused about the package

Please find the attached log file

Offline

#7 18/09/2014 10:13:04

Raphaël Franchet
Expert Team
From: Toulouse
Registered: 10/08/2010
Posts: 1,117

Re: Confused about the package

I think you forgot to validate the attachment.


Raphael Franchet
Expert Ametys

Offline

#8 18/09/2014 11:16:00

rafael
Guest
Registered: 17/09/2014
Posts: 12

Re: Confused about the package

Sending it over again.

Offline

#9 18/09/2014 11:31:55

Raphaël Franchet
Expert Team
From: Toulouse
Registered: 10/08/2010
Posts: 1,117

Re: Confused about the package

This issue is so "The repository home /usr/share/tomcat/webapps/amet514/WEB-INF/data/repository appears to be in use since the file named .lock is already locked by the current process."

First stop all tomcat instances and check this with a "ps waux | grep tomcat"
Go to "/usr/share/tomcat/webapps/amet514/WEB-INF/data/" and check that repository can be written by the user launching tomcat (can be tomcat6 or tomcat7 in a package installation)
Then start tomcat and check it is launched once only (with a ps again).
If you still have the error, check in the tomcat manager console that Ametys is launched once only


Raphael Franchet
Expert Ametys

Offline

#10 18/09/2014 12:23:39

rafael
Guest
Registered: 17/09/2014
Posts: 12

Re: Confused about the package

That did not help..

Still the same. Tried it all sad

Offline

#11 18/09/2014 13:32:40

Raphaël Franchet
Expert Team
From: Toulouse
Registered: 10/08/2010
Posts: 1,117

Re: Confused about the package

when the tomcat is runing can you do a "ps waux | grep tomcat" and copy the result here please

and can you also do "ls -la /usr/share/tomcat/webapps/amet514/WEB-INF/data" and copy the result here


Raphael Franchet
Expert Ametys

Offline

#12 19/09/2014 08:24:34

rafael
Guest
Registered: 17/09/2014
Posts: 12

Re: Confused about the package

[root@localhost ~]# ps waux | grep tomcat
rafael      1901 93.1 29.7 1456616 190004 ?      Sl   02:19   0:32 /usr/bin/java -Djava.util.logging.config.file=/usr/share/tomcat/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -server -Xmx1024M -XX:PermSize=128m -XX:MaxPermSize=256m -Djava.endorsed.dirs=/usr/share/tomcat/endorsed -classpath /usr/share/tomcat/bin/bootstrap.jar:/usr/share/tomcat/bin/tomcat-juli.jar -Dcatalina.base=/usr/share/tomcat -Dcatalina.home=/usr/share/tomcat -Djava.io.tmpdir=/usr/share/tomcat/temp org.apache.catalina.startup.Bootstrap start

--------------------------------------------------

[root@localhost ~]# ls -la /usr/share/tomcat/webapps/amet514/WEB-INF/data/
total 24
drwxr-xr-x 6 rafael rafael 4096 Sep 19 02:20 .
drwxr-xr-x 9 rafael rafael 4096 Sep 19 02:20 ..
drwxr-xr-x 2 rafael rafael 4096 Sep 19 02:19 administrator
drwxrwxr-x 2 rafael rafael 4096 Sep 19 02:20 monitoring
drwxrwxr-x 6 rafael rafael 4096 Sep 19 02:20 repository
drwxrwxr-x 2 rafael rafael 4096 Sep 19 02:20 uploads

Offline

#13 19/09/2014 08:43:37

rafael
Guest
Registered: 17/09/2014
Posts: 12

Re: Confused about the package

Hi,

Is there a problem is I add the WEB-INF/config/config.xml and WEB-INF/config/data/administrator/admin.xml to the directory structure before deploying it to the tomcat container.

Could this be the issue ? If yes, why ?
Appreciate your assistance so far.

Offline

#14 19/09/2014 09:40:21

Raphaël Franchet
Expert Team
From: Toulouse
Registered: 10/08/2010
Posts: 1,117

Re: Confused about the package

No that is not an issue ; except that WEB-INF/config/data/administrator/admin.xml does not exits => this is WEB-INF/data/administrator/admin.xml

What you can try
* Cut the tomcat and manualy remove the lock file. Start again.
* Was the repository already in place ? or auto-created by ametys ?Tomcat cut, try to rename it to "WEB-INF/data/repository.bak"
* Finally, you should restart the whole computer since there is obviously a process having a hook on the repository directory


Raphael Franchet
Expert Ametys

Offline

#15 19/09/2014 12:08:37

rafael
Guest
Registered: 17/09/2014
Posts: 12

Re: Confused about the package

No that is not an issue ; except that WEB-INF/config/data/administrator/admin.xml does not exits => this is WEB-INF/data/administrator/admin.xml

Apologies for the invalid path.

What you can try

Tried everything. Even rebooted the whole machine.
No luck  sad

Offline

#16 19/09/2014 15:53:10

Raphaël Franchet
Expert Team
From: Toulouse
Registered: 10/08/2010
Posts: 1,117

Re: Confused about the package

The error is still the same (.lock file by another process ?)

Try a "lsof" on the file to know the owners.

raphael@server:~$ sudo lsof /.../WEB-INF/data/repository/.lock
COMMAND   PID    USER   FD   TYPE DEVICE SIZE/OFF    NODE NAME
java    22208 tomcat6 1842uw  REG  252,2        0 2886551 /.../WEB-INF/data/repository/.lock

Raphael Franchet
Expert Ametys

Offline

#17 11/01/2016 07:36:54

mikovirgoez
Guest
From: Indonesia
Registered: 11/01/2016
Posts: 1

Re: Confused about the package

Thanks for info.  smile

Last edited by mikovirgoez (07/09/2018 04:43:35)


We Are The Poeple

Offline

Board footer

Powered by FluxBB