Replies: 10 comments 1 reply
-
In your config you've set the value for
Think all other settings are the same as the defaults. |
Beta Was this translation helpful? Give feedback.
-
I'm assuming my last comment helped you in fixing the problem. If not and you have any follow-up questions feel free to re-open the issue. |
Beta Was this translation helpful? Give feedback.
-
Hello Michiel, is there a possibility to contact to you to talk about this problem, I;m working with spring-boot and doing a simple "hello world" but I still getting this error: "No graphql schema files found on classpath with location pattern '**/*.graphqls'" |
Beta Was this translation helpful? Give feedback.
-
Is this issue resolved? I am still facing this issue with Spring Boot GraphQL |
Beta Was this translation helpful? Give feedback.
-
I added 2 dependencies to my Gradle file
And when trying to start app, app crashes with exception:
What I missed? |
Beta Was this translation helpful? Give feedback.
-
Still not sure of the solution here, how can schema-location-pattern be customised to allow for the schema to come from a jar/dsl |
Beta Was this translation helpful? Give feedback.
-
First step will be adding a unit test to the library to reproduce this problem. Any contributions for this are very welcome. |
Beta Was this translation helpful? Give feedback.
-
**The ONLY solution is to deploy your application as exploded WAR in Weblogic. I assume you already prepared your spring boot application for deployment on Weblogic, there are several tricks on this topic but they are available on the Internet (exclude embedded tomcat and specify WAR packaging in POM.XML, create webapp/WEB-INF folder with weblogic.xml and servlet xml). Now create a folder on the server, /home/oracle/wars/myapp for example, and just copy the unpacked contents of your WAR to that folder. Then go to Deployments - Install, navigate to /home/oracle/wars/ and choose myapp folder from the radio button list, and simply follow the default steps to deploy. Pay attention, you need a plain web.xml file along with weblogic.xml, otherwise Weblogic will not see it as 'Web application'** Deploying as exploded WAR is a workaround to avoid the creation of _wl_cls_gen.jar which is at the source of this problem. Adding in application.properties did not help. |
Beta Was this translation helpful? Give feedback.
-
Default classpath location is set to "classpath:graphql/**/" PathMatchingResourcePatternResolver does not pick up from jars root on classpath due to above assuming the rootdir to be "classpath:graphql/" instead of "classpath:". Following configuration worked for me |
Beta Was this translation helpful? Give feedback.
-
You’re very welcome 😊
From: bossm0n5t3r ***@***.***>
Sent: Saturday, November 26, 2022 6:48 PM
To: graphql-java-kickstart/graphql-spring-boot ***@***.***>
Cc: pfnectarie ***@***.***>; Comment ***@***.***>
Subject: Re: [graphql-java-kickstart/graphql-spring-boot] schema-location-pattern does not include schemas from another .jar library files (Discussion #183)
It works for me, thanks
—
Reply to this email directly, view it on GitHub <#183 (comment)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/AHTRMUYYDMVTTPDZWIEHXSLWKI5KNANCNFSM42VMRCMA> .
You are receiving this because you commented.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
I have put all the .graphqls in a common library built as .jar file and references in other projects deployed as .war files. When the application starts I see the following exception:
Here is my application.yml:
Beta Was this translation helpful? Give feedback.
All reactions