Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Joel Kozikowski
Theme problem with 4.4 in ext environment
January 31, 2008 8:28 AM
Answer

Joel Kozikowski

Rank: Expert

Posts: 405

Join Date: June 27, 2006

Recent Posts

Still trying to get my first page displayed after upgrading to LR 4.4 from the source tree.

So far, I've managed to get the server started, but when I hit the server with "http://127.0.0.1/c", I get:

 1
 211:20:41,593 WARN  [com.liferay.portal.service.impl.ThemeLocalUtil] No theme found for specified theme id classic. Returning the default theme.
 311:20:41,593 ERROR [com.liferay.portal.service.impl.ThemeLocalUtil] No theme found for default theme id classic. Returning a random theme.
 411:20:41,609 ERROR [com.liferay.portal.events.ServicePreAction] java.lang.NullPointerException
 5java.lang.NullPointerException
 6    at com.liferay.portal.model.impl.LayoutSetImpl.getColorScheme(LayoutSetImpl.java:50)
 7    at com.liferay.portal.model.impl.LayoutImpl.getColorScheme(LayoutImpl.java:501)
 8    at com.liferay.portal.events.ServicePreAction.servicePre(ServicePreAction.java:1055)
 9    at com.liferay.portal.events.ServicePreAction.run(ServicePreAction.java:139)
10    at com.liferay.portal.events.EventsProcessor._process(EventsProcessor.java:132)
11    at com.liferay.portal.events.EventsProcessor.process(EventsProcessor.java:70)
12    at com.liferay.portal.servlet.MainServlet.service(MainServlet.java:613)


If I look back in the log, I see this line:

1
211:16:53,953 ERROR [com.liferay.portal.service.impl.ThemeLocalUtil] Themes in this WAR are not compatible with Liferay Enterprise Portal / 4.4.0


So, it appears I've got something floating around in my ext environment that didn't get replaced when I did a "build-ext" from the portal/build.xml.

What should I be looking for in my ext environment?

P.S. Originally, I had "genesis" as my default theme. I updated my database LayoutSet table to use "classic" instead, as well as modified the "default.regular.theme.id" setting in my portal-ext.properties, as it appears that "genesis" is no longer in the source tree. Was "genesis" removed on purpose? Do I need to get some plugins?
Joel Kozikowski
RE: Theme problem with 4.4 in ext environment
January 31, 2008 8:46 AM
Answer

Joel Kozikowski

Rank: Expert

Posts: 405

Join Date: June 27, 2006

Recent Posts

Well, it appears that the "liferay-look-and-feel.xml" file in my ext/ext-web/WEB-INF directory was the old 4.3 version. I grafted the liferay-look-and-feel.xml from the /portal/portal-web/docroot/WEB-INF directory, and now I get a log in page.

Was I supposed to run some type of "ext-clean" target? I vaguely remember there being such an ant target, but I don't see it in either ext/build.xml or portal/build.xml for 4.4

I'm going to go through my .xml files and see if there are any other artifacts from 4.3 that did not get replaced when I rebuild the ext environment.
Mike Lawrence
RE: Theme problem with 4.4 in ext environment
February 11, 2008 7:47 AM
Answer

Mike Lawrence

Rank: New Member

Posts: 3

Join Date: November 24, 2007

Recent Posts

I had the same problem with the 4.4 upgrade
Thanks for your post
Joel Kozikowski
RE: Theme problem with 4.4 in ext environment
February 11, 2008 10:44 AM
Answer

Joel Kozikowski

Rank: Expert

Posts: 405

Join Date: June 27, 2006

Recent Posts

Mike A Lawrence:
I had the same problem with the 4.4 upgrade


In my old age, its getting harder for me to remember what I've posted about emoticon

See this post, where I documented that I ran into this problem AGAIN when moving up to 4.4.1. Brian Chan noted that the file was not needed at all. I knew that issue sounded familiar emoticon

Brian - given the fact that Mike had the exact same problem, I wonder if this was more than just "my data."

Mike - had you done any customizations to your ext environment? Do you recall having put the liferay-look-and-feel.xml file there yourself?

I wonder if in some previous version of LR, it was put there by the "build-ext" ant target. If so, this may actually be a common occurance for people upgrading from earlier versions of Liferay.