Hello all. I have a struts-driven web working under Tomcat 4.0.4, Struts
1.0. All is well from within my company on any given machine but when I
access the web from outside the company I get an
java.net.UnknownHostException error.

The problem seems to be in a struts "forward" command. This forward command
resolves, in the struts config file, to a call to my servlet, which consults
the database, and sends me on to a jsp page.

If I use a jsp <include> tag to a simple jsp page, it works.

But when I make a struts include, like the following:

<bean:include forward="Home_News" id="homeNews" />

... that's when it fails. "Home_News" resolves to a servlet call, like the
following:

<forward name="Home_News"
path="/NavigateGetNews?action=search&amp;entity=news" redirect="false"/>

... I get a java.net.UnknownHostException error:

javax.servlet.ServletException: Exception opening resource
http://adsl.mubimedia.com:8080/do/NavigateGetNews?action=search&entity=news:
java.net.UnknownHostException: adsl.mubimedia.com

Does this ring a bell for anyone? This address,  http://adsl.mubimedia.com
is unreachable from within the company which seems to be the problem . It
seems to be trying to make the call to the servlet with the WHOLE address,
when it should be making it relative to the application, right?

Anyway, I am baffled. Why is it when you include a normal .jsp page it
doesn't ALSO try to load it from  adsl.mubimedia.com?

It's got me swinging ...

Much help appreciated,
Bob
[EMAIL PROTECTED] all. I have a struts-driven web working under Tomcat 
4.0.4, Struts
1.0. All is well from within my company on any given machine but when I
access the web from outside the company I get an
java.net.UnknownHostException error.

The problem seems to be in a struts "forward" command. This forward command
resolves, in the struts config file, to a call to my servlet, which consults
the database, and sends me on to a jsp page.

If I use a jsp <include> tag to a simple jsp page, it works.

But when I make a struts include, like the following:

<bean:include forward="Home_News" id="homeNews" />

... that's when it fails. "Home_News" resolves to a servlet call, like the
following:

<forward name="Home_News"
path="/NavigateGetNews?action=search&amp;entity=news" redirect="false"/>

... I get a java.net.UnknownHostException error:

javax.servlet.ServletException: Exception opening resource
http://adsl.mubimedia.com:8080/do/NavigateGetNews?action=search&entity=news:
java.net.UnknownHostException: adsl.mubimedia.com

Does this ring a bell for anyone? This address,  http://adsl.mubimedia.com
is unreachable from within the company which seems to be the problem . It
seems to be trying to make the call to the servlet with the WHOLE address,
when it should be making it relative to the application, right?

Anyway, I am baffled. Why is it when you include a normal .jsp page it
doesn't ALSO try to load it from  adsl.mubimedia.com?

It's got me swinging ...

Much help appreciated,
Bob
[EMAIL PROTECTED]
Ferran Parra

Departament de Noves Tecnologies
MUBIMEDIA S.L.
----------------------
[EMAIL PROTECTED]
Mallorca, 20 275, 1r 2a
08008 BARCELONA
T. (+34) 93 215 21 91
F. (+34) 93 215 41 21

Reply via email to