gayuk
asked on
Lock down the .war file
Hi,
I have developed a JSP application that i want to give to a client to test. I do not want the client to be able to see the code. Is it possible to password protect the war file?
Thanks
I have developed a JSP application that i want to give to a client to test. I do not want the client to be able to see the code. Is it possible to password protect the war file?
Thanks
Try zip your war file with Winzip, and set a password, for example.
ASKER
ryancys,
I tried that but it does not work. The app server tries to unzip it for recompilation and that fails..
I tried that but it does not work. The app server tries to unzip it for recompilation and that fails..
What i mean is 1st try to compress your files into a war file 1st, and then simply use any zipping tool (in this case, Winzip) to zip the war file and make it password protected. Actually it's the way i've done for my previous client all the time when i deployed the jsp applications.
ASKER
ryancys,
I am not sure i understand. You can also create a war file through the Zip utility..Even if I were to create a war file and zip it up, would you unzip it before deploying it..
When you did this.. did you just put the zip file in the appropriate directory and leave it at that or did you unzip it and then deploy it?
I am sorry if is sound confused.. I am :-)
Thanks
I am not sure i understand. You can also create a war file through the Zip utility..Even if I were to create a war file and zip it up, would you unzip it before deploying it..
When you did this.. did you just put the zip file in the appropriate directory and leave it at that or did you unzip it and then deploy it?
I am sorry if is sound confused.. I am :-)
Thanks
>>I am not sure i understand. You can also create a war file through the Zip utility
Actually i'm not too sure about that, really.. ;-)
Yet, I used to create war file from command prompt, like:
C:\jdk\bin\myApp>c:\jdk\bi n\jar cvf c:\jdk\bin\myApp.war *.*
where i usually copy the whole application folder to bin folder, and then i zip the created myApp.war file with Winzip, and make it password protected.
and once it's deployed on my client's end. He will unzip the file, and then the client get the myApp.war file. And he will restart it's Servlet Container (Tomcat in this case), and then the war file is 'unwar'ed.
The above may also sounds weird, those are what i learn myself and it works for me so far for this couple of years ;-)
Correct me or other guys may have better approach 8-)
Actually i'm not too sure about that, really.. ;-)
Yet, I used to create war file from command prompt, like:
C:\jdk\bin\myApp>c:\jdk\bi
where i usually copy the whole application folder to bin folder, and then i zip the created myApp.war file with Winzip, and make it password protected.
and once it's deployed on my client's end. He will unzip the file, and then the client get the myApp.war file. And he will restart it's Servlet Container (Tomcat in this case), and then the war file is 'unwar'ed.
The above may also sounds weird, those are what i learn myself and it works for me so far for this couple of years ;-)
Correct me or other guys may have better approach 8-)
ASKER
Okay...
I see what you mean.. However, what i want to do is to secure the war file itself. I don't want the client to see the application code..
I see what you mean.. However, what i want to do is to secure the war file itself. I don't want the client to see the application code..
ASKER
cchangti,
Does using JSPC allow me to deploy on different servlet containers?.. I see this as a good option but is it supported by other app severs other than tomcat?
Thanks
Does using JSPC allow me to deploy on different servlet containers?.. I see this as a good option but is it supported by other app severs other than tomcat?
Thanks
Yes, it is supported. But, you need to jspc with different application servers (effectively creating one war file per app server)...
for example you will use weblogic.jspc xyz.war for weblogic etc...,
for example you will use weblogic.jspc xyz.war for weblogic etc...,
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
they will just see the compiled code. (I am assuming that they are deploying the war file given by you)...