pageContext

2003-07-16 Thread Dominic Parry
Hi

I have an jsp that outputs an image. What do I need to set the pagecontext
type to in order for the browser to understand the image? At the moment it
prompts me to save the image as jspname.jsp, but If I rename the extension
to jpg, it has actually downloaded the image.

Thanks

Dom




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



Re: Connectors for IIS/Tomcat SHOULD make sense

2003-06-25 Thread Dominic Parry
you are trying to use JK2 configs with JK DLL.
  - Original Message - 
  From: Januski, Ken 
  To: Tomcat Users List 
  Sent: Wednesday, June 25, 2003 8:23 PM
  Subject: RE: Connectors for IIS/Tomcat SHOULD make sense


  Some progress...

  I haven't spent much time looking at the IIS logs but rather at the
  isapi_redirect logs. But today I did and happened to notice that the old
  logs for Tomcat before I upgraded and things stopped working has this when
  it redirects to Tomcat:

  GET /jakarta/isapi_redirector.dll - 200 Java1.4.0_01

  The new logs where it's failing show this instead:

  GET /jakarta/isapi_redirector.dll - 200
  Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.0)

  Both show 200 to indicate that they're forwarding successfully I think. But
  the successful one seems to link to Java and the unsuccessful to the
  browser. Once I get that figured out I'm hoping problem may be solved.




  -Original Message-
  From: Januski, Ken [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, June 24, 2003 6:09 PM
  To: Tomcat Users List
  Subject: RE: Connectors for IIS/Tomcat SHOULD make sense


  Thanks Jason,

  Yes I've edited the registry over and over, trying forward slashes,
  backslashed backwards slashes, etc. in path name all to know avail. I'm
  going to call it quits for today and hope that something will make more
  sense tomorrow. If not I guess I'll just start from scratch with a
  reinstallation.

  The fact the the redirect logs say that they've found so many rules and then
  found matches against those rules makes me think that there is no problem
  finding the uriworkermap.properties files, since that's where these are
  defined. But something sure is whacky with the loading of
  isapi_redirect(or). Maybe tomorrow it will all make more sense.

  Thanks much for all your efforts in trying to solve it.

  Ken

  -Original Message-
  From: Jason Bainbridge [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, June 24, 2003 5:21 PM
  To: Tomcat Users List
  Subject: Re: Connectors for IIS/Tomcat SHOULD make sense


  On Wed, 25 Jun 2003 04:53, Januski, Ken wrote:
  > I've honed uriworkermap.properties down to just this simple one below and
  > have only tried accessing pages that it should find, like
  > http://inqtomcat/examples/jsp/index.html

  I'm taking a guess here that it isn't finding your uriworkermap.properties 
  file and it is trying to load everything including the DLL (which obviously 
  should be loaded by IIS). 

  Have you got all the registry keys setup correctly as per the following
  page?

  http://www.onjava.com/pub/a/onjava/2002/12/18/tomcat.html?page=2

  Regards,
  -- 
  Jason Bainbridge
  http://jblinux.org

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


Re: RE : IIS 5 + Tomcat 4.1.24 + JK2 Connector problem

2003-06-25 Thread Dominic Parry
Did you restart Tomcat? And reboot your machine?
  - Original Message - 
  From: Hertenstein Alain 
  To: 'Tomcat Users List' 
  Sent: Wednesday, June 25, 2003 5:38 PM
  Subject: RE : RE : IIS 5 + Tomcat 4.1.24 + JK2 Connector problem


  Hi again,

  Just replaced my workers2.properties file with yours (and changing the path
  to the shm file according to my Tomcat 4 installation): exactly the same
  problem...

  Besides, I double-checked the W2K Event log entries and couldn't find that
  entry (or similar) you mentioned :
  "Error: [jk_shm.c (333)]: shm.init(): No file"

  I really don't know what to do. Why is this such a pain to simply connect
  IIS and Tomcat, even when following the instructions ?

  Thanks again for your help...
  Alain

  -Message d'origine-
  De : David Legg [mailto:[EMAIL PROTECTED] 
  Envoyé : mercredi, 25. juin 2003 16:59
  À : 'Tomcat Users List'
  Objet : RE: RE : IIS 5 + Tomcat 4.1.24 + JK2 Connector problem


  Aha!  I thought so :-)

  Here's my workers2.properties file: -

  <
  #
  # workers2.properties
  #
  [shm]
  file=C:\tomcat4\logs\shm.file
  size=1048576

  [channel.socket:127.0.0.1:8009]
  info=Ajp13 forwarding over socket
  tomcatId=localhost:8009

  # Map the Tomcat examples webapp to the Web server uri space
  [uri:/examples/*] info=Map the whole webapp
  -->

  The [shm] entry seems to be some sort of shared memory area and I've seen
  references to something called the 'scoreboard' in conjunction with it.
  Anyway, the bottom line is you need this entry for JK2 to work on IIS.  If
  you look in your W2k Event log you'll probably also notice a tell-tale
  Tomcat application error similar to this: -

Error: [jk_shm.c (333)]: shm.init(): No file

  Hope this helps.

  Regards,

  David Legg
  Webmaster - 3Dlabs
  http://www.3dlabs.com
  mailto:[EMAIL PROTECTED]


  **
   This email and any files transmitted with it are confidential and
  intended solely for the use of the individual or entity to whom they
  are addressed. If you have received this email in error please notify
  the system manager.
  **


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



Re: Tutorial for Tomcat Beginners!!

2003-06-25 Thread Dominic Parry
OK, then try the docs that come with your tomcat installation. You can find them at 
%Install Dir%\webapps\tomcat-docs

Those are the same as the ones online.

Good Luck!
  - Original Message - 
  From: Jon Haugsand 
  To: Tomcat Users List 
  Sent: Wednesday, June 25, 2003 9:52 AM
  Subject: Re: Tutorial for Tomcat Beginners!!


  * Dominic Parry
  > Hi David
  >
  > I think you didn't look hard enough :)
  >
  > Try http://jakarta.apache.org/tomcat/tomcat-4.1-doc/

  Been there, done that.  It didn't work.  E.g. the links are broken:
  <http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/sample/web/>

  -- 
   Jon Haugsand, [EMAIL PROTECTED]
   http://www.norges-bank.no


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



Re: Tutorial for Tomcat Beginners!!

2003-06-25 Thread Dominic Parry
Hi David

I think you didn't look hard enough :)

Try http://jakarta.apache.org/tomcat/tomcat-4.1-doc/

XML is easy to learn. So no problem there. Also see:

http://jakarta.apache.org/tomcat/faq/

for more help.

Cheers

Dom
  - Original Message - 
  From: David 
  To: Tomcat User 
  Sent: Wednesday, June 25, 2003 9:28 AM
  Subject: Tutorial for Tomcat Beginners!!


  Hi guys,
  I am a complete newbie to hosting a webserver.
  I just installed the tomcat and would very much want to learn more about
  it.
   
  I cannot find any tutorials links on tomcat from the Tomcat main site at
  all.
   
  Does anyone know of any online tutorial website where I can learn how to
  use Tomcat as my webserver ?
   
  P/S: I am a competent Java programmer but have no XML know-how. Is this
  going to be a problem ?
   
  Regards
  David
   


Re: Conflict of Kazaa and Tomcat

2003-06-25 Thread Dominic Parry
I'm running Kazaa Lite, and Tomcat with NO hassles. Tomcat runs on port 80. you can 
get kazaa lite from http://www.kazaalite.tk/ It also has no adware or spyware.

Good luck.
  - Original Message - 
  From: David 
  To: 'Tomcat Users List' 
  Sent: Wednesday, June 25, 2003 9:21 AM
  Subject: RE: Conflict of Kazaa and Tomcat


  But if I want my friends to access my website at 
  http://www.david.com  
   
  and not 
   
  http://www.david.com:8080  
   
  what should I do. I would like my website address to be a nice and
  elegant one. That is, one that does not require to specify the port no. 
  By default, http://www.david.com   automatically
  opens the port 80 and thus I do not need to specify the port.
   
  Is there a way that I can run my Kazaa AND my tomcat at the same time
  yet allowing my webserver to host a website at port 80 ?
   
  Regards
  David
   
   
  -Original Message-
  From: Mike Curwen [mailto:[EMAIL PROTECTED] 
  Sent: Wednesday, June 25, 2003 1:40 AM
  To: 'Tomcat Users List'
  Subject: RE: Conflict of Kazaa and Tomcat
   
  I'm pretty sure Kazaa starts a webserver on port 80. That's also how
  Kazza's theatre (preview a downloading movie file) works. 
   
  If you've modified Tomcat to start on port 80, then change it back to
  8080.  Or... if I'm remembering wrong, and it's kazza that starts on
  8080, then change Tomcat to 80.  
   
   
  > -Original Message-
  > From: David [mailto:[EMAIL PROTECTED] 
  > Sent: Tuesday, June 24, 2003 12:37 PM
  > To: Tomcat User
  > Subject: Conflict of Kazaa and Tomcat
  > 
  > 
  > Hi guys,
  >  
  > I am a newbie to Tomcat. 
  > I followed all the instructions on how to set up the tomcat 
  > server. I managed to test if it is working and stuff.
  >  
  > I setup the server properly. Ran the test page, I managed to 
  > get the to Tomcat set up test page correctly displayed.
  > PROBLEM: All the set up and test were done with my Kazaa switched off.
  >  
  > When my kazaa is running, this is where the problem lies.
  >  
  > If I were to let my Kazaa to run, I find that my Tomcat 
  > server can be successful started up. When I try to access my 
  > localhost site on my IE, it turns out that the 
  > Download folder of Kazaa is the root for my localhost address.
  >  
  > I am using Windows XP. Does anyone know why when I am running 
  > Kazaa, the tomcat server cannot be started ?
  >  
  > Regards
  > David
  >  
  > 
   
   
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
   


Re: Connectors for IIS/Tomcat SHOULD make sense

2003-06-24 Thread Dominic Parry
Hi Ken

Also you might like to have a look at this thread:

http://www.mail-archive.com/[EMAIL PROTECTED]/thrd5.html#93616


  - Original Message - 
  From: Jason Bainbridge 
  To: Tomcat Users List 
  Sent: Tuesday, June 24, 2003 10:09 PM
  Subject: Re: Connectors for IIS/Tomcat SHOULD make sense


  Are you using MSIE? Try turning Friendly HTTP Error messages off, the page you 
  get will then indicate what is throwing the 404, Tomcats will have that blue 
  bar and what not.

  Also have you checked out the permissions on the DLL?

  On Wed, 25 Jun 2003 03:59, Januski, Ken wrote:
  > Jason,
  >
  > I just used this address:
  > http://inqtomcat/examples/jsp/index.html
  > It failed with the "/jakarta/isapi_redirector.dll is not available" error.
  >
  > If I use this address I'm fine:
  > http://inqtomcat/examples/jsp/index.html
  >
  > I can substitute localhost for inqtomcat with same results. The errors are
  > in the isapi_redirector log. Whether IIS or Tomcat is throwing the errors
  > is a matter of guesswork as far as I can tell. This is the exact line from
  > log: [jk_ajp_common.c (461)]: ajp_unmarshal_response: status = 404
  >
  > I actually was hoping that someone on the list could tell ME what's
  > throwing the error. I think if I knew that I'd be a lot closer to a
  > solution.
  >
  > Ken
  >
  > -Original Message-
  > From: Jason Bainbridge [mailto:[EMAIL PROTECTED]
  > Sent: Tuesday, June 24, 2003 3:51 PM
  > To: Tomcat Users List
  > Subject: Re: Connectors for IIS/Tomcat SHOULD make sense
  >
  > On Wed, 25 Jun 2003 02:53, Jason Bainbridge wrote:
  > > What does your uriworkermap.properties file look like?
  > >
  > > What is throwing the 404? Tomcat or IIS? What URL are you trying to
  > > access when you get the 404?
  >
  > Can you please answer these questions? It will help work out what the
  > actual
  >
  > problem is so we can try to resolve it better...

  -- 
  Jason Bainbridge
  http://jblinux.org

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



Re: Connectors for IIS/Tomcat SHOULD make sense

2003-06-24 Thread Dominic Parry
Hi Ken

I'm assuming you mean that http://inqtomcat:8080/examples/jsp/index.html is working. 
Have you set the permissions on the folder containing the isapi dll such that your 
IUSER has read and execute permissions?

-Dom
  - Original Message - 
  From: Januski, Ken 
  To: Tomcat Users List 
  Sent: Tuesday, June 24, 2003 9:59 PM
  Subject: RE: Connectors for IIS/Tomcat SHOULD make sense


  Jason,

  I just used this address:
  http://inqtomcat/examples/jsp/index.html
  It failed with the "/jakarta/isapi_redirector.dll is not available" error.

  If I use this address I'm fine:
  http://inqtomcat/examples/jsp/index.html

  I can substitute localhost for inqtomcat with same results. The errors are
  in the isapi_redirector log. Whether IIS or Tomcat is throwing the errors is
  a matter of guesswork as far as I can tell. This is the exact line from log:
  [jk_ajp_common.c (461)]: ajp_unmarshal_response: status = 404

  I actually was hoping that someone on the list could tell ME what's throwing
  the error. I think if I knew that I'd be a lot closer to a solution.

  Ken

  -Original Message-
  From: Jason Bainbridge [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, June 24, 2003 3:51 PM
  To: Tomcat Users List
  Subject: Re: Connectors for IIS/Tomcat SHOULD make sense


  On Wed, 25 Jun 2003 02:53, Jason Bainbridge wrote:
  > What does your uriworkermap.properties file look like?
  >
  > What is throwing the 404? Tomcat or IIS? What URL are you trying to access
  > when you get the 404?

  Can you please answer these questions? It will help work out what the actual

  problem is so we can try to resolve it better...

  -- 
  Jason Bainbridge
  http://jblinux.org

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


Re: Connectors for IIS/Tomcat SHOULD make sense

2003-06-24 Thread Dominic Parry
Hi Ken

I have a suggestion. You should try using JK2 instead of JK, ie use 
isapi_redirector2.dll. If you want, I can send you all my working configs for this 
connector. If you don't want to use it, try posting your workers.properties file, and 
we can try to spot that "typo"

Cheers

Dom
  - Original Message - 
  From: Januski, Ken 
  To: Tomcat Users List 
  Sent: Tuesday, June 24, 2003 9:10 PM
  Subject: RE: Connectors for IIS/Tomcat SHOULD make sense


  Hi Jason,

  Yes the green arrow is green and pointing up. I've removed and added both
  the filter and the virtual directory many times. I really seem to have no
  problem getting it to work.

  I believe that it's Tomcat that is causing the problem as the log indicates
  an ajp13 worker is created. Also most of the various urls I've tried get a
  match in the log. So this indicates to me that the properties files are
  being used. So for example my minimal worker.properties has
  /examples/*=ajp13. If I use "http://inqtomcat/examples/"; the log shows that
  a match is found in uriworkermap.properties. HttpFilterProc then checks to
  see if it's a servlet, etc. However the log then shows that it tries to map
  "/jakarta/isapi_redirector.dll" and doesn't find a match. I don't think it
  should be trying to match that or map it. Also I've tried /examples or other
  files with inqtomcat:8080 and they work fine.

  So it looks to me like the filter is redirecting from IIS to Tomcat as it
  should but Tomcat then is trying to do the wrong thing with the file.

  Ken

  -Original Message-
  From: Jason Bainbridge [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, June 24, 2003 2:54 PM
  To: Tomcat Users List
  Subject: Re: Connectors for IIS/Tomcat SHOULD make sense


  Lets get back to basics...

  Is the ISAPI plugin showing with a green arrow in IIS indicating it has been

  loaded successfully?

  What does your uriworkermap.properties file look like? 

  What is throwing the 404? Tomcat or IIS? What URL are you trying to access 
  when you get the 404?

  Regards,
  -- 
  Jason Bainbridge
  http://jblinux.org

  On Wed, 25 Jun 2003 02:27, Januski, Ken wrote:
  > Thanks John,
  >
  > I wasn't sure about the loadbalancing. I commented it out but I'm still
  > getting the 404 errors, "/jakarta/isapi_redirector.dll is not available."
  >
  > I've watched other people have this error, including someone about a week
  > ago I think, in which you gave some advice. But as far as I can tell the
  > problem was never solved. It's surprising to me how fragile the IIS/Tomcat
  > connectors seem to be. Most of the documentation finally ends with "this
  > should now work. If not please check for typos in worker.properties, etc."
  > Perhaps this really is the right advice and I'll eventually see a typo.
  But
  > right now it sure doesn't look like there are any to me and it's hard to
  > know where to turn next, other than scouring the web for people who've had
  > similar problems.
  >
  > I guess what I find oddest is that the logs are full of information but no
  > one seems to know how to interpret them But then again I probably put
  > more stock in logs than many people do.
  >
  > Ken
  >
  > -Original Message-
  > From: John Turner [mailto:[EMAIL PROTECTED]
  > Sent: Tuesday, June 24, 2003 1:58 PM
  > To: Tomcat Users List
  > Subject: Re: Connectors for IIS/Tomcat SHOULD make sense
  >
  >
  >
  > There's no need for any of the loadbalancing stuff in workers.properties.
  > You only need the four lines: type, name, port, host.
  >
  > John
  >
  > On Tue, 24 Jun 2003 13:10:33 -0400, Januski, Ken <[EMAIL PROTECTED]>
  >
  > wrote:
  > > Another day's experimentation and no more progress. One thing I notice
  is
  > > that the source code seems to refer to isapi_redirector2 and I'm using
  > > isapi_redirector.dll. I'm using that because I'm following instructions
  > > from
  > > ESRI for preparing IIS and Tomcat for an ArcIMS upgrade. Their
  > > instructions
  > > indicate that isapi_redirector.dll should work with Tomcat 4.1.12 and I,
  > > at
  > > least so far, have no reason to doubt them.
  > >
  > > I've also edited my worker.properties files to a minimum just for
  > > testing.
  > > I'm including it below. But I'm still puzzled as to why I'm getting the
  > > 404
  > > error. The log indicates that an ajp13 worker is being created
  > > successfully
  > > and I don't really see any errors related to it, other than the 404.
  > >
  > > [Tue Jun 24 12:47:34 2003]  [jk_worker.c (132)]: Into
  > > wc_get_worker_for_name
  > > ajp13
  > > [Tue Jun 24 12:47:34 2003]  [jk_worker.c (136)]: wc_get_worker_for_name,
  > > done  found a worker
  > > [Tue Jun 24 12:47:34 2003]  [jk_isapi_plugin.c (860)]: HttpExtensionProc
  > > got
  > > a worker for name ajp13
  > > [Tue Jun 24 12:47:34 2003]  [jk_ajp_common.c (1352)]: Into
  > > jk_worker_t::get_endpoint
  > > [Tue Jun 24 12:47:34 2003]  [jk_ajp_common.c (1075)]: Into
  > > jk_endpoint

Re: Tomcat 4.1.24 + Apache 1.3.27

2003-06-24 Thread Dominic Parry
I got the same error on WinXP. Disappeared with a reboot, I think it had something to 
do with registry entries that were cleaned up at boot time. This wouldn't be the same 
in your case, But the error is the same.

Cheers

Dom
  - Original Message - 
  From: Marcia de Oliveira Cardoso 
  To: Tomcat Users List 
  Sent: Tuesday, June 24, 2003 4:37 PM
  Subject: RE: Tomcat 4.1.24 + Apache 1.3.27


  Hi
  Here we go again.
  I installed the FreeBSD port Jakarta-Tomcat 4.1.24.
  When I try the URL http://localhost:8180 I got this error:


  HTTP Status 500 - 

  

  type Exception report

  message 

  description The server encountered an internal error () that prevented it from 
fulfilling this request.

  exception 

  org.apache.jasper.JasperException: Unable to compile class for JSP

  An error occurred at line: -1 in the jsp file: null

  Generated servlet error:
  [javac] Since fork is true, ignoring compiler setting.
  [javac] Compiling 1 source file
  [javac] Since fork is true, ignoring compiler setting.



  at 
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:130)
  at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:293)
  at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:353)
  at org.apache.jasper.compiler.Compiler.compile(Compiler.java:370)
  at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:473)
  at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:190)
  at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
  at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
  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:2415)
  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.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.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
  at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594)
  at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
  at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
  at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
  at java.lang.Thread.run(Thread.java:479)



  

  Apache Tomcat/4.1.24


  Any suggestion?

  Thanks,
  Marcia Cardoso

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



Re: Need help on deploying application

2003-06-23 Thread Dominic Parry
I've seen this come up as a suggestion many time, and I must disagree. I'm using the 
same set up as him, and I have many spaces in my dirs. It makes no difference. My apps 
all work perfectly, spaces or no.

Just my five cents.

Dom
  - Original Message - 
  From: Roberts, Eric 
  To: Tomcat Users List 
  Sent: Monday, June 23, 2003 5:23 PM
  Subject: RE: Need help on deploying application


  Sounds like the JDK 1.4.1 not liking spaces in the directory paths.

  Try putting tomcat in D:\Tomcat4.1

  HTH

  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
  Sent: 23 June 2003 17:20
  To: [EMAIL PROTECTED]
  Subject: Need help on deploying application


  I have installed Tomcat on my workstation and I'm able to access the applications 
supplied with the distribution. I have two Tomcat books and I'm trying to deploy an 
application from one of them as a tool to learn Tomcat basics. I am unable to get to 
the application. Below is what I believe to be the essential facts of my situation. I 
would appreciate someone looking over this and telling me where I've gone wrong or 
offering suggestions on other debugging techniques. Thanks.

  Here is the information from the Tomcat Manager page:
  Tomcat version: Apache Tomcat/4.1.24 
  JVM version:
  1.4.1_02-b06
  JVM supplier:
  Sun Microsystems Inc. 
  OS:
  Windows XP 
  OS version:
  5.1 
  Processor architecture:
  x86 

  My CATALINA_HOME environment variable points to:
  D:\Program Files\Apache Group\Tomcat 4.1

  My application is at this path location:
  D:\Program Files\Apache Group\Tomcat 4.1\webapps\apress

  I have the files "login.jsp" and "welcome.jsp" in this directory.

  I have this web.xml file in apress\WEB-INF:
  

  http://java.sun.com/j2ee/dtds/web-app_2_3.dtd'>

  


  login
  chapter2.login



  /apress
  /WEB-INF/lib/taglib.tld


  

  I have this context element in my server.xml file:
  

  When I point my browser at "http://localhost:8080/apress/login.jsp";, I get this 
error message:
  "The requested resource (/apress/login.jsp) is not available."

  When I use the Tomcat Manager application to start the "/apress" application, I get 
this error message:
  "FAIL - Application at context path /apress could not be started"

  Can anyone point out where I've gone wrong? Thanks.

  -- 
  Charles Knell
  [EMAIL PROTECTED] - email

  -
  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: web.xml init param

2003-06-19 Thread Dominic Parry
My Guess is that you've Misplaced, or misspelled the ShowMessage class somewhere. 
Remember that it is Case Sensitive. The other thing is that you have packaged it so 
you should be calling /conserv/servlet/TestPkg/ShowMessage

Hope this helps

Cheers

Dom
  - Original Message - 
  From: Jing Huang 
  To: [EMAIL PROTECTED] 
  Sent: Thursday, June 19, 2003 11:04 PM
  Subject: RE: web.xml init param


  Hi, Yoav

  You are the man! Thank you very much. Your email helps a lot. I checked the log. It 
seems that the host was loaded fine when tartup. My servlet works fine in the tomcat 
examples directory which was installed by default. However, it does not work in my 
development directory. Here is the runtime exception. Hopefully it makes sense to you. 

  HTTP Status 500 - 

  

  type Exception report

  message 

  description The server encountered an internal error () that prevented it from 
fulfilling this request.

  exception 

  javax.servlet.ServletException: Cannot allocate servlet instance for path 
/conserv/servlet/ShowMessage
   at org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:435)
   at org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:180)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
   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:2415)
   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.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.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
   at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594)
   at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
   at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
   at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
   at java.lang.Thread.run(Thread.java:539)


  root cause 

  java.lang.NoClassDefFoundError: TestPkg/ShowMessage (wrong name: ShowMessage)
   at java.lang.ClassLoader.defineClass0(Native Method)
   at java.lang.ClassLoader.defineClass(ClassLoader.java:512)
   at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:126)
   at 
org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1679)
   at 
org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:968)
   at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1409)
   at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1289)
   at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:885)
   at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:668)
   at org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:416)
   at o

Re: JSPs not compiling

2003-06-17 Thread Dominic Parry
Hi Kevin

Did you by any chance add the Tomcat Jars to the %JAVA_HOME%\jre\lib\ext folder? If 
you did, you should remove them, and add the ones you need to your CLASSHPATH. Java 
puts some security restrictions on jars in the ext folder, for good reason.

Cheers

Dom

- Original Message - 
  From: Thomas, Kevin 
  To: 'Tomcat Users List' 
  Sent: Tuesday, June 17, 2003 6:56 PM
  Subject: JSPs not compiling


  Sorry guys, me again.

  I've done the searching on google and the Tomcat archives but nothing...

  I've got Tomcat quite happily serving up me servlets but when I try to run
  .jsp's I'm getting
  the following:

  org.apache.jasper.JasperException: Unable to compile class for JSP
  at org.apache.jasper.JspEngineContext.compile(Unknown Source)
  at org.apache.jasper.servlet.JspServletWrapper.service(Unknown
  Source)
  at org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown
  Source)
  at org.apache.jasper.servlet.JspServlet.service(Unknown Source)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at
  org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown
  Source)
  at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown
  Source)
  at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown
  Source)
  at
  org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
  eNext(Unknown Source)
  at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
  at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
  at org.apache.catalina.core.StandardContextValve.invoke(Unknown
  Source)
  at
  org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
  eNext(Unknown Source)
  at
  org.apache.catalina.authenticator.AuthenticatorBase.invoke(Unknown Source)
  at
  org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
  eNext(Unknown Source)
  at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
  at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
  at org.apache.catalina.core.StandardContext.invoke(Unknown Source)
  at org.apache.catalina.core.StandardHostValve.invoke(Unknown Source)
  at
  org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
  eNext(Unknown Source)
  at org.apache.catalina.valves.ErrorDispatcherValve.invoke(Unknown
  Source)
  at
  org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
  eNext(Unknown Source)
  at org.apache.catalina.valves.ErrorReportValve.invoke(Unknown
  Source)
  at
  org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
  eNext(Unknown Source)
  at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
  at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
  at org.apache.catalina.core.StandardEngineValve.invoke(Unknown
  Source)
  at
  org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
  eNext(Unknown Source)
  at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
  at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
  at
  org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
  at
  org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
  at
  org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
  ction(Http11Protocol.java:376)
  at
  org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
  at
  org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
  a:518)
  at java.lang.Thread.run(Thread.java:484)


  root cause 

  org.apache.jasper.JasperException: Unable to compile class for JSP

  An error occurred at line: -1 in the jsp file: null

  Generated servlet error:


  at org.apache.jasper.compiler.DefaultErrorHandler.javacError(Unknown
  Source)
  at org.apache.jasper.compiler.ErrorDispatcher.javacError(Unknown
  Source)
  at org.apache.jasper.compiler.Compiler.compile(Unknown Source)
  at org.apache.jasper.JspEngineContext.compile(Unknown Source)
  at org.apache.jasper.servlet.JspServletWrapper.service(Unknown
  Source)
  at org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown
  Source)
  at org.apache.jasper.servlet.JspServlet.service(Unknown Source)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at
  org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown
  Source)
  at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown
  Source)
  at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown
  Source)
  at
  org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
  eNext(Unknown Source)
  at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
  at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
  at org.apache.catalina.core.StandardContextValve.invoke(Unknown
  Source)
  at
  org.apache.catalina.core.StandardPipeline$StandardPipelineVal

Re: Can't get to /admin dir of our webapp

2003-06-16 Thread Dominic Parry
That's a good point. There I go again. Always thinking of the Quick fix!

  - Original Message - 
  From: Phillip Qin 
  To: 'Tomcat Users List' 
  Sent: Monday, June 16, 2003 9:26 PM
  Subject: RE: Can't get to /admin dir of our webapp


  I strongly disagree with all of you.

  Suppose you are upgrading from 4.1.18 to 4.1.24. The unpacked tar will
  override all of the contents re admin and install its admin app.

  Why don't you guys think of renaming your own admin app to something like
  myappadmin?

  -Original Message-
  From: Jeff Tulley [mailto:[EMAIL PROTECTED] 
  Sent: June 16, 2003 3:20 PM
  To: [EMAIL PROTECTED]
  Subject: RE: Can't get to /admin dir of our webapp

  I've moved ours to be /tomcat/admin, so the we still have the admin
  functionality, but in a less generic name.  It is just a simple change
  in webapps/admin.xml

  Jeff Tulley  ([EMAIL PROTECTED])
  (801)861-5322
  Novell, Inc., The Leading Provider of Net Business Solutions
  http://www.novell.com

  >>> [EMAIL PROTECTED] 6/16/03 1:16:23 PM >>>
  Thanks guys, this worked!

  I removed the $CATALINA_HOME/server/webapps/admin directory and also
  the
  $CATALINA_HOME/webapps/admin.xml file and now /admin loads from our
  webapp.

  Thanks again,
  Ian.


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


Re: Can't get to /admin dir of our webapp

2003-06-16 Thread Dominic Parry
And then Restart Tomcat :)
  - Original Message - 
  From: Dominic Parry 
  To: Tomcat Users List 
  Sent: Monday, June 16, 2003 8:53 PM
  Subject: Re: Can't get to /admin dir of our webapp


  Hi There, 

  You need to make sure that Tomcat does not Deploy the Admin App. You can do this by 
removing the Deployment descriptor admin.xml from the webapps folder, also move/rename 
the admin folder in the TOMCAT_HOME\server\webapps folder. Check in server.xml that 
you have removed the /admin context entry that points to tomcat's admin app.

  Good luck!

  -Dom
- Original Message - 
From: Zabel, Ian 
To: 'Tomcat Users List' 
Sent: Monday, June 16, 2003 8:47 PM
Subject: Can't get to /admin dir of our webapp


Hello All,

We have deployed our webapp to the / context (""), and we're trying to
access the admin directory (/admin) but Tomcat wants to server up it's
little admin webapp. How can I get tomcat to server our /admin directory
from out / webapp?

Thanks,
Ian.


Re: Can't get to /admin dir of our webapp

2003-06-16 Thread Dominic Parry
Hi There, 

You need to make sure that Tomcat does not Deploy the Admin App. You can do this by 
removing the Deployment descriptor admin.xml from the webapps folder, also move/rename 
the admin folder in the TOMCAT_HOME\server\webapps folder. Check in server.xml that 
you have removed the /admin context entry that points to tomcat's admin app.

Good luck!

-Dom
  - Original Message - 
  From: Zabel, Ian 
  To: 'Tomcat Users List' 
  Sent: Monday, June 16, 2003 8:47 PM
  Subject: Can't get to /admin dir of our webapp


  Hello All,

  We have deployed our webapp to the / context (""), and we're trying to
  access the admin directory (/admin) but Tomcat wants to server up it's
  little admin webapp. How can I get tomcat to server our /admin directory
  from out / webapp?

  Thanks,
  Ian.


Re: Tomcat classpath not set at boot

2003-06-14 Thread Dominic Parry
Do you set your CLASSPATH in your Shell script? or in .login or something like that? 
Cos then that will work for a manual start, but not for the /init.d one. You'll have 
to set up the classpath in that script.

-Tom
  - Original Message - 
  From: Tim Funk 
  To: Tomcat Users List 
  Sent: Saturday, June 14, 2003 3:26 PM
  Subject: Re: Tomcat classpath not set at boot


  Is it just your servlet that doesn't work, or all servlets? (and jsps)
  Are you using different userids when run from boot time vs command line?
  What happens if your startup command is moved to inittab? (Or other wacky 
  equivalent)

  -Tim

  Chad Lemmen wrote:
  > It's not a system CLASSPATH I have set.  I put the jar files I want in the
  > CLASSPATH in $CATALINA_HOME/shared/lib.  Tomcat does recognize these if I
  > start Tomcat manually, but not if I have Tomcat staring at boot time with
  > the script in /etc/rc.d/init.d
  > 
  > On Fri, 13 Jun 2003, Tim Funk wrote:
  > 
  > 
  >>Tomcat ignores system CLASSPATH at startup and creates its own.
  >>
  >>http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html
  >>
  >>-Tim
  >>
  >>Chad Lemmen wrote:
  >>
  >>>I've got Tomcat 4.1.24 starting at boot on my Linux box with a script in
  >>>/etc/rc.d/init.d.  The script looks like this
  >>>
  >>>#!/bin/sh
  >>>JAVA_HOME=/usr/java
  >>>export JAVA_HOME
  >>>/opt/jakarta-tomcat-4.1.24/bin/startup.sh
  >>>
  >>>
  >>>Tomcat is starting at boot and seems to work fine http://localhost:8080
  >>>brings up the default Tomcat home page.  The only thing that doesn't seem
  >>>to be working is my classpaths that I set in the catalina.sh file are not
  >>>being set.  If I start Tomcat from the command line my classpaths are
  >>>being read and my servlet works, but when starting Tomcat at boot my
  >>>classpaths don't seem to be set because when I try to run my servlet I get
  >>>"java.lang.NoClassDefFoundError"
  >>>
  >>>I don't get this error when Tomcat is started from the command line.  Why
  >>>would starting it at boot time not use my user set classpaths?
  >>>
  >>>Here is the portion of catalina.sh that I added my classpath to.
  >>>
  >>># Add on extra jar files to CLASSPATH
  >>>if [ -n "$JSSE_HOME" ]; then
  >>>
  >>>CLASSPATH="$CLASSPATH":"$JSSE_HOME"/lib/jcert.jar:"$JSSE_HOME"/lib/jnet.jar:
  >>>"$JSSE_HOME"/lib/jsse.jar
  >>>fi
  >>>CLASSPATH="$CLASSPATH":"$CATALINA_HOME"/bin/bootstrap.jar:
  >>>/opt/EspressReport/lib/ReportAPIWithChart.jar:
  >>>/opt/EspressReport/lib/ExportLib.jar
  >>>
  >>>
  >>>I also tried adding the two jar files ReportAPIWithChart.jar and
  >>>ExportLib.jar to CATALINA_HOME/shared/lib
  >>>
  >>>Both methods work and my classpaths are set and my servlet works, but only
  >>>if Tomcat is started from the command line "CATALINA_HOME/bin/startup.sh".
  >>>Why doesn't this work when starting at boot?
  >>>
  >>>-
  >>>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: more problem about emails using servlets

2003-06-13 Thread Dominic Parry
You should write the mail server you use to send email. It can be either your own one, 
or your ISP's SMTP server.
  - Original Message - 
  From: bilal sulehri 
  To: [EMAIL PROTECTED] 
  Sent: Friday, June 13, 2003 8:59 AM
  Subject: more problem about emails using servlets 


  java Email API require to give the address of smtp server, now which smtp 
  server i have to write. Do I have to give the address of my ISP's server, or 
  yahoo or hotmail server or create my own exchange server?

  _
  Tired of spam? Get advanced junk mail protection with MSN 8. 
  http://join.msn.com/?page=features/junkmail


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



Re: Special characters

2003-06-12 Thread Dominic Parry
someone posted an FAQ on this a while ago, if I remember correctly. check the archives.
  - Original Message - 
  From: David Del Sacramento 
  To: Tomcat Users List 
  Sent: Thursday, June 12, 2003 5:13 PM
  Subject: RE: Special characters


  I proved that, but it isn't work :-(

  Any other idea?

  Thanks
  David

  --- "Roberts, Eric" <[EMAIL PROTECTED]> wrote:
  > Just try
  > <%@ page contentType="text/html; charset=UTF-8"
  > %>
  > - it worked for me!
  > -Original Message-
  > From: David Del Sacramento
  > [mailto:[EMAIL PROTECTED]
  > Sent: 12 June 2003 16:27
  > To: Tomcat Users List
  > Subject: RE: Special characters
  > 
  > 
  > Thnaks Andy,
  > 
  > I did export CATALINA_OPTS, but I got the next
  > error.
  > 
  >
  -
  > java.io.UnsupportedEncodingException: iso-8859-1=
  > at
  >
  sun.io.Converters.getConverterClass(Converters.java:107)
  > at
  > sun.io.Converters.newConverter(Converters.java:138)
  > at
  >
  sun.io.CharToByteConverter.getConverter(CharToByteConverter.java:67)
  > at
  >
  java.io.OutputStreamWriter.(OutputStreamWriter.java:75)
  > at
  >
  com.sun.mail.handlers.text_plain.writeTo(text_plain.java:106)
  > at
  >
  javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:839)
  > at
  >
  javax.activation.DataHandler.writeTo(DataHandler.java:295)
  > at
  >
  javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1147)
  > at
  >
  javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1600)
  > at
  >
  com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:321)
  > at
  > javax.mail.Transport.send0(Transport.java:163)
  > at
  > javax.mail.Transport.send(Transport.java:80)
  > at SendMessage.send(SendMessage.java:116)
  > at
  >
  
org.apache.jsp.procesar_0002dpublicacion_0002dcarro_0002dpr$jsp._jspService(procesar_0002dpublicacion_0002dcarro_0002dpr$jsp.java:526)
  > at
  >
  org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
  > at
  >
  javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  > at
  >
  org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet..java:201)
  > at
  >
  org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
  > at
  >
  org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
  > at
  >
  javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  > at
  >
  
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
  > at
  >
  
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
  > at
  >
  org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve..java:243)
  > at
  >
  org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
  > at
  >
  org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
  > at
  >
  org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
  > at
  >
  org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve..java:190)
  > at
  >
  org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
  > at
  >
  org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
  > at
  >
  org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
  > at
  >
  org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
  > at
  >
  org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
  > at
  >
  org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
  > at
  >
  org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
  > at
  >
  org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
  > at
  >
  org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
  > at
  >
  org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
  > at
  >
  org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
  > at
  >
  org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
  > at
  >
  org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
  > at
  >
  org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
  > at
  >
  org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
  > at
  >
  org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
  > at
  >
  org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
  >

Re: [redirecting startup exception trace to a file]

2003-06-12 Thread Dominic Parry
Hi Vijay

The only other suggestion I can give is that you edit the catalina.bat file and 
redirect the programs it calls the same way i.e  > out.txt

Cheers

Dom
  - Original Message - 
  From: Vijay Pawar 
  To: [EMAIL PROTECTED] 
  Sent: Thursday, June 12, 2003 11:12 AM
  Subject: [redirecting startup exception trace to a file]


  Hi domnic
  Thanks for your suggestion.

  I tried the following command

  c:\tomcat\bin> catalina run > out.txt
  c:\tomat\bin> catalina start >out.txt

  but in both cases only 4 lines getting written to the out.txt
  Using CATALINA_BASE:   C:\TOMCAT
  Using CATALINA_HOME:   C:\TOMCAT
  Using CATALINA_TMPDIR: C:\TOMCAT\temp
  Using JAVA_HOME:   C:\J2SDK1.4.1_01
  Starting service Tomcat-Standalone
  Apache Tomcat/4.1.18

  After this all the trace comes in a new dos window ( in case of catalina
  start command ) or in the same dos window ( in case of catalina run
  command)

  But in both the cases the exceptions are not going to the file out.txt pls
  help

  vijay
  > Hi Vijay
  >
  > Try tomcat > out.txt
  >
  > Cheers
  >
  > Dom
  >   - Original Message -
  >   From: Vijay Pawar
  >   To: [EMAIL PROTECTED]
  >   Cc: [EMAIL PROTECTED]
  >   Sent: Thursday, June 12, 2003 10:47 AM
  >   Subject: redirecting startup exception trace to a file
  >
  >
  >   Hi,
  >
  >   I am using tomcat 4.1.18 on windows 2000
  >
  >   I have recently added a new webapp (struts-example-2002-06-11.war) to
  my webapps directory.
  >
  >   Now when i restarted tomcat, there are lots and lots of exceptions
  being thrown but before i can read them they get overwritten in the
  dos
  > window.
  >
  >   I wish to send all these errors to a log file so that I can read it
  and see what caused these errors.
  >
  >   How can we redirect the tomcat startup exceptions trace to a file ?
  >
  >   Thanking in advance,
  >   Vijay Pawar
  >
  >
  >
  >   -
  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: redirecting startup exception trace to a file

2003-06-12 Thread Dominic Parry
Hi Vijay

Try tomcat > out.txt

Cheers

Dom
  - Original Message - 
  From: Vijay Pawar 
  To: [EMAIL PROTECTED] 
  Cc: [EMAIL PROTECTED] 
  Sent: Thursday, June 12, 2003 10:47 AM
  Subject: redirecting startup exception trace to a file


  Hi,

  I am using tomcat 4.1.18 on windows 2000

  I have recently added a new webapp (struts-example-2002-06-11.war) to my
  webapps directory.

  Now when i restarted tomcat, there are lots and lots of exceptions being
  thrown but before i can read them they get overwritten in the dos window.

  I wish to send all these errors to a log file so that I can read it and
  see what caused these errors.

  How can we redirect the tomcat startup exceptions trace to a file ?

  Thanking in advance,
  Vijay Pawar



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



Re: JK2 crashes IIS on win2000

2003-06-11 Thread Dominic Parry
Hi Tim

I had the same problem. I'm not sure why it happened, but I had to remove all the 
sup-up stuff and start again. One thing I did change was to put the 
isapi_redirector2.dll file inside tomcat's conf folder, in a connector subfolder, and 
I have READ and EXECUTE rights to the IUSR to the connectors folder. I also had to 
download the dll again. I also had to run tomcat as an NT service.

I'm not sure if that's what fixed it, but it is working now. My configs are posted 
below:

workers2.properties:

#Define the communication channel
[shm]
file=C:\Program Files\Apache Group\Tomcat 4.1\logs\shm.file
size=1048576

[channel.socket:127.0.0.1:8009]
info=Ajp13 forwarding over socket
tomcatId=localhost:8009

# Map the Tomcat examples webapp to the Web server uri space
[uri:/examples/*]
info=Map the whole webapp

reg entries:

Windows Registry Editor Version 5.00

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


And then, you won't believe this, I had to reboot! It all works perfectly now.

hope this helps you.

Dom
  - Original Message - 
  From: Tim Robinson 
  To: 'Tomcat Users List' 
  Sent: Wednesday, June 11, 2003 12:42 PM
  Subject: JK2 crashes IIS on win2000


  Hi,

  I am trying to get JK2 ISAPI working on my windows 2000 box. IIS starts up
  but when I try to access a servlet I get an HTTP 500 response with "The
  handle is invalid". The next request IIS gets (regardless of whether it's a
  servlet request or not) causes inetinfo.exe to crash with a memory
  exception.

  I have followed all the instructions I can find but to no avail. Please
  excuse the long post but I want to let you know what I have already tried.

  The machine is windows 2000 server with IIS 5 and .net framework installed,
  and all the latest patches. I am using tomcat 4.1.18 on jre 1.4.0, but I
  don't think it's getting as far as tomcat (netstat reports no connections on
  8009). JK1.2 works fine in this configuration and non-servlet web stuff
  works OK. The ISAPI extension shows as an up-arrow in IIS, and my IIS
  virtual root for /jakarta works OK.

  Here is my workers2.properties file:

  [shm]
  file=c:/temp/shm.txt
  size=1048576
  [channel.socket:localhost:8009]
  info=Ajp13 forwarding over socket
  tomcatId=localhost:8009
  [uri:/examples/*]
  info=Map the whole webapp

  I have tried it with and without the [shm] section and the symptoms are the
  same. The shared memory file does get created so clearly something is
  happening.

  My jk2.properties file contains only comments. Here is my windows registry:

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

  (anyone know where the debug is supposed to come out?)

  Thanks in advance for any hints

  --- Tim


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



Re: where to find sample config files for JK2

2003-06-10 Thread Dominic Parry
you need the following files in your TOMCAT_HOME\conf dir:

workers2.properties

Mine contains:

--
# Define the communication channel
[shm]
file=C:\Program Files\Apache Group\Tomcat 4.1\logs\shm.file
size=1048576

[channel.socket:127.0.0.1:8009]
info=Ajp13 forwarding over socket
tomcatId=localhost:8009

# Map the Tomcat examples webapp to the Web server uri space
[uri:/examples/*]
info=Map the whole webapp

[uri:/admin/*]

[uri:/manager/*]



jk2.properties

mine is empty, but it must be present.

The following how-to should help you:

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/confighowto.html
  - Original Message - 
  From: David Bo Jensen 
  To: [EMAIL PROTECTED] 
  Sent: Tuesday, June 10, 2003 4:08 PM
  Subject: Re: where to find sample config files for JK2


  Tirsdag 10 juni 2003 15:48 skrev Tim Robinson:
  > Sorry if I'm being dumb, but can someone point me where to get the config
  > files - from what I can see they're called jk2.properties and
  > workers2.properties. I found a jk2.properties in my vanilla tomcat
  > installation but every line is commented out.
  >

  You need the workers2.properties, where it should be installed on a windows 
  system is unknown to me.
  What version of tomcat are you using?

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



Re: virtual hosts - tomcat 4

2003-06-10 Thread Dominic Parry
if you set your context path tp "/" It might make a difference. At the moment, the 
path is set to "" which is nothing.

  - Original Message - 
  From: Fiona 
  To: Tomcat Users List ; Jens Skripczynski 
  Sent: Tuesday, June 10, 2003 1:42 PM
  Subject: Re: virtual hosts - tomcat 4


  I've tried what you suggested, and my host is now:

  
   
  
  but this still brings me to the ROOT directory. If i
  take out the /myapp from the docBase, then i get the
  directory listing for / (all folders in webapps). 

  I can still get to the page by going to
  www.myurl.com/myapp but i want to get to it by just
  typing www.myurl.com

  Thanks again,

  --- Jens Skripczynski <[EMAIL PROTECTED]>
  wrote:
  > Hi,
  > 
  > I belief your question is, how to link your webapp
  > to '/'
  > instead of '/webapp'.
  > 
  > So you need to add an explicit context as default
  > context.
  > 
  >debug="0"/>
  > 
  > 
  > Fiona:
  > > I'm using Tomcat 4.1.12 and set up a virtual host
  > in
  > > my server.xml file. 
  > > 
  > > I want to be able to type the url www.myurl.com
  > and
  > > this to go to the equivalent of going directly to
  > > localhost:8080/myapp. Currently www.myurl.com will
  > > replace the localhost section, but i still have to
  > put
  > > the path of myapp after it to get to the page i
  > want,
  > > i.e. www.myurl.com/myapp works but www.myurl.com
  > does
  > > not.
  > > 
  > > Here's the host that i added:
  > > 
  > >  appBase="webapps"
  > > unpackWARs="true" autoDeploy="true">
  > >  debug="0"
  > > reloadable="true" crossContext="true">
  > > 
  > > 
  > 
  > Ciao
  > 
  > Jens Skripczynski
  > -- 
  > E-Mail: skripi-lists(at)myrealbox(dot)com
  > 
  > I think there is a world market for about five
  > computers.
  > -- Thomas J. Watson,
  > CEO, IBM Corporation, 1947
  > 
  > 
  >
  -
  > To unsubscribe, e-mail:
  > [EMAIL PROTECTED]
  > For additional commands, e-mail:
  > [EMAIL PROTECTED]
  > 


  __
  Do you Yahoo!?
  Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
  http://calendar.yahoo.com

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



Re: Having a problem with IIS and Tomcat 4.1.24 config

2003-06-10 Thread Dominic Parry
Hi Jeff

Those lines belong in workers.properties not uriworkermap.properties

You can point it to the logs folder, but it's more of a virtual memory file. It is 
necessary though, to get tomcat to work with IIS, I have found.

Good luck!
  - Original Message - 
  From: Jeffrey Cummings 
  To: 'Tomcat Users List' 
  Sent: Tuesday, June 10, 2003 12:48 AM
  Subject: RE: Having a problem with IIS and Tomcat 4.1.24 config



  Excuse my ignorance, but I am not sure which file these lines belong to. Is
  it the uriworkermap.properties file? What is shm.file a log file? Could I
  have the file parameter point to C:\Jakarta-4.1.24\logs\shm.file since all
  my log files are in that directory?

  Jeff


  -Original Message-
  From: Dominic Parry [mailto:[EMAIL PROTECTED]
  Sent: Monday, June 09, 2003 1:52 PM
  To: Tomcat Users List
  Subject: Re: Having a problem with IIS and Tomcat 4.1.24 config

  Hi

  Sure can, here is an examples of mine:

  # Define the communication channel
  [shm]
  file=C:\Program Files\Apache Group\Tomcat 4.1\logs\shm.file
  size=1048576

  [channel.socket:127.0.0.1:8009]
  info=Ajp13 forwarding over socket
  tomcatId=localhost:8009

  # Map the Tomcat examples webapp to the Web server uri space
  [uri:/examples/*]
  info=Map the whole webapp

  [uri:/admin/*]

  [uri:/manager/*]

  [uri:/DynaServlet/*]

  [uri:/HamiltonBank/*]

  hope this helps.

  Dom
- Original Message -
From: John Turner
To: Tomcat Users List
Sent: Monday, June 09, 2003 6:25 PM
Subject: Re: Having a problem with IIS and Tomcat 4.1.24 config



I'm pretty sure Jeffrey did...at least as far as I can tell.  Do you have
some examples of the correct way?

John

On Mon, 9 Jun 2003 18:16:49 +0200, Dominic Parry <[EMAIL PROTECTED]>
wrote:

> you need to specify your uri's in workers.properties
> - Original Message - From: John Turner To: Tomcat Users List
> Sent: Monday, June 09, 2003 6:13 PM
> Subject: Re: Having a problem with IIS and Tomcat 4.1.24 config
>
>
>
> Sorry, I'm stumped, and I don't use IIS enough (hardly at all) to help
> out with nitty gritty stuff.  Hopefully someone else has more insight.
>
> John
>
> On Mon, 9 Jun 2003 10:43:27 -0400, Jeffrey Cummings <[EMAIL PROTECTED]>
> wrote:
>
> > Yes I did install the filter and it does have the green arrow.
> > This as the log file, mod_jk_iis.log when I start IIS
> > [jk_uri_worker_map.c (156)]: Into >
> jk_uri_worker_map_t::uri_worker_map_alloc
> > [jk_uri_worker_map.c (196)]: Into >
> jk_uri_worker_map_t::uri_worker_map_open
> > [jk_uri_worker_map.c (211)]: jk_uri_worker_map_t::uri_worker_map_open,
> > rule
> > map size is 5
> > [jk_uri_worker_map.c (267)]: Into >
> jk_uri_worker_map_t::uri_worker_map_open,
> > match rule /servlet/=ajp13 was added
> > [jk_uri_worker_map.c (267)]: Into >
> jk_uri_worker_map_t::uri_worker_map_open,
> > match rule /examples/=ajp13 was added
> > [jk_uri_worker_map.c (256)]: Into >
> jk_uri_worker_map_t::uri_worker_map_open,
> > suffix rule /examples/.jsp=ajp13 was added
> > [jk_uri_worker_map.c (267)]: Into >
> jk_uri_worker_map_t::uri_worker_map_open,
> > match rule /examples/servlet/=ajp13 was added
> > [jk_uri_worker_map.c (267)]: Into >
> jk_uri_worker_map_t::uri_worker_map_open,
> > match rule /admin/=ajp13 was added
> > [jk_uri_worker_map.c (296)]: Into >
> jk_uri_worker_map_t::uri_worker_map_open,
> > there are 5 rules
> > [jk_uri_worker_map.c (317)]: jk_uri_worker_map_t::uri_worker_map_open,
> > done
> > [jk_worker.c (82)]: Into wc_open
> > [jk_worker.c (207)]: Into build_worker_map, creating 1 workers
> > [jk_worker.c (213)]: build_worker_map, creating worker ajp13
> > [jk_worker.c (138)]: Into wc_create_worker
> > [jk_worker.c (152)]: wc_create_worker, about to create instance ajp13
> of
> > ajp13
> > [jk_ajp13_worker.c (711)]: Into ajp23_worker_factory
> > [jk_worker.c (161)]: wc_create_worker, about to validate and init
  ajp13
> > [jk_ajp13_worker.c (386)]: Into jk_worker_t::validate
> > [jk_ajp13_worker.c (399)]: In jk_worker_t::validate for worker ajp13 >
> contact
> > is localhost:8009
> > [jk_ajp13_worker.c (425)]: Into jk_worker_t::init
> > [jk_worker.c (177)]: wc_create_worker, done
> > [jk_worker.c (223)]: build_worker_map, removing old ajp13 worker
> > [jk_worker.c (235)]: build_worker_map, done
> > [jk_worker.c (102)]: wc_open, don

Re: Having a problem with IIS and Tomcat 4.1.24 config

2003-06-09 Thread Dominic Parry
Hi

Sure can, here is an examples of mine:

# Define the communication channel
[shm]
file=C:\Program Files\Apache Group\Tomcat 4.1\logs\shm.file
size=1048576

[channel.socket:127.0.0.1:8009]
info=Ajp13 forwarding over socket
tomcatId=localhost:8009

# Map the Tomcat examples webapp to the Web server uri space
[uri:/examples/*]
info=Map the whole webapp

[uri:/admin/*]

[uri:/manager/*]

[uri:/DynaServlet/*]

[uri:/HamiltonBank/*]

hope this helps.

Dom
  - Original Message - 
  From: John Turner 
  To: Tomcat Users List 
  Sent: Monday, June 09, 2003 6:25 PM
  Subject: Re: Having a problem with IIS and Tomcat 4.1.24 config



  I'm pretty sure Jeffrey did...at least as far as I can tell.  Do you have 
  some examples of the correct way?

  John

  On Mon, 9 Jun 2003 18:16:49 +0200, Dominic Parry <[EMAIL PROTECTED]> 
  wrote:

  > you need to specify your uri's in workers.properties
  > - Original Message - From: John Turner To: Tomcat Users List 
  > Sent: Monday, June 09, 2003 6:13 PM
  > Subject: Re: Having a problem with IIS and Tomcat 4.1.24 config
  >
  >
  >
  > Sorry, I'm stumped, and I don't use IIS enough (hardly at all) to help 
  > out with nitty gritty stuff.  Hopefully someone else has more insight.
  >
  > John
  >
  > On Mon, 9 Jun 2003 10:43:27 -0400, Jeffrey Cummings <[EMAIL PROTECTED]> 
  > wrote:
  >
  > > Yes I did install the filter and it does have the green arrow.
  > > This as the log file, mod_jk_iis.log when I start IIS
  > > [jk_uri_worker_map.c (156)]: Into > 
  > jk_uri_worker_map_t::uri_worker_map_alloc
  > > [jk_uri_worker_map.c (196)]: Into > 
  > jk_uri_worker_map_t::uri_worker_map_open
  > > [jk_uri_worker_map.c (211)]: jk_uri_worker_map_t::uri_worker_map_open, 
  > > rule
  > > map size is 5
  > > [jk_uri_worker_map.c (267)]: Into > 
  > jk_uri_worker_map_t::uri_worker_map_open,
  > > match rule /servlet/=ajp13 was added
  > > [jk_uri_worker_map.c (267)]: Into > 
  > jk_uri_worker_map_t::uri_worker_map_open,
  > > match rule /examples/=ajp13 was added
  > > [jk_uri_worker_map.c (256)]: Into > 
  > jk_uri_worker_map_t::uri_worker_map_open,
  > > suffix rule /examples/.jsp=ajp13 was added
  > > [jk_uri_worker_map.c (267)]: Into > 
  > jk_uri_worker_map_t::uri_worker_map_open,
  > > match rule /examples/servlet/=ajp13 was added
  > > [jk_uri_worker_map.c (267)]: Into > 
  > jk_uri_worker_map_t::uri_worker_map_open,
  > > match rule /admin/=ajp13 was added
  > > [jk_uri_worker_map.c (296)]: Into > 
  > jk_uri_worker_map_t::uri_worker_map_open,
  > > there are 5 rules
  > > [jk_uri_worker_map.c (317)]: jk_uri_worker_map_t::uri_worker_map_open, 
  > > done
  > > [jk_worker.c (82)]: Into wc_open
  > > [jk_worker.c (207)]: Into build_worker_map, creating 1 workers
  > > [jk_worker.c (213)]: build_worker_map, creating worker ajp13
  > > [jk_worker.c (138)]: Into wc_create_worker
  > > [jk_worker.c (152)]: wc_create_worker, about to create instance ajp13 
  > of
  > > ajp13
  > > [jk_ajp13_worker.c (711)]: Into ajp23_worker_factory
  > > [jk_worker.c (161)]: wc_create_worker, about to validate and init ajp13
  > > [jk_ajp13_worker.c (386)]: Into jk_worker_t::validate
  > > [jk_ajp13_worker.c (399)]: In jk_worker_t::validate for worker ajp13 > 
  > contact
  > > is localhost:8009
  > > [jk_ajp13_worker.c (425)]: Into jk_worker_t::init
  > > [jk_worker.c (177)]: wc_create_worker, done
  > > [jk_worker.c (223)]: build_worker_map, removing old ajp13 worker
  > > [jk_worker.c (235)]: build_worker_map, done
  > > [jk_worker.c (102)]: wc_open, done
  > >
  > >
  > > Jeff
  > >
  > >
  > > -Original Message-
  > > From: John Turner [mailto:[EMAIL PROTECTED]
  > > Sent: Monday, June 09, 2003 9:00 AM
  > > To: Tomcat Users List
  > > Subject: Re: Having a problem with IIS and Tomcat 4.1.24 config
  > >
  > >
  > > Thanks.  Did you install the filter?
  > >
  > > AFAIK, this is the best tutorial on Tomcat + IIS:
  > >
  > > http://www.onjava.com/pub/a/onjava/2002/12/18/tomcat.html
  > >
  > > John
  > >
  > > On Mon, 9 Jun 2003 08:42:40 -0400, Jeffrey Cummings <[EMAIL PROTECTED]> > 
  > wrote:
  > >
  > >> Thanks for the help. There is the information request
  > >>
  > >> My worker.propqerties file is: -
  > >>
  > >> worker.list=ajp13
  > >> worker.ajp13.port=8009
  > >> worker.ajp13.host=localhost
  > >> worker.ajp13.type=ajp13
  > >>
  > >> my uriworkermap.properties file is:-
  >

Re: Having a problem with IIS and Tomcat 4.1.24 config

2003-06-09 Thread Dominic Parry
you need to specify your uri's in workers.properties
  - Original Message - 
  From: John Turner 
  To: Tomcat Users List 
  Sent: Monday, June 09, 2003 6:13 PM
  Subject: Re: Having a problem with IIS and Tomcat 4.1.24 config



  Sorry, I'm stumped, and I don't use IIS enough (hardly at all) to help out 
  with nitty gritty stuff.  Hopefully someone else has more insight.

  John

  On Mon, 9 Jun 2003 10:43:27 -0400, Jeffrey Cummings <[EMAIL PROTECTED]> wrote:

  > Yes I did install the filter and it does have the green arrow.
  > This as the log file, mod_jk_iis.log when I start IIS
  > [jk_uri_worker_map.c (156)]: Into 
  > jk_uri_worker_map_t::uri_worker_map_alloc
  > [jk_uri_worker_map.c (196)]: Into 
  > jk_uri_worker_map_t::uri_worker_map_open
  > [jk_uri_worker_map.c (211)]: jk_uri_worker_map_t::uri_worker_map_open, 
  > rule
  > map size is 5
  > [jk_uri_worker_map.c (267)]: Into 
  > jk_uri_worker_map_t::uri_worker_map_open,
  > match rule /servlet/=ajp13 was added
  > [jk_uri_worker_map.c (267)]: Into 
  > jk_uri_worker_map_t::uri_worker_map_open,
  > match rule /examples/=ajp13 was added
  > [jk_uri_worker_map.c (256)]: Into 
  > jk_uri_worker_map_t::uri_worker_map_open,
  > suffix rule /examples/.jsp=ajp13 was added
  > [jk_uri_worker_map.c (267)]: Into 
  > jk_uri_worker_map_t::uri_worker_map_open,
  > match rule /examples/servlet/=ajp13 was added
  > [jk_uri_worker_map.c (267)]: Into 
  > jk_uri_worker_map_t::uri_worker_map_open,
  > match rule /admin/=ajp13 was added
  > [jk_uri_worker_map.c (296)]: Into 
  > jk_uri_worker_map_t::uri_worker_map_open,
  > there are 5 rules
  > [jk_uri_worker_map.c (317)]: jk_uri_worker_map_t::uri_worker_map_open, 
  > done
  > [jk_worker.c (82)]: Into wc_open
  > [jk_worker.c (207)]: Into build_worker_map, creating 1 workers
  > [jk_worker.c (213)]: build_worker_map, creating worker ajp13
  > [jk_worker.c (138)]: Into wc_create_worker
  > [jk_worker.c (152)]: wc_create_worker, about to create instance ajp13 of
  > ajp13
  > [jk_ajp13_worker.c (711)]: Into ajp23_worker_factory
  > [jk_worker.c (161)]: wc_create_worker, about to validate and init ajp13
  > [jk_ajp13_worker.c (386)]: Into jk_worker_t::validate
  > [jk_ajp13_worker.c (399)]: In jk_worker_t::validate for worker ajp13 
  > contact
  > is localhost:8009
  > [jk_ajp13_worker.c (425)]: Into jk_worker_t::init
  > [jk_worker.c (177)]: wc_create_worker, done
  > [jk_worker.c (223)]: build_worker_map, removing old ajp13 worker
  > [jk_worker.c (235)]: build_worker_map, done
  > [jk_worker.c (102)]: wc_open, done
  >
  >
  > Jeff
  >
  >
  > -Original Message-
  > From: John Turner [mailto:[EMAIL PROTECTED]
  > Sent: Monday, June 09, 2003 9:00 AM
  > To: Tomcat Users List
  > Subject: Re: Having a problem with IIS and Tomcat 4.1.24 config
  >
  >
  > Thanks.  Did you install the filter?
  >
  > AFAIK, this is the best tutorial on Tomcat + IIS:
  >
  > http://www.onjava.com/pub/a/onjava/2002/12/18/tomcat.html
  >
  > John
  >
  > On Mon, 9 Jun 2003 08:42:40 -0400, Jeffrey Cummings <[EMAIL PROTECTED]> 
  > wrote:
  >
  >> Thanks for the help. There is the information request
  >>
  >> My worker.propqerties file is: -
  >>
  >> worker.list=ajp13
  >> worker.ajp13.port=8009
  >> worker.ajp13.host=localhost
  >> worker.ajp13.type=ajp13
  >>
  >> my uriworkermap.properties file is:-
  >>
  >> /servlet/*=ajp13
  >> /examples/*=ajp13
  >> /examples/*.jsp=ajp13
  >> /examples/servlet/*=ajp13
  >> /admin/*=ajp13
  >>
  >> Jeff
  >>
  >>
  >>
  >> -Original Message-
  >> From: John Turner [mailto:[EMAIL PROTECTED]
  >> Sent: Monday, June 09, 2003 8:25 AM
  >> To: Tomcat Users List
  >> Subject: Re: Having a problem with IIS and Tomcat 4.1.24 config
  >>
  >>
  >> I don't use IIS, but:
  >>
  >> [Sat Jun 07 09:18:40 2003]  [jk_uri_worker_map.c (477)]: Attempting to
  >> map
  >> URI '/localhost/tomcat/isapi_redirect.dll'
  >> [Sat Jun 07 09:18:40 2003]  [jk_uri_worker_map.c (599)]:
  >> jk_uri_worker_map_t::map_uri_to_worker, done without a match
  >>
  >> Looks to me like one of your properties files has a munged up URL path.
  >> You'll have to post them for us to know more.
  >>
  >> John
  >>
  >> On Sat, 7 Jun 2003 09:24:03 -0400, Jeffrey Cummings <[EMAIL PROTECTED]>
  >> wrote:
  >>
  >>> I am trying to setup tomcat 4.1.24 with IIS. I get the following 
  >>> message
  >>>
  >>>
  >>> HTTP Status 404 - /tomcat/isapi_redirect.dll
  >>>
  >>> _
  >>>
  >>> type Status report
  >>> message /tomcat/isapi_redirect.dll
  >>> description The requested resource (/tomcat/isapi_redirect.dll) is not
  >>> available.
  >>> _
  >>>
  >>>
  >>> Apache Tomcat/4.1.24
  >>>
  >>> My registry settings
  >>> Name
  >>> Data
  >>> extension_uri
  >>> /tomcat/isapi_redirector.dll
  >>> worker_file
  >>> C:\Jakarta-4.1.24\conf\workers.properties
  >>> worker_mount_file
  >>> C:\Jakarta-4.1.24\conf\uriworkermap.properties
  >>> log_file
  >>> C:\Jakarta-4.1.24\logs\mod_jk_iis.log
  >>> log_level
  >>>

Re: [SOLVED] -Xincgc, -Xms600, -Xmx600

2003-06-09 Thread Dominic Parry
On this same note, when you upgrade your JVM in windows, you have to change that same 
registry key to reflect the update, otherwise Tomcat won't start.
  - Original Message - 
  From: Yoav Shapira 
  To: Tomcat Users List 
  Sent: Monday, June 09, 2003 1:32 PM
  Subject: RE: [SOLVED] -Xincgc, -Xms600, -Xmx600


  Howdy,

  > I finally managed to get my issue sorted out. After installing Tomcat
  > on another machine to do some testing I noticed that it had the following
  > value in the registry:
  > 
  > JVM Library: C:\jdk1.3.1_03\jre\bin\hotspot\jvm.dll
  
  > Any comments?

  Yeah, windows sucks ;)  I dislike it when settings like this are not
  transparent and easy to debug.

  Second comment: glad you got it fixed, and thanks for posting the update.

  Yoav Shapira


  =
  Yoav Shapira
  [EMAIL PROTECTED]

  __
  Do you Yahoo!?
  Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
  http://calendar.yahoo.com

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



Re: TOMCAT IIS and html

2003-06-09 Thread Dominic Parry
Thanks David

Ok. So is there a way to exclude certain extensions. *.html *.jpg, etc.

Dom

- Original Message - 
From: "David Legg" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Monday, June 09, 2003 11:30 AM
Subject: RE: TOMCAT IIS and html


> Hi Dom,
>
> It depends how you have configured your connector.
>
> If you have set up your workers.properties or workers2.properties file to
> forward /examples/*.jsp to Tomcat then Tomcat will only see JSP file
> requests and all the HTML or GIF etc requests will be handled by IIS.
>
> If however you put /examples/* in the file then IIS will forward all and
> every request on to Tomcat for processing and IIS won't handle anything in
> that directory.
>
>
> David Legg
>
>
> -Original Message-
> From: Dominic Parry [mailto:[EMAIL PROTECTED]
> Sent: 09 June 2003 08:11
> To: Tomcat Users List
> Subject: TOMCAT IIS and html
>
>
> Hi
>
> Can I safely assume that When tomcat is configured with IIS that IIS will
> always serv anything but JSP's and Servlets? Even when HTML files etc lie
> within Tomcat contexts?
>
> Thanks
>
> Dom
>
> -
> 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 destoying beans

2003-06-09 Thread Dominic Parry
Hi

After I call a servlet that accesses two beans created in a jsp, the beans seem to 
have been destroyed.

They are created like this:

<%@ page import="beans.*"%>



this page then response.sendRedirect("MyServlet");

code in MyServlet:

 session = req.getSession();
 UserAuth authBean = (beans.UserAuth) session.getAttribute("authBean");
 DataBean dataBean = (beans.DataBean) session.getAttribute("dataBean");

I am able to access these beans in the servlet, but once it has finished execution, 
they seem to have been garbage collected!

What am I missing?!

Thanks

Dom

Re: TOMCAT IIS and html

2003-06-09 Thread Dominic Parry
Tomcat will or IIS will?

Thanks

Dom
  - Original Message - 
  From: Dan Tran 
  To: Tomcat Users List 
  Sent: Monday, June 09, 2003 9:53 AM
  Subject: Re: TOMCAT IIS and html


  It will serve every thing ( all files) within your app context not just jsp
  and servlet

  -Dan

  -
  - Original Message - 
  From: "Dominic Parry" <[EMAIL PROTECTED]>
  To: "Tomcat Users List" <[EMAIL PROTECTED]>
  Sent: Monday, June 09, 2003 12:10 AM
  Subject: TOMCAT IIS and html


  Hi

  Can I safely assume that When tomcat is configured with IIS that IIS will
  always serv anything but JSP's and Servlets? Even when HTML files etc lie
  within Tomcat contexts?

  Thanks

  Dom

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



TOMCAT IIS and html

2003-06-09 Thread Dominic Parry
Hi

Can I safely assume that When tomcat is configured with IIS that IIS will always serv 
anything but JSP's and Servlets? Even when HTML files etc lie within Tomcat contexts?

Thanks

Dom

Re: How can I run tomcat on port 8080 and have the users think it's on port 80?

2003-06-06 Thread Dominic Parry
You might find this useful. Skip to near the bottom.

http://server.ccl.net/cca/software/UNIX/apache/tomcat4.1.18-linux/README.shtml

cheers!

Dom
  - Original Message - 
  From: Michael Mattox 
  To: Tomcat Users List 
  Sent: Friday, June 06, 2003 2:08 PM
  Subject: How can I run tomcat on port 8080 and have the users think it's on port 80?


  I'd like to run Tomcat on port 80 but I don't want to run it as root.  Is it
  possible to run it on 8080 yet have the users access it via port 80?  My
  admin has set it up this way but the problem is all relative links in my app
  show up as :8080.  So once the user clicks on a link they see 8080 from then
  on.

  Thanks,
  Michael Mattox




  --
  This E-mail is confidential.  It may also be legally privileged.  If you are
  not the addressee you may not copy, forward, disclose or use any part of it.
  If you have received this message in error, please delete it and all copies
  from your system and notify the sender immediately by return E-mail.
  Internet communications cannot be guaranteed to be timely, secure, error or
  virus-free.  The sender does not accept liability for any errors or omissions.


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



Re: getResourceAsStream cached by Tomcat's Classloader?

2003-06-06 Thread Dominic Parry
I had similar issues with getResourceAsStream which caused me to go another
route. I now use:

new File(getServletContext().getRealPath("modules.xml")) to read files in.

I'm not sure what your needs are, but mine were satisfied by using my
method.

Hope this helps

Dom
- Original Message - 
From: "Brandon Goodin" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Thursday, June 05, 2003 4:04 PM
Subject: RE: getResourceAsStream cached by Tomcat's Classloader?


> Yes, it is closed.
>
> Brandon Goodin
>
> -Original Message-
> From: Dominic Parry [mailto:[EMAIL PROTECTED]
> Sent: Thursday, June 05, 2003 7:44 AM
> To: Tomcat Users List
> Subject: Re: getResourceAsStream cached by Tomcat's Classloader?
>
>
> did you close the original stream before making changes and reloading?
>
>
> - Original Message -
> From: "Brandon Goodin" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, June 05, 2003 3:45 PM
> Subject: getResourceAsStream cached by Tomcat's Classloader?
>
>
> > I saw a question similar to this asked in the Archives early in 2002. I
> > didn't see a response to it. So, I hope there is an answer.
> >
> > I have a generic config file that is an xml file. We'll call it
> > my-config.xml.
> >
> > When I load my-config.xml using
> > Classloader.getResourceAsStream("my-config.xml") everything works great.
> > However, when I make a change to that file and again call
> > Classloader.getResourceAsStream("my-config.xml") the changes are not
> picked
> > up and the same initial resource is returned. How do I get the
Classloader
> > to reconginze the resource changes? I'm using Tomcat 4.1.18.
> >
> >
> > Brandon Goodin
> >
> >
> > -
> > 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]



Admin Tool

2003-06-05 Thread Dominic Parry
Hi

I've noticed something funny about the Tomcat Admin tool. If you change
details about users with the tool, it removes the roles entry for that user.
Has anyone else experience this?

Thanks

Dom




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



Re: getResourceAsStream cached by Tomcat's Classloader?

2003-06-05 Thread Dominic Parry
did you close the original stream before making changes and reloading?


- Original Message - 
From: "Brandon Goodin" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, June 05, 2003 3:45 PM
Subject: getResourceAsStream cached by Tomcat's Classloader?


> I saw a question similar to this asked in the Archives early in 2002. I
> didn't see a response to it. So, I hope there is an answer.
>
> I have a generic config file that is an xml file. We'll call it
> my-config.xml.
>
> When I load my-config.xml using
> Classloader.getResourceAsStream("my-config.xml") everything works great.
> However, when I make a change to that file and again call
> Classloader.getResourceAsStream("my-config.xml") the changes are not
picked
> up and the same initial resource is returned. How do I get the Classloader
> to reconginze the resource changes? I'm using Tomcat 4.1.18.
>
>
> Brandon Goodin
>
>
> -
> 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 bug? WinXp, IE6, Tomcat 4.1.24, JSPTags

2003-06-05 Thread Dominic Parry
What is the page Title? could you give the whole error output?
  - Original Message - 
  From: Graham Reeds 
  To: Tomcat Users List 
  Sent: Thursday, June 05, 2003 11:55 AM
  Subject: Tomcat bug? WinXp, IE6, Tomcat 4.1.24, JSPTags


  I dunno if this is the correct mailing since I have only just joined, but...

  I am using Tomcat 4.1.24, the JDK 1.3.1.08.  Unfortunately I can't change
  the version numbers since our client is using this version.

  I am new to Java and currently feeling my way round JSP Tags and the found
  what I believe is a bug.  I have a very simple tag called name in my tld xml
  file.

  Ergo the getter and setter code is: getName() and setName();

  Change the tag name to pageTitle you'd expect the getter and setter to be
  getPageTitle() and setPageTitle().  This compiles fine but running it in my
  browser (IE6) causes an 'org.apache.jasper.JasperException' to fire.  Change
  the getter and setter to getpageTitle(), etc. and it works fine.

  I would of assumed that it changed 'name' to a capital it would
  automatically change the first letter of 'pageTitle' to capitals.  Is this
  standard behaviour?

  --

  Graham Reeds,
  [EMAIL PROTECTED] | http://omnieng.co.uk




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



Re: changing tomcat configuration on the fly

2003-06-05 Thread Dominic Parry
you can find it in the Tomcat source. Just look in the source for the admin app.
  - Original Message - 
  From: Adi Katz 
  To: [EMAIL PROTECTED] 
  Sent: Wednesday, June 04, 2003 4:08 PM
  Subject: changing tomcat configuration on the fly


  Hello,

  I am interested in changing the server.xml and web.xml files through
  servlets and then reload them.
  So for example I can add JNDI entries in server.xml without the nedd to
  stop/start tomcat again.
  Something very similar is done in the admin app ( shipped with tomcat ).
  Does anybody have a code example or some tips on how to do it ??

  Thanks,
  Adi


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



using manager functions from within servlets - SOLVED

2003-06-04 Thread Dominic Parry



Hi I managed to get this working:
 
  try 
{ URL url = "" URL("http://localhost/manager/reload?path=/HamiltonBank");   HttpURLConnection 
con = (HttpURLConnection)url.openConnection(); 
// Add the necessary Auth Header 
information   String input = "username" + ":" + 
"password";   String output = new 
String(Base64.encodeBytes(input.getBytes()));    
  con.setRequestProperty("Authorization", "Basic " + 
output);     // Get the page 
i.e. Execute the manager function   Object tempObj = 
con.getContent();    
  con.disconnect();  } catch (Exception e) 
{   out.write(e.toString()+"");  }
basically it can be used to execute any manager 
function from a servlet. the Base64 class is attached.
 
Thank you for everyone who gave 
advice!
 
Dom


Base64.java
Description: java/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: Connecting IIS 5.0 to Tomcat 4.1.24? - SOLVED

2003-06-04 Thread Dominic Parry
Hi Paul

I've figured out what these warnings are from. I put all the tomcat jars in my 
jdk\jre\lib\ext folder. Not a good idea. I removed them and added thier original path 
to my CLASSPATH and things are working much better. I could not run jsp's when I had 
it set up the other way!

Hope this helps you too!

Dom
  - Original Message - 
  From: Dominic Parry 
  To: Tomcat Users List 
  Sent: Wednesday, June 04, 2003 8:49 AM
  Subject: Re: Connecting IIS 5.0 to Tomcat 4.1.24? - SOLVED


  It's a pleasure! I have similar warnings in my logs, but they haven't caused any 
problems so far. Does anyone know what they are caused by?

  Error: [jk_worker_ajp13.c (416)]: ajp13.service() ajpGetReply recoverable error 
12

  Error: [jk_workerEnv.c (482)]: workerEnv.processCallbacks() Error reading reply

  Error: [jk_channel_socket.c (557)]: channelSocket.receive(): Error receiving message 
body -1 53

  Thanks

  Dom


  - Original Message - 
From: David Legg 
To: 'Tomcat Users List' 
Sent: Tuesday, June 03, 2003 11:43 PM
Subject: RE: Connecting IIS 5.0 to Tomcat 4.1.24? - SOLVED


Hi Dom,

Thanks ever so much for your help.

The magic missing ingredient turned out to be that [shm] entry in the
workers2.properties file.  I had seen it mentioned in various bits of
documentation but got the impression it was something to do with connecting
to an Apache server via shared memory.

You were also spot on about checking the event log.  There was an entry in
there warning: -

  Error: [jk_shm.c (333)]: shm.init(): No file

I also noticed the following 3 warnings which are still there after the
system started working: -

Error: [jk_worker_lb.c (415)]: lb.service() unrecoverable error...
Error: [jk_worker_lb.c (402)]: lb.service() worker failed 12 for
ajp13:127.0.0.1:8009
Error: [jk_endpoint.c (90)]: workerEnv.init() create slot epStat.0 failed

I'm presuming they aren't serious but I'll keep an eye on them.

Anyway, thanks again.  Now all I have to do is install Cocoon followed by
the Lenya Content Management System and I'm ready :-)

Regards,

David Legg
Webmaster - 3Dlabs
Phone: +44 (0)118 982 8254
http://www.3dlabs.com
mailto:[EMAIL PROTECTED]

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



Re: Connecting IIS 5.0 to Tomcat 4.1.24? - SOLVED

2003-06-04 Thread Dominic Parry
It's a pleasure! I have similar warnings in my logs, but they haven't caused any 
problems so far. Does anyone know what they are caused by?

Error: [jk_worker_ajp13.c (416)]: ajp13.service() ajpGetReply recoverable error 12

Error: [jk_workerEnv.c (482)]: workerEnv.processCallbacks() Error reading reply

Error: [jk_channel_socket.c (557)]: channelSocket.receive(): Error receiving message 
body -1 53

Thanks

Dom


- Original Message - 
  From: David Legg 
  To: 'Tomcat Users List' 
  Sent: Tuesday, June 03, 2003 11:43 PM
  Subject: RE: Connecting IIS 5.0 to Tomcat 4.1.24? - SOLVED


  Hi Dom,

  Thanks ever so much for your help.

  The magic missing ingredient turned out to be that [shm] entry in the
  workers2.properties file.  I had seen it mentioned in various bits of
  documentation but got the impression it was something to do with connecting
  to an Apache server via shared memory.

  You were also spot on about checking the event log.  There was an entry in
  there warning: -

Error: [jk_shm.c (333)]: shm.init(): No file

  I also noticed the following 3 warnings which are still there after the
  system started working: -

  Error: [jk_worker_lb.c (415)]: lb.service() unrecoverable error...
  Error: [jk_worker_lb.c (402)]: lb.service() worker failed 12 for
  ajp13:127.0.0.1:8009
  Error: [jk_endpoint.c (90)]: workerEnv.init() create slot epStat.0 failed

  I'm presuming they aren't serious but I'll keep an eye on them.

  Anyway, thanks again.  Now all I have to do is install Cocoon followed by
  the Lenya Content Management System and I'm ready :-)

  Regards,

  David Legg
  Webmaster - 3Dlabs
  Phone: +44 (0)118 982 8254
  http://www.3dlabs.com
  mailto:[EMAIL PROTECTED]

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



Re: Connecting IIS 5.0 to Tomcat 4.1.24?

2003-06-04 Thread Dominic Parry
Hi David

I have exactly that configuration working :). Here are my configs:

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

workers2.properties:

[shm]
file=C:\Program Files\Apache Group\Tomcat 4.1\logs\shm.file
size=1048576

[channel.socket:127.0.0.1:8009]
info=Ajp13 forwarding over socket
tomcatId=localhost:8009

# Map the Tomcat examples webapp to the Web server uri space
[uri:/examples/*]
info=Map the whole webapp

My jk2.properties is empty because I just wanted to use the defaults as I'm not 
running anything special on it.

Other things to note:

1) In the IIS console:

Make sure that the jakarta virtual folder points to the location of the 
isapi_redirector.dll file. It should also have execute permissions.

2) Check that the event viewer has no errors generated by the connector when you 
restart IIS.

3) I had to give permissions on the folder containing isapi_redirector.dll to the 
IUSR_[your host name here] account.

4) Believe it or not, I had to reboot winXP, as a last resort, but it worked. I think 
it's because of the order in which the services are loaded.
 
Hope this helps!

Dom

  - Original Message - 
  From: David Legg 
  To: '[EMAIL PROTECTED]' 
  Sent: Tuesday, June 03, 2003 7:25 PM
  Subject: Connecting IIS 5.0 to Tomcat 4.1.24?


  I'm trying to set up the latest release of Tomcat (4.1.24) on a W2K server
  running IIS 5.0.  Tomcat is happily running as a service and responding to
  web requests on port 8080.  I'm using the tomcat-4.1.24-LE-jdk14.zip and
  I've installed Java 1.4.1_02

  Has anyone managed to get IIS to talk to this version of Tomcat?

  Following hints in the Tomcat documentation I've tried installing JK2
  version 2.0.2 but without success.  For simplicity I've tried hooking up the
  /examples context.  http://localhost:8080/examples/jsp works fine but
  http://localhost/examples/jsp gives me a 404 error.

  The registry file contains: -

[HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi
  Redirector\2.0]
"serverRoot"="c:\\tomcat4"
"extensionUri"="/jakarta/isapi_redirector2.dll"
"workersFile"="c:\\tomcat4\\conf\\workers2.properties"
"logLevel"="INFO"

  The jk2.properties file contains: -

# The default port is 8009 but you can use another one
channelSocket.port=8009

  The workers2.properties files contains: -

[channel.socket:localhost:8009]
info=Forwarding over socket connection to local tomcat instance.
host=localhost
port=8009

[ajp13:localhost:8009]
info=Ajp13 worker, connects to tomcat instance using AJP 1.3 protocol.
channel=channel.socket:localhost:8009

[uri:/examples/*]
info=JSP examples
context=/examples

  I've configured several versions of Tomcat over the years and am getting
  used to spending a couple of weeks tinkering with it each time :-)  I'd love
  to hear from anyone who has got it working.

  Regards,

  David Legg
  Webmaster - 3Dlabs
  http://www.3dlabs.com
  mailto:[EMAIL PROTECTED]

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



Re: Problems with Tomcat - IIS integration ...

2003-06-03 Thread Dominic Parry
check the filter setting in the IIS control Panel in the virtual folder that you 
created for jakarta.
  - Original Message - 
  From: Adeniyi Ibironke 
  To: [EMAIL PROTECTED] 
  Sent: Tuesday, June 03, 2003 11:49 AM
  Subject: Problems with Tomcat - IIS integration ...


  Hi,
  I have followed instructions on performing the above. However, since I've rebooted, 
Tomcat now appears to intercept all HTTP requests through localhost.
   
  Can you please advise a sequence of steps to ensure Tomcat executes only .jsp pages. 
Many thanks.
   
  Niyi
   


Re: Issues with web.xml

2003-06-03 Thread Dominic Parry
Hi Robert

I think I may know what your problem is. I remember reading that you web.xml has to be 
in a specific order:

in your


HelloWorld
HelloWorld

  My test servlet

  

you need to swap the  and the  items around:


HelloWorld

  My test servlet

HelloWorld
  

Here is the part I was talking about. It's from the application developers guide in 
the tomcat docs : tomcat-docs\appdev\deployment.html
NOTE - The Servlet Specification includes a Document Type Descriptor (DTD) for the web 
application deployment descriptor, and Tomcat 4 enforces the rules defined here when 
processing your application's /WEB-INF/web.xml file. In particular, you must enter 
your descriptor elements (such as , , and  in the 
order defined by the DTD (see Section 13.3).



hope this helps.



Cheers

Dom

  - Original Message - 
  From: Robert Seeger 
  To: [EMAIL PROTECTED] 
  Sent: Tuesday, June 03, 2003 12:08 PM
  Subject: Issues with web.xml


  I'm having issues with the web.xml file in my webapps/root/web-inf 
  directory. What I want to do is be able to specify each individual 
  servlet that can be run, by using  and  tags. 
  Unfortunately, the best I have been able to do is use a generic servlet 
  invoker to allow every servlet to be accessed. When I try to set things 
  up so that only one servlet can be accessed, there are errors showing up 
  in the dos box when I start Tomcat... which proceed to scroll of the 
  screen faster than I can look at them. They do not show up in any of the 
  logfiles in the logs directory. I was hoping someone could take a look 
  at the web.xml file I'm using and tell me if my error is an obvious one, 
  and how to fix it. I tried everything I could think of to make it work, 
  and checked all the documentation I could find.

  I'm running Tomcat 4.1.24 on Windows 98.

  Thank you in advance,
  Robert Seeger

  -- Working web.xml, that allows all servlets in the directory to 
  be accessed --
  

  http://java.sun.com/dtd/web-app_2_3.dtd";>

  

Tomcat Examples

  Tomcat Example servlets and JSP pages.


  
  invoker
  /servlet/*
  

  
  

  -- Non-working web.xml that causes errors --
  

  http://java.sun.com/dtd/web-app_2_3.dtd";>

  

Tomcat Examples

  Tomcat Example servlets and JSP pages.



  HelloWorld
  HelloWorld
  
My test servlet
  



  HelloWorld
  /HelloWorld


  
  


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



Re: Issues with web.xml

2003-06-03 Thread Dominic Parry
Hi Robert

How are you running Tomcat? With Apache, or with PWS? or standalone?
  - Original Message - 
  From: Robert Seeger 
  To: [EMAIL PROTECTED] 
  Sent: Tuesday, June 03, 2003 12:08 PM
  Subject: Issues with web.xml


  I'm having issues with the web.xml file in my webapps/root/web-inf 
  directory. What I want to do is be able to specify each individual 
  servlet that can be run, by using  and  tags. 
  Unfortunately, the best I have been able to do is use a generic servlet 
  invoker to allow every servlet to be accessed. When I try to set things 
  up so that only one servlet can be accessed, there are errors showing up 
  in the dos box when I start Tomcat... which proceed to scroll of the 
  screen faster than I can look at them. They do not show up in any of the 
  logfiles in the logs directory. I was hoping someone could take a look 
  at the web.xml file I'm using and tell me if my error is an obvious one, 
  and how to fix it. I tried everything I could think of to make it work, 
  and checked all the documentation I could find.

  I'm running Tomcat 4.1.24 on Windows 98.

  Thank you in advance,
  Robert Seeger

  -- Working web.xml, that allows all servlets in the directory to 
  be accessed --
  

  http://java.sun.com/dtd/web-app_2_3.dtd";>

  

Tomcat Examples

  Tomcat Example servlets and JSP pages.


  
  invoker
  /servlet/*
  

  
  

  -- Non-working web.xml that causes errors --
  

  http://java.sun.com/dtd/web-app_2_3.dtd";>

  

Tomcat Examples

  Tomcat Example servlets and JSP pages.



  HelloWorld
  HelloWorld
  
My test servlet
  



  HelloWorld
  /HelloWorld


  
  


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



Catalina api and Jars

2003-06-03 Thread Dominic Parry
Hi

I don't have any of the jar files that people mention in this list regarding Catalina. 
Tomcat is up and working fine. These are the jars I have in my tomcat4.1\common\lib 
folder:

activation.jar
ant.jar
commons-collections.jar
commons-dbcp.jar
commons-logging-api.jar
commons-pool.jar
jasper-compiler.jar
jasper-runtime.jar
jdbc2_0-stdext.jar
jndi.jar
jta.jar
mail.jar
naming-common.jar
naming-factory.jar
naming-resources.jar
servlet.jar
tools.jar

Is this a problem? The only problem I've had so far is that I could use: 

import org.apache.catalina.*;

but I can use:

org.apache.ant.*;

is there a list of jar files somewhere that I have overlooked? I'm assuming that if I 
have then I need to add that dir to my classpath.

Thanks

Dom

Re: Merging Multiple Web Apps

2003-06-03 Thread Dominic Parry
Am I understanding you correctly:

You have /context1 and /context2 and you want to access them both from /contextNew ? 
The problem then, is that you need to point one context at 2 old ones, not 2 old ones 
at a new one. As far as I know, this is not possible.

The other solution is a find and replace scenario with a good editor like UltraEdit. 
I've had to do this before. Not pretty. I did learn not to hard code _ANYTHING_ though.
  - Original Message - 
  From: Mike Medwith 
  To: [EMAIL PROTECTED] 
  Sent: Monday, June 02, 2003 9:40 PM
  Subject: Re: Merging Multiple Web Apps



  I was thinking more of aliasing the context if possible in the server.xml or 
  on the apache level.

  -Mike

  >From: "Dominic Parry" <[EMAIL PROTECTED]>
  >Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
  >To: "Tomcat Users List" <[EMAIL PROTECTED]>
  >Subject: Re: Merging Multiple Web Apps
  >Date: Mon, 2 Jun 2003 21:35:18 +0200
  >MIME-Version: 1.0
  >Received: from apache.org ([208.185.179.12]) by mc3-f24.law16.hotmail.com 
  >with Microsoft SMTPSVC(5.0.2195.5600); Mon, 2 Jun 2003 12:35:59 -0700
  >Received: (qmail 1567 invoked by uid 500); 2 Jun 2003 19:35:18 -
  >Received: (qmail 1125 invoked from network); 2 Jun 2003 19:35:17 -
  >Received: from elephant.ru.ac.za (146.231.128.21)  by daedalus.apache.org 
  >with SMTP; 2 Jun 2003 19:35:17 -
  >Received: from leet.dsl.ru.ac.za ([146.231.113.83] helo=leet)by 
  >elephant.ru.ac.za with smtp (Exim 4.20)id 19Mv5T-0008SO-Axfor 
  >[EMAIL PROTECTED]; Mon, 02 Jun 2003 21:35:19 +0200
  >X-Message-Info: JGTYoYF78jEHjJx36Oi8+Q1OJDRSDidP
  >Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
  >Precedence: bulk
  >List-Unsubscribe: <mailto:[EMAIL PROTECTED]>
  >List-Subscribe: <mailto:[EMAIL PROTECTED]>
  >List-Help: <mailto:[EMAIL PROTECTED]>
  >List-Post: <mailto:[EMAIL PROTECTED]>
  >List-Id: "Tomcat Users List" 
  >Delivered-To: mailing list [EMAIL PROTECTED]
  >Message-ID: <[EMAIL PROTECTED]>
  >References: <[EMAIL PROTECTED]>
  >X-Priority: 3
  >X-MSMail-Priority: Normal
  >X-Mailer: Microsoft Outlook Express 6.00.2800.1158
  >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
  >X-Spam-Score: -4.7 ()
  >X-Scanner: exiscan for exim4 (http://duncanthrax.net/exiscan/) 
  >*19Mv5T-0008SO-Ax*CdjaxLpmZhI*
  >X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N
  >Return-Path: 
  >[EMAIL PROTECTED]
  >X-OriginalArrivalTime: 02 Jun 2003 19:36:00.0156 (UTC) 
  >FILETIME=[32169DC0:01C3293E]
  >
  >virtual folders? or sym links?
  >   - Original Message -
  >   From: Mike Medwith
  >   To: [EMAIL PROTECTED]
  >   Sent: Monday, June 02, 2003 9:32 PM
  >   Subject: Merging Multiple Web Apps
  >
  >
  >   I have two webapps running under different contexts.  They are both 
  >fairly
  >   large and reference their context within the coding.  Is there any way I 
  >can
  >   setup an alias for each of the old apps and point them both at a new
  >   context?
  >
  >   Hopefully this is something simple that I have just over looked.
  >
  >
  >   -Mike Medwith
  >
  >   _
  >
  >
  >
  >   -
  >   To unsubscribe, e-mail: [EMAIL PROTECTED]
  >   For additional commands, e-mail: [EMAIL PROTECTED]
  >

  _
  Help STOP SPAM with the new MSN 8 and get 2 months FREE*  
  http://join.msn.com/?page=features/junkmail


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



Re: Merging Multiple Web Apps

2003-06-03 Thread Dominic Parry
virtual folders? or sym links?
  - Original Message - 
  From: Mike Medwith 
  To: [EMAIL PROTECTED] 
  Sent: Monday, June 02, 2003 9:32 PM
  Subject: Merging Multiple Web Apps


  I have two webapps running under different contexts.  They are both fairly 
  large and reference their context within the coding.  Is there any way I can 
  setup an alias for each of the old apps and point them both at a new 
  context?

  Hopefully this is something simple that I have just over looked.


  -Mike Medwith

  _



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



Re: Manager app and HttpURLConnection

2003-06-03 Thread Dominic Parry
Thanks Tim,

This is why I assumed that http://user:[EMAIL PROTECTED]/reload?path=/DynaServlet 
would work, as it does when called from a browser window. Does anyone know of any 
other way of calling this url with credentials? I'm trying to get the Servlet to 
reload itself every time it runs. (For research purposes :) )

Thanks

Dom
  - Original Message - 
  From: Tim Funk 
  To: Tomcat Users List 
  Sent: Monday, June 02, 2003 1:43 PM
  Subject: Re: Manager app and HttpURLConnection


  That is because the manager servlet is protected. A 401 response code is a 
  challenge back to the client and the client needs to resend a new request 
  with the Header: WWW-Authenticate with the userid and password. More information:
  http://www.cis.ohio-state.edu/cgi-bin/rfc/rfc2068.html#sec-10.4.2

  -Tim

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



Manager app and HttpURLConnection

2003-06-02 Thread Dominic Parry
Hi

I'm trying to do this:

try {
 URL url = new URL("http://localhost/manager/reload?path=/DynaServlet";);
   HttpURLConnection con = (HttpURLConnection)url.openConnection();
   BufferedReader in = new BufferedReader(
new InputStreamReader(
con.getInputStream()));
 String inputLine;
while ((inputLine = in.readLine()) != null)
 out.write(inputLine + "");
 in.close();
  } catch (Exception e) {
   out.write(e.toString()+"");
  }

from an HttpServlet. I'm getting:

java.io.IOException: Server returned HTTP response code: 401 for URL: 
http://localhost/manager/reload?path=/DynaServlet

even when I change the URL to something like http://user:[EMAIL 
PROTECTED]/manager/reload?path=/DynaServet I get the same exception.

Any ideas why?

Thanks

Dom

Re: /admin

2003-06-02 Thread Dominic Parry
I that case, I can't seem to get it to run. When I try to deploy, I get:

2003-06-02 10:38:24 HostConfig[localhost]: Deploying web application directory admin
2003-06-02 10:38:24 StandardHost[localhost]: Installing web application at context 
path /admin from URL file:C:\Program Files\Apache Group\Tomcat 4.1\webapps\admin
2003-06-02 10:38:24 WebappLoader[/admin]: Deploying class repositories to work 
directory C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\admin
2003-06-02 10:38:24 WebappLoader[/admin]: Deploy class files /WEB-INF/classes to 
C:\Program Files\Apache Group\Tomcat 4.1\webapps\admin\WEB-INF\classes
2003-06-02 10:38:25 WebappLoader[/admin]: Deploy JAR /WEB-INF/lib/struts.jar to 
C:\Program Files\Apache Group\Tomcat 4.1\webapps\admin\WEB-INF\lib\struts.jar
2003-06-02 10:38:25 HostConfig[localhost] Error deploying web application directory 
admin
java.lang.NoClassDefFoundError: org/apache/naming/JndiPermission
 at 
org.apache.naming.resources.DirContextURLStreamHandler.openConnection(DirContextURLStreamHandler.java:135)
 at java.net.URL.openConnection(URL.java:943)
 at sun.net.www.protocol.jar.JarURLConnection.(JarURLConnection.java:64)
 at sun.net.www.protocol.jar.Handler.openConnection(Handler.java:24)
 at java.net.URL.openConnection(URL.java:943)
 at org.apache.catalina.startup.ContextConfig.tldScanJar(ContextConfig.java:903)
 at org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:868)
 at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:647)
 at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:243)
 at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
 at org.apache.catalina.core.StandardContext.start(StandardContext.java:3567)
 at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:821)
 at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
 at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)
 at 
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:307)
 at org.apache.catalina.core.StandardHost.install(StandardHost.java:772)
 at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:559)
 at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:401)
 at org.apache.catalina.startup.HostConfig.start(HostConfig.java:718)
 at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:358)
 at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196)
 at org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
 at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
 at org.apache.catalina.core.StandardService.start(StandardService.java:497)
 at org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
 at org.apache.catalina.startup.CatalinaService.start(CatalinaService.java:273)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at org.apache.catalina.startup.BootstrapService.start(BootstrapService.java:245)
 at org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:307)

I'm running tomcat with jk2 on IIS.
  - Original Message - 
  From: Kwok Peng Tuck 
  To: Tomcat Users List 
  Sent: Monday, June 02, 2003 12:30 PM
  Subject: Re: /admin


  No. You may use it even if it is connected to apache or some other webserver

  Dominic Parry wrote:

  >Hi
  >
  >I'm I right to assume that the /admin app is only needed to configure the Tomcat if 
it is used as a standalone web server.
  >
  >Thanks
  >
  >Dom 
  >  
  >


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



/admin

2003-06-02 Thread Dominic Parry
Hi

I'm I right to assume that the /admin app is only needed to configure the Tomcat if it 
is used as a standalone web server.

Thanks

Dom 

Re: oci8 driver problem on Linux

2002-04-23 Thread Dominic Parry

> Hi,
> I have been using classes12.zip in the CLASSPATH for oci8 driver on
> Win2k. Now I am porting on Linux6.2. It says the following error :
>
> java.lang.UnsatisfiedLinkError: no ocijdbc8 in java.library.path
> some other exception.. java.lang.UnsatisfiedLinkError: no ocijdbc8
> in java.library.path
>
> I placed classes12.zip in TOMCAT_HOME/lib and so it is into CLASSPATH when

Try renaming this to classes 12.jar It should work then.

> the tomcat is started(confirmed)..
> Can anyone tell me what the problem is and show me a way out.
>
> Thanks,
> Shiva.
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Standalone meaning??

2002-04-23 Thread Dominic Parry

IIS will only pass JSP and servlet stuff to Tomcat. All other content,
(which it can deal with), eg html will be served by IIS. This is of course
assuming you have install the Tomcat extension for IIS?

Hope this helps

Dom

---

Dominic Parry
B.Sc (Information Systems, Computer Science)
B.Sc (Hons) Computer Science
Rhodes University
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 23, 2002 10:58 AM
Subject: Standalone meaning??


> What does Standalone mean exactly? How can I configure this for running
> solely jsp and servlets, No html ( i use IIS for it)?
> Thanks.
> Jc
>
>
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
>
>


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




Re: Session already invalidated

2002-04-09 Thread Dominic Parry

> if( monitor.containsKey(user)){

Check what if this returns true of false for "has a session". Try 

if !(monitor.containsKey(user)){

see if the case where the user has no session now works.

Hope this helps.


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: someone....need help!!!!....

2002-04-09 Thread Dominic Parry

This is ok during development but is bad for performance. Once development
is done you should really set reloadable=false.

The manager works fine, I find running an app which precompiled the jsp
helps too.

Cheers

Dominic Parry
B.Sc. (Computer Science, Information Systems)
B.Sc Hons Computer Science
M.Sc. I Computer Science
Rhodes University
- Original Message -
From: "Sefton, Adam" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Tuesday, April 09, 2002 5:47 PM
Subject: RE: someoneneed help


> I've only been using TC for a couple of days, so I might be wrong, but:
>
> I found that you need to set server.xml so it reloads the pages:
>
> in server.xml, before your first , place:
>
> 
>
> this will cause all your contexts to reload automatically without having
to use the manager application.  This works for my servlets, not tried it
with JSPs yet.
>
> Once you've added the line to server.xml, you'll also need to restart the
tomcat server to take into account the change to the xml file, but then you
should be ok.
>
> Does this help?
>
> -Original Message-
> From: Barney Hamish [mailto:[EMAIL PROTECTED]]
> Sent: 09 April 2002 16:44
> To: 'Tomcat Users List'
> Subject: RE: someoneneed help
>
>
> Try touching the JSPs before you run them to make sure that the timestamp
is
> changed so tomcat knows to re-compile the JSP.
>
> -Original Message-
> From: Giorgio Ponza [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, April 09, 2002 5:37 PM
> To: Tomcat Users List
> Subject: Re: someoneneed help
>
>
> Sometimes happens also to me.
> My solution is to empty the folder /tomcat/work
> so Tomcat must recompile it.
> But i think some gurus here have a better solution.
> Giorgio
>
> - Original Message -
> From: "ajith kondapalli" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, April 09, 2002 5:28 PM
> Subject: someoneneed help
>
>
> > hai,
> > I have just started using tomcat to deploy some
> > webapps...the problem:I create the webapps for the
> > first time and deploy them,it saves the changes and
> > runs properly..but later "changes" in the JSP i am
> > makin are not reflected in the outputso if i run
> > the program for the first time then it shows the
> > changes but later after i make some changes and run it
> > the second time,it doesnt reflect those changesi
> > dont undertsand what the problem issomeone plz
> > help...!!!
> >  thanks
> >   ajith
> >
> > __
> > Do You Yahoo!?
> > Yahoo! Tax Center - online filing with TurboTax
> > http://taxes.yahoo.com/
> >
> > --
> > To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> > For additional commands: <mailto:[EMAIL PROTECTED]>
> > Troubles with the list: <mailto:[EMAIL PROTECTED]>
> >
>
>
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
>
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
>
>
> **
> This message may contain information which is confidential or privileged.
> If you are not the intended recipient, please advise the sender
immediately
> by reply e-mail and delete this message and any attachments
> without retaining a copy.
>
> **
>
>
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
>
>


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




Re: zipped class file.

2002-04-09 Thread Dominic Parry

rename the file to .jar, it should work.

Dominic Parry
B.Sc (Information Systems, Computer Science)
B.Sc (Hons) Computer Science
Rhodes University
- Original Message - 
From: "Xiao, Wei" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 09, 2002 3:26 PM
Subject: zipped class file.


> Can I still use zip file as archived class file? I put it in the
> /webapps/app/web-inf/lib directory, it doesn't not seem to work.
> 
> Thanks.
> 
> Wei
> 
> Wei Xiao
> Web Development
> Safelite Glass Corp
> 614.798.2361
> 
> 


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




Re: NIGHTMARE

2002-04-09 Thread Dominic Parry

I think it is, try their home page. www.opera.com

cheers

Dominic Parry
B.Sc (Information Systems, Computer Science)
B.Sc (Hons) Computer Science
Rhodes University
- Original Message -
From: "Jean-Luc BEAUDET" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, April 09, 2002 2:17 PM
Subject: Re: NIGHTMARE


> Dominic Parry a Ýcrit :
>
> > Ever heard of Opera? Now that works Damn well.
> >
> > Dominic Parry
> > B.Sc. (Computer Science, Information Systems)
> > B.Sc Hons Computer Science
> > M.Sc. I Computer Science
> > Rhodes University
>
> Hi !
>
> I had yur address on Tomcat's User List.
>
> Well, do yu know if Opera is avalaible for SOLARIS 8 ?
>
> Thanks yu.
>
> Jean-Luc :O)
>
>
>
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
>
>


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




Re: NIGHTMARE

2002-04-09 Thread Dominic Parry

Ever heard of Opera? Now that works Damn well.

Dominic Parry
B.Sc. (Computer Science, Information Systems)
B.Sc Hons Computer Science
M.Sc. I Computer Science
Rhodes University
- Original Message -
From: "Martin Mauri" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, April 08, 2002 10:34 PM
Subject: Re: NIGHTMARE


> Yes I know. I have 6.22 and it works fine, though it's pretty heavy to
start
> up. Once it's up is damn good. And the interface rocks!
>
> - Original Message -
> From: "Timlin, Bob" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Monday, April 08, 2002 5:33 PM
> Subject: RE: NIGHTMARE
>
>
> > Well Netscape is still around and version 6.22 is damm good.  Remember
> > Netscape is part of the Sun/AOL alliance.
> >
> > -Original Message-
> > From: Martin Mauri [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, April 08, 2002 12:55 PM
> > To: Tomcat Users List
> > Subject: Re: NIGHTMARE
> >
> > Anyway I have a little scare about M$ strategies. Figure out that they
> > always have something under the hood. Remember the fight against
IExplorer
> > and Netscape Navigator, who won?
> >
> > - Original Message -
> > From: "Timlin, Bob" <[EMAIL PROTECTED]>
> > To: "Tomcat Users List" <[EMAIL PROTECTED]>
> > Sent: Monday, April 08, 2002 4:51 PM
> > Subject: RE: NIGHTMARE
> >
> >
> > > As usual, by the time they figure it out, it will be a fact two years
> > deep.
> > >
> > > -Original Message-
> > > From: Kemp Randy-W18971 [mailto:[EMAIL PROTECTED]]
> > > Sent: Monday, April 08, 2002 11:22 AM
> > > To: Tomcat Users List
> > > Subject: RE: NIGHTMARE
> > >
> > > While I am a big J2EE fan, I wonder if Microsoft has heard this news?
> > >
> > > -Original Message-
> > > From: Timlin, Bob [mailto:[EMAIL PROTECTED]]
> > > Sent: Monday, April 08, 2002 12:20 PM
> > > To: Tomcat Users List
> > > Subject: RE: NIGHTMARE
> > >
> > >
> > > Except PHP has no FUTURE.  The whole world is moving to J2EE.
> > >
> > > -Original Message-
> > > From: Micael Padraig Og mac Grene [mailto:[EMAIL PROTECTED]]
> > > Sent: Monday, April 08, 2002 10:14 AM
> > > To: Tomcat Users List
> > > Subject: Re: NIGHTMARE
> > >
> > > Good move!   If you find Tomcat hard, you need to stick to PHP.
> > >
> > > At 01:22 PM 4/8/02 +, you wrote:
> > > >Your software, Tomcat, is a nightmare to install. I've spent 2 WHOLE
> days
> > > >trying to make it work without success.
> > > >
> > > >Endless configuration files, paths, etc. making this a impossible
> > software
> > > >to use. I doubt I'm the only one who has complaint.
> > > >
> > > >I won't use this crap, I'm switching to PHP, took me 5 minutes to
> figure
> > > >that out.
> > > >
> > > >  || |||  
> > > >
> > > >Árni Arent Guðlaugsson
> > > >Forritari og Autonomy sérfræðingur
> > > >Íslandsvefir ehf.
> > > >Thorvaldsensstræti 4
> > > >101 Reykjavík / Iceland
> > > >--
> > > >Tel: +354 552 6300
> > > >Fax: +354 552 6302
> > > >E-mail: [EMAIL PROTECTED]
> > > >http://www.islandsvefir.is/
> > > >http://www.ha.is/
> > > >
> > > >Bættu ha.is á vefsíðuna þína:
> > > >http://www.ha.is/almennt/tenging.asp
> > > >
> > > >|| |||  
> > > >
> > > >
> > > >--
> > > >To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> > > >For additional commands: <mailto:[EMAIL PROTECTED]>
> > > >Troubles with the list: <mailto:[EMAIL PROTECTED]>
> > >
> > >
> > >
> > > --
> > > To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> > > For additional commands: <mailto:[EMAIL PROTECTED]>
> > > Troubles with the list: <mailto:[EMAIL PROTECTED]>
> > >
> > >
> > >
> > > --
> > > To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> > > For additional commands: <mailto:[EMAIL PROTECTED]>
> > > Troubles with the list: <mailto:[EMAIL PROTECTED]>
> > >
> > >
> > >
> > > --
> > > To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> > > For additional commands: <mailto:[EMAIL PROTECTED]>
> > > Troubles with the list: <mailto:[EMAIL PROTECTED]>
> >
> >
> > --
> > To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> > For additional commands: <mailto:[EMAIL PROTECTED]>
> > Troubles with the list: <mailto:[EMAIL PROTECTED]>
> >
> >
> >
> > --
> > To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> > For additional commands: <mailto:[EMAIL PROTECTED]>
> > Troubles with the list: <mailto:[EMAIL PROTECTED]>
>
>
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
>
>


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




Re: Managing WebApplications

2002-04-04 Thread Dominic Parry

I would also like to know the same thing.

Thanks

Dominic Parry
B.Sc (Information Systems, Computer Science)
B.Sc (Hons) Computer Science
Rhodes University
- Original Message - 
From: "Dieter Kaltenbach" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, April 04, 2002 10:01 AM
Subject: Managing WebApplications


Hi,
 
the question is about managing WebApplications from a Java Application
without using the ManagerServlet.
I'm starting Tomcat by invoking the process-Method of the Catalina
class. Is there any way to get access to managing the WebApplications
(starting, stopping etc) within this context?
 
Thanks, Dieter.



--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




Re: Tomcat configuration question

2002-03-27 Thread Dominic Parry

Hi

find the following section in server.xml and change the port:

 

to ->

 


hope this helps. Server.xml should be in your conf directory in tomcat home.

cheers


Dominic Parry
B.Sc (Information Systems, Computer Science)
B.Sc (Hons) Computer Science
Rhodes University
- Original Message -
From: "Rohit Agarwal" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Thursday, March 28, 2002 9:53 AM
Subject: Re: Tomcat configuration question


> I have the same question, if somebody can help, that would be great.
Thanks.
>
> Rohit
> - Original Message -
> From: "Ibrahim Beyazit" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, March 27, 2002 6:47 PM
> Subject: Tomcat configuration question
>
>
> How would I configure Tomcat so that the default URL can be
www.company.com
> instead of localhost:8080? I got the domain part covered. (i.e I got
> www.company.com:8080 working. But I am having problems with getting rid of
> 8080. Any help will be appreciated
>
>
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
>
>


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




Re: Question on reloading web-applications.

2002-03-27 Thread Dominic Parry

> Hi Tarun,
>
> >One way would be provide every user a way to reload their web-application
only, without granting
>
> >access to the manager application (and thus without bothering the
sys-admin). Or is there a parameter
>
> >in Tomcat that checks whether the class files have changes every once in
a time-interval
>
> I thought exactly this is what happens if the reloadable parameter is set
to "true"...
>
> If i'm wrong please let me know.
>
> Fabian
>
>
>

Also on this note, does anyone know how to, if possible, add and remove web
contexts without restarting Tomcat?



>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




cvs

2002-03-27 Thread Dominic Parry
Hi

Is there an easier way to get everything I need to build tomcat 4 from the
csv repository other that getting all the required modules one at a time?

Thanks

Dominic Parry
B.Sc (Information Systems, Computer Science)
B.Sc (Hons) Computer Science
Rhodes University


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>