Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Sirius-web - errors when deploying custom model
Sirius-web - errors when deploying custom model [message #1838342] Mon, 22 February 2021 16:33 Go to next message
mike hill is currently offline mike hillFriend
Messages: 13
Registered: December 2020
Junior Member
Hi

I'm failing to deploy Sirius-web, and I'm currently stuck.

I have included all the dependencies metamodel(ecore), .edit, .editor and .design in my sirius-web-sample-application POM file.
I changed the files to adopt my model as described in the doc, SampleEMFConfiguration, SampleSiriusConfiguration and IImagePathService

"mvn clean package" executed successfully so I ran the application, but it complained about not being able to find the icons.

2021-02-23 02:54:11.335  INFO 95578 --- [           main] o.e.sirius.web.sample.SampleApplication  : Starting SampleApplication v0.0.1-SNAPSHOT using Java 14.0.2 on mike with PID 95578 (/home/mike/sirius-web/backend/sirius-web-sample-application/target/sirius-web-sample-application-0.0.1-SNAPSHOT.jar started by mike in /home/mike/sirius-web/backend)
2021-02-23 02:54:11.337 DEBUG 95578 --- [           main] o.e.sirius.web.sample.SampleApplication  : Running with Spring Boot v2.4.1, Spring v5.3.2
2021-02-23 02:54:11.338  INFO 95578 --- [           main] o.e.sirius.web.sample.SampleApplication  : No active profile set, falling back to default profiles: default
2021-02-23 02:54:12.342  INFO 95578 --- [           main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFAULT mode.
2021-02-23 02:54:12.552  INFO 95578 --- [           main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 197 ms. Found 6 JPA repository interfaces.
2021-02-23 02:54:13.537  INFO 95578 --- [           main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat initialized with port(s): 8080 (http)
2021-02-23 02:54:13.546  INFO 95578 --- [           main] o.apache.catalina.core.StandardService   : Starting service [Tomcat]
2021-02-23 02:54:13.547  INFO 95578 --- [           main] org.apache.catalina.core.StandardEngine  : Starting Servlet engine: [Apache Tomcat/9.0.41]
2021-02-23 02:54:13.595  INFO 95578 --- [           main] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring embedded WebApplicationContext
2021-02-23 02:54:13.596  INFO 95578 --- [           main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 2172 ms
2021-02-23 02:54:13.644 DEBUG 95578 --- [           main] .e.s.w.s.f.SiriusWebAuthenticationFilter : Filter 'siriusWebAuthenticationFilter' configured for use
2021-02-23 02:54:13.727  INFO 95578 --- [           main] com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Starting...
2021-02-23 02:54:13.826  INFO 95578 --- [           main] com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Start completed.
2021-02-23 02:54:15.947  INFO 95578 --- [           main] l.lockservice.StandardLockService        : Successfully acquired change log lock
2021-02-23 02:54:16.236  INFO 95578 --- [           main] l.c.StandardChangeLogHistoryService      : Reading from public.databasechangelog
2021-02-23 02:54:16.255  INFO 95578 --- [           main] l.lockservice.StandardLockService        : Successfully released change log lock
2021-02-23 02:54:16.367  INFO 95578 --- [           main] o.hibernate.jpa.internal.util.LogHelper  : HHH000204: Processing PersistenceUnitInfo [name: default]
2021-02-23 02:54:16.463  INFO 95578 --- [           main] org.hibernate.Version                    : HHH000412: Hibernate ORM core version 5.4.25.Final
2021-02-23 02:54:16.602  INFO 95578 --- [           main] o.hibernate.annotations.common.Version   : HCANN000001: Hibernate Commons Annotations {5.1.2.Final}
2021-02-23 02:54:16.739  INFO 95578 --- [           main] org.hibernate.dialect.Dialect            : HHH000400: Using dialect: org.hibernate.dialect.PostgreSQLDialect
2021-02-23 02:54:17.302  INFO 95578 --- [           main] o.h.e.t.j.p.i.JtaPlatformInitiator       : HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform]
2021-02-23 02:54:17.311  INFO 95578 --- [           main] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default'
2021-02-23 02:54:17.721  WARN 95578 --- [           main] JpaBaseConfiguration$JpaWebConfiguration : spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning
2021-02-23 02:54:18.807  WARN 95578 --- [           main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'webSocketConfiguration' defined in URL [jar:file:/home/mike/sirius-web/backend/sirius-web-sample-application/target/sirius-web-sample-application-0.0.1-SNAPSHOT.jar!/BOOT-INF/lib/sirius-web-spring-graphql-0.1.34.jar!/org/eclipse/sirius/web/spring/graphql/configuration/WebSocketConfiguration.class]: Unsatisfied dependency expressed through constructor parameter 1; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'graphQL' defined in class path resource [org/eclipse/sirius/web/graphql/configuration/GraphQLConfiguration.class]: Unsatisfied dependency expressed through method 'graphQL' parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'graphQLSchema' defined in class path resource [org/eclipse/sirius/web/graphql/configuration/GraphQLConfiguration.class]: Unsatisfied dependency expressed through method 'graphQLSchema' parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'userRepresentationDescriptionsDataFetcher' defined in URL [jar:file:/home/mike/sirius-web/backend/sirius-web-sample-application/target/sirius-web-sample-application-0.0.1-SNAPSHOT.jar!/BOOT-INF/lib/sirius-web-graphql-0.1.34.jar!/org/eclipse/sirius/web/graphql/datafetchers/user/UserRepresentationDescriptionsDataFetcher.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'representationDescriptionService' defined in class path resource [org/eclipse/sirius/web/spring/collaborative/configuration/RepresentationDescriptionConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.eclipse.sirius.web.spring.collaborative.representations.RepresentationDescriptionService]: Factory method 'representationDescriptionService' threw exception; nested exception is java.util.MissingResourceException: The image resource 'full/obj16/Survey' could not be located
2021-02-23 02:54:18.808  INFO 95578 --- [           main] j.LocalContainerEntityManagerFactoryBean : Closing JPA EntityManagerFactory for persistence unit 'default'
2021-02-23 02:54:18.810  INFO 95578 --- [           main] com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Shutdown initiated...
2021-02-23 02:54:18.817  INFO 95578 --- [           main] com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Shutdown completed.
2021-02-23 02:54:18.818  INFO 95578 --- [           main] o.apache.catalina.core.StandardService   : Stopping service [Tomcat]
2021-02-23 02:54:18.828  INFO 95578 --- [           main] ConditionEvaluationReportLoggingListener : 

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2021-02-23 02:54:18.845 ERROR 95578 --- [           main] o.s.boot.SpringApplication               : Application run failed
... stacktrace about icons location
..
	at dsvl.myproject.provider.SurveyItemProvider.getImage(SurveyItemProvider.java:158) ~[dsvl.myproject.edit-0.0.1-SNAPSHOT.jar!/:na]
...


I have included the icons in .edit.jar, but I'm not really sure why it can't find them.
My understanding of spring framework is very limited, I tried other things but got same results. Any help?

Kind regards
Mike

[Updated on: Tue, 23 February 2021 11:46]

Report message to a moderator

Re: Sirius-web - errors when deploying custom model [message #1852798 is a reply to message #1838342] Sat, 04 June 2022 09:21 Go to previous message
AMir Taghizadegan is currently offline AMir TaghizadeganFriend
Messages: 32
Registered: May 2022
Member
I have the same problem :( Do you have a solution?
Previous Topic:Sirius web problems with loading workspace Image
Next Topic:edge creation fails: Object is not contained in a resource.
Goto Forum:
  


Current Time: Fri Apr 26 08:14:07 GMT 2024

Powered by FUDForum. Page generated in 0.02565 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top