How to deploy wildfly EAR application on opshift 3 - java

Am trying to deploy my wildfy 10 EAR application to openshift.
I have successfully completed the following process.
Push project to a git repository
Create a openshift project
Create a openshift application in the project
Point application to the git repository
Configured webhook for the project.
The challenge now is that any time i try to access my application from the link i was given am directed to this page
I was actually expecting that i will directed to my project index.jsp page, just as it does on my localhost.
I also clicked on the Administration Console and still nothing, i cant login,
What am i missing please, how do i make my project work the way it's meant to.
Thank you.

Related

Intellij IDEA Tomcat git clone web application

I am trying to git clone in Intellij IDEA for testing purpose # localhost this GitHub repository: https://github.com/copperhead/AttestationServer
This is an actual working online implementation: https://attestation.copperhead.co/
I believe that the application consist of frontend HTML and javascript along with backend JAVA and sqlite.
How do I get a local copy that is 100% working as the actual working online implementation. So far I can only run the frontend web logic without the backend java services via localhost. New to intellij here.
See the pic below for the problem I get:
Here are some points you should consider while working Intellij IDEA
Go to Project Structure and add reference to SQLite Connector in Libraries tab
Go to Debug/Run Configuration and set up Tomcat as web server (download tomcat and give path)
Go to Project Structure and set up Artifacts for your web app
Note: Before all these step you need to configure you Gradle-wrapper
Tomcat Configuration
Hope so this will help.

How to deploy a Spring MVC Maven project from Eclipse to an existing Glassfish server

I've got a Spring MVC Maven project written in Eclipse that was verified as working with an Apache Tomcat 7 as the web container.
I am trying to transfer it to my "server" pc where I want to deploy it to the my existing glassfish (4.1) server as the web container.
I am having a very hard time finding a big enough partial answer to get the rest of the way.
I have tried to just export the .war file to the autodeploy folder which resulted in a "deployfailed" file.
I have tried to setup a "new server" using glassfish tools, but I realized that this is creating a new server and the existing server blocks the socket connection.
Eclipse doesn't see to have standard web commands like build, clean or deploy, but I would happily settle for advice on how to tell it to deploy to the existing glassfish server similar to how I was able to with tomcat at my training location.
Check this answer. Then follow the following steps.
Go to the project in the Project Explorer.
Select the web project.
Right click and select "Run As", you will see glashfish. Select it and click run.

WildFly 10 Deployment Issues

I am using an archetype from Maven called "spring-mvc-webapp, 1.0.0CR8" in my eclipse project. Infact i have not done anything to the project yet. I just want to deploy it and test it with the default application that comes with the archetype. I have spent hours trying to fix it but with no success
I call my application from the browser like localhost:8080/myapp and i get forbidden in the browser. But when i go to localhost:8080 i see the default home page of wildfly. When i go also to the management console of Wildfly, i see that my app is deployed yet it is not working.
Any idea to fix it is appreciated.

What is happening when I right click JBoss Runtime Server with a web project in Eclipse and choose "Clean"?

I usually do it when I add projects to Jboss or after changing datasource connection. But I don't know what is happening 'behind the scenes'.
It removes your deployed project from the web server. It has nothing to do with JBoss. Have you ever visited the directory where your application is deployed ?? If not, then I will recommend you to visit the directory where actually your web-app is deployed in JBosss. There you will see a folder named as your web-app something like this MyProjectEAR.ear if the project is an ear project with name MyProjectEar. Now I will ask you to click on "Clean". As soon as you do that, you will see that the folder vanishes, and later again appears when you again publish your app.
So to sum up, this action removes your deployed project and helps in re-publishing of your app. This helps in normal functioning if there is a major change in your app and the server fails to hot deploy it.

Netbeans does not give me wadl file

I'm trying to deploy a RESTful application with Netbeans to a remote server (with domain name "agdata.se") by following this guide. Once I've built and deployed, then entering the url "http://agdata.se:8080/WebTest/test-resbeans.html" I get the following error message:
"Cannot access WADL: Please restart your RESTful application, and refresh this page."
When I look in the project folder and unzip the war file, there's no wadl to be found. It's like Netbeans never created one.
I created the project (let's call it project A) using dedicated folders. I choosed Java EE 6Web and JavaServer Faces as the framework. I didn't configure the framework so I didn't choose PrimeFaces or any other of the components.
I then made a "RESTFful web service from a database" by rightclicking the project node. I created the datasource, just like the guide said, since I use a MySQL-database and not a Derby.
I left "Generate Named Query Annotations for Persistent Fields" checked.
I didn't check "Use Jersey Specific Features".
Then, I created another Web Application, also with Faces as framework. Letäs call this project B.
I run "Test RESTful Web Services" and check "Web Test Client in Project". I then choose project B and I can deploy and build it without any errors. I then enter the REST-test url into Firefox and it says it cannot access the WADL file. Again, there is no such file in the project folder when I look into the war file. Just to be clear, this is a remote server I'm deploying to, not localhost. The server is Ubuntu 13, I'm on a Mac OSX.
Thankful for all the help I can get!

Categories