My application generate PDF and save it in the WAR file. Everything works fine in the localhost but after deploying the WAR under the remote Wildfly server the app can't access the WAR file.
ut.setDestinationFileName( "../../wildfly-9.0.1.Final/standalone/deployments/MyApp.war/Rapport/SampleResult.pdf");
thank you for answering, i found a solution, i don't know if it's the best one but it work:
MyApp.war is a compressed file and ut.setDestinationFileName() can't access to a compressed file so i create a new folder under "wildfly-9.0.1.Final/standalone/deployments" and i name it MyApp.war and there i decompress the real war file and finally i restart the server.
Related
I've installed payara5 on ubuntu and going to upload file to docroot.i need to know if there is such a capability in payara
Payara doesn't support uploading individual files. It's an application server and supports only uploading whole application packages.
But you can upload files to the docroot manually, e.g. using FTP or SFTP. If you place your files to glassfish/domains/domain1/docroot, they will be served from the root context. E.g., if you upload a file image.jpg to that directory, it will be accessible at http://host:8080/image.jpg
System Information: I have a system with 10 tomcat server and load balancer in linux operating system.
Configration: I am running tomcats in linux screen
Problem: When i have to deploy new war file , i need to stop 10 tomcat server, remove old war and extracted old war folder, copy new war file to webapps directory and start it
Question: Is there any way to do this operations faster ?
The best solution is using Curl(linux command) with tomcats manager.
Detailed usage: Using Curl with tomcats manager
I have create a page that uploads war file to file store which all of my tomcats can access then calling curl commands for each server in java.
Normally you don't have to stop the tomcat server to delete the previous war file. When you delete the war file it will automatically delete the corresponding directory of if.
Use a bash script to delete and copy the files.
I am working on ios project. One of the module in that project download *.zip files and extract them into app memory. on the server side I installed tomcat server, and uploaded all *.zip files and some *.txt files to the context path.
But when I call the *.txt file's it's working fine (I am getting text on app and browser) but when I call *.zip's file I got 404 (the requested resource is not available). the url is correct but it's only working for .txt files and some extension files.
I think it's blocking .zip files for security reasons. But I need zip file need to downloaded.
if the .zip files is outside the server webapps path its need to be added on context path (and dir path), and reload the server solves the problem.
I've just finished a web project, working with Struts2, and now I want to add this project to my FTP site. The site runs smoothly on Tomcat 8, but I am not sure how to deploy it to an actual site.
How do I add this .WAR file that has .jsp and .xml files to a website? I've tried to just put it in a directory and launch it with fileZilla, and it doesn't work.
What should I do to launch my Struts2 project to my FTP site?
In FileZilla put your user name and password.
In left side will show your machine file
On right side put path of your webapp folder, It will come in mail when you buy any server from hosting providers or ask them.
Upload your .WAR file in webapp folder.
Restart Tomcat.
I assume you need to deploy it again on your FTP site. You need to deploy it into your webapps folder of your server. You may look at this link. This might help you :)
I have problems with file uploading on Tapestry 5.3.6.
I am using this as a reference http://tapestry.apache.org/uploading-files.html
With Jetty web server, everything is fine, file gets uploaded into project directory.
But, If I run app on Tomcat, file get uploaded into Tomcat directory.
Is there any way to point Tomcat to upload file to project directory?
Thanks in advance :)
As far as i know, you can contribute with a parameter in the contributeApplicationDefaults method in AppModule, like
configuration.add(UploadSymbols.REPOSITORY_LOCATION,);
Try that.