RSS Feed
Knowledgebase : Linux OS Based Plans > Java/JSP Hosting Plans
   

Yes, they are supported on all our Java hosting plans.
Our Shared Tomcat hosting plans are all work under 192 MB shared heap size and 192 MB shared Permgen: http://www.dailyrazor.com/shared-tomcat-hosting/ However, you can choose preferable Private Tomcat hosting plans and get your private heap and permge...
Unfortunately you cannot deploy .war via control panel. Shared Tomcat users need to unpack war file contents to ~/public_html directory (or its subdirectory) and request shared Tomcat restart via our HelpDesk. Private Tomcat users can deploy applications ...
Our Private JVM Plans gives you control over the Tomcat app server.  You're able to restart it on demand through SSH.  Contact us and we will provide you with instructions on how to restart it via SSH anytime. For our Shared JVM plan, you will need to ...
With Shared Tomcat, you can't restart Tomcat on your own. However, we'll do it for you if you email us whenever you want your Tomcat restarted. With Private Tomcat, you have total control - you can restart Tomcat at any time via SSH or via our online w...
Yes ( for shared and private Tomcat).
Yes, you can install any Java packages, but with the following restrictions: -it must be properly licensed -it should not cause server overload -it should not listen ports
Yes you can deploy multiple WAR files thus having more than 1 application.
LifeRay is supported on our Private Tomcat plans.
OpenJMS should work fine on our private Tomcat plans with JVM Heap size 256 (and more)Mb installed. Also, you're welcome to try our VPS packages: http://www.dailyrazor.com/vps/vds_plans.php
Yes. We do support all popular Java frameworks.
The "OutOfMemoryError: PermGen space" message is normally encountered during development activites where a long-running JVM is asked to load/unload builds. However it can also be encountered in a recently spawned JVM under the "right" set of conditions. T...
Error message "503 Service Unavailable" appears when your Tomcat instance is unable to serve requests (being down or stuck). Such issue can happen due to lack of resources (OutOfMemory exception) or other fatal errors that prevent Tomcat from ...
This example demonstrates how to get the value of a request header in either a GET or POST request. // This method is called by the servlet container to process a GET request. public void doGet(HttpServletRequest req, HttpServletResponse resp) th...
In a GET request, the request parameters are taken from the query string (the data following the question mark on the URL). For example, the URL http://hostname.com?p1=v1&p2=v2 contains two request parameters - - p1 and p2. In a POST request, the requ...
In a GET request, the request parameters are taken from the query string (the data following the question mark on the URL). For example, the URL http://hostname.com?p1=v1&p2=v2 contains two request parameters - - p1 and p2. In a POST request, the requ...
The servlet container supports the ability to store startup and configuration information for a servlet. After the container instantiates the servlet, it makes this information available to the servlet instance. This example demonstrates a servlet that re...
// This method is called by the servlet container to process a GET request.     public void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException {         // Get client's IP address         String addr = req.getRemot...
A servlet container breaks up the requesting URL into convenient components for the servlet. The standard API does not require the original requesting URL to be saved and therefore it is not possible to get the requesting URL exactly as the client sent it...
The shared tomcat JVM Heap size is 192 MB.  But please note - this memory is shared between all shared tomcat accounts.
It is not possible to access Tomcat through HTTPS without SSL. Although you can generate self signed certificate and use an error will be shown each time when visiting SSL page. In this case SSL certificate is not needed, but dedicated IP is also requi...
Unfortunately, currently there is no direct way to change your web based tomcat restart password for you.  Please submit a support ticket with request to change it (and with new password inside, if you wish to change it to your old password). 
Please use JavaMail package. Please check the following code: <%@ page import="java.util.*, javax.mail.*, javax.mail.internet.*" %> <% String Fr = "webmaster@test.com"; String To = "mk@test.com"; String SMTPhost = &...
We provide two convenience ways to start/stop your Private Tomcat server.The first method is to log into the url provided in your tomcat server information email - in there, simply click on the Stop or Start link.Second way is via SSH. You can stop/start ...
Use this test code:<%@ page import="java.sql.*" %> <% Connection connection = null; Class.forName("com.mysql.jdbc.Driver").newInstance(); connection = DriverManager.getConnection("jdbc:mysql://localhost/<DATABASE NAM...
There are two ways of how you can deploy your applications - via FTP or using Tomcat Manager. I. FTP 1) Upload your application web archive file (.war file) or directory with unpacked application into "/home/canadadi/tomcat/webapps/canadadiscountpos.c...
Yes, on our private Tomcat plans you're able to have two web apps hosted on your Tomcat instance and have two domain names point difference ones. To accomplish this, you need to add your second domain as addon domain via cPanel and open a request ticket ...
mod_rewrite doesn't work with Tomcat. Please open a support ticket and provide our support team the list of directories that should be unmounted from Tomcat.
There are many different strategies for implementing a form. Some strategies involve a JSP page that shows the form and another to show field validation errors. This example combines both pages in one since in most cases, the page that shows validation er...
After the user submits a form for processing, it is possible for the user to inadvertently hit the back button and resubmit the form again.  It is possible to prevent this possibility if necessary. The strategy involves the use of a timestamp that is sav...
To include an HTML or JSP fragment in a JSP file, the include directive is used. The effect is essentially equivalent to replacing the directive with the contents of the included file. This means that an included fragment can access any objects defined in...
If you have Private Tomcat package you are able to access to your Tomcat Manager. Using this manager you can deploy war packages. You can find your Private Tomcat manager login info in your welcome email.If you have Shared Tomcat package, to deploy your w...
For our Private JVM plans, you will have full control over your server.xml, so creating servlet aliases shouldn't be an issue.
You can define your own custom error pages in your web.xml file. In the example shown below, we define 2 web pages -- server_error.html and file_not_found.html -- which will be displayed when the server encounters an error 500 or an error 404 respectively...
The servlet container provides a simple logging facility for a servlet to log text messages and exceptions. For a more full-featured logging facility, see the java.util.logging package. // Add an entry to the log file getServletContext().log(&quo...
An include action executes the included JSP page and appends the generated output onto its own output stream. Request parameters parsed from the URL's query string are available not only to the main JSP page but to all included JSP pages as well. It is po...
Some JSP containers support the capability of precompiling a JSP page. To precompile a JSP page, access the page with a query string of ?jsp_precompile: http://hostname.com/mywebapp/mypage.jsp?jsp_precompileThe JSP page will not be executed. If the co...
By default, a servlet container will use a servlet instance to concurrently process multiple requests. Although, this behavior burdens the servlet developer to properly synchronize shared state, this ability to handle multiple requests allows for a more s...
By default, a JSP page will automatically create a session for the request if one does not exist. However, sessions consume resources and if it is not necessary to maintain a session, one should not be created. For example, a marketing campaign may sugges...
By default, a HEAD request is automatically processed by the HttpServlet.doGet() method using a modified response object that simply counts and discards any characters written to the buffer. If it is necessary to improve the performance of a servlet that ...
This example returns to the requestor, an image read from a file: // This method is called by the servlet container to process a GET request. public void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException { ...
Java code fragments in a JSP page is called a scriptlet. This example demonstrates how to include scriptlets in a JSP page. Use the out variable to add text to the generated output: <% double rand = Math.random(); if (rand < .1...
When a JSP page needs to save data for its processing, it must specify a location, called the scope. There are four scopes available - page, request, session, and application. Page - scoped data is accessible only within the JSP page and is destroyed when...
There are three places a servlet can save data for its processing - in the request, in the session (if present), and in the servlet context (which is shared by all servlets and JSP pages in the context). Data saved in the request is destroyed when the req...
A JSP page consists of template text with embedded JSP elements. Template text is automatically written to the output stream while the embedded JSP elements are executed. Here is a simple JSP page: <html> <head> <title>...
When you opt for our Shared Tomcat package, you share JVM with other Java users on our server. Private Tomcat means that you have your own dedicated Tomcat with full control over it.
Private Tomcat: We don't have spring framework installed by default. You should deploy all required JAR files for it on your Tomcat instance and restart it. Shared Tomcat: Spring framework is supported on our shared servers and you should be able to inst...
At this time you can only use MS SQL 2008 with the Linux packages.
Stop and restart Tomcat. The message will go away. This error was common in Tomcat 5.0 and is discussed in the Tomcat FAQ. It was supposed to go away in Tomcat 5.5 but it did not.
Question:  It appears that my Java hosting is not enabled yet: going to http://MY IP ADDRESS/~username/jsptest.jsp does not execute the jsp Anwser: Your Java hosting is enabled. Your JSP does not execute because user dir style requests are handled by apac...