2 Replies Latest reply on Mar 1, 2011 2:32 PM by Fatih Alpay

    Custom Servlet Error

    Fatih Alpay Newbie
      Hi Friends,
      For google visualization api i am tryin to create a CustomServlet for DataSource.
      The think is when i try to define my CustomServlet named Tasking Seam gives Error with the URL
      http://localhost:8080/seamfinal/tasking


      web.xml configuration:

      <servlet>
        <servlet-name>MyTasking</servlet-name>
        <servlet-class>Tasking</servlet-class>
      </servlet>
      <servlet-mapping>
        <servlet-name>MyTasking</servlet-name>
        <url-pattern>/tasking</url-pattern>
      </servlet-mapping>

      components xml :
      <web:context-filter url-pattern="/tasking/*" />

      I also tried to web.xml servlet as ,
      <servlet>
        <servlet-name>MyTasking</servlet-name>
        <servlet-class>org.domain.seamfinal.servket.Tasking</servlet-class>
      </servlet>
      <servlet-mapping>
        <servlet-name>MyTasking</servlet-name>
        <url-pattern>/tasking</url-pattern>
      </servlet-mapping>
      But nothing changed
      Below you can find the full stack.

      Exception report

      message

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

      exception

      javax.servlet.ServletException: Error instantiating servlet class Tasking
              org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
              org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
              org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
              org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
              org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
              org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
              org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
              org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
              org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
              org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
              org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
              java.lang.Thread.run(Unknown Source)

      root cause

      java.lang.ClassNotFoundException: Tasking
              java.net.URLClassLoader$1.run(Unknown Source)
              java.security.AccessController.doPrivileged(Native Method)
              java.net.URLClassLoader.findClass(Unknown Source)
              java.lang.ClassLoader.loadClass(Unknown Source)
              java.lang.ClassLoader.loadClass(Unknown Source)
              org.jboss.web.tomcat.service.TomcatInjectionContainer.newInstance(TomcatInjectionContainer.java:262)
              org.jboss.web.tomcat.service.TomcatInjectionContainer.newInstance(TomcatInjectionContainer.java:256)
              org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
              org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
              org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
              org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
              org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
              org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
              org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
              org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
              org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
              org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
              org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
              java.lang.Thread.run(Unknown Source)


      Any help would be greatfull.