Message Boards

could not parse error message: symbol: class JournalArticle

Giannis Foufas, modified 3 Years ago.

could not parse error message: symbol: class JournalArticle

New Member Posts: 7 Join Date: 7/3/13 Recent Posts
I am trying to port a JSF portlet from 6.2 to 7.3. When I am compiling the code I get the following error:
 could not parse error message:   symbol:   class JournalArticle.

Please note on the pom.xml I have the following:
<dependency>
    <groupId>com.liferay.portal</groupId>
    <artifactId>com.liferay.portal.kernel</artifactId>
    <version>7.3.0</version>
    <scope>provided</scope>
</dependency>
<dependency>
    <groupId>com.liferay.faces</groupId>
    <artifactId>com.liferay.faces.portal</artifactId>
    <version>4.0.0</version>
</dependency>
<dependency>
    <groupId>com.liferay.faces</groupId>
    <artifactId>com.liferay.faces.util</artifactId>
    <version>3.3.0</version>
</dependency>
<dependency>
    <groupId>com.liferay.faces</groupId>
    <artifactId>com.liferay.faces.bridge.ext</artifactId>
    <version>6.0.0</version>
    <scope>runtime</scope>
</dependency>
<dependency>
    <groupId>com.liferay.faces</groupId>
    <artifactId>com.liferay.faces.bridge.impl</artifactId>
    <version>4.1.4</version>
    <scope>runtime</scope>
</dependency>
thumbnail
Olaf Kock, modified 3 Years ago.

RE: could not parse error message: symbol: class JournalArticle

Liferay Legend Posts: 6403 Join Date: 9/23/08 Recent Posts
Giannis Foufas:

I am trying to port a JSF portlet from 6.2 to 7.3. When I am compiling the code I get the following error:
 could not parse error message:   symbol:   class JournalArticle.

Please note on the pom.xml I have the following:
<dependency>
    <groupId>com.liferay.portal</groupId>
    <artifactId>com.liferay.portal.kernel</artifactId>
    <version>7.3.0</version>
    <scope>provided</scope>
</dependency>
...

Two issues: Your dependency-list likely needs a journal dependency: Since 7.x times, everything is modularized and a kernel dependency doesn't suffice. I'm not sure if the "Dependency Management" step documented in the release notes also works with Maven, but it might be worth a try

Also, I don't expect Liferay's kernel to carry the version 7.3.0 - validate with the actual GA release you're running. This issue will go away if issue #1 solves the dependency issue in Maven. (Assuming you're building an OSGi module. Neil recently posted that it's possible to build JSF applications as OSGi modules now)