I am trying deploy and run (Spring data) in external tomcat server. Deployment happening without any errors but getting 404 errors when I am trying to hit rest end point. The same rest working fine with out jpa changes. Do we required any data source configuration in external tomcat server in order to run the application. Please provide any reference for the same.
Related
Issue :
Unable to deploy Spring-Boot application in WebLogic Server.
Description
I am new to Spring boot trying to build a proxy application to route the requests to source system but having issues deploying to weblogic-12c. It's a very simple application that exposes a rest service and then redirects the received request to upstream system.
What did I try ?
Tried log4j version in pom.xml and dispatcher-servlet.xml approaches googling, I've also read the issue is b'coz of the data sources but I don't have any persistence logic and don't need a data source to be configured in weblogic.
Below is the error I am seeing, any suggestions are highly appreciated.
ERROR:
Unable to access the selected application.
Message icon - Error java.io.IOException
Message icon - Error weblogic.utils.compiler.ToolFailureException
I have a Springboot project and it has a api which I can invoke from postman.
When I run the application using Main Class I'm able to hit the endpoint and get response.
But if I deploy it on tomcat using war of project the same endpoint says 404!
What am I missing?
There can be multiple possibilities
You didn't extended your application class to SpringBootServletInitializer. In this case, spring boot application will not be deployed to tomcat. To fix this add "extends SpringBootServletInitializer" to your main application class
You are hitting wrong url. Make sure you append your aplication name to url. Example - if http://localhost:8080/data works in your local, and your application name is app, you have to hit http://{{serverip:port}}/app/data when deployed
There is something wrong in application properties like DB configured is local and not accessible from tomcat etc. To check such issues, check your tomcat log file (/{{tomcat dir}}/logs/catalina.out
I would like to host one application on AWS elastic beanstalk(java). The application has one view and one rest service. First I uploaded the jar file and tried accessing, the path to view was giving me whitelabel error on AWS but it is working fine locally. Also, am able to access the rest service with jar.
After surfing the net, I created a war and uploaded on AWS(tomcat). Now, the view is working fine but I notice the path of rest service is returning 404. Can someone suggest what should I check or do?
I am using Cloud Foundry and I deployed my Spring boot application on Cloud. I have bound the Mongodb Service with my application. When my application is trying to read the data from mongodb I am seeing below error.
Query failed with error code 13 and error message 'not authorized for query on cfe5cb4d-2ca8-40f3-9f83-0cc8321e8c19.ACCOUNT_DETAILS' on server IP:Port
At the same time when I am connecting to this db with application deployed on my local systems its working fine.
Please help me if I need to modify anything here in Configuration to make the application on Cloud work ?
I think you should check your VCAP_SERVICES, probably locally you are using the connection parameters directly but on Bluemix you have to use VCAP_SERVICES parsing.
Please if possible, copy and paste the code section used to connect to MongoDB.
I've a Spring 3.0.3-based EAR+WAR which I'm deploying to WebLogic 10.3.4.0. I want to be able to see my the various framework Spring Beans at runtime via JMX and ideally in the WebLogic console. (Note, these are NOT bean's we've written but the ones which come by default with Spring.)
Ideally we'd have been able to get it working with the WebLogic Spring Console Extension as described here. However after following all these steps (plus adding the weblogic-spring.jar to our WAR after we saw ClassNotFoundException errors in our WebLogic log when trying to navigate to the Spring tab in the WL Admin UI) we still see the following message in the WL console "This application does not use the Spring Framework or Spring MBean integration is not enabled." and no errors or messages in the log.
Does anyone know if it is possible to get Spring 3 apps working with the WebLogic 10.3.4.0 Spring Console Extension or should I try another route?
Weblogic family 10.3.X supports only Spring Framework 2.5.X