how to Secure war inside tomcat - security

I am deploying my web application as an war in tomcat. I don't want my war and extracted folder inside tomcat webapps to be exposed to others. Since it can be easily decompiled.
Kindly provide solution for this issue.

Related

Starting BroadleafCommerce-develop-5.2.x

How can I start BroadleafCommerce-develop-5.2.x application. How to deploy on Tomcat would be more helpful. I am able to start the Demo site- Admin, Site and API.
When building the app you can change the packaging type in your site and admin pom.xml to war instead of jar and then drop that in a tomcat instance. Additional documentation can be found here https://www.broadleafcommerce.com/docs/core/current/broadleaf-concepts/key-aspects-and-configuration/app-server-configuration/tomcat

Packaging a Jax-Rs web project and hosting it

I have developed a java Rest Service in NetBeans.... It is a web application.It needs jax-rs jar files. Now when I want to buy domain and hosting for this project, what kind of packaging should i do?And can I host the resultant file in a shared hosting on Tomcat Server?
Well, you can deploy your application in 3 ways:
On JavaEE supporting hosting
On hosting with Tomcat — than you'll need to include JAX-RS implementation jars into your .war file
On any VDS/VPS, but you'll need to set up applcation server/servlet container yourself.

How to deploy dependencies with XPages Runtime in Bluemix

I uploaded my project to Bluemix using IBM Domino Designer, the XPages runtime started fine. During testing, I hit the URL and I received a message
"The application /gittest.nsf requires org.openntf.xsp.debugtoolbar.library. This library cannot be found."
I use a UpdateSite on premises and this application also uses jars in the lib\ext folder on the Domino server.
How do I deploy external jars with the XPages runtime?
How do I deploy my servers updatesite?
When I build locally, I have a c:\sharedlib folder where I have Spring Boot, Hibernate, a Service jar with DAO. In my designer, the project is configured to use the external jars. On the server, I have these jars in the lib\ext folder.
I also use some openNTF projects in UpdateSites (like the error sampled here).
Please advise!
You need to put all the osgi plugins in a folder named 'shared-plugins' this directory should be at the same level as the Manifest.yaml file in your project's deployments folder.
More details see the blog of Oliver Busse
http://oliverbusse.notesx.net/hp.nsf/blogpost.xsp?documentId=FD2

How to deploy a .war to Embedded Jetty of Gridgain

I would like to deploy my custom web application (.war) to the embedded Jetty container of Gridgain. Would you please direct me to documentation or describe steps?
Please advise.
Thanks.
GridGain embedded Jetty server was not intended to run user war applications, so there is no explicit logic for war file deployment.
However, according to this question, you might be able to deploy a war file by specifying $JETTY_HOME environment variable and dropping your war file to appropriate folder.

Is it possible to deploy an application with 2 WAR files + 1 EJB.jar file

Here my requirement is to seperate the public portal and admin portal.
Faramework is JSF1.2 , EJB 3.0 and application server is glassFish 2.x
So my question is that can we have 2 WAR files and 1 EJB.jar file
in single enterprize application?
If yes how to access the EJB's
from both WAR's ?
can we deploy and application with both WAR's and EJB?
IDE is Netbeans 7.0
OS is Windows 7
Any information will be appriciated.
Yes, you can have multiple war files and an EJB jar file packaged in an EAR.
The EJBs will need to have local interfaces, but will be accessible in both web apps.
You probably should not try to deploy the web apps, EJB jar as stand-alone modules and then attempt to deploy an EAR file that contains all of them. It can be done, but the errors that you are likely to encounter will be a bit confusing.

Resources