Manual Vaadin Project Deploy on Raspbian - maven

For a project I want to do a performance comparison of different web-frameworks on a raspberry pi. Thats why I want to do only a manual deploy to mess around with it a bit.
I created a Vaadin project using maven and exported it as application.war file. I downloaded the tomcat-7 server and unzipped it. After that I gave the .sh files in the folder executable permission. Then I copied .war file in the webapps folder of tomcat. Finally I started tomcat by running sh startup.sh.
But when I try to open the page on my dev machine under ip:8080/application I only receive a timeout.
Did I miss something?

Related

Cannot build using gradle when using clearcase

I have been trying to build my Java web application using gradle. Everything work fine in the local drive and the build goes through as expected. However, when I switch to using the clearcase MVFS File system (G:), the build seems to behave erratically. From the windows 10 command line, if I change directory to the G:\ drive location, and execute "gradle war", it works fine the first time. After that, I run the same command again - the already created war file gets deleted and the classes are removed. It's bizarre. I did the following and still the behavior is the same.
disabled daemon
disabled file watching
Its the same behavior with Gradle 7 and gradle 6.8.
When I delete the .gradle folder, everything works fine again.
So - Does gradle not support the NFS and MVFS File System ? What is the solution to this problem ? Any help is appreciated.
Does gradle not support the NFS and MVFS File System ?
That is why I proposed in 2018 to use gradle only in snapshot views.
Especially considering a "gradle --no-daemon build" does defeat the purpose of having the daemon at all.
A build is better served in a local filesystem than a mounted one (MVFS dynamic views) which relies on where your view server is.

Running Spring application outside of an IDE (preferably OS shell)

https://www.pegaxchange.com/2018/01/24/java-web-project-with-spring-framework/ has instructions for creating a Java Web Project with Spring, without Maven. I am able to get it working in an Eclipse environment. It works as expected by doing “Run As” --> “Run on Server”.
When I kill Eclipse I get the Status 404 error (“The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.”). I have verified that the Tomcat Server is running from the XAMPP Control Panel.
How do I launch the application from an OS shell (Windows & Linux) so that I don't see the 404 error?
Its been a long time I haven't used java web projects without maven but if my memory serves me right, you should first export your project as .war file. Then deploy it to tomcat.
In eclipse right click your project select export and then select WAR file.
Copy your WAR file into webapps directory which is located in tomcat installation directory.
Rename the WAR file as you like if you want to serve you web app with a specific context name something like http://localhost:8080/myapp. If you do want to serve as root without a context name just rename it as "ROOT".
Run tomcat by command line <your-tomcat-installation-dir>\bin\startup.sh or it will be a .bat file for windows so you should end your command with .bat.
Or if you can start and stop by XAMPP panel this should do the same as well.
Also you can see this article for details on how to deploy a war file to tomcat.
I hope this helps. Cheers!

Copying files between two windows servers through jenkins

I am working on a project where i want to copy the compiled file (which compiled through jenkins) from one windows server to another through jenkins. Jenkins is installed on a windows server and after building the code, those compiled file should be copied to another windows server through jenkins. Is there any way to achive it?
Jenkins might be able to do it, via the script steps running the scp command; however, if this is part of a build, I would suggest attaching the file(s) to a project, and distributing them through the maven repository.

jboss-as-maven-plugin: which directory does command "jboss-as:deploy" deploy an .ear to?

I am running jboss 7.1, maven 3, and a java ee6 application that generates an .ear
I am doing a mvn clean package jboss:as-deployand Jboss-as-maven-plugin 1.5 does its thing--I can view my app using http://localhost:8080...
just fine, but I want to know where the actual .ear is being put.
It is not in my jboss7.../standalone/deployments folder. So where is it? My app is obviously running in jboss 7.1 just fine, but I can't find the .ear file. I know that there is an .ear in Eclipse's 'target' directory, but that wasn't produced by jboss-as-maven-plugin is it? I hope you can understand my confusion--don't all .ear files need to be in the deployments directory? I also do see my .ear file inside my hidden .m2/repository directory, but does this have any interaction with jboss-as-maven-plugin? Maybe there is some hidden sym-linking between my Eclipse project's 'target' directory and the jboss7.1 standalone/deployment directory?
p.s. I am used to using a hard-deploy option with the other plugin jboss-maven that requires you to say jboss:hard-deploy which just copies the .ear to your deployments folder. Then jboss would pick up the new .ear and redeploy automatically. I get the sense that jboss-as-maven-plugin is the preferred plugin so that's why I am bothering.
The jboss-as-maven-plugin uses the deployment API so it doesn't copy the file to the deployments directory for the scanner to pick it up. It deploys just as if you deployed it from the web console or via CLI. The files should be located somewhere in the $JBOSS_HOME/standalone/data/ directory.
You're welcome to open an issue, for a discussion around it at least. I'm not sure how I feel about adding a goal for it, but here isn't the place to discuss that :)

Deploy Vosao in eclipse in windows

I am using google app engine in eclipse in windows OS. I want to used Vosao CMS(which is develop for GAE). But i can't deploy in eclipse in windows and easily deploy in eclipse in windows.So how vosao(content management system) deploy in eclipse in windows OS.
There is not direct way to deploy the Vosao in eclipse in windows. But there is a alternate solution.
For- Eclipse IDE for Java Developers
1.Unzip the war file.
2.than create a project in eclipse.
3.Than copy the contain of unzip folder one by one & paste in proper position in your project.like servlet paste in src & jsp pages paste in war folder.
4.care fully read this point
In unzip folder there is a web-inf folder & also in your project there is web-inf folder. So copy the contain of web-inf folder carefully in project web-inf folder.
For-Eclipse IDE for Java EE developers
File-->Import-->web-->war
It may be work. In my project both are work.
There is a very good tutorial on this.
http://www.rarejava.com/blog/2011/07/deploying-vosao-from-eclipse
I had do minor modifications on my side for Maven and Subclipe 1.8. Other than that the Blog worked like a charm

Resources