Hi!

I'm using apache 1.3.14/JServ 1.1.2/gnujsp 1.0.1. I have a problem running
multiple instances of gnujsp on vhosts.

Excerpt from httpd.conf:
...

Listen 80
Listen 81
Listen 82

<VirtualHost xxx.xxx.xxx.xxx:80>
        DocumentRoot x:/webpages1
        ...
        ApJServMount /servlets /servlets80
</VirtualHost>

<VirtualHost xxx.xxx.xxx.xxx:81>
        DocumentRoot x:/webpages2
        ...
        ApJServMount /servlets /servlets81
</VirtualHost>

<VirtualHost xxx.xxx.xxx.xxx:82>
        DocumentRoot x:/webpages3
        ...
        ApJServMount /servlets /servlets82
</VirtualHost>

The servletsXX are using different repositories, which is why I can't use
the same gnujsp instance.
The main pages (index.jsp) on each port appear ok, but when I try to reload
the page on port which differs from the last page loaded (e.g.last loaded
page: myhost:82/index.jsp and then I try myhost:80 or myhost:81), I get the
exception:

Exception while servicing request for /index.jsp:

javax.servlet.ServletException: This servlet only excepts http requests
        at java.lang.Throwable.(Throwable.java:74)
        at java.lang.Exception.(Exception.java:38)
        at javax.servlet.ServletException.(ServletException.java:61)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:312)
        at org.gjt.jsp.JspServlet$Page.process(Compiled Code)
        at org.gjt.jsp.JspServlet.xservice(JspServlet.java:608)
        at org.gjt.jsp.JspServlet.service(JspServlet.java:500)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:310)
        at
org.apache.jserv.JServConnection.processRequest(JServConnection.java:317)
        at org.apache.jserv.JServConnection.run(JServConnection.java:188)
        at java.lang.Thread.run(Thread.java:492)


Is this a problem in my configuration or somewhere else (classes maybe?) ?

Thanks for any help!

Primoz

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to