Listen on specific ip address....

2003-11-13 Thread RPITRE
Hello All and thanx in advance for any help

 

I need my webapp to listen on port 80 on a specific ip address..this box
that I have tomcat installed on, also has IIS installed.when I added
address=192.168.100.25 and changed port=8080 to port=80 on the
connector string below, tomcat picked up all of the requests for all ip
addresses..how can tell my webapp to listen on specific IP
address...Also, this is the only webapp on tomcat.also, if this
helps, this wepapp is a commercial product called
MailFrontier..and the weird thing is, this is the only webapp
installed on tomcat, and it's war file is called ROOT.war and inside the
server.xml file, there are no contexts setup.any ideas on how to
make this webapp listen on address=192.168.100.25 and port=80 i'm
stumped...do I need to specify the ip address in the host
element.

 

 

 

 

 Connector className=org.apache.coyote.tomcat4.CoyoteConnector 

address=192.168.100.25 port=80
minProcessors=5 maxProcessors=75

enableLookups=false redirectPort=8443

acceptCount=100 debug=0 connectionTimeout=2

useURIValidationHack=false disableUploadTimeout=true /

 

 

  Host name=localhost debug=0 appBase=webapps unpackWARs=true
autoDeploy=true



RE: Listen on specific ip address....

2003-11-13 Thread RPITRE
Sorry if I was a little vague.i was sorta just ramblin' onsorry bout
thatmy server has 3 ip addresses, 2 are in use for two other webapps on
iisand the third needs to be used by my tomcat webappwhen I add
address=192.168.2.100 and change the port to 80 on the connector
elementtomcat picks on all three ip addressesmake more sense???




-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Thursday, November 13, 2003 2:39 PM
To: Tomcat Users List
Subject: RE: Listen on specific ip address


Howdy,
Do you mean listen only on that IP address (i.e. your server has
multiple IP addresses) or accept connections only from a certain IP
address?  The latter can be done with the RemoteAddressFilter that ships
with tomcat.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 13, 2003 2:38 PM
To: [EMAIL PROTECTED]
Subject: Listen on specific ip address

Hello All and thanx in advance for any help



I need my webapp to listen on port 80 on a specific ip
address..this
box
that I have tomcat installed on, also has IIS installed.when I
added
address=192.168.100.25 and changed port=8080 to port=80 on the
connector string below, tomcat picked up all of the requests for all ip
addresses..how can tell my webapp to listen on specific IP
address...Also, this is the only webapp on tomcat.also, if this
helps, this wepapp is a commercial product called
MailFrontier..and the weird thing is, this is the only webapp
installed on tomcat, and it's war file is called ROOT.war and inside
the
server.xml file, there are no contexts setup.any ideas on how
to
make this webapp listen on address=192.168.100.25 and port=80
i'm
stumped...do I need to specify the ip address in the host
element.









 Connector className=org.apache.coyote.tomcat4.CoyoteConnector

address=192.168.100.25 port=80
minProcessors=5 maxProcessors=75

enableLookups=false redirectPort=8443

acceptCount=100 debug=0 connectionTimeout=2

useURIValidationHack=false
disableUploadTimeout=true /





  Host name=localhost debug=0 appBase=webapps
unpackWARs=true
autoDeploy=true




This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


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


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



[Off-Topic] Recommendation for Tomcat Security book

2003-11-13 Thread RPITRE
Are there any recommendations for a tomcat security book?  I've found this
one on amazon.com, but there are no reviews on the book so I thought I would
run it by the list first before I buy itany other suggestions
Thanx for any insight

 

http://www.amazon.com/exec/obidos/tg/detail/-/1861008309/104-7975513-6438339
?v=glance
http://www.amazon.com/exec/obidos/tg/detail/-/1861008309/104-7975513-643833
9?v=glance 

 

 

 

 



Ant tasks problem

2003-11-05 Thread RPITRE
Hello allI have a problem that i'm not sure how to go about it..
 
I want to use ant to help with developement and deployment.I plan to use
install and deploy tasksWhen i try to use the install task...i get an
error:
 
BUILD FAILED
file:C:/DEV_WORK/russellpitre.com/build.xml:94: FAIL - Encountered exception
java.io.IOException: java.lang.IllegalState
Exception: Context path  is already in use:
 
I want to have my website install with this context /  but the default
/ROOT is already using this contexthow can I remove this context?  Below
are printouts of my ant list and install results
 
==
Ant List:
=
C:\DEV_WORK\russellpitre.comant list
Buildfile: build.xml
list:
 [echo] Listing Installed and Deployed Web Applications ...
 [list] OK - Listed applications for virtual host localhost
 [list] /admin:running:0:../server/webapps/admin
 [list] /webdav:running:0:C:\Program Files\Apache Group\Tomcat
4.1\webapps\webdav
 [list] /examples:running:0:examples
 [list] /tomcat-docs:running:0:C:\Program Files\Apache Group\Tomcat
4.1\webapps\tomcat-docs
 **[list] /:running:1:C:\Program Files\Apache Group\Tomcat 4.1\webapps\ROOT
 [list] /manager:running:0:../server/webapps/manager

BUILD SUCCESSFUL
Total time: 1 second
 
 

Ant Install error:

C:\DEV_WORK\russellpitre.comant install
Buildfile: build.xml
init:
prepare:
 [echo] Creating russellpitre's war directory ...
build:
 [echo] Building russellpitre ...
package:
 [echo] Packaging russellpitre's web archive file ...
  [jar] Building jar: C:\DEV_WORK\russellpitre.com\russellpitre.war
install:
 [echo] Installing russellpitre ...
  [install] FAIL - Encountered exception java.io.IOException:
java.lang.IllegalStateException: Context path  is already
in use

BUILD FAILED
file:C:/DEV_WORK/russellpitre.com/build.xml:94: FAIL - Encountered exception
java.io.IOException: java.lang.IllegalState
Exception: Context path  is already in use
Total time: 2 seconds

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



wierd error.....

2003-11-04 Thread RPITRE
When i have the code below in my web.xml file...

error-page
error-code404/error-code
location/file_not_found.jsp/location
/error-page 

I get this error

2003-11-04 16:31:46 ErrorDispatcherValve[localhost]: Exception Processing
ErrorPage[errorCode=404, location=/file_not_found.jsp]
java.net.SocketException: Connection reset by peer: socket write error
 at java.net.SocketOutputStream.socketWrite0(Native Method)
 at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)

...
...


I know the error-page  tag is causing the error because the error is no
longer present after the tag has been removed..does anyone have any
ideas.

Russ-

 

 


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

RE: JNDIRealm...more

2003-11-03 Thread RPITRE
Here's what I have..this works for mehope this helps

Realm className=org.apache.catalina.realm.JNDIRealm
debug=99
connectionURL=ldap://[domain controller]:389
userBase=OU=Users,OU=[My OU],DC=[Domain],DC=com
userSearch=(sAMAccountName={0})
userRoleName=member
roleBase=OU=Users,OU=[my OU],DC=[Domain],DC=com
roleName=memberOf

roleSearch=(memberOf=CN=tomcat,CN=Users,DC=[Domain],DC=com)

connectionName=CN=Administrator,CN=Users,DC=[Domain],DC=com
connectionPassword=[password]
roleSubtree=true
userSubtree=true/

-Original Message-
From: Hart, Justin [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 03, 2003 12:57 PM
To: Tomcat Users List
Subject: JNDIRealm...more

My server.xml now looks like this :


Realm className=org.apache.catalina.realm.JNDIRealm debug=99
connectionURL=A good active directory server
userBase=dc=MY DOMAIN NAME,dc=com
userRoleName=member
roleName=cn
roleSearch=(userPrincipalName={0})
roleSubtree=false
userSubtree=false
referrals=follow
/

Reading through the log shows no errors, just that the realm is openning and
closing connections with my LDAP server, after 3 tries, it tells me that I
need to use http authentication.

What's going wrong here?

Justin

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



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



RE: JNDIRealm...more

2003-11-03 Thread RPITRE
You don't need the admin password, you do need a domain account the has read
permissions.just about any account will do thiscreate a test
account.and use that instead of the admin account..
 


-Original Message-
From: Hart, Justin [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 03, 2003 4:18 PM
To: Tomcat Users List
Subject: RE: JNDIRealm...more

Is there a way to do this without the admin password in the file?

What is sAMAccountName?

Also, not terribly versed in LDAP, what is My OU?

Justin

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, November 03, 2003 4:16 PM
To: [EMAIL PROTECTED]
Subject: RE: JNDIRealm...more


Here's what I have..this works for mehope this helps

Realm className=org.apache.catalina.realm.JNDIRealm
debug=99
connectionURL=ldap://[domain controller]:389
userBase=OU=Users,OU=[My OU],DC=[Domain],DC=com
userSearch=(sAMAccountName={0})
userRoleName=member
roleBase=OU=Users,OU=[my OU],DC=[Domain],DC=com
roleName=memberOf

roleSearch=(memberOf=CN=tomcat,CN=Users,DC=[Domain],DC=com)

connectionName=CN=Administrator,CN=Users,DC=[Domain],DC=com
connectionPassword=[password]
roleSubtree=true
userSubtree=true/

-Original Message-
From: Hart, Justin [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 03, 2003 12:57 PM
To: Tomcat Users List
Subject: JNDIRealm...more

My server.xml now looks like this :


Realm className=org.apache.catalina.realm.JNDIRealm debug=99
connectionURL=A good active directory server
userBase=dc=MY DOMAIN NAME,dc=com
userRoleName=member
roleName=cn
roleSearch=(userPrincipalName={0})
roleSubtree=false
userSubtree=false
referrals=follow
/

Reading through the log shows no errors, just that the realm is openning and
closing connections with my LDAP server, after 3 tries, it tells me that I
need to use http authentication.

What's going wrong here?

Justin

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



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


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


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