11-04-2008 03:30 PM
01-19-2009 04:51 AM
<portlet>
<description>Your portlet description</description>
<portlet-name>YourPortletName</portlet-name>
<portlet-class>org.alfresco.web.scripts.portlet.WebScriptPortlet</portlet-class>
<init-param>
<name>authenticator</name>
<value>webscripts.authenticator.jsr168.webclient</value>
</init-param>
<init-param>
<name>scriptUrl</name>
<value>/alfresco/168s/yourwebscriptpackage/yourwebscript</value>
</init-param>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
<portlet-mode>VIEW</portlet-mode>
</supports>
<portlet-info>
<title>YourPortletTitle</title>
<short-title>YourPortletShortTitle</short-title>
</portlet-info>
</portlet>
03-12-2009 07:07 AM
03-20-2009 05:07 PM
<portlet-app>
<portlet>
<portlet-name>samplePortletName</portlet-name>
<header-content></header-content>
</portlet>
</portlet-app>
04-15-2009 11:17 AM
04-16-2009 11:32 AM
WebApplicationContext context = (WebApplicationContext)portletCtx.getAttribute(WebApplicationContext.ROOT_WEB_APPLICATION_CONTEXT_ATTRIBUTE);
container = (RuntimeContainer)context.getBean("webscripts.container");
So I wrote a wrapper to org.alfresco.web.scripts.portlet.WebScriptPortlet and created the Context:04-23-2009 05:55 PM
04-27-2009 05:38 AM
05-23-2009 06:15 AM
10:11:17,906 ERROR [PortletHotDeployListener:596] java.lang.NullPointerException
java.lang.NullPointerException
at org.alfresco.web.scripts.portlet.WebScriptPortlet.init(WebScriptPortl
et.java:86)
at com.liferay.portlet.InvokerPortletImpl.init(InvokerPortletImpl.java:2
50)
at com.liferay.portlet.PortletInstanceFactoryImpl.init(PortletInstanceFa
ctoryImpl.java:245)
at com.liferay.portlet.PortletInstanceFactoryImpl.create(PortletInstance
FactoryImpl.java:135)
at com.liferay.portlet.PortletInstanceFactoryUtil.create(PortletInstance
FactoryUtil.java:47)
at com.liferay.portal.deploy.hot.PortletHotDeployListener.initPortlet(Po
rtletHotDeployListener.java:593)
at com.liferay.portal.deploy.hot.PortletHotDeployListener.doInvokeDeploy
(PortletHotDeployListener.java:242)
10:13:31,484 INFO [domain.schema.SchemaBootstrap] No changes were made to the
schema.
10:13:38,500 Userystem ERROR [util.exec.RuntimeExecBootstrapBean] Bootstrap co
mmand failed:
Execution result:
os: Windows XP
command: [soffice, -accept=socket,host=localhost,port=8100;urp;StarOffice.
ServiceManager, -env:UserInstallation=file:///C:/liferay-portal-tomcat-6.0-5.2.2
/liferay-portal-5.2.2/tomcat-6.0.18/bin/alf_data/oouser, -nologo, -headless, -no
firststartwizard, -nocrashrep, -norestore]
succeeded: false
exit code: 2
out:
err: Cannot run program "soffice": CreateProcess error=2, Impossibile
trovare il file specificato
10:13:39,484 Userystem INFO [alfresco.config.JndiPropertyPlaceholderConfigure
r] Loading properties file from class path resource [alfresco/alfresco-shared.pr
operties]
10:13:39,531 Userystem ERROR [transform.magick.AbstractImageMagickContentTrans
formerWorker] ImageMagickContentTransformerWorker not available: 04230000 Failed
to perform ImageMagick transformation:
Execution result:
os: Windows XP
command: [./ImageMagick/bin/convert, C:\liferay-portal-tomcat-6.0-5.2.2\li
feray-portal-5.2.2\tomcat-6.0.18\temp\Alfresco\ImageMagickContentTransformerWork
er_init_source_8753417715111386950.gif[0], C:\liferay-portal-tomcat-6.0-5.2.2\li
feray-portal-5.2.2\tomcat-6.0.18\temp\Alfresco\ImageMagickContentTransformerWork
er_init_target_8125526665560216998.png]
succeeded: false
exit code: 1
out:
err: Cannot run program "./ImageMagick/bin/convert": CreateProcess err
or=2, Impossibile trovare il file specificato
10:13:40,671 Userystem ERROR [content.transform.RuntimeExecutableContentTransf
ormerWorker] Failed to start a runtime executable content transformer:
Execution result:
os: Windows XP
command: [./bin/pdf2swf, -V]
succeeded: false
exit code: 1
out:
err: Cannot run program "./bin/pdf2swf": CreateProcess error=2, Imposs
ibile trovare il file specificato
10:13:40,671 Userystem ERROR [util.exec.RuntimeExecBootstrapBean] Bootstrap co
mmand failed:
Execution result:
os: Windows XP
command: [soffice, -accept=socket,host=localhost,port=8100;urp;StarOffice.
ServiceManager, -env:UserInstallation=file:///C:/liferay-portal-tomcat-6.0-5.2.2
/liferay-portal-5.2.2/tomcat-6.0.18/bin/alf_data/oouser, -nologo, -headless, -no
firststartwizard, -nocrashrep, -norestore]
succeeded: false
exit code: 2
out:
err: Cannot run program "soffice": CreateProcess error=2, Impossibile
trovare il file specificato
10:13:41,671 Userystem WARN [alfresco.util.OpenOfficeConnectionTester] An ini
tial OpenOffice connection could not be established.
10:13:42,000 Userystem INFO [repo.admin.ConfigurationChecker] The Alfresco ro
ot data directory ('dir.root') is: C:\liferay-portal-tomcat-6.0-5.2.2\liferay-po
rtal-5.2.2\tomcat-6.0.18\bin\alf_data
10:13:42,093 Userystem INFO [admin.patch.PatchExecuter] Checking for patches
to apply …
10:13:42,406 Userystem INFO [admin.patch.PatchExecuter] No patches were requi
red.
10:13:42,406 Userystem INFO [repo.module.ModuleServiceImpl] Found 0 module(s)
.
10:13:42,437 Userystem INFO [alfresco.config.JndiPropertyPlaceholderConfigure
r] Loading properties file from class path resource [alfresco/alfresco-shared.pr
operties]
10:13:42,812 Userystem INFO [alfresco.config.JndiPropertyPlaceholderConfigure
r] Loading properties file from class path resource [alfresco/alfresco-shared.pr
operties]
10:13:43,281 Userystem INFO [service.descriptor.DescriptorService] Alfresco J
VM - v1.6.0_12-b04; maximum heap size 1016,125MB
10:13:43,281 Userystem INFO [service.descriptor.DescriptorService] Alfresco s
tarted (Labs): Current version 3.2.0 (_Preview2_dev @build-number@) schema 2011
- Installed version 3.2.0 (_Preview2_dev @build-number@) schema 2011
10:13:46,687 INFO [PluginPackageUtil:1148] Reloading repositories
23-mag-2009 10.14.04 org.apache.catalina.core.StandardContext start
GRAVE: Error filterStart
23-mag-2009 10.14.04 org.apache.catalina.core.StandardContext start
GRAVE: Context [/alfresco] startup failed due to previous errors
10:14:06,515 INFO [PortletHotDeployListener:333] Unregistering portlets for alf
resco
10:14:06,531 INFO [PortletHotDeployListener:367] 6 portlets for alfresco was un
registered
10:18:30,578 DEBUG [Init:?] XX_configure_reg_resourceresolver 15 ms
10:18:30,593 DEBUG [Init:?] XX_configure_reg_sigalgos 94 ms
10:18:30,593 DEBUG [Init:?] XX_configure_reg_transforms 47 ms
10:18:36,640 ERROR [repo.shutdown.ShutdownBackstop] Alfresco terminating via Sh
utdown Backstop
10:18:43,281 ERROR [repo.shutdown.ShutdownBackstop] Alfresco terminated
23-mag-2009 10.18.43 org.apache.coyote.http11.Http11Protocol pause
INFO: Pausing Coyote HTTP/1.1 on http-8080
23-mag-2009 10.18.44 org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
23-mag-2009 10.18.44 org.apache.coyote.http11.Http11Protocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-8080
05-29-2009 11:03 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.