Title: RE: IIS5 - Missing something very simple

Got it!
Thank you to Randy & Etienne for their help.

Causes:
1)      I setup a new web site as opposed to creating a virtual directory.
        In the virtual directory I:
                disabled Windows Integrated Authentication
                enabled anonymous access using the TOMCAT account. 
                        NOTE: Do not use the <machine_name>\TOMCAT account. 
                                Remove the <machine_name> and enable IIS controls the password. 
                                IIS sees <machine_name>\TOMCAT as a non-local account and it cannot control the password.

               
2)      The projsp files furnished by Wrox publishing are hosed up.  These files are referenced by "Professional JSP" [ISBN: 1-861003-62-5].  Removed them and Tomcat runs fine.

3)      Had to make changes in jni_workers.properties, jni_server.xml, wrapper.properties, workers.properties to reflect the correct values for JAVA_HOME and TOMCAT_HOME.


Bryan


-----Original Message-----
From: Randy Layman [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 22, 2001 9:25 AM
To: [EMAIL PROTECTED]
Subject: RE: IIS5 - Missing something very simple



        Ok, lets take this one step at a time....

        First, in your first message, which you is included at the very
bottom of this message, you indicate that IIS (the Microsoft Web Server) is
running on port 8080.  According to your error message, one of the ports
Tomcat is trying to use is already in use when Tomcat starts up, most likely
8080.  Therefore, http://localhost:8080 is talking to IIS, not Tomcat.

        Now, you are getting 403 errors, which are access denined.  Since
you are running IIS on port 8080 (see first paragraph), you will need to
look at you IIS configuration and turn off the directory security there, or
give it a Windows NT username and password (and maybe domain, depending upon
your configuration).

        This is a guess, but what you really want is IIS running on port 80
and some directory (like /projsp) from IIS to redirect to Tomcat.  To do
this, you need to follow the IIS-HowTo and then change the
uriworkermap.properties file to map /projsp to Tomcat.

        I'm not really sure what your projsp webapp is, but it would seem
that its trying to load something at startup that isn't there.  Is the
projsp.jar file really the WAR file and it should be expanded, or is it your
set of classes that should be in the WEB-INF/lib directory?  Was this
application developed on another JSP engine and therefore might be
incompatible with Tomcat?

        Randy

-----Original Message-----
From: Bryan Lipscy [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 22, 2001 12:39 PM
To: '[EMAIL PROTECTED]'
Subject: RE: IIS5 - Missing something very simple


Directory security is set for anonymous using the TOMCAT account.
Integrated windows authentication is disabled.
tomcat.properties:
security.selfservlet=false
tomcat-users.xml:
<tomcat-users>
  <user name="tomcat" password="tomcat" roles="tomcat" />
  <user name="role1"  password="tomcat" roles="role1"  />
  <user name="both"   password="tomcat" roles="tomcat,role1" />
</tomcat-users>
Same 403 error regardless of what port IIS is set on.
Tomcat is throwing this exception at startup:
Including all jars in D:\app\tomcat\lib in your CLASSPATH.
Using CLASSPATH:
D:\app\tomcat\classes;D:\app\tomcat\lib\ant.jar;D:\app\tomcat\lib\jasper.jar
;D:\app\tomcat\lib\jaxp.jar;D:\app\tomcat\lib\parser.jar;D:\app\tomcat\lib\s
ervlet.jar;D:\app\tomcat\lib\webserver.jar;D:\app\tomcat\lib\projsp.jar;D:\a
pp\tomcat\classes;D:\app\tomcat\lib\ant.jar;D:\app\tomcat\lib\jasper.jar;D:\
app\tomcat\lib\jaxp.jar;D:\app\tomcat\lib\parser.jar;D:\app\tomcat\lib\servl
et.jar;D:\app\tomcat\lib\webserver.jar;D:\app\java\j2sdk_1.3\lib\tools.jar;D
:\app\java\j2sdk_1.3\lib\tools.jar
Startup command = "D:\app\java\j2sdk_1.3\bin\java"
-Dtomcat.home="D:\app\tomcat" org.apache.tomcat.startup.Tomcat
Starting Tomcat in new window
2001-02-22 09:33:57 - ContextManager: Adding context Ctx( /examples )
2001-02-22 09:33:57 - ContextManager: Adding context Ctx( /admin )
Starting tomcat. Check logs/tomcat.log for error messages
2001-02-22 09:33:57 - ContextManager: Adding context Ctx(  )
2001-02-22 09:33:57 - ContextManager: Adding context Ctx( /test )
2001-02-22 09:33:57 - ContextManager: Adding context Ctx( /projsp.jar )
2001-02-22 09:33:57 - ContextManager: Adding context Ctx( /projsp )
2001-02-22 09:33:57 - ContextManager: Adding context Ctx( /Readme.txt )
2001-02-22 09:33:57 - ContextManager: Adding context Ctx(
/isapi_redirect.dll )
D:\app\tomcat\webapps\projsp\ch11\init.conf (The system cannot find the path
specified)
--> 20010222.093358.397: error: main: javax.servlet.UnavailableException:
The directory D:\app\tomcat\webapps\projsp\ch14\photos specified in the
image.directory initialization parameter does not exist.
        at com.magiccookie.photodb.PhotoServlet.init(PhotoServlet.java:153)
        at
org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317)
        at org.apache.tomcat.core.Handler.init(Handler.java:215)
        at
org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:296)
        at
org.apache.tomcat.context.LoadOnStartupInterceptor.contextInit(LoadOnStartup
Interceptor.java:130)
        at
org.apache.tomcat.core.ContextManager.initContext(ContextManager.java:491)
        at
org.apache.tomcat.core.ContextManager.init(ContextManager.java:453)
        at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:195)
        at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)
cannot load servlet name: PhotoServlet
FATAL:java.net.BindException: Address in use: JVM_Bind
java.net.BindException: Address in use: JVM_Bind
        at java.net.PlainSocketImpl.socketBind(Native Method)
        at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:397)
        at java.net.ServerSocket.<init>(ServerSocket.java:170)
        at java.net.ServerSocket.<init>(ServerSocket.java:121)
        at
org.apache.tomcat.net.DefaultServerSocketFactory.createSocket(DefaultServerS
ocketFactory.java:97)
        at
org.apache.tomcat.service.PoolTcpEndpoint.startEndpoint(PoolTcpEndpoint.java
:239)
        at
org.apache.tomcat.service.PoolTcpConnector.start(PoolTcpConnector.java:188)
        at
org.apache.tomcat.core.ContextManager.start(ContextManager.java:527)
        at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:202)
        at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)
Press any key to continue . . .
D:\app\tomcat\bin>
 
I do not see D:\app\tomcat\webapps\projsp\ch14\photos in the projsp.jar file
although there are sub-directories for photos.  index.jsp resides in
photos\grand-teton.




-----Original Message-----
From: Randy Layman [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 22, 2001 8:13 AM
To: [EMAIL PROTECTED]
Subject: RE: IIS5 - Missing something very simple



        Since you have IIS running on port 8080, I would be willing to be
that you have turned on directory security for the directory that you are
requesting.  Either turn it off, or use a username/password that IIS knows
about (i.e. machine logins)


        Randy
-----Original Message-----
From: Etienne Baert (SPS Europe) [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 22, 2001 11:43 AM
To: [EMAIL PROTECTED]
Subject: RE: IIS5 - Missing something very simple


Hi Bryan,
 
when specifying the 8080 port, you access your pages directly via
tomcat, you thus bypass IIS in that case.
You maybe configured tomcat with security rules (see tomcat.properties
and tomcat-users.xml)
 
If you would like to access tomcat through IIS, you need to use
URL without specifying the tomcat port (http://localhost/ for example).
 
Hope this helps,
Etienne
-----Original Message-----
From: Bryan Lipscy [mailto:[EMAIL PROTECTED]]
Sent: jeudi 22 f�vrier 2001 17:35
To: '[EMAIL PROTECTED]'
Subject: IIS5 - Missing something very simple


Good morning to all,
Quick config rundown:
[Root partition]
        Windows 2000 Server (no sp1)
        IIS5 (Ports 80, 81, 8080)
[Seperate partition]
        Apache 1.3.14 r2 (Port 90)
        JDK 1.3
        J2EE 1.3
        Tomcat 3.2.1


I know that I am missing something very simple.  When I call up
http://localhost:8080 I am getting 403'd (You are not authorized to view
this page).
Checked & re-checked my registry settings. 
Checked the config files. 
Sharing and/or web sharing is not enabled. 
IIS5 is set up with a jakarta web root pointed to the folder with the
isapi_redirect.dll.
The isapi_redirect.dll is installed in the ISAPI filters and has a green
arrow.
Anyone have any idea what it is that I am missing?
Bryan
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

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

Reply via email to