Java Hosting FAQ (JSP Version)
Published: 2007-07-31
Screenshots of java virtual hosting management functions:



●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?
西部数码's java hosting 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 the memory is relatively small and insufficient, TOMCAT will report an out-of-memory error. If TOMCA has a problem, the website cannot be accessed! How much memory is specifically required depends on factors such as whether the program is written in an optimized way and the traffic volume. Of course, the larger the memory, the better! 西部数码 provides industry-leading java hosting, and the memory size is transparent and visible; you can view memory usage in real time in the control panel. If the memory is too small, the website may often fail to open or report an out-of-memory error. In this case, you should upgrade the hosting model to obtain larger memory (more convenient), or optimize the program to reduce memory usage (generally more 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 to http://www.west.cn/faq/list.asp?unid=741 to detect and fix the vulnerabilities, so as not to affect normal website access.
●Which URL formats does JSP hosting support?
All files except pl/cgi will be processed 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?
For 西部数码 JSP hosting, because an intermediate proxy is used, websocket applications are not supported.
●How does JSP hosting connect to the database?
We recommend that you use JDBC to connect to the MySQL database. Considering that user site applications are different, 西部数码 has not yet launched a general connection pool for users to use. 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 it together as well.
●How are war packages deployed
Our company's JAVAdoes 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 company's management platform to decompress the war package online to the wwwroot directory or other directories of the space. If you decompress it to the wwwroot directory, the project has already been automatically deployed and can be accessed directly through the domain name. If you decompress the project to a subdirectory, such as /apps, then after decompression, log in to our company's Management Center - Host Management - Manage - tomcat Management - Manual Project Deployment and enter /apps/ to manually deploy; otherwise, it will not take effect.
●What jar packages are included 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 opened for JSP hosting in terms of security?
Users have all permissions for their own website's home 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 and 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.
●Error in log: 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 the logs in the logs directory, and then restart Tomcat.
●Why does the page show " java.security.AccessControlException: access denied" error?
There may be two reasons:
1. Accessing system resources without obtaining correct permissions. We recommend that you modify the permissions. Your site directory has read, write, and delete permissions.
2. If "access denied" still appears after checking the system permissions and finding no errors, it is very likely that the permissions required when your code executes exceed the range allowed by default by 西部数码 hosting. Please modify the program according to the "List of Permissions Opened by 西部数码 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 the restrictions as appropriate to ensure that your program runs normally.
●Description of JSP hosting site directories:
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 installed webapps.
/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.
