Results 1 to 2 of 2
  1. #1
    IDH
    IDH is offline Member
    Join Date
    Mar 2011
    Posts
    2
    Rep Power
    0

    Default from local server to remote server

    Hi, I am developing an small app in servlets and it works in local with derbi, but now I want work in a remote server then I have upload the app and I have change the nameClass in my DAO file. The thing is that in the web.xml I have write the code below:

    <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
    <servlet>
    <servlet-name>ServletTienda</servlet-name>
    <servlet-class>controlador.ServletTienda</servlet-class>
    </servlet>

    and when I run the remote server I get the next trace:

    Exception report

    message

    description The server encountered an internal error () that prevented it from fulfilling this request.

    exception

    javax.servlet.ServletException: Wrapper cannot find servlet class controlador.ServletTienda or a class it depends on
    org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:117)
    org.apache.catalina.connector.CoyoteAdapter.servic e(CoyoteAdapter.java:174)
    org.apache.coyote.http11.Http11Processor.process(H ttp11Processor.java:875)
    org.apache.coyote.http11.Http11BaseProtocol$Http11 ConnectionHandler.processConnection(Http11BaseProt ocol.java:665)
    org.apache.tomcat.util.net.PoolTcpEndpoint.process Socket(PoolTcpEndpoint.java:528)
    org.apache.tomcat.util.net.LeaderFollowerWorkerThr ead.runIt(LeaderFollowerWorkerThread.java:81)
    org.apache.tomcat.util.threads.ThreadPool$ControlR unnable.run(ThreadPool.java:689)
    java.lang.Thread.run(Thread.java:595)


    root cause

    java.lang.ClassNotFoundException: controlador.ServletTienda
    org.apache.catalina.loader.WebappClassLoader.loadC lass(WebappClassLoader.java:1386)
    org.apache.catalina.loader.WebappClassLoader.loadC lass(WebappClassLoader.java:1232)
    org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:117)
    org.apache.catalina.connector.CoyoteAdapter.servic e(CoyoteAdapter.java:174)
    org.apache.coyote.http11.Http11Processor.process(H ttp11Processor.java:875)
    org.apache.coyote.http11.Http11BaseProtocol$Http11 ConnectionHandler.processConnection(Http11BaseProt ocol.java:665)
    org.apache.tomcat.util.net.PoolTcpEndpoint.process Socket(PoolTcpEndpoint.java:528)
    org.apache.tomcat.util.net.LeaderFollowerWorkerThr ead.runIt(LeaderFollowerWorkerThread.java:81)
    org.apache.tomcat.util.threads.ThreadPool$ControlR unnable.run(ThreadPool.java:689)
    java.lang.Thread.run(Thread.java:595)



    Please someone knows why it doesn´t works. Thanks in advance.

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,224
    Rep Power
    20

    Default

    Then it hasn't been deployed properly.
    What does your directory structure look like on the server, because it cannot find your servlet?

Similar Threads

  1. Replies: 1
    Last Post: 03-05-2011, 06:47 PM
  2. wan acces to web app during sendredirect local server name
    By ppo in forum JavaServer Pages (JSP) and JSTL
    Replies: 6
    Last Post: 04-06-2010, 06:31 PM
  3. Replies: 0
    Last Post: 03-05-2009, 06:45 PM
  4. Replies: 0
    Last Post: 11-29-2008, 09:54 PM
  5. searching the local ip server from the WAN machine
    By Amruth Shreyass in forum Networking
    Replies: 0
    Last Post: 08-21-2008, 02:52 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •