Jetty: How do I protect unpack war file [closed] - java

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 months ago.
This post was edited and submitted for review 9 months ago and failed to reopen the post:
Original close reason(s) were not resolved
Improve this question
I developed web that deploy ROOT.war through jetty(windows10)
and I will deploy that to my client
but I don't want to who modify my unpacked war file.
and I want to protect my unpacked war file
Someone tell me How do I protect unpacked war file
Thank you in advance

Standard filesystem protections is the only way.
Jetty runs on as a specific user against it's own private temp/work directory which no other user has access to.

Related

how to move java server to web host and run it? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I have fully working localhost website(with java server, react front, MySQL database).I already moved front on host, but I can not understand or find how to move java server on web host and run it. Can anyone explain it to me?
Create a war file of the java application using maven plugin and install tomcat on the host and then just copy the war file into the tomcat directory on the host. Here is tutorial on this.

Angular 4 with Java as Backend on a single server [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I want to use angular 4 with java as backend. What I need is a single war file.I dont want to run different server for front end and back end. I want that there will be single java war file so that I can deploy it on app server like tomcat or jboss.
Please suggest some approach. Your help is highly appreciated.
HI I have done this in my project and what can you do that when you take a build of your Angular2 application then after the build copy all the content from the build/install folder and paste it in your Java Work space as a static content inside WebContent folder.
Makesure that you correctly configured the url of the backend service in your angular code.
After that try to clean the tomcat server and then restart it.
I hope it will work.

Deploy built war in server using jenkins [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I am new to Jenkins, I configured Jenkins with my CVS and I am stuck, after building the project using Jenkins I need it to be deployed automatically into the server so I can access the project.
This can be achieved by adding a "post-build" action in Jenkins, action of type can be "Deploy war/ear to a container" - that let's you define your configuration. Your question is too broad. I would suggest you read up on jenkin configurations or at least tinker with it.

JNLP Client requests resource from server multiple times before checking jar [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
The server reports that the JNLP client requests resources multiple times before checking jar.
It may be the wished-for resource is requested up to 10 times from the server, before finally checking and finding the it in the loaded JAR-file.
My app is deployed as an applet using dtjava.embed() and a JNLP-file.
The applet does start, but only after a big delay for the 100+ requests it sends to the server first!
Any ideas on what is causing the redundant requests, and how to fix it?
So it was actually this page which lead me to the solution:
Java WebStart slow, requesting libraries from invalid folder
I didn't know about indexing of JARs at all. Now I do. And as soon as I added an index to the JAR, the problem went away!
Thank you all.

Add packages to a Tomcat server [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
I'm creating a servlet-based application using Tomcat.
Besides that i've some classes to acces a DB with jdbc. (present in a other folder/package)
I was asking myself how to integrate them cleanly in my servlet-based application.
What's the "cleanest" solution ?
thx
I would go with packaging as a separate JAR file and placing in WEB-INF/lib of your web app.
While it may seem easier to just put JAR to the common libraries folder so that several web apps start using it - it will result in not being able to upgrade the JAR without restarting the whole server. Also you will need to make sure that the new JAR is working fine with all of the apps. Classpath issues are possible with this approach too.
Package them in jar files and then add files to you're project.

Categories