我帮别人弄一个网站!在网通租的域名空间,我在制作和调试的时候都是在Tomcat下进行的 ! 一切都OK 没问题! 可是服务器上的是Resin(做完了才知道), 所以在往服务器上传以后出现了很多错误:500 Servlet Exception
javax.servlet.ServletException: Class `servlet.CheckUser_servlet' was not
found in classpath.
Classes normally belong in /WEB-INF/classes.
at com.caucho.server.http.Application.instantiateServlet(Application.java:3198)
at com.caucho.server.http.Application.createServlet(Application.java:3104)
at com.caucho.server.http.Application.loadServlet(Application.java:3065)
at com.caucho.server.http.QServletConfig.loadServlet(QServletConfig.java:435)
at com.caucho.server.http.Application.getFilterChainServlet(Application.java:2809)
at com.caucho.server.http.Application.buildFilterChain(Application.java:2765)
at com.caucho.server.http.Invocation.service(Invocation.java:313)
at com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:135)
at com.caucho.server.http.RunnerRequest.handleRequest(RunnerRequest.java:346)
at com.caucho.server.http.RunnerRequest.handleConnection(RunnerRequest.java:274)
at com.caucho.server.TcpConnection.run(TcpConnection.java:139)
at java.lang.Thread.run(Thread.java:534)
说找不到这个在/WEB-INF/classes下找不到CheckUser_servlet  可是我的servlet确实是放在那个目录下了 !  怎么改都没有用!  都调整了一天了 !  都快疯了!  各路高手帮帮我 !  谁知道该怎么弄!! 谢谢了 ! 在线等。    

解决方案 »

  1.   

    resin肯定是有那个文件的,里面配置应用的路径和端口号。
    如:<?xml version="1.0" encoding="UTF-8"?>
    <caucho.com>
    <java compiler="internal" args="-g" work-dir="work"/>
    <http-server>
    <http port="8888"/>
    <web-app id="/"><app-dir>E:\projects\lordorwiki\webroot</app-dir> 
    </web-app>
    </http-server>
    </caucho.com>
      

  2.   


      这个文件夹是应该出现在我的项目文件夹内吗??   我之前是用tomcat运行的 ! 所以没有resin的配置文件啊 !!  我现在该怎么办啊 !!
      

  3.   

    不是,是resin服务器的配置文件,你可以在本地先测一下嘛,或者像服务器提供商咨询一下。
      

  4.   

      我以前从来没使过resin ,刚才在myEclipse下 配置了一下  一启动就报这个异常Can't load JNI VFS library.  Resin will still run,
    but with somewhat slower performance.
        java.lang.UnsatisfiedLinkError: no resin in java.library.path
      On Unix, you need to compile the JNI library with
        ./configure; make; make install
      On Windows, check for the resin.dll in resin/bin and
      check the dll load path.  Product registration not found: using Developer Source license.
      See http://www.caucho.com/download/license.xtp for details.  Developer Source use is limited to:
         1. 60 day evaluation
         2. Development and testing
         3. Hobbyists and students  If your use falls under those categories, you may use
      the Developer Source license.  Other users must see http://www.caucho.com/sales for purchasing information.Starting Resin on Mon, 12 Jan 2009 15:20:43 +0800 (CST)F:\resin-3.0.8\resin-3.0.8\conf\resin.conf:189: Required file 'F:\resin-3.0.8\resin-3.0.8\lib\conf\app-default.xml' can not be read for resin:import.
      

  5.   

    F:\resin-3.0.8\resin-3.0.8\conf\resin.conf:189: Required file 'F:\resin-3.0.8\resin-3.0.8\lib\conf\app-default.xml' can not be read for resin:import. 
    这个么肯定就是这个文件配置不对了,你还说没有这个文件。这里是配置应用路径和端口号的。路过应用都找不到你程序怎么改都是徒然。