Re: Tomcat/IIS intergration - once again ;-(

2002-11-30 Thread Marcel Stoer
Hi David

David Brown wrote:
 Hello Marcel, i took a peek at your (and your friends') website and
 it seems to be built by some smart and eager guys (nice site!). so
 why the m$ ii$? u seem to know a lot of linux and ur upstream
 provider: Genotec AG Swiss Network has a lot of linux boxes in their
 system.

I hardly know anything of Linux. My own website is hosted on a W2K system
for I want to use ASP.

 i am just curious why the preference of iis over apache? i'm

I have no preference of IIS over Apache. The case is the following:
At work we're developing workflow solutions with W4 (www.w4global.com). It
runs on Linux/NT with Oracle/SQL and any combination of web server/app
server. We're using Tomcat as 'app server' and IIS or Apache as web server.
This results in three different dev environments for me. NT/SQL/IIS/Tomcat,
NT/Oracle/IIS/Tomcat, and Linux/Oracle/Apache/Linux. However, I have to
admit that I'm by far more familiar with IIS than with Apache.

 not at all familiar w/ iis config but it would seem to me that the
 java side of tc would still have to be the same regardless of
 platform. adding a new web apps (if using ant) is easy if u define
 and compile a .war/.jar combo that is expanded by the tc server when
 either: bounced, autoreloaded or
 http://localhost:8080/manager/intall?path=MyOwnTest_Java. I don't
 understand your tc directory structure:
 $CATALINA_HOME\webapps\MyOwnTest_Java\Public. do u have an

Well, W4 generates an app which contains several subdirectories under
MyOwnTest_Java (Public, WEB-INF, and others). index.jsp located in the
Public directory is the entry point.

 application context defined as: MyOwnTest_Java/Public? i don't
 understand ur url: localhost/MyOwnTest_Java/Public/index.jsp? do u
 mean to state: http://localhost:8080/MyOwnTest_Java/Public/index.jsp?

Yes I do.

 Also, you stated: they only work if called on the Tomcat port
 directly. do u mean port 8080? tc's default port that the server

Yes I do

 listens on is port 8080 unless u redefine this in server.xml. in
 either case the port is necessary. tc servlets and jsp(s) r not
 invoked exactly like cgi-bin executables. the final analysis is: if u
 have defined ur .war/.jar correctly and tc server has expanded these
 files mentioned properly u should be able to invoke ur webapp
 MyOwnTest_Java as: http://localhost:8080/MyOwnTest_java (assume

As I mentioned in my first posting this works. But the whole point of
Tomcat/web server integration is that your web server is running on port 80
and that it will simply forward servlet/jsp request to Tomcat. This allows
for the url http://localhost/MyOwnTest_Java/Public/index.jsp without
explicitly defining port 8080 (or whatever Tomcat listens on).

 their is a jsp or servlet defined at that uri). hope this helps,
 david.

Marcel


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Tomcat/IIS intergration - once again ;-(

2002-11-29 Thread Marcel Stoer
Hi all

Tomcat is running fine and so is IIS. The integration seemed to be
successful for all examples are running through
http://localhost/examples/an_so_on on the IIS port. HOWEVER, the web
apps I added myself refuse to show up - they only work if called on the
Tomcat port directly.

Concrete:
There's a web app called MyOwnTest_Java with jsp files in
$CATALINA_HOME\webapps\MyOwnTest_Java\Public. As you can see the uri map
has been added to the properties file. But once a request is made for
localhost/MyOwnTest_Java/Public/index.jsp the match fails.

Where is the problem here???

Cheers
Marcel

Isapi.log
=
[Fri Nov 29 08:39:51 2002]  [jk_isapi_plugin.c (806)]: Using registry.
[Fri Nov 29 08:39:51 2002]  [jk_isapi_plugin.c (808)]: Using log file
C:\Program Files\Apache Group\Tomcat4.0\logs\iis_redirect.log.
[Fri Nov 29 08:39:51 2002]  [jk_isapi_plugin.c (809)]: Using log level
0.
[Fri Nov 29 08:39:51 2002]  [jk_isapi_plugin.c (810)]: Using extension
uri /jakarta/isapi_redirect.dll.
[Fri Nov 29 08:39:51 2002]  [jk_isapi_plugin.c (811)]: Using worker file
C:\Program Files\Apache Group\Tomcat4.0\conf\ntiis\workers.properties.
[Fri Nov 29 08:39:51 2002]  [jk_isapi_plugin.c (812)]: Using worker
mount file C:\Program Files\Apache
Group\Tomcat4.0\conf\ntiis\uriworkermap.properties.
[Fri Nov 29 08:39:51 2002]  [jk_uri_worker_map.c (159)]: Into
jk_uri_worker_map_t::uri_worker_map_alloc
[Fri Nov 29 08:39:51 2002]  [jk_uri_worker_map.c (199)]: Into
jk_uri_worker_map_t::uri_worker_map_open
[Fri Nov 29 08:39:51 2002]  [jk_uri_worker_map.c (217)]:
jk_uri_worker_map_t::uri_worker_map_open, rule map size is 7
[Fri Nov 29 08:39:51 2002]  [jk_uri_worker_map.c (273)]: Into
jk_uri_worker_map_t::uri_worker_map_open, match rule
/MyOwnTask_Java/servlet/=ajp13 was added
[Fri Nov 29 08:39:51 2002]  [jk_uri_worker_map.c (262)]: Into
jk_uri_worker_map_t::uri_worker_map_open, suffix rule
/MyOwnTask_Java/.jsp=ajp13 was added
[Fri Nov 29 08:39:51 2002]  [jk_uri_worker_map.c (262)]: Into
jk_uri_worker_map_t::uri_worker_map_open, suffix rule
/examples/jsp/.jsp=ajp13 was added
[Fri Nov 29 08:39:51 2002]  [jk_uri_worker_map.c (273)]: Into
jk_uri_worker_map_t::uri_worker_map_open, match rule
/examples/servlet/=ajp13 was added
[Fri Nov 29 08:39:51 2002]  [jk_uri_worker_map.c (273)]: Into
jk_uri_worker_map_t::uri_worker_map_open, match rule /manager/=ajp13 was
added
[Fri Nov 29 08:39:51 2002]  [jk_uri_worker_map.c (273)]: Into
jk_uri_worker_map_t::uri_worker_map_open, match rule /webdav/=ajp13 was
added
[Fri Nov 29 08:39:51 2002]  [jk_uri_worker_map.c (302)]: Into
jk_uri_worker_map_t::uri_worker_map_open, there are 6 rules
[Fri Nov 29 08:39:51 2002]  [jk_uri_worker_map.c (324)]:
jk_uri_worker_map_t::uri_worker_map_open, done
[Fri Nov 29 08:39:51 2002]  [jk_worker.c (82)]: Into wc_open
[Fri Nov 29 08:39:51 2002]  [jk_worker.c (207)]: Into build_worker_map,
creating 2 workers
[Fri Nov 29 08:39:51 2002]  [jk_worker.c (213)]: build_worker_map,
creating worker ajp12
[Fri Nov 29 08:39:51 2002]  [jk_worker.c (138)]: Into wc_create_worker
[Fri Nov 29 08:39:51 2002]  [jk_worker.c (152)]: wc_create_worker, about
to create instance ajp12 of ajp12
[Fri Nov 29 08:39:51 2002]  [jk_ajp12_worker.c (264)]: Into
ajp12_worker_factory
[Fri Nov 29 08:39:51 2002]  [jk_worker.c (161)]: wc_create_worker, about
to validate and init ajp12
[Fri Nov 29 08:39:51 2002]  [jk_ajp12_worker.c (182)]: Into
jk_worker_t::validate
[Fri Nov 29 08:39:51 2002]  [jk_ajp12_worker.c (194)]: In
jk_worker_t::validate for worker ajp12 contact is localhost:8007
[Fri Nov 29 08:39:51 2002]  [jk_worker.c (177)]: wc_create_worker, done
[Fri Nov 29 08:39:51 2002]  [jk_worker.c (223)]: build_worker_map,
removing old ajp12 worker 
[Fri Nov 29 08:39:51 2002]  [jk_worker.c (213)]: build_worker_map,
creating worker ajp13
[Fri Nov 29 08:39:51 2002]  [jk_worker.c (138)]: Into wc_create_worker
[Fri Nov 29 08:39:51 2002]  [jk_worker.c (152)]: wc_create_worker, about
to create instance ajp13 of ajp13
[Fri Nov 29 08:39:51 2002]  [jk_ajp13_worker.c (922)]: Into
ajp13_worker_factory
[Fri Nov 29 08:39:51 2002]  [jk_worker.c (161)]: wc_create_worker, about
to validate and init ajp13
[Fri Nov 29 08:39:51 2002]  [jk_ajp13_worker.c (443)]: Into
jk_worker_t::validate
[Fri Nov 29 08:39:51 2002]  [jk_ajp13_worker.c (456)]: In
jk_worker_t::validate for worker ajp13 contact is localhost:8009
[Fri Nov 29 08:39:51 2002]  [jk_ajp13_worker.c (482)]: Into
jk_worker_t::init
[Fri Nov 29 08:39:51 2002]  [jk_worker.c (177)]: wc_create_worker, done
[Fri Nov 29 08:39:51 2002]  [jk_worker.c (223)]: build_worker_map,
removing old ajp13 worker 
[Fri Nov 29 08:39:51 2002]  [jk_worker.c (235)]: build_worker_map, done
[Fri Nov 29 08:39:51 2002]  [jk_worker.c (102)]: wc_open, done[Fri Nov
29 08:41:44 2002]  [jk_isapi_plugin.c (555)]: HttpFilterProc started
[Fri Nov 29 08:41:44 2002]  [jk_isapi_plugin.c (600)]: In HttpFilterProc
Virtual Host redirection of