I have a wildfly server on my local. I am able to start it and successfully deploy my application.
But problem is whenever I am trying to access wildlfy console on browser I am getting 404 and same result for my application. But surprisingly I am able to connect to console and deploy resource file by using jboss-cli.bat.
Kinldy take a note, my wildfly version is 11 and I have created management user also. I am able to access default page of wildfly by URL http://localhost:8080
Related
I have a java web application deployed on a virtual machine with tomcat and without X11 server.
In this application I try to open a web page in the client browser (a oauth2 login page) with the JAVA command:
Desktop.getDesktop().browse(URI)
Unfortunately, I get the following error:
No X11 DISPLAY variable was set, but this program performed an
operation which requires it.
I have already tried to solve by installing X11 and setting the DISPLAY variable on the server, but it didn't help.
Any suggestion?
I have this simple jsp page with a button. On clicking it passes to a servlet which calls a database function,retrieves value from db and returns the value back to the jsp and displays it. This project works fine in netbeans using glassfish. Now i have a server in OCI. downloaded apache tomcat 8 from the internet and unzipped it in the home folder of this oci server and deployed this project in webapps folder -the jsp retrieves and displays data fine. Everything is fine. Now in the same server i installed another tomcat using yum command and it got installed in the root. So here when i click on the button the data retrival doesnt work. As soon as i click on the button in the jsp it throws error "SEVERE: SQLException while connecting to dbjava.sql.SQLException: Io exception: The Network Adapter could not establish the connection". I have no idea why is this simple connection not being established only in this root installed tomcat. I am new to tomcat. I couldnt find an answer online. Found the path also weird as below.
log path:-/var/log/tomcat
webapps path:/var/lib/tomcat/webapps.
I am using jdbc thin connection.
jdbc:oracle:thin:#xxx.xx.xx.xx:1521:aaaaa
Judging fron the exception infomation,your app server is not connect to database server,so you should check the app server is connect to your database server。
I am trying to deploy my java web application in Heroku from using eclipse IDE follow by this link:
https://devcenter.heroku.com/articles/deploying-java-applications-to-heroku-from-eclipse-or-intellij-idea.
I have use WAR file to deploy this project.I have used mysql database locally.
This is github link of my project:
https://github.com/sachin1830/SmOnlineExamProject.
This is my website link:
https://onlineexam1830.herokuapp.com/.
The index page working fine but when i am getting error when I am trying to login.
Error: HTTP Status 500 – Internal Server Error ,HTTP Status 404 – Not Found showing.
This is my first project and i am new in this please give me suggestions why this error coming and how i can resolve this error?
image
Steps to repro the issue:
open website https://onlineexam1830.herokuapp.com/
Click on login on top
Enter username as nn
Enter password as uu
Expected:
User should be able to login
Actual:
Got error as 404.
Locally everything is working fine.
I think the problem is, the application is not connected to database. Here is a video I found which explains how to deploy a java application with tomcat server + mySQl in heroku.
https://www.youtube.com/watch?v=I9XqYN920hI.
[The video also explain the steps to follow if you are using Maven or if you are not using Maven]
I uploaded java web aplication war file on plesk. Another application runs without problems on this host. but for this App, I got this error:
Actual status of the application does not correspond to the status retrieved from the database.
I read at this link, the error can be for the following reasons:
Tomcat service must be running on this server.
Tomcat service should be enabled on the domain.
Domain should be properly resolved in DNS to correct IP address.
Application should be packed into a valid .war package.
Does anyone have a solution to fix this error?
I am trying to deploy the example form based authentication application to my glassfish server, but everytime I launch the application, I am redirected to yahoo, saying that
The requested URL "http://localhost:8080/com-byteslounge-jaas/" cannot be found or is not available. Please check the spelling or try again later.
Anyone have any ideas? I downloaded the source straight from here:
http://www.byteslounge.com/tutorials/jaas-form-based-authentication-in-tomcat-example
You can also launch Server Domain Console (http://localhost:4848 by default) and there, in Applications section, You should have Your app listed. You can see the URL to Your app either by clicking it's name or by clicking Launch link on the right.
The example in your linked article describe the URL is http://localhost:8080/com-byteslounge-jaas-1.0-SNAPSHOT, have you ensured you deploy the app to the same context path you're requesting? Check glassfish log to see what context path your app is deployed as