Tomcat v Resin

2001-08-29 Thread Vinay Menon

Hello,
Has anyone tried benchmarking Tomcat vs Resin as a web container? =
Any views/thoughts/suggestions?

Many thanks

Vinay




Re: Package nesting levels restriction???

2001-08-07 Thread Vinay Menon

No!
That is what I thought as well. But the .class and the .java files from
jasper ARE being created!

Vinay
- Original Message -
From: Michael Wentzel [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, August 06, 2001 12:15 PM
Subject: RE: Package nesting levels restriction???


  Hello,
  Has anyone faced any package nesting levels limit with
  Tomcat? I am
  running Tomcat 3.2.2 and am having problems when I exceed 7
  folders. The
  excpetion I get is
 
  Error: 500
  Location:
  /frfr-commerce/uk/co/isesolutions/apps/commerce/frfr/fulfilmen
  t/ui/thisismys
  hoppingcart.jsp
  Internal Servlet Error:
 
  org.apache.jasper.JasperException: Unable to compile class
  for JSPerror:
  Can't write:
  D:\Applications\JBoss\tomcat\work\localhost_8080%2Ffrfr-commer
  ce\uk\co\iseso
  lutions\apps\commerce\frfr\fulfilment\ui\_0002fuk_0002fco_0002
  fisesolutions_
  0002fapps_0002fcommerce_0002ffrfr_0002ffulfilment_0002fui_0002
  fthisismyshopp
  ingcart_0002ejspthisismyshoppingcart_jsp_0.class
  1 error


 This seems to me like a filename length limit in your OS.


_0002fuk_0002fco_0002fisesolutions_0002fapps_0002fcommerce_0002ffrfr_0002ffu

lfilment_0002fui_0002fthisismyshoppingcart_0002ejspthisismyshoppingcart_jsp_
 0.class

 Seems like a VERY long name.  I believe if you tried shorting each
 directory name to 1 or 2 chars and the same with the jsp name then
 try it again I bet it would work.



 ---
 Michael Wentzel
 Software Developer
 Software As We Think - http://www.aswethink.com




Re: Package nesting levels restriction???

2001-08-07 Thread Vinay Menon

Hello,
Yes. Checked the file. It looks good. The .class file looks good as
well. Which is surprising why it displays a can't write file error! After
writing it! I am running Tomcat 3.2.2 on Win2kProf, using JDK1.3.1 and have
tried this without Apache [and with Apache 1.3.20].
Looks like one for the code doctor! I'm probably just going to look at
the tomcat source code now.

Thanks!

Vinay

- Original Message -
From: Michael Wentzel [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, August 07, 2001 1:11 PM
Subject: RE: Package nesting levels restriction???


  No!
  That is what I thought as well. But the .class and the
  .java files from
  jasper ARE being created!

 Have you gone through the java code generated and looked
 for any suspicious code?

 I tried creating a file located at /admin/1/2/3/4/5/6/7/index.jsp and the
 page loaded correctly.

 What version of Tomcat, OS, are you using Apache or IIS, what JVM...?


 ---
 Michael Wentzel
 Software Developer
 Software As We Think - http://www.aswethink.com




Package nesting levels restriction???

2001-08-06 Thread Vinay Menon

Hello,
Has anyone faced any package nesting levels limit with Tomcat? I am
running Tomcat 3.2.2 and am having problems when I exceed 7 folders. The
excpetion I get is

Error: 500
Location:
/frfr-commerce/uk/co/isesolutions/apps/commerce/frfr/fulfilment/ui/thisismys
hoppingcart.jsp
Internal Servlet Error:

org.apache.jasper.JasperException: Unable to compile class for JSPerror:
Can't write:
D:\Applications\JBoss\tomcat\work\localhost_8080%2Ffrfr-commerce\uk\co\iseso
lutions\apps\commerce\frfr\fulfilment\ui\_0002fuk_0002fco_0002fisesolutions_
0002fapps_0002fcommerce_0002ffrfr_0002ffulfilment_0002fui_0002fthisismyshopp
ingcart_0002ejspthisismyshoppingcart_jsp_0.class
1 error

at org.apache.jasper.compiler.Compiler.compile(Compiler.java:282)
at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:612)
at
org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:542)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
rvlet.java:258)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:268)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:213)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Thread.java:484)

If I move the code to uk/co/isesolutions/apps/commerce/frfr/ui/ it works
just fine! Any clues as to what is happening?

Many thanks

Vinay






Re: Tomcat + Apache on NT

2001-07-08 Thread Vinay Menon



why are u using mod_jserv?

  - Original Message - 
  From: 
  Gregory Guthrie 
  
  To: [EMAIL PROTECTED] 
  
  Sent: Sunday, July 08, 2001 7:17 PM
  Subject: Tomcat + Apache on NT
  It is not clear (to me) that I have to manually start both 
  Tomcat andApache servers on NT (Win2K Pro). I expected Apache to start 
  Tomcatas/if needed, but that fails, but everything works fine for 
  Tomcatstandalone, or if it is manually started, and then Apache just 
  connectsto it.Is this correct? Is this documented somewhere? The 
  closest thing I foundwas in the Tomcat-Apache HowTo setup where it says: 
   "This step sets various JServ internal parameters, in 
  order: Instruct JServ not to start the Tomcat process. 
  Automaticallystarting Tomcat is not implemented 
  yet."And then does:  
  ApJServManual 
  onBut, the parameters in the example were different that the current 
  configuration files.Is this correct 
  understanding?Thanks.[EMAIL PROTECTED]
  Dr. 
  Gregory 
  Guthrie[EMAIL PROTECTED] 
  (641)472-1125 Fax: 
  -1103 Computer Science 
  Department School of Computing and 
  Information Science Maharishi 
  University of Management (Maharishi 
  International University 
  1971-1995) http://www.mum.edu/cs_dept 
  


Re: org.apache.jasper.compiler.CompileException: ... Unable to convert a String to java.util.Vector for attribute imgList

2001-07-04 Thread Vinay Menon
Title: org.apache.jasper.compiler.CompileException: ... Unable to convert a String to java.util.Vector for attribute imgList



"%=imgList%"
would return a String wouldn't it? 
Its just the return of the toString method I guess. Is that what your tag 
library accepts? Or does it need a Vector at that position?


From: Nino 
Uziel 

  To: '[EMAIL PROTECTED]' 
  
  Cc: Ziv Rosenzweig 
  Sent: Wednesday, July 04, 2001 1:01 
  PM
  Subject: RE: 
  org.apache.jasper.compiler.CompileException: ... Unable to convert a String to 
  java.util.Vector for attribute imgList
  
  Hi 
  Suresh, 
  
  
  I am 
  using a JSP tag where I like to send a Java object to the java 
  class.
  
  The 
  jsp file is 
  
  %@ taglib uri="clientSkin.tld" prefix="iclient" 
  %%Vector imgList = new Vector();
   imgList.addElement("bla 
  bla");
  %
  iclient:head 
  imgList="%=imgList%"
  /
  
  and 
  the error I get is
  
  
  org.apache.jasper.compiler.CompileException: FILE_TO_BE_RUN.jsp(16,0) 
  Unable to convert a String to java.util.Vector for attribute 
imgList
  So the 
  jsp file sees to be ok in terms of type casting. I think the error is more 
  towards the tomcat server.
  Anyone 
  has an idea ? Would appreciate any help.
  
  N.
  
  
  
-Original Message-From: Suresh Manne 
[mailto:[EMAIL PROTECTED]]Sent: Thursday, July 05, 2001 
1:06 AMTo: [EMAIL PROTECTED]Subject: RE: 
org.apache.jasper.compiler.CompileException: ... Unable to convert a String 
to java.util.Vector for attribute imgList
I 
feel that there is problem with the type casting.
There should be something like (java.util Vector) 
vector_variable = (java.util Vector) string_variable

Try to put (java.util Vector) before string variable. Hope it 
works
Suresh.

  -Original Message-From: Nino Uziel 
  [mailto:[EMAIL PROTECTED]]Sent: Wednesday, July 04, 2001 5:25 
  AMTo: '[EMAIL PROTECTED]'Subject: 
  org.apache.jasper.compiler.CompileException: ... Unable to convert a 
  String to java.util.Vector for attribute imgList
  Hi Guys, 
  I am not much of a Java programmer, and one of my 
  engineers is getting the follwoing error message. 
  Anyone has an idea as to why ? 
  org.apache.jasper.compiler.CompileException: 
  FILE_TO_BE_RUN.jsp(16,0) Unable to convert a String to java.util.Vector 
  for attribute imgList
   at 
  org.apache.jasper.compiler.TagBeginGenerator.convertString(TagBeginGenerator.java:268) 
   at 
  org.apache.jasper.compiler.TagBeginGenerator.generateSetters(TagBeginGenerator.java:210) 
   at 
  org.apache.jasper.compiler.TagBeginGenerator.generateServiceMethodStatements(TagBeginGenerator.java:288) 
   at 
  org.apache.jasper.compiler.TagBeginGenerator.generate(TagBeginGenerator.java:357) 
   at 
  org.apache.jasper.compiler.JspParseEventListener$GeneratorWrapper.generate(JspParseEventListener.java:771) 
   at 
  org.apache.jasper.compiler.JspParseEventListener.generateAll(JspParseEventListener.java:220) 
   at 
  org.apache.jasper.compiler.JspParseEventListener.endPageProcessing(JspParseEventListener.java:175) 
   at 
  org.apache.jasper.compiler.Compiler.compile(Compiler.java:210) 
   at 
  org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:612) 
   at 
  org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146) 
   at 
  org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:542) 
   at 
  org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:258) 
   at 
  org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:268) 
   at 
  org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429) 
   at 
  org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500) 
   at 
  javax.servlet.http.HttpServlet.service(HttpServlet.java:853) 
   at 
  org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405) 
   at 
  org.apache.tomcat.core.Handler.service(Handler.java:287) 
   at 
  org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) 
   at 
  org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797) 
   at 
  org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) 
   at 
  org.apache.tomcat.service.connector.Ajp13ConnectionHandler.processConnection(Ajp13ConnectionHandler.java:160)
   at 
  org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) 
   at 
  org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501) 
   at 
  java.lang.Thread.run(Thread.java:484) 
  I have tried to look into the documentation of the 
  org.apache.jasper.compiler.TagBeginGenerator, but 
  I haven't seen much there. Any idea that can point 

Re: newbie question

2001-07-03 Thread Vinay Menon



http://localhost - 
Apache homepage

http://localhost:8080 - Tomcat 
homepage

If both display then Apache is working and Tomcat 
is working. 

Loads of mails about how to set up Tomcat with 
Apache. Pls read the archives or check out the Tomcat site.

Vinay

  - Original Message - 
  From: 
  Sumit Ranjan 
  To: [EMAIL PROTECTED] 
  
  Sent: Tuesday, July 03, 2001 2:05 
PM
  Subject: newbie question
  
  hi all!
   i am new with 
  tomcat...
   having installed tomcat 3.2.2 and 
  apache 1.3.11 on my NT 4.0...
   how will i come to know whether my 
  apache and tomcat are communicating or notor rather what should i do 
  
  to access tomcat from apacge(or 
  vice-versa)... plz. help.
  
  Sumit 
Ranjan


Apache with multiple Tomcat Instances

2001-07-02 Thread Vinay Menon

Hello,
 Had posted this question a couple of days back but never heard from
anyone! Has anyone tried integration Apache with multiple instances of
Tomcat?  Any pointers would be appreciated.

Many Thanks

Vinay




Re: Does Apache worth it?

2001-07-01 Thread Vinay Menon

Eitan,
I've done some amount of testing on the Tomcat webserver and the
Apache-Tomcat combination and have found the 8080 Tomcat webserver lacking
for real production strength deployment. It is excellent for development but
speed-wise, feature-wise Apache is a far stronger offering and fronting your
Tomcat engine with an Apache engine will yield good results.

Vinay
- Original Message -
From: Eitan Ben Noach [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, July 01, 2001 2:32 PM
Subject: Does Apache worth it?


 Hello all,

 We are intending to use Apache  Tomcat as web server in our product,
 and preliminary experiments show excellent performance.

 Most of our web pages are JSPs and servlets, and few HTMLs and Gifs.

 We wonder what is the contribution of Apache in our scenario - some of us
 think that Tomcat standalone is enough.

 Is there any advantage of using Apache and not Tomcat standalone?

 We will appreciate any contributing input.

 Thanks,
 -
 Eitan Ben-Noach
 Proficiency, Ltd.

 Tel: +972.2.548.0287
 Fax: +972.2.586.3871
 email: [EMAIL PROTECTED]

 The Intelligence in Engineering Supply Chain Collaboration
 http://www.proficiency.com/









Tomcat v Resin

2001-07-01 Thread Vinay Menon

Hello Folks,
Anyone here tried Resin? Was wondering if anyone has experience using
Resin and would like to share its pros and cons wrt Tomcat.

Thanks in advance

Vinay




Re: Prefix subject headers in Tomcat list?

2001-07-01 Thread Vinay Menon

i use the filter where  'To:' is [EMAIL PROTECTED] Works!

Vinay
- Original Message - 
From: pete [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, July 01, 2001 11:12 PM
Subject: Prefix subject headers in Tomcat list?


 Is it possible for the list admin to apply a '[tomcat-user] ' or similar 
 prefix to all mails sent from the mailing list?
 
 This helps a lot in separating list traffic from other traffic.
 
 Thanks
 
 -Pete
 




Re: apache not able to access jsp files

2001-06-30 Thread Vinay Menon

http://jakarta.apache.org/tomcat/tomcat-3.3-doc/mod_jk-howto.html#s7

- Original Message -
From: Ramkumar Manoharan [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, June 30, 2001 1:03 AM
Subject: apache not able to access jsp files


 Hi,

 OS-red hat 7.0, apache 1.3, tomcat 3.2

 I currently have Apache on port 80, Tomcat port 8080
 with mod_jk adapter.  The servlets
 and jsp examples work off of localhost:8080, but they
 do not work off localhost:80.
 I have the Tomcat User Guide, the Tomcat-Apache
 HOWTO, and the Working with Mod-JK
 Manual for reference.   I am using the auto generated
 mod_jk.auto and basically just
 want Apache to serve the static content and Tomcat the
 dynamic jsp and servlets.
 Unless, I'm missing something the static html pages and
 the .jsp pages should
 be off of port 80 and then the jk adapter should
 transfer the .jsp request to Tomcat
 via port 8007 using the apj12 protocol.


 But i get the following message:


 Forbidden

 You don't have permission to access /examples/jsp/index.html on this
server.

 I have 755 access to the examples folder and also to the super folder
 webapps.Any reason why this problem?

 Thanks
 Ram
 _
 Get your FREE download of MSN Explorer at http://explorer.msn.com





Hot Deploy?

2001-06-30 Thread Vinay Menon

Hello Folks,
Is 'hot deploy' something that is being planned for Tomcat 4.0. I use
Tomcat with JBoss and do not use an EAR file to deploy to the combination
... instead deploy a server side jar for JBoss and the compiled classes for
Tomcat. If I stick to the current method of deployment will Tomcat 4.0
support automatic loading of modified classes?  Currently I get
ClassCastExceptions if I recompile classes - cause the classloaders get
confused I guess!


.menon




Re: JSP page in another window

2001-06-30 Thread Vinay Menon

specify target=_window in the url that will be used to pop up the JSP

Cheers
Vinay
- Original Message -
From: Grim Shieldsson [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, June 30, 2001 7:22 PM
Subject: Re: JSP page in another window


 JSP is server side only.. it never makes it to the client.  You will
 have to do it in javascript, or some other client side trick.

 --- Kemp Randy [EMAIL PROTECTED] wrote:
  If I have JSP page A and I want to open up JSP page B
  in a seperate and smaller window, while keeping JSP
  page A, is there a way to do this?  I know it can be
  done with JavaScript.
 
  __
  Do You Yahoo!?
  Get personalized email addresses from Yahoo! Mail
  http://personal.mail.yahoo.com/


 =
 Grim Shieldsson (James A Barrows)
 Acting Chieftain of Clan StormWolf
 Barbarian Freehold Alliance
 Oppurtunity doesn't knock.  It only presents itself after you kick down
the door.
 --Kyle Chandler

 __
 Do You Yahoo!?
 Get personalized email addresses from Yahoo! Mail
 http://personal.mail.yahoo.com/




Apache with multiple Tomcat Containers

2001-06-29 Thread Vinay Menon



Hello,
 Is it possible to set up an 
instance of Apache to talk to more than one Tomcat instance? When setting up the 
mod_jk stuff in httpd.conf we usually give absolute paths to the tomcat workers 
file. 
Anyone out there tried setting up a one to many 
Apache-Tomcat setup?

Vinay


Re: Using the servlet element on web.xml to define short name f or a servlet in a package

2001-06-29 Thread Vinay Menon

You will need mod_jk.

Under your tomcat/doc directory, you should have information on setting up
Apache to talk to Tomcat.

Applications will need mapping like

JkMount /appname/servlet/* ajp13

To pass on the request for servlets to the ajp13 connector.

Vinay
- Original Message -
From: Eitan Ben Noach [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, June 30, 2001 12:57 AM
Subject: RE: Using the servlet element on web.xml to define short name f
or a servlet in a package


 Thanks Bill,

 As I stated on my replay to Michael Wentzel your suggestion really helped.

 What should I do to make this work also when the HTTP server is Apache?
 Currently it does not working ( only on standalone mode ).

 Eitan Ben-Noach
 Proficiency, Ltd.





  -Original Message-
  From: William Kaufman [mailto:[EMAIL PROTECTED]]
  Sent: Friday, June 29, 2001 11:17 PM
  To: '[EMAIL PROTECTED]'
  Subject: RE: Using the servlet element on web.xml to define
  short name
  f or a servlet in a package
 
 
  Try adding,
 
  servlet-mapping
  servlet-name
  controller
  /servlet-name
  url-pattern
  /something
  /url-pattern
  /servlet-mapping
 
  to your web.xml.  Then,
 
http://localhost:8080/something
 
  should work.
 
  -- Bill K.
 
   -Original Message-
   From: Eitan Ben Noach [mailto:[EMAIL PROTECTED]]
   Sent: Friday, June 29, 2001 2:03 PM
   To: [EMAIL PROTECTED]
   Subject: Using the servlet element on web.xml to define
   short name for
   a servlet in a package
  
  
   Hello,
  
   I'm running standalone tomcat.
  
   I'm trying to use  the servlet element on web.xml to define
   short name for
   a servlet in a package, but it doesn't work.
  
   I put a package called FTPExplorer.jar under
   /admin/web-inf/lib containing
   the servlet named
   com.company.ftpexplorer.FTPExplorerServlet.class
  
   When calling the servlet with following URL:
   http://localhost:8080/admin/servlet/com.company.ftpexplorer.FT
   PExplorerServl
   et
   the servlet works ok.
  
   I've defined the following servlet element on the main
   tomcat web.xml
  
   servlet
   servlet-name
   controller
   /servlet-name
   servlet-class
   com.company.ftpexplorer.FTPExplorerServlet
   /servlet-class
   /servlet
  
   When trying to call the servlet with either URLs:
   http://localhost:8080/controller
   http://localhost:8080/admin/servlet/controller
  
   Tomcat can't find the servlet ( 404 )
  
   What is wrong ?
  
   Thanks,
   -
   Eitan Ben-Noach
   Proficiency, Ltd.
  
   Tel: +972.2.548.0287
   Fax: +972.2.586.3871
   email: [EMAIL PROTECTED]
  
   The Intelligence in Engineering Supply Chain Collaboration
   http://www.proficiency.com/
  
  
  
  
   
we have the following configuration:
- Windows 2000 (Service Pack 1) (2, 4 and 8 processors)
- Apache 1.3.19 with mod_ssl 2.8.3
- Tomcat 3.2.2 (Apache and Tomcat are talking AJP13)
- We have a loadbalancer configured with 3 Tomcat workers
- Our load generating test clients are implemented using
HttpUnit 1.2.4 +
JSSE 1.0.2
   
On heavy load (starting from 50 concurrent requests up to 200
concurrent
requests) we observe non-deterministic TCP/socket problems.
It seems that in almost every case, the only place where we
can see some
kind of exception is the mod_jk log file:
   
...
[jk_connect.c (143)]: jk_open_socket, connect() failed errno = 61
[jk_ajp13_worker.c (173)]: In
   jk_endpoint_t::connect_to_tomcat, failed
errno = 61
[jk_ajp13_worker.c (584)]: Error connecting to the Tomcat process.
[jk_ajp13_worker.c (203)]: connection_tcp_get_message: Error -
jk_tcp_socket_recvfull failed
[jk_ajp13_worker.c (619)]: Error reading request
...
[jk_ajp13_worker.c (271)]: read_into_msg_buff: Error -
read_fully_from_server failed
[jk_lb_worker.c (349)]: In jk_endpoint_t::service, none
  recoverable
error...
...
   
Analysing the exceptions that are thrown from HttpUnit, it
looks like that
sometimes the socket cannot connect at all and sometimes
   the response
could not be retrieved completely. Most errors occur in the
early startup
phase of our load test.
Using netstat we can observe a *lot* of sockets in
  CLOSE_WAIT state
connected to the AJP13 port.
The settings we use in our Apache configuration are as follows:
   
...
Timeout 300
KeepAlive On
MaxKeepAliveRequests 500
KeepAliveTimeout 300
MaxRequestsPerChild 0
ThreadsPerChild 500
...
   
I would appreciate, if there is anyone who has gone through
the same kind
of problems or if there is some kind of solution that may
help to solve
these problems. Perhaps, if there is someone with an equivalent
Linux-Setup, i would appreciate, if she/he could 

Re: Using the servlet element on web.xml to define short name f or a servlet in a package

2001-06-29 Thread Vinay Menon

mod_jk works a treat for me!  might be a good thing to switch.

Vinay
- Original Message -
From: Eitan Ben Noach [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, June 30, 2001 1:14 AM
Subject: RE: Using the servlet element on web.xml to define short name f
or a servlet in a package


 I'm now using Apache through mod_jserv and except for the servlet-mapping
 does not work, all other operations ( I need ) works fine.

 Do you mean I need to change to mod_jk in order to solve the mapping
 problem?

 Thanks,

 -
 Eitan Ben-Noach
 Proficiency, Ltd.




  -Original Message-
  From: Vinay Menon [mailto:[EMAIL PROTECTED]]
  Sent: Saturday, June 30, 2001 1:05 AM
  To: [EMAIL PROTECTED]
  Subject: Re: Using the servlet element on web.xml to define
  short name
  f or a servlet in a package
 
 
  You will need mod_jk.
 
  Under your tomcat/doc directory, you should have information
  on setting up
  Apache to talk to Tomcat.
 
  Applications will need mapping like
 
  JkMount /appname/servlet/* ajp13
 
  To pass on the request for servlets to the ajp13 connector.
 
  Vinay
  - Original Message -
  From: Eitan Ben Noach [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Saturday, June 30, 2001 12:57 AM
  Subject: RE: Using the servlet element on web.xml to define
  short name f
  or a servlet in a package
 
 
   Thanks Bill,
  
   As I stated on my replay to Michael Wentzel your suggestion
  really helped.
  
   What should I do to make this work also when the HTTP
  server is Apache?
   Currently it does not working ( only on standalone mode ).
  
   Eitan Ben-Noach
   Proficiency, Ltd.
  
  
  
  
  
-Original Message-
From: William Kaufman [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 29, 2001 11:17 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Using the servlet element on web.xml to define
short name
f or a servlet in a package
   
   
Try adding,
   
servlet-mapping
servlet-name
controller
/servlet-name
url-pattern
/something
/url-pattern
/servlet-mapping
   
to your web.xml.  Then,
   
  http://localhost:8080/something
   
should work.
   
-- Bill K.
   
 -Original Message-
 From: Eitan Ben Noach [mailto:[EMAIL PROTECTED]]
 Sent: Friday, June 29, 2001 2:03 PM
 To: [EMAIL PROTECTED]
 Subject: Using the servlet element on web.xml to define
 short name for
 a servlet in a package


 Hello,

 I'm running standalone tomcat.

 I'm trying to use  the servlet element on web.xml to define
 short name for
 a servlet in a package, but it doesn't work.

 I put a package called FTPExplorer.jar under
 /admin/web-inf/lib containing
 the servlet named
 com.company.ftpexplorer.FTPExplorerServlet.class

 When calling the servlet with following URL:
 http://localhost:8080/admin/servlet/com.company.ftpexplorer.FT
 PExplorerServl
 et
 the servlet works ok.

 I've defined the following servlet element on the main
 tomcat web.xml

 servlet
 servlet-name
 controller
 /servlet-name
 servlet-class
 com.company.ftpexplorer.FTPExplorerServlet
 /servlet-class
 /servlet

 When trying to call the servlet with either URLs:
 http://localhost:8080/controller
 http://localhost:8080/admin/servlet/controller

 Tomcat can't find the servlet ( 404 )

 What is wrong ?

 Thanks,
 -
 Eitan Ben-Noach
 Proficiency, Ltd.

 Tel: +972.2.548.0287
 Fax: +972.2.586.3871
 email: [EMAIL PROTECTED]

 The Intelligence in Engineering Supply Chain Collaboration
 http://www.proficiency.com/




 
  we have the following configuration:
  - Windows 2000 (Service Pack 1) (2, 4 and 8 processors)
  - Apache 1.3.19 with mod_ssl 2.8.3
  - Tomcat 3.2.2 (Apache and Tomcat are talking AJP13)
  - We have a loadbalancer configured with 3 Tomcat workers
  - Our load generating test clients are implemented using
  HttpUnit 1.2.4 +
  JSSE 1.0.2
 
  On heavy load (starting from 50 concurrent requests up to 200
  concurrent
  requests) we observe non-deterministic TCP/socket problems.
  It seems that in almost every case, the only place where we
  can see some
  kind of exception is the mod_jk log file:
 
  ...
  [jk_connect.c (143)]: jk_open_socket, connect()
  failed errno = 61
  [jk_ajp13_worker.c (173)]: In
 jk_endpoint_t::connect_to_tomcat, failed
  errno = 61
  [jk_ajp13_worker.c (584)]: Error connecting to the
  Tomcat process.
  [jk_ajp13_worker.c (203)]: connection_tcp_get_message: Error -
  jk_tcp_socket_recvfull