You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Raul Portales Fernandez <ra...@olidformacion.com> on 2004/09/13 13:43:53 UTC

Access problem

Hello:

I have a very strange problem with tomcat, I have revised te online doc, the 
FAQ, and googled it, but found nothing. Here is it:

I have a webapp installed by a .war file, this app work fine when I acces it 
by localnet using:

http://myinternalip:myport/myapp/

The whole app works fine. I also have Port Forwarding set in the router, but 
when I try to access it form an external IP, using:

http://myexternalip:myport/myapp/

it does not work, and I get the following error:

javax.servlet.ServletException: Exception opening resource 
http://myexternalip:myport/myapp/somedir/somepage.jsp;jsessionid=someid: 
java.net.ConnectException: Connection refused
        org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:862)
        org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:795)
        org.apache.jsp.index_jsp._jspService(index_jsp.java:238)
        org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
        org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)
        org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
        org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

More strange even is that if you try to access to the URI that gives the 
problem putting it in the addess bar of the browser:

http://myexternalip:myport/myapp/somedir/somepage.jsp;jsessionid=someid:

It works!, but obviously just for this page, wich is included in the index 
page.

Has anyone any idea of the possible source of the problem.

I'm using Tomcat 5.0 in a FreeBSD box.

Thank's in advance.
-- 
Un saludo, por ejemplo, buenos dias:

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Re: Access problem

Posted by Raul Portales Fernandez <ra...@olidformacion.com>.
El Lunes, 13 de Septiembre de 2004 14:37, José Antonio Pérez Testa escribió:
> It seems like a proxy configuration problem.

I don't think so, beacouse other similar apps work by the extranet, and there 
is no proxy configuration in the intranet.

> Anyway, this is commons user list , not tomcat list.

I posted this here because I thought it is a tomcat problem, sorry if this is 
not the right list.

>
> Saludos.
>
> Raul Portales Fernandez wrote:
> >Hello:
> >
> >I have a very strange problem with tomcat, I have revised te online doc,
> > the FAQ, and googled it, but found nothing. Here is it:
> >
> >I have a webapp installed by a .war file, this app work fine when I acces
> > it by localnet using:
> >
> >http://myinternalip:myport/myapp/
> >
> >The whole app works fine. I also have Port Forwarding set in the router,
> > but when I try to access it form an external IP, using:
> >
> >http://myexternalip:myport/myapp/
> >
> >it does not work, and I get the following error:
> >
> >javax.servlet.ServletException: Exception opening resource
> >http://myexternalip:myport/myapp/somedir/somepage.jsp;jsessionid=someid:
> >java.net.ConnectException: Connection refused
> >       
> > org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageConte
> >xtImpl.java:862)
> > org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContext
> >Impl.java:795) org.apache.jsp.index_jsp._jspService(index_jsp.java:238)
> >       
> > org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
> > javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
> > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.jav
> >a:311)
> > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
> > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
> > javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
> >
> >More strange even is that if you try to access to the URI that gives the
> >problem putting it in the addess bar of the browser:
> >
> >http://myexternalip:myport/myapp/somedir/somepage.jsp;jsessionid=someid:
> >
> >It works!, but obviously just for this page, wich is included in the index
> >page.
> >
> >Has anyone any idea of the possible source of the problem.
> >
> >I'm using Tomcat 5.0 in a FreeBSD box.
> >
> >Thank's in advance.
>
> ---------------------------------------------------------------------------
>---------------------------------------- Este correo electrónico y, en su
> caso, cualquier fichero anexo al mismo, contiene información de carácter
> confidencial exclusivamente dirigida a su destinatario o destinatarios.
> Queda prohibida su divulgación, copia o distribución a terceros sin la
> previa autorización escrita de Indra. En el caso de haber recibido este
> correo electrónico por error, se ruega notificar inmediatamente esta
> circunstancia mediante reenvío a la dirección electrónica del remitente.
>
> The information in this e-mail and in any attachments is confidential and
> solely for the attention and use of the named addressee(s). You are hereby
> notified that any dissemination, distribution or copy of this communication
> is prohibited without the prior written consent of Indra. If you have
> received this communication in error, please, notify the sender by reply
> e-mail
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org

-- 
Un saludo, por ejemplo, buenos dias:

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Re: Access problem

Posted by José Antonio Pérez Testa <ja...@indra.es>.
It seems like a proxy configuration problem.
Anyway, this is commons user list , not tomcat list.

Saludos.

Raul Portales Fernandez wrote:

>Hello:
>
>I have a very strange problem with tomcat, I have revised te online doc, the 
>FAQ, and googled it, but found nothing. Here is it:
>
>I have a webapp installed by a .war file, this app work fine when I acces it 
>by localnet using:
>
>http://myinternalip:myport/myapp/
>
>The whole app works fine. I also have Port Forwarding set in the router, but 
>when I try to access it form an external IP, using:
>
>http://myexternalip:myport/myapp/
>
>it does not work, and I get the following error:
>
>javax.servlet.ServletException: Exception opening resource 
>http://myexternalip:myport/myapp/somedir/somepage.jsp;jsessionid=someid: 
>java.net.ConnectException: Connection refused
>        org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:862)
>        org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:795)
>        org.apache.jsp.index_jsp._jspService(index_jsp.java:238)
>        org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
>        javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
>        org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)
>        org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
>        org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
>        javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
>
>More strange even is that if you try to access to the URI that gives the 
>problem putting it in the addess bar of the browser:
>
>http://myexternalip:myport/myapp/somedir/somepage.jsp;jsessionid=someid:
>
>It works!, but obviously just for this page, wich is included in the index 
>page.
>
>Has anyone any idea of the possible source of the problem.
>
>I'm using Tomcat 5.0 in a FreeBSD box.
>
>Thank's in advance.
>  
>
-------------------------------------------------------------------------------------------------------------------
Este correo electrónico y, en su caso, cualquier fichero anexo al mismo, contiene información de carácter confidencial exclusivamente dirigida a su destinatario o destinatarios. Queda prohibida su divulgación, copia o distribución a terceros sin la previa autorización escrita de Indra. En el caso de haber recibido este correo electrónico por error, se ruega notificar inmediatamente esta circunstancia mediante reenvío a la dirección electrónica del remitente.

The information in this e-mail and in any attachments is confidential and solely for the attention and use of the named addressee(s). You are hereby notified that any dissemination, distribution or copy of this communication is prohibited without the prior written consent of Indra. If you have received this communication in error, please, notify the sender by reply e-mail

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org