[BLOSSOM-132] ClassNotFoundException when trying to integrate Magnolia 5.1 with Blossom 3.0 Created: 18/Sep/13  Updated: 07/Nov/14  Resolved: 20/Sep/13

Status: Closed
Project: Blossom
Component/s: None
Affects Version/s: 3.0
Fix Version/s: None

Type: Bug Priority: Neutral
Reporter: Sigurd Rolfes Assignee: Tobias Mattsson
Resolution: Not an issue Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

JBoss eap 6.1 startet in IntelliJ
Windows 7 Professional


Attachments: Text File stacktrace-blossom-magnolia.txt    
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:

 Description   

We are trying to get Blossom 3.0 work with a Magnolia 5.1 Version (CE).

A ClassNotFoundException is thrown when starting up JBoss, missing class is:

info.magnolia.ui.api.vaadin.WidgetsetDefinition

See full stacktrace in the file attached.

We cannot find any references in the code and there is no package "vaadin" in the magnolia-ui-api module.

Our dependencies:

<dependency>
<groupId>info.magnolia</groupId>
<artifactId>magnolia-module-blossom</artifactId>
<version>3.0-alpha1</version>
</dependency>

<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
<version>3.2.3.RELEASE</version>
<exclusions>
<exclusion>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.springframework.webflow</groupId>
<artifactId>spring-webflow</artifactId>
<version>2.3.2.RELEASE</version>
<exclusions>
<exclusion>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
</exclusion>
</exclusions>
</dependency>

Further we have:

Magnolia-Version 5.1-SNAPSHOT and STK 2.6-SNAPSHOT

Seems that there is something missing that has the WidgetsetDefinition class inside.



 Comments   
Comment by Sigurd Rolfes [ 18/Sep/13 ]

I found the following Ticket: MGNLUI-1928

https://git.magnolia-cms.com/gitweb/?p=magnolia_ui.git;a=commit;h=7d5c52d1d2939489f5a19cb63c47c84500804868

I've got two admincentral jars, one is 5.1-SNAPSHOT, one is alpha1:

magnolia-ui-admincentral-5.1-alpha1.jar

In this jar there is an old ui-admincentral.xml in the META-INF directory that contains old configuration entries for typeMapping:

<type-mapping>
<type>info.magnolia.ui.api.vaadin.WidgetsetDefinition</type>
<implementation>info.magnolia.ui.api.vaadin.ConfiguredWidgetsetDefinition</implementation>
</type-mapping>

The package "vaadin" does not exist anymore.

Comment by Sigurd Rolfes [ 18/Sep/13 ]

Tried to use Blossom 3.0-SNAPSHOT

The pom in nexus has an entry for Magnolia version of alpha1

I guess this is the place where the admincentral-alpha1 and other alpha1 jars come from.

<magnoliaVersion>5.1-alpha1</magnoliaVersion>

Comment by Sigurd Rolfes [ 18/Sep/13 ]

ok, I've got it working.

Problem seems to be the wrong alpha1 Version entry in the nexus poms.

I got rid of the magnolia-ui-admincentral jar with the typeMapping entries referencing the non-existing WidgetsetDefinition class resp. package "vaadin".

Probably the post should be updated, alpha1 may only work with Magnolia core alpha1.

http://tobias-mattsson-magnolia.blogspot.de/2013/08/blossom-3-alpha1-released.html

Comment by Tobias Mattsson [ 20/Sep/13 ]

Hi Sigurd,

Indeed, blossom 3.0 alpha1 is intended to be used with Magnolia 5.1 alpha1.

I will update the blog post to make this clear.

Comment by Tobias Mattsson [ 20/Sep/13 ]

Also, RC1 was released on tuesday this week.

http://tobias-mattsson-magnolia.blogspot.se/2013/09/blossom-30-release-candidate-1-released.html

Generated at Sun Feb 11 23:30:27 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.