Java Hosting FAQ (JSP Version)

Published: 2007-07-31

Java virtual hosting management function screenshots:

image.png

image.png

blob.png

●What are the version numbers of various software on JSP hosting?
 Apache: 2.4.x
 Tomcat: tomcat6, tomcat7, tomcat8
 MySQL: 5.1.x  5.6.x
 jdk: 1.6.x  1.7.x  1.8.x

●Does JSP hosting limit memory size? What problems occur when memory is insufficient?
 The Java hosting of 西部数码 has exclusive JVM and Tomcat services. Each TOMCAT runs one website, and Tomcat operation requires memory support. The larger the memory, the more stable TOMCAT is. If memory is relatively small and insufficient, TOMCAT will report an out-of-memory error. If TOMCAT has problems, the website cannot be accessed! The specific amount of memory needed depends on factors such as whether the program is optimized and the traffic volume. Of course, the larger the memory, the better! 西部数码 provides industry-leading Java hosting, with transparent memory size, and real-time memory usage can be viewed in the control panel. If memory is too small, the website may frequently fail to open or report out-of-memory errors. In this case, you should upgrade the hosting model to obtain larger memory (more convenient), or optimize the program to reduce memory usage (generally difficult to achieve).

●Does JSP hosting support Struts?
 西部数码 JSP hosting supports Struts applications, but Struts-related library files need to be uploaded by users themselves.Note:Struts2 has serious vulnerabilities. Please refer tohttp://www.west.cn/faq/list.asp?unid=741 to   detect and fix the vulnerabilities, so as not to affect normal website access.

●What URL formats does JSP hosting support?
 All files except pl/cgi will be handled by Tomcat.
●Does JSP hosting support jspsmart.upload? Are there any points to note?
 西部数码 JSP hosting supports jspsmart.upload
●Does JSP hosting support javamail?
 西部数码 JSP hosting supports javamail applications.
●Does JSP hosting support mvc?
 西部数码 JSP hosting supports mvc applications.
●Does JSP hosting support websocket?
 Due to the use of an intermediate proxy, 西部数码 JSP hosting does not support websocket applications.
●How does JSP hosting connect to a database?
 We recommend that you use JDBC to connect to the MySQL database. Considering that user site applications vary, 西部数码 has not yet launched a general connection pool for users. If you need to use a database connection pool, we recommend that you create one yourself.
  Many users' programs still cannot connect to our database after modifying the database connection. This is generally because the original database name is still used in the jdbc database mapping. In this case, modify them together.         
●How to deploy a war package

 Our company's JAVA does not support automatic deployment of war projects. You can manually rename your war package to .zip (the war format is exactly the same as the zip format). After uploading it to our company's space, you can use the "File Management" function of our management platform to decompress the war package online to the space's wwwroot directory or other directories. If you decompress it to the wwwroot directory, the project has been automatically deployed and can be accessed directly through the domain name. If you decompress the project to a subdirectory, such as /apps, after decompression, log in to our management center - Hosting Management - Management - tomcat Management - Manual Deployment Project and enter /apps/ for manual deployment; otherwise, it will not take effect.

●What jar packages come with the Tomcat system?
 The jar packages included with JSP hosting are as follows. Please be careful to avoid conflicts with the following files.
 commons-el.jar
 jasper-compiler.jar
 jasper-compiler-jdt.jar
 jasper-runtime.jar
 jsp-api.jar
 naming-factory-dbcp.jar
 naming-factory.jar
 naming-resources.jar
 servlet-api.jar
●What permissions are enabled for JSP hosting in terms of security?
 Users have full permissions on their website's root directory.
●Why can't jsp run?
 When a 404 error occurs and the jsp file cannot be found, this may be because you uploaded a new application. You need to restart Tomcat. In the virtual hosting control panel, click "Tomcat Management">"Restart tomcat".
  If restarting still does not work, you need to debug the program according to the logs in the logs directory. 

●Startup error: java.util.zip.ZipException: error in opening zip file?

  Check the log error information, download the jar package that reports the error locally to check whether it is complete, or re-upload the jar and then restart Tomcat.

●Log error: java.io.IOException: Disk quota exceeded?

  The site quota is insufficient. Please refresh the quota in the control panel to view actual usage, or clean up unnecessary files, such as logs in the logs directory, and then restart Tomcat.

●Why does the page show " java.security.AccessControlException: access denied" error?
 There may be two possible reasons:
 1. Accessing system resources without obtaining correct permissions. We recommend that you modify permissions. Your site directory has read, write, and delete permissions.
 2. If the "access denied" phenomenon still occurs after checking that system permissions are correct, it is likely that the permissions required when your code executes exceed the range allowed by default for 西部数码 hosting. Please modify the program according to the "List of permissions opened for 西部数码 JSP hosting". If the problem still cannot be solved, you can contact the system administrator. The administrator will check your code, and if there are no security risks, will relax restrictions as appropriate to ensure your program runs normally.

●JSP hosting site directory description:
 The /wwwroot directory stores all web page files, including files in jsp/php/html and other formats, corresponding to the ROOT directory of the default webapps installation.
 /others stores mod_jk URL mapping configuration files
 /logs includes Tomcat error logs and Apache access logs
 The /work directory is the Tomcat working directory. All Servlet programs compiled from jsp are saved here.