Wow. Thanks for the detailed instructions. This should be in the wiki somewhere I think.
I'm close but not quite there yet. First I followed the simplest set of building liferay instructions I could find. Here
http://wikis.sun.com/display/websynergy/Building+Liferay+on+Tomcat
I seemed to get Liferay starting just fine that way. Then I wiped it clean and started again. I followed your instructions with one modification -I modified the build.properties file at the root of the portlets svn directory to point to my tomcat install.
Everything seemed to build just fine. All successes, no errors (just a few warnings).
After a few minutes SO came to life. I signed in just fine, and then came up the page to ask about a secret for a password reminder. Right after that I got a Null Pointer Exception and going anywhere else seemed to cause the same NPE.
I looked in the catalina logs and found the following exception when tomcat was starting up and trying to deploy
121:19:30,351 ERROR [HotDeployUtil:111] com.liferay.portal.kernel.deploy.hot.HotDeployException: Error registering hook for so-portlet
2com.liferay.portal.kernel.deploy.hot.HotDeployException: Error registering hook for so-portlet
3 at com.liferay.portal.deploy.hot.BaseHotDeployListener.throwHotDeployException(BaseHotDeployListener.java:58)
4 at com.liferay.portal.deploy.hot.HookHotDeployListener.invokeDeploy(HookHotDeployListener.java:104)
5 at com.liferay.portal.kernel.deploy.hot.HotDeployUtil._doFireDeployEvent(HotDeployUtil.java:108)
6 at com.liferay.portal.kernel.deploy.hot.HotDeployUtil._fireDeployEvent(HotDeployUtil.java:153)
7 at com.liferay.portal.kernel.deploy.hot.HotDeployUtil.fireDeployEvent(HotDeployUtil.java:43)
8 at com.liferay.portal.kernel.servlet.PortletContextListener.portalInit(PortletContextListener.java:113)
9 at com.liferay.portal.kernel.util.PortalInitableUtil.init(PortalInitableUtil.java:48)
10 at com.liferay.portal.kernel.servlet.PortletContextListener.contextInitialized(PortletContextListener.java:109)
11 at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
12 at org.apache.catalina.core.StandardContext.start(StandardContext.java:4342)
13 at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
14 at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
15 at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
16 at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:926)
17 at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:889)
18 at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
19 at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1217)
20 at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:293)
21 at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
22 at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1337)
23 at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601)
24 at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)
25 at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1590)
26 at java.lang.Thread.run(Thread.java:619)
27Caused by: com.liferay.portal.kernel.events.ActionException: com.liferay.portal.ModelListenerException: java.lang.NullPointerException
28 at com.liferay.so.hook.events.StartupAction.run(StartupAction.java:72)
29 at com.liferay.portal.kernel.events.InvokerSimpleAction.run(InvokerSimpleAction.java:52)
30 at com.liferay.portal.deploy.hot.HookHotDeployListener.initEvent(HookHotDeployListener.java:589)
31 at com.liferay.portal.deploy.hot.HookHotDeployListener.initEvents(HookHotDeployListener.java:650)
32 at com.liferay.portal.deploy.hot.HookHotDeployListener.doInvokeDeploy(HookHotDeployListener.java:244)
33 at com.liferay.portal.deploy.hot.HookHotDeployListener.invokeDeploy(HookHotDeployListener.java:101)
34 ... 22 more
35Caused by: com.liferay.portal.ModelListenerException: java.lang.NullPointerException
36 at com.liferay.so.hook.listeners.LayoutSetListener.onAfterCreate(LayoutSetListener.java:78)
37 at com.liferay.so.hook.listeners.LayoutSetListener.onAfterCreate(LayoutSetListener.java:56)
38 at com.liferay.portal.model.InvokerModelListener.onAfterCreate(InvokerModelListener.java:70)
39 at com.liferay.portal.service.persistence.LayoutSetPersistenceImpl.update(LayoutSetPersistenceImpl.java:276)
40 at com.liferay.portal.service.impl.LayoutSetLocalServiceImpl.addLayoutSet(LayoutSetLocalServiceImpl.java:84)
41 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
42 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
43 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
44 at java.lang.reflect.Method.invoke(Method.java:597)
45 at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
46 at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
47 at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
48 at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
49 at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
50 at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
51 at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
52 at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
53 at $Proxy70.addUser(Unknown Source)
54 at com.liferay.portal.service.UserLocalServiceUtil.addUser(UserLocalServiceUtil.java:149)
55 at com.liferay.so.hook.events.StartupAction.setupUsers(StartupAction.java:332)
56 at com.liferay.so.hook.events.StartupAction.doRun(StartupAction.java:93)
57 at com.liferay.so.hook.events.StartupAction.run(StartupAction.java:69)
58 ... 27 more
59Caused by: java.lang.NullPointerException
60 at com.liferay.portal.model.impl.LayoutTypePortletImpl.setLayoutTemplateId(LayoutTypePortletImpl.java:200)
61 at com.liferay.so.hook.listeners.LayoutSetListener.addLayout(LayoutSetListener.java:187)
62 at com.liferay.so.hook.listeners.LayoutSetListener.addUserLayouts(LayoutSetListener.java:149)
63 at com.liferay.so.hook.listeners.LayoutSetListener.onAfterCreate(LayoutSetListener.java:74)
64 ... 77 more
When hitting any page it seemed to then throw this NPE
121:19:54,209 WARN [PortalImpl:3054] Current URL /web/guest/home/ generates exception: null
221:19:54,722 INFO [PluginPackageUtil:1153] Reloading repositories
321:20:14,915 ERROR [MainServlet:821] com.liferay.portal.kernel.events.ActionException: java.lang.NullPointerException
4com.liferay.portal.kernel.events.ActionException: java.lang.NullPointerException
5 at com.liferay.portal.events.EventsProcessorImpl.processEvent(EventsProcessorImpl.java:98)
6 at com.liferay.portal.events.EventsProcessorImpl.process(EventsProcessorImpl.java:79)
7 at com.liferay.portal.events.EventsProcessorUtil.process(EventsProcessorUtil.java:64)
8 at com.liferay.portal.servlet.MainServlet.service(MainServlet.java:801)
9 at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
10 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
11 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
12 at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
13 at com.liferay.portal.servlet.filters.secure.SecureFilter.processFilter(SecureFilter.java:282)
14 at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:91)
15 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
16 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
17 at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
18 at com.liferay.portal.sharepoint.SharepointFilter.processFilter(SharepointFilter.java:193)
19 at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:91)
20 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
21 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
22 at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
23 at com.liferay.portal.servlet.filters.virtualhost.VirtualHostFilter.doFilter(VirtualHostFilter.java:148)
24 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
25 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
26 at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
27 at com.liferay.portal.servlet.filters.threadlocalcache.ThreadLocalCacheFilter.processFilter(ThreadLocalCacheFilter.java:55)
28 at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:91)
29 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
30 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
31 at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
32 at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:94)
33 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
34 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
35 at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:738)
36 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
37 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
38 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
39 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
40 at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
41 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
42 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
43 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
44 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
45 at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
46 at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
47 at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
48 at java.lang.Thread.run(Thread.java:619)
49Caused by: java.lang.NullPointerException
50 at com.liferay.so.hook.events.ServicePreAction.run(ServicePreAction.java:54)
51 at com.liferay.portal.kernel.events.InvokerAction.run(InvokerAction.java:52)
52 at com.liferay.portal.events.EventsProcessorImpl.processEvent(EventsProcessorImpl.java:92)
53 ... 43 more
The start up page was so rewarding. I'm almost there. Any suggestions how to surmount these errors? Did I configure something incorrectly or miss something?
Additional Note - I realized the one set of Warnings I got may be relevant:
1build-db:
2 [java] Loading file:/home/user/liferay-svn/trunk/portal-impl/classes/system.properties
3 [java] Loading file:/home/user/liferay-svn/trunk/portal-impl/classes/portal.properties
4 [java] Loading file:/home/user/liferay-svn/trunk/portal-impl/classes/com/liferay/portal/tools/dependencies/portal-tools.properties
5 [java] Loading file:/home/user/liferay-svn/trunk/portal-impl/classes/captcha.properties
6 [java] 02:29:16,124 INFO [PortalImpl:258] Portal lib directory /home/user/liferay-svn/trunk/util-java/classes/
7 [java] 02:29:38,700 WARN [DerbyUtil:121] This statement is not supported by Derby: -- alter_column_name Address className classNameId varchar(75) null;
8 [java] 02:29:38,700 WARN [DerbyUtil:121] This statement is not supported by Derby: -- alter_column_name EmailAddress className classNameId varchar(75) null;
9 [java] 02:29:38,701 WARN [DerbyUtil:121] This statement is not supported by Derby: -- alter_column_name Group_ className classNameId varchar(75) null;
10 [java] 02:29:38,702 WARN [DerbyUtil:121] This statement is not supported by Derby: -- alter_column_name MBDiscussion className classNameId varchar(75) null;
11 [java] 02:29:38,703 WARN [DerbyUtil:121] This statement is not supported by Derby: -- alter_column_name Phone className classNameId varchar(75) null;
12 [java] 02:29:38,703 WARN [DerbyUtil:121] This statement is not supported by Derby: -- alter_column_name RatingsEntry className classNameId varchar(75) null;
13 [java] 02:29:38,703 WARN [DerbyUtil:121] This statement is not supported by Derby: -- alter_column_name RatingsStats className classNameId varchar(75) null;
14 [java] 02:29:38,704 WARN [DerbyUtil:121] This statement is not supported by Derby: -- alter_column_name Role_ className classNameId varchar(75) null;
15 [java] 02:29:38,704 WARN [DerbyUtil:121] This statement is not supported by Derby: -- alter_column_name ShoppingCart couponIds couponCodes varchar(75) null;
16 [java] 02:29:38,704 WARN [DerbyUtil:121] This statement is not supported by Derby: -- alter_column_name ShoppingOrder couponIds couponCodes varchar(75) null;
17 [java] 02:29:38,705 WARN [DerbyUtil:121] This statement is not supported by Derby: -- alter_column_name Subscription className classNameId varchar(75) null;
18 [java] 02:29:38,705 WARN [DerbyUtil:121] This statement is not supported by Derby: -- alter_column_name Website className classNameId varchar(75) null;
19 [java] 02:29:38,774 WARN [IngresUtil:114] This statement is not supported by Ingres: -- alter_column_name Address className classNameId varchar(75) null;
20 [java] 02:29:38,775 WARN [IngresUtil:114] This statement is not supported by Ingres: -- alter_column_name EmailAddress className classNameId varchar(75) null;
21 [java] 02:29:38,775 WARN [IngresUtil:114] This statement is not supported by Ingres: -- alter_column_name Group_ className classNameId varchar(75) null;
22 [java] 02:29:38,775 WARN [IngresUtil:114] This statement is not supported by Ingres: -- alter_column_name MBDiscussion className classNameId varchar(75) null;
23 [java] 02:29:38,776 WARN [IngresUtil:114] This statement is not supported by Ingres: -- alter_column_name Phone className classNameId varchar(75) null;
24 [java] 02:29:38,776 WARN [IngresUtil:114] This statement is not supported by Ingres: -- alter_column_name RatingsEntry className classNameId varchar(75) null;
25 [java] 02:29:38,777 WARN [IngresUtil:114] This statement is not supported by Ingres: -- alter_column_name RatingsStats className classNameId varchar(75) null;
26 [java] 02:29:38,777 WARN [IngresUtil:114] This statement is not supported by Ingres: -- alter_column_name Role_ className classNameId varchar(75) null;
27 [java] 02:29:38,777 WARN [IngresUtil:114] This statement is not supported by Ingres: -- alter_column_name ShoppingCart couponIds couponCodes varchar(75) null;
28 [java] 02:29:38,778 WARN [IngresUtil:114] This statement is not supported by Ingres: -- alter_column_name ShoppingOrder couponIds couponCodes varchar(75) null;
29 [java] 02:29:38,778 WARN [IngresUtil:114] This statement is not supported by Ingres: -- alter_column_name Subscription className classNameId varchar(75) null;
30 [java] 02:29:38,779 WARN [IngresUtil:114] This statement is not supported by Ingres: -- alter_column_name Website className classNameId varchar(75) null;
31 [delete] Deleting: /home/user/liferay-svn/trunk/sql/velocity.log
Bitte melden Sie sich an, um diesen Inhalt als unangebracht zu kennzeichnen.