Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Juan M. Gomez
Errors launching Liferay 6.0ee - related to jamwiki
January 10, 2011 6:05 PM
Answer

Juan M. Gomez

Rank: Junior Member

Posts: 69

Join Date: November 7, 2007

Recent Posts

Hello all,

we have been trying to start "Liferay Portal Enterprise Edition 6.0 EE (Bunyan / Build 6010 / September 7, 2010)" unsuccessfully because of some dependency errors that may be caused by the jamwiki plugin.

In the initial launch of the portal, and after the hot deploy manager has started, the following trace appears:

 115:58:36,010 ERROR [[/]] StandardWrapper.Throwable
 2java.lang.ExceptionInInitializerError
 3    at com.liferay.portal.events.GlobalStartupAction.run(GlobalStartupAction.java:237)
 4    at com.liferay.portal.events.EventsProcessorImpl.processEvent(EventsProcessorImpl.java:106)
 5    at com.liferay.portal.events.EventsProcessorImpl.process(EventsProcessorImpl.java:58)
 6    at com.liferay.portal.ee.license.EventsProcessorImpl.process(Unknown Source)
 7    at com.liferay.portal.events.EventsProcessorUtil.process(EventsProcessorUtil.java:32)
 8    at com.liferay.portal.servlet.MainServlet.processGlobalStartupEvents(MainServlet.java:1020)
 9    at com.liferay.portal.servlet.MainServlet.init(MainServlet.java:307)
10    at javax.servlet.GenericServlet.init(GenericServlet.java:212)
11...
12Caused by: java.lang.NullPointerException
13    at org.jamwiki.Environment.retrieveDefaultRelativeUploadDirectory(Environment.java:368)
14    at org.jamwiki.Environment.initDefaultProperties(Environment.java:213)
15    at org.jamwiki.Environment.<init>(Environment.java:123)
16    at org.jamwiki.Environment.<clinit>(Environment.java:116)
17    ... 79 more


Followed by
 115:58:36,025 ERROR [[/]] Servlet  threw load() exception
 2java.lang.NullPointerException
 3    at org.jamwiki.Environment.retrieveDefaultRelativeUploadDirectory(Environment.java:368)
 4    at org.jamwiki.Environment.initDefaultProperties(Environment.java:213)
 5    at org.jamwiki.Environment.<init>(Environment.java:123)
 6    at org.jamwiki.Environment.<clinit>(Environment.java:116)
 7    at com.liferay.portal.events.GlobalStartupAction.run(GlobalStartupAction.java:237)
 8    at com.liferay.portal.events.EventsProcessorImpl.processEvent(EventsProcessorImpl.java:106)
 9    at com.liferay.portal.events.EventsProcessorImpl.process(EventsProcessorImpl.java:58)
10    at com.liferay.portal.ee.license.EventsProcessorImpl.process(Unknown Source)
11    at com.liferay.portal.events.EventsProcessorUtil.process(EventsProcessorUtil.java:32)
12    at com.liferay.portal.servlet.MainServlet.processGlobalStartupEvents(MainServlet.java:1020)
13    at com.liferay.portal.servlet.MainServlet.init(MainServlet.java:307)
14    at javax.servlet.GenericServlet.init(GenericServlet.java:212)


After those, the server reports that it has started.
115:58:36,272 INFO  [ServerImpl] JBoss (Microcontainer) [5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=200905221053)] Started in 1m:4s:816ms




However, if we try to enter in the portal by going to http://localhost:8080/portal, an exception is thrown..

 116:04:30,748 ERROR [XmlRpcServlet] There is already an XML-RPC method registered with name pingback.ping at pingback
 216:04:30,980 INFO  [PluginPackageUtil] Reloading repositories
 316:04:30,987 INFO  [PluginPackageUtil] Reloading repositories
 416:04:31,060 ERROR [MainServlet] java.lang.UnsupportedOperationException
 5java.lang.UnsupportedOperationException
 6    at java.util.Collections$UnmodifiableCollection.add(Collections.java:1018)
 7    at com.liferay.portal.servlet.I18nServlet.setLanguageIds(I18nServlet.java:68)
 8    at com.liferay.portal.servlet.MainServlet.checkWebSettings(MainServlet.java:583)
 9    at com.liferay.portal.servlet.MainServlet.initWebSettings(MainServlet.java:974)
10    at com.liferay.portal.servlet.MainServlet.init(MainServlet.java:285)
11    at javax.servlet.GenericServlet.init(GenericServlet.java:212)
12    at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1048)
13    at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:777)
14    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:607)
15    at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:444)
16    at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:382)
17    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:310)
18    at com.liferay.portal.util.PortalImpl.sendError(PortalImpl.java:3935)
19    at com.liferay.portal.util.PortalUtil.sendError(PortalUtil.java:1225)
20    at com.liferay.portal.servlet.FriendlyURLServlet.service(FriendlyURLServlet.java:110)


Followed by
 116:04:31,088 ERROR [[/]] StandardWrapper.Throwable
 2java.lang.NoClassDefFoundError: Could not initialize class org.jamwiki.Environment
 3    at com.liferay.portal.events.GlobalStartupAction.run(GlobalStartupAction.java:237)
 4    at com.liferay.portal.events.EventsProcessorImpl.processEvent(EventsProcessorImpl.java:106)
 5    at com.liferay.portal.events.EventsProcessorImpl.process(EventsProcessorImpl.java:58)
 6    at com.liferay.portal.ee.license.EventsProcessorImpl.process(Unknown Source)
 7    at com.liferay.portal.events.EventsProcessorUtil.process(EventsProcessorUtil.java:32)
 8    at com.liferay.portal.servlet.MainServlet.processGlobalStartupEvents(MainServlet.java:1020)
 9    at com.liferay.portal.servlet.MainServlet.init(MainServlet.java:307)
10    at javax.servlet.GenericServlet.init(GenericServlet.java:212)



And the portal doesn't load content and redirects to a HTTP Status 500 page.

This is happening both with the Liferay 6.0ee bundled with Jboss 5.1.0 and with Liferay 6.0ee installed as a war with dependencies in a full fledged Jboss 5.1.0.


I appreciate any advice or hint about what to do with this error,
Thanks in advance.


--
Juan M. Gómez
Grupodot - Colombia
Juan M. Gomez
RE: Errors launching Liferay 6.0ee - related to jamwiki
September 21, 2010 9:13 AM
Answer

Juan M. Gomez

Rank: Junior Member

Posts: 69

Join Date: November 7, 2007

Recent Posts

After some digging, we have been able to solve this problem and Liferay is starting as expected.

The problem seemed to be that the jamwiki plugin wasn't able to find the tmpdir from the portal context, so what we did to solve it was to force the directory passing it in the jvm parameters.

We included the "-Djava.io.tmpdir=/somedirectory" option where "/somedirectory" is a directory in which the current user has write permissions, and Liferay started without problems.


--
Juan M. Gómez
Grupodot - Colombia
Nathan Bragg
RE: [SOLVED] Errors launching Liferay 6.0ee - related to jamwiki
December 2, 2010 5:42 AM
Answer

Nathan Bragg

Rank: New Member

Posts: 20

Join Date: October 8, 2010

Recent Posts

Thanks a lot for this solution. I was really wondering why my installation on a Windows Machine was working fine, however when I installed this on a Linux OS it was failing.
Brian Ko
RE: [SOLVED] Errors launching Liferay 6.0ee - related to jamwiki
January 5, 2011 3:08 PM
Answer

Brian Ko

Rank: Junior Member

Posts: 70

Join Date: February 11, 2010

Recent Posts

Nathan,

Is this JAMwiki installed on top of the basic liferay as a plugin? Or was it part of the basic EE installation?

Thank you.

Brian
Nathan Bragg
RE: [SOLVED] Errors launching Liferay 6.0ee - related to jamwiki
March 31, 2011 7:45 AM
Answer

Nathan Bragg

Rank: New Member

Posts: 20

Join Date: October 8, 2010

Recent Posts

I didn't add or take anything out of the basic Liferay EE installation. So I'm guessing that it comes out of the box.