博文

目前显示的是标签为“tomcat”的博文

Config remote debug for tomcat hosted web application

Modify your tomcat startup script (startup.bat): Add this at the beginnng of startup.bat script set JPDA_ADDRESS=8000 set JPDA_TRANSPORT=dt_socket Replace  "call %EXECUTABLE%" start %CMD_LINE_ARGS%" to "call "%EXECUTABLE%" jpda start %CMD_LINE_ARGS%" Now tomcat start with opening port 8000 for debugging. Configure eclipse debug: In Run > Debug Configurations add a new debug configuration by selecting 'Remote Java Application' Use port 8000 and select the correct project to debug

404.jsp cause ClientAbortException on Tomcat

2009-09-29 11:29:10,425 [http-443-Processor23] WARN org.apache.catalina.core.ContainerBase.[Catalina].[localhost] - Exception Processing ErrorPage[errorCode=404, location=/error/notfound.jsp]  ClientAbortException: javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLException: java.net.SocketException: Connection reset by peer: socket write error  at org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:366)  ...  Caused by: javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLException: java.net.SocketException: Connection reset by peer: socket write error  ...  Caused by: javax.net.ssl.SSLException: java.net.SocketException: Connection reset by peer: socket write error  at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Unknown Source)  ...  Caused by: java.net.SocketException: Connection reset by peer: socket write error  ......

Install tomcat in ubuntu

1) Find a correct tomcat package to install sudo apt-cache search tomcat 2) Install all Tomcat package with following command sudo apt-get install tomcat5.5-webapps sudo apt-get install tomcat5.5-admin sudo apt-get install tomcat5.5 3) Done apt-get help Ubuntu to configure almost everything and create a script put inside init .d folder for Tomcat auto startup script. we can start/stop/restart Tomcat with following command /etc/init.d/tomcat5.5 start /etc/init.d/tomcat5.5 stop /etc/init.d/tomcat5.5 restart apt-get help to create a share folder in /usr/share also, please access cd /usr/share/tomcat5.5 and issue a ls -lh in /usr/share/tomcat5.5 to find out the rest of the Tomcat location. drwxr-xr-x bin drwxr-xr-x common lrwxrwxrwx conf -> /etc/tomcat5.5 lrwxrwxrwx doc -> ../doc/tomcat5.5 lrwxrwxrwx logs -> /var/lib/tomcat5.5/logs drwxr-xr-x server lrwxrwxrwx shared -> /var/lib/tomcat5.5/shared lrwxrwxrwx temp -> /var/lib/tomcat5.5/temp lrwxrwxr...