Deploy static HTML javadoc pages in a jar file on server - deployment

I have a jar file with generated static javadoc pages.
How can I deploy it on a server and which URL should I use to call the index.html on my webserver.
Supposed:
myAppJavadoc.jar is the javadoc jar file
the link
server-url/myAppJavadoc/index.html doesn't work.
Do I have to configure the entryPoint for the jar via javadoc option? Or do I have to deploy it as exploded files on the webserver?
Thanks for help!

I found my own answer.
Somehow I missed the point before my post, sorry.
You have to rename the .jar file in .war, deploy it in your webserver in the deployment directory and call it in the above described way:
server-url/myAppJavadoc/index.html works fine if it is a .war file.

Related

Using "/" as default project root on Jboss Wildfly

I have a wildfly-14.0.1.Final server and a project (foodHosting) with a deployable ear module named foodHosting-ear and a web war module named fooHosting-web. After the deploy to reach my index.xhtml I have to write localhost:8080/foodHosting-web/ to my browser. Is there any solution to write only localhost:8080 and show my application? Like localhost:8080/index.xhtml?
You have to rename the fooHosting-web.war to ROOT.war
Edit: It's not needed to rename the .war inside your .ear, you have to change the context-root as the answer #wirnse said in the comment, but instead of /WEB-INF/jboss-web.xml check your /META-INF/application.xml and empty the context-root tag: <context-root></context-root>

how to download war files from wildfly 8

Wildfly 8:
Where are the deployed war files located on the server file system?
How do I download them? I tried using the JBoss CLI as well as the Web Interface.
Found the war files to be located here. In this directory I found several subdirectories. The war files were all named content and did not have an extension. I could figure out what they were based on file size and timestamp.
wildfly location\standalone\data\content
You want the files 'after' they have been deployed? This generally isn't a good idea as it isn't guaranteed to be exactly the same as the source archive.
The standard location for the deployment archives is ./standalone/deployments/ although this can be changed in the configuration.
After an archive is deployed you can see the exact location of there the deployed archive came from in the configuration, it will be written to the bottom of the xml file.
There is a download button to download the .war
in the management console localhost:9990
click the view button near your war
on top you will find a download icon
I found it in the %WILDFLY_HOME%\standalone\temp\ directory. If it is not present there then you can perform a search in all the subdirectories of the wildfly.

Jetty deploy war file (Automatic Deployment is not working)

this is my first time deploying a war File to a Jetty Server via SCP+SSH and I'm not able to get it to work.
I made a proper .war file with Eclipse (but I also tested the same things I'm going to mention with a example .war file) and copied the file to the folder /jetty/webapps/ROOT. Now when I restart Jetty and try to get on the server (I tried Serveradress/WarFilename/ aswell) I get to a Directory Path and I'm able to download the war file but nothing else.
I also tried to copy the war file to the webapps folder itself instead of webapps/ROOT. What am I doing wrong?
The directory ${jetty.base}/webapps/ROOT/ is for exploded webapps, or static resource deployments.
If you want to serve your war file, say myapp.war on the root context "/", then copy it to the file ${jetty.base}/webapps/ROOT.war
Note: if you are copying the file into the jetty-distribution/webapps/ you are doing it wrong, go read up on how ${jetty.base} and ${jetty.home} work.

How to deploy gwt static pages in jboss

I have some static files ( html, javascript, css - compiled gwt client code). I need to deploy that files in jboss.
That is I need to access like http://localhost:8080/Client/homepage.html .
Where do I need to put the files in jboss.
I tried putting it in
D:\Program Files\jboss-4.2.3.GA\server\default\deploy\Client\homepage.html
restarted the server and tried to access
http://localhost:8080/Client/homepage.html.
But it shows 404 error.
How should I fix this?
If you rename Client folder to Client.war, the example will work.
You don´t need to do anything special to deploy static files, just place them in a valid war and that´s it. By valid war I mean having a WEB-INF folder with your web descriptor inside (web.xml), lib and classes folder, etc..
It is shown here:
http://docs.oracle.com/javaee/5/tutorial/doc/bnadx.html

Deploying GWT in localhost and see that webpage

I am a new user in GWT and I want to deploy one of existed samples in my localhost. I could run the example by eclipse and get the result. But I need to deploy that example in my localhost (IIS). How can I do this?
Copy the contents of your project's war directory to your server's document root. You could create a folder there, mproject for example. Then load your project on a web browser: localhost/mproject to view.
Go into your project's war directory For EX:
C:\workspace\HelloWorld\war
Select all the files & folders available inside war directory.
Zip all the selected files & folders in a file called HelloWorld.zip.
Rename HelloWorld.zip to HelloWorld.war.
Deploy it to the server