Deploy war on Tomcat without the war name in the URL
All you need to do is name your war ROOT.war.
All you need to do is name your war ROOT.war.
may its so late but the response useful for others so : Sometimes, when you don’t specify a server or servlet container at the creation of the project, NetBeans fails to create a context.xml file. In your project under Web Pages, create a folder called META-INF. Do this by right mouse button clicking on Web … Read more
Do not put the src folder in the WEB-INF directory!!
Try to set URIEncoding in {jboss.server}/deploy/jboss-web.deployer/server.xml. Ex: <Connector port=”8080″ address=”${jboss.bind.address}” maxThreads=”250″ maxHttpHeaderSize=”8192″ emptySessionPath=”true” protocol=”HTTP/1.1″ enableLookups=”false” redirectPort=”8443″ acceptCount=”100″ connectionTimeout=”20000″ disableUploadTimeout=”true” URIEncoding=”UTF-8″ />
You can add this to the $CATALINA_HOME/conf/web.xml <error-page> <error-code>404</error-code> <location>/error/404.html</location> </error-page> And add a webapp that has the page and will answer to the URL under <location>
This can be done in several ways. I think this way is the most straightforward: Move the WAR file outside of the webapps/ auto-deploy directory Extract META-INF/context.xml from your WAR file. If your WAR doesn’t have a META-INF/context.xml file, just use a file with nothing but <Context /> in it Copy this file into Tomcat’s … Read more
Tomcat doesn’t provide any mechanism to reload a single JAR. However, the whole context can be reloaded. You just need to tell Tomcat to watch for your JAR in context.xml, like this, <?xml version=”1.0″ encoding=”UTF-8″?> <Context override=”true” swallowOutput=”true” useNaming=”false”> <WatchedResource>WEB-INF/web.xml</WatchedResource> <WatchedResource>WEB-INF/lib/your.jar</WatchedResource> <Manager pathname=””/> </Context> We do this on production. Tomcat used to have some memory … Read more
How to set this up depends how you are deploying your grails app. If you are deploying to a container like tomcat, install and configure SSL as you normally would. Then just build a war file with grails war and deploy normally. For tomcat in particular, open the top level tomcat server.xml and add an … Read more
The whole idea behind this design is to handle different architectural layers in a typical web application and provide for inheritance / override mechanism for beans across contexts. Each type of context in Spring is related to different architectural layer for e.g, web layer, service layer etc. A Spring based web application can have multiple … Read more
Yes, you can use Tomcat7 Maven Plugin. Here is the steps: 1) Install Maven Integration for Eclipse (m2eclipse) to your eclipse from Eclipse Marketplace etc. 1.1) Navigate to Help -> Eclipse Marketplace and search “Maven Integration for Eclipse”. 2) From eclipse, create a maven project. 2.1) Navigate to File -> New -> Project… -> Maven … Read more