• FEATURES
  • PRICING
  • MARKETPLACE
  • CASE STUDIES
  • BLOG
  • Printer Web Service Connection refused

    Hello Dave, Sri, OS Community,

    I am trying different routes and ways to implement the printer.

    When I click the submit Print Labels for a specimen on the web, this message is displayed on the screen: Printer configuration not found.

    Moreover I am getting this error message;

    15:46:56,452 ERROR [STDERR] javax.xml.ws.WebServiceException: Failed to access the WSDL at: http://localhost:8080/caTissuePrintWebService/Print?wsdl. It failed with: Connection refused: connect.

    Any clues or tips? I would appreciate it.

    Thanks

    Nadia

    Hi @Nan_Halabi,

    It seems like OS is unable to connect to the Print Web Service at URL “http://localhost:8080/caTissuePrintWebService/Print?wsdl”. Is the URL is correct one ?

    To be sure try to open this URL “http://localhost:8080/caTissuePrintWebService/Print?wsdl” in browser. It should display the xml in the browser.

    ~Nitesh

    Hi Nitesh,

    Thanks for the response back.

    I changed it, so now this is the URL: http://caplus.utmb.edu:8080/caTissuePrintWebService/Print?wsdl and when I open it in a browser I see this below.

    Please advise.

    Nadia

    Error message:

    HTTP Status 500 -

    type Exception report

    message

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

    exception

    javax.servlet.ServletException: Class edu.wustl.webservice.catissuecore.print.PrintService is not a Servlet
    org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
    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(Thread.java:662)

    root cause

    java.lang.ClassCastException: edu.wustl.webservice.catissuecore.print.PrintService cannot be cast to javax.servlet.Servlet
    org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
    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(Thread.java:662)

    note The full stack trace of the root cause is available in the JBoss Web/2.1.3.GA logs.

    Hi @Nan_Halabi,

    Have you followed the steps mentioned in the Print Web Service deployment guide?

    ~Nitesh

    Hello Nitesh,

    I did Nitesh. Not sure what I am missing

    Regards

    Nadia

    Has this issue been resolved?
    I get the same error:

    avax.servlet.ServletException: Class edu.wustl.webservice.catissuecore.print.PrintService is not a Servlet
    org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:44)
    org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:169)
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
    org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
    org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
    org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
    org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
    java.lang.Thread.run(Thread.java:595)

    root cause

    java.lang.ClassCastException: edu.wustl.webservice.catissuecore.print.PrintService
    org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:44)
    org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:169)
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
    org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
    org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
    org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
    org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
    java.lang.Thread.run(Thread.java:595)

    Thank you.

    @Kenneth_Buck I checked older emails for same error and didnt find anything related. Sorry we do not have any idea of the issue.

    Note that in v2x the “print web service” is eliminated. Printing is configured directly from OpenSpecimen itself.

    ~Sri