You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Nagesh <av...@yahoo.com> on 2003/07/25 07:10:47 UTC
Need Help For Iplanet Tomcat Configuration
Hi Gal Shachor,
I am trying to configure iplanet web server 6.0 and
Tomcat 4.0.5 on windows xp professional.
I managed to downloaded two versions of
nsapi_redirect.dll from internet
one is 110,592 bytes
other is 106,496 bytes
I tried both non works
I Disabled java globally in iplanet
i edited magnus.cong
Init fn="load-modules" funcs="jk_init,jk_service"
shlib="C:/iPlanet/Servers/dll/nsapi_redirect.dll"
Init fn="jk_init"
worker_file="C:/iPlanet/Servers/dll/workers.properties"
log_level="debug"
log_file="C:/iPlanet/Servers/dll/logs/nsapi.log"
edited obj.conf
NameTrans fn="assign-name" from="/servlet/*"
name="servlet"
NameTrans fn="assign-name" from="/examples/*"
name="servlet"
<Object name=servlet>
ObjectType fn=force-type type=text/plain
Service fn="jk_service" worker="ajp13"
</Object>
workers.worker file
workers.tomcat_home=C:\Tomcat
workers.java_home=C:\jdk1.3
ps=\
worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
i applied the changes and started the iplanet and
tomcat it started with no errors
this is how my nsapi.log shows
[Fri Jul 25 12:55:13 2003] [jk_worker.c (82)]: Into
wc_open
[Fri Jul 25 12:55:13 2003] [jk_worker.c (207)]: Into
build_worker_map, creating 1 workers
[Fri Jul 25 12:55:13 2003] [jk_worker.c (213)]:
build_worker_map, creating worker ajp13
[Fri Jul 25 12:55:13 2003] [jk_worker.c (138)]: Into
wc_create_worker
[Fri Jul 25 12:55:13 2003] [jk_worker.c (152)]:
wc_create_worker, about to create instance ajp13 of
ajp13
[Fri Jul 25 12:55:13 2003] [jk_ajp13_worker.c (922)]:
Into ajp13_worker_factory
[Fri Jul 25 12:55:13 2003] [jk_worker.c (161)]:
wc_create_worker, about to validate and init ajp13
[Fri Jul 25 12:55:13 2003] [jk_ajp13_worker.c (443)]:
Into jk_worker_t::validate
[Fri Jul 25 12:55:13 2003] [jk_ajp13_worker.c (456)]:
In jk_worker_t::validate for worker ajp13 contact is
localhost:8009
[Fri Jul 25 12:55:13 2003] [jk_ajp13_worker.c (482)]:
Into jk_worker_t::init
[Fri Jul 25 12:55:13 2003] [jk_worker.c (177)]:
wc_create_worker, done
[Fri Jul 25 12:55:13 2003] [jk_worker.c (223)]:
build_worker_map, removing old ajp13 worker
[Fri Jul 25 12:55:13 2003] [jk_worker.c (235)]:
build_worker_map, done
[Fri Jul 25 12:55:13 2003] [jk_worker.c (102)]:
wc_open, done
[Fri Jul 25 12:55:14 2003] [jk_nsapi_plugin.c (293)]:
jk_init, a second passed
I tried this url
http://localhost:81/examples/servlet/HelloWorldExample
page cannot be found
iplanet error log
[25/Jul/2003:12:59:08] warning ( 212): for host
127.0.0.1 trying to GET
/examples/servlet/HelloWorldExample, send-file
reports: can't find
C:/iPlanet/Servers/docs/examples/servlet/HelloWorldExample
(File not found)
nothing is recorded in nsapi.log
what i feel is iplanet is still looking into
C:/iPlanet/Servers/docs/examples/servlet/HelloWorldExample
insted of passing the request to tomcat.
Need your Help :-<
Alternatively i used weblogic shared library
proxy36.dll it works but toooo slow.
Thanks
Nagesh.
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
Re: Need Help For Iplanet Tomcat Configuration
Posted by "Eric J. Pinnell" <er...@iCky.org>.
Hi,
I'm not sure if cross posting like that was such a good idea... But since
I just had to figure this out last week I will share what I learned.
I had to play with this a bit befor I was able to get it to work. I was
using Solaris so I can't help you with the correct version of the
redirector DLL. I hope this will help.
> <Object name=servlet>
> ObjectType fn=force-type type=text/plain
> Service fn="jk_service" worker="ajp13"
> </Object>
The documentation isn't entirely correct here. Put "servlet" in quotes.
Otherwise iPlanet doesn't see the object name and the assigment you made
in the default object section won't work (you will get that error once you
fix the stuff below). It also wouldn't hurt to put "text/plain" in quotes.
>
> workers.worker file
> workers.tomcat_home=C:\Tomcat
> workers.java_home=C:\jdk1.3
> ps=\
> worker.list=ajp13
> worker.ajp13.port=8009
> worker.ajp13.host=localhost
> worker.ajp13.type=ajp13
>
I just used to last four lines of what you have here. But that shouldn't
matter.
>
>
> I tried this url
> http://localhost:81/examples/servlet/HelloWorldExample
>
> [25/Jul/2003:12:59:08] warning ( 212): for host
> 127.0.0.1 trying to GET
> /examples/servlet/HelloWorldExample, send-file
> reports: can't find
> C:/iPlanet/Servers/docs/examples/servlet/HelloWorldExample
> (File not found)
That's exactly what it is doing. So you have to fool it. In your iPlanet
docroot create the directory examples. iPlanet will see it and think it's
there. Then when it tries to serve it the changes in obj.conf will kick
in and send the request to tomcat.
In some cases you will find that you have to "touch" (create 0 length
files) in some cases to fool netsacpe into thinking it's there. Usually
it's just index.jsp.
I also connect to the Coyote/JK2 AJP1.3 connector on the tomcat side and
not the older AJP 1.3 connector.
-e
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org