In STS - spring tool suite, war files are not showing up to add in tomcat? - maven

I ran the clean and install commands and I can see the war file gets generated. But I am unable to add it to the tomcat server in STS. In the add modules option of the server, the war is not showing up. Has anyone faced this issue before?

Check if your project is set to "facetted form" (right click project name, "Properties", "Project Facets") and enable "Dynamic Web Project". After that you can even add your project to the server by drag and drop.
For Spring-Boot projects better use the "Boot Dashboard" (click "Window", "show view", "other", "Spring Boot Dashboard".

Related

Deploying Existing Spring Boot Application on Google App Engine

I have developed an application using Spring locally. I want to deploy my existing application using Google App Engine. Does anyone know how to deploy existing application to GAE?
You can convert your project using Cloud Tools for Eclipse. Go to this page and drag and drop the 'install' icon inside your Eclipse installation. See the Google documentation on how to use the plugin.
Basically you right click on you project and convert it to a maven project, or choose File > Import... > Existing Maven Projects wizard. Once you have your maven project loaded into Eclipse, tight click again and Configure > Convert to App Engine Project. This guide explains the whole process.
Finally, having your project set up:
To deploy the project to App Engine Standard environment:
Right click the project in the Package Explorer the project to open
the context menu.
Select Deploy to App Engine Standard
A dialog pops up.
Select the account you want to deploy with, or add a new account.
The list of projects the account has access to loads. Select the one
you want to deploy to.
Click OK.
All the details are here.
UPDATE:
In this Github repo, there are instructions on how to convert an existing Spring Boot App to Google App Engine. In this answer, I apply those instructions to a sample application.

Spring Tool Suite doesn't show integration-graph for a spring-integration-context.xml file

I have a fully functional Spring Integration project. I'm using Spring Tool Suite 3.5.1. When I open my spring-integration-context.xml file I only get Design and Source for tabs at the bottom of the editor window. I'm looking for integration-graph but cannot figure out how to enable it or show it.
On my work machine I'm using Spring Tool Suite 3.5.0 and I get Source, Namespaces, Overview, beans, integration, and integration-graph as tabs for the xml file. Any ideas? Thanks~
Right-click on the project and enable "Spring Nature".
Right click on the file and select "open with" -> "spring config editor"

Debug yii console app using netbeans

I can debug yii web app using netbeans but can't find the way to debug console app. I have enable debug according to instruction here => http://www.larryullman.com/2010/10/07/creating-a-yii-console-application/
But still cannot make my console app break at break point set in IDE. Any suggestion would be appreciated.
Thx
If you can debug web apps in netbeans its very easy to configure netbeans to debug console yii applications.
You must add a run configuration at project properties: Right click at project name, in projects tab and select the properties menu option.
Click in the "Run Configuration" categorie, at left column.
In the field "Configuration" ,Add a new configuration pressing "new..." button and give a name to the new configuration profile (i.e. console config).
In the Run As field,select "Script (run in command line)" option.
In the field "Index File" enter protected/yiic.php
In the "Arguments" field, enter the name of you yiic command and, if needed, other arguments.
Press OK button.
Now you have 2 run configuration profiles. To debug the console app, right click at project name in the Projects and switch to the new configuration profile in "Set configuration" option and use the IDE to debug as usual.
You can create a run configuration for each console command you have.
Regards.
Isidoro.

Grails app is reloading on css changes

I am developing a Grails app in Groovy/Grails Tool Suite. I start my server by simply running the vFabric tc Server that comes built in. Unfortunately, when I make css changes, the entire server reloads. This doesn't happen with gsp changes. How can I fix this?
You probably don't need to deploy to tc server if you're developing your app. Try using 'run-app' (right click your project, select 'run as' or 'debug as' and then choose 'run-app').
Or you can just open a grails prompt and do 'run-app' from there.

How to Create an .ear file using JDeveloper

I am new to Jdeveloper. I am using JDeveloper 10g. I have created one project abc.jws under which there are five .jpr folders(DTO.jpr,persistence.jpr,service.jpr,util.jpr,ViewController.jpr). I want to create .ear file for the whole project so that it can be directly put in the production environment. When I right click on the abc.jws and select New, the EAR option under deployment profiles is always disabled. I would highly appreciate if someone can help me on this.
Thanks.
Go to Application -> Deploy and deploy as EAR file. That's it.
In the pop up the location of EAR file generated will be there.
Try this:
For every project you need a jar so right click on them and select "new"
Choose "Deployment Profiles" --> "JAR File"
On your main project (in jDev) right click and select new
In "General" --> "Deployment Profiles" folder choose "WAR File" (I know you want an EAR file...)
Now you should have a deploy descriptor in the "Resources" folder, if it doesn't open automatically then double click on it
Give names to the EAR files and WAR files, specify your context-root name and so on
In "Profile Dependencies" check the deployment profile of the other projects (so it will recreate the JAR files when ever you make an EAR file)
Right click on the deployment descriptor ("file.deploy") and choose "Deploy to EAR file"
Hope it helps
Right Click on your Application -->Deploy-->FileName.ear a .ear file will be created at specified location
C:\JDeveloper\mywork\ADFApplication\deploy\FileName.ear

Resources