Re: still not clear with connection pooling in tomcat

2005-04-04 Thread Krishnakant Mane
hello doug,
I am sending the following details on the questions
you asked.
and thanks for your help.
I am using mysql as the database back-end and tomcat
version 5.  I have the mysql jdbc the latest stable
version.  and the server is right now going to support
a single application but I plan to serve more apps in
a few days.
Please help me with the info I need.  I will be
obliged if u could give an example.
I am again thankfull to you as you exactly understood
my problem and the confusion I faced with the articles
on the net.
Please provide a servlet based example not a jsp one.
thanks again
Krishnakant

Send instant messages to your online friends http://uk.messenger.yahoo.com 

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



AW: Tomcat aborts

2005-04-04 Thread Dirk . Sklarek
Hi Anto,

the problem only occurs in the production system.
Therefore we can't change the JRE easily.
But I think we have to.

The test system is not affected.

Do you have a link that supports your hint regarding to JRE problems?


 -Ursprüngliche Nachricht-
 Von: Anto Paul [mailto:[EMAIL PROTECTED]
 Gesendet am: Freitag, 1. April 2005 14:37
 An: Tomcat Users List
 Betreff: Re: Tomcat aborts
 
 On Apr 1, 2005 5:56 PM, [EMAIL PROTECTED]
 [EMAIL PROTECTED] wrote:
  Hi,
  
  we are running tomcat 5.0.24 on solaris with Java 1.4.2_05.
  Sometimes tomcat aborts with following informations:
  
  Unexpected Signal : 11 occurred at PC=0xFE4B4590
  Function=[Unknown. Nearest: 
 sysThreadAvailableStackWithSlack+0x176F0]
  Library=/usr/j2sdk1.4.2_05/jre/lib/sparc/server/libjvm.so
  
  Dynamic libraries:
  --some libs---
  
  Heap at VM Abort:
  Heap
   PSYoungGen  total 284096K, used 17313K [0xb540, 0xca95,
  0xca95)
eden space 8192K, 211% used [0xb540,0xb64e86f8,0xb5c0)
from space 275904K, 0% used [0xb5c0,0xb5c0,0xc697)
to   space 65408K, 0% used [0xc697,0xc697,0xca95)
PSOldGentotal 699072K, used 693432K [0xca95, 
 0xf540,
  0xf540)
object space 699072K, 99% used [0xca95,0xf4e7e1a0,0xf540)
   PSPermGen   total 16896K, used 16311K [0xf540, 0xf648,
  0xf940)
object space 16896K, 96% used [0xf540,0xf63edca0,0xf648)
  
  Im not familiar with that memory stuff.
  Any ideas?
  
  Cheers Dirk
  
  
 
 You tried any other versions/vendor of JRE ?. This is problem 
 with JRE.
 -- 
 Anto Paul
 Benchmark Softech
 www.benchmarksoft.com
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


Re: JAAS authentication and global realms

2005-04-04 Thread Guillaume Lederrey
  Once more, could you send those mails to the tomcat mailing-list and not 
directly to me ? It helps me to sort my mails and it can profit to more 
people ...

On Friday 01 April 2005 18.26, you wrote:
 My problem is I am not
 able to understand how to assign roles to a particular user. For example
 ..After the user is authenticated in the commit() I try to add principal to
 the subject with the set for roles as..
 subject.getPrincipals().add((principal));

  That should be correct.

 Though the role shows up under principals for the subject, he fails to be
 authenticated. Can you please help me. it's a bit urgent. Hope the problem
 was clear enough) Ops I am trying to use JAAS in Borland Enterprise Server.

  How do you check that the roles shows up in the principal ? Do you have an 
authentication or an authorization problem ? What implementation of Principal 
are you using ? Could you send the relevant java code ?

  Sorry that I'm not able to help you more right now ...


 Guillaume

-- 
Guillaume Lederrey
Rte des Arsenaux 15
1700 Fribourg

+41 76 / 573 32 40

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



Apache, virtual host and Tomcat

2005-04-04 Thread david joffrin
Reposting as the postmaster is complaining...
Hi,
I would like to run the following configurations with only one
machine: 3 domains. Let's name them, www.domain1.com and
sthg.domain2.com and www.domain2.com.
www.domain1.com runs on 80 using apache and php
www.domain2.com runs on 8080 using tomcat, mysql...
sthg.domain2.com runs on 443 using apache and php
Using the virtual hosts, I managed to set-up successfully
www.domain1.com and sthg.domain2.com. I am now trying to include
mod_jk, but when doing that, I am loosing the virtual hosts features
and all my requests (for all sites) are sent to the tomcat instance
(including the https one).
Is that possible should probably my first question?
Has anyone some experience with a similar set-up?
Thanks for your help.
David.

-
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: Tomcat aborts

2005-04-04 Thread Anto Paul
On Apr 4, 2005 12:23 PM, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
 Hi Anto,
 
 the problem only occurs in the production system.
 Therefore we can't change the JRE easily.
 But I think we have to.
 
 The test system is not affected.
 
 Do you have a link that supports your hint regarding to JRE problems?
 
  -Ursprüngliche Nachricht-
  Von: Anto Paul [mailto:[EMAIL PROTECTED]
  Gesendet am: Freitag, 1. April 2005 14:37
  An: Tomcat Users List
  Betreff: Re: Tomcat aborts
 
  On Apr 1, 2005 5:56 PM, [EMAIL PROTECTED]
  [EMAIL PROTECTED] wrote:
   Hi,
  
   we are running tomcat 5.0.24 on solaris with Java 1.4.2_05.
   Sometimes tomcat aborts with following informations:
  
   Unexpected Signal : 11 occurred at PC=0xFE4B4590
   Function=[Unknown. Nearest:
  sysThreadAvailableStackWithSlack+0x176F0]
   Library=/usr/j2sdk1.4.2_05/jre/lib/sparc/server/libjvm.so
  
   Dynamic libraries:
   --some libs---
  
   Heap at VM Abort:
   Heap
PSYoungGen  total 284096K, used 17313K [0xb540, 0xca95,
   0xca95)
 eden space 8192K, 211% used [0xb540,0xb64e86f8,0xb5c0)
 from space 275904K, 0% used [0xb5c0,0xb5c0,0xc697)
 to   space 65408K, 0% used [0xc697,0xc697,0xca95)
 PSOldGentotal 699072K, used 693432K [0xca95,
  0xf540,
   0xf540)
 object space 699072K, 99% used [0xca95,0xf4e7e1a0,0xf540)
PSPermGen   total 16896K, used 16311K [0xf540, 0xf648,
   0xf940)
 object space 16896K, 96% used [0xf540,0xf63edca0,0xf648)
  
   Im not familiar with that memory stuff.
   Any ideas?
  
   Cheers Dirk
  
  
 
  You tried any other versions/vendor of JRE ?. This is problem
  with JRE.
  --
  Anto Paul
  Benchmark Softech
  www.benchmarksoft.com
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

Check that all required OS patches are installed. You will get better
support at the vendor support forums.  More debuf info about JVM crash
will be stored in a file starting with hs_err_ . Usually this is found
in the JRE directory or from where the JRE was started.
See the checklist in the wiki
http://wiki.apache.org/jakarta-tomcat/HowTo

-- 
Anto Paul
www.benchmarksoft.com

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



[5.5] Environment entries are not loaded from conf/Catalina/localhost/webapp.xml

2005-04-04 Thread rayst rayst
Hi,

trying to upgrade from Tomcat 5.0 to 5.5.7 (tried
.9-alpha as well) i encountered the following problem:

The entry Environment name=a/b
type=java.lang.String value=c / in
TOMCAT_HOME/conf/Catalina/localhost/webapp.xml does
not get loaded into the JNDI context. (java:comp/env
- a/b)
It works for 5.0... Any remarks?

Thanks,

rrayst




__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



page can't be found after restart Tomcat

2005-04-04 Thread Marcus Nugroho
Hi,

We have strange error on our Tomcat 3.3.1a. After we restart the Tomcat, 
sometimes it can't 
find the login page that we use. If we don't restart the Tomcat, it works 
just fine.
This problem is intermittent.
If this problem occured, we need to restart the Tomcat till it can find 
the login page.
(Sometimes we need to restart for several times)

Does anyone can help ?

Thanks in advance.

The error message in the Tomcat stdout log when the error occured is as 
follows : 
2005-03-08 12:24:43 - Ctx(/epoint) : Class not found: 
TOMCAT/JSP/logonCRMManager.jsp


Re: Tomcat taking 125 seconds to launch

2005-04-04 Thread t.n.a.
Michael Mehrle wrote:
The configuration is a modified version of appfuse 1.5 (struts and 
hibernate) - so this should give you a good idea of how it is 
structured. FYI: on my development machine here at home Tomcat starts 
in 28 seconds - identical project and configuration.
A fairly long time, any way you cut it. It takes about 6-9s on my Athlon 
1900+ (using JDK 1.5), and a couple of seconds more on my laptop (even 
though the laptop has a 2.8GHz P4!, but runs blackdawn jdk 1.4).
Just a wild guess, but it seemes to me that you have a 2-minute timeout 
on something, and than tomcat normally loads in 5-6s.

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


Re: Tomcat taking 125 seconds to launch

2005-04-04 Thread Andrew Miehs
hmm - sounds like a dns lookup causing a problem
Andrew
On Apr 4, 2005, at 11:03 AM, t.n.a. wrote:
Michael Mehrle wrote:
The configuration is a modified version of appfuse 1.5 (struts and 
hibernate) - so this should give you a good idea of how it is 
structured. FYI: on my development machine here at home Tomcat starts 
in 28 seconds - identical project and configuration.
A fairly long time, any way you cut it. It takes about 6-9s on my 
Athlon 1900+ (using JDK 1.5), and a couple of seconds more on my 
laptop (even though the laptop has a 2.8GHz P4!, but runs blackdawn 
jdk 1.4).
Just a wild guess, but it seemes to me that you have a 2-minute 
timeout on something, and than tomcat normally loads in 5-6s.

-
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: How could I autodeploy my webapps onto arbitrary path -s?

2005-04-04 Thread Zoltan Kanizsai
Thanks for the idea, urlencoding seems to help:

For the path: corp/edit/
I can use the filename:
  corp%2Fedit%2F.xml

However, I don't like this whole story.
I'd like to use the path= parameter
in the xml files, as I could before...

Zoltan


QM wrote:
 
 On Wed, Mar 30, 2005 at 06:11:38PM +0200, Zoltan Kanizsai wrote:
 : In 5.5.7, the path= parameter is forbidden with these
 : context xml files. The path will be derived from the
 : file name. Subdirectories are not processed, not even in
 : the $CATALINA_HOME/conf/[enginename]/[hostname] folder.
 :
 : How could I autodeploy my webapps onto arbitrary path -s?
 
 There was a recent thread on just this subject.  You have to put special
 chars in the filename, which are interpreted as / characters as the file
 is processed.
 
 I don't recall the exact character, but you should be able to find it in
 the archives.
 
 -QM
 
 --
 
 software   -- http://www.brandxdev.net/
 tech news  -- http://www.RoarNetworX.com/
 code scan  -- http://www.JxRef.org/
 
 -
 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: session management

2005-04-04 Thread Lionel Farbos
Hi,

A cookie is attached to one IP/browser.
So, if the same browser do : 
httpServletRequest.getSession()
it recovers the same httpSession as before (if it already exists).
But when you come from another browser, the same httpSession is not recovered.

For your needs, I think you can do something like this :
Use a database in which you store sessionIds when they are created, and you can 
associate all the parameters you want to this Id (login,context,...).
When a new browser wants to use to same session as other, it invokes a special 
servlet with the required parameters;
Then, this servlet take the desired sessionId in database and returns it as a 
cookie (So, here, you case use httpServletResponse.addCookie(...)).
So, your second browser will store the same sessionId as the 1st one and will 
use the same Context...

Perhaps there are other ways to do this,
but I think this one can work.

Regards.

On Sat, 2 Apr 2005 12:07:26 -0800 (PST)
Jagadeesha T [EMAIL PROTECTED] wrote:
 Hi, Thanks the reply,
  My requirement is little different.
 I want to have many browser instaces (2 or more)to use the same session.
 In my first.jsp, on first hit, i will get the session and store it.
 Again,if the first jsp is hit for the second time. It should use the
 same session. SO, I will not let it allow to create a new one. Instead use 
 the one already stored for user.
 I have to do like this since the user login is done from a Java 
 Applacition(Swing).
 If the user wants to go to a browser. User has to click on the button (Swing 
 UI) that will launch the 
 browser. each click on the button should launch a browser.
 I want all those browsers launched for that login to use a shared session 
 object.
 Could you tell How can I do it.
 I tried by setting the cookie at the first.jsp when the second browser 
 launch(Coolke which had created at the 
 first
 hit).
 addCookie,
   In one of the middle jsps, there is 
   response.sendRedirect(response.encodeURL(samepage?somename=somevalue))
  Every time,it is failing here, response.sendRedirect();
  //When it is reloaded i have observerd that it is not getting the cookie in 
 the headers.
  I don't understand why the browser not sending the cookie. cookie is not 
 disabled.
  
 Scenario 2.
 If all browser uses different session objects. then it works fine.
  
 could you tell me is there any way to get this done?
 Thanks,
 Jagadish
 
 
  
 
 Lionel Farbos [EMAIL PROTECTED] wrote:
 On Thu, 31 Mar 2005 11:41:55 -0800 (PST)
 Jagadeesha T wrote:
 
  Hi all,
  I want to set session in httpservletresponse object, Is there 
  any way to do it.
  Otherthan response.addCookie(), or 
  response.encodeURL();
  Is there any way to set the Jsession In headers, So that it gets that 
  in the next Jsp by request object, 
  If I use addCookie of response object, It fails if any where encodeURL 
  is used. 
  If i user encodeURL, every JSP needs to updated with that method.
  Please if anybody knows tell the way that can be done. 
 
 You don't have to create yourself the cookie.
 You create the HttpSession with HttpServletRequest.getSession() or 
 HttpServletRequest.getSession(boolean)
 Then, the session is created and the cookie JSESSIONID is added to the 
 HttpServletResponse.
 So, the next time you'll invoke a servlet or JSP in the same Context (with 
 the same browser),
 the Cookie JSESSIONID will be attached to your request.
 
 If you have clustered your Tomcat, the JSESSIONID will have a suffix .,
 so, if you use the mod_jk to load-balance your tomcat clustered servers, 
 your request will be sent to the same tomcat (as the precedent).
 
 Enjoy
 
  Thanks,
  Jagadeesha T
  
  
  
  -
  Do you Yahoo!?
  Better first dates. More second dates. Yahoo! Personals 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
   
 -
 Do you Yahoo!?
  Better first dates. More second dates. Yahoo! Personals 

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



axis tomcat5.5

2005-04-04 Thread kalin mintchev

hi all...

just a simple question...

i was reading the axis documentation on the apache site and it says there
in the introduction section that If you are installing Tomcat, get the
latest 4.1.x
i was wondering if this hasn't been updated lately or axis 1.2 RC3 and
tomcat 5.* are not usable for production...

--



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



RE: Webdav Webfolder issue when container security enabled

2005-04-04 Thread Fernando Salazar de Paz
Win XP Professional, SP2 (Firewall disabled)
J2SDK 1.4.2_06

Installing Tomcat 4.1.31 
Install type:   Normal
NT Service: Checked
Dir:C:\Tomcat 4.1
Port:   8080

FILES:
File A: BizObj.pdf  391.413/393.216 bytes   
(MS Patterns andpractices)

File B: user-guide.pdf  202.259/204.800 bytes   
(Axis User's guide)

File C: manual-a4.pdf   7.045.780/7.049.216 bytes
(MySql manual)


In Windows
New Network Site -- http://localhost:8080/webdav

1. 
I can browse webdav dir
PROPFIND GET works ok
I can not PUT, I have to make some changes in
C:\Tomcat 4.1\webapps\webdav\WEB-INF\web.xml

--
Changes in C:\Tomcat 4.1\webapps\webdav\WEB-INF\web.xml
(Uncomment the following)
init-param
  param-namereadonly/param-name
  param-valuefalse/param-value
/init-param
--

2. Uncommenting servlet's readonly init parameter:
I can PUT files
I can GET recently putted files. PDFs files work ok I can read them
directly from webdav folder


--
Enabling container security

Changes in C:\Tomcat 4.1\webapps\webdav\WEB-INF\web.xml
(Uncomment the following)

  security-constraint
web-resource-collection
  web-resource-nameThe Entire Web Application/web-resource-name
  url-pattern/*/url-pattern
/web-resource-collection
auth-constraint
  role-nametomcat/role-name
/auth-constraint
  /security-constraint

  login-config
auth-methodBASIC/auth-method
realm-nameTomcat Supported Realm/realm-name
  /login-config

  security-role
description
  An example role defined in conf/tomcat-users.xml
/description
role-nametomcat/role-name
  /security-role

--


3. enabling security

I can PUT files, but

I can't read any file (FILE A, FILE B) directly from webfolders.

3.a Directly from webfolder
3.a.1 Double-click in webfolder link
3.a.2 Folder opens showing all files
3.a.3 double-click on file a or b
3.a.4 A new iexplore window opens to show the file
3.a.5 Authentication dialog (using tomcat/tomcat)
3.a.6 Iexplore tries to download the file: dialog open or save
I can't either open or save. IE says the site cannot be
found
It's like an activex control


3.b From IE 
3.b.1   In IE http://localhost:8080/webdav
3.b.2 Shows auth dialog (tomcat/tomcat)
3.b.3 Redirects IE to http://localhost:8080/webdav/index.html 
(welcome file)
3.b.4 Trying http://localhost:8080/webdav/BizObj.pdf (changing
The URL) FAILS ¿? (I am confused). The same error as in 3.a


3.c Copy  Paste from webfolder
3.c.1 Double-click in webfolder link
3.c.2 Copy (FILE b)
3.c.2 (in desktop) Paste
Works, I can read pdf file double-clicking it in desktop


Restarting Tomcat 4.1 service has no effect

I don't know why I cannot get listings for http://localhost:8080/webdav
Prior to this test I think I could see the files and IE worked ok.
init-param
  param-namelistings/param-name
  param-valuetrue/param-value
/init-param


Disabling authentication, Webfolders, IE,... works fine












-Mensaje original-
De: Mark Thomas [mailto:[EMAIL PROTECTED] 
Enviado el: viernes, 01 de abril de 2005 20:23
Para: Tomcat Users List
Asunto: Re: Webdav Webfolder issue when container security enabled

Put together some full step-by-step instructions (from a clean install 
of 4.1.x or 5.5.x) and I'll take another look.

Mark

Fernando Salazar de Paz wrote:
 Another thing
 
 I have problems using tcpmon from Axis. Index Out of Bounds exceptions
 when I put the files, and so on.
 
 I have used ethereal to sniff network traffic.
 
 
 -
 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]



IP based restriction

2005-04-04 Thread Jobish P

Hi all,

I am a newbie to Tomcat. I have installed Tomcat 5.0.19 on Redhat LInux 9,
and going fine. I would like to restrict some of my directories to certain
IP's only, say a range of IP. How can I restrict access to a directory in
/tomcat/webappas/ROOT on the basis of IP ? I tried with valves, but not
sure how to restrict the restriction only to particular directories.

It will be of nice if you could provide a solution,

cheers,
---
JOBISH P
NCSI
Indian Institute of Science
Bangalore-12


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



Re: Tomcat shutdown exception

2005-04-04 Thread Tim Funk
With any luck, there should be root cause buried in the stack trace too. 
Otherwise  - you should probably ask the Axis-user list.

-Tim
MKW wrote:
I'm using Tomcat 5.5 (installed as a manually started service) with the 
latest Axis release as a webapp and have defined a MySQL data source (as 
a context in server.xml and a resource-ref in the Axis web.xml) with to 
which an Axis web service (and an ordinary jsp page) can both connect 
successfully.  At the end of my web service I close the Connection 
Statement, ResultSet and Context instances with no problems - no 
exceptions are thrown.  But, after I have used the MySQL connection in 
my web service program, Tomcat throws the exception I've added beneath 
(which doesn't happen e.g. with a jsp page).  Does anyone have any idea 
why this should be happening?

Thanks.
Madeleine
This is the exception thrown when Tomcat closes:
INFO: ContextListener: contextDestroyed()
- Servlet AxisServlet threw unload() exception
javax.servlet.ServletException: Servlet.destroy() for servlet 
AxisServlet threw exception
at 
org.apache.catalina.core.StandardWrapper.unload(StandardWrapper.java:1306)
at 

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


Re: IP based restriction

2005-04-04 Thread Tim Funk
There is nothing that restricts on a directory level. You'd need to write 
your own servlet filter.

-Tim
Jobish P wrote:
Hi all,
I am a newbie to Tomcat. I have installed Tomcat 5.0.19 on Redhat LInux 9,
and going fine. I would like to restrict some of my directories to certain
IP's only, say a range of IP. How can I restrict access to a directory in
/tomcat/webappas/ROOT on the basis of IP ? I tried with valves, but not
sure how to restrict the restriction only to particular directories.
It will be of nice if you could provide a solution,
 
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: still not clear with connection pooling in tomcat

2005-04-04 Thread Parsons Technical Services
Because there are different versions, and the setup is different, I need 
exact version of Tomcat. What was the file name you downloaded? Was it a 
5.0.xx or 5.5.x for they are different?

Doug
- Original Message - 
From: Krishnakant Mane [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Monday, April 04, 2005 2:16 AM
Subject: Re: still not clear with connection pooling in tomcat


hello doug,
I am sending the following details on the questions
you asked.
and thanks for your help.
I am using mysql as the database back-end and tomcat
version 5.  I have the mysql jdbc the latest stable
version.  and the server is right now going to support
a single application but I plan to serve more apps in
a few days.
Please help me with the info I need.  I will be
obliged if u could give an example.
I am again thankfull to you as you exactly understood
my problem and the confusion I faced with the articles
on the net.
Please provide a servlet based example not a jsp one.
thanks again
Krishnakant
Send instant messages to your online friends http://uk.messenger.yahoo.com
-
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: still not clear with connection pooling in tomcat

2005-04-04 Thread Krishnakant Mane
doug,
thanks again for ur response.

Well it is not 5.5. It is 5.0.xx


Thanks

Krishnakant.

Send instant messages to your online friends http://uk.messenger.yahoo.com 

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



Re: IP based restriction

2005-04-04 Thread haim
Try the following filer class
Add this to web.xml
filter
   filter-nameAccessControl/filter-name
   filter-classpackage.AccessControl/filter-class   
 /filter

 filter-mapping
   filter-nameAccessControl/filter-name
   url-pattern/directoryName/*/url-pattern
 /filter-mapping
import java.io.IOException;
import java.util.Properties;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
/**
* @author haim
*/
public class AccessControl implements Filter {
 /* (non-Javadoc)
* @see javax.servlet.Filter#init(javax.servlet.FilterConfig)
*/
   public void init(FilterConfig arg0) throws ServletException {
   System.out.println(Init AccessControl);
  
   }
   /**
*  Filter the pages accessing back office by their IP address prefix.
*  The following must be set in order to keep this filter working
*  1. Setting of the filter in the web.xml file
*  2. Defining address prefix in the main.properties file by 
defining the
*key access.filter
*  @see javax.servlet.Filter#doFilter(javax.servlet.ServletRequest, 
javax.servlet.ServletResponse, javax.servlet.FilterChain)
*/
   public void doFilter(ServletRequest request, ServletResponse 
response, FilterChain chain)
throws IOException, ServletException {
  
 HttpServletRequest httpReq = (HttpServletRequest) request;
 HttpServletResponse httpResp = (HttpServletResponse) response;

 String remoteAddress=request.getRemoteAddr();
 System.out.println(Backoffice Access request from +  
remoteAddress);
 //allow only ip's starting with 10.0.
 if(remoteAddress.startsWith(10.0.)){

  System.out.println(Access aproved);
  
 }else{
  System.out.println(Access rejected!);
  httpResp.sendError(HttpServletResponse.SC_FORBIDDEN);
 }

   /*
* Process the rest of the filter chain, if any, and ultimately
* the requested servlet or JSP page.
*/
 chain.doFilter(request, response);
  
   }

}
Regards
Haim
Jobish P wrote:
Hi all,
I am a newbie to Tomcat. I have installed Tomcat 5.0.19 on Redhat LInux 9,
and going fine. I would like to restrict some of my directories to certain
IP's only, say a range of IP. How can I restrict access to a directory in
/tomcat/webappas/ROOT on the basis of IP ? I tried with valves, but not
sure how to restrict the restriction only to particular directories.
It will be of nice if you could provide a solution,
cheers,
---
JOBISH P
NCSI
Indian Institute of Science
Bangalore-12

-
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]


symlink in a webapp

2005-04-04 Thread Guillaume Lederrey
  Hello !

  I'm trying to have a symlink in one of my webapp. Something like :

myApp/
  +- WEB-INF/
  +- myOtherDir - symlink to somewhere else

  Tomcat doesnt seem to follow the symlink (I get a 404). It probably
is that way for very good security reasons, but in the developpement
phase, it would me most usefull for me to be able to use that trick.

  I suspect there is a config option somewhere but I could find it ...

   Thx for your help ...

 Guillaume Lederrey

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



Re: still not clear with connection pooling in tomcat

2005-04-04 Thread Parsons Technical Services
Will more than one of the apps be using the same database? That is the same 
tables and data? Even if they are using the same database engine IE MySQL on 
the server, will it be the same database instance?

Doug
- Original Message - 
From: Krishnakant Mane [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Monday, April 04, 2005 7:25 AM
Subject: Re: still not clear with connection pooling in tomcat


doug,
thanks again for ur response.
Well it is not 5.5. It is 5.0.xx
Thanks
Krishnakant.
Send instant messages to your online friends http://uk.messenger.yahoo.com
-
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: symlink in a webapp

2005-04-04 Thread Trond G. Ziarkowski
Hi,
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/context.html
Look for the allowLinking attribute...
Trond
||
Guillaume Lederrey wrote:
 Hello !
 I'm trying to have a symlink in one of my webapp. Something like :
myApp/
 +- WEB-INF/
 +- myOtherDir - symlink to somewhere else
 Tomcat doesnt seem to follow the symlink (I get a 404). It probably
is that way for very good security reasons, but in the developpement
phase, it would me most usefull for me to be able to use that trick.
 I suspect there is a config option somewhere but I could find it ...
  Thx for your help ...
Guillaume Lederrey
-
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: Webdav Webfolder issue when container security enabled

2005-04-04 Thread Fernando Salazar de Paz
Deleting C:\Tomcat 4.1\webapps\webdav\index.html listings were ok
If I comment welcome-files in web.xml I think it should take welcome-files
defined In C:\Tomcat 4.1\conf\web.xml  or not ?

Now I can open PDF files with IExplore


After several restarts changing webdav\WEB-INF\web.xml

i. I could open previously uploaded PDF files (PUT) directly
from webfolders ¿?¿

ii. I can PUT files dragging them into the webfolder

iii. I can't do is open a previously uploaded file
directly from webfolder (I can only open files uploaded where auth
were disabled)


iv. I can't get the PDF file directly from IExplore. I have to direct IE
previously to http://localhost:8080/webdav

If I run IE using directly http://localhost:8080/webdav/BizObj.pdf it will
not work

But if I run IE using http://localhost:8080/webdav i get the directory
listing and after that I follow BizObj.pdf link it works

Using other file types (for example ZIP files) I have the same problem



-
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: symlink in a webapp

2005-04-04 Thread Guillaume Lederrey
On Apr 4, 2005 1:41 PM, Trond G. Ziarkowski [EMAIL PROTECTED] wrote:
 http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/context.html
 
 Look for the allowLinking attribute...

  Once more, I seems to be blind ... Thanks for the hint !

Guillaume Lederrey

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



Latest Stable Release of tomcat 5.0 ?

2005-04-04 Thread Narayan, Satya
Hi all,
   Could somebody please tell me the latest stable release of
tomcat 5.0  ?
Is it 5.0.28 or 5.0.29 or 5.0.30 ? 

Kindly advise.

Thanks and Regards,
Satya


Tomcat 5.5.7 build procedure required

2005-04-04 Thread Vijay Babu
Hi All,
Could anyone provide me information on how to build tomcat 5.5.7 from 
the sources. The jakarta site provides a detailed procedure for tomcat
4, but does not for tomcat 5. I would like to know what dependencies
have to downloaded and the steps to follow.
Please advise.

Thanks and Regards,
Vijay

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



Re: connection pooling basic help please

2005-04-04 Thread Kwok Peng Tuck
Krishnakant Mane wrote:
hello,
I refered to the docs in tomcat 5 for connection
pooling.  the document is pritty comprehencive and I
understood the server.xml part of it.
but now I want to know how exactly can I use a
connection from the pool in my servlet.
the example in tomcat documentation is on a jsp based
applicatio.  but I don't understand how I use a pooled
connection in a servlet.
 

You use a pooled connection in a simillar manner to a driver managed 
connection, except that you look up a resource (JNDI in this case). In 
your servlet just look up the resource.

should I initialise the connection in the Init method?
how and when should I close the connection?
 

You should close the connection immediately when you are done with it. 
Best not to pass references of them around. You would close them as a 
you would in a driver managed connection, that is Connection.close() ;

and wat entries in the web.xml file will effect
connection pooling?
 

Please help it is really urgent.
thanks
Krishnakant.
Send instant messages to your online friends http://uk.messenger.yahoo.com 

-
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]


tomcat ssl configuration

2005-04-04 Thread Mustafa BLKBA
I use tomcat 5.0.28 on linux, my j2se version is 1.4.02. I did all the steps in 
the document which is on this link but it's not working. Is there anybody who 
can help me with this issue?

 

Thanx,

Mustafa.



Re: Latest Stable Release of tomcat 5.0 ?

2005-04-04 Thread Markus Schnhaber
Am Montag, 4. April 2005 14:06 schrieb Narayan, Satya:
 Hi all,
Could somebody please tell me the latest stable release of
 tomcat 5.0  ?
 Is it 5.0.28 or 5.0.29 or 5.0.30 ?

I guess you can consider the version of Tomcat 5.0.x stable that is listed on 
the download-page
http://jakarta.apache.org/site/downloads/downloads_tomcat-5.cgi
and does not contain an appendix like -beta, -alpha or similar.

Regards
mks

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



Re: Tomcat 5.5.7 build procedure required

2005-04-04 Thread Antony Paul
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/building.html

On Apr 4, 2005 5:47 PM, Vijay Babu [EMAIL PROTECTED] wrote:
 Hi All,
 Could anyone provide me information on how to build tomcat 5.5.7 from
 the sources. The jakarta site provides a detailed procedure for tomcat
 4, but does not for tomcat 5. I would like to know what dependencies
 have to downloaded and the steps to follow.
 Please advise.
 
 Thanks and Regards,
 Vijay
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-- 
rgds
Antony Paul
http://www.geocities.com/antonypaul24/

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



tomcat ssl configuration

2005-04-04 Thread Mustafa BLKBA
I use tomcat 5.0.28 on linux, my j2se version is 1.4.02. I did all the steps in 
the document which is on this link 
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/ssl-howto.html but it's not 
working. Is there anybody who can help me with this issue?

 

Thanx,

Mustafa.

 



Re: tomcat ssl configuration

2005-04-04 Thread Anto Paul
On Apr 4, 2005 6:06 PM, Mustafa BLKBA [EMAIL PROTECTED] wrote:
 I use tomcat 5.0.28 on linux, my j2se version is 1.4.02. I did all the steps 
 in the document which is on this link 
 http://jakarta.apache.org/tomcat/tomcat-5.0-doc/ssl-howto.html but it's not 
 working. Is there anybody who can help me with this issue?
 
 Thanx,
 
 Mustafa.
 
 

You will get some error messages if it is not working. Post the error
messages. Then somebody can help. The log files are located in
CATALINA_HOME/logs directory.
-- 
Anto Paul
www.benchmarksoft.com

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



RE: Tomcat SSL Issues

2005-04-04 Thread Pandey, Abhimanyu
Look at your java.security file

Also which version of java are you using?  Baltimore is working with
java 1.3.1 not 1.4 so maybe that is a problem.

 


Ap

 
...the journey IS the destination...

-Original Message-
From: LGM [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 01, 2005 2:17 PM
To: tomcat-user@jakarta.apache.org
Subject: Tomcat  SSL Issues

Hello List,

I am trying to configure tomcat for SSL on Red Hat 8.0 and I run the
keytool script to obtain a CSR for my Certificate Authority. I am
getting the following error:

#$JAVA_HOME/bin/keytool -certreq -keyalg RSA -alias tomcat -file
/root/certreq.csr

keytool error: java.security.cert.CertificateException: Error decoding
X.509 certificate: com.baltimore.jcrypto.coders.CoderException:
com.baltimore.jcrypto.asn1.ASN1Integer;
com.baltimore.jcrypto.asn1.ASN1Exception:
com.baltimore.jcrypto.asn1.ASN1Integer; java.lang.ClassCastException:
com.baltimore.jcrypto.asn1.ASN1Integer

Does anyone have any ideas what's going on here? Thanks in advance!!

Luciano M.

-
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: Tomcat Connection refused :-(

2005-04-04 Thread gaurav
Peter Crowther wrote:
From: gaurav [mailto:[EMAIL PROTECTED] 
I am using tomcat 5.5.7 on Fedora 3 with jdk1.5.0_02
   


 

my i have disable firewal and stopped Iptables !!
   

OK.
 

netstat -a | grep tomcat or 8080- nothing , zero , blank
   

You already said that you had moved the Tomcat port from 8080, though?
If so, I wouldn't expect anything on 8080.  And I would expect something
on Tomcat's shutdown port as well (check your server.xml for its port
number) - is that not starting either?
- Peter
 

I dont whats the wrong here... I have just installed Jboss .its 
tunning fine ...what the problem tomcat ??
Why o Why tomcat says connection refused is there any hidden lock or 
temp files thats is causing proble ??

-
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]


Jakarta-tomcat-connectors-1.2.10-src error

2005-04-04 Thread Vaneet Sharma

I am getting error in  error_log

No JkShmFile defined in httpd.conf. LoadBalancer will not function
properly!

I am using new Jk Connector.. With tomcat 5.5.7


Jakarta connector -1.2.8 is working well with 5.5.7 on my other
machine...  ( so configuration is fine and working well )

Something has changed in new connector 

Any suggestion

Vaneet


Vaneet Sharma
executive manager   
iDeasTank Limited   
an iwg business
dolphins' court po 388
valletta, m-malta/europe
mobile:  +356 9943 8263
skype:   CALLVANEET
fax: +356 9952 
phone:   +356 9942 

[EMAIL PROTECTED]
call me on www.skype.com - my ID is CALLVANEET

Want a signature like this? - www.plaxo.com\signature

iwg is a global e-mobile company creating, building and growing new businesses. 
 iwg founders are pioneers in creating multi-billion dollar mobile and Internet 
businesses in Europe, Asia and the US.

www.iWG.info
www.countryprofiler.com/iWG
www.visitmalta.com
www.mfc.com.mt


Privileged/Confidential Information may be contained in this message.  If you 
are not the addressee indicated in this message (or responsible for delivery of 
the message to such person), you may not copy or deliver this message to 
anyone. In such case, you should destroy this message and kindly notify the 
sender by reply email.

== Isapi redirector Installation problem betweeen IIs and Tomcat

2005-04-04 Thread samuel . goblet
Hi,

I'm looking for some help. Thanx in advance.

When I make a request to IIS for JSP file, I've got an error message and 
in the event log : [jk_isapi_plugin.c (420)]: HttpFilterProc 
[/admin/index.jsp] is not a servlet url

**
The complete description follow from the windows log
And my installation process :
**
04/04/2005,14:18:03,Apache Jakarta 
Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (429)]: 
HttpFilterProc check if [/Jakarta/isapi_redirector2.dll] is pointing to 
the web-inf directory
04/04/2005,14:18:03,Apache Jakarta 
Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (420)]: 
HttpFilterProc [/Jakarta/isapi_redirector2.dll] is not a servlet url
04/04/2005,14:18:03,Apache Jakarta 
Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (308)]: In 
HttpFilterProc Virtual Host redirection of s0058 : 80
04/04/2005,14:18:03,Apache Jakarta 
Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (252)]: 
HttpFilterProc started
04/04/2005,14:18:03,Apache Jakarta 
Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (429)]: 
HttpFilterProc check if [/jsp-examples/jsp2/el/basic-comparisons.jsp] is 
pointing to the web-inf directory
04/04/2005,14:18:03,Apache Jakarta 
Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (340)]: 
HttpFilterProc [/jsp-examples/jsp2/el/basic-comparisons.jsp] is a servlet 
url - should redirect to lb
04/04/2005,14:18:03,Apache Jakarta 
Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (308)]: In 
HttpFilterProc Virtual Host redirection of s0058 : 80
04/04/2005,14:18:03,Apache Jakarta 
Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (252)]: 
HttpFilterProc started
04/04/2005,14:17:47,Apache Jakarta 
Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (429)]: 
HttpFilterProc check if [/admin/index.jsp] is pointing to the web-inf 
directory
04/04/2005,14:17:47,Apache Jakarta 
Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (420)]: 
HttpFilterProc [/admin/index.jsp] is not a servlet url
04/04/2005,14:17:47,Apache Jakarta 
Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (308)]: In 
HttpFilterProc Virtual Host redirection of s0058 : 80
04/04/2005,14:17:47,Apache Jakarta 
Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (252)]: 
HttpFilterProc started
04/04/2005,14:17:47,Apache Jakarta 
Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (429)]: 
HttpFilterProc check if [/admin/index.jsp] is pointing to the web-inf 
directory
04/04/2005,14:17:47,Apache Jakarta 
Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (420)]: 
HttpFilterProc [/admin/index.jsp] is not a servlet url
04/04/2005,14:17:47,Apache Jakarta 
Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (308)]: In 
HttpFilterProc Virtual Host redirection of s0058 : 80
04/04/2005,14:17:47,Apache Jakarta 
Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (252)]: 
HttpFilterProc started




*** SOFT RELEASE ***
My server : Windows server 2003
My Web server : IIS 6.0
My Tomcat server : 5.0.28
My JDK : JDK 1.4.2
My redirector : JK2

*** MY ACTIONS ***
**
* == 1 - Tests IIs and Tomcat without the connector :
**
open url : http://localhost  = IIs respond good
open url : http://localhost:8080/ and 
http://localhost:8080/jsp-examplessample, works good
**
* == 2 - Configuring the connector in tomcat's server.xml :
**
Server port=8005 shutdown=SHUTDOWN debug=0
  Listener className=org.apache.catalina.mbeans.ServerLifecycleListener
debug=0/
  Listener 
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
debug=0/

  !-- Global JNDI resources --
  GlobalNamingResources

!-- Test entry for demonstration purposes --
Environment name=simpleValue type=java.lang.Integer value=30/

Resource name=UserDatabase auth=Container
  type=org.apache.catalina.UserDatabase
   description=User database that can be updated and saved
/Resource
ResourceParams name=UserDatabase
  parameter
namefactory/name
valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
  /parameter
  parameter
namepathname/name
valueconf/tomcat-users.xml/value
  /parameter
/ResourceParams

  /GlobalNamingResources

Service name=Catalina

!-- Define a non-SSL Coyote HTTP/1.1 Connector on the port specified
 during installation  --
Connector port=8080
   maxThreads=150
   minSpareThreads=25
   maxSpareThreads=75
   enableLookups=false
   

Re: == Isapi redirector Installation problem betweeen IIs and Tomcat

2005-04-04 Thread reynir
what version of IIS / tomcat / isapi_redirector are you using ?
-reynir

[EMAIL PROTECTED] wrote:

Hi,

I'm looking for some help. Thanx in advance.

When I make a request to IIS for JSP file, I've got an error message and 
in the event log : [jk_isapi_plugin.c (420)]: HttpFilterProc 
[/admin/index.jsp] is not a servlet url

**
The complete description follow from the windows log
And my installation process :
**
04/04/2005,14:18:03,Apache Jakarta 
Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (429)]: 
HttpFilterProc check if [/Jakarta/isapi_redirector2.dll] is pointing to 
the web-inf directory
04/04/2005,14:18:03,Apache Jakarta 
Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (420)]: 
HttpFilterProc [/Jakarta/isapi_redirector2.dll] is not a servlet url
04/04/2005,14:18:03,Apache Jakarta 
Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (308)]: In 
HttpFilterProc Virtual Host redirection of s0058 : 80
04/04/2005,14:18:03,Apache Jakarta 
Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (252)]: 
HttpFilterProc started
04/04/2005,14:18:03,Apache Jakarta 
Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (429)]: 
HttpFilterProc check if [/jsp-examples/jsp2/el/basic-comparisons.jsp] is 
pointing to the web-inf directory
04/04/2005,14:18:03,Apache Jakarta 
Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (340)]: 
HttpFilterProc [/jsp-examples/jsp2/el/basic-comparisons.jsp] is a servlet 
url - should redirect to lb
04/04/2005,14:18:03,Apache Jakarta 
Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (308)]: In 
HttpFilterProc Virtual Host redirection of s0058 : 80
04/04/2005,14:18:03,Apache Jakarta 
Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (252)]: 
HttpFilterProc started
04/04/2005,14:17:47,Apache Jakarta 
Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (429)]: 
HttpFilterProc check if [/admin/index.jsp] is pointing to the web-inf 
directory
04/04/2005,14:17:47,Apache Jakarta 
Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (420)]: 
HttpFilterProc [/admin/index.jsp] is not a servlet url
04/04/2005,14:17:47,Apache Jakarta 
Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (308)]: In 
HttpFilterProc Virtual Host redirection of s0058 : 80
04/04/2005,14:17:47,Apache Jakarta 
Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (252)]: 
HttpFilterProc started
04/04/2005,14:17:47,Apache Jakarta 
Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (429)]: 
HttpFilterProc check if [/admin/index.jsp] is pointing to the web-inf 
directory
04/04/2005,14:17:47,Apache Jakarta 
Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (420)]: 
HttpFilterProc [/admin/index.jsp] is not a servlet url
04/04/2005,14:17:47,Apache Jakarta 
Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (308)]: In 
HttpFilterProc Virtual Host redirection of s0058 : 80
04/04/2005,14:17:47,Apache Jakarta 
Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (252)]: 
HttpFilterProc started




*** SOFT RELEASE ***
My server : Windows server 2003
My Web server : IIS 6.0
My Tomcat server : 5.0.28
My JDK : JDK 1.4.2
My redirector : JK2

*** MY ACTIONS ***
**
* == 1 - Tests IIs and Tomcat without the connector :
**
open url : http://localhost  = IIs respond good
open url : http://localhost:8080/ and 
http://localhost:8080/jsp-examplessample, works good
**
* == 2 - Configuring the connector in tomcat's server.xml :
**
Server port=8005 shutdown=SHUTDOWN debug=0
  Listener className=org.apache.catalina.mbeans.ServerLifecycleListener
debug=0/
  Listener 
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
debug=0/

  !-- Global JNDI resources --
  GlobalNamingResources

!-- Test entry for demonstration purposes --
Environment name=simpleValue type=java.lang.Integer value=30/

Resource name=UserDatabase auth=Container
  type=org.apache.catalina.UserDatabase
   description=User database that can be updated and saved
/Resource
ResourceParams name=UserDatabase
  parameter
namefactory/name
valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
  /parameter
  parameter
namepathname/name
valueconf/tomcat-users.xml/value
  /parameter
/ResourceParams

  /GlobalNamingResources

Service name=Catalina

!-- Define a non-SSL Coyote HTTP/1.1 Connector on the port specified
 during installation  --
Connector port=8080
   maxThreads=150
   

Re: == Isapi redirector Installation problem betweeen IIs and Tomcat

2005-04-04 Thread reynir
ok sorry
I saw it down at the bottom of your email.
I wrote directions on how to install this kind of setup few days ago :

http://www.reynir.net/java/greinar/nr/52

check it out, it works fine.

-reynir

reynir wrote:

what version of IIS / tomcat / isapi_redirector are you using ?
-reynir

[EMAIL PROTECTED] wrote:

  

Hi,

I'm looking for some help. Thanx in advance.

When I make a request to IIS for JSP file, I've got an error message and 
in the event log : [jk_isapi_plugin.c (420)]: HttpFilterProc 
[/admin/index.jsp] is not a servlet url

**
The complete description follow from the windows log
And my installation process :
**
04/04/2005,14:18:03,Apache Jakarta 
Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (429)]: 
HttpFilterProc check if [/Jakarta/isapi_redirector2.dll] is pointing to 
the web-inf directory
04/04/2005,14:18:03,Apache Jakarta 
Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (420)]: 
HttpFilterProc [/Jakarta/isapi_redirector2.dll] is not a servlet url
04/04/2005,14:18:03,Apache Jakarta 
Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (308)]: In 
HttpFilterProc Virtual Host redirection of s0058 : 80
04/04/2005,14:18:03,Apache Jakarta 
Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (252)]: 
HttpFilterProc started
04/04/2005,14:18:03,Apache Jakarta 
Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (429)]: 
HttpFilterProc check if [/jsp-examples/jsp2/el/basic-comparisons.jsp] is 
pointing to the web-inf directory
04/04/2005,14:18:03,Apache Jakarta 
Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (340)]: 
HttpFilterProc [/jsp-examples/jsp2/el/basic-comparisons.jsp] is a servlet 
url - should redirect to lb
04/04/2005,14:18:03,Apache Jakarta 
Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (308)]: In 
HttpFilterProc Virtual Host redirection of s0058 : 80
04/04/2005,14:18:03,Apache Jakarta 
Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (252)]: 
HttpFilterProc started
04/04/2005,14:17:47,Apache Jakarta 
Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (429)]: 
HttpFilterProc check if [/admin/index.jsp] is pointing to the web-inf 
directory
04/04/2005,14:17:47,Apache Jakarta 
Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (420)]: 
HttpFilterProc [/admin/index.jsp] is not a servlet url
04/04/2005,14:17:47,Apache Jakarta 
Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (308)]: In 
HttpFilterProc Virtual Host redirection of s0058 : 80
04/04/2005,14:17:47,Apache Jakarta 
Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (252)]: 
HttpFilterProc started
04/04/2005,14:17:47,Apache Jakarta 
Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (429)]: 
HttpFilterProc check if [/admin/index.jsp] is pointing to the web-inf 
directory
04/04/2005,14:17:47,Apache Jakarta 
Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (420)]: 
HttpFilterProc [/admin/index.jsp] is not a servlet url
04/04/2005,14:17:47,Apache Jakarta 
Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (308)]: In 
HttpFilterProc Virtual Host redirection of s0058 : 80
04/04/2005,14:17:47,Apache Jakarta 
Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (252)]: 
HttpFilterProc started




*** SOFT RELEASE ***
My server : Windows server 2003
My Web server : IIS 6.0
My Tomcat server : 5.0.28
My JDK : JDK 1.4.2
My redirector : JK2

*** MY ACTIONS ***
**
* == 1 - Tests IIs and Tomcat without the connector :
**
open url : http://localhost  = IIs respond good
open url : http://localhost:8080/ and 
http://localhost:8080/jsp-examplessample, works good
**
* == 2 - Configuring the connector in tomcat's server.xml :
**
Server port=8005 shutdown=SHUTDOWN debug=0
 Listener className=org.apache.catalina.mbeans.ServerLifecycleListener
   debug=0/
 Listener 
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
   debug=0/

 !-- Global JNDI resources --
 GlobalNamingResources

   !-- Test entry for demonstration purposes --
   Environment name=simpleValue type=java.lang.Integer value=30/

   Resource name=UserDatabase auth=Container
 type=org.apache.catalina.UserDatabase
  description=User database that can be updated and saved
   /Resource
   ResourceParams name=UserDatabase
 parameter
   namefactory/name
   valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
 /parameter
 parameter
   namepathname/name
   valueconf/tomcat-users.xml/value
 /parameter
   /ResourceParams

 /GlobalNamingResources

   Service 

Not enough response == Isapi redirector Installation problem betweeen IIs and Tomcat

2005-04-04 Thread samuel . goblet
Thanx Reynir but I already read your doc and it works for the previous 
version of the redirector : JK1(isapi redirector 1.2.8 - AJP 12)

Me I use JK2 (isapi redirector next version - AJP 13) AND the file for the 
configuration seems to be only one :

workers2.properties

Not with : workers.properties AND uriworkermap.properties

So if I doesn't make any mistake, your doc doesn't reply to my need...

Sorry and thanx.

reynir [EMAIL PROTECTED] a écrit sur 04/04/2005 15:21:46 :

 ok sorry
 I saw it down at the bottom of your email.
 I wrote directions on how to install this kind of setup few days ago :
 
 http://www.reynir.net/java/greinar/nr/52
 
 check it out, it works fine.
 
 -reynir
 
 reynir wrote:
 
 what version of IIS / tomcat / isapi_redirector are you using ?
 -reynir
 
 [EMAIL PROTECTED] wrote:
 
  
 
 Hi,
 
 I'm looking for some help. Thanx in advance.
 
 When I make a request to IIS for JSP file, I've got an error message 
and 
 in the event log : [jk_isapi_plugin.c (420)]: HttpFilterProc 
 [/admin/index.jsp] is not a servlet url
 
 **
 The complete description follow from the windows log
 And my installation process :
 **
 04/04/2005,14:18:03,Apache Jakarta 
 Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (429)]: 
 HttpFilterProc check if [/Jakarta/isapi_redirector2.dll] is pointing 
to 
 the web-inf directory
 04/04/2005,14:18:03,Apache Jakarta 
 Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (420)]: 
 HttpFilterProc [/Jakarta/isapi_redirector2.dll] is not a servlet url
 04/04/2005,14:18:03,Apache Jakarta 
 Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (308)]: 
In 
 HttpFilterProc Virtual Host redirection of s0058 : 80
 04/04/2005,14:18:03,Apache Jakarta 
 Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (252)]: 
 HttpFilterProc started
 04/04/2005,14:18:03,Apache Jakarta 
 Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (429)]: 
 HttpFilterProc check if [/jsp-examples/jsp2/el/basic-comparisons.jsp] 
is 
 pointing to the web-inf directory
 04/04/2005,14:18:03,Apache Jakarta 
 Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (340)]: 
 HttpFilterProc [/jsp-examples/jsp2/el/basic-comparisons.jsp] is a 
servlet 
 url - should redirect to lb
 04/04/2005,14:18:03,Apache Jakarta 
 Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (308)]: 
In 
 HttpFilterProc Virtual Host redirection of s0058 : 80
 04/04/2005,14:18:03,Apache Jakarta 
 Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (252)]: 
 HttpFilterProc started
 04/04/2005,14:17:47,Apache Jakarta 
 Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (429)]: 
 HttpFilterProc check if [/admin/index.jsp] is pointing to the web-inf 
 directory
 04/04/2005,14:17:47,Apache Jakarta 
 Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (420)]: 
 HttpFilterProc [/admin/index.jsp] is not a servlet url
 04/04/2005,14:17:47,Apache Jakarta 
 Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (308)]: 
In 
 HttpFilterProc Virtual Host redirection of s0058 : 80
 04/04/2005,14:17:47,Apache Jakarta 
 Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (252)]: 
 HttpFilterProc started
 04/04/2005,14:17:47,Apache Jakarta 
 Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (429)]: 
 HttpFilterProc check if [/admin/index.jsp] is pointing to the web-inf 
 directory
 04/04/2005,14:17:47,Apache Jakarta 
 Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (420)]: 
 HttpFilterProc [/admin/index.jsp] is not a servlet url
 04/04/2005,14:17:47,Apache Jakarta 
 Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (308)]: 
In 
 HttpFilterProc Virtual Host redirection of s0058 : 80
 04/04/2005,14:17:47,Apache Jakarta 
 Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (252)]: 
 HttpFilterProc started
 
 
 
 
 *** SOFT RELEASE ***
 My server : Windows server 2003
 My Web server : IIS 6.0
 My Tomcat server : 5.0.28
 My JDK : JDK 1.4.2
 My redirector : JK2
 
 *** MY ACTIONS ***
 **
 * == 1 - Tests IIs and Tomcat without the connector :
 **
 open url : http://localhost  = IIs respond good
 open url : http://localhost:8080/ and 
 http://localhost:8080/jsp-examplessample, works good
 **
 * == 2 - Configuring the connector in tomcat's server.xml :
 **
 Server port=8005 shutdown=SHUTDOWN debug=0
  Listener 
className=org.apache.catalina.mbeans.ServerLifecycleListener
debug=0/
  Listener 
 
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
debug=0/
 
  !-- Global JNDI resources --
  

RE: == Isapi redirector Installation problem betweeen IIs and Tomcat

2005-04-04 Thread Sng Wee Jim

JK2 is officially unsupported. Use JK 1.2 instead
http://jakarta.apache.org/tomcat/connectors-doc/news/20041100.html#20041
115.1


[HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi
Redirector\2.0] serverRoot=C:\\Tomcat5\\
extensionUri=/jakarta/isapi_redirector2.dll
workersFile=C:\\Tomcat5\\conf\\workers2.properties
logLevel=DEBUG


Is your virtual directory jakarta mapped to
c:\Tomcat5\bin\win32\i386 (the place where you copied
isapi_redirector2.dll)?

- Jim


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, April 04, 2005 8:48 PM
To: tomcat-user@jakarta.apache.org
Subject: == Isapi redirector Installation problem betweeen IIs and
Tomcat

Hi,

I'm looking for some help. Thanx in advance.

When I make a request to IIS for JSP file, I've got an error message and

in the event log : [jk_isapi_plugin.c (420)]: HttpFilterProc
[/admin/index.jsp] is not a servlet url

**
The complete description follow from the windows log
And my installation process :
**
04/04/2005,14:18:03,Apache Jakarta
Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (429)]:
HttpFilterProc check if [/Jakarta/isapi_redirector2.dll] is pointing to
the web-inf directory
04/04/2005,14:18:03,Apache Jakarta
Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (420)]:
HttpFilterProc [/Jakarta/isapi_redirector2.dll] is not a servlet url
04/04/2005,14:18:03,Apache Jakarta
Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (308)]: In

HttpFilterProc Virtual Host redirection of s0058 : 80
04/04/2005,14:18:03,Apache Jakarta
Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (252)]:
HttpFilterProc started
04/04/2005,14:18:03,Apache Jakarta
Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (429)]:
HttpFilterProc check if [/jsp-examples/jsp2/el/basic-comparisons.jsp] is

pointing to the web-inf directory
04/04/2005,14:18:03,Apache Jakarta
Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (340)]:
HttpFilterProc [/jsp-examples/jsp2/el/basic-comparisons.jsp] is a
servlet
url - should redirect to lb
04/04/2005,14:18:03,Apache Jakarta
Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (308)]: In

HttpFilterProc Virtual Host redirection of s0058 : 80
04/04/2005,14:18:03,Apache Jakarta
Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (252)]:
HttpFilterProc started
04/04/2005,14:17:47,Apache Jakarta
Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (429)]:
HttpFilterProc check if [/admin/index.jsp] is pointing to the web-inf
directory
04/04/2005,14:17:47,Apache Jakarta
Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (420)]:
HttpFilterProc [/admin/index.jsp] is not a servlet url
04/04/2005,14:17:47,Apache Jakarta
Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (308)]: In

HttpFilterProc Virtual Host redirection of s0058 : 80
04/04/2005,14:17:47,Apache Jakarta
Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (252)]:
HttpFilterProc started
04/04/2005,14:17:47,Apache Jakarta
Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (429)]:
HttpFilterProc check if [/admin/index.jsp] is pointing to the web-inf
directory
04/04/2005,14:17:47,Apache Jakarta
Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (420)]:
HttpFilterProc [/admin/index.jsp] is not a servlet url
04/04/2005,14:17:47,Apache Jakarta
Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (308)]: In

HttpFilterProc Virtual Host redirection of s0058 : 80
04/04/2005,14:17:47,Apache Jakarta
Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (252)]:
HttpFilterProc started




*** SOFT RELEASE ***
My server : Windows server 2003
My Web server : IIS 6.0
My Tomcat server : 5.0.28
My JDK : JDK 1.4.2
My redirector : JK2

*** MY ACTIONS ***
**
* == 1 - Tests IIs and Tomcat without the connector :
**
open url : http://localhost  = IIs respond good
open url : http://localhost:8080/ and
http://localhost:8080/jsp-examplessample, works good
**
* == 2 - Configuring the connector in tomcat's server.xml :
**
Server port=8005 shutdown=SHUTDOWN debug=0
  Listener
className=org.apache.catalina.mbeans.ServerLifecycleListener
debug=0/
  Listener
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
debug=0/

  !-- Global JNDI resources --
  GlobalNamingResources

!-- Test entry for demonstration purposes --
Environment name=simpleValue type=java.lang.Integer
value=30/

Resource name=UserDatabase auth=Container
  type=org.apache.catalina.UserDatabase
   description=User 

Re: Not enough response == Isapi redirector Installation problem betweeen IIs and Tomcat

2005-04-04 Thread reynir
hi,
jk2 is not suported anymore.
jk is the current supported version. I suggest you go with that.
-reynir


[EMAIL PROTECTED] wrote:

Thanx Reynir but I already read your doc and it works for the previous 
version of the redirector : JK1(isapi redirector 1.2.8 - AJP 12)

Me I use JK2 (isapi redirector next version - AJP 13) AND the file for the 
configuration seems to be only one :

workers2.properties

Not with : workers.properties AND uriworkermap.properties

So if I doesn't make any mistake, your doc doesn't reply to my need...

Sorry and thanx.

reynir [EMAIL PROTECTED] a écrit sur 04/04/2005 15:21:46 :

  

ok sorry
I saw it down at the bottom of your email.
I wrote directions on how to install this kind of setup few days ago :

http://www.reynir.net/java/greinar/nr/52

check it out, it works fine.

-reynir

reynir wrote:



what version of IIS / tomcat / isapi_redirector are you using ?
-reynir

[EMAIL PROTECTED] wrote:



  

Hi,

I'm looking for some help. Thanx in advance.

When I make a request to IIS for JSP file, I've got an error message 


and 
  

in the event log : [jk_isapi_plugin.c (420)]: HttpFilterProc 
[/admin/index.jsp] is not a servlet url

**
The complete description follow from the windows log
And my installation process :
**
04/04/2005,14:18:03,Apache Jakarta 
Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (429)]: 
HttpFilterProc check if [/Jakarta/isapi_redirector2.dll] is pointing 


to 
  

the web-inf directory
04/04/2005,14:18:03,Apache Jakarta 
Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (420)]: 
HttpFilterProc [/Jakarta/isapi_redirector2.dll] is not a servlet url
04/04/2005,14:18:03,Apache Jakarta 
Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (308)]: 


In 
  

HttpFilterProc Virtual Host redirection of s0058 : 80
04/04/2005,14:18:03,Apache Jakarta 
Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (252)]: 
HttpFilterProc started
04/04/2005,14:18:03,Apache Jakarta 
Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (429)]: 
HttpFilterProc check if [/jsp-examples/jsp2/el/basic-comparisons.jsp] 


is 
  

pointing to the web-inf directory
04/04/2005,14:18:03,Apache Jakarta 
Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (340)]: 
HttpFilterProc [/jsp-examples/jsp2/el/basic-comparisons.jsp] is a 


servlet 
  

url - should redirect to lb
04/04/2005,14:18:03,Apache Jakarta 
Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (308)]: 


In 
  

HttpFilterProc Virtual Host redirection of s0058 : 80
04/04/2005,14:18:03,Apache Jakarta 
Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (252)]: 
HttpFilterProc started
04/04/2005,14:17:47,Apache Jakarta 
Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (429)]: 
HttpFilterProc check if [/admin/index.jsp] is pointing to the web-inf 
directory
04/04/2005,14:17:47,Apache Jakarta 
Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (420)]: 
HttpFilterProc [/admin/index.jsp] is not a servlet url
04/04/2005,14:17:47,Apache Jakarta 
Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (308)]: 


In 
  

HttpFilterProc Virtual Host redirection of s0058 : 80
04/04/2005,14:17:47,Apache Jakarta 
Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (252)]: 
HttpFilterProc started
04/04/2005,14:17:47,Apache Jakarta 
Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (429)]: 
HttpFilterProc check if [/admin/index.jsp] is pointing to the web-inf 
directory
04/04/2005,14:17:47,Apache Jakarta 
Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (420)]: 
HttpFilterProc [/admin/index.jsp] is not a servlet url
04/04/2005,14:17:47,Apache Jakarta 
Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (308)]: 


In 
  

HttpFilterProc Virtual Host redirection of s0058 : 80
04/04/2005,14:17:47,Apache Jakarta 
Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (252)]: 
HttpFilterProc started




*** SOFT RELEASE ***
My server : Windows server 2003
My Web server : IIS 6.0
My Tomcat server : 5.0.28
My JDK : JDK 1.4.2
My redirector : JK2

*** MY ACTIONS ***
**
* == 1 - Tests IIs and Tomcat without the connector :
**
open url : http://localhost  = IIs respond good
open url : http://localhost:8080/ and 
http://localhost:8080/jsp-examplessample, works good
**
* == 2 - Configuring the connector in tomcat's server.xml :
**
Server port=8005 shutdown=SHUTDOWN debug=0
Listener 


className=org.apache.catalina.mbeans.ServerLifecycleListener
  


RE: == Isapi redirector Installation problem betweeen IIs and Tomcat

2005-04-04 Thread samuel . goblet
Ok, sorry for the disturbation.

I'll going to test it with the JK 1.2.

Best regards.




Sng Wee Jim [EMAIL PROTECTED] 
04/04/2005 16:14
Veuillez répondre à
Tomcat Users List tomcat-user@jakarta.apache.org


A
[EMAIL PROTECTED], tomcat-user@jakarta.apache.org
cc

Objet
RE: == Isapi redirector Installation problem betweeen IIs and  Tomcat







JK2 is officially unsupported. Use JK 1.2 instead
http://jakarta.apache.org/tomcat/connectors-doc/news/20041100.html#20041
115.1


[HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi
Redirector\2.0] serverRoot=C:\\Tomcat5\\
extensionUri=/jakarta/isapi_redirector2.dll
workersFile=C:\\Tomcat5\\conf\\workers2.properties
logLevel=DEBUG


Is your virtual directory jakarta mapped to
c:\Tomcat5\bin\win32\i386 (the place where you copied
isapi_redirector2.dll)?

- Jim


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]

Sent: Monday, April 04, 2005 8:48 PM
To: tomcat-user@jakarta.apache.org
Subject: == Isapi redirector Installation problem betweeen IIs and
Tomcat

Hi,

I'm looking for some help. Thanx in advance.

When I make a request to IIS for JSP file, I've got an error message and

in the event log : [jk_isapi_plugin.c (420)]: HttpFilterProc

[/admin/index.jsp] is not a servlet url

**
The complete description follow from the windows log
And my installation process :
**
04/04/2005,14:18:03,Apache Jakarta

Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (429)]:

HttpFilterProc check if [/Jakarta/isapi_redirector2.dll] is pointing to

the web-inf directory
04/04/2005,14:18:03,Apache Jakarta

Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (420)]:

HttpFilterProc [/Jakarta/isapi_redirector2.dll] is not a servlet url
04/04/2005,14:18:03,Apache Jakarta

Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (308)]: In

HttpFilterProc Virtual Host redirection of s0058 : 80
04/04/2005,14:18:03,Apache Jakarta

Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (252)]:

HttpFilterProc started
04/04/2005,14:18:03,Apache Jakarta

Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (429)]:

HttpFilterProc check if [/jsp-examples/jsp2/el/basic-comparisons.jsp] is

pointing to the web-inf directory
04/04/2005,14:18:03,Apache Jakarta

Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (340)]:

HttpFilterProc [/jsp-examples/jsp2/el/basic-comparisons.jsp] is a
servlet

url - should redirect to lb
04/04/2005,14:18:03,Apache Jakarta

Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (308)]: In

HttpFilterProc Virtual Host redirection of s0058 : 80
04/04/2005,14:18:03,Apache Jakarta

Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (252)]:

HttpFilterProc started
04/04/2005,14:17:47,Apache Jakarta

Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (429)]:

HttpFilterProc check if [/admin/index.jsp] is pointing to the web-inf

directory
04/04/2005,14:17:47,Apache Jakarta

Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (420)]:

HttpFilterProc [/admin/index.jsp] is not a servlet url
04/04/2005,14:17:47,Apache Jakarta

Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (308)]: In

HttpFilterProc Virtual Host redirection of s0058 : 80
04/04/2005,14:17:47,Apache Jakarta

Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (252)]:

HttpFilterProc started
04/04/2005,14:17:47,Apache Jakarta

Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (429)]:

HttpFilterProc check if [/admin/index.jsp] is pointing to the web-inf

directory
04/04/2005,14:17:47,Apache Jakarta

Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (420)]:

HttpFilterProc [/admin/index.jsp] is not a servlet url
04/04/2005,14:17:47,Apache Jakarta

Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (308)]: In

HttpFilterProc Virtual Host redirection of s0058 : 80
04/04/2005,14:17:47,Apache Jakarta

Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (252)]:

HttpFilterProc started




*** SOFT RELEASE ***
My server : Windows server 2003
My Web server : IIS 6.0
My Tomcat server : 5.0.28
My JDK : JDK 1.4.2
My redirector : JK2

*** MY ACTIONS ***
**
* == 1 - Tests IIs and Tomcat without the connector :
**
open url : http://localhost  = IIs respond good
open url : http://localhost:8080/ and

http://localhost:8080/jsp-examplessample, works good
**
* == 2 - Configuring the connector in tomcat's server.xml :
**
Server port=8005 shutdown=SHUTDOWN debug=0
  Listener
className=org.apache.catalina.mbeans.ServerLifecycleListener
debug=0/
  Listener


RE: Jakarta-tomcat-connectors-1.2.10-src error

2005-04-04 Thread Phillip Qin
This is introduced by jk 1.2.10. Simply add into your httpd.conf JkShmFile
logs/mod_jk.shm shall fix this error.



-Original Message-
From: Vaneet Sharma [mailto:[EMAIL PROTECTED] 
Sent: April 4, 2005 8:54 AM
To: Tomcat Users List
Subject: Jakarta-tomcat-connectors-1.2.10-src error



I am getting error in  error_log

No JkShmFile defined in httpd.conf. LoadBalancer will not function properly!

I am using new Jk Connector.. With tomcat 5.5.7


Jakarta connector -1.2.8 is working well with 5.5.7 on my other machine...
( so configuration is fine and working well )

Something has changed in new connector 

Any suggestion

Vaneet


Vaneet Sharma
executive manager   
iDeasTank Limited   
an iwg business
dolphins' court po 388
valletta, m-malta/europe
mobile:  +356 9943 8263
skype:   CALLVANEET
fax: +356 9952 
phone:   +356 9942 

[EMAIL PROTECTED]
call me on www.skype.com - my ID is CALLVANEET

Want a signature like this? - www.plaxo.com\signature

iwg is a global e-mobile company creating, building and growing new
businesses.  iwg founders are pioneers in creating multi-billion dollar
mobile and Internet businesses in Europe, Asia and the US.

www.iWG.info
www.countryprofiler.com/iWG
www.visitmalta.com
www.mfc.com.mt


Privileged/Confidential Information may be contained in this message.  If
you are not the addressee indicated in this message (or responsible for
delivery of the message to such person), you may not copy or deliver this
message to anyone. In such case, you should destroy this message and kindly
notify the sender by reply email.

!DSPAM:42513bd2242272030513583!


Jk 1.2.10 worker limit?

2005-04-04 Thread Guernsey, Byron \(GE Consumer Industrial\)
 

I've written a script to convert my mod_jk2 configs over to mod_jk1.
The configs on jk2 have around 109 applications in them.

When I load the config in jk 1.2.10, I see only the first 72 entries
from the worker.list line.

Is there a length limit of the length of the worker.list?  My line
appears to hit the magic length value 1024.  And if so, will jk1 accept
more than 1 worker.list line or where should I look in the source to up
this line limit?

Thanks,
Byron


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



RE: Jk 1.2.10 worker limit?

2005-04-04 Thread Guernsey, Byron \(GE Consumer Industrial\)

To add to this- separating the lines into two worker.list lines *almost*
worked.

It seems that when I have a line like:

worker.list=jkstatus,app1,app2,...,app72
worker.list=app73,app74,...

The jkstatus page shows a worker with the name app72*app73 and
assigned it an ajp13 worker on localhost:8009 even though its not
configured anywhere, and then continues with app74.

Looks like I'll just have to find the buffer(s) used in parsing
worker.list and increase its capacity for now, but is anyone from the
jk1 team reading this?  It would be nice if multiple worker.list are
supported, or worker.list becomes deprecated since its really not needed
if you simply register the works as they are referenced in the worker
definitions.

Byron



-Original Message-
From: Guernsey, Byron (GE Consumer  Industrial) 
Sent: Monday, April 04, 2005 10:49 AM
To: Tomcat Users List
Subject: Jk 1.2.10 worker limit?

 

I've written a script to convert my mod_jk2 configs over to mod_jk1.
The configs on jk2 have around 109 applications in them.

When I load the config in jk 1.2.10, I see only the first 72 entries
from the worker.list line.

Is there a length limit of the length of the worker.list?  My line
appears to hit the magic length value 1024.  And if so, will jk1 accept
more than 1 worker.list line or where should I look in the source to up
this line limit?

Thanks,
Byron


-
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]



Kill running thread before tomcat stop

2005-04-04 Thread Edouard Dalla-Costa
Hello,

I am using tomcat 5.0.30 which is working well. However I encountered
a problem when I want to stop it. When I stop Tomcat, it calls the
destroy method which is supposed to kill all my running threads but it
goes to fast. So I was wondering if there was a proper way to make
tomcat waiting until all my threads are down??

Thanx by advance

Edouard

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



RE: servlet not connecting

2005-04-04 Thread Vaneet Sharma
Thankx
The connector is not loading my servlets?
I am writing down my httpd.conf and workers.properties

Httpd.conf
LoadModule jk_module modules/mod_jk.so

ifModule mod_jk.c
JkWorkersFile /usr/local/jakarta-tomcat-5.5.4/conf/workers.properties
JkLogFile /etc/httpd/logs/mod_jk.log
JkLogLevel info
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
JkLogStampFormat [%a %b %d %H:%M:%S %Y]
JkAutoAlias /usr/local/jakarta-tomcat-5.5.4/webapps 
JkShmFile /etc/httpd/logs/mod_jk.shm 
JkMount /servlet/* ajp13Worker
JkMount /*.vm ajp13Worker
JkMount /therestaurant/servlet/ControllerServlet/* ajp13Worker
/ifModule

NameVirtualHost xxx.xxx.xxx.xxx:80

VirtualHost xxx.xxx.xxx.xxx:80
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /usr/local/jakarta-tomcat-x.x.x/webapps/therestaurant
ServerName www.therestaurant.name
/VirtualHost


And below is workers.properties file
worker.ajp13Worker.port=8009
worker.ajp13Worker.host=xxx.xxx.xxx.xxx
worker.ajp13Worker.type=ajp13
worker.ajp13Worker.lbfactor=50
worker.ajp13Worker.cachesize=10
worker.ajp13Worker.cache_timeout=600


Any suggestions ?
Im giving IP address in NameVirtualHost and worker.ajp13Worker.host
directives.
Shall I provide DNS name? 

Thankx again.
Vaneet



-Original Message-
From: Phillip Qin [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 04, 2005 4:29 PM
To: 'Tomcat Users List'
Subject: RE: Jakarta-tomcat-connectors-1.2.10-src error


This is introduced by jk 1.2.10. Simply add into your httpd.conf
JkShmFile logs/mod_jk.shm shall fix this error.



-Original Message-
From: Vaneet Sharma [mailto:[EMAIL PROTECTED] 
Sent: April 4, 2005 8:54 AM
To: Tomcat Users List
Subject: Jakarta-tomcat-connectors-1.2.10-src error



I am getting error in  error_log

No JkShmFile defined in httpd.conf. LoadBalancer will not function
properly!

I am using new Jk Connector.. With tomcat 5.5.7


Jakarta connector -1.2.8 is working well with 5.5.7 on my other
machine... ( so configuration is fine and working well )

Something has changed in new connector 

Any suggestion

Vaneet




Vaneet Sharma
executive manager   
iDeasTank Limited   
an iwg business
dolphins' court po 388
valletta, m-malta/europe
mobile:  +356 9943 8263
skype:   CALLVANEET
fax: +356 9952 
phone:   +356 9942 

[EMAIL PROTECTED]
call me on www.skype.com - my ID is CALLVANEET

Want a signature like this? - www.plaxo.com\signature

iwg is a global e-mobile company creating, building and growing new businesses. 
 iwg founders are pioneers in creating multi-billion dollar mobile and Internet 
businesses in Europe, Asia and the US.

www.iWG.info
www.countryprofiler.com/iWG
www.visitmalta.com
www.mfc.com.mt


Privileged/Confidential Information may be contained in this message.  If you 
are not the addressee indicated in this message (or responsible for delivery of 
the message to such person), you may not copy or deliver this message to 
anyone. In such case, you should destroy this message and kindly notify the 
sender by reply email.

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



RE: [ANN] JK 1.2.10 Released

2005-04-04 Thread Angus Mezick
How do you configure JK status?  I can't find it in the docs.

 -Original Message-
 From: Mladen Turk [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, March 31, 2005 1:53 AM
 To: Tomcat Developers List; Tomcat Users List
 Subject: [ANN] JK 1.2.10 Released
 
 
 The Apache Jakarta Tomcat team is proud to announce the immediate
 availability of Jakarta Tomcat Connectors 1.2.10. The release
 contains a significant number of bug fixes and new features.
 
 
 Please see the
 http://jakarta.apache.org/tomcat/connectors-doc/changelog.html
 for a full list of changes.
 With release 1.2.10 the JkShmFile property has been added for Apache
 1.3.x and Apache 2.x web servers on UNIX and LINUX platforms. Load
 balancer will not work properly if this directive is not present.
 
 Please refer to the change log for the list of changes:
 http://jakarta.apache.org/tomcat/connectors-doc/changelog.html
 
 Sources can be found at:
 http://www.apache.org/dist/jakarta/tomcat-connectors/jk/source
/jk-1.2.10/

Binaries can be found at:
http://www.apache.org/dist/jakarta/tomcat-connectors/jk/binaries/
For now there is only a set of win32 binaries:
http://www.apache.org/dist/jakarta/tomcat-connectors/jk/binaries/win32/j
k-1.2.10/


If you find any bugs while using this release, please fill in the
http://issues.apache.org/bugzilla/enter_bug.cgi?product=Tomcat%205
Bug Report. When entering bug select Native:JK Component.

The Jakarta Tomcat Connectors Team.


-
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: Tomcat taking 125 seconds to launch

2005-04-04 Thread Michael Mehrle
You guys might be on to something - on my development machine it's taking 
only 25 seconds or so (identical code, tomcat version, and mysql 
installation). Question is: how do I fix a possible DNS lookup problem?

- Original Message - 
From: Andrew Miehs [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Monday, April 04, 2005 2:02 AM
Subject: Re: Tomcat taking 125 seconds to launch


hmm - sounds like a dns lookup causing a problem
Andrew
On Apr 4, 2005, at 11:03 AM, t.n.a. wrote:
Michael Mehrle wrote:
The configuration is a modified version of appfuse 1.5 (struts and 
hibernate) - so this should give you a good idea of how it is 
structured. FYI: on my development machine here at home Tomcat starts in 
28 seconds - identical project and configuration.
A fairly long time, any way you cut it. It takes about 6-9s on my Athlon 
1900+ (using JDK 1.5), and a couple of seconds more on my laptop (even 
though the laptop has a 2.8GHz P4!, but runs blackdawn jdk 1.4).
Just a wild guess, but it seemes to me that you have a 2-minute timeout 
on something, and than tomcat normally loads in 5-6s.

-
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]


Connector on Solaris 10

2005-04-04 Thread jefou
Hello, 

I have setup Solaris 10 OS on AMD64 and I am trying to build the JK connector 
for Apache2 with Tomcat5, but I am not having any success at all with neither 
the Solaris nor the GNU gcc compiler. This is the only missing piece for my 
64-bit java framework. I would hate to have Tomcat serve my static content or 
use a different OS just because of this problem.

Did anyone compile the JK connector on a i86 64-bit architecture? Does anyone 
know where I could find a compiled version of the jk_mod.so for AMD64 solaris 
or where I could get more information? 

Much appreciated, 
Jeff 





Sent via the YourWebPro EMail system at yourwebpro.com


 
   

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



Re: Tomcat taking 125 seconds to launch

2005-04-04 Thread Andrew Miehs
how about running tcpdump on the box to see what it is doing when you 
start tomcat?

Andrew
On Apr 4, 2005, at 5:46 PM, Michael Mehrle wrote:
You guys might be on to something - on my development machine it's 
taking only 25 seconds or so (identical code, tomcat version, and 
mysql installation). Question is: how do I fix a possible DNS lookup 
problem?

- Original Message - From: Andrew Miehs [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Monday, April 04, 2005 2:02 AM
Subject: Re: Tomcat taking 125 seconds to launch

hmm - sounds like a dns lookup causing a problem
Andrew
On Apr 4, 2005, at 11:03 AM, t.n.a. wrote:
Michael Mehrle wrote:
The configuration is a modified version of appfuse 1.5 (struts and 
hibernate) - so this should give you a good idea of how it is 
structured. FYI: on my development machine here at home Tomcat 
starts in 28 seconds - identical project and configuration.
A fairly long time, any way you cut it. It takes about 6-9s on my 
Athlon 1900+ (using JDK 1.5), and a couple of seconds more on my 
laptop (even though the laptop has a 2.8GHz P4!, but runs blackdawn 
jdk 1.4).
Just a wild guess, but it seemes to me that you have a 2-minute 
timeout on something, and than tomcat normally loads in 5-6s.

-
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]


Re: Tomcat taking 125 seconds to launch

2005-04-04 Thread Jason Bainbridge
On Apr 4, 2005 10:46 AM, Michael Mehrle [EMAIL PROTECTED] wrote:
 
 You guys might be on to something - on my development machine it's taking
 only 25 seconds or so (identical code, tomcat version, and mysql
 installation). Question is: how do I fix a possible DNS lookup problem?
 

Check your /etc/hosts file you should have something like:

 127.0.0.1 http://127.0.0.1 www.yourdomain.com
http://www.yourdomain.comlocalhost

I've also heard of smilar problems related to IPv6 but can't recall what 
they were.

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com


Authentication problems with tomcat clustering.

2005-04-04 Thread David Owens
I have setup load balancing and clustering between two Tomcat 5.5.7
instances and Apache 2.0.50 with mod_jk.  Almost everything works great.
I can fail back and forth between the 2 tomcat instances with no
trouble.  However, I am having problems with the form based
authentication.  I have an index.html file which redirects the user to a
secured resource.  When the user hits this file through Apache, it works
like normal, directing them to the login page.  However, when I attempt
to login I get Invalid direct reference to form login page.  When I
look in the logs, I see the user is being authenticated, and the correct
roles are being found. If I continually try logging in, and hitting the
secure page, eventually I get in.  Then, if I bounce apache, the problem
starts again. If I login in the exact same manner directly against one
of the tomcat instances, everything works, and I continue to the secure
resource.  In addition, I have found that if I stop one tomcat instance,
I can login on the first try even when going through apache.  

 

It's worth noting, once I get successfully logged in once through apache
(after many tries), I can logout/in repeatedly with no problem.  Once I
bounce apache,

the problem starts again.

 

I think something strange is happening with the login stuff when tomcat
is clustered...  Maybe I'm logging into 1 tomcat successfully, but being
load balanced over

to the other one, and the session has not been completely replicated
yet?

 

Any one else out there have this issue, or have any ideas?

 

Thanks in advance!

 

|)ave



RE: Authentication problems with tomcat clustering.

2005-04-04 Thread Vaneet Sharma
Your Apache and Tomcat configuration is exactly like me..
However today I installed connector mod_jk.. Connector 1.2.10...

And ... Though apache and tomcat are talking .. I cannot run my servlet
page.
Pls have a look below to see the configuration

Thankx
The connector is not loading my servlets?
I am writing down my httpd.conf and workers.properties

Httpd.conf
LoadModule jk_module modules/mod_jk.so

ifModule mod_jk.c
JkWorkersFile /usr/local/jakarta-tomcat-5.5.4/conf/workers.properties
JkLogFile /etc/httpd/logs/mod_jk.log
JkLogLevel info
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
JkLogStampFormat [%a %b %d %H:%M:%S %Y] JkAutoAlias
/usr/local/jakarta-tomcat-5.5.4/webapps 
JkShmFile /etc/httpd/logs/mod_jk.shm 
JkMount /servlet/* ajp13Worker
JkMount /*.vm ajp13Worker
JkMount /therestaurant/servlet/ControllerServlet/* ajp13Worker
/ifModule

NameVirtualHost xxx.xxx.xxx.xxx:80

VirtualHost xxx.xxx.xxx.xxx:80
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /usr/local/jakarta-tomcat-x.x.x/webapps/therestaurant
ServerName www.therestaurant.name
/VirtualHost


And below is workers.properties file worker.ajp13Worker.port=8009
worker.ajp13Worker.host=xxx.xxx.xxx.xxx
worker.ajp13Worker.type=ajp13
worker.ajp13Worker.lbfactor=50
worker.ajp13Worker.cachesize=10 worker.ajp13Worker.cache_timeout=600


-Original Message-
From: David Owens [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 04, 2005 6:04 PM
To: tomcat-user@jakarta.apache.org
Subject: Authentication problems with tomcat clustering.


I have setup load balancing and clustering between two Tomcat 5.5.7
instances and Apache 2.0.50 with mod_jk.  Almost everything works great.
I can fail back and forth between the 2 tomcat instances with no
trouble.  However, I am having problems with the form based
authentication.  I have an index.html file which redirects the user to a
secured resource.  When the user hits this file through Apache, it works
like normal, directing them to the login page.  However, when I attempt
to login I get Invalid direct reference to form login page.  When I
look in the logs, I see the user is being authenticated, and the correct
roles are being found. If I continually try logging in, and hitting the
secure page, eventually I get in.  Then, if I bounce apache, the problem
starts again. If I login in the exact same manner directly against one
of the tomcat instances, everything works, and I continue to the secure
resource.  In addition, I have found that if I stop one tomcat instance,
I can login on the first try even when going through apache.  

 

It's worth noting, once I get successfully logged in once through apache
(after many tries), I can logout/in repeatedly with no problem.  Once I
bounce apache,

the problem starts again.

 

I think something strange is happening with the login stuff when tomcat
is clustered...  Maybe I'm logging into 1 tomcat successfully, but being
load balanced over

to the other one, and the session has not been completely replicated
yet?

 

Any one else out there have this issue, or have any ideas?

 

Thanks in advance!

 

|)ave



Vaneet Sharma
executive manager   
iDeasTank Limited   
an iwg business
dolphins' court po 388
valletta, m-malta/europe
mobile:  +356 9943 8263
skype:   CALLVANEET
fax: +356 9952 
phone:   +356 9942 

[EMAIL PROTECTED]
call me on www.skype.com - my ID is CALLVANEET

Want a signature like this? - www.plaxo.com\signature

iwg is a global e-mobile company creating, building and growing new businesses. 
 iwg founders are pioneers in creating multi-billion dollar mobile and Internet 
businesses in Europe, Asia and the US.

www.iWG.info
www.countryprofiler.com/iWG
www.visitmalta.com
www.mfc.com.mt


Privileged/Confidential Information may be contained in this message.  If you 
are not the addressee indicated in this message (or responsible for delivery of 
the message to such person), you may not copy or deliver this message to 
anyone. In such case, you should destroy this message and kindly notify the 
sender by reply email.

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



Re: Jk 1.2.10 worker limit?

2005-04-04 Thread Mladen Turk
Guernsey, Byron (GE Consumer  Industrial) wrote:
To add to this- separating the lines into two worker.list lines *almost*
worked.
It seems that when I have a line like:
worker.list=jkstatus,app1,app2,...,app72
worker.list=app73,app74,...
This will not work. There is even a bugzilla
entry on that, but the fix didn't get into
release.
Anyhow why would you need that much workers?
Do you have that many Tomcat's instances in behind?
The purpose of worker is to represent a physical
Tomcat instance, not application or virtual host within
some Tomcat instance.
OTOH if you have that many workers, use shorter names,
like only numbers, or something like that.
Regards,
Mladen.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Kill running thread before tomcat stop

2005-04-04 Thread Lionel Farbos
On Mon, 4 Apr 2005 17:04:39 +0200
Edouard Dalla-Costa [EMAIL PROTECTED] wrote:

 Hello,
 
 I am using tomcat 5.0.30 which is working well. However I encountered
 a problem when I want to stop it. When I stop Tomcat, it calls the
 destroy method which is supposed to kill all my running threads but it
 goes to fast. So I was wondering if there was a proper way to make
 tomcat waiting until all my threads are down??
 

No there is no proper way to do this with Tomcat.
You have to hack your code.

More details here :
http://issues.apache.org/bugzilla/show_bug.cgi?id=33589
http://issues.apache.org/bugzilla/show_bug.cgi?id=33967

Regards

 Thanx by advance
 
 Edouard
 
 -
 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: Connector on Solaris 10

2005-04-04 Thread Dale, Matt

Are you saying that you can't get gcc to work? This would be why you are having 
difficulty compling JK. Get gcc to work then worry about the connector.

Ta
Matt

-Original Message-
From: jefou [mailto:[EMAIL PROTECTED]
Sent: 04 April 2005 17:00
To: Tomcat Users List
Cc: [EMAIL PROTECTED]
Subject: Connector on Solaris 10


Hello, 

I have setup Solaris 10 OS on AMD64 and I am trying to build the JK connector 
for Apache2 with Tomcat5, but I am not having any success at all with neither 
the Solaris nor the GNU gcc compiler. This is the only missing piece for my 
64-bit java framework. I would hate to have Tomcat serve my static content or 
use a different OS just because of this problem.

Did anyone compile the JK connector on a i86 64-bit architecture? Does anyone 
know where I could find a compiled version of the jk_mod.so for AMD64 solaris 
or where I could get more information? 

Much appreciated, 
Jeff 





Sent via the YourWebPro EMail system at yourwebpro.com


 
   

-
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: Connector on Solaris 10

2005-04-04 Thread jefou
gcc is working fine when compiling simple c programs.


-- Original Message --
From: Dale, Matt [EMAIL PROTECTED]
Date:  Mon, 4 Apr 2005 17:13:04 +0100


Are you saying that you can't get gcc to work? This would be why you are having 
difficulty compling JK. Get gcc to work then worry about the connector.

Ta
Matt

-Original Message-
From: jefou [mailto:[EMAIL PROTECTED]
Sent: 04 April 2005 17:00
To: Tomcat Users List
Cc: [EMAIL PROTECTED]
Subject: Connector on Solaris 10


Hello, 

I have setup Solaris 10 OS on AMD64 and I am trying to build the JK connector 
for Apache2 with Tomcat5, but I am not having any success at all with neither 
the Solaris nor the GNU gcc compiler. This is the only missing piece for my 
64-bit java framework. I would hate to have Tomcat serve my static content or 
use a different OS just because of this problem.

Did anyone compile the JK connector on a i86 64-bit architecture? Does anyone 
know where I could find a compiled version of the jk_mod.so for AMD64 solaris 
or where I could get more information? 

Much appreciated, 
Jeff 





Sent via the YourWebPro EMail system at yourwebpro.com


 
   

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


 





Sent via the YourWebPro EMail system at yourwebpro.com


 
   

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



Which version to use?

2005-04-04 Thread Bjørn T Johansen
I am running Tomcat 5.0.28 at the moment and I was just wondering if I should be
using another version, newer or even older?
I see a lot of talk about version 5.5.x, is this the version maybe I should be
considering?


Regards,

BTJ

-- 
---
Bjørn T Johansen

[EMAIL PROTECTED]
---
Someone wrote:
I understand that if you play a Windows CD backwards you hear strange Satanic 
messages
To which someone replied:
It's even worse than that; play it forwards and it installs Windows
---

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



Re: Tomcat Connection refused :-(

2005-04-04 Thread Hari Mailvaganam
Did installing Oracle or jBoss change your JVM path?

On Apr 4, 2005 5:49 AM, gaurav [EMAIL PROTECTED] wrote:
 Peter Crowther wrote:
 
 From: gaurav [mailto:[EMAIL PROTECTED]
 I am using tomcat 5.5.7 on Fedora 3 with jdk1.5.0_02
 
 
 
 
 
 
 my i have disable firewal and stopped Iptables !!
 
 
 
 OK.
 
 
 
 netstat -a | grep tomcat or 8080- nothing , zero , blank
 
 
 
 You already said that you had moved the Tomcat port from 8080, though?
 If so, I wouldn't expect anything on 8080.  And I would expect something
 on Tomcat's shutdown port as well (check your server.xml for its port
 number) - is that not starting either?
 
- Peter
 
 
 
 I dont whats the wrong here... I have just installed Jboss .its
 tunning fine ...what the problem tomcat ??
 Why o Why tomcat says connection refused is there any hidden lock or
 temp files thats is causing proble ??
 
 -
 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]



Re: Webdav Webfolder issue when container security enabled

2005-04-04 Thread Mark Thomas
Can you post you web.xml please.
Thanks,
Mark
Fernando Salazar de Paz wrote:
Deleting C:\Tomcat 4.1\webapps\webdav\index.html listings were ok
If I comment welcome-files in web.xml I think it should take welcome-files
defined In C:\Tomcat 4.1\conf\web.xml  or not ?
Now I can open PDF files with IExplore
After several restarts changing webdav\WEB-INF\web.xml
i. I could open previously uploaded PDF files (PUT) directly
from webfolders ¿?¿
ii. I can PUT files dragging them into the webfolder
iii. I can't do is open a previously uploaded file
directly from webfolder (I can only open files uploaded where auth
were disabled)
iv. I can't get the PDF file directly from IExplore. I have to direct IE
previously to http://localhost:8080/webdav
If I run IE using directly http://localhost:8080/webdav/BizObj.pdf it will
not work
But if I run IE using http://localhost:8080/webdav i get the directory
listing and after that I follow BizObj.pdf link it works
Using other file types (for example ZIP files) I have the same problem

-
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]


RE: Authentication problems with tomcat clustering.

2005-04-04 Thread David Owens
Are your servlets in the /servlet/ directory?  Or some other name?
You have only redirected /servet/*, /*.vm and
/therestaurant/servlet/ControllerServlet/*

You may want to try just /therestaurant/*

And you may want to do this

JkMount / therestaurant /* loadbalancer


On my problem:
So I did some more investigation, and have found that I am
authenticating against one tomcat, and then being balanced over to the
other tomcat.  This is presumably happening before the session is
replicated... still looking for a solution... perhaps synchronous
replication...  I am also trying to find the 1.2.10 mod_jk for my
system. (linux)



-Original Message-
From: Vaneet Sharma [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 04, 2005 10:09 AM
To: Tomcat Users List
Subject: RE: Authentication problems with tomcat clustering.

Your Apache and Tomcat configuration is exactly like me..
However today I installed connector mod_jk.. Connector 1.2.10...

And ... Though apache and tomcat are talking .. I cannot run my servlet
page.
Pls have a look below to see the configuration

Thankx
The connector is not loading my servlets?
I am writing down my httpd.conf and workers.properties

Httpd.conf
LoadModule jk_module modules/mod_jk.so

ifModule mod_jk.c
JkWorkersFile /usr/local/jakarta-tomcat-5.5.4/conf/workers.properties
JkLogFile /etc/httpd/logs/mod_jk.log
JkLogLevel info
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
JkLogStampFormat [%a %b %d %H:%M:%S %Y] JkAutoAlias
/usr/local/jakarta-tomcat-5.5.4/webapps 
JkShmFile /etc/httpd/logs/mod_jk.shm 
JkMount /servlet/* ajp13Worker
JkMount /*.vm ajp13Worker
JkMount /therestaurant/servlet/ControllerServlet/* ajp13Worker
/ifModule

NameVirtualHost xxx.xxx.xxx.xxx:80

VirtualHost xxx.xxx.xxx.xxx:80
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /usr/local/jakarta-tomcat-x.x.x/webapps/therestaurant
ServerName www.therestaurant.name
/VirtualHost


And below is workers.properties file worker.ajp13Worker.port=8009
worker.ajp13Worker.host=xxx.xxx.xxx.xxx
worker.ajp13Worker.type=ajp13
worker.ajp13Worker.lbfactor=50
worker.ajp13Worker.cachesize=10 worker.ajp13Worker.cache_timeout=600


-Original Message-
From: David Owens [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 04, 2005 6:04 PM
To: tomcat-user@jakarta.apache.org
Subject: Authentication problems with tomcat clustering.


I have setup load balancing and clustering between two Tomcat 5.5.7
instances and Apache 2.0.50 with mod_jk.  Almost everything works great.
I can fail back and forth between the 2 tomcat instances with no
trouble.  However, I am having problems with the form based
authentication.  I have an index.html file which redirects the user to a
secured resource.  When the user hits this file through Apache, it works
like normal, directing them to the login page.  However, when I attempt
to login I get Invalid direct reference to form login page.  When I
look in the logs, I see the user is being authenticated, and the correct
roles are being found. If I continually try logging in, and hitting the
secure page, eventually I get in.  Then, if I bounce apache, the problem
starts again. If I login in the exact same manner directly against one
of the tomcat instances, everything works, and I continue to the secure
resource.  In addition, I have found that if I stop one tomcat instance,
I can login on the first try even when going through apache.  

 

It's worth noting, once I get successfully logged in once through apache
(after many tries), I can logout/in repeatedly with no problem.  Once I
bounce apache,

the problem starts again.

 

I think something strange is happening with the login stuff when tomcat
is clustered...  Maybe I'm logging into 1 tomcat successfully, but being
load balanced over

to the other one, and the session has not been completely replicated
yet?

 

Any one else out there have this issue, or have any ideas?

 

Thanks in advance!

 

|)ave



Vaneet Sharma
executive manager   
iDeasTank Limited   
an iwg business
dolphins' court po 388
valletta, m-malta/europe
mobile:  +356 9943 8263
skype:   CALLVANEET
fax: +356 9952 
phone:   +356 9942 

[EMAIL PROTECTED]
call me on www.skype.com - my ID is CALLVANEET

Want a signature like this? - www.plaxo.com\signature

iwg is a global e-mobile company creating, building and growing new
businesses.  iwg founders are pioneers in creating multi-billion dollar
mobile and Internet businesses in Europe, Asia and the US.

www.iWG.info
www.countryprofiler.com/iWG
www.visitmalta.com
www.mfc.com.mt


Privileged/Confidential Information may be contained in this message.
If you are not the addressee indicated in this message (or responsible
for delivery of the message to such person), you may not copy or deliver
this message to anyone. In such case, you should destroy this message
and kindly notify the sender by reply email.

-
To unsubscribe, e-mail: 

RE: Jk 1.2.10 worker limit?

2005-04-04 Thread Guernsey, Byron \(GE Consumer Industrial\)

We have that many separate instances, and more. 

In large companies it becomes necessary to segregate your applications
because each application has the potential to affect another application
if bad code goes into production.  So JVM's must be completely separate,
otherwise you have war within your organization when someone makes a bad
change and it affects tons of applications.  Each application team has
the ability to stop/start their production servers, and having separate
tomcat instances prevents that from affecting everyone.

And while you could combine some applications where the risk is low, for
consistency and automation of various setup and maintenance tasks, it
became necessary to make application consistent- meaning they all must
have their own JVM's.

Renaming the workers could be an option, but we will only have more and
more workers added, so I'm increasing the value of LENGTH_OF_LINE to at
least 2K in our build; which should hold us over until the fix is
released.

Byron


-Original Message-
From: Mladen Turk [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 04, 2005 12:11 PM
To: Tomcat Users List
Subject: Re: Jk 1.2.10 worker limit?

Guernsey, Byron (GE Consumer  Industrial) wrote:
 To add to this- separating the lines into two worker.list lines 
 *almost* worked.
 
 It seems that when I have a line like:
 
 worker.list=jkstatus,app1,app2,...,app72
 worker.list=app73,app74,...


This will not work. There is even a bugzilla entry on that, but the fix
didn't get into release.

Anyhow why would you need that much workers?
Do you have that many Tomcat's instances in behind?
The purpose of worker is to represent a physical Tomcat instance, not
application or virtual host within some Tomcat instance.

OTOH if you have that many workers, use shorter names, like only
numbers, or something like that.


Regards,
Mladen.

-
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]



Troubleshooting Virtual Hosts with Tomcat 5 standalone mode...

2005-04-04 Thread Jeff Duska
I'm trying to setup a couple of virtual hosts using Tomcat in stand
alone mode. I'm having a hell of a time to get this working correctly.
I've tried several configs, but they all fail.
I started with the goal of having a user directory for each virtual
host. For example, for the sample domain1.com the appbase would be
/home/domain/webapps.
I setup my server.xml file to have the following host settings
   Host name=domain1.com debug=0 appBase=/home/domain/webapps
   unpackWARs=true autoDeploy=true
   xmlValidation=false xmlNamespaceAware=false
Context path= docBase=./
/host
This is pretty much cut and past from Tomcat: The Definitive Guide from
Safari Online. This did not work. I would get just get a blank webpage.
I then tried to update the host file. I didn't see why I'd need to do
that since my DNS setup at Mydomain.com was working for ssh. I add
domain1.com to the line for my localhost. I restarted Tomcat. No change.
I am able to run the system on port 80 using just the localhost default
settings. I figured I just did something wrong. I switched to this
directions http://www.ex-parrot.com/~pete/tomcat-vhost.html
This didn't worked either. When I looked at the requests in in Safari,
it showed this as a bad request. I can telnet domain1.com 80. When I try
GET index.jsp or index,html or /. Nothing happens. No error. It just
closed the connection as if everything was working fine. I tried lynx
from the server prompt. It gives a http 400 error, I think. It flashes
by so fast I'm not sure.
The catalina.out has no errors.
I have my DNS setup via mydomain.com dns management tool. I have my A
record pointing to the address. I don't think I need to do anything else.
I'm at a loss of what to do now to troubleshoot this problem. I searched
the mail list and the website nothing has jumped out at me. So, I hoping
some kind soul might give me some pointers. What kills me is I'm sure
this is something obvious I missed or not seeing.
Thanks,
Jeff Duska
[EMAIL PROTECTED]

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


Re: Compressing file uploads with TC 4.1

2005-04-04 Thread David Wall
There was no response on this before, so I thought I'd check again.  Does 
anbody know if turning compression on in the Coyote HTTP connector will use 
the standard browser/http protocol for submitting data from the browser (for 
file uploads in particular) using gzip?

Thanks,
David
- Original Message - 
From: David Wall [EMAIL PROTECTED]
To: tomcat-user@jakarta.apache.org
Sent: Tuesday, March 29, 2005 4:29 PM
Subject: Compressing file uploads with TC 4.1


As I undertand it, some browsers (which ones?) support GZIP compression. 
I'm not sure if the HTTP response needs to include anything to tell the 
browser that the server supports it or not.  Does anybody know if Tomcat 
will provide the right headers for that?

I read in the Coyote HTTP connector that I can set compression=on.  Does 
that use the browser/http protocol for negotiating whether that's allowed 
or not?  Certainly, if the modern browsers support GZIP, that would be 
valuable for file uploads and the like, but we wouldn't want it to try to 
use compression if the browser didn't support it.

Is this the way to go or do I need to do something else?

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


violates loader constraints

2005-04-04 Thread Alice Han
I have gone through the entire archive about this topic and
none of them give a final answer.
I have the web application in  Tomcat 4  working for a couple
of days, but  I'm getting a strange error, and frankly I don't
know what's causing it.   The vusecuity.jar in WEB-INF/lib  is not standard api.
Help?
Alice Han
Villanova University
Web Developer
HTTP Status 500 - Internal Server Error

type Exception report
message Internal Server Error
description The server encountered an internal error (Internal Server Error) 
that
prevented it from fulfilling this request.
exception
javax.servlet.ServletException: Filter execution threw an exception
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2416)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:577)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:466)
at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:585)
at java.lang.Thread.run(Thread.java:536)
root cause
java.lang.LinkageError: Class edu/villanova/vusecurity/client/SecurityBean 
violates loader
constraints
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:502)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
at
org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1680)
at 
org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:968)
at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1410)
at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1289)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
at
edu.villanova.vusecurity.client.VUSecurityManager.hardAuthenticate(VUSecurityManager.java:195)
at 
edu.villanova.vusecurity.client.VUSecurityFilter.doFilter(VUSecurityFilter.java:74)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 

Re: Troubleshooting Virtual Hosts with Tomcat 5 standalone mode...

2005-04-04 Thread Hein Behrens
This is in my server.xml the directory is webapps/by-m.

It works also on a linux box. It is inside the engine.

 Host name=by-m debug=0 appBase=webapps unpackWARs=true
autoDeploy=true xmlValidation=false xmlNamespaceAware=false
Context path= docBase=by-m debug=5 reloadable=true
/Context
/Host
- Original Message - 
From: Jeff Duska [EMAIL PROTECTED]
To: tomcat-user@jakarta.apache.org
Sent: Monday, April 04, 2005 7:45 PM
Subject: Troubleshooting Virtual Hosts with Tomcat 5 standalone mode...


 I'm trying to setup a couple of virtual hosts using Tomcat in stand
 alone mode. I'm having a hell of a time to get this working correctly.
 I've tried several configs, but they all fail.

 I started with the goal of having a user directory for each virtual
 host. For example, for the sample domain1.com the appbase would be
 /home/domain/webapps.

 I setup my server.xml file to have the following host settings

 Host name=domain1.com debug=0 appBase=/home/domain/webapps
 unpackWARs=true autoDeploy=true
 xmlValidation=false xmlNamespaceAware=false
 Context path= docBase=./
 /host

 This is pretty much cut and past from Tomcat: The Definitive Guide from
 Safari Online. This did not work. I would get just get a blank webpage.

 I then tried to update the host file. I didn't see why I'd need to do
 that since my DNS setup at Mydomain.com was working for ssh. I add
 domain1.com to the line for my localhost. I restarted Tomcat. No change.

 I am able to run the system on port 80 using just the localhost default
 settings. I figured I just did something wrong. I switched to this
 directions http://www.ex-parrot.com/~pete/tomcat-vhost.html

 This didn't worked either. When I looked at the requests in in Safari,
 it showed this as a bad request. I can telnet domain1.com 80. When I try
 GET index.jsp or index,html or /. Nothing happens. No error. It just
 closed the connection as if everything was working fine. I tried lynx
 from the server prompt. It gives a http 400 error, I think. It flashes
 by so fast I'm not sure.

 The catalina.out has no errors.

 I have my DNS setup via mydomain.com dns management tool. I have my A
 record pointing to the address. I don't think I need to do anything else.

 I'm at a loss of what to do now to troubleshoot this problem. I searched
 the mail list and the website nothing has jumped out at me. So, I hoping
 some kind soul might give me some pointers. What kills me is I'm sure
 this is something obvious I missed or not seeing.

 Thanks,

 Jeff Duska
 [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]



re: Tomcat-juli in 5.5.9

2005-04-04 Thread Brent Sims
For the record, I found the jar in the bin folder -- it was my eyes
after all.
 
Still cannot get it to work but that's another story and one I haven't
had time for
 
Brent Sims
Systems Analyst 2
KC Human Services
-
Road rage, air rage.  Why should I be forced to divide my rage into
separate categories?  To me, it's just one big, all-round, everyday
rage.  I don't have time for fine distinctions.  I'm too busy screaming
at people.
 - George Carlin


non-root on 80

2005-04-04 Thread NetSQL
apache drops to non root after bind to 80.
How can this be done w/ tc 5.5?
.V
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: non-root on 80

2005-04-04 Thread David Smith
Look at jsvc in the commons-daemon project on jakarta.apache.org/commons
--David
NetSQL wrote:
apache drops to non root after bind to 80.
How can this be done w/ tc 5.5?
.V
-
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]


Setting up to use j_security_check??

2005-04-04 Thread J Malcolm
I'm attempting to move from basic authentication to form-based.  Got
everything configured and the forms created, etc.  The login form comes up
as expected.  But when I submit, it says it can't find url j_security_check.

Am I supposed to do something to configure/enable that url in tomcat?  I've
seen docs that say to use action=j_security_check and some that say to
include a slash: action=/j_security_check.  But neither works for me.

What am I missing?

Thx

Jerry 


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



RE: Setting up to use j_security_check??

2005-04-04 Thread David Owens
Have you defined the following in your web.xml?

security-constraint
login-config
security-role


|)ave

-Original Message-
From: J Malcolm [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 04, 2005 3:03 PM
To: 'Tomcat Users List'
Subject: Setting up to use j_security_check??

I'm attempting to move from basic authentication to form-based.  Got
everything configured and the forms created, etc.  The login form comes
up
as expected.  But when I submit, it says it can't find url
j_security_check.

Am I supposed to do something to configure/enable that url in tomcat?
I've
seen docs that say to use action=j_security_check and some that say to
include a slash: action=/j_security_check.  But neither works for me.

What am I missing?

Thx

Jerry 


-
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]



Cannot modify Tomcat Contexts installed at setup

2005-04-04 Thread helena rato
I use Tomcat 5.0.27 with apache Apache 2.0.40 and JK2.

Just for the purpose of a test, I replace the existing
index.jsp file in $CATALINA_HOME/webapps/ROOT/ with
another index.jsp file, with following contents:

html
h1Hello World/h1
/html

I re-boot the server, and start Tomcat and Apache.

I browse to my URL using www.myurl.com:8080.

I still get the 'old' index.jsp!

The same happens with any of the Contexts installed
during setup, like 'jsp-examples' context (for
example, modifying /jsp-examples/num/numguess.jsp
seems to have no impact at all, even after rebooting).

On the other hand, with Tomcat Contexts created by me,
the behavior is normal.

I'm sure I am missing something, and would appreciate
any clue.

Thank-you in advance

Helena




__ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/ 

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



Re: non-root on 80

2005-04-04 Thread NetSQL
I read that it has a stop method... but how do I get it to run at port 80 ?
.V
David Smith wrote:
Look at jsvc in the commons-daemon project on jakarta.apache.org/commons
--David
NetSQL wrote:
apache drops to non root after bind to 80.
How can this be done w/ tc 5.5?
.V
-
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: Setting up to use j_security_check??

2005-04-04 Thread J Malcolm
Hmmm, I have the first two, but not the security-role.  Not sure why that
wasn't in this particular webapp.  It's been working w/ basic auth, though.
Is that the magic key that's missing in form auth?  Is that a tag that's
only required with form auth and not required for basic auth?  I'll add it
and try again.  

Thanks.

Jerry

-Original Message-
From: David Owens [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 04, 2005 4:06 PM
To: Tomcat Users List
Subject: RE: Setting up to use j_security_check??

Have you defined the following in your web.xml?

security-constraint
login-config
security-role


|)ave

-Original Message-
From: J Malcolm [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 04, 2005 3:03 PM
To: 'Tomcat Users List'
Subject: Setting up to use j_security_check??

I'm attempting to move from basic authentication to form-based.  Got
everything configured and the forms created, etc.  The login form comes
up
as expected.  But when I submit, it says it can't find url
j_security_check.

Am I supposed to do something to configure/enable that url in tomcat?
I've
seen docs that say to use action=j_security_check and some that say to
include a slash: action=/j_security_check.  But neither works for me.

What am I missing?

Thx

Jerry 


-
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]



XML validation fails on Tomcat

2005-04-04 Thread N G
Hi,

I can't understand why Tomcat goes nuts when I enable XML validation
in my server.xml file as follows:
Host name=localhost appBase=webapps
   unpackWARs=true autoDeploy=true
   xmlValidation=true xmlNamespaceAware=false

When I start Tomcat, it gives me this: (Any ideas?)
-
Apr 4, 2005 5:59:25 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Apr 4, 2005 5:59:25 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 766 ms
Apr 4, 2005 5:59:25 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Apr 4, 2005 5:59:25 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.7
Apr 4, 2005 5:59:25 PM org.apache.catalina.core.StandardHost start
INFO: XML validation enabled
Apr 4, 2005 5:59:26 PM org.apache.tomcat.util.digester.Digester error
SEVERE: Parse Error at line 5 column 19: cvc-elt.1: Cannot find the
declaration of element 'web-app'.
org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration
of element 'web-app'.
at 
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:
236)
at 
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:172)
at 
com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:382)
at 
com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:316)
at 
com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:1944
)
at 
com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startElement(XMLSchemaValidator.java:705)
at 
com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.startElement(XMLDTDValidator.java:798)
at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentSc
annerImpl.java:878)
at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRootElementHook(XMLDocum
entScannerImpl.java:1157)
at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XML
DocumentFragmentScannerImpl.java:1794)
at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScanne
rImpl.java:368)
at 
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834)
at 
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
at 
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)
at 
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242)
at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1561)
at 
org.apache.catalina.startup.ContextConfig.processDefaultWebConfig(ContextConfig.java:621)
at 
org.apache.catalina.startup.ContextConfig.defaultWebConfig(ContextConfig.java:573)
at 
org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:958)
at 
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:249)
at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4020)
at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
at 
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:590)
at 
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:535)
at 
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:470)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1106)





Thanks,
NG

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



Re: non-root on 80

2005-04-04 Thread John Lianogou
I had to set up a solution using IP tables on my redhat box. First some 
background as to why I solved it this way:

You can't run anything directly on port 80 without that process being 
executed as the root user... which -- for a variety of reasons I'm sure 
you needn't hear me go into -- is a Really Bad Idea.  ;-)

What you want to do in this case is to reroute port 80 traffic to a 
port that tomcat can bind to when executed as a normal user.

Here's what I did to accomplish this (hopefully you've got iptables on 
your box, as well... tho the path of this script may be different on yr 
system... so check into both matters if this doesn't work for you):

/sbin/iptables -t nat -I PREROUTING -p tcp --dport 80 -j REDIRECT 
--to-port 8080

You'll need root permissions to do this, tho.

Hope that helps,
jL
On Apr 4, 2005, at 5:58 PM, NetSQL wrote:
I read that it has a stop method... but how do I get it to run at port 
80 ?

.V
David Smith wrote:
Look at jsvc in the commons-daemon project on 
jakarta.apache.org/commons
--David
NetSQL wrote:
apache drops to non root after bind to 80.
How can this be done w/ tc 5.5?
.V
-
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]


Re: non-root on 80

2005-04-04 Thread Jeff Duska
I'm using the jsvc in the commons-daemon with a Tomcat user. Other than 
not having to deal with the jsvc, is there a reason to pick this over jsvc?

Thanks,
Jeff Duska
John Lianogou wrote:
I had to set up a solution using IP tables on my redhat box. First some 
background as to why I solved it this way:

You can't run anything directly on port 80 without that process being 
executed as the root user... which -- for a variety of reasons I'm sure 
you needn't hear me go into -- is a Really Bad Idea.  ;-)

What you want to do in this case is to reroute port 80 traffic to a port 
that tomcat can bind to when executed as a normal user.

Here's what I did to accomplish this (hopefully you've got iptables on 
your box, as well... tho the path of this script may be different on yr 
system... so check into both matters if this doesn't work for you):



/sbin/iptables -t nat -I PREROUTING -p tcp --dport 80 -j REDIRECT 
--to-port 8080

You'll need root permissions to do this, tho.

Hope that helps,
jL
On Apr 4, 2005, at 5:58 PM, NetSQL wrote:
I read that it has a stop method... but how do I get it to run at port 
80 ?

.V
David Smith wrote:
Look at jsvc in the commons-daemon project on jakarta.apache.org/commons
--David
NetSQL wrote:
apache drops to non root after bind to 80.
How can this be done w/ tc 5.5?
.V
-
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]


Re: Cannot modify Tomcat Contexts installed at setup

2005-04-04 Thread sven morales
Hi,
   Try clearing the directory tomcat5/work/* and
restart tomcat.  This should clear up caches.

aka_sergio

--- helena rato [EMAIL PROTECTED] wrote:
 I use Tomcat 5.0.27 with apache Apache 2.0.40 and
 JK2.
 
 Just for the purpose of a test, I replace the
 existing
 index.jsp file in $CATALINA_HOME/webapps/ROOT/ with
 another index.jsp file, with following contents:
 
 html
 h1Hello World/h1
 /html
 
 I re-boot the server, and start Tomcat and Apache.
 
 I browse to my URL using www.myurl.com:8080.
 
 I still get the 'old' index.jsp!
 
 The same happens with any of the Contexts installed
 during setup, like 'jsp-examples' context (for
 example, modifying /jsp-examples/num/numguess.jsp
 seems to have no impact at all, even after
 rebooting).
 
 On the other hand, with Tomcat Contexts created by
 me,
 the behavior is normal.
 
 I'm sure I am missing something, and would
 appreciate
 any clue.
 
 Thank-you in advance
 
 Helena
 
 
 
   
 __ 
 Do you Yahoo!? 
 Yahoo! Small Business - Try our new resources site!
 http://smallbusiness.yahoo.com/resources/ 
 

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

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: XML validation fails on Tomcat

2005-04-04 Thread sven morales
Hi,
   The server.xml has no DTD so it can not be xml
validated. I dont recall if that attribute is even
valid by setting it to true.

aka_sergio
--- N G [EMAIL PROTECTED] wrote:

 Hi,
 
 I can't understand why Tomcat goes nuts when I
 enable XML validation
 in my server.xml file as follows:
 Host name=localhost appBase=webapps
unpackWARs=true autoDeploy=true
xmlValidation=true
 xmlNamespaceAware=false
 
 When I start Tomcat, it gives me this: (Any ideas?)
 -
 Apr 4, 2005 5:59:25 PM
 org.apache.coyote.http11.Http11Protocol init
 INFO: Initializing Coyote HTTP/1.1 on http-8080
 Apr 4, 2005 5:59:25 PM
 org.apache.catalina.startup.Catalina load
 INFO: Initialization processed in 766 ms
 Apr 4, 2005 5:59:25 PM
 org.apache.catalina.core.StandardService start
 INFO: Starting service Catalina
 Apr 4, 2005 5:59:25 PM
 org.apache.catalina.core.StandardEngine start
 INFO: Starting Servlet Engine: Apache Tomcat/5.5.7
 Apr 4, 2005 5:59:25 PM
 org.apache.catalina.core.StandardHost start
 INFO: XML validation enabled
 Apr 4, 2005 5:59:26 PM
 org.apache.tomcat.util.digester.Digester error
 SEVERE: Parse Error at line 5 column 19: cvc-elt.1:
 Cannot find the
 declaration of element 'web-app'.
 org.xml.sax.SAXParseException: cvc-elt.1: Cannot
 find the declaration
 of element 'web-app'.
 at

com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:
 236)
 at

com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:172)
 at

com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:382)
 at

com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:316)
 at

com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:1944
 )
 at

com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startElement(XMLSchemaValidator.java:705)
 at

com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.startElement(XMLDTDValidator.java:798)
 at

com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentSc
 annerImpl.java:878)
 at

com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRootElementHook(XMLDocum
 entScannerImpl.java:1157)
 at

com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XML
 DocumentFragmentScannerImpl.java:1794)
 at

com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScanne
 rImpl.java:368)
 at

com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834)
 at

com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
 at

com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)
 at

com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242)
 at

org.apache.tomcat.util.digester.Digester.parse(Digester.java:1561)
 at

org.apache.catalina.startup.ContextConfig.processDefaultWebConfig(ContextConfig.java:621)
 at

org.apache.catalina.startup.ContextConfig.defaultWebConfig(ContextConfig.java:573)
 at

org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:958)
 at

org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:249)
 at

org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
 at

org.apache.catalina.core.StandardContext.start(StandardContext.java:4020)
 at

org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
 at

org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
 at

org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
 at

org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:590)
 at

org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:535)
 at

org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:470)
 at

org.apache.catalina.startup.HostConfig.start(HostConfig.java:1106)
 
 
 
 
 
 Thanks,
 NG
 

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




__ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/ 

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



Re: axis tomcat5.5

2005-04-04 Thread QM
On Mon, Apr 04, 2005 at 05:55:31AM -0400, kalin mintchev wrote:
: i was reading the axis documentation on the apache site and it says there
: in the introduction section that If you are installing Tomcat, get the
: latest 4.1.x
: i was wondering if this hasn't been updated lately or axis 1.2 RC3 and
: tomcat 5.* are not usable for production...

Sounds like a lack of doc update.  I use Axis with Tomcat 5.0 without a
problem... and 5.5 implements the same servlet spec as 5.0.  

In theory, then, Tomcat 5.5 and Axis 1.2 should be a happy pair.

-QM

-- 

software   -- http://www.brandxdev.net/
tech news  -- http://www.RoarNetworX.com/
code scan  -- http://www.JxRef.org/

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



Re: Connector on Solaris 10

2005-04-04 Thread QM
On Mon, Apr 04, 2005 at 10:59:52AM -0500, jefou wrote:
: I have setup Solaris 10 OS on AMD64 and I am trying to build the JK connector 
for Apache2 with Tomcat5, but I am not having any success at all with neither 
the Solaris nor the GNU gcc compiler.

What errors do you see?

-QM

-- 

software   -- http://www.brandxdev.net/
tech news  -- http://www.RoarNetworX.com/
code scan  -- http://www.JxRef.org/

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



Re: Troubleshooting Virtual Hosts with Tomcat 5 standalone mode...

2005-04-04 Thread Hassan Schroeder
Jeff Duska wrote:
I'm trying to setup a couple of virtual hosts using Tomcat in stand
alone mode.

I started with the goal of having a user directory for each virtual
host. For example, for the sample domain1.com the appbase would be
/home/domain/webapps.
I setup my server.xml file to have the following host settings
   Host name=domain1.com debug=0 appBase=/home/domain/webapps
   unpackWARs=true autoDeploy=true
   xmlValidation=false xmlNamespaceAware=false
Context path= docBase=./
/host
OK, don't do that :-)
Don't put the Context elements in server.xml. Put your Host elements
there, e.g.
   Host name=oahu  appBase=/www/oahu/Host
   Host name=maui  appBase=/www/maui/Host   
   Host name=kauai appBase=/www/kauai/Host  
Then (assuming you're using the default Engine name) make directories
   $CATALINA_HOME/conf/Catalina/oahu
   $CATALINA_HOME/conf/Catalina/maui
   $CATALINA_HOME/conf/Catalina/kauai
In each of those put your Context files, as in
   $CATALINA_HOME/conf/Catalina/oahu/ROOT.xml
   $CATALINA_HOME/conf/Catalina/oahu/manager.xml
   !-- the above if you want the manager app available --
   $CATALINA_HOME/conf/Catalina/oahu/cowabunga.xml
   !-- etc... --
which will look (minimally!) like
   Context docBase=/www/oahu/ROOT
!-- define Resources, etc. --   
   /Context 
That's it. Restart tomcat. Done. See, wasn't that easy? :-)
HTH!
--
Hassan Schroeder - [EMAIL PROTECTED]
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com
  dream.  code.

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


mod_jk path problem

2005-04-04 Thread Christian Rudh
Hi

Apache2 + mod_jk + Tomcat

Is it possible to get http://domain/path/* point to /* on the tomcat
worker with mod_jk? It always goes to /path/* on the worker no matter
what I try.

So when I try to call XServlet (/XServlet in the Tomcat worker) by
http://domain/path/XServlet, Tomcat responds that /path/XServlet isn't
available.


Thanks,
Christian


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



Re: Tomcat 3 and Tomcat 5 on JDK 1.3 and JDK 1.5 respectively

2005-04-04 Thread Bill Barker
I routinely run TC 3.3.2 on JDK 1.4.x (and even occationally on 1.5.x :) 
without any problems.  I haven't used TC 3.2.3 in very many years, so I 
don't know.  I'd guess that it would run ok, except possibly if you are 
using SSL.

Fredrik Liden [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]
Does anyone know if this configuration is possible on one computer?

The reason for the two different JDKs is that I'm guessing that Tomcat
3.23 isn't compatible with jdk 1.5 or even 1.4 or is it? So I guess the
question is if it's in Catalinas startup config files it's possible to
specify different JAVA_HOMEs.

Anyone have any experience with running different versions like this?
Any input would be appreciated.

Fredrik 




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



Fwd: non-root on 80

2005-04-04 Thread John Lianogou
Hey Jeff,
Using jsvc is not at all mutually exclusive to the solution i offered.  
 :-)

AFAIK, there is no way to make tomcat bind to 80 w/o running it as the 
root user... if anyone else has experience to the contrary, however, 
I'd be most pleased to be wrong on this one.


jL
On Apr 4, 2005, at 7:20 PM, Jeff Duska wrote:
I'm using the jsvc in the commons-daemon with a Tomcat user. Other 
than not having to deal with the jsvc, is there a reason to pick this 
over jsvc?

Thanks,
Jeff Duska
John Lianogou wrote:
I had to set up a solution using IP tables on my redhat box. First 
some background as to why I solved it this way:
You can't run anything directly on port 80 without that process being 
executed as the root user... which -- for a variety of reasons I'm 
sure you needn't hear me go into -- is a Really Bad Idea.  ;-)
What you want to do in this case is to reroute port 80 traffic to a 
port that tomcat can bind to when executed as a normal user.
Here's what I did to accomplish this (hopefully you've got iptables 
on your box, as well... tho the path of this script may be different 
on yr system... so check into both matters if this doesn't work for 
you):


/sbin/iptables -t nat -I PREROUTING -p tcp --dport 80 -j REDIRECT 
--to-port 8080
You'll need root permissions to do this, tho.
Hope that helps,
jL
On Apr 4, 2005, at 5:58 PM, NetSQL wrote:
I read that it has a stop method... but how do I get it to run at 
port 80 ?

.V
David Smith wrote:
Look at jsvc in the commons-daemon project on 
jakarta.apache.org/commons
--David
NetSQL wrote:

apache drops to non root after bind to 80.
How can this be done w/ tc 5.5?
.V

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


Re: tomcat ssl configuration

2005-04-04 Thread James T. Studebaker
Did you create the keystore while logged on as the root user?


Thank you
James T. Studebaker

- Original Message - 
From: Mustafa BLKBA [EMAIL PROTECTED]
To: tomcat-user@jakarta.apache.org
Sent: Monday, April 04, 2005 8:24 AM
Subject: tomcat ssl configuration


I use tomcat 5.0.28 on linux, my j2se version is 1.4.02. I did all the steps
in the document which is on this link but it's not working. Is there anybody
who can help me with this issue?



Thanx,

Mustafa.





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



RE: non-root on 80

2005-04-04 Thread George Sexton
In Linux, the workaround is to run on port 8080, and then write an IPTables
rule to forward port 80 to 8080.

George Sexton
MH Software, Inc.
http://www.mhsoftware.com/
Voice: 303 438 9585
  

 -Original Message-
 From: news [mailto:[EMAIL PROTECTED] On Behalf Of NetSQL
 Sent: Monday, April 04, 2005 2:15 PM
 To: tomcat-user@jakarta.apache.org
 Subject: non-root on 80
 
 apache drops to non root after bind to 80.
 How can this be done w/ tc 5.5?
 .V
 
 
 -
 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]



transport guarantee in server.xml?

2005-04-04 Thread Ossie Guy
In our server.xml (Tomcat 4.1), we have a context that is used to serve up 
static content (PDFs) that are collected in a directory on our server:

Context path=/pdf appBase= docBase=/path/to/pdfs 
reloadable=true/Context

There is no war or other webapp involved here, just the folder with the 
static files, and thus no web.xml either... (Don't worry, we are making much 
use of the servlet API elsewhere on the same server ;)

Now, we want to serve these files up through SSL - we have the SSL Connector 
configured correctly, everything's just great, BUT a savvy user can still 
get the files through non-SSL by changing the URL. So - is there any way to 
*enforce* that this context is accessed only through SSL?

I have seen documentation suggesting something like the following:
user-data-constraint transport-guarantee=CONFIDENTIAL/
But this goes in web.xml, and again, we have none here - do we need to make 
one just to enforce this constraint? Or is there some way to enforce this 
from within the server.xml file itself, perhaps within the above context 
section?

Any help would be appreciated.
Cheers,
Ossie
_
Express yourself instantly with MSN Messenger! Download today - it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

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


help with ssl certificate installation

2005-04-04 Thread Dave Salmon
Tomcat users,

I have received three .crt files from a certificate authority. From
reading 
several sources it seemed like the proper thing to do was

keytool -import -file GTECyberTrustGlobalRoot.crt -alias root
-trustcacerts 
-keystore mykey.jks 

keytool -import -file ComodoSecurityServicesCA.crt -alias comodo 
-trustcacerts -keystore mykey.jks -storepass 

keytool -import -file freerangeinc_virtual_vps-host_net.crt 
-alias tomcat -trustcacerts -keystore mykey.jks

This created the file mykey.jks which when viewed with 

keytool -list -file mykey.jks

seems like it has everything in it.

However when I point my server.xml file at mykey.jks I get an error
(below)

Could someone please tell me what I am missing here?

Thanks.

2005-04-04 21:39:52,741 ERROR
[org.apache.tomcat.util.net.PoolTcpEndpoint] 
Endpoint [SSL: ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=8443]]

ignored exception: java.net.SocketException: SSL handshake
errorjavax.net.ssl.SSLException: No available certificate or key
corresponds 
to the SSL cipher suites which are enabled.
java.net.SocketException: SSL handshake errorjavax.net.ssl.SSLException:

No available certificate or key corresponds to the SSL cipher suites
which are enabled.
at
org.apache.tomcat.util.net.jsse.JSSESocketFactory.acceptSocket(JSSESocke
tFactory.java:113)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.
java:368)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:54
9)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:683)
at java.lang.Thread.run(Thread.java:595)


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



Accessing the context path within a Servlet/JSP

2005-04-04 Thread J Malcolm
I have looked at the JavaDocs, but I can't find a method that will give me
the context path for a web app:

(i.e. Context path=/abcxyz docBase=...)  All I want is the /abcxyz
string precisely as defined in the context tag.

I have tried getPath() from the servletContext, but it returns part of the
host name as well.  That doesn't make sense either, but that's the way it's
working for me... It returns jndi: for the protocol (???) Am I doing
something else wrong here?

I found the getServletContextName() method.  But that is an optional
parameter on the context tag, and I can't risk using something that might
not be defined.

I'm currently parsing up the URL object returned from
servletContext.getResource(/);  But this is a hack.  Surely there is a
better way to get the root URL context for a web app... (?)

Suggestions??  (BTW... Tomcat 5.5.7)

Thanks.

Jerry




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



Re: Accessing the context path within a Servlet/JSP

2005-04-04 Thread Frank W. Zammetti
See HttpServletRequest.getContextPath()
J Malcolm wrote:
I have looked at the JavaDocs, but I can't find a method that will give me
the context path for a web app:
(i.e. Context path=/abcxyz docBase=...)  All I want is the /abcxyz
string precisely as defined in the context tag.
I have tried getPath() from the servletContext, but it returns part of the
host name as well.  That doesn't make sense either, but that's the way it's
working for me... It returns jndi: for the protocol (???) Am I doing
something else wrong here?
I found the getServletContextName() method.  But that is an optional
parameter on the context tag, and I can't risk using something that might
not be defined.
I'm currently parsing up the URL object returned from
servletContext.getResource(/);  But this is a hack.  Surely there is a
better way to get the root URL context for a web app... (?)
Suggestions??  (BTW... Tomcat 5.5.7)
Thanks.
Jerry

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


--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]