Okay so my problem is that I need to deploy my website from eclipse to an online server which is provided by my university. I've been handled a guide, which suggested that I converted my entire project into a WAR file. The WAR file is placed on my desktop and that particular path is also applied in my Filezilla setup.
The problem is, when I try to run the code through filezilla with the following URL
ftp://Kristian1709tomcat#Kristian1709.tomcat.student.hum.au.dk/webapps/b-exam-ba-newssite.war -
My browser starts downloading the WAR file instead of showing it as a website.
My instructions from my teacher is as followed:
The Host
Kristian1709.tomcat.student.hum.au.dk
Username: Kristian1709#tomcat
Password: *******
Any sort of help will be very welcomed as I have to handle in the entire project for my finally exame tomorrow.
In advance thank you!
FTP stands for File Transfer Protocol, in my experience War files are to be run inside an application server, such as glassfish or tomcat server, and viewed through a browser, not a FTP client
Make sure its hosted within an application server and a change of url should fix your problem.
I have about 4 war files deployed on a glassfish server, that's independent of http and ftp.
go here in your browser Kristian1709.tomcat.student.hum.au.dk
And login/deploy
Related
I have made java web application for uploading file in ftp and in the same application user can directly open files in browser. It is running successfully when Filezilla or winscp is opened. After closing filezilla and winscp I can't access or upload files to ftp. Is there any possible solution, that I can access these files from web application without installing external application. I'm using Apache commons.net library for ftp connection.
There is JSch that is a library to access sftp in Java. I have used it before in a project and is relatively straight forward. Probably you will have to work on it to open files in a web application though.
http://www.jcraft.com/jsch/examples/Sftp.java.html
I have a Java swing GUI client.
It is delivered to user's PCs via JNLP in response to a web page request.
It has a javax.jms.MessageListener that listens to a jms.Queue on a remote internet server (glassfish 4) whose Message listener is a MDB.
When I launch the client directly from eclipse, all works well.
But when I launch if from my browser clicking a link to the JNLP filethe client fails to deploy with a NoClassFound for javax.jms.MessageListener.
After many hours it dawned on me that maybe that's because Java JRE doesn't include the JMS API. And therefore I need to package the JMS classes used by the client in my .ear package.
So I'd truly appreciate anyone telling me if they think I'm on the right track before I start. And if so confirming where I should put the MessageListener.class in my .ear/.war package.
Thanks for any help..
It was a dumb question. Of course the fix was to package the few JMS .class files I needed in the .jar file the JNLP file downloaded.
Putting in the entire Javax.jms.jar file was unthinkable since it had to be downloaded with the client.
For other newbees all it took was changing the jms.jar to jms.zip to extract the entire API in .class format. Then repackage only what I needed.
I've developed a RESTful web service in netbeans and it made a .war file for me. now i want to deploy it to my host using glassfish.
there are lots of tutorials on the net about deploying war file to glass fish(for example) but they all describe how to deploy to local machine(localhost), but as i mentioned i want to deploy to my website host. how to do that?
You should be able to do that using the admin console. This is an old documentation link, but it is still valid:
http://docs.oracle.com/cd/E19798-01/821-1757/ghgjn/index.html
It tells you to go to http://localhost:4848 but you will obviously need to make sure that you can access the admin console remotely (i.e. replacing localhost with your hostname).
If not, you will need to use the command-line asadmin commands change-admin-password (if the admin password hasn't been set - it defaults to nothing) follwed by enable-secure-admin to allow remote access. Remote access to the console is only allowed over https, so these two steps are necessary before you can use it.
You will need SSH access to the server you are using to enable that - but if you already have SSH access then you can always use SCP or FTP to transfer your WAR to the server and then follow the steps in the guide you linked to.
I have successfully installed Tomcat 7 using cPanel on IWEB server. I got the installation successful message too. I am able to hit the tomcat home page using www.domain.com:8080 and it directs me to Tomcat's home page. You may take a look at http://67.205.89.174:8080/
The main challenge is, in order to access Manager App, I need admin credentials, which should ideally be found in /root/usr/local/jakarta/..../tomcat-users.xml
When I connect to 67.205.89.174 using WinSCP, I don't see any "jakarta" folder located there.
This is my first time I am trying to host a website and everything is new to me. I am doing my self study by going through some online documentations, blogs, videos etc.. related to cPanel-Tomcat 7 installation.
I would appreciate any help by guru's online here so that it can drastically save my time.
Thanks in advance!
Tomcat 7 configuration directory is /usr/local/easy/share/easy-tomcat7/conf and you can check your user configuration in /usr/local/easy/share/easy-tomcat7/conf/tomcat-users.xml file.
So I just got internship at this company, and they would like me to complete a project(Web application) which someone else did but didn't finish two years ago. But the person didn't leave any documentation about this web app. Right now I would like to run and test this web app, but I couldn't get it started.
So it's running on WebSphere Application Server in IBM Rational Application Developer, the code is written in java and javascript. (I could start the server, but I don't know where to go and open up the web app)
Sorry I'm really new to this, questions might be stupid, appreciate any help:)
Do you know what port it's running on? You should be able to access it from a web browser on the host machine by going to
http://127.0.0.1:XX
where XX is the port in question. If you don't know, try 80 - that's the default HTTP port and it's worth a shot.
The default websphere web port is 9080, so try http://localhost:9080/
So it's running on WebSphere Application Server in IBM Rational Application Developer
and
I could start the server
Assuming you are able to start the server via RAD as I assume from the above and you are able to publish the app to WebSphere via RAD, you should then be able to right click on the project folder and choose "Run on Server." It will walk you through publishing the app to the server and will then launch a browser to the index page or URL via the context path and web project settings. You can have RAD use an embedded browser (default) or adjust it to launch an external browser via Preferences -> Web Browser.
To manually check where a webapp will be deployed you can either check application.xml (if you have one) OR you can right click on the project root folder in RAD, choose Properties, and Web Project Settings. The context path is in a field there.
Run-On-Server will show you both server/hostname (usually localhost), port, and application context path in one operation.