JSP版远程管理, 小第做的,完全公司源代码... 欢迎大家拍砖
事出原因:
项目做完后,发布到服务器上,可是客户不给远程管理. 维护起来特别不方便. 有一点小错,都要跑到客户的公司去调试.. 郁闷
所以小第写了个远程管理. 方便查看tomcat日志 和 更新jsp文件....
下载地址: http://www.mietian.net/mtc.zip
已实现的功能
1.文件管理: 包括对文件的操作和打包下载.
2.终端命令: 其实就是Win下的"命令提示符",可以通过命令进行重启服务器等操作
3.远程桌面: 和Windows系统的"mstsc"基本上一样,可以远程管理桌面.
4.任务管理: 可以查看正在运行的程序的状态,并终止已停止响应的程序
5.服务管理: 启动、停止或重新启动服务.
6.系统信息: 可以查看CPU、内存、OS版本....
欢迎大家拍砖
[解决办法]
不错 内容挺全的 值得鼓励!
[解决办法]
up
[解决办法]
[解决办法]
好的,我下载一下,帮你测试一下!
[解决办法]
瞧瞧!
[解决办法]
厲害^
[解决办法]
不错
[解决办法]
不错
[解决办法]
厉害啊楼主!学习去!
[解决办法]
好东西楼主很厉害哈。
[解决办法]
已下载,看不懂,帮顶了
[解决办法]
公司下不了 回家再看
[解决办法]
不错,测试后再发表评论。
[解决办法]
很好的东东
[解决办法]
下来学习一下
[解决办法]
学习了,桌面的时候是不是有点问题
[解决办法]
up
[解决办法]
up
[解决办法]
LZ做的很强大,
如果改改,将LINUX下不能使用,或者考虑某些目录(例如根目录)是否有读权限考虑进去就完美了。
[解决办法]
我下了来看了..
强.
[解决办法]
楼主牛啊,这么多人帮你测试,我也来测测。
[解决办法]
偶也下一个测试下
[解决办法]
呵呵 不道德!
[解决办法]
顶一个,
[解决办法]
学习
[解决办法]
顶一个,下下来看看。
[解决办法]
下来看看!学习!!
[解决办法]
学习
[解决办法]
学习
[解决办法]
顶一个
------解决方案--------------------
下来看看 学学
[解决办法]
呵呵..好东西
[解决办法]
不错啊// 很 NB。。
但是。。。我的服务器是LINUX 。要是有个LINUX版本的话就好了 。。。
[解决办法]
问个比较笨的方法,怎么用啊
[解决办法]
up
[解决办法]
不错,瞧瞧。
[解决办法]
顶。。加精。。
[解决办法]
看不懂,帮顶
[解决办法]
发现个大bug,点击“桌面“的时候,显示页面无限循环出现
[解决办法]
牛人!
[解决办法]
up
[解决办法]
。。。。这样啊,呵呵
[解决办法]
up
[解决办法]
up
[解决办法]
很不错!
[解决办法]
学习学习
[解决办法]
org.apache.jasper.JasperException: An exception occurred processing JSP page /mtc.jsp at line 1230
1227: for(int i=0;i<rfs.length;i++)
1228: {
1229: String path=rfs[i].getPath().replaceAll("\\\\","/");
1230: String name=path.equals("A:/")?"A:/":ShellFolder.getShellFolder(rfs[i]).getDisplayName();
1231: out.print("<option value=\""+path+"\"> "+name);
1232: if(p.length()>0&&p.startsWith(path))
1233: {
Stacktrace:
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:505)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:404)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
root cause
java.io.FileNotFoundException
sun.awt.shell.ShellFolder.getShellFolder(Unknown Source)
org.apache.jsp.mtc_jsp._jspService(mtc_jsp.java:1310)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
不知道怎么回事。我找过,有sun.awt.shell.ShellFolder.getShellFolder这个方法呀。怪了。
[解决办法]
楼主好人,顶,希望有更多的人开源来
[解决办法]
开源哟..呵呵 顶乐.
[解决办法]
顶```
太强了,学习去
------解决方案--------------------
d
[解决办法]
提供bug报告:
第1231行,读光驱的盘符会报错。或者光驱里面没光盘时候会报错。
还有,选“信息”时,exec执行的命令会报错。。。
[解决办法]
每次刷新页面都后台报错,虽然不影响使用,看着不爽。你自己试的时候不会吗?我试着在最后加上<% out.close() %>,好像解决不了。
严重: Servlet.service() for servlet jsp threw exception
java.lang.IllegalStateException: getOutputStream() has already been called for this response
at org.apache.catalina.connector.Response.getWriter(Response.java:610)
at org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:198)
at org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:125)
at org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:118)
at org.apache.jasper.runtime.PageContextImpl.release(PageContextImpl.java:188)
at org.apache.jasper.runtime.JspFactoryImpl.internalReleasePageContext(JspFactoryImpl.java:118)
at org.apache.jasper.runtime.JspFactoryImpl.releasePageContext(JspFactoryImpl.java:77)
at org.apache.jsp.mtc_jsp._jspService(mtc_jsp.java:1499)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Unknown Source)
[解决办法]
另:
操作系统:Red Hat Enterprise Linux AS release 4 (Nahant Update 4)
WEB服务器:TongWeb
这个环境下不行。页面错误信息:
Internal Servlet Error:
javax.servlet.ServletException: Servlet execution threw an exception
at com.tongweb.webbase.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:255)
at com.tongweb.webbase.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:95)
at com.tongweb.webbase.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:185)
at java.security.AccessController.doPrivileged(Native Method)
at com.tongweb.webbase.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:181)
at com.tongweb.webbase.core.ApplicationFilterChain.wrappedDoFilter(ApplicationFilterChain.java:160)
at com.tongweb.webbase.core.ContextManager.internalService(ContextManager.java:976)
at com.tongweb.webbase.core.ContextManager.service(ContextManager.java:838)
at com.tongweb.servlet.connectionMethods.http.HttpAdapter.service(HttpAdapter.java:144)
at com.tongweb.servlet.connectionMethods.http.HttpProcessor.process(HttpProcessor.java:237)
at com.tongweb.servlet.connectionMethods.http.HttpHandler.processRequests(HttpHandler.java:118)
at com.tongweb.servlet.connectionMethods.http.HttpHandler.run(HttpHandler.java:91)
at java.lang.Thread.run(Thread.java:595)
Root cause:
java.lang.ExceptionInInitializerError
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at java.lang.Class.newInstance0(Class.java:350)
at java.lang.Class.newInstance(Class.java:303)
at com.tongweb.webbase.facade.ServletHandler.getServlet(ServletHandler.java:341)
at com.tongweb.webbase.facade.ServletHandler.preInit(ServletHandler.java:435)
at com.tongweb.webbase.facade.ServletHandler.init(ServletHandler.java:220)
at com.tongweb.webbase.facade.ServletHandler.service(ServletHandler.java:468)
at com.tongweb.webbase.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
at com.tongweb.webbase.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:95)
at com.tongweb.webbase.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:185)
at java.security.AccessController.doPrivileged(Native Method)
at com.tongweb.webbase.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:181)
at com.tongweb.webbase.core.ApplicationFilterChain.wrappedDoFilter(ApplicationFilterChain.java:160)
at com.tongweb.webbase.core.ContextManager.internalService(ContextManager.java:976)
at com.tongweb.webbase.core.ContextManager.service(ContextManager.java:838)
at com.tongweb.servlet.connectionMethods.http.HttpAdapter.service(HttpAdapter.java:144)
at com.tongweb.servlet.connectionMethods.http.HttpProcessor.process(HttpProcessor.java:237)
at com.tongweb.servlet.connectionMethods.http.HttpHandler.processRequests(HttpHandler.java:118)
at com.tongweb.servlet.connectionMethods.http.HttpHandler.run(HttpHandler.java:91)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.awt.HeadlessException:
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
at sun.awt.HeadlessToolkit.getScreenSize(HeadlessToolkit.java:247)
at mtc_1.(mtc_1:33)
... 23 more
Root cause:
java.awt.HeadlessException:
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
at sun.awt.HeadlessToolkit.getScreenSize(HeadlessToolkit.java:247)
at mtc_1.(mtc_1:33)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at java.lang.Class.newInstance0(Class.java:350)
at java.lang.Class.newInstance(Class.java:303)
at com.tongweb.webbase.facade.ServletHandler.getServlet(ServletHandler.java:341)
at com.tongweb.webbase.facade.ServletHandler.preInit(ServletHandler.java:435)
at com.tongweb.webbase.facade.ServletHandler.init(ServletHandler.java:220)
at com.tongweb.webbase.facade.ServletHandler.service(ServletHandler.java:468)
at com.tongweb.webbase.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
at com.tongweb.webbase.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:95)
at com.tongweb.webbase.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:185)
at java.security.AccessController.doPrivileged(Native Method)
at com.tongweb.webbase.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:181)
at com.tongweb.webbase.core.ApplicationFilterChain.wrappedDoFilter(ApplicationFilterChain.java:160)
at com.tongweb.webbase.core.ContextManager.internalService(ContextManager.java:976)
at com.tongweb.webbase.core.ContextManager.service(ContextManager.java:838)
at com.tongweb.servlet.connectionMethods.http.HttpAdapter.service(HttpAdapter.java:144)
at com.tongweb.servlet.connectionMethods.http.HttpProcessor.process(HttpProcessor.java:237)
at com.tongweb.servlet.connectionMethods.http.HttpHandler.processRequests(HttpHandler.java:118)
at com.tongweb.servlet.connectionMethods.http.HttpHandler.run(HttpHandler.java:91)
at java.lang.Thread.run(Thread.java:595)
[解决办法]
mark
[解决办法]
mark
[解决办法]
不懂,帮顶
[解决办法]
不懂,帮顶
[解决办法]
不错~顶一下咯~
[解决办法]
[解决办法]
发现在一个问题,终端的“env”会根据执行命令的次数重复的将信息显示在页面上!
[解决办法]
500 Servlet Exception
java.lang.InternalError: Can't connect to X11 window server using ':0.0'
as the value of the DISPLAY variable.
at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:134)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:141)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:62)
at sun.awt.motif.MToolkit.<clinit>(MToolkit.java:81)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:141)
at java.awt.Toolkit$2.run(Toolkit.java:748)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:739)
我的异常网推荐解决方案:An exception occurred processing JSP page,http://www.myexception.cn/j2se/33144.html