Author Topic: problem installing in ROOT context  (Read 4039 times)

vindex

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
    • View Profile
    • Email
problem installing in ROOT context
« on: July 20, 2009, 15:44:07 »

Hi,

When I try to install QM in tomcat55's ROOT context I get a blank page
with this URL:

http://my.server.name:8080/qm_start.do

When using QM with a normal path (http://my.server.name:8080/queuemetrics/)
it works fine.

How can I make QM the default tomcat app?

Thanks,


QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: problem installing in ROOT context
« Reply #1 on: August 12, 2009, 10:19:48 »
What it is usually best to do, is to add a redirection page, so that when the user enters h ttp://queuemetrics.server.com they are redirected to h ttp://queuemetrics.server.com:8080/queuemetrics

QM does not let you bookmark its internal pages. so you can have nothing but a link for the home page.

« Last Edit: August 12, 2009, 10:58:54 by QueueMetrics »

gb_delti

  • Newbie
  • *
  • Posts: 22
  • Karma: 0
    • View Profile
Re: problem installing in ROOT context
« Reply #2 on: March 22, 2010, 17:53:32 »
Hi,

how would I create a redirect when the server is reachable through two urls, one for internal, one for external use? Is there any way to do a redirect that uses the uorrent server name? Can you please give an example or pointers to documentation? I am not familar at all with tomcat configuration.

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: problem installing in ROOT context
« Reply #3 on: March 23, 2010, 15:28:03 »
Hi,

how would I create a redirect when the server is reachable through two urls, one for internal, one for external use? Is there any way to do a redirect that uses the uorrent server name? Can you please give an example or pointers to documentation? I am not familar at all with tomcat configuration.

I am not sure for Tomcat, but if you use a front-end based on Apache, it's trivial to do that with mod_rewrite.

gb_delti

  • Newbie
  • *
  • Posts: 22
  • Karma: 0
    • View Profile
Re: problem installing in ROOT context - exception
« Reply #4 on: April 07, 2010, 12:04:11 »
Ok, back to the original question: I have also tried to install QueueMetrics in the root context and I don't want to redirect to a subdirectory. I also get the blank page qm_start.do

Here is the output in catalina.out (with removed license and jdbc Parameters):
Code: [Select]
Init della servlet - $Id: K.java,v 1.62 2009/10/13 16:05:52 lenz-mobile Exp $
 Parm:  SMTP_AUTH = true
 Parm:  SMTP_HOST = smtp.myhost
 Parm:  START_TRANSACTION = qm_start
 Parm:  SMTP_PASSWORD = xxxxx
 Parm:  SMTP_USER = xxxx
 Parm:  JDBC_DRIVER = com.mysql.jdbc.Driver
Data Scad [2012-12-15]: Sat Dec 15 00:00:00 CET 2012
Data scad:Sat Dec 15 00:00:00 CET 2012 - Scaduto: 0
Servlet A01 - Step X3
Servlet A01 - Step X4 - 314
Path assoluto verbi:  /srv/www/tomcat55/base/webapps/ROOT/WEB-INF/LVerbs
Sottosistema SMTP: Host[smtp.myhost] Auth[true] User[xxxx] Pass[xxxxx]
Transazione di avvio: qm_start
Codifica di input: UTF-8
'java.lang.StringIndexOutOfBoundsException' - Eccezione di forward
java.lang.StringIndexOutOfBoundsException
        at java.lang.String.substring(String.java:1092)
        at it.loway.tpf.U.getWebApp(U.java:154)
        at it.loway.tpf.transaction.servlets.LowayTransactionController.risolviDestinazione(LowayTransactionController.java:805)
        at it.loway.tpf.transaction.servlets.LowayTransactionController.serveRequest(LowayTransactionController.java:596)
        at it.loway.tpf.transaction.servlets.LowayTransactionController.serveRequestWrapper(LowayTransactionController.java:360)
        at it.loway.tpf.transaction.servlets.LowayTransactionController.doGet(LowayTransactionController.java:205)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
        at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
        at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
        at java.lang.Thread.run(Thread.java:736)

I'm using Tomcat 5.5
« Last Edit: April 07, 2010, 12:11:17 by gb_delti »

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: problem installing in ROOT context
« Reply #5 on: April 08, 2010, 11:05:56 »
Which version of QM is that?