Web menu not found

Hi,

I tried to open an old Cuba 7(Idea CUBA plugin) Project but when I tried to run I have this error: “web menu not found”.
When I open the web-menu.xml the screens are in red.
This application was going perfectly couple weeks ago.

I tried to update cuba plugin and I have this error too:

image

I’ve check app.proprieties and this line is included:
cuba.dbmsType = postgres
Please advise.

I performed a gradle cleanidea and Invalidate cached/restart.
Now is running but unfortunately cannot connect to localhost:

image

Also I have this log error:
org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [com/crm/spring.xml];nested exception is java.io.FileNotFoundException: class path resource [com/crm/spring.xml] cannot be opened because it does not exist

Modules/core contains spring.xml file

Hello @neutrino

Unfortunately it’s not possible to give any advice without a project sources - please share it if possible.

How do you import the project?

Regards,
Daniil

Hi Daniil,

The project was imported few weeks ago from Intellij/Import Project/(Cuba radio button checked).
These days instead of just opening the project I imported again the same project.
This could be the reason I think, but however this behavior is not ok.

Luckily I had a backup (project), I opened it and it works well.
Is there a way to manually perform Gradle synchronization and start the jetty server?
This actions not seem to work or are behave badly.

You are using bundle version, am I right?

Project should be correctly imported if you open it as a Gradle project - just click “Open” in IJ IDEA and choose build.gradle file.

Could you clarify what Jetty server are you talking about?

Hi Daniil,

I don’t know what means bundle version. I suppose you refer to the Cuba radio buton option for importing.
Indeed for the first import I’ve choose the CUBA project build script (build.gradle).

(However if I tried to open the same project in Windows and choose build.gradle I have an error message related to Gradle: please, use jdk instead of jre for gradle importer. If I use to import with Gradle build script (*.gradle) it works).

Can you give me more details please? When I have to choose one or the other import option?

Thank you!

We have two distributions of Cuba Studio:

  • bundled version - custom build of Intellij IDEA with pre-installed CUBA Studio plugin
  • Studio plugin itself that can be installed as any other plugin in your IJ IDEA.

By default bundled version is downloaded on Tools page (Web Application Development Tools | Download Jmix Studio).

However if I tried to open the same project in Windows and choose build.gradle I have an error message…

I suppose that JAVA_HOME variable is not configured correctly.

I suggest you to use “Open” action and choose build.gradle file. In this case a project should be correctly imported.

Oops! That page doesn’t exist or is private.

However I think it is about this page:

I don’t use bundled version. I use Cuba as plugin for Idea.
So when I use a bundled.version project I have to choose Import project from external model - CUBA and when I use Cuba as plugin I have to choose Import project from external model - Gradle.

Thank you!

1 Like

Oops! That page doesn’t exist or is private.

It seems strange. The page should be available for everyone.

However I think it is about this page:
Previous CUBA Studio Releases – CUBA Platform

This page contains download links for bundled version.

This page has an instruction to install Studio plugin into IJ IDEA.

“This” page doesn’t work either.

However I know how to install Cuba plugin.

My question is if I use Cuba plugin when I import the project I have to choose “Import project from external model - Gradle” ? Because I saw if I choose this option it works.
In this case the option “Import project from external model - CUBA” is for bundled.version?

I’ve found how to get “Choose model” dialog. Both “CUBA” and “Gradle” options should work correctly and import a project without any errors.

But what are the difference between them?

In case of CUBA model some settings are automatically configured:

  • auto Gradle refresh
  • .idea project directory is used
  • Gradle wrapper is initialized
1 Like