env: Solaris8, TS552SP2B
Hello ,
I am trying to run a jsp file within the TS environment to test the proxy rule.
This is the test scenario: You have to copy the following file into the webapps directory of the teamsite servletd <IWHOME>/servletd/webapps/sceexample (new directory).
File testBlobulator.jsp with the content:
<!----------------BEGIN FILE-------------->
<%
java.io.File file= new java.io.File(request.getParameter("id"));
if (file.exists()){
%>
<a href="/testBlobulator1.xml">testBlobulator1.xml</a>
<% } else { %>
File not found!
<%}%>
<!----------------END FILE-------------->
Afterwards the application sceexample has to be defined in the file <IWHOME>/servletd/conf/tomcat-apache.conf:
Alias /sceexample "/local/iw-home/servletd/webapps/sceexample"
<Directory "/local/iw-home/servletd/webapps/sceexample">
Options Indexes FollowSymLinks
</Directory>
ApJServMount /sceexample/servlet /sceexample
<Location "/sceexample/WEB-INF/">
AllowOverride None
deny from all
</Location>
<Location "/sceexample/META-INF/">
AllowOverride None
deny from all
</Location>
Then the following proxy rule redirects the request to the tomcat engine:
[iwproxy_preconnect_remap]
_regex=^/iw-mount/(.*)/testBlobulator(.*).xml\?IWFLAG$=
http://localhost/sceexample/testBlobulator.jsp?id=/$1/testBlobulator$2.xmlPlease create a file testBlobulator.xml in any workarea. This file simulates the xml-file that contains a link onto an non existing file. The jsp-file generate a html-page that contains a hard coded link to non existing file (testBlobulator1.xml).
Please is someone able to set this up? I have a lot of troubles setting this proxy rule up. I wonder what I am doing wrong. The iwproxy -d output shows no redirection to the servlet whatsoever and the xml is coming up as a file with an unrecognized text/xml format (asking for launchpad),
regards,
arnouxe