RE: mod_jk2 + Apache 2.0.49 + Tomcat 5.0.19

2005-01-27 Thread Cox, Charlie
Jk2 is deprecated, so you may want to look at mod_jk 1.2.8 which has all the 
jk2 enhancements(but still uses the jk syntax).

If you still need to use jk2, the Location matching works fine with 2.0.49. I 
have been using it for quite a while now with multiple vhosts.

Charlie

> -Original Message-
> From: Arantza Lozano [mailto:[EMAIL PROTECTED]
> Sent: Thursday, January 27, 2005 6:48 AM
> To: tomcat-user@jakarta.apache.org
> Subject: mod_jk2 + Apache 2.0.49 + Tomcat 5.0.19
> 
> Hi,
> 
> I´m configuring mod_jk2 with Apache 2.0.49 and Tomcat 5.0.19
> I've read a lot of documentation but I still have doubts about which
> configuration is better. This one:
> 
> 
> JkUriSet group ajp13:localhost:8009
> 
> 
> or this one:
> 
> [uri:www.home.org/application/*]
> group=ajp13:localhost:8009
> 
> I've read that when using the JkUriSet commands within a Location block the
> configuration gets confused
> between vhosts. Is that true? Why?
> 
> I prefer the first configuration because I want to centralize the
> configuration independently in each Virtualhost
> instead of having all uri mappings in the workers2.properties file.
> 
> Could you help me please?
> 
> Thanks in advanced.
> 
> Arantza
> 
> **  DISCLAIMER ***
> 
> This message may contain confidential, proprietary or legally privileged
> information.
> If you are not the intended recipient of this message, please notify it to the
> sender and delete without resending or backing it, as it is legally
> prohibited.
> 
> **  AVISO LEGAL **
> 
> Este mensaje puede contener información confidencial, en propiedad o
> legalmente protegida.
> Si usted no es el destinatario, le rogamos lo comunique al remitente y proceda
> a borrarlo, sin reenviarlo ni conservarlo, ya que su uso no autorizado está
> prohibido legalmente.
> 
> **


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



RE: Apache JK2 negative match

2005-01-26 Thread Cox, Charlie
Jk2 is deprecated, so you may want to switch to mod_jk 1.2.8 which now
has all the jk2 features. Since that can be rather involved for some
people, you can use PCRE in Apache 2.x.

I haven't tried this, but it should work.


This definitely works for leading path negative matches on /css and
/images:
 

now you can work on switching to tomcat ;)

Charlie

> -Original Message-
> From: news [mailto:[EMAIL PROTECTED] On Behalf Of John Patterson
> Sent: Wednesday, January 26, 2005 4:34 AM
> To: tomcat-user@jakarta.apache.org
> Subject: Apache JK2 negative match
> 
> Hi,
> 
> I am trying to get Apache 2.0 to forward all requests to a load
balanced Jetty
> pair via mod_jk2 EXCEPT static resources such as .jpg files.
> 
> Has anyone done this?
> 
> What I would like is some kind of negative match
> 
> 
>   JkUriSet group ajp13:localhost:8009
> 
> 
> Of course this syntax does not exist!  But how else can I do it?
> 
> Thanks,
> 
> John
> 
> 
> -
> 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: servlet help

2005-01-14 Thread Cox, Charlie
You need to tell Apache about your user directories.

Try this location to send anything starting with ~ to tomcat.


JkUriSet worker ajp13:localhost:8009


Charlie

> -Original Message-
> From: Casas, Claudia [mailto:[EMAIL PROTECTED]
> Sent: Thursday, January 13, 2005 11:42 AM
> To: Tomcat Users List
> Subject: RE: servlet help
> 
> I am using jk2, apache2, and tomcat5.5
> 
> -Original Message-
> From: Edmon Begoli [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, January 12, 2005 6:42 PM
> To: Tomcat Users List
> Subject: Re: servlet help
> 
> Claudia,
> 
> Are you using mod_jk with Apache and Tomcat?
> You should be able to configure in Apache's httpd.conf
> to forward particular url patterns to your Tomcat(s') worker(s).
> 
> Something like:
> 
> JkMount /yourapp/* yourworker
> 
> More details are in mod_jk documentation. I do not think that there is
a
> way
> to forward only servlet calls, as you can not be sure from the URL.
> Usually,
> your URL/URI will have some servlet app. specific context which will
> help
> you.
> 
> Regards,
> Edmon
> Software Architecture to the Rescue
> 
> - Original Message -
> From: "Casas, Claudia" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" 
> Sent: Wednesday, January 12, 2005 3:16 PM
> Subject: RE: servlet help
> 
> 
> Oki doki,
> I got my servlets to work from tomcat using port 8080
> (http://myserver:8080/~myacct/servlet/myservlet), but I still do not
> know how to make apache recognize my servlets and send them to tomcat.
I
> want to access (http://myserver/~myacct/servlet/myservlet)
> 
> I tried to add these lines to httpd.conf
> 
> JkUriSet worker ajp13:localhost:8009
> 
> 
> and also added these lines to workers2.properties
> 
> [uri:spark.iss.utep.edu/servlet/*]
> group=ajp13:localhost:8009
> 
> but still no luck! :( please help.
> 
> For reference I used the following taken from the web site:
> http://www.jolash.com/tomcat/
> 
> Configure the tomcat "web.xml" file in your tomcat's "conf" directory.
> You only need to do this if you are going to write servlets. After
doing
> this, you can put all your servlets into the subdirectory
> "WEB-INF/classes" of your webapp directory. And you can access those
> servlets with a URL like:
>  Uncomment the servlet element tags with the servlet-name of invoker
> (just search for invoker).
> 
> invoker
> 
>   org.apache.catalina.servlets.InvokerServlet
> 
> 
> debug
> 0
> 
> 2
> 
> 
> Uncomment the servlet-mapping element tags with the servlet-name of
> invoker.
> 
> 
> invoker
> /servlet/*
> 
> 
> 
> -Original Message-
> From: Casas, Claudia [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, January 12, 2005 11:56 AM
> To: tomcat-user@jakarta.apache.org
> Subject: servlet help
> 
> 
> I am running tomcat5.5.4, apache2.0.52 and jk2.
> 1)I an run my jsp's and servlets from root. I have configured tomcat
to
> run my jsp's from the homedirs, but I do not know how to configure
> tomcat to run servlets from the homedirs.
> 
> I can run my jsp's like this: http://myserver/~myhomedir/myfile.jsp or
> http://myserver:8080/~myhomedir/myfile.jsp
> Either way it works fine.
> What do I need to add so that my servlets run from my homedirs as
well??
> 
> These are my configuration files:
> 
> /usr/local/apache/workers2.properties
> 
> info=Ajp13 forwarding over socket
> tomcatId=localhost:8009
> 
> 
> #define the worker
> [ajp13:localhost:8009]
> channel=channel.socket:localhost:8009
> `
> # Map the Tomcat examples webapp to the Web server uri space
> #[uri:/jkstatus/*]
> #group=status:status
> 
> 
> 
> 
> # Uri mapping
> [uri:/jsp-examples/*]
> 
> 
> [uri:spark.iss.utep.edu/*.jsp]
> group=ajp13:localhost:8009
> 
> 
> 
> I added the following in my httpd.conf also:
> 
> 
> JkUriSet worker ajp13:localhost:8009
> 
> 
> 
> (Before I would just add the lines below in my httpd.conf, and jsp's
and
> servlets would work!
> JkMount /*.jsp ajp13
> JkMount /*/servlet/ ajp13)
> 
> 
> Also, I have the following in my server.xml file to run my jsp's from
my
> homedirs:
>   directoryName="wwwdocs"
> userClass="org.apache.catalina.startup.PasswdUserDatabase"/>
> 
> What am I missing???
> 
> 
> 
> -
> 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: Authentication isn't working with mod_jk 1.7.3 beta.

2004-12-16 Thread Cox, Charlie
Are you sure Apache is not blocking your request? Enable the AccessLogValve
on tomcat and see if your request is getting through.

Charlie

> -Original Message-
> From: Jim Lynch [mailto:[EMAIL PROTECTED]
> Sent: Thursday, December 16, 2004 8:28 AM
> To: Tomcat Users List
> Subject: Re: Authentication isn't working with mod_jk 1.7.3 beta.
> 
> That's quite possible but not helpful.  The configuration is identical
> in essence to a working version on apache 1.3. Can anyone tell me what
> the differences are between the two are?
> 
> Jim.
> 
> Mladen Turk wrote:
> 
> > Jim Lynch wrote:
> >
> >> I finally got mod_jk to comple on RH 9 for Apache 2, but the
> >> authentication doesn't work through the connector.
> >
> >
> > This simply is not true.
> > It works very fine, and the authentication window is showed
> > to the user. Check your config.
> >
> >
> > Mladen.
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


RE: Error Preventing upgrade to Tomcat 5

2004-12-03 Thread Cox, Charlie
Is there a bugzilla number for this problem? I can't seem to find it. Also
do you know if it is also a problem in 5.5?

Thanks,
Charlie

> -Original Message-
> From: Jeanfrancois Arcand [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, November 30, 2004 3:16 PM
> To: Tomcat Users List
> Subject: Re: Error Preventing upgrade to Tomcat 5
> 
> 
> 
> Chris Cherrett wrote:
> > I have found a work around. It would require that we werite our jsps.
> >
> >
> > If I pass this to my controller it crashes in Tomcat 5
> > document.frmGeneral.taskService.value = "/";
> >
> > This works
> > document.frmGeneral.taskService.value = "";
> >
> > Does this help?
> 
> Yes. I will still fix the problem (bad code)
> 
> Thanks!
> 
> -- Jeanfrancois
> 
> 
> >
> > Thanks
> >
> > On Monday 29 November 2004 06:23 pm, Jean-Francois Arcand wrote:
> >
> >> From the source, it possible our code need a fix. Can you open a bug
> >>
> >>and attach a test case? Mainly, this line is failling:
> >>
> >>>199 // The first scenario occurs when the jsp is not
> >>>directly under / 200 // example: /utf16/foo.jsp
> >>>201 if (requestUri != null){
> >>>202 String currentIncludedUri
> >>>203 =
> >>>requestUri.substring(requestUri.indexOf(includeUri)); 204
> >>
> >>probably the indexOf is returning -1
> >>
> >>Thanks
> >>
> >>-- Jeanfrancois
> >>
> >>Chris Cherrett wrote:
> >>
> >>>I have tried to solve this now for awhile and can't seem to track it
> >>>down. The error only happens in Tomcat 5.
> >>>
> >>>When I call
> >>>
> >>>RequestDispatcher taskDispatcher =
> >>>req.getRequestDispatcher(taskServices[c]);
> >>>
> >>>if (taskDispatcher != null)
> >>>{
> >>>taskDispatcher.include(req, res);   //crashed
> >>>here }
> >>>
> >>>The request dispatcher gives me the following output:
> >>>
> >>>Nov 29, 2004 5:23:02 PM org.apache.catalina.core.ApplicationDispatcher
> >>>invoke SEVERE: Servlet.service() for servlet jsp threw exception
> >>>java.lang.StringIndexOutOfBoundsException: String index out of range:
-1
> >>>at java.lang.String.substring(String.java:1762)
> >>>at java.lang.String.substring(String.java:1735)
> >>>at
> >>>org.apache.jasper.servlet.JspServlet.service(JspServlet.java:202) at
> >>>javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at
>
>>>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicat
> >>>ionFilterChain.java:237) at
>
>>>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilte
> >>>rChain.java:157) at
>
>>>org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatch
> >>>er.java:674) at
>
>>>org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispa
> >>>tcher.java:576) at
>
>>>org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatc
> >>>her.java:501) at
> >>>TSIController.TSIController.service(TSIController.java:47) at
> >>>javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at
>
>>>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicat
> >>>ionFilterChain.java:237) at
>
>>>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilte
> >>>rChain.java:157) at
>
>>>org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve
> >>>.java:214) at
>
>>>org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve
> >>>.java:178) at
>
>>>org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:
> >>>126) at
>
>>>org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:
> >>>105) at
>
>>>org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.j
> >>>ava:107) at
>
>>>org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:14
> >>>8) at
>
>>>org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:825
> >>>) at
>
>>>org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processCo
> >>>nnection(Http11Protocol.java:731) at
>
>>>org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.
> >>>java:526) at
>
>>>org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowe
> >>>rWorkerThread.java:80) at
>
>>>org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.
> >>>java:684) at java.lang.Thread.run(Thread.java:595)
> >>>in exception
> >>>java.lang.StringIndexOutOfBoundsException: String index out of range:
-1
> >>>
> >>>Any help would be appriciated.
> >>>
> >>>Thanks
> >>
> >>-
> >>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: weird tomcat5.0.30 behaviour with jar in WEB-INF/classes

2004-12-01 Thread Cox, Charlie


> -Original Message-
> From: Simone Pierazzini [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, December 01, 2004 9:37 AM
> To: [EMAIL PROTECTED]
> Subject: weird tomcat5.0.30 behaviour with jar in WEB-INF/classes
> 
> Hi,
> I use URLClassLoader to create class loaders that manage jars in WEB-
> INF/classes
> In WEB-INF/classes I have many jars that are incompatible each other
> (they have different classes with the same name inside).
> 

Wouldn't it be much easier to unjar and re-jar with only the classes you
need for each of your jar files?

Charlie


RE: Problem With Tomcat and NT service

2004-11-18 Thread Cox, Charlie
http://www.tburke.net/info/reskittools/topics/srvany_using.htm

See the paragraph about setting the working directory...

Charlie

> -Original Message-
> From: hui [mailto:[EMAIL PROTECTED]
> Sent: Thursday, November 18, 2004 9:15 AM
> To: 'Tomcat Users List'
> Subject: RE: Problem With Tomcat and NT service
> 
> Hi
> In this case, can we change the base directory?
> Regards,
> hui
> 
> -Original Message-
> From: Hubble, Christopher [mailto:[EMAIL PROTECTED]
> Sent: Thursday, November 18, 2004 8:28 AM
> To: 'Tomcat Users List'
> Subject: RE: Problem With Tomcat and NT service
> 
> That's because when Tomcat is run as a service, it's base directory
becomes
> System32 instead of whatever dir you run the startup bat file in.
> 
> Chris
> 
> -Original Message-
> From: Raphael THIOLIERE [mailto:[EMAIL PROTECTED]
> Sent: Thursday, November 18, 2004 4:40 AM
> To: Tomcat Users List
> Subject: Problem With Tomcat and NT service
> 
> 
> Hello,
> 
> I use Tomcat like a server of webservices.
> When I run Tomcat with the script startup.bat, my application works fine.
> But when I want to launch Tomcat with the NT service (created by the
> install) it doesn't work : I have to copy a fichier in the directory
> system32.
> This fichier is use by my application, it contains the informations for
the
> connection at the SGBD.
> My version of tomcat is 4.1.
> Idea ?
> 
> If I use tomcat 3.3 ,I modify the fichier wrapper.properties and It works.
> 
> 
> Raphaël.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


RE: Tomcat -> Apache with JK2: mapping urls...

2004-10-18 Thread Cox, Charlie
Have you tried location matching and mod_rewrite with Apache to change your
URL before jk2 takes the request?


RewriteRule ...
JkUriSet 



RewriteRule ...
JkUriSet 


you would use JkUriSet in place of the workers2.properties [uri: mappings

Charlie

> -Original Message-
> From: Johann Uhrmann [mailto:[EMAIL PROTECTED]
> Sent: Monday, October 18, 2004 9:58 AM
> To: Tomcat Users List
> Subject: Re: Tomcat -> Apache with JK2: mapping urls...
> 
> Andrzej Jan Taramina wrote:
> > Douglas WF Acheson has said late last year:
> >
> >
> >># Define the Manager proxy that comes with Tomcat
> >>[uri:/tomcat/manager/*]
> >>context=/manager
> >>info=Manager prefix mapping
> >>
> >>But, after frustrating attempts I cannot seem to get it correct.  I have
> >>search the mail archives and a few people have asked similar questions,
but
> I
> >>have not see any replies.  Hope someone can help me ...
> >
> >
> > I'm trying to do the same thing. I want Apache/JK2 to trap a specific
URI
> > (tomcat/manager/* in this example), but to map it to something else (eg.
> > "manager") before it sends the request on to Tomcat through the JK
> > connection.
> >
> > The context parameter shown above in workers2.properties does not do
this,
> in
> > fact, who knows what it does. I agree with Doug that the JK2 docs are
> > abysmal.
> 
> Hi Andrzej,
> 
> I am trying to deploy a web application to multiple instances of Tomcat
and it
> would
> be great to have a mapping like /tomcat1/axis -> /axis on the first worker
and
> /tomcat2/axis -> /axis on the second worker.
> 
> Unfortunately, the context parameter is ignored and just as You mentioned,
the
> jk2 docs
> are lousy. It seems that there is no other choice but digging through the
> source code
> of JK2 or trashing JK2/Tomcat and using something well documented.
> 
> Has anyone already been through the hell of digging through the source
code
> and is
> there a usable documentation about jk2?
> 
> 
> Regards,
> 
> Hans
> (sorry for being rude, but in my oppinion some guys have not discovered
that
> the
>   best software is worth nothing without documentation)
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


RE: Tomcat 5 pause (free gmail account for fix :-)

2004-10-14 Thread Cox, Charlie
Is your machine swapping? 512MB can go quickly...

> -Original Message-
> From: Sam Gallant [mailto:[EMAIL PROTECTED]
> Sent: Thursday, October 14, 2004 3:40 PM
> To: Montz, James C. (James Tower)
> Cc: Tomcat Users List
> Subject: Re: Tomcat 5 pause (free gmail account for fix :-)
> 
> We have done default gc with 8mb/256mb min/max, default gc with
> 128mb/256mb min/max, and incremental with the same settings. The
> machine has 512mb ram. When we turn on verbose gc the gc logging just
> stops after a period of time both on the sun jvm and the ibm. When
> there is 100% cpu util jsvc is using 99% of the cpu.
> 
> 
> On Thu, 14 Oct 2004 14:33:13 -0500, Montz, James C. (James Tower)
> <[EMAIL PROTECTED]> wrote:
> > Are you defining any Memory Min/Max (-Xms/-Xmx) constraints on the JVM?
> > Are you collecting any verbose GC information (-verbose:gc)?
> >
> > How much physical memory available on the machine?
> >
> > At times of 100% CPU Utilization, is it java that is consumnig the
> > majority of it?
> >
> >
> >
> > -Original Message-
> > From: Sam Gallant [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, October 14, 2004 2:17 PM
> > To: [EMAIL PROTECTED]
> > Subject: Tomcat 5 pause (free gmail account for fix :-)
> >
> > Everyone,
> > Thanks in advance for any help. Also I have a gmail invite for the
> > person who has a fix for this if they are interested.
> >
> > My company has been using Tomcat for several years, but a problem has
> > crept up that we have not been able to solve. Basically, tomcat will
> > stop processing requests for 2-60 second period several times a day.
> >
> > Here is a list of software that we have tried. (Note we have tried
> > changing each key componant to see if we isolate the componant that is
> > the problem, but no luck yet)
> >
> > OS: RedHat 9 & AS3
> > Threading model: linux threads & nptl
> > JVM: sun 1.4.2_4 & latest ibm
> > Http connector: ajp w/apache 2 and coyote connector
> > JBDC connector 1.0
> >
> > 1. Doesn't always happen durning old gen garbage collection, but does
> > sometimes
> > 2. Before switching to incremental gc we received out of memory errors
> > which resulted in Tomcat completly hanging
> > 3. After switching to incremental gc the effect changed to 2-60 second
> > periods of time that Tomcat won't process request, but it does resume
> > on its' own.
> > 4. Cpu usage for most of the day is less than 20% utiliztion, but when
> > the problem occurs the cpu spikes to 100% utiliztion briefly.
> >
> > -
> > 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: AW: Mod JK2 Mapping and SSL

2004-10-07 Thread Cox, Charlie
You can do this, but you will have to change your config. Create a new
 in server.xml that has the same  definition as your current
one. Your new service will have a new  listening on a different
port(i.e. 8010) This new Host will have the  that your SSL
connections should run.

Next remove the URI mapping from workers2.properties for this domain. Add
another worker in jk2.properties using the new port of your new
(8010).

Now change your VH below to 

 
ServerName www
 
  JkUriSet worker ajp13:localhost:8009
  
 


ServerName www
 
  JkUriSet worker ajp13:localhost:8010
  


Note there is a bug that prevents ServerAlias from working for jk2(you used
it below).

Charlie

> > -Original Message-
> From: Scott Ahten [mailto:[EMAIL PROTECTED]
> Sent: Thursday, October 07, 2004 12:24 PM
> To: Tomcat Users List
> Subject: Re: AW: Mod JK2 Mapping and SSL
> 
> I've found an example of mapping directly in http.conf, but it still
> appears to be ambiguous as to which host is targeted in Tomcat.
> 
> # domain.com
> 
>   ServerAlias www
> 
>  JkUriSet worker ajp13:localhost:8009
>  
> 
> 
> # domain.com - SSL
> 
> ServerName www.domain.com
>  
>  JkUriSet worker ajp13:localhost:8009
>  ...
> 
> 
> I think the issue is that  host elements in Tomcat don't specify which
> port they listen to. Since they are both have the same domain signature
> (www.host.com), Tomcat can't tell them apart and routes them to the
> same host / webapp.
> 
> Is there any way to differentiate these requests so Tomcat can tell
> them apart? Perhaps setting up a second engine or service?
> 
> - Scott
> 
> 
> On Oct 7, 2004, at 11:20 AM, Scott Ahten wrote:
> 
> >> 
> >>   mount secure here
> >> 
> 
> - -
> :: [EMAIL PROTECTED]
> :: http://www.pixelfreak.net
> - -
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


RE: JK2 2.0.4

2004-10-05 Thread Cox, Charlie
I didn't suggest a ServerAlias as in the bug report. The method below works
very well for me and it is much easier to manage with all my vhost config in
httd.conf and not spread out among different files. 

Charlie

> -Original Message-
> From: Joseph Shraibman [mailto:[EMAIL PROTECTED]
> Sent: Monday, October 04, 2004 9:26 PM
> To: Tomcat Users List
> Subject: Re: JK2 2.0.4
> 
> No, this is a known bug and will not work. See
> http://issues.apache.org/bugzilla/show_bug.cgi?id=28758
> 
> Cox, Charlie wrote:
> > To avoid all confusion, I would remove your [uri: mappings from the
> > workers2.properties and then specify the mappings in your httpd.conf:
> >
> > 
> > 
> > JkUriSet worker ajp13:localhost:8409
> > 
> > 
> >
> > 
> > 
> > JkUriSet worker ajp13:localhost:8209
> > 
> > 
> >
> > This gives you a well-defined mapping and will be more useful should you
> > want to allow Apache to host any of your files/urls
> >
> > Charlie
> >
> >
> >>-Original Message-
> >>From: Paul D. Hester [mailto:[EMAIL PROTECTED]
> >>Sent: Thursday, September 30, 2004 6:00 PM
> >>To: 'Tomcat Users List'
> >>Subject: RE: JK2 2.0.4
> >>
> >>I've attached my workers.properties file below.
> >>
> >>Paul
> >>
> >>
> >>
> >>
> >>
> >>
> >>#define the shared memory file
> >>[shm:]
> >>file=/usr/local/apache-2.0.50/logs/jk2.log
> >>size=100
> >>debug=1
> >>
> >># Define the communication channel
> >>[channel.socket:localhost:8409]
> >>[channel.socket:localhost:8209]
> >>
> >>#define the worker
> >>[ajp13:localhost:8409]
> >>channel=channel.socket:localhost:8409
> >>
> >>[ajp13:localhost:8209]
> >>channel=channel.socket:localhost:8209
> >>
> >>[uri:/*]
> >>group=ajp13:localhost:8409
> >>
> >>[uri:/*]
> >>group=ajp13:localhost:8209
> >>
> >>
> >>-
> >>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: JK2 2.0.4

2004-10-01 Thread Cox, Charlie
Yes, I missed that this time because I pointed it out in my last email. The
 should use port 80 for it to ever accept requests. 



> -Original Message-
> From: Dale, Matt [mailto:[EMAIL PROTECTED]
> Sent: Friday, October 01, 2004 11:55 AM
> To: Tomcat Users List
> Subject: RE: JK2 2.0.4
> 
> 
> Wouldn't he then have to get the ports right in httpd.conf?
> 
> -----Original Message-
> From: Cox, Charlie [mailto:[EMAIL PROTECTED]
> Sent: 01 October 2004 16:47
> To: 'Tomcat Users List'
> Subject: RE: JK2 2.0.4
> 
> 
> Remove the last 4 lines in workers2.properties. these URI mappings are
> duplicating the JkUriSet in httpd.conf. this would explain why it works,
but
> still reports errors.
> 
> Charlie
> 
> > -Original Message-
> > From: Paul D. Hester [mailto:[EMAIL PROTECTED]
> > Sent: Friday, October 01, 2004 11:27 AM
> > To: 'Tomcat Users List'
> > Subject: RE: JK2 2.0.4
> >
> > OK...I've got it working but am getting errors in my Apache error log:
> > [error] uriEnv.init() map to invalid worker /*
> > apj13:localhost:8209
> > [error] uriEnv.init() map to invalid worker /*
> > apj13:localhost:8209
> > [error] uriEnv.init() map to invalid worker /*
> > apj13:localhost:8209
> > [error] uriEnv.init() map to invalid worker /*
> > apj13:localhost:8209
> > How is it possible for it to work.  Here is my set up:
> >
> > Running two user accounts each running its own instance of
> > Tomcat  4.1.31 each with their own port designation.
> > Running Apache 2.0.50 and JK2 2.0.4.
> >
> > Each virtual host is being sent over by Apache successfully but I'm
> > getting the above errors and don't know why it still works.
> >
> > http://orbt.at.ufl.edu is using port 8409 and accesses the webapp ORB
> > successfully.
> > http://edist.at.ufl.edu is using port 8209 and accesses the webapp EDIS
> > successfully but why...the above errors are concerning port 8209.
> >
> > Below is my httpd.conf and workers2.properties files:
> >
> >
> > httpd.conf
> >
> > ServerName mmdbt.at.ufl.edu
> > Listen 80
> >
> > AddHandler cgi-script .cgi
> >
> > 
> > Options FollowSymLinks ExecCGI Includes Indexes
> > AllowOverride AuthConfig Fileinfo Limit Indexes
> > 
> >
> > LoadModule jk2_module modules/mod_jk2.so
> >
> > 
> > ServerName mmdbt.at.ufl.edu
> > DocumentRoot /home/www/public_html
> >
> > Redirect permanent /tomcat http://mmdbt.at.ufl.edu/tomcat/
> > Redirect permanent /tomcat/tomcat-docs
> > http://mmdbt.at.ufl.edu/tomcat/tomcat-docs/
> >
> > 
> >
> > 
> > ServerName edist.at.ufl.edu
> > 
> > JkUriSet worker apj13:localhost:8209
> > 
> > 
> >
> > 
> > ServerName orbt.at.ufl.edu
> > 
> > JkUriSet worker ajp13:localhost:8409
> > 
> > 
> >
> >
> > workers2.properties
> > #define the shared memory file
> > [shm:]
> > file=/usr/local/apache-2.0.50/logs/jk2.log
> > size=100
> > debug=1
> >
> > # Define the communication channel
> > [channel.socket:localhost:8409]
> > port=8409
> > host=orbt.at.ufl.edu
> > type=ajp13
> >
> >
> > [channel.socket:localhost:8209]
> > port=8209
> > host=edist.at.ufl.edu
> > type=ajp13
> >
> > # define the worker
> > [ajp13:localhost:8409]
> > channel=channel.socket:localhost:8409
> >
> > [ajp13:localhost:8209]
> > channel=channel.socket:localhost:8209
> >
> > [uri:orbt.at.ufl.edu/*]
> > group=ajp13:localhost:8409
> >
> > [uri:edist.at.ufl.edu/*]
> > group=ajp13:localhost:8209
> >
> >
> >
> >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]


RE: JK2 2.0.4

2004-10-01 Thread Cox, Charlie
Remove the last 4 lines in workers2.properties. these URI mappings are
duplicating the JkUriSet in httpd.conf. this would explain why it works, but
still reports errors.

Charlie

> -Original Message-
> From: Paul D. Hester [mailto:[EMAIL PROTECTED]
> Sent: Friday, October 01, 2004 11:27 AM
> To: 'Tomcat Users List'
> Subject: RE: JK2 2.0.4
> 
> OK...I've got it working but am getting errors in my Apache error log:
>   [error] uriEnv.init() map to invalid worker /*
> apj13:localhost:8209
>   [error] uriEnv.init() map to invalid worker /*
> apj13:localhost:8209
>   [error] uriEnv.init() map to invalid worker /*
> apj13:localhost:8209
>   [error] uriEnv.init() map to invalid worker /*
> apj13:localhost:8209
> How is it possible for it to work.  Here is my set up:
> 
>   Running two user accounts each running its own instance of
> Tomcat4.1.31 each with their own port designation.
>   Running Apache 2.0.50 and JK2 2.0.4.
> 
> Each virtual host is being sent over by Apache successfully but I'm
> getting the above errors and don't know why it still works.
> 
> http://orbt.at.ufl.edu is using port 8409 and accesses the webapp ORB
> successfully.
> http://edist.at.ufl.edu is using port 8209 and accesses the webapp EDIS
> successfully but why...the above errors are concerning port 8209.
> 
> Below is my httpd.conf and workers2.properties files:
> 
> 
> httpd.conf
> 
> ServerName mmdbt.at.ufl.edu
> Listen 80
> 
> AddHandler cgi-script .cgi
> 
> 
> Options FollowSymLinks ExecCGI Includes Indexes
> AllowOverride AuthConfig Fileinfo Limit Indexes
> 
> 
> LoadModule jk2_module modules/mod_jk2.so
> 
> 
> ServerName mmdbt.at.ufl.edu
> DocumentRoot /home/www/public_html
> 
> Redirect permanent /tomcat http://mmdbt.at.ufl.edu/tomcat/
> Redirect permanent /tomcat/tomcat-docs
> http://mmdbt.at.ufl.edu/tomcat/tomcat-docs/
> 
> 
> 
> 
> ServerName edist.at.ufl.edu
> 
> JkUriSet worker apj13:localhost:8209
> 
> 
> 
> 
> ServerName orbt.at.ufl.edu
> 
> JkUriSet worker ajp13:localhost:8409
> 
> 
> 
> 
> workers2.properties
> #define the shared memory file
> [shm:]
> file=/usr/local/apache-2.0.50/logs/jk2.log
> size=100
> debug=1
> 
> # Define the communication channel
> [channel.socket:localhost:8409]
> port=8409
> host=orbt.at.ufl.edu
> type=ajp13
> 
> 
> [channel.socket:localhost:8209]
> port=8209
> host=edist.at.ufl.edu
> type=ajp13
> 
> # define the worker
> [ajp13:localhost:8409]
> channel=channel.socket:localhost:8409
> 
> [ajp13:localhost:8209]
> channel=channel.socket:localhost:8209
> 
> [uri:orbt.at.ufl.edu/*]
> group=ajp13:localhost:8409
> 
> [uri:edist.at.ufl.edu/*]
> group=ajp13:localhost:8209
> 
> 
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


RE: mod_jk configuration question

2004-10-01 Thread Cox, Charlie
You need to separate these into different  elements in server.xml,
each with the corresponding  and .

Charlie

> -Original Message-
> From: Anto Paul [mailto:[EMAIL PROTECTED]
> Sent: Friday, October 01, 2004 10:01 AM
> To: Tomcat Users List
> Subject: mod_jk configuration question
> 
> Hi all,
> 
>   Is it possible to define two AJP13 connectors both listening at
> different ports and different addresses. These two addresses have
> different  elements.
> 
> Config
> 
> port="8005" minProcessors="5" maxProcessors="75"
>acceptCount="10" debug="5" 192.168.4.1/>
> port="8006" minProcessors="5" maxProcessors="75"
>acceptCount="10" debug="5" address="192.168.4.2"/>
> 
> unpackWARs="true" autoDeploy="true">
> 
>
> 
> 
> 
> unpackWARs="true" autoDeploy="true">
> 
>   
> 
> 
> 
> unpackWARs="true" autoDeploy="true">
> 
> 
>
> 
> 
> 
> Both connectors should connect to respective hosts context.
> 
> When I tested this all JSP requests are going to the localhost.
> 
> 
> 
> rgds
> Anto Paul
> 
> --
> To strive,to seek,to find and not to yield
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


RE: JK2 2.0.4

2004-10-01 Thread Cox, Charlie


> -Original Message-
> From: Paul D. Hester [mailto:[EMAIL PROTECTED]
> Sent: Friday, October 01, 2004 10:20 AM
> To: 'Tomcat Users List'
> Subject: RE: JK2 2.0.4
> 
> Thanks Charlie for you help.  I tried what you suggested and now
> http://orbt.at.ufl.edu is accessing the ORB webapp properly.  However,
> http://edist.at.ufl.edu renders an 'Internal Server Error' and I now
> have an HTTP1.1 500 error in my apache log file.  My httpd.conf and
> workers2.properties file are enclosed.  What looks wrong?
> 
> workers2.properties
> [shm:]
> file=/usr/local/apache-2.0.50/logs/jk2.log
> size=100
> debug=1
> 
> # Define the communication channel
> [channel.socket:localhost:8409]
> port=8409
> host=orbt.at.ufl.edu
> type=ajp13
> 
> 
> [channel.socket:localhost:8209]
> port=8209
> host=edist.at.ufl.edu
> type=ajp13
> 
> # define the worker
> [ajp13:localhost:8409]
> channel=channel.socket:localhost:8409
> 
> [ajp13:localhost:8209]
> channel=channel.socket:localhost:8209
> 
> 
> httpd.conf
> 
> ServerName mmdbt.at.ufl.edu
> Listen 80
> 
> AddHandler cgi-script .cgi
> 
> 
> Options FollowSymLinks ExecCGI Includes Indexes
> AllowOverride AuthConfig Fileinfo Limit Indexes
> 
> 
> LoadModule jk2_module modules/mod_jk2.so
>

if you want to use name-based virtual hosts on the same ip, then add:

NameVirtualHost 128.227.8.67:80

> 
> ServerName mmdbt.at.ufl.edu
> DocumentRoot /home/www/public_html
> 
> Redirect permanent /tomcat http://mmdbt.at.ufl.edu/tomcat/
> Redirect permanent /tomcat/tomcat-docs
> http://mmdbt.at.ufl.edu/tomcat/tomcat-docs/
> 
> 
> 
change to  This defines how apache is matching
this ip/port/name, since your "listen" directive lists port 80, you need to
do so here also.


> ServerName edist.at.ufl.edu
> 
> JkUriSet worker apj13:localhost:8209
> 
> 
> 
> 

Same here - use port 80

> ServerName orbt.at.ufl.edu
> 
> JkUriSet worker ajp13:localhost:8409
> 
> 
> 

Charlie


RE: JK2 2.0.4

2004-10-01 Thread Cox, Charlie
Sorry, try 

Charlie

> -Original Message-
> From: Paul D. Hester [mailto:[EMAIL PROTECTED]
> Sent: Friday, October 01, 2004 8:06 AM
> To: 'Tomcat Users List'
> Subject: RE: JK2 2.0.4
> 
> When I try to remove the uri's in the worker2.properties and set up the
> mappings in my httpd.conf I get the Apache web page saying I've
> successfully installed Apache for both virtual hosts.
> 
> Thanks,
>   Paul
> 
> -Original Message-
> From: Cox, Charlie [mailto:[EMAIL PROTECTED]
> Sent: Friday, October 01, 2004 7:58 AM
> To: 'Tomcat Users List'
> Subject: RE: JK2 2.0.4
> 
> To avoid all confusion, I would remove your [uri: mappings from the
> workers2.properties and then specify the mappings in your httpd.conf:
> 
> 
>   
>   JkUriSet worker ajp13:localhost:8409
>   
> 
> 
> 
>   
>   JkUriSet worker ajp13:localhost:8209
>   
> 
> 
> This gives you a well-defined mapping and will be more useful should you
> want to allow Apache to host any of your files/urls
> 
> Charlie
> 
> > -Original Message-
> > From: Paul D. Hester [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, September 30, 2004 6:00 PM
> > To: 'Tomcat Users List'
> > Subject: RE: JK2 2.0.4
> >
> > I've attached my workers.properties file below.
> >
> > Paul
> >
> >
> >
> >
> >
> >
> > #define the shared memory file
> > [shm:]
> > file=/usr/local/apache-2.0.50/logs/jk2.log
> > size=100
> > debug=1
> >
> > # Define the communication channel
> > [channel.socket:localhost:8409]
> > [channel.socket:localhost:8209]
> >
> > #define the worker
> > [ajp13:localhost:8409]
> > channel=channel.socket:localhost:8409
> >
> > [ajp13:localhost:8209]
> > channel=channel.socket:localhost:8209
> >
> > [uri:/*]
> > group=ajp13:localhost:8409
> >
> > [uri:/*]
> > group=ajp13:localhost:8209
> >
> >
> > -
> > 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: JK2 2.0.4

2004-10-01 Thread Cox, Charlie
To avoid all confusion, I would remove your [uri: mappings from the
workers2.properties and then specify the mappings in your httpd.conf:



JkUriSet worker ajp13:localhost:8409





JkUriSet worker ajp13:localhost:8209



This gives you a well-defined mapping and will be more useful should you
want to allow Apache to host any of your files/urls

Charlie

> -Original Message-
> From: Paul D. Hester [mailto:[EMAIL PROTECTED]
> Sent: Thursday, September 30, 2004 6:00 PM
> To: 'Tomcat Users List'
> Subject: RE: JK2 2.0.4
> 
> I've attached my workers.properties file below.
> 
> Paul
> 
> 
> 
> 
> 
> 
> #define the shared memory file
> [shm:]
> file=/usr/local/apache-2.0.50/logs/jk2.log
> size=100
> debug=1
> 
> # Define the communication channel
> [channel.socket:localhost:8409]
> [channel.socket:localhost:8209]
> 
> #define the worker
> [ajp13:localhost:8409]
> channel=channel.socket:localhost:8409
> 
> [ajp13:localhost:8209]
> channel=channel.socket:localhost:8209
> 
> [uri:/*]
> group=ajp13:localhost:8409
> 
> [uri:/*]
> group=ajp13:localhost:8209
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


RE: loading dll's from webapp

2004-09-28 Thread Cox, Charlie
Have you verified that they are on the system path and not the user's path?
Check My Computer->Properties->Advanced->Environment Variables

Charlie

> -Original Message-
> From: John MccLain [mailto:[EMAIL PROTECTED]
> Sent: Monday, September 20, 2004 7:32 PM
> To: Tomcat user list
> Subject: loading dll's from webapp
> 
> 
> Howdy,
> When I Kick off Tomct as a service (from windows service mgr.), it fails
> loading my context because
> I am trying to loadLibrary a few DLL's in a context startup listener. It
> can't seem to find the DLL's, HOWEVER, my system path points to their
> directory - and, when I start tomcat from Eclipse, using the sysdeo
plugin,
> it works fine. How can
> I get the service to use the system path to find my DLL files ???
> 
> John McClain
> Senior Software Engineer
> TCS Healthcare
> [EMAIL PROTECTED]
> (530)886-1700x235
> "Before you criticize someone, walk a mile in their shoes.
> That way, you'll be a mile from them, and you'll have their shoes."
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


RE: Apache front to Tomcat/Cocoon

2004-09-24 Thread Cox, Charlie
This is a problem with your htpd.conf configuration(I'm not sure what) and
you will find more people who can help you on the apache httpd users list. 

> -Original Message-
> From: Richard Lewis [mailto:[EMAIL PROTECTED]
> Sent: Friday, September 24, 2004 11:38 AM
> To: [EMAIL PROTECTED]
> Subject: Apache front to Tomcat/Cocoon
> 
> Hi there,
> 
> This problem has been bugging me for days and I've tried both the
> Apache (httpd) mailing list and the Cocoon mailing list but no one
> seems to be able to solve it.
> 
> I've got two Cocoon (2.1) webapps running under Tomcat (4.1) on my
> server (Debian, j2sdk1.4-sun, Apache 2.0). My network service provided
> has given me two aliases for the machine which I want to point to the
> two webapps.
> 
> As I understand it, I can use virtual hosting and mod_proxy with Apache
> to re-direct requests which use these two aliases to the webapps
> running on port 8080.
> 
> My Apache and Tomcat set up is as follows:
> 
> apache2/mods-enabled directory:
> 
> php4.conf -> /etc/apache2/mods-available/php4.conf
> php4.load -> /etc/apache2/mods-available/php4.load
> proxy.conf -> ../mods-available/proxy.conf
> proxy_connect.load -> ../mods-available/proxy_connect.load
> proxy_http.load -> ../mods-available/proxy_http.load
> proxy.load -> ../mods-available/proxy.load
> userdir.conf -> /etc/apache2/mods-available/userdir.conf
> userdir.load -> /etc/apache2/mods-available/userdir.load
> ==
> apache2/sites-enabled directory:
> 
> cursus.uea.ac.uk -> ../sites-available/cursus.uea.ac.uk
> studios.uea.ac.uk -> ../sites-available/studios.uea.ac.uk
> ==
> apache2/sites-available directory:
> 
> cursus.uea.ac.uk -> /var/webapps/cursus/cursus.apache.conf
> studios.uea.ac.uk -> /var/webapps/studio/studio.apache.conf
> ==
> apache2/httpd.conf:
> 
> 
>  Order deny,allow
>  Deny from all
> 
> 
> NameVirtualHost *:80
> ==
> /var/webapps/cursus/cursus.apache.conf:
> 
> 
>  ServerName www.cursus.uea.ac.uk
>  ServerAlias cursus.uea.ac.uk
>  ServerAlias www.cursus
>  ProxyRequests off
>  ProxyPass / http://localhost:8081/cocoon/cursus/
>  ProxyPassReverse / http://localhost:8081/cocoon/cursus/
>  ProxyPass /styles http://localhost:8081/cocoon/cursus/styles
>  ProxyPassReverse /styles
> http://localhost:8081/cocoon/cursus/styles
> 
> ==
> /var/webapps/cursus/studios.apache.conf:
> 
> 
>  ServerName www.studios.uea.ac.uk
>  ServerAlias studios.uea.ac.uk
>  ServerAlias www.studios
>  ProxyRequests Off
>  ProxyPass / http://localhost:8082/cocoon/studio/
>  ProxyPassReverse / http://localhost:8082/cocoon/studio/
> 
> ==
> /var/webapps/tomcat/conf/server.xml: [snippet]
> 
>   port="8081" minProcessors="5" maxProcessors="75"
> enableLookups="true"
> acceptCount="100" debug="0" connectionTimeout="2"
> proxyName="www.cursus.uea.ac.uk" proxyPort="80"
> useURIValidationHack="false" disableUploadTimeout="true"
> />
> 
>   port="8082" minProcessors="5" maxProcessors="75"
> enableLookups="true"
> acceptCount="100" debug="0" connectionTimeout="2"
> proxyName="www.studios.uea.ac.uk" proxyPort="80"
> useURIValidationHack="false" disableUploadTimeout="true"
> />
> 
> 
> The problem is that when the user requests the URL
> http://cursus.uea.ac.uk/ or http://www.studios.uea.ac.uk/ the server
> returns 403 'Forbidden'.
> $ tail log/apache2/error.log gives:
> [Fri Sep 24 16:22:17 2004] [error] [client ] client denied by
> server configuration: proxy:http://localhost:8081/cocoon/cursus/
> 
> Accessed using the :808[012] suffix, the webapps both work fine (though
> the network firewall will stop access from outside).
> 
> If anyone could help me I would be very grateful indeed as I've been
> puzzeling over this for days and really can't think of anything else
> that might sort the problem.
> 
> Thanks in advance,
> Richard
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


RE: jk2 over non-default port

2004-09-24 Thread Cox, Charlie
CAN-2004-0811 (cve.mitre.org) 

Charlie

> -Original Message-
> From: Alex [mailto:[EMAIL PROTECTED]
> Sent: Friday, September 24, 2004 4:00 AM
> To: Tomcat Users List
> Subject: RE: jk2 over non-default port
> 
> 
> what type of problems does 2.0.51 have??
> 
> On Thu, 23 Sep 2004, Kyle Adams wrote:
> 


RE: jk2 over non-default port

2004-09-23 Thread Cox, Charlie
Well, that is how I have it configured and it works for me with 2.0.48 and
2.0.49(btw - 2.0.51 was removed due to regressions). One thought is that
your port number may be too high. I'm not sure what port range jk2 supports,
but you may want to try something less than 32767. 

Also you can set the logger level to debug and see if it provides anything
useful.

Charlie

> -Original Message-
> From: Kyle Adams [mailto:[EMAIL PROTECTED]
> Sent: Thursday, September 23, 2004 9:49 AM
> To: [EMAIL PROTECTED]
> Subject: RE: jk2 over non-default port
> 
> > add under your [channel.socket:localhost:60002]
> > host=localhost
> > port=60002
> 
> According to the documentation at
> http://jakarta.apache.org/tomcat/connectors-doc/jk2/jk2/configwebcom.html
> (under channel.socket):
> 
> "The name of the channels should be: channel.socket:HOST:PORT, where
> HOST and PORT are the tomcat Ajp location. You could use other names and
> explicitely set HOST and PORT, but this is discouraged. In most cases,
> you don't need to set any other config - just add a line like
> [channel.socket:localhost:8009] and all other things will have good
> defaults."
> 
> So according to the documentation, I don't need to set host and port
> explicitly.  But at this point, I'm willing to try anything.  So I tried
> it, same result:
> 
> [Thu Sep 23 09:40:42 2004] [error] channelSocket.open() connect failed
> localhost:8009 146 Connection refused
> [Thu Sep 23 09:40:42 2004] [error] ajp13.connect() failed
> ajp13:localhost:60002
> 
> It's almost as if Apache 2.0.51 is ignoring the settings for the
> channel.socket.  I might think it wasn't finding workers2.properties
> (even though I have it in the default location, under Apache's conf/
> directory), except that it's picking up the URI mappings just fine.
> Might this be a bug in mod_jk2 and/or Apache HTTPD 2.0.51?
> 
> Kyle
> 
> _
> 
> Kyle Adams | Java Developer  |  Gordon Food Service  |  616-717-6162
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


RE: jk2 over non-default port

2004-09-23 Thread Cox, Charlie


> -Original Message-
> From: Kyle Adams [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, September 22, 2004 5:49 PM
> To: [EMAIL PROTECTED]
> Subject: jk2 over non-default port
> 
> I've been able to get jk2 running if I use the default port; however, I
> get these error messages if I try to switch to a non-default port:
> 
> [Wed Sep 22 09:26:07 2004] [error] channelSocket.open() connect failed
> localhost:8009 146 Connection refused
> [Wed Sep 22 09:26:07 2004] [error] ajp13.connect() failed
> ajp13:localhost:60002
> [Wed Sep 22 09:26:07 2004] [error] ajp13.service() failed to connect
> endpoint errno=146 Connection refused
> [Wed Sep 22 09:26:07 2004] [error] ajp13.service() Error  forwarding
> ajp13:localhost:60002 1 1
> [Wed Sep 22 09:26:07 2004] [error] lb.service() worker failed 12
> for ajp13:localhost:60002
> 
> The odd thing above is that the initial channelSocket.open() is the
> only thing using the default 8009.  Everything else is using the correct
> 60002 (see below for all relevant log and config file snippets).  All of
> the examples/forum posts/mailing lists I've google'd over show the same
> port throughout the error messages.
> 
> I'm just trying to setup a single apache instance connecting to a
> single tomcat instance.  No load balancing, clustering, failover or
> anything fancy like that.  I'm using the jsp-examples that came with
> Tomcat as my test URI.
> 
> Here's my environment:
> 
> Solaris 8
> JDK 1.4.2_05
> Apache 2.0.51
> Tomcat 5.0.28
> 
> I had problems building the connector from source, so I downloaded the
> binary at
> http://apache.cs.utah.edu/jakarta/tomcat-connectors/jk2/binaries/solaris/
> ; even though it says it's for apache 2.0.43, it appears to work fine
> with 2.0.51 when using default ports.
> 
> Here are all relevant config files, in their current state (I've tried
> a myriad of variations):
> 
> * My jk2.properties has everything commented out.  I've also tried it
> with channelSocket.port uncommented and set to 60002.
> 
> * server.xml snippet
> 
>   
> 
> 
> 
>  jvmRoute="localhost:60002">
>   
> 
> resourceName="UserDatabase" />
> 
>   
> 
>   
> 
> * workers2.properties (taken from
> http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-
> connectors/jk/conf/workers2.properties.minimal?rev=1.1&view=auto
> with only minor modifications to make URIs work under default port):
> 
> #
> # This is the minimal JK2 connector configuration file.
> #
> 
> [logger]
> info=Native logger
> level=ERROR
> 
> [config:]
> file=${serverRoot}/conf/workers2.properties
> debug=0
> debugEnv=0
> 
> [uriMap:]
> info=Maps the requests.
> debug=0
> 
> [shm:]
> info=Scoreboard. Required for reconfiguration and status with
> multiprocess servers
> file=${serverRoot}/logs/jk2.shm
> debug=0
> 
> [workerEnv:]
> info=Global server options
> timing=0
> debug=0
> 
> [lb:lb]
> info=Default load balancer.
> debug=0
> 
> [channel.socket:localhost:60002]
> info=Ajp13 forwarding over socket
> debug=0
> tomcatId=localhost:60002

add under your [channel.socket:localhost:60002]
host=localhost
port=60002

Charlie

> 
> [uri:/admin/*]
> info=Tomcat HTML based administration web application.
> debug=0
> 
> [uri:/manager/*]
> info=A scriptable management web application for the Tomcat Web
> Server.
> debug=0
> 
> [uri:/jsp-examples/*]
> info=JSP 2.0 Examples.
> debug=0
> 
> [uri:/servlets-examples/*]
> info=Servlet 2.4 Examples.
> debug=0
> 
> [uri:/*.jsp]
> info=JSP Extension mapping.
> debug=0
> 
> * catalina.out, a snippet from the startup sequence:
> 
> Sep 22, 2004 9:25:33 AM org.apache.jk.common.ChannelSocket init
> INFO: JK2: ajp13 listening on /0.0.0.0:60002
> Sep 22, 2004 9:25:33 AM org.apache.jk.server.JkMain start
> INFO: Jk running ID=0 time=1/173
> config=/lcl/apps/tomcat/conf/jk2.properties
> Sep 22, 2004 9:25:33 AM org.apache.catalina.startup.Catalina start
> INFO: Server startup in 7307 ms
> 
> * error_log, the startup sequence:
> 
> [Wed Sep 22 09:25:49 2004] [error] jk2_init() Can't find child 3965 in
> scoreboard
> [Wed Sep 22 09:25:49 2004] [error] mod_jk child init 1 0
> [Wed Sep 22 09:25:49 2004] [error] mod_jk child init 1 -2
> [Wed Sep 22 09:25:49 2004] [error] jk2_init() Can't find child 3967 in
> scoreboard
> [Wed Sep 22 09:25:49 2004] [error] mod_jk child init 1 -2
> [Wed Sep 22 09:25:49 2004] [notice] Apache/2.0.51 (Unix) DAV/2
> mod_jk2/2.0.2 configured -- resuming normal operations
> 
> Any ideas?
> 
> Thanks,
> Kyle
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


RE: Need To Allow Network Access under Tomcat Service

2004-09-21 Thread Cox, Charlie


> -Original Message-
> From: Curles, Michael L [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, September 21, 2004 11:57 AM
> To: Tomcat Users List
> Subject: Need To Allow Network Access under Tomcat Service
> 
> Hi,
> 
> I have the need for servlet access to pull information off a network
drive.
> The servlet works fine when Tomcat
> is started from a "console window" but fails when Tomcat is started as
> "service."  I would rather run Tomcat as a
> "service" if possible.
> 
> I see that by default, all Tomcat "services" are registered to run as the
> system user (the LocalSystem account).  The LocalSystem account has no
> privileges to your network via any Windows-secured mechanism.
> 
> I found some Apache documentation for setting up servlet network services
> access that stated the following:
> 
> "You may want to create a separate account for running Apache service(s).
> Especially, if you have to access network resources via Apache, this is
> strongly recommended.
> 
> 1.Create a normal domain user account, and be sure to memorize its
> password.
> 2.Grant the newly-created user a privilege of 'Log on as a service'
and
> 'Act as part of the operating system.'
> On Windows NT 4.0 these privileges are granted via User Manager for
Domains,
> but on Windows 2000 and XP you
> probably want to use Group Policy for propagating these settings.
> 3.Confirm that the created account is a member of the Users group.
> 4.Grant the account read and execute (RX) rights to all document and
> script folders
> (htdocs and cgi-bin for example).
> 5.Grant the account change (RWXD) rights to the Apache logs directory.
> 6.Grant the account read and execute (RX) rights to the Apache.exe
binary
> executable."
> 
> I have tried to duplicate this procedure for Tomcat thinking this will
resolve
> my network access problem
> via a servlet.  

You will need to set this up for tomcat since your servlet is accessing your
network. 

> I'm using Windows 2000 and XP and are unable to locate the
> 'log on as service' and 'act as part of
> the operating system' menu references mentioned above...
>

Change your service to log on as your user and it will grant the correct
permissions.

If you need to view these permissions, go to Local Security Policy(Admin
tools), Local Policy, User Rights Assignments.
 
> I'm using Tomcat 5.0.28 on Windows 2000 and XP at the moment...
> 
> Any ideas on resolving this issue would be appreciated...
> 
> Regards,
> Mike
> 

Charlie



RE: dll already loaded in another classloader

2004-09-15 Thread Cox, Charlie
Some ideas:
1. your webapp is loaded multiple times(multiple , same docBase),
thus loading your class multiple times.
2. your servlet is loaded multiple times(multiple  entries in
web.xml)
3. your webapp was reloaded through the manager

>From my experience, I found it worked best to put your java class that loads
your library in /common/lib and it will only be loaded once. But if you do
this, you will not be able to include this class in your war file. 

If you try to include it in your war file, your users can not use manager to
reload your app and you can not redeploy without restarting tomcat.

Also, you will need to rely on the user to put your dll on the system
path(windows) since you do not know the actual path where they may install
it.

Charlie

> -Original Message-
> From: Nathan O'Neal [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, September 14, 2004 7:03 PM
> To: [EMAIL PROTECTED]
> Subject: dll already loaded in another classloader
> 
> Hi All,
> 
> My application loads a native library using System.load().  When I run
> Tomcat 5 through Eclipse, everything works fine on IE and Firefox.  But,
> when I run Tomcat normally I get this Exception with Firefox only:
> 
> 
> java.lang.UnsatisfiedLinkError: Native Library
> C:\jakarta-tomcat-5.0.28\webapps\profiler\WEB-INF\ttAdapterInfo.dll
already
> loaded in another classloader
> 
> I've found that this is a "feature" of the jvm and it will not load the
same
> native library in different classloaders.  What I don't understand is why
it
> works when running through Eclipse, but not otherwise?
> 
> On a side-note, where is the best place to put dll's when distributing a
> webapp as a war file?
> 
> thanks,
> nathan
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


RE: Please help with jk2/tomcat5

2004-08-27 Thread Cox, Charlie
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Friday, August 27, 2004 12:32 PM
> To: 'Tomcat Users List'
> Subject: RE: Please help with jk2/tomcat5
> 
> > > -Original Message-
> > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> > > Sent: Thursday, August 26, 2004 8:41 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: Please help with jk2/tomcat5
> > >
> > > Hello list members,
> > >
> > > Running Linux Fedora core2, apache2, tomcat5, jk2
> > >
> > >
> > > In my workers2.properties file, I have the following lines:
> > >
> > > [channel.socket:tomcat_server:8033]
> > > host=hostation.com
> > > port=8033
> > > debug=0
> > >
> > > [ajp13:tomcat_server:8033]
> > > channel=channel.socket:tomcat_server:8033
> > > debug=0
> > >
> > > [uri:hostation.com/*]
> > > worker=ajp13:tomcat_server:8033
> > > debug=0
> > >
> > > [uri:www.hostation.com/*]
> > > worker=ajp13:tomcat_server:8033
> > > debug=0
> > >
> > >
> > > That works as expected.  It allowed me to delegate ALL
> > requests to tomcat.
> > > However, now I want to be able to exempt a certain URI such as:
> > >
> > > http://hostation.com/private  so that it is not being handled by
> > > tomcat
> > but
> > > by apache instead.
> > >
> > > Is it possible ?  Please show me how and I will be hugely
> > greatful!!!
> > >
> > > Thanks.
> > > Lu
> 
> > -Original Message-
> > From: Cox, Charlie [mailto:[EMAIL PROTECTED]
> > Sent: Friday, August 27, 2004 6:17 AM
> > To: 'Tomcat Users List'
> > Subject: RE: Please help with jk2/tomcat5
> >
> > 
> > JkUriSet ...
> > 
> >
> >
> > this also works for multiple directories:
> > 
> >
> > Charlie
> >
> 
> Thanks for the help.
> I am trying to use your suggestion although it seems tricky.
> Whatever I have now in workers2.properties appear not to work
> when I use JkUriSet.
> There must be a way to combine them and I haven't figured it
> out yet.
> 
> Lu
> 

I don't know. I only use JkUriSet and moved the [uri:] mappings to
httd.conf. This helped me visualize the mappings with the virtual host
settings.

I don't understand what you need to overlap if you want all except a
directory to go to tomcat. If you mean mapping both "hostation.com" and
"www.hostation.com", you can control that in your  settings.

Charlie


RE: Tomcat causes Apache to hang. Any ideas?

2004-08-27 Thread Cox, Charlie


> -Original Message-
> From: Sean Finkel [mailto:[EMAIL PROTECTED]
> Sent: Thursday, August 26, 2004 3:52 PM
> To: Tomcat Users List
> Subject: Re: Tomcat causes Apache to hang. Any ideas?
> 
> 
> >>Sorry, this is a shared server, and he wants his site available on port
> >>80.
> >>
> >>
> >
> >Tomcat standalone can run on port 80 without running as root by using
> >jsvc (from commons-daemon).  There are examples and more information on
> >this configuration at
> >http://jakarta.apache.org/tomcat/faq/security.html#jsvcExample.
> >
> >
> >
> Maybe I am missing something, but wouldn't that not be able to bind to
> port 80 since Apache is already bound to it? There is a lot about the
> Java world I am not familiar with, so maybe it can...
> 
You would need separate ip addresses for apache and tomcat.

> >>reason we hand everything off, is because he has his application hosted
> >>inside a directory (ie: ~/public_html/appdir) but wants it to be
> >>available to users as http://www.domainname.com/whatever.jsp instead of
> >>http://www.domainname.com/appdir/whatever.jsp.
> >>
> >>
> >
> >You can configure Tomcat to have a Context whose docbase is
> >~/public_html/appdir but whose path is "" (the empty string, not null or
> >"/").
> >
> >
> And indeed that is what we are doing for him right now. However, my
> previous attempts at fiddling with mod_rewrite to translate root request
> /whatever.jsp into /appdir/whatever.jsp had failed. I now have this
> working in a preliminary stage. Since I was unable to get mod_rewrite
> processing the requests right, we just did a "jkMount /* ",
> which passed every request off to tomcat, and since we had the "root"
> context setup to serve from ~/public_html/appdir it all worked out fine.
> But of course, this results in trying to pass PHP requests (and things
> outside the appdir) to tomcat.
> 

how about passing only requests that are not php to tomcat? You can do this
in httpd.conf:

jkUriSet ...


> >
> >
> >>He also wants to use PHP
> >>on his main domain for forums or some such, once we get him to move his
> >>application out of appdir and into his website root.
> >>
> >>
> >
> >This is the deal breaker I think, for a commercial organization anyways.
> >While you can use PHP on Tomcat, the performance is apparently not good
> >enough for a large scale installation.  See
> >http://wiki.apache.org/jakarta-tomcat/UsingPhp for how to do this
> >anyways.
> >
> >
> Well, I don't think I want to run PHP through Tomcat as we already have
> Apache running with PHP and it runs solid (and quite snappy too).
> 
> What I am currently working on is this for his .htaccess (well, testing
> on a test instance):
> ( snip )
> RewriteEngine On
> RewriteCond %{REQUEST_URI} !^/appdir/
> RewriteRule ^(.*\.jsp)$ /appdir/$1
> ---( /snip )-
> 
> This results in all jsp pages being sent to tomcat. I also added a
> jkMount /appdir/*  to the httpd.conf file. This means, that
> in the user's JSP pages, if he uses absolute paths for images, css, etc
> then they will be handed off to tomcat as well so that a complete page
> is sent back.
> 
> The problem currently is, the user used relative paths for all his
> images, css files, etc. So while the JSP is being served correctly from
> Tomcat with the above .htaccess lines, it is not passing the css and
> image files off, which is the expected behavior. So I am trying to find
> some way to remedy this via .htaccess so the user doesn't have to change
> his 50+ jsp pages =|
> 
> 
> Thanks again for taking the time to answer my questions and provide your
> suggestions. It really is much appreciated!
> 
> -Sean
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


RE: Please help with jk2/tomcat5

2004-08-27 Thread Cox, Charlie

JkUriSet ...



this also works for multiple directories:


Charlie

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Thursday, August 26, 2004 8:41 PM
> To: [EMAIL PROTECTED]
> Subject: Please help with jk2/tomcat5
> 
> Hello list members,
> 
> Running Linux Fedora core2, apache2, tomcat5, jk2
> 
> 
> In my workers2.properties file, I have the following lines:
> 
> [channel.socket:tomcat_server:8033]
> host=hostation.com
> port=8033
> debug=0
> 
> [ajp13:tomcat_server:8033]
> channel=channel.socket:tomcat_server:8033
> debug=0
> 
> [uri:hostation.com/*]
> worker=ajp13:tomcat_server:8033
> debug=0
> 
> [uri:www.hostation.com/*]
> worker=ajp13:tomcat_server:8033
> debug=0
> 
> 
> That works as expected.  It allowed me to delegate ALL requests to tomcat.
> However, now I want to be able to exempt a certain URI such as:
> 
> http://hostation.com/private  so that it is not being handled by tomcat
but
> by apache instead.
> 
> Is it possible ?  Please show me how and I will be hugely greatful!!!
> 
> Thanks.
> Lu
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


RE: JK2: Partition workers2.properties

2004-08-26 Thread Cox, Charlie
Instead of including all your mappings in the workers2.properties, you can
use  and  in httpd.conf to set up your mappings.

Charlie

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, August 25, 2004 8:32 AM
> To: [EMAIL PROTECTED]
> Subject: JK2: Partition workers2.properties
> 
> Hi,
> 
> is it possible to partition the workers2.properties for the JK2?
> 
> We got JK2 running as a ISAPI-Filter on IIS6.
> Now, the new structure of "workers2.properties" is better against
> "workers.properties" and "uriworkermap.properties".
> 
> But now, that we have loads of webs with many contexts each, which itself
> have 2-5 mappings each, the file get's huge (>40kb) and complex.
> 
> Is it possible to partition the file, say, with "include={file}"
statements?
> Or better...
> 
> [include:file]
> file={file}
> ver=1
> 
> ... this way the the main and subfiles (Mappings, Worker, Channels, ...)
> remain clear, and even a reload is faster, because the jk2 only needs to
> read the included files which version-numbers have increased.
> 
> 
> --
> Björn Andersen
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


RE: JK2: Override uri:vhost.tld/* mapping?

2004-08-02 Thread Cox, Charlie
Use  with PCRE in httpd.conf and you can use negative
matches. In this case, do not use the [uri]

Charlie

> -Original Message-
> From: Thomas Zehetbauer [mailto:[EMAIL PROTECTED]
> Sent: Monday, August 02, 2004 3:12 PM
> To: [EMAIL PROTECTED]
> Subject: JK2: Override uri:vhost.tld/* mapping?
> 
> Hi,
> 
> is it possible to override a [uri:vhost.tld/*] mapping from
> workers2.properties in httpd.conf? Or add a negative uri mapping to
> workers2.properties? I want most requests to be dispatched to Tomcat but
> I also want to have e.g. /~user to be handled by Apache.
> 
> Tom
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


RE: Strange problem with Apache2/Tomcat4

2004-07-30 Thread Cox, Charlie
Have you enabled the  in server.xml for port 8009?

> -Original Message-
> From: Harold Pritchett [mailto:[EMAIL PROTECTED]
> Sent: Thursday, July 29, 2004 8:27 PM
> To: Tomcat Users List
> Subject: Strange problem with Apache2/Tomcat4
> 
> Help!
> 
> I'm trying to install Apache HTTPD and Jakarta Tomcat and get them
> to play nice together.  I've done this before with different
> releases of the software, so I can't figure out what I'm doing wrong.
> 
> First, the releases of the software I'm using:
> 
> SuSE Linux Standard Server 8, done as a "basic" install.  The default
> Apache 1.3 server was removed with "rpm" before any of this was done.
> 
> openssl-0.9.7d
> httpd-2.0.50
> jakarta-tomcat-4.1.30
> jakarta-tomcat-connectors-jk-1.2.5
> 
> Sun Java J2SE:  j2sdk-1_4_2_05
> 
> Apache is installed in /usr/local/apache2
> Tomcat is installed in /usr/local/jakarta-tomcat-4.1.30
>   and then linked to /usr/local/tomcat
> Java is installed in /opt/j2sdk1.4.2_05
>   and then linked to /usr/lib/java
> 
> Some environment variables (some lines wrapped for readability):
> 
>  JRE_HOME=/usr/lib/java/jre
>  PATH=/usr/lib/java/bin:/sbin:/usr/sbin:/usr/local/sbin:/root/bin:
>   /usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/games:
>   /opt/gnome2/bin:/opt/gnome/bin:/opt/kde3/bin:/usr/lib/java/bin:
>   /opt/gnome/bin
>  JAVA_BINDIR=/usr/lib/java/bin
>  JAVA_HOME=/usr/lib/java
>  SDK_HOME=/usr/lib/java
>  JDK_HOME=/usr/lib/java
>  CLASSPATH=/usr/local/tomcat/bin/bootstrap.jar:
>   /usr/lib/java/lib/tools.jar:
>   /usr/local/tomcat/common/lib/servlet.jar:.
>  JAVA_ROOT=/usr/lib/java
>  CATALINA_HOME=/usr/local/tomcat
> 
> Finally, here's what I did:
> 
> 1.  Install SSL in /usr/local/ssl
> 2.  Install Apache HTTPD.  Used:
> 
>  ./configure --prefix=/usr/local/apache2 \
>   --enable-so --enable-rewrite --enable-ssl \
>   --with-ssl=/usr/local/ssl --enable-proxy
>  make
>  su -
>  make install
>  cd /usr/local/apache2/bin
>  ./apachectl start
> 
>  Started up a web browser and connected to http://localhost.
>  Got the standard "You have installed apache httpd" page.
>  The httpd server works fine.
> 
>  ./apachectl stop
> 
> 3.  Install tomcat server.  Used:
> 
>  Created user and group "tomcat4"
>  Downloaded tomcat 4.1.30 binary distribution to /download/bin
>  cd /usr/local
>  tar zxf /download/bin/jakarta-tomcat-4.1.30.tar.gz
>  ln -s jakarta-tomcat-4.1.30/ tomcat
>  chown -R tomcat4.tomcat4 /usr/local/tomcat
>  /usr/local/tomcat/bin/startup.sh
> 
>  check to see if tomcat is running with "ps ax"
>  Started up a web browser and connected to http://localhost:8080.
>  Got the standard Tomcat home page.  Clicked on the "JSP Examples"
>  link.  Got the "JSP Examples" page.  I then clicked on EVERY
>  SINGLE EXAMPLE and made sure it worked.  Ditto for the "Servlet"
>  examples.  Everything works fine!  stopped the server with
> 
>  /usr/local/tomcat/bin/shutdown.sh
> 
>  OK, httpd works fine and tomcat works fine, independently.  Next,
>  make them work togehter.
> 
> 4.  Install the Mod_JK connector.
> 
>  download the source for the connector from jakarta.apache.org.
> 
>  unpack into a temp directory, configure, and make.
> 
>  cd /tmp
>  tar zxf
/download/src/jakarta-tomcat-connectors-jk-1.2-src-current.tar.gz
>  cd jakarta-tomcat-connectors-jk-1.2.5-src/jk/native
>  ./buildconf.sh
>  ./configure --with-apxs=/usr/local/apache2/bin/apxs
>  make
>  cd apache-2.0/
>  cp mod_jk.so /usr/local/apache2/modules
> 
>  now, build the workers.properties file in /usr/local/tomcat/conf/jd
> 
>  cd /usr/local/tomcat/conf
>  mkdir jk
>  cd jk
>  vi workers.properties
>  cat workers.properties
>   worker.list=ajp13
>   worker.ajp13.port=8009
>   worker.ajp13.host=localhost
>   worker.ajp13.type=ajp1
>  cd ..
> 
> 
>  Edit the server.xml file and make the following changes
> 
>  Following the line beginning   insert the lines:
> 
>  modJk="/usr/local/apache2/modules/mod_jk.so" />
> 
>  and following the lines:
> 
>
> unpackWARs="true" autoDeploy="true">
> 
>  insert the lines
> 
>   append="true" forwardAll="false"
>   modJk="/usr/local/apache2/modules/mod_jk.so" />
> 
>  and finally, edit the /usr/local/apache2/conf/httpd.conf and place
>  a line at the very end which says:
> 
>   Include /usr/local/tomcat/conf/auto/mod_jk.conf
> 
> Start Tomcat, wait 30 seconds and start apache
> 
> Use a browser and connect to http://localhost.  Get the Apache default
> screen.  Connect to http://localhost/examples.  Since this is only
> defined as a directory, we get the usual apache display of a directory
> with three sub-directories.  Looks exactly like what we would expect.
> 
> CLick o

RE: apache2 crashes when using connectors - nobody?

2004-07-02 Thread Cox, Charlie
Please do not "flag" messages for follow-up. I would try to help, but your
message flag tells me that I am 222 years late (year=1782) - your project
has probably moved on since then. 

I think I'm more amazed that Outlook didn't crash. Wow.

Charlie

> -Original Message-
> From: Andy Spiegl [mailto:[EMAIL PROTECTED]
> Sent: Friday, July 02, 2004 4:46 AM
> To: [EMAIL PROTECTED]
> Subject: apache2 crashes when using connectors - nobody?
> 
> Hm, nobody out there who has seen this problem before and might
> be able to help me?
> 
> 
> I installed tomcat-4.1.30 on a SuSE 9 box.  So far so good.
> But then I tried to install the connector modules into the apache
> (version 2.0.49-23) but didn't succeed.
> 
> I find this type of lines in the apache error.log:
>  [notice] child pid 21721 exit signal Segmentation fault (11)
> 
> and these lines in the mod_jk.log:
>  [jk_uri_worker_map.c (485)]: Into jk_uri_worker_map_t::map_uri_to_worker
>  [jk_uri_worker_map.c (619)]: In jk_uri_worker_map_t::map_uri_to_worker,
wrong
> parameters
> 
> I checked all available documentation and web resources but couldn't find
> any pointers to why that is so.  I have tried pretty much all versions of
> the connector modules I could find but apache always crashes like this.
> 
> For now I chose the mod_proxy method to serve the jsp files, but I'd
prefer
> the connectors.  Could some kind soul please point me to the solution.
> 
> Thanks in advance,
>  Andy.
> 
> --
>   o  _ _ _
>   --- __o   __o  /\_   _ \\o  (_)\__/o  (_)  -o)
>   - _`\<,__`\<,__>(_) (_)/<_\_| \   _|/' \/   /\\
>    (_)/ (_)  (_)/ (_)  (_)(_)   (_)(_)'  _\o__\_v
>  
>  Programmers - Use Safer Hex !
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


RE: class loader interdependencies

2004-06-25 Thread Cox, Charlie
Classes in /common and /shared can not see classes in /WEB-INF. A class
loaded by the nth classloader will not see any classes loaded by (n-1)
classloader. However, it will see classes loaded by n+1 loader. This is the
classloader hierarchy. Any classloader only has one parent to which it can
delegate any classes that it can not resolve. Since multiple
classloaders(one for each webapp) can have the same parent, the common
classloader would not know which "WEB-INF" to reference when searching for a
class.

Therefore all your classes need to be in /common if any within /common
reference them. As an alternate, you can copy all classes to each /WEB-INF.

Charlie

> -Original Message-
> From: Larry Levin [mailto:[EMAIL PROTECTED]
> Sent: Friday, June 25, 2004 9:30 AM
> To: [EMAIL PROTECTED]
> Subject: class loader interdependencies
> 
> Hi all;
> 
> I am trying to share some jars across multiple web-apps, each of which
> runs in its own environment (i.e, JVM). To do this I make use of the
> CATALINA_BASE environment variable. My problem is in regards to class
> loading.
> 
> I have a number of jar files that are common to each webapp but I also
> have a couple that are unique to each app. According to the
> documentation for Tomcat 4.1: "from the perspective of a web
> application, class or resource loading  looks in the following
> repositories, in this order:"
> 
>  1) /WEB-INF/classes of your web application
>  2) /WEB-INF/lib/*.jar of your web application
>  3) Bootstrap classes of your JVM
>  4) System class loader classes
>  5) $CATALINA_HOME/common/classes
>  6) $CATALINA_HOME/common/endorsed/*.jar
>  7) $CATALINA_HOME/common/lib/*.jar
>  8) $CATALINA_BASE/shared/classes
>  9) $CATALINA_BASE/shared/lib/*.jar
> 
> I have therefore tried two different approaches, both of which fail for
> the same reason.
> 
>   1st approach: I modified the standard startup script to add the shared
> jars to the CLASSPATH, thereby treating them as System class loader
> classes (i.e., category #4 in the above sequence).
> 
>   2nd approach: I placed the shared jars in $CATALINA_HOME/common/lib
> (i.e., category #7 in the above sequence).
> 
> In both cases everything works fine UNTIL one of these shared classes
> needs to access a class located in one of the /WEB-INF/lib/*.jar of a
> web application (i.e., category #2). At that point my code throws a
> ClassNotFoundException.
> 
> My impression is that something in the class loader procedures prevents
> "loading backwards" by which I mean:
> 
> IF Class X was loaded by the nth loader in the sequence (e.g., #4,
> the system loader),
>AND Class X references a previously unloaded class,
>THEN Tomcat will ignore any loader lower in the sequence the
> Class X's loader
> (e.g., loaders 1-3 (the /WEB-INF and bootstrap loaders
> in this example))
> when attempting to resolve the reference.
> 
> Is this a correct assumption and does anyone have a suggestion for
> working around this "feature"?
> 
> Thanks
> 
> Larry
> 
> 
> 
> 
> 
> --
> 
> Lawrence J Levin
> Critical Architectures, LLC
> Skillman NJ 08558
> email: [EMAIL PROTECTED]
> voice: (609) 333-9750
> cell:  (908) 227-8485
> fax:   (609) 333-9751
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


RE: Toimcat / Apache / Modjk

2004-06-24 Thread Cox, Charlie
I just saw something similar on apache-user. You can use 

JkUriSet ...


as described here:
http://marc.theaimsgroup.com/?l=apache-httpd-users&m=108756469315623&w=2

LocationMatch takes perl-compatible regular expression, so you should be
able to do it. However, I have not tried this, so hopefully it works. If so,
please let us know. 

In my first attempt at doing this, I did not realize I could use
perl-compatible regex, but I have suggested changes to the Apache docs to
make this more obvious.

Charlie


> -Original Message-
> From: James Sherwood [mailto:[EMAIL PROTECTED]
> Sent: Thursday, June 24, 2004 11:25 AM
> To: Tomcat Users List
> Subject: Toimcat / Apache / Modjk
> 
> Hello,
> I have posted this problem before to no avail and thought I would try
> again
> 
> I have apache 2.049 in front of tomcat 5.025 and they are linked with
modjk
> 1.2
> 
> I want everything for a site such as www.mydomain.com to go through tomcat
> EXCEPT
> for any php pages.
> 
> Is there a way I can JkMount everything BUT something?
> 
> Basically I want to mount everything EXCEPT url's ending in .php
> 
> Thanks in advance
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


RE: Tomcat4 RMI class loading bermuda triangle

2004-06-23 Thread Cox, Charlie
Try copying your classes to /common/lib (or /common/classes). This way they
are available to tomcat internal classes also.

Is that the full stack trace? The class hierarchy that invokes Class.forName
will help identify which classloader is trying to load your classes. I
suspect one of tomcat's own classes.

Charlie

> -Original Message-
> From: Guillaume Boutard [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, June 23, 2004 4:43 AM
> To: [EMAIL PROTECTED]
> Subject: Tomcat4 RMI class loading bermuda triangle
> 
> Hi every body,
> I'm trying to fix this problem for one week and i'm turning crazy right
now.
> I have this servlet working perfectly, finding every package i put in
> /var/tomcat4/shared/lib except that it doesn't find my RMIServer class
> for casting
> i get a
> [java.lang.ClassNotFoundException] - myRMIServerClass
>org.apache.catalina.loader.StandardClassLoader.loadClass(Unknown
Source)
>org.apache.catalina.loader.StandardClassLoader.loadClass(Unknown
Source)
>java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
>java.lang.Class.forName0(Native Method)
>java.lang.Class.forName(Class.java:141)
> 
> all classes are in the jar with the stub and skeleton (i tried to put
> classes in WEB_INF/classes of my servlet but same problem... so i guess
> this is not the real problem)
> 
> I have set in catalina policy file a:
> grant {
> permission java.security.AllPermission;
> };
> to be sure there's no problem of security. i changed the init.d/tomcat4
> script to add -security to the starting line to be sure that it is
> started the right way
> 
> 
> I used to try the same code with tomcat 3 and i changed to tomcat 4
> because of a rmi jni problem reported on mailing lists (i spent so much
> time on tomcat4 that i can't remember what was the previous one) but i
> can't even get that far with tomcat4
> 
> My version is a rpm 4.2.1 for Red Hat
> 
> Does someone understand what's going on
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


RE: Client disconnect again

2004-06-15 Thread Cox, Charlie
I have done this with a filter to capture the user aborting a download on a
static file. 

try
{
chain.doFilter(req,resp);
// "Success" post-processing
}
catch (IOException ioe)
{
// user cancelled download 
// "Aborted" post-processing
}

I am using 4.1.29(it has worked with all 4.x versions), but I have not
tested with 5.x yet.

Charlie

> -Original Message-
> From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 15, 2004 11:07 AM
> To: Tomcat Users List
> Subject: RE: Client disconnect again
> 
> 
> Hi,
> No such setting exists, AFAIK, and I don't find the behavior
> unbelievable: there's no mandate by the servlet spec or HTTP protocol
> spec that you get an exception.  It only says you MAY get an exception
> if the client disconnects.
> 
> Yoav Shapira
> Millennium Research Informatics
> 
> 
> >-Original Message-
> >From: Dorel Vaida [mailto:[EMAIL PROTECTED]
> >Sent: Tuesday, June 15, 2004 11:04 AM
> >To: Tomcat Users List
> >Subject: Client disconnect again
> >
> >I repost this in the hope that someone will see it and give me an
> >answer...
> >
> >Hi all. I would like to know if in Tomcat there is something like
> > in resin. What I need, more specifically is
> >to catch and handle the exception when a client (browser) disconnects
> >during tomcat serving a request. It seems now that even if I close the
> >browser I CAN STILL write in the output stream of the response and even
> >flush it w/o geting an IOException in Tomcat. Here's the simple example
> >I'm using, is a jsp:
> >
> ><[EMAIL PROTECTED] import="java.io.*" %>
> >
> ><%
> >
> >while(true){
> >
> >try{
> >
> >out.write(" er ");
> >
> >out.flush();
> >
> >System.out.println("output wrote");
> >
> >Thread.sleep(2000);
> >
> >} catch (Throwable t) {
> >
> >t.printStackTrace();
> >
> >}
> >
> >}
> >
> >%>
> >
> >Sorry for the bad formatting. This sample code seems to work even after
> >I close the browser. No exception thrown when writing to an inexistent
> >client (?!)Which seems pretty unbelievable to me, that's why I'm
> asking,
> >I think that there is something that I miss badly here.
> >
> >I have tested with tomcat 5.18 and 5.25 on sun j2sdk_1.4.2_03/ Windows
> >XP.
> >
> >Thanks in advance
> >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> 
> This e-mail, including any attachments, is a confidential business
> communication, and may contain information that is confidential,
proprietary
> and/or privileged.  This e-mail is intended only for the individual(s) to
whom
> it is addressed, and may not be saved, copied, printed, disclosed or used
by
> anyone else.  If you are not the(an) intended recipient, please
immediately
> delete this e-mail from your computer system and notify the sender.  Thank
> you.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


bypassing apache directives with jk2 and multiple hosts/ip addres ses

2004-06-11 Thread Cox, Charlie
I am running Apache 2.0.49 / jk2 2.0.4 / tomcat 4.1.29

I have several ip-based virtual hosts set up through Apache which use jk2 to
get to tomcat. My problem is that I can bypass Apache settings for the
domain by changing the ipaddress used for those domains with a client.

Example configuration:


ServerName www.aaa.com:80
DocumentRoot /www/aaa/
DirectoryIndex index.html

Order Deny,Allow
Allow from all


JkUriSet worker ajp13:localhost:8009 




ServerName www.bbb.com:80
DocumentRoot /www/bbb/
DirectoryIndex index.html

Order Allow,Deny
Deny from all
Allow from 10.10.10


JkUriSet worker ajp13:localhost:8009 



Server.xml:

...


...


What I want is that all users can access www.aaa.com, while only specific
users can access www.bbb.com. The problem is that I can modify my host file
with the following:

10.1.1.1www.bbb.com

The request is received by the first  because of the ip
address, regardless of the host name. This will allow all of the JSP files
for the host to be viewed(not just the /examples and by anyone). The
LocationMatch allows the request to get to tomcat and once it receives the
request, tomcat only looks at the domain name.

Can jk2/tomcat prevent this behavior? I see a couple of ways that I can
change my configuration, but it wasn't obvious that I needed to do either
until I realized the problem.

1. Create a tomcat  in server.xml for each hostname(and its
ipaddress) that I want to be separate. Therefore each host/ip will have its
own jk2 worker.

2. Create an Apache default virtual host for each ipaddress with no
JkUriSet. 

3. Add the RemoteAddressValve to my tomcat host. But this seems repetitive
and people unaware of this problem will probably not use this in addition to
the Apache directives.

Charlie



RE: Advice needed on deploying on Tomcat 5.0.25

2004-06-10 Thread Cox, Charlie
The web.xml requirement changed between 4.24 and 4.29. Once I upgraded to
4.1.29, I needed to add web.xml to a remote directory that I had mapped as a
context otherwise that context would not start. Normally not a problem,
however I only had read access so I had to get the admin to create a WEB-INF
directory with a nearly empty web.xml. This had worked without a web.xml in
4.1.24, so I'm not sure which version actually changed the requirement.

I haven't tried 5.x, so I'm not sure if it requires web.xml or not. 

Charlie

> -Original Message-
> From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, June 09, 2004 9:40 AM
> To: Tomcat Users List
> Subject: RE: Advice needed on deploying on Tomcat 5.0.25
> 
> 
> Hi,
> A web.xml was a requirement with 4.x in that otherwise it would just use
> defaults.  5.x is the same way, so while web.xml is not strictly
> required by tomcat, it is required by the spec and strongly encouraged.
> 
> 5.x and later versions of 4.x (after 4.1.18) comment out the invoker
> servlet by default.  That's probably why you're seeing your error.  So
> your assertion that your app worked on 4.x is false: it may have worked
> on 4.0.x and 4.1.y where y < 18, but not later version of 4.x.
> 
> You can read more about the invoker servlet and why it was commented out
> in the tomcat faq (jakarta.apache.org/tomcat/faq).
> 
> Yoav Shapira
> Millennium Research Informatics
> 
> 
> >-Original Message-
> >From: Edd Dawson [mailto:[EMAIL PROTECTED]
> >Sent: Wednesday, June 09, 2004 9:29 AM
> >To: [EMAIL PROTECTED]
> >Subject: Advice needed on deploying on Tomcat 5.0.25
> >
> >Hi
> >
> >I recently installed Tomcat 5.0.25 on my windows laptop.
> >
> >
> >I did have 4.x installed and i copied over my faithful HelloWorld
> >example from 4.x/webapps directory to my new 5.0.25/webapps directory..
> >
> >and it doesn't work! I get the following error :
> >
> >HTTP Status 404 - /hello/servlet/HelloWorld
> >
> >---
> 
> >-
> >
> >type Status report
> >
> >message /hello/servlet/HelloWorld
> >
> >description The requested resource (/hello/servlet/HelloWorld) is not
> >available
> >
> >
> >
> >It still works fine on 4.x.
> >
> >So i tried putting the class file in the /class directory of the
> >servlets-examples webapp that came with 5.0.25 and it didn't work until
> >i added its details the web.xml for that app.
> >
> >Now do i HAVE to have a web.xml now i am using 5.0.25 ? as with 4.x it
> >wasn't a requirement.
> >
> >cheers
> >Edd Dawson
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> 
> This e-mail, including any attachments, is a confidential business
> communication, and may contain information that is confidential,
proprietary
> and/or privileged.  This e-mail is intended only for the individual(s) to
whom
> it is addressed, and may not be saved, copied, printed, disclosed or used
by
> anyone else.  If you are not the(an) intended recipient, please
immediately
> delete this e-mail from your computer system and notify the sender.  Thank
> you.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


RE: Can't find classes - Even More Info

2004-06-04 Thread Cox, Charlie
Did you check permissions for your service user?

> -Original Message-
> From: David Rush [mailto:[EMAIL PROTECTED]
> Sent: Thursday, June 03, 2004 3:36 PM
> To: Tomcat Users List
> Subject: Re: Can't find classes - Even More Info
> 
> Still grasping at straws on this one
> 
> I tried stopping Tomcat as a service, then starting it up manually to
> see if it gave any more diagnostic info.
> When I run it from the command line, it works fine!  I went back to
> running a service, and it fails just as before.
> What's going on?
> 
> David
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


RE: Serving up static content through apache using mod_jk

2004-06-03 Thread Cox, Charlie
I have the same problem and I am considering modifying jk2 to support such a
feature. Hopefully I will have some time in the next couple of weeks to try
this out. 

I need Apache for other apps too, not just tomcat.

Charlie

> -Original Message-
> From: James Sherwood [mailto:[EMAIL PROTECTED]
> Sent: Thursday, June 03, 2004 11:08 AM
> To: Tomcat Users List
> Subject: Re: Serving up static content through apache using mod_jk
> 
> Yes but in my case I have a ton of directories that are dynamically
changed
> so I want everything served through tomcat except some static stuff in one
> directory:)
> 
> Any ideas?
> 
> 
> - Original Message -
> From: "QM" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Thursday, June 03, 2004 11:50 AM
> Subject: Re: Serving up static content through apache using mod_jk
> 
> 
> > On Thu, Jun 03, 2004 at 11:52:11AM -0300, James Sherwood wrote:
> > : If the JKMount /* ajp13 passes everything to the jk handler, is there
a
> way
> > : route everything
> > : but /staticserve directory to the jk handler?
> >
> > I've never done that, so I wouldn't know.
> >
> > I prefer the opposite approach: have a handful of JkMount directives,
> > one for each Tomcat-served URI or file extension:
> >
> > JkMount /*.jsp
> > JkMount /*.do
> > JkMount /special/*
> > JkMount /j_security_check
> >
> > -QM
> >
> > --
> >
> > software  -- http://www.brandxdev.net
> > tech news -- http://www.RoarNetworX.com
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


FW: Directory recursion with mod_jk2.

2004-05-11 Thread Cox, Charlie

> -Original Message-
> From: Brett Simpson [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, May 11, 2004 8:55 AM
> To: [EMAIL PROTECTED]
> Cc: Cox, Charlie
> Subject: Re: Directory recursion with mod_jk2.
> 
> On Tuesday 11 May 2004 08:21 am, Cox, Charlie wrote:
> > Did you set the  in web.xml so that it knows to use
> > index.cfm as a welcome page?
> 
> If I set that then it does work but I would rather control it through
Apache
> since that will function much closer to our existing Apache + mod_jrun +
> Coldfusion MX non-j2ee install.
> 
> > Also, I think your  is wrong for Apache. Apache doesn't know
> > about the directories used by tomcat, so it will never match your path.
I
> > think you want something like this:
> >
> > 
> > Options All
> > DirectoryIndex index.cfm
> > 

Ok, now that I reviewed my config, I have DirectoryIndex in the
, not in a . (sorry about that - too many JkUriSets
recently) The problem that you are running into is that Apache does not know
that tomcat is pointing the request to your cfusion directory since tomcat
can point to a context that resides in any directory.

If you set your DirectoryIndex in your  or Main section if you
have no vhost, then it should work correctly. 

> 
> I have my document root set the same as the Directory. If I disable
mod_jk2
> then Apache can browse the files in the
> "/opt/jakarta-tomcat-4.1.30/webapps/cfusion/" folder.
> 
> DocumentRoot "/opt/jakarta-tomcat-4.1.30/webapps/cfusion/"
> 
> 
> Options All
> DirectoryIndex index.cfm
> 

I'm not sure at what point JkUriSet trumps  declarations(does
 matter if the request goes to tomcat since tomcat can serve the
request from a (possibly) completely different directory?). I do know that 

DocumentRoot /myroot
DirectoryIndex index.html

works with tomcat and the index.html request is what is sent to tomcat, not
the directory (/) request.

Charlie


RE: Directory recursion with mod_jk2.

2004-05-11 Thread Cox, Charlie
Did you set the  in web.xml so that it knows to use
index.cfm as a welcome page?

Also, I think your  is wrong for Apache. Apache doesn't know
about the directories used by tomcat, so it will never match your path. I
think you want something like this:


Options All
DirectoryIndex index.cfm


Charlie

> -Original Message-
> From: Brett Simpson [mailto:[EMAIL PROTECTED]
> Sent: Monday, May 10, 2004 4:12 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Directory recursion with mod_jk2.
> 
> On Monday 10 May 2004 03:46 pm, Cox, Charlie wrote:
> > Remove your [uri] line and use something like this in the httpd.conf:
> >
> > 
> > JkUriSet ...
> > 
> 
> No luck on that. I still end up in a Tomcat served directory listing
instead
> of getting the index.cfm.
> 
> Here's what I now have:
> 
> # My Apache config
> LoadModule jk2_modulemodules/mod_jk2.so
> 
> 
> Options All
> DirectoryIndex index.cfm
> 
> 
> 
> JkUriSet worker ajp13:localhost:8009
> 
> 
> #workers2.properties
> 
> [logger]
> info=Native logger
> level=ERROR
> 
> [config:]
> file=${serverRoot}/conf/workers2.properties
> debug=0
> debugEnv=0
> 
> [uriMap:]
> info=Maps the requests.
> debug=0
> 
> [shm:]
> info=Scoreboard. Required for reconfiguration and status with multiprocess
> servers
> file=anonymous
> debug=0
> 
> [workerEnv:]
> info=Global server options
> timing=0
> debug=0
> 
> [channel.socket:localhost:8009]
> info=Ajp13 forwarding over socket
> debug=0
> tomcatId=localhost:8009



RE: Directory recursion with mod_jk2.

2004-05-10 Thread Cox, Charlie
Remove your [uri] line and use something like this in the httpd.conf:


JkUriSet ...


regular expression is your friend. You should then be able to use your
DirectoryIndex.

Charlie

> -Original Message-
> From: Brett Simpson [mailto:[EMAIL PROTECTED]
> Sent: Monday, May 10, 2004 12:58 PM
> To: Tomcat Users List
> Subject: Re: Directory recursion with mod_jk2.
> 
> On Thursday 06 May 2004 04:24 pm, Brett Simpson wrote:
> > I'm trying to configure Apache2 with mod_jk2 on Linux to be able to
process
> > all files with a .cfm extension in all directories on the server. The
cfm
> > is used for the Coldfusion servlet which is installed in the ROOT
context.
> 
> I figured out what I was doing wrong.
> 
> I needed the following in my worker2.properties file and had to avoid the
use
> of "DirectoryIndex index.cfm" in Apache.
> 
> [uri:/*.cfm]
> info=CFM Extension mapping.
> debug=0
> 
> If I add "DirectoryIndex index.cfm" to Apache then all requests get sent
to
> Tomcat even though I only specify *.cfm for the uri. Consequently
> DirectoryIndex in Apache doesn't work for files covered under the uri.
> 
> This is listed as a bug.
> 
> http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19298
> 
> Has anyone else seen this problem or know of a workaround?



RE: jk2: url mapping problem with apache

2004-05-10 Thread Cox, Charlie
You are doubling up on your mappings. If you are going to use JkUriSet,
remove the [uri] from workers2.properties. The [uri] would be what is
causing your problem.

Charlie

> -Original Message-
> From: Duane Winner [mailto:[EMAIL PROTECTED]
> Sent: Friday, May 07, 2004 2:11 PM
> To: Tomcat Users List
> Cc: Arend P. van der Veen
> Subject: jk2: url mapping problem with apache
> 
> Hello all,
> 
> Is there a way to configure mod_jk2 to check the full URL and/or the
> port the client uses to connect to the apache server?
> 
> The problem I'm having is this:
> 
> I have three webapps:
> "public"
> "authorized"
> "secure"
> 
> I have three apache virtual servers:
> "http://www.foo.bar"; (HTTP - non-encrypted port 80)
> "https://www.foo.bar"; (HTTPS - SSL-encrypted port 443)
> "https://secure.foo.bar"; (HTTPS - SSL with client certs port 443)
> 
> Everything works fine, almost (apache talks to Tomcat and Tomcat serves
> up my servlets):
> 
> Example:
> 
> "http://www.foo.bar/public/servlet/HappyWebApp";
> "https://www.foo.bar/authorized/servlet/NotForEverybodyWebApp";
> "https://secure.foo.bar/secure/servlet/DoubleSecretProbationWebApp";
> 
> But, I think what is happening is because the first and second examples
> share the same URL (minus the 'https' and 443 instead of port 80), JK2,
> doesn't distinguis between them, and after some security checking, I
> found I can do this:
> 
> "http://www.foo.bar/authorized/servlet/NotForEverybodyWebApp";
> 
> NOT GOOD!
> 
> conversely,
> 
> "https://www.foo.bar/public/servlet/HappyWebApp";
> 
> will serve up a public webapp.
> 
> Anything to the third pairing works because it is 'secure.foo.bar' and
> thus is a different URL (at least I THINK that is what is going on). I
> get a "URL' cannot be found" if I try to jump to a a secure webapp from
> http://www* or https://www*, and vice versa. This is how it should be
> for all of them.
> 
> My workers2.properties looks like this:
> (snip)
> [channel.socket:localhost:8009]
> port=8009
> host=localhost
> 
> [ajp13:localhost:8009]
> channel=channel.socket:localhost:8009
> 
> [uri:www.foo.bar/public/servlet/*]
> group=ajp13:localhost:8009
> 
> [uri:www.foo.bar/authorized/servlet/*]
> group=ajp13:localhost:8009
> 
> [uri:secure.foo.bar/secure/servlet/*]
> group=ajp13:localhost:8009
> (end)
> 
> And the directives I use in httpd.conf and ssl.conf (apache2) are:
> 
> In the 'MAIN' server configuration:
> 
> JKUriSet worker ajp13:localhost:8009
> 
> 
> Virtual Host "authorized":
> 
> JKUriSet worker ajp13:localhost:8009
> 
> 
> And Virtual Host "secure":
> 
> JKUriSet worker ajp13:localhost:8009
> 
> 
> 
> Any thoughts, advice, directions, instructions, or implements of
> destruction on this matter would be greatly appreciated.
> 
> Thanks,
> Duane Winner
> [EMAIL PROTECTED]
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


RE: How to limit time for Connector threads?

2004-05-07 Thread Cox, Charlie
I haven't done this myself, but here is a link:
http://marc.theaimsgroup.com/?l=tomcat-user&m=107373227524598&w=2


> -Original Message-
> From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
> Sent: Friday, May 07, 2004 6:33 AM
> To: [EMAIL PROTECTED]
> Subject: AW: How to limit time for Connector threads?
> 
> Hi Rodrigo,
> 
> it is possible to debug a remote server in eclipse, which is not started
in
> the ide?
> Do you have a link where I can find informations about this technique or a
> little bit time to explain it for me?
> 
> Thanx
> Jens
> 
> -Ursprüngliche Nachricht-
> Von: Rodrigo Ruiz [mailto:[EMAIL PROTECTED]
> Gesendet: Freitag, 7. Mai 2004 12:27
> An: Tomcat Users List
> Betreff: Re: How to limit time for Connector threads?
> 
> 
> rlipi wrote:
> 
> >I am going to try Antonio's proposal. Also I would like to try some
> >profiling tool. But it will take a lot of time to find and repair
> >something, I think.
> >
> >
> >
> If you are dealing with a programming error like an infinite loop or a
> deadlock, you may have better luck using a debugger, rather than a
> profiling tool :-)
> 
> Most of the popular IDEs (JBuilder, Eclipse, Idea, etc) can do remote
> debugging, so you just need to start your server (or a copy of it) in
> debug mode and connect to it from the IDE.
> 
> In case you do not have any IDE, my recommendation is Eclipse, as it is
> free and needs no complicated installation.
> In case you do not know how to use remote debugging, I am pretty sure
> you can search through the archives in this list, or do some googling ;-)
> 
> Hope it helps you,
> Rodrigo Ruiz
> 
> 
> --
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.678 / Virus Database: 440 - Release Date: 06/05/2004
> 
> 
> -
> 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: Accessing Dll's

2004-04-22 Thread Cox, Charlie
It needs to be on the windows path(which includes system32). Did you restart
tomcat after moving them? 

> -Original Message-
> From: Annamalai Ramasamy [mailto:[EMAIL PROTECTED]
> Sent: Thursday, April 22, 2004 11:01 AM
> To: Tomcat Users List
> Subject: Re: Accessing Dll's
> 
> Hi.,
> Again same error.
> I did put the dll to /jre/bin and winnt/system32.
> Any other ideas please...
> Thanks.,
> MALAI
> 
> Hans Wichman <[EMAIL PROTECTED]> wrote:
> sorry, i meant lib\bin\ instead of lib\ext\
> 
> grtz
> Sorv
> 
> At 03:43 PM 4/22/2004 +0100, Annamalai Ramasamy wrote:
> >Hi.,
> > Again Same Error..
> >Actually after the System.loadlibrary..i can able to see my
> >system.out.println values.
> >Then while trying to call my method i'm getting UnsatishfiedLinkError.
> >Thanks.,
> >MALAI
> >
> >Hans Wichman wrote:
> >try putting them in the lib/ext folder of your j2sdk1.4.2_03 folder.
> >
> >grtz
> >Sorv
> >
> >At 03:24 PM 4/22/2004 +0100, Annamalai Ramasamy wrote:
> > >Hi.,
> > > I'm using Tomcat4.0.29 with J2SDK 1.4.2_03.
> > >I have my native libraries(dll's) in winnt folder.
> > >I'm loading the dll thru System.loadlibrary and accessing the methods.
> > >I'm getting UnsatishfiedLinkError.
> > >My class files are in my web-inf classes directory.
> > >In forums i searcehed, and i tried out all possibility like
> > >setting path and changing my classes to common/classes and all.
> > >Please give me your suggestions...
> > >Thanks.,
> > >MALAI
> > >
> > >
> > >-
> > > Yahoo! Messenger - Communicate instantly..."Ping" your friends today!
> > > Download Messenger Now
> >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >-
> > Yahoo! Messenger - Communicate instantly..."Ping" your friends today!
> > Download Messenger Now
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> -
>   Yahoo! Messenger - Communicate instantly..."Ping" your friends today!
> Download Messenger Now


RE: ajp13.service() ajpGetReply recoverable error 3

2004-04-21 Thread Cox, Charlie
I am also receiving these messages. However they do not seem to be causing a
problem and I have been too busy to research it.

> -Original Message-
> From: Matt Woodings [mailto:[EMAIL PROTECTED]
> Sent: Monday, April 19, 2004 11:21 AM
> To: Tomcat Users List
> Subject: Re: ajp13.service() ajpGetReply recoverable error 3
> 
> hi I get the exact same thing with the same configuration and I have been
> trawling the news groups and web for answers but to no avail, so I am with
> you on getting a definitive answer on this log file output.
> 
> Matt
> - Original Message -
> From: "Michael Sanders" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, April 19, 2004 10:09 AM
> Subject: ajp13.service() ajpGetReply recoverable error 3
> 
> 
> > I'm using Apache 2.0.49, Tomcat 4.1.29, and mod_jk2 2.04 on Windows
> > 2000 Server. I'm getting errors in my Apache & Tomcat logs (shown
> > below), BUT I do not get any errors shown in the browser and my servlet
> > appears to be functioning correctly. I guess the fact that it says
> > "recoverable error" means that it recovers which is why users do not
> > see any errors. However I suspect it does mean that the system is
> > working sub-optimally. I'd be grateful if someone could give me a clue
> > as to the meaning of the errors & any pointers on fixing the problem.
> >
> > Many thanks,
> > Michael Sanders
> >
> > Apache 2.0.49 error log
> > ===
> > [Mon Apr 19 15:48:53 2004] [error] ajp13.service() ajpGetReply
> > recoverable error 3
> > [Mon Apr 19 15:48:53 2004] [error] ajp13.service() ajpGetReply
> > recoverable error 3
> > [Mon Apr 19 15:48:53 2004] [error] ajp13.service() Error  forwarding
> > ajp13:localhost:8009 1 0
> > [Mon Apr 19 15:48:53 2004] [error] mod_jk2.handler() Error connecting
> > to tomcat 3, status 200
> >
> >
> > Tomcat 4.1.29 stderr
> > 
> > [ERROR] JkCoyoteHandler - -Error in action code
> >  > error>java.net.SocketException: Connection aborted by peer: socket
> > write error
> > at java.net.SocketOutputStream.socketWrite(Native Method)
> > at java.net.SocketOutputStream.write(SocketOutputStream.java:91)
> > at org.apache.jk.common.ChannelSocket.send(ChannelSocket.java:457)
> > at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:654)
> > at
> > org.apache.jk.server.JkCoyoteHandler.action(JkCoyoteHandler.java:435)
> > at org.apache.coyote.Response.action(Response.java:222)
> > at org.apache.coyote.Response.finish(Response.java:343)
> > at
> > org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:314)
> > at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:387)
> > at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:673)
> > at
> >
>
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:615)
> > at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:786)
> > at
> >
>
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
> a:666)
> > at java.lang.Thread.run(Thread.java:479)
> >
> > workers2.properties
> > ===
> > #define the shared memory file
> > [shm]
> > file=C:/Program Files/Apache Group/Apache2/jk2.shm
> >
> > # Define the communication channel
> > [channel.socket:localhost:8009]
> > tomcatId=localhost:8009
> >
> > [ajp13:localhost:8009]
> > channel=channel.socket:localhost:8009
> >
> > [uri:/servlet/*]
> > worker=ajp13:localhost:8009
> >
> > server.xml
> > ==
> > 
> >
> >
> >   
> >> className="org.apache.catalina.mbeans.ServerLifecycleListener"
> > debug="0"/>
> >> className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"
> > debug="0"/>
> >
> >   
> >   
> >
> > 
> >  > value="30"/>
> >
> > 
> >  >   type="org.apache.catalina.UserDatabase"
> >description="User database that can be updated and saved">
> > 
> > 
> >   
> > factory
> >
> > org.apache.catalina.users.MemoryUserDatabaseFactory
> >   
> >   
> > pathname
> > conf/tomcat-users.xml
> >   
> > 
> >
> >   
> >
> >
> >   
> >   
> >
> > 
> >  >port="8080" minProcessors="5" maxProcessors="75"
> >enableLookups="true" redirectPort="8443"
> >acceptCount="100" debug="0" connectionTimeout="2"
> >useURIValidationHack="false" disableUploadTimeout="true"
> > />
> >
> > 
> >  >port="8009" minProcessors="5" maxProcessors="100"
> >enableLookups="true" redirectPort="8443"
> >acceptCount="100" debug="0" connectionTimeout="30"
> >useURIValidationHack="false"
> >
> > protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"/>
> >
> > 
> > 
> >
> >>   directory="D:/logfiles/Tomcat" prefix="tomcat_."
> > suffix=".log"
> >   timestamp="true"/>
> >
> >>  debug="0" resour

RE: location of workers2.properties parameters

2004-04-13 Thread Cox, Charlie
Sorry, I meant comment out the [logger.apache2] lines in the
workers2.properties. 

Even after doing this you will still get your errors in the logs, but the
info's seem to stop. (this doesn't turn off all logging for jk2)

Chalrie

> -Original Message-
> From: Randy [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, April 13, 2004 11:39 AM
> To: 'Tomcat Users List'
> Subject: RE: location of workers2.properties parameters
> 
> So was  that in one place it the code or through-out?
> 
> Thanks
> 
> -Original Message-
> From: Cox, Charlie [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, April 13, 2004 8:27 AM
> To: 'Tomcat Users List'
> Subject: RE: location of workers2.properties parameters
> 
> The only way I could get rid of these was to comment out the logger lines.
> 
> Charlie
> 
> > -Original Message-
> > From: Randy [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, April 13, 2004 1:23 AM
> > To: [EMAIL PROTECTED]
> > Subject: location of workers2.properties parameters
> >
> > I can not find the doc that describes the descriptors in
> workers2.properties
> >
> > I am sorry if it is obvious , but I can not find it I have tried
> > http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/jk2.html
> > And
> > http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk/workershowto.ht
> > ml
> >
> >
> > In my error.log for my web server it is full of [Mon Apr 12 23:35:28
> > 2004] [notice] channelApr.receive(): Received len=147
> > type=4
> > Lots and lots of these
> >
> > I was kindof thinking it was a setting in my workers2.properties I
> > changed [logger.apache2] to level=INFO As a guess, but I am still
> getting
> > these. Like every 10th of a second
> >
> > Thanks
> > Randy
> >
> >
> > -
> > 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: location of workers2.properties parameters

2004-04-13 Thread Cox, Charlie
The only way I could get rid of these was to comment out the logger lines.

Charlie

> -Original Message-
> From: Randy [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, April 13, 2004 1:23 AM
> To: [EMAIL PROTECTED]
> Subject: location of workers2.properties parameters
> 
> I can not find the doc that describes the descriptors in
workers2.properties
> 
> I am sorry if it is obvious , but I can not find it I have tried
> http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/jk2.html
> And
> http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk/workershowto.html
> 
> 
> In my error.log for my web server it is full of
> [Mon Apr 12 23:35:28 2004] [notice] channelApr.receive(): Received len=147
> type=4
> Lots and lots of these
> 
> I was kindof thinking it was a setting in my workers2.properties
> I changed [logger.apache2] to level=INFO As a guess, but I am still
getting
> these. Like every 10th of a second
> 
> Thanks
> Randy
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


RE: PDF Files

2004-03-29 Thread Cox, Charlie
You need to implement the "Range" header.

Charlie

> -Original Message-
> From: Peter Guyatt [mailto:[EMAIL PROTECTED]
> Sent: Friday, March 26, 2004 12:04 PM
> To: Tomcat Users List
> Subject: PDF Files
> 
> Hi All,
> 
>   Does anyone know how to jump directly to a specific page in a PDF
> document
> if you have manually loaded it and served it through a servlet ?
> 
> Thanks
> 
> Pete
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


RE: Tomcat Hangs

2004-03-29 Thread Cox, Charlie
Try to search for the file from a command prompt. Windows explorer's search
"feature" will not find all the files depending on your setup.

dir /s hs*

Charlie

> -Original Message-
> From: Surya Suravarapu [mailto:[EMAIL PROTECTED]
> Sent: Friday, March 26, 2004 10:01 AM
> To: Tomcat Users List
> Subject: RE: Tomcat Hangs
> 
> I could not find that file. But meanwhile it stopped responding again.
> This time it is not a crash, I can still see the console and the
> java.exe process in the Task Manager.
> 
> When I hit ctrl + break on the console, there was a lot of log message
> that scrolled on the screen. I've pasted some of the messages at the
> end below:
> ---
> "StandardManager[/udf_uiAlertNS]" daemon prio=5 tid=0x34e22e48
> nid=0x6ac waiting
>  on monitor [0x358cf000..0x358cfdb8]
> at java.lang.Thread.sleep(Native Method)
> at org.apache.catalina.session.StandardManager.threadSleep
> (StandardManag
> er.java:810)
> at org.apache.catalina.session.StandardManager.run
> (StandardManager.java:
> 869)
> at java.lang.Thread.run(Thread.java:479)
> 
> "Signal Dispatcher" daemon prio=10 tid=0x828e78 nid=0xa68 waiting on
> monitor [0.
> .0]
> 
> "Finalizer" daemon prio=9 tid=0x34c50d78 nid=0x978 waiting on monitor
> [0x34f0f00
> 0..0x34f0fdb8]
> at java.lang.Object.wait(Native Method)
> at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:103)
> at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:118)
> at java.lang.ref.Finalizer$FinalizerThread.run
> (Finalizer.java:157)
> 
> "Reference Handler" daemon prio=10 tid=0x34c500e0 nid=0xf60 waiting on
> monitor [
> 0x34ecf000..0x34ecfdb8]
> at java.lang.Object.wait(Native Method)
> at java.lang.Object.wait(Object.java:415)
> at java.lang.ref.Reference$ReferenceHandler.run
> (Reference.java:105)
> 
> "main" prio=5 tid=0x234bc8 nid=0xfcc runnable [0x6f000..0x6fc34]
> at java.net.PlainSocketImpl.socketAccept(Native Method)
> at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:463)
> at java.net.ServerSocket.implAccept(ServerSocket.java:238)
> at java.net.ServerSocket.accept(ServerSocket.java:217)
> at org.apache.catalina.core.StandardServer.await
> (StandardServer.java:527
> )
> at org.apache.catalina.startup.Catalina.start(Catalina.java:521)
> at org.apache.catalina.startup.Catalina.execute
> (Catalina.java:400)
> at org.apache.catalina.startup.Catalina.process
> (Catalina.java:180)
> at java.lang.reflect.Method.invoke(Native Method)
> at org.apache.catalina.startup.Bootstrap.main
> (Bootstrap.java:203)
> 
> "VM Thread" prio=5 tid=0x829498 nid=0xe20 runnable
> 
> 
> 
> - SPS
> 
> - Original Message -
> From: "Shapira, Yoav" <[EMAIL PROTECTED]>
> Date: Friday, March 26, 2004 9:37 am
> Subject: RE: RE: Tomcat Hangs
> 
> >
> > Hi,
> >
> >
> > >Yes this time it appears to be a crash. The message that I posted
> > below>is the only message that I can see on the console. This is
> > the last
> > >message before crashing.
> >
> > There should be a file called hs_err_ ( can be a number of
> > different things on the Windows platform) in the current working
> > directory of the JVM when it crashed.  Look for that file and post its
> > contents if you find it.
> >
> > Yoav Shapira
> >
> >
> >
> > This e-mail, including any attachments, is a confidential business
> > communication, and may contain information that is confidential,
> > proprietary and/or privileged.  This e-mail is intended only for
> > the individual(s) to whom it is addressed, and may not be saved,
> > copied, printed, disclosed or used by anyone else.  If you are not
> > the(an) intended recipient, please immediately delete this e-mail
> > from your computer system and notify the sender.  Thank you.
> >
> >
> > ---
> > --
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


RE: Tomcat on Windows 2003 Server

2004-03-15 Thread Cox, Charlie
I'm not having a problem with tomcat 4.1.29 and jdk 1.4.2_02 on Win2003 as a
service. 

Charlie

> -Original Message-
> From: news [mailto:[EMAIL PROTECTED] On Behalf Of Metin Carl
> Sent: Saturday, March 13, 2004 3:51 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Tomcat on Windows 2003 Server
> 
> The version is 4.1.29 by the way. JVM version is 1.4.2_03
> 
> 
> "Metin Carl" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > Is there any know problem about Tomcat or JVM on Windows 2003 Server? I
> > couldnt get Tomcat working at all.
> >
> > I get the error message whenever I start Tomcat.  Similiar thing
happened
> on
> > another server too. It look like there is a problem between JVM and
> Win2003.
> > Resintalling JVM didnt help.
> >
> > Any idea?
> >
> >
> > An unexpected exception has been detected in native code outside the VM.
> > Unexpected Signal : unknown exception code (0xe06d7363) occurred at
> > PC=0x77E649D3
> > Function=RaiseException+0x48
> > Library=E:\WINDOWS\system32\kernel32.dll
> >
> > Current Java thread:
> >  at
> >
>
sun.plugin.services.WIExplorerBrowserService.installBrowserEventListener(Nat
> > ive Method)
> >  at
sun.plugin.viewer.LifeCycleManager.installBrowserEventListener(Unknown
> > Source)
> >  - locked <0x10040c30> (a java.lang.Object)
> >  at sun.plugin.viewer.LifeCycleManager.checkLifeCycle(Unknown Source)
> >  at sun.plugin.viewer.IExplorerPluginObject.initPlugin(Unknown Source)
> >  - locked <0x10040c08> (a sun.plugin.viewer.IExplorerPluginObject)
> >  at sun.plugin.viewer.IExplorerPluginObject.mayInit(Unknown Source)
> >  at sun.plugin.viewer.IExplorerPluginObject.frameReady(Unknown Source)
> >  at sun.plugin.viewer.frame.IExplorerEmbeddedFrame.setFrameSize(Unknown
> > Source)
> >
> > Dynamic libraries:
> > 0x0040 - 0x00419000  E:\Program Files\Internet Explorer\IEXPLORE.EXE
> > 0x77F4 - 0x77FFA000  E:\WINDOWS\system32\ntdll.dll
> > 0x77E4 - 0x77F34000  E:\WINDOWS\system32\kernel32.dll
> > 0x77BA - 0x77BF4000  E:\WINDOWS\system32\msvcrt.dll
> > 0x77D0 - 0x77D8F000  E:\WINDOWS\system32\USER32.dll
> > 0x77C0 - 0x77C44000  E:\WINDOWS\system32\GDI32.dll
> > 0x7729 - 0x772D9000  E:\WINDOWS\system32\SHLWAPI.dll
> > 0x77DA - 0x77E3  E:\WINDOWS\system32\ADVAPI32.dll
> > 0x77C5 - 0x77CF4000  E:\WINDOWS\system32\RPCRT4.dll
> > 0x7692 - 0x76A77000  E:\WINDOWS\system32\SHDOCVW.dll
> > 0x70AD - 0x70BB6000
> >
>
E:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0
> > .100.0_x-ww_8417450B\comctl32.dll
> > 0x7738 - 0x77B5D000  E:\WINDOWS\system32\SHELL32.dll
> > 0x7716 - 0x77284000  E:\WINDOWS\system32\ole32.dll
> > 0x744F - 0x7453B000  E:\WINDOWS\system32\MSCTF.dll
> > 0x75EB - 0x75FB6000  E:\WINDOWS\system32\BROWSEUI.dll
> > 0x7249 - 0x724A2000  E:\WINDOWS\system32\browselc.dll
> > 0x70BC - 0x70C5
> >
>
E:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_5.8
> > 2.0.0_x-ww_8A69BA05\COMCTL32.dll
> > 0x75E6 - 0x75E82000  E:\WINDOWS\system32\appHelp.dll
> > 0x76F9 - 0x7700E000  E:\WINDOWS\system32\CLBCatQ.DLL
> > 0x770E - 0x7715D000  E:\WINDOWS\system32\OLEAUT32.dll
> > 0x7701 - 0x770D6000  E:\WINDOWS\system32\COMRes.dll
> > 0x77B9 - 0x77B98000  E:\WINDOWS\system32\VERSION.dll
> > 0x71B7 - 0x71BA3000  E:\WINDOWS\system32\UxTheme.dll
> > 0x760F - 0x7618E000  E:\WINDOWS\system32\WININET.dll
> > 0x761B - 0x76248000  E:\WINDOWS\system32\CRYPT32.dll
> > 0x7619 - 0x761A2000  E:\WINDOWS\system32\MSASN1.dll
> > 0x76F5 - 0x76F63000  E:\WINDOWS\system32\Secur32.dll
> > 0x7654 - 0x7659  E:\WINDOWS\System32\cscui.dll
> > 0x7652 - 0x7653D000  E:\WINDOWS\System32\CSCDLL.dll
> > 0x765A - 0x766A  E:\WINDOWS\system32\SETUPAPI.dll
> > 0x1000 - 0x10019000  E:\Program
> Files\MyWay\SrchAstt\1.bin\MYSRCHAS.DLL
> > 0x76E9 - 0x76ECB000  E:\WINDOWS\system32\RASAPI32.DLL
> > 0x76E4 - 0x76E51000  E:\WINDOWS\system32\rasman.dll
> > 0x71C0 - 0x71C18000  E:\WINDOWS\system32\WS2_32.dll
> > 0x71BF - 0x71BF8000  E:\WINDOWS\system32\WS2HELP.dll
> > 0x71C4 - 0x71C93000  E:\WINDOWS\system32\NETAPI32.dll
> > 0x76E6 - 0x76E8E000  E:\WINDOWS\system32\TAPI32.dll
> > 0x76E3 - 0x76E3B000  E:\WINDOWS\system32\rtutils.dll
> > 0x76AA - 0x76ACC000  E:\WINDOWS\system32\WINMM.dll
> > 0x71BB - 0x71BB9000  E:\WINDOWS\system32\wsock32.dll
> > 0x012F - 0x0132A000  E:\Program Files\MyWay\myBar\1.bin\MYBAR.DLL
> > 0x0137 - 0x0137B000  E:\Program Files\Adobe\Acrobat
> > 6.0\Reader\ActiveX\AcroIEHelper.dll
> > 0x0138 - 0x013BA000  E:\Program Files\NewDotNet\newdotnet5_48.dll
> > 0x71BD - 0x71BE1000  E:\WINDOWS\system32\MPR.dll
> > 0x76BB - 0x76BDB000  E:\WINDOWS\system32\WINTRUST.dll
> > 0x76C1 - 0x76C38000  E:\WINDOWS\system32\imagehlp.dll
> > 0x014D - 0x014FB000  E:\WINDOWS\system32\Veevo.dll
> > 0x7630 - 0x76514000  E:\WINDOWS\system32\msi.dll
> > 0x0162 - 0x01644

RE: NT Service terminates

2004-03-09 Thread Cox, Charlie
I had found the JVM version 1.4.0_02 (as a service) to provide random
crashes, not particularly caused by load, that went away when changing to
1.4.0_04. 
This was with tomcat 4.1.24. 
I am now using 4.1.29/JDK 1.4.2_02 without a problem.

Do you have any native libraries(db?) that may be the cause of the crash?
Look for an hs_err*.log file. This file should be in \%SYSTEMROOT%\system32.
If the user does not have write permission to there, then it will go to the
user's TEMP directory.

I'm not sure about win2k, but when using Win2003 explorer's 'search' feature
will not search the 'Documents and Settings' folder. This is where the
user's TEMP folder is by default. I wasted waaay too much time learning
this the hard way. You can use a command prompt to search the drive.

Charlie

-Original Message-
From: Adrian Kristiawan [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 08, 2004 7:52 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: NT Service terminates
Importance: High

I have a similiar problem with you, I am using Tomcat 4.1.18, but currently
I'm not running it as a Windows Service on Windows 2000 Server, instead I
start the Tomcat service by clicking the Start Tomcat shortcut in the
windows desktop. 
Whenever there is a communication link error or the communication is
down between the client and the server where Tomcat resides, the Tomcat
service just stops by itself. 
 
I thought the solution to my problem was to start the Tomcat as a windows
service,but you stated otherwise, now I'm confused on how to fix my problem.

 
Is it also true that if the load is too big, the Tomcat service will
automatically stop by itself?
 
Can anyone help us on this matter?
 
Thanks. 
 
---Original Message---
 
From: Tomcat Users List
Date: 03/08/04 17:31:40
To: Tomcat
Subject: NT Service terminates
 
I have Tomcat 4.1.24 running as Windows Service on Windows 2000 Server  -
hosting a number of applications.  I currently have it running
 
When I run a simple load test using Microsoft Stress Tester - as I increase
the load I can repeatedly force the Window Service to terminate.  I'm only
running with a load of 100 users.
 
When I run Tomcat from the command-line as an application and I repeat the
test - Tomcat runs fine - performance is fine.  No problems.
 
So what is it about running Tomcat as a service that makes it so easy to
bring down?  I'm tempted to blame the OS - but that doesn't really solve the
problem - or explain what the difference is.
 
Has anyone else observed this?
 
Is it possible to get Tomcat to start as an application - on start-up i.e.
as if it were a service - but running as an application.  Sorry if that's a
meaningless question.
 
 
-
  Yahoo! Messenger - Communicate instantly..."Ping" your friends today!
Download Messenger Now
 





  IncrediMail - Email has finally evolved - Click Here


RE: context configuration file being overwritten

2004-02-05 Thread Cox, Charlie


> -Original Message-
> From: Milt Epstein [mailto:[EMAIL PROTECTED]
> Sent: Thursday, February 05, 2004 10:34 AM
> To: Tomcat Users List
> Subject: RE: context configuration file being overwritten
> 
> On Wed, 4 Feb 2004, Cox, Charlie wrote:
> 
> > > From: Milt Epstein [mailto:[EMAIL PROTECTED]
> > > Sent: Wednesday, February 04, 2004 2:47 PM
> [ ... ]
> > > > Have you tried using CATALINA_BASE and CATALINA_HOME to separate
> > > > your webapps/configuration(BASE) and your tomcat
> > > > installation(HOME)?  Maybe this would serve your needs instead
> > > > of symbolic links.
> > > [ ... ]
> > >
> > > Thanks for the response.
> > >
> > > I am aware of using CATALINA_HOME/CATALINA_BASE, but I don't think
> > > that would serve my needs better.  That's more for when you're
> > > going to have multiple Tomcat instances, and you want to eliminate
> > > redundancy and reduce the amount of total space used.  And it
> > > still has problems when it comes to upgrades.
> >
> > Actually I am using CATALINA_HOME/CATALINA_BASE for a single
> > instance for the ease of upgrading. I have separated /webapps,
> > /conf, and /temp from /bin, /common, /shared, and /server. The only
> > issue that I see upon upgrade is that I need to copy my libs in
> > /common and /shared if I install the new version to a new directory
> > and change CATALINA_HOME appropriately. I'm interested to hear what
> > other issues you see with this as /conf wouldn't be affected by a
> > new tomcat point release to CATALINA_HOME.
> [ ... ]
> 
> Well, with the caveats that I don't have extensive experience with
> different Tomcat setups and I've only just come up with my current
> setup (so it's kind of a work in progress) ...
> 
> The setup I'm trying now has:
> 
> 1. the tomcat distrib under /usr/local
>(e.g., /usr/local/jakarta-tomcat-5.0.18)
This can be your CATALINA_HOME

> 2. /usr/local/tomcat as a symbolic link to the "current" distrib
This may not be needed since you can just change CATALINA_HOME

> 3. all my webapps, with their associated context configuration files,
>under /usr/local/webapps
> 
> So to get things working, all I do is copy the context configuration
> files to the appropriate Tomcat directory (it used to be
> /webapps in Tomcat 4, but in 5 it's apparently
> /conf//).  (I was hoping to use symbolic links,
> but then I ran into the problem I posted about.)
> 
This is the step you can avoid with CATALINA_BASE

> When I upgrade Tomcat versions, all I do is drop the new distrib in,
> change the /usr/local/tomcat link, 
you can just update CATALINA_HOME instead of changing you link, or you could
have CATALINA_HOME point to this link.

> copy the context configuration
This step can be avoided because you aren't changing CATALINA_BASE at all.

> files in, and voila!, I'm up and running.
> > Maybe the differences are minor as compared to your setup, but I think
> they are there.  For example, you may have to re-copy conf and/or
> webapps (I believe there can be changes in what's under those
> directories on new point releases). 
No, /webapps and /conf are part of your CATALINA_BASE. They only change on
point releases if you are using the tomcat supplied
webapps(tomcat-docs,examples,etc). The /manger and /admin are under
/server/webapps, so you would still get all changes to them.

> Basically you don't have to worry
> about splitting the distrib up between $CATALINA_HOME and
> $CATALINA_BASE, 

There is no splitting. For a new release, I delete /webapps, /logs, /conf
and /work that are created by default since these are all located at my
CATALINA_BASE.

> and any potential issues related to that that could
> come up with an upgrade to a new version.
> 

Well, there's always potential for bugs and that's why I have a test
environment.

So you can create a /usr/local/catalinabase that contains /conf and /work
and optionally /webapps and /logs (depends on server.xml settings). This is
your CATALINA_BASE.

Then you set CATALINA_HOME to /usr/local/tomcat if you want to maintain your
sym link, or to the actual tomcat installation dir. This contains /bin,
/common, /server, /shared, and /temp

This way only CATALINA_HOME changes with each release.

Charlie

> Milt Epstein
> Research Programmer
> Integration and Software Engineering (ISE)
> Campus Information Technologies and Educational Services (CITES)
> University of Illinois at Urbana-Champaign (UIUC)
> [EMAIL PROTECTED]


RE: context configuration file being overwritten

2004-02-04 Thread Cox, Charlie


> -Original Message-
> From: Milt Epstein [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, February 04, 2004 2:47 PM
> To: Tomcat Users List
> Subject: RE: context configuration file being overwritten
> 
> On Wed, 4 Feb 2004, Cox, Charlie wrote:
> 
> > > -Original Message-
> > > From: Milt Epstein [mailto:[EMAIL PROTECTED]
> > > Sent: Wednesday, February 04, 2004 11:46 AM
> > > To: Tomcat Users List
> > > Subject: Re: context configuration file being overwritten
> > >
> > > On Sat, 31 Jan 2004, Milt Epstein wrote:
> > >
> > > > Hi there.  I'm using tomcat 5.0.18 basically out of the box.  I set
> > > > up a webapp in a directory outside the /webapps directory.
> > > > So I created a context configuration file for the webapp, and put a
> > > > symbolic link to it in /conf/Catalina/localhost.  This was
> > > > all per the documentation and the source.
> > > >
> > > > So, everything starts up fine, the webapp works, but the context
> > > > configuration file gets overwritten/truncated (i.e., it is then an
> > > > empty file).  The same thing happens with 5.0.16.  This doesn't
> > > > happen when I place a copy of the actual configuration file in that
> > > > directory, instead of a symbolic link.  (I'm trying to place as
> > > > little as possible in the tomcat directory structure, to ease
> > > > upgrade issues and such.)
> >
> > Have you tried using CATALINA_BASE and CATALINA_HOME to separate
> > your webapps/configuration(BASE) and your tomcat installation(HOME)?
> > Maybe this would serve your needs instead of symbolic links.
> [ ... ]
> 
> Thanks for the response.
> 
> I am aware of using CATALINA_HOME/CATALINA_BASE, but I don't think
> that would serve my needs better.  That's more for when you're going
> to have multiple Tomcat instances, and you want to eliminate
> redundancy and reduce the amount of total space used.  And it still
> has problems when it comes to upgrades.
> 
Actually I am using CATALINA_HOME/CATALINA_BASE for a single instance for
the ease of upgrading. I have separated /webapps, /conf, and /temp from
/bin, /common, /shared, and /server. The only issue that I see upon upgrade
is that I need to copy my libs in /common and /shared if I install the new
version to a new directory and change CATALINA_HOME appropriately. I'm
interested to hear what other issues you see with this as /conf wouldn't be
affected by a new tomcat point release to CATALINA_HOME. 

> Also, regardless of whether this would serve my needs better, there's
> the issue of the behavior I'm seeing and whether or not it's a bug.
> If so, it should be addressed.

I agree that it should be looked into. My suggestion was more of an
alternative.

> 
> Milt Epstein
> Research Programmer
> Integration and Software Engineering (ISE)
> Campus Information Technologies and Educational Services (CITES)
> University of Illinois at Urbana-Champaign (UIUC)
> [EMAIL PROTECTED]
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


RE: context configuration file being overwritten

2004-02-04 Thread Cox, Charlie


> -Original Message-
> From: Milt Epstein [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, February 04, 2004 11:46 AM
> To: Tomcat Users List
> Subject: Re: context configuration file being overwritten
> 
> On Sat, 31 Jan 2004, Milt Epstein wrote:
> 
> > Hi there.  I'm using tomcat 5.0.18 basically out of the box.  I set
> > up a webapp in a directory outside the /webapps directory.
> > So I created a context configuration file for the webapp, and put a
> > symbolic link to it in /conf/Catalina/localhost.  This was
> > all per the documentation and the source.
> >
> > So, everything starts up fine, the webapp works, but the context
> > configuration file gets overwritten/truncated (i.e., it is then an
> > empty file).  The same thing happens with 5.0.16.  This doesn't
> > happen when I place a copy of the actual configuration file in that
> > directory, instead of a symbolic link.  (I'm trying to place as
> > little as possible in the tomcat directory structure, to ease
> > upgrade issues and such.)
> >

Have you tried using CATALINA_BASE and CATALINA_HOME to separate your
webapps/configuration(BASE) and your tomcat installation(HOME)? Maybe this
would serve your needs instead of symbolic links.

Charlie

> > Any idea what's going on here?  I searched all over and couldn't
> > find any discussion of a similar issue.
> >
> > FWIW, my system is Linux (Fedora Core 1).
> >
> > Thanks!
> 
> Hate to repost this unchanged, but I'm surprised this hasn't gotten
> any response.  Any Tomcat developers on the list?  Am I missing
> something about how context configurations files are supposed to work?
> Because otherwise this looks like a bug.
> 
> Milt Epstein
> Research Programmer
> Integration and Software Engineering (ISE)
> Campus Information Technologies and Educational Services (CITES)
> University of Illinois at Urbana-Champaign (UIUC)
> [EMAIL PROTECTED]
> 


RE: Really DUMB question...

2004-01-29 Thread Cox, Charlie
I use specific words ('tomcat') in the 'to' field and then use keywords to
separate topics. This works fine in outlook 2002. I have at least 30 rules
that work this way for the lists that I am on. I have found the "from
someone" to NOT be reliable in Outlook(even when they are in my address
book). I've actually reached the limit for exchange (it's a "feature"). 

 

Charlie

 

-Original Message-
From: Robert Keddie [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 29, 2004 10:00 AM
To: Tomcat Users List
Subject: RE: Really DUMB question...

 

Thanks for the assistance...i tried thsi and to no avail. I apply the rule.
And they still come into inbox. I have Outlook 2003.

 

Robert Keddie

Web Development

Board of County Commissioners

Marion County Florida

 

 

  _  

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 29, 2004 9:52 AM
To: Tomcat Users List
Subject: Re: Really DUMB question...


 When 
to contains "[EMAIL PROTECTED] " 
do some thing 

Pavan Kumar
Tata Consultancy Services
Mailto: [EMAIL PROTECTED]
Website: http://www.tcs.com 




"Robert Keddie" <[EMAIL PROTECTED]> 

01/29/2004 09:44 AM 


Please respond to
"Tomcat Users List" <[EMAIL PROTECTED]>


To

<[EMAIL PROTECTED]> 


cc

 


Subject

Really DUMB question...

 


 

 





Im trying to make rules for the emails form this list and I looked at
headers...
Which dang address are these emails coming from?! Thanks.

Robert Keddie
Web Development
Board of County Commissioners
Marion County Florida

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



RE: jk2 and ip-based vhosts

2004-01-28 Thread Cox, Charlie
You need to specify each path you want to map for each virtual host in your
workers2.properties. 

i.e.
[uri:10.1.2.3/jkstatus/*]

Charlie

> -Original Message-
> From: Brennon Obst [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, January 27, 2004 7:56 PM
> To: 'Tomcat Users List'
> Subject: RE: jk2 and ip-based vhosts
> 
> This is a current issue, there is little documentation for jk2 right
> now. I had some luck with this tutorial;
> 
> Tutorial for mod_jk-2.0.42 (aka JK)
> -
> http://raibledesigns.com/tomcat/
> 
> http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/vhosthowto.html
> (Official )
> 
> Also if you post to Bill Barker, he is very helpful.
> 
> Regards,
> 
> 
> 
> Brennon Obst
> 
> 
> Java Security Programmer
> iEnergy Main Branch
> 39 Melbourne St. / Brisbane
> p. (617) 3846-
> [EMAIL PROTECTED]
> 
> 
> 
> 
> 
> -Original Message-
> From: Jim Hopp [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, 28 January 2004 5:09 AM
> To: Tomcat Users List
> Subject: jk2 and ip-based vhosts
> 
> 
> I'm attempting to set up apache 2.0 and jk2 to use IP-based virtual
> hosts, with no success.  I'd love it if someone on the list could point
> out what I'm doing wrong (or point me to some doc that shows how to do
> this - I've had no luck googling).
> 
> I've got apache up and running on a machine with two IP addresses.  I'd
> like to run two tomcat instances, with exactly the same URI mapping, one
> 
> for each IP address.  The problem is that jk2 doesn't appear to take the
> 
> IP address of the request into account - it simply routes the request to
> 
> the JkUriSet defined last in the httpd.conf file.
> 
> Google searches show examples of this working for jk, but I cannot find
> any examples of this for jk2.  If I can't figure this out I may have to
> go back to jk.
> 
> Below are my jk2.conf, workers2.properties, and ssl.conf (which is
> included into httpd.conf) files.
> 
> I'm running Apache 2.0.45, Tomcat 4.1.24, and jk2 from
> jakarta-tomcat-connectors-4.1.24-src on RedHat 9.
> 
> jk2.conf:
> JkOptions -ForwardKeySize -ForwardDirectories -ForwardURICompat
> +ForwardURICompatUnparsed
> JkWorkersFile conf/workers2.properties
> JkLogFile /var/log/httpd/jk2.log
> JkLogLevel debug
> JkLogStampFormat "[%d/%b/%Y %H:%M:%S] "
> # JkRequestLogFormat set the request format
> JkRequestLogFormat "%w %V %T"
> 
> workers2.properties:
> [logger]
> level=DEBUG
> 
> [shm:]
> info=Scoreboard.  Required for reconfig info and status
> file=/var/log/httpd/jk2.shm size=100 debug=0 disabled=0
> 
> [workerEnv:]
> info=Global Server options
> timing=0
> debug=1
> 
> [channel.socket:68.166.222.75:8019]
> info=Ajp13 forwarding over socket for nywdev
> debug=1
> host=68.166.222.75
> tomcatId=dev1:8019
> 
> [channel.socket:68.166.222.77:8029]
> info=Ajp13 forwarding over socket for nywdev2
> debug=1
> host=68.166.222.77
> tomcatId=dev2:8029
> 
> [status:]
> info=Status worker, displays runtime info
> 
> ssl.conf vhost defns:
> 
> 
> TransferLog /var/log/httpd/dev.access_log
> 
> SSLEngine on
> SSLCipherSuite ALL:!ADH:!EXP56:RC4+RSA:+HIGH:!SSLv2
> SSLCertificateFile /usr/local/etc/httpd/conf/httpd.crt
> SSLCertificateKeyFile /usr/local/etc/httpd/conf/httpd.key
> 
> SetEnvIf User-Agent ".*MSIE.*" \
>   nokeepalive ssl-unclean-shutdown \
>   downgrade-1.0 force-response-1.0
> 
> CustomLog /var/log/httpd/ui.ssl_request_log \
>"%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
> 
> 
>Order Deny,Allow
>Deny from All
> 
> 
> 
>SSLRequireSSL
>Order Allow,Deny
>Allow from All
>JkUriSet worker status:
> 
> 
> 
>SSLRequireSSL
>Order Allow,Deny
>Allow from All
>JkUriSet worker ajp13:68.166.222.77:8029
> 
> 
> 
> 
> 
> TransferLog /var/log/httpd/ui.access_log
> 
> SSLEngine on
> SSLCipherSuite ALL:!ADH:!EXP56:RC4+RSA:+HIGH:!SSLv2
> SSLCertificateFile /usr/local/etc/httpd/conf/httpd.crt
> SSLCertificateKeyFile /usr/local/etc/httpd/conf/httpd.key
> 
> SetEnvIf User-Agent ".*MSIE.*" \
>   nokeepalive ssl-unclean-shutdown \
>   downgrade-1.0 force-response-1.0
> 
> CustomLog /var/log/httpd/ui.ssl_request_log \
>"%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
> 
> 
>Order Deny,Allow
>Deny from All
> 
> 
> 
>SSLRequireSSL
>Order Allow,Deny
>Allow from All
>JkUriSet worker status:
> 
> 
> 
>SSLRequireSSL
>Order Allow,Deny
>Allow from All
>JkUriSet worker ajp13:68.166.222.75:8019
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> -
> 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: out of memory problem. Help!

2004-01-21 Thread Cox, Charlie
Try this in your jk2.properties file and see if it fixes it for 4.1.29.
According to Bill Barker(thread: "maxProcessors vs maxThreads"), this is the
same as the 5.x connector setting for jk2.

container.maxThreads=
container.maxSpareThreads=
container.minSpareThreads=

Unfortunately I do not have time to mess with this right now, but I am
interested to know if it fixes the leak.

Charlie

> -Original Message-
> From: news [mailto:[EMAIL PROTECTED] On Behalf Of David Strupl
> Sent: Monday, January 19, 2004 2:08 PM
> To: [EMAIL PROTECTED]
> Subject: Re: out of memory problem. Help!
> 
> This did not work for me in 4.1.29 since the only way to do this is to
> set minProcessors==maxProcessors but that did not have any effect in
> 4.1.29. I am not sure whether I could use xxxThreads there but
> downgrading to 4.1.27 did help.
> 
> For those using 5.0.16 this can help - Filip thanks for finding out.
> 
> Best,
> 
> David
> 
> Filip Hanik wrote:
> > set maxSpareThreads=minSpareThreads=maxThreads will cause the system to
> > never shrink the pool
> >
> > Filip
> >
> > -Original Message-
> > From: news [mailto:[EMAIL PROTECTED] Behalf Of David Strupl
> > Sent: Monday, January 19, 2004 9:58 AM
> > To: [EMAIL PROTECTED]
> > Subject: Re: out of memory problem. Help!
> >
> >
> > Remy Maucherat wrote:
> >
> >>This is not true: there's indeed a memory leak with 5.0.16, but it would
> >>occur only with specific traffic patterns. It will not bring a server
> >>down in just a few requests.
> >
> >
> > Indeed. The thread pool has to grow and shrink for this to happen.
> > Unfortunatelly quite common e.g. day and night traffic.
> >
> > D.
> >
> >
> >
> > -
> > 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: maxProcessors vs maxThreads

2004-01-20 Thread Cox, Charlie
Is there a similar setting for jk2 under 4.1.29? 

> -Original Message-
> From: news [mailto:[EMAIL PROTECTED] On Behalf Of Bill Barker
> Sent: Tuesday, January 20, 2004 2:16 AM
> To: [EMAIL PROTECTED]
> Subject: Re: maxProcessors vs maxThreads
> 
> Oh, come on, get real :).  The Jk-Coyote docs are probably second to the
> mod_jk2 docs for being the most incomplete.  While (as Remy has stated),
> you
> can perfectly happily set this on the Connector, the jk2.properties syntax
> is:
>   container.maxThreads=
> 
> "Shapira, Yoav" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> 
> Howdy,
> 
> >thanks yoav, i noticed that but then does that mean that there is no
> >method to specify max threads/processors for the coyote ajp connector?
> >that sounds a bit strange
> 
> If it's not documented, then there's no configurable way to do it.  Of
> course, you can always subclass/extend a connector just like any other
> tomcat element to add the behavior you want.
> 
> >how does tomcat behave with the ajp connector? does it indefinitely
> spawn
> >threads to handle requests until it bombs out of memory? or is there
> >behaviour as specified by the acceptcount/max processors for the http
> >connector buried in the code of the ajp connector that can't be
> modified?
> 
> I don't use the AJP connector, so I can't answer that one, but the code
> is open for you to inspect at your leisure...
> 
> Yoav Shapira
> 
> 
> 
> This e-mail, including any attachments, is a confidential business
> communication, and may contain information that is confidential,
> proprietary
> and/or privileged.  This e-mail is intended only for the individual(s) to
> whom it is addressed, and may not be saved, copied, printed, disclosed or
> used by anyone else.  If you are not the(an) intended recipient, please
> immediately delete this e-mail from your computer system and notify the
> sender.  Thank you.
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


RE: virtual hosting and tomcat wt Apache 2 and JK2

2004-01-19 Thread Cox, Charlie
You probably have this bug(different than the other one posted)
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22045

The only solution I have found is to map each virtualhost/dir in your
workers2.properties that should go to tomcat. While a PITA(at least for me),
it does work.

See this link for an example.
http://www.aexx.net/arcane/article.jsp?article=tomcat4-apache2-jk2

These are the only 2 things that I have found about this issue.
Charlie 

> -Original Message-
> From: Brennon Obst [mailto:[EMAIL PROTECTED]
> Sent: Monday, January 19, 2004 1:02 AM
> To: 'Tomcat Users List'
> Subject: RE: virtual hosting and tomcat wt Apache 2 and JK2
> 
> Thank you Martina,
> 
> I will check my version and report back =/
> 
> /Brennon
> 
> -Original Message-
> From: Frankl Martina [mailto:[EMAIL PROTECTED]
> Sent: Friday, 16 January 2004 10:23 PM
> To: Brennon Obst; 'Tomcat Users List'
> Subject: AW: virtual hosting and tomcat wt Apache 2 and JK2
> 
> 
> Maybe your jk2 version still has this bug:
> http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18472
> 
> hth
> Martina
> 
> 
> > -Ursprüngliche Nachricht-
> > Von: Brennon Obst [mailto:[EMAIL PROTECTED]
> > Gesendet: Freitag, 16. Januar 2004 05:43
> > An: 'Tomcat Users List'
> > Betreff: virtual hosting and tomcat wt Apache 2 and JK2
> >
> >
> >
> > Dear usergroup,
> >
> > When I activated the following in my Apache 2 config within
> > the VirtualHost
> > block for x.xxx.net: 
> >
> > JkUriSet worker ajp13:localhost:8009
> >
> > 
> >
> > ALL of my virtual hosts stopped working and started
> > complaining of not being
> > able to find /index.jsp
> >
> > It is like the  wasn't confined to the
> > VirtualHost but rather
> > became a server wide configuration.
> >
> > When I activated the apache<-->tomcat connection it took over
> > ALL of the
> > virtual hosts and was routing them through Tomcat, does
> > anyone know how to
> > stop that?
> >
> > Is it my Apache 2 and JK2 connectors, where do I turn now? Thank you
> > in advance,
> >
> > Brennon Obst
> >
> >
> > Java Security Programmer
> > iEnergy Main Branch
> > 39 Melbourne St. / Brisbane
> > p. (617) 3846-
> > [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: How to serve static EXCEL or POWERPOINT files from Tomcat ?

2004-01-12 Thread Cox, Charlie
Actually Mozilla and Netscape can open Excel and Powerpoint based upon the
.xls or .ppt extension if the mime-type is not set. However IE only opens
them properly if you add the mime-type to web.xml. Otherwise you get a
browser full of garbled text. I find this most amusing. (They may have fixed
this in IE 6.0).

Charlie

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Monday, January 12, 2004 11:30 AM
> To: [EMAIL PROTECTED]
> Subject: RE: How to serve static EXCEL or POWERPOINT files from Tomcat ?
> 
> Wouldn't you just have a URL link to the actual files in your HTML?  The
> browser should be smart enough to open up the appropriate application and
> display it, since it will recognize its extension/mime-type.
> 
> bruno
> 
> -Original Message-
> From: ext Vitor Buitoni [mailto:[EMAIL PROTECTED]
> Sent: Monday, January 12, 2004 10:07 AM
> To: Tomcat Users List
> Subject: Re: How to serve static EXCEL or POWERPOINT files from Tomcat ?
> 
> 
> Hi,
> 
> Probably your browser is misconfigured. I don't think this is a tomcat
> issue.
> Check the file type associations in your browser and make sure that xls
> files are configured to be opened by msexcel.
> Also check the .doc file association, if it is opening properly, it
> should be configured to be opened by msword.
> 
> Vitor
> 
> Enrique MARTIN wrote:
> 
> >Hi,
> >
> >I am trying to serve .xls and .ppt files from tomcat so that the browser
> >opens the right application (excel and powerpoint respectively) . What I
> >obtain instead is that the byte content is sent by the web server and
> this
> >content is then interpreted as text by the browser.
> >For the .doc files, on the other hand, I have the desired behavior: word
> >opens.
> >
> >Does anybody know how to obtain from tomcat this behavior?
> >
> >Thanks,
> >Enrique.
> >
> >
> >
> 
> 
> 
> -
> 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]


finding hs_err_pid files on windows 2003 as a service with specif ic user

2003-12-16 Thread Cox, Charlie
While this is slightly off topic, I wasted enough time on it that I felt it
necessary to share with others.

I am running tomcat 4.1 as a service on windows 2003(requirement) and I was
having a problem with it crashing. Usually it left an hs_err_pid*.log file
which pointed to a JNI library that I use. The problem was that I could no
longer find these log files(explorer->search) and tomcat seemed to be
crashing with no log, error, or anything.

The thought occurred to me that maybe the user under which tomcat was
running(I recently added this) did not have permission to write the log
file. So I found out that the hs_err_pid* will be written to the current
directory(system32) and if not successful, to the TEMP directory for the
user. 

While checking permissions, I found all the hs_err_pid* files in the user's
temp directory. Apparently even if you are an administrator, a search in
windows explorer does not search other user's 'documents and settings'(where
the user's temp directory is located). Here I was expecting "search" to find
the files that are there. What was I thinking? I have not found anything
about this on the net so I don't know how to disable it. 

While you can disable the filtering of unknown extensions in searches in
windows 2003 explorer, that was not my problem as other hs_*.log files were
found in the search results. 

FWIW, apparently "dir /s hs_*.log" in a command prompt still works
correctly.

Charlie


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



RE: not see the directory

2003-11-20 Thread Cox, Charlie
set "listings" to false in conf/web.xml

Charlie

> -Original Message-
> From: eric perso [mailto:[EMAIL PROTECTED]
> Sent: Thursday, November 20, 2003 11:30 AM
> To: tomcat user List
> Subject: not see the directory
> 
> 
> hi,
>  
> i search to:
> don't see inside a directory like www.toto.com/images/
>  
> but i use in the jsp and html pages the image 
> www.toto.com/images/i.gif 
> how to do this
>  
> thanks;
> best regards
> 

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



RE: Signal 11 causing Tomcat crash

2003-11-13 Thread Cox, Charlie
> -Original Message-
> From: Jim Goodspeed [mailto:[EMAIL PROTECTED]
> Sent: Thursday, November 13, 2003 8:52 AM
> To: Tomcat Users List
> Subject: RE: Signal 11 causing Tomcat crash
> 
> 
> Unfortunately we have also tried Sun's JVM and are
> experiencing the same Signal 11 errors (I've included
> two snippets of the Sun error - same error as the IBM
> Sig 11, just in a different format).  Sometimes the
> dump specifies the library in question, other times it
> does not.
> 
> Thanks,
> Jim
> 
> An unexpected exception has been detected in native
> code outside the VM.
> Unexpected Signal : 11 occurred at PC=0x1
> Function=[Unknown.]
> Library=(N/A)
> 
> An unexpected exception has been detected in native
> code outside the VM.
> Unexpected Signal : 11 occurred at PC=0x59DF83B0
> Function=(null)+0x59DF83B0
> Library=/usr/IBMdb2/V7.1/lib/libdb2.so.1
> 

this seems to be a problem with your DB2 driver. When you have an access
violation in native code, it also brings down the JVM. 


> 
> 
> 
> --- Francois JEANMOUGIN
> <[EMAIL PROTECTED]> wrote:
> > 
> > > 0SECTION   XHPI subcomponent dump routine
> > > NULL   ==
> > > 1HPTIMEWed Nov 12 08:19:26 2003
> > > 1HPSIGRECV SIGSEGV received in ?? at
> > 0x41cc8e85 in
> > > /opt/IBMJava2-141/jre/bin/libjitc.so. Processing
> > > terminated.
> > > 1HPFULLVERSION J2RE 1.4.1 IBM build
> > cxia32141-20030522
> > 
> > This problem was reported several time with IBM Jvm
> > on hyperthreaded machines. We had to switch to Sun
> > Jvm. No news from IBM about this JITC optimization
> > problem.
> > 
> > Also note that IBM Jvm can go SIG 11 when there are
> > IPs with no names (in /etc/hosts or DNS). Those
> > annoying things made me switch to Sun Jvm.
> > 
> > François. 
> > 
> > 
> > 
> >
> -
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > 
> 
> 
> __
> Do you Yahoo!?
> Protect your identity with Yahoo! Mail AddressGuard
> http://antispam.yahoo.com/whatsnewfree
> 
> -
> 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]



Profiler (was: RE: application eats up memory)

2003-10-21 Thread Cox, Charlie
Has anyone tried this new Eclipse plugin for profiling?
http://eclipsecolorer.sourceforge.net/index_profiler.html

I realize that it is still beta, but I was wondering how good it is.

Charlie

> -Original Message-
> From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, October 21, 2003 9:27 AM
> To: Tomcat Users List
> Subject: RE: application eats up memory
> 
> 
> 
> Howdy,
> 
> >Any recommendations here?  They are a little pricy, and I 
> would want to
> >make sure I'm getting bang for my $$
> 
> I like OptimizeIt, found it WELL worth its price.  I think every
> developer should have a profiler, be comfortable using it.
> 


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



RE: How to use jar files from CLASSPATH

2003-10-10 Thread Cox, Charlie
tomcat doesn't use the classpath. You can copy your jar into /common/lib and
it will be shared by all your webapps. 

see the classloader doc:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html

Charlie

> -Original Message-
> From: Zsolt Koppany [mailto:[EMAIL PROTECTED]
> Sent: Friday, October 10, 2003 1:17 AM
> To: Tomcat Users List
> Subject: How to use jar files from CLASSPATH
> 
> 
> Hi,
> 
> my application has to use DB2 JDBC that is in the CLASSPATH. 
> How can I get
> tomcat-4.1.24 to search for entries from CLASSPATH?
> 
> I understand that I could probably copy the entries from 
> CLASSPATH into
> .../WEB-INF/lib, but this JDBC driver does use native 
> libraries, thus I
> would not like to copy them into .../WEB-INF/lib.
> 
> This is how CLASSPATH is defined after DB2 installation:
> 
> .;C:\PROGRA~1\IBM\SQLLIB\java\db2java.zip;C:\PROGRA~1\IBM\SQLL
> IB\java\db2jcc
> .jar;C:\PROGRA~1\IBM\SQLLIB\java\sqlj.zip;C:\PROGRA~1\IBM\SQLL
> IB\java\db2jcc
> _license_cu.jar;C:\PROGRA~1\IBM\SQLLIB\bin;C:\PROGRA~1\IBM\SQL
> LIB\java\commo
> n.jar
> 
> As you can see there is even a directory in CLASSPATH (that 
> contains a lot
> of files).
> 
> 
> Zsolt
> 
> 
> 
> -
> 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: Desperation! Tomcat crashing inexplicably. :-& Fresh ideas n eeded.

2003-09-18 Thread Cox, Charlie
you didn't provide your platform, but since *nix has tail, I'm assuming you
have windows.
Under windows I've never had a tomcat log file that I couldn't view, but you
may not be able to use your favorite editor. Notepad has always brought the
file up for me where other editors(including wordpad) can not while tomcat
is running.

Charlie

> -Original Message-
> From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
> Sent: Thursday, September 18, 2003 11:19 AM
> To: Tomcat Users List
> Subject: RE: Desperation! Tomcat crashing inexplicably. :-& 
> Fresh ideas
> needed.
> 
> 
> 
> Howdy,
> Regardless, a setup where you can't inspect log files until the end of
> the day is unacceptable for more people/organizations ;)  Try to get
> that corrected...
> 
> Yoav Shapira
> Millennium ChemInformatics
> 
> 
> >-Original Message-
> >From: Peter Guyatt [mailto:[EMAIL PROTECTED]
> >Sent: Thursday, September 18, 2003 11:17 AM
> >To: Tomcat Users List
> >Subject: RE: Desperation! Tomcat crashing inexplicably. :-& 
> Fresh ideas
> >needed.
> >
> >We did on our last project. But it was the JVM crashing and taking
> Tomcat
> >down with it. We just moved to a newer version just to make sure.
> >
> >Try and upgrade the JVM, what version are you using ?
> >
> >-Original Message-
> >From: Andoni [mailto:[EMAIL PROTECTED]
> >Sent: 18 September 2003 16:12
> >To: Tomcat Users List
> >Subject: Re: Desperation! Tomcat crashing inexplicably. :-& 
> Fresh ideas
> >needed.
> >
> >
> >That's the problem.  I can't be more specific.  One moment I was
> clicking
> >through the site and the next I get an Apache error saying 
> it could not
> >find
> >the file.  Then when I looked at the server processes Tomcat 
> was down.
> >
> >Unfortunately the log file is locked so I cannot see it until I bring
> the
> >machine down again at about 6pm but I doubt it will say very much
> either.
> >Do you use DBCP with Tomcat 4.0.x ?
> >
> >Andoni.
> >
> >
> >
> >- Original Message -
> >From: "Phillip Qin" <[EMAIL PROTECTED]>
> >To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
> >Sent: Thursday, September 18, 2003 3:48 PM
> >Subject: RE: Desperation! Tomcat crashing inexplicably. :-& 
> Fresh ideas
> >needed.
> >
> >
> >> Be more specific. Describe "crash".
> >>
> >> -Original Message-
> >> From: Andoni [mailto:[EMAIL PROTECTED]
> >> Sent: September 18, 2003 10:55 AM
> >> To: Tomcat Users List
> >> Subject: Desperation! Tomcat crashing inexplicably. :-& Fresh ideas
> >needed.
> >>
> >> Hello,
> >>
> >> I am trying to put live a new version of my web site.  The biggest
> change
> >in
> >> this version is that it uses DBCP connection pooling.
> >>
> >> The problem I am having is that after a while of being live Tomcat
> just
> >> crashes with no warning.
> >>
> >> What are the groups experiences with Tomcat crashing?  
> What kinds of
> >things
> >> make it crash?  I am at a loss having tried every thing I 
> can imagine
> to
> >> make it work.  I would be eternally grateful for any new leads.
> >>
> >> My thanks,
> >> Andoni.
> >>
> >> Tomcat 4.0.4  (crashes)
> >> Apache 1.3.26 (keeps going)
> >> DBCP
> >> Ajp13
> >> Oracle 9i  (keeps going)
> >>
> >
> >
> >-
> >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]
> 
> 
> 
> 
> This e-mail, including any attachments, is a confidential 
> business communication, and may contain information that is 
> confidential, proprietary and/or privileged.  This e-mail is 
> intended only for the individual(s) to whom it is addressed, 
> and may not be saved, copied, printed, disclosed or used by 
> anyone else.  If you are not the(an) intended recipient, 
> please immediately delete this e-mail from your computer 
> system and notify the sender.  Thank you.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

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



RE: Interesting (?) classloader problem

2003-09-03 Thread Cox, Charlie
There is a typo in the documentation - you can not override the Xerces
parser used. You can replace the one in /common/endorsed and see if it works
- I don't recall which version tomcat requires. Have you tried your app with
the version that tomcat supplies?

you can't guarantee the order in which jars are loaded within the same
classloader, but if you can replace the version in /common/endorsed, then it
won't matter what xml classes any web-inf jars include.

If you modify the WebappClassLoader class, you will have to maintain it for
each tomcat upgrade. You will still need to make sure you get the xerces
jar, and not the xml classes from other jars.

Charlie

> -Original Message-
> From: Jon Skeet [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, September 03, 2003 3:58 AM
> To: Tomcat User List (E-mail)
> Subject: Interesting (?) classloader problem
> 
> 
> As observant readers will have noticed, I'm migrating a 
> webapp or two from Tomcat 3.2.3 to Tomcat 4.1. Now, our apps 
> have a very specific version of Xerces that they currently 
> need to use (although I'm hoping this requirement will go 
> away). I believe the version is "Xerces-J 1.4.4" (at least 
> according to the SourceSafe history). Now, that sounds 
> considerably out of whack with what Tomcat ships with, and my 
> guess is that Tomcat may well not be able to work properly 
> with the version we need. (I would just try it, but there's 
> always a good chance that there'll be something hiding away 
> which doesn't get tested.)
> 
> I can stick the version of xerces.jar in my webapp's lib 
> directory, but according to the documentation, everything in 
> org.apache.xerces (and the org.xml.sax and org.w3c.dom) 
> packages gets delegated to the parent classloader, which 
> obviously wouldn't help me as I'd pick up the newer version 
> of Xerces instead of the one I need.
> 
> There's also another wrinkle which means I need to load 
> xerces.jar *before* any of the other jar files in 
> webapps/lib. I can't remember where exactly this requirement 
> comes from, but I suspect it's due to some other library we 
> use having its own version of xerces (or maybe just the XML 
> API) built in.
> 
> I can clearly modify the WebappClassLoader source to get rid 
> of the delegation for org.apache.xerces: what would be the 
> downside of this? Why does the documentation even say you can 
> override common/lib/xerces.jar by putting xerces.jar into 
> webapps/lib, when it's going to delegate everything anyway?
> 
> The business about loading xerces.jar first is slightly 
> thorny - I suspect the best solution may be to just find out 
> which other jar file contains the other/wrong classes and 
> take them out, but I'd be interested to hear any other solutions.
> 
> Jon
> 
> -
> 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: ...libjniGetString.sl already loaded in another classloader

2003-08-29 Thread Cox, Charlie
put your library in /common/lib and restart tomcat. Each time you reload or
start/stop your webapp, it creates another instance of the classloader which
is trying to load your library again.

Charlie

> -Original Message-
> From: Lott, Carey [mailto:[EMAIL PROTECTED]
> Sent: Friday, August 29, 2003 11:11 AM
> To: '[EMAIL PROTECTED]'
> Cc: Mann, Ivan H
> Subject: ...libjniGetString.sl already loaded in another classloader
> 
> 
> Does anybody know what we need to be looking for?  Thanks in advance.
> 
> Carey,
> I have a servlet that uses the Native Interface facilities. 
> It gets to a
> point and then tries to load a library that I constructed. At 
> first it could
> not find the library, but I fixed that by stopping catalina, setting
> SHLIB_PATH to
> /bto/appl/apache/jakarta-tomcat-4.0.4/webapps/esd/WEB-INF/classes and
> restarting catalina. 
> It found the library fine the first time I tried to run it.
> The next time I tried to run it, the app failed, saying that
> "...libjniGetString.sl already loaded in another classloader"
> I can't find how to make it unload the library or do anything 
> else to make
> it run. I tried stopping and restarting catalina and it still 
> gets the same
> error.
> Do you have any idea what to do?
> Ivan 
> 
> 
> Carey Lott
> Web Tools Support
> Infrastructure Storage & Tools Support
> EDS
> BellSouth
> [EMAIL PROTECTED]
> 
> 
> 
> 
> *
> "The information transmitted is intended only for the person 
> or entity to
> which it is addressed and may contain confidential, 
> proprietary, and/or
> privileged material.  Any review, retransmission, 
> dissemination or other use
> of, or taking of any action in reliance upon, this 
> information by persons or
> entities other than the intended recipient is prohibited.  If 
> you received
> this in error, please contact the sender and delete the 
> material from all
> computers."
> 
> 
> -
> 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: crypto problem

2003-08-26 Thread Cox, Charlie
You are running into a classloading problem. put your crypto jars in
/common/lib and you can restart your app without any problems.

When you reload(or stop/start), the classloader for your app is destroyed
and all the classes are lost. So when you are using libraries that use
loadlibrary(), they can not load the library again because it thinks the
library is already loaded in another classloader even though the origianl
classloader is gone.

Charlie

> -Original Message-
> From: Maxime Colas des Francs [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, August 26, 2003 11:11 AM
> To: Tomcat Users List
> Subject: RE: crypto problem
> 
> 
> Thks for your help !
> 
> I use jdk 1.4, i can register the provider statically in 
> "java.security" 
> file but it will be registred for all web application ...
> (I thought also to put it in $CATALINA_HOME/shared/lib/)
> 
> But my sytem works great when i start manually tomcat (startup.sh), i 
> encrypt, i have no error in my catalina.out
> Someone can tell me a difference between manual startup and 
> the "automatic 
> reload" (by class time modified) or the manager application restart ?
> Is it a CLASSPATH problem ?
> 
> At 07:56 2003-08-26 +0200, you wrote:
> 
> 
> > > -Original Message-
> > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> > > Sent: Monday, August 25, 2003 11:23 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: Re:crypto problem
> > >
> > >
> > > Maxime Colas des Francs wrote:
> > >
> > > > I attempt to use openpgp in my web application
> > > > For that i use an external provider.
> > > > I put jar files in WEB-INF/lib and in a 'load-on-startup'
> > > servlet, i
> > > > call
> > > > Security.addProvider() and i read a public key from a 
> file for futur
> > > > encryptions.
> > > >
> >
> > >
> > > I hope I can...
> > >
> > > What JDK version are you using, 1.3 or 1.4? 1.4 didn't like
> > > it when I had a "Security.addProvider()" line in my code. You
> > > might check out the cryptography forum at
> > > http://forums.java.com  - that was VERY > helpful to me.
> > >
> >
> >If you have Problems with Security.addProvider call you might
> >try to register the provider statically in your "java.security"
> >file. (should be in the jre/lib/security/ dir)
> >
> >Try to add the provider:
> >
> >security.provider.4=
> >
> >It might be, that the Original Provider must reside in first
> >position.
> >
> >   H2H, Rudolf
> >
> >
> >
> >-
> >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: security hole on windows tomcat?

2003-08-14 Thread Cox, Charlie
can you turn on debug for the defaultservlet - set it to 99 in conf/web.xml
and post the log.

> -Original Message-
> From: Angus Mezick [mailto:[EMAIL PROTECTED]
> Sent: Monday, August 11, 2003 12:39 PM
> To: Tomcat Users List
> Subject: RE: security hole on windows tomcat?
> 
> 
> Nope, but this mime mapping exists.
> 
> jspf
> text/plain
> 
> 
> > -Original Message-
> > From: Cox, Charlie [mailto:[EMAIL PROTECTED] 
> > Sent: Monday, August 11, 2003 12:15 PM
> > To: 'Tomcat Users List'
> > Subject: RE: security hole on windows tomcat?
> > 
> > 
> > did you change any mime-mappings in conf/web.xml? could you 
> > have a "jsp " in
> > there somewhere defining it as text?
> > 
> > > -Original Message-
> > > From: Angus Mezick [mailto:[EMAIL PROTECTED]
> > > Sent: Monday, August 11, 2003 12:15 PM
> > > To: Tomcat Users List
> > > Subject: RE: security hole on windows tomcat?
> > > 
> > > 
> > > Ok guys,
> > > What could I have turned on that would have allowed this bug 
> > > to happen?
> > > I can make it happen in both tomcat and tomcat through 
> > apache.  (Most
> > > recent of both)  I can provide a site where it DOES happen 
> > so you guys
> > > can see what is happening.
> > > 
> > > > -Original Message-
> > > > From: Cox, Charlie [mailto:[EMAIL PROTECTED] 
> > > > Sent: Monday, August 11, 2003 12:07 PM
> > > > To: 'Tomcat Users List'
> > > > Subject: RE: security hole on windows tomcat?
> > > > 
> > > > 
> > > > sorry, I don't know - I don't use Apache. This was just a 
> > > > thought that I
> > > > had.
> > > > 
> > > > I do not have this problem 4.1.24 on Win2k
> > > > 
> > > > Charlie
> > > > 
> > > > > -Original Message-
> > > > > From: Angus Mezick [mailto:[EMAIL PROTECTED]
> > > > > Sent: Monday, August 11, 2003 11:49 AM
> > > > > To: Tomcat Users List
> > > > > Subject: RE: security hole on windows tomcat?
> > > > > 
> > > > > 
> > > > > Charlie,  
> > > > > How do you fix this within apache?
> > > > > 
> > > > > > -Original Message-
> > > > > > From: Cox, Charlie [mailto:[EMAIL PROTECTED] 
> > > > > > Sent: Monday, August 11, 2003 10:15 AM
> > > > > > To: 'Tomcat Users List'
> > > > > > Subject: RE: security hole on windows tomcat?
> > > > > > 
> > > > > > 
> > > > > > do you have apache on the front end and are you 
> only mapping 
> > > > > > *.jsp where
> > > > > > *.jsp%20 is not a match and apache would then serve the 
> > > > > file as text?
> > > > > > 
> > > > > > Charlie
> > > > > > 
> > > > > > > -Original Message-
> > > > > > > From: John Turner [mailto:[EMAIL PROTECTED]
> > > > > > > Sent: Monday, August 11, 2003 9:22 AM
> > > > > > > To: Tomcat Users List
> > > > > > > Subject: Re: security hole on windows tomcat?
> > > > > > > 
> > > > > > > 
> > > > > > > 
> > > > > > > Appending "%20" to my Tomcat 4.1.1x URLs generates a 404.
> > > > > > > 
> > > > > > > John
> > > > > > > 
> > > > > > > Paul Sundling("Webdaddy") wrote:
> > > > > > > 
> > > > > > > > I came across what appears to be a security hole when 
> > > > > > > running tomcat. 
> > > > > > > > I'm not sure how widespread it is, but my linux 
> server is 
> > > > > > > safe, yet my 
> > > > > > > > windows XP, tomcat 4.1.24 is vulnerable.
> > > > > > > > 
> > > > > > > > I found that if you append %20 to a jsp page it 
> shows the 
> > > > > > > source code 
> > > > > > > > instead of displaying the page:
> > > > > > > > 
> > > > > > > > http://192.

RE: security hole on windows tomcat?

2003-08-14 Thread Cox, Charlie
can you turn on debugging for the default servlet(conf/web.xml) and also
turn on the requestdumpervalve(server.xml) and post the log.



> -Original Message-
> From: Paul Sundling [mailto:[EMAIL PROTECTED]
> Sent: Monday, August 11, 2003 8:43 PM
> To: Tomcat Users List
> Subject: Re: security hole on windows tomcat?
> 
> 
> I never changed the mime-mapping when I installed it.  I run tomcat 
> manually or as a manual service.  When I tried running tomcat as an 
> automatic service, it had trouble.  The only changes I made were in 
> configs specific to webapps.  The problem is present on the 
> unmodified 
> examples webapp.  The only two jars I added in the SDK were the JDBC 
> drivers for postrgres and mysql.
> 
> Paul Sundling
> 
> Cox, Charlie wrote:
> 
> >did you change any mime-mappings in conf/web.xml? could you 
> have a "jsp " in
> >there somewhere defining it as text?
> >
> >  
> >
> >>-Original Message-
> >>From: Angus Mezick [mailto:[EMAIL PROTECTED]
> >>Sent: Monday, August 11, 2003 12:15 PM
> >>To: Tomcat Users List
> >>Subject: RE: security hole on windows tomcat?
> >>
> >>
> >>Ok guys,
> >>What could I have turned on that would have allowed this bug 
> >>to happen?
> >>I can make it happen in both tomcat and tomcat through 
> apache.  (Most
> >>recent of both)  I can provide a site where it DOES happen 
> so you guys
> >>can see what is happening.
> >>
> >>
> >>
> >>>-Original Message-
> >>>From: Cox, Charlie [mailto:[EMAIL PROTECTED] 
> >>>Sent: Monday, August 11, 2003 12:07 PM
> >>>To: 'Tomcat Users List'
> >>>Subject: RE: security hole on windows tomcat?
> >>>
> >>>
> >>>sorry, I don't know - I don't use Apache. This was just a 
> >>>thought that I
> >>>had.
> >>>
> >>>I do not have this problem 4.1.24 on Win2k
> >>>
> >>>Charlie
> >>>
> >>>  
> >>>
> >>>>-Original Message-
> >>>>From: Angus Mezick [mailto:[EMAIL PROTECTED]
> >>>>Sent: Monday, August 11, 2003 11:49 AM
> >>>>To: Tomcat Users List
> >>>>Subject: RE: security hole on windows tomcat?
> >>>>
> >>>>
> >>>>Charlie,  
> >>>>How do you fix this within apache?
> >>>>
> >>>>
> >>>>
> >>>>>-Original Message-
> >>>>>From: Cox, Charlie [mailto:[EMAIL PROTECTED] 
> >>>>>Sent: Monday, August 11, 2003 10:15 AM
> >>>>>To: 'Tomcat Users List'
> >>>>>Subject: RE: security hole on windows tomcat?
> >>>>>
> >>>>>
> >>>>>do you have apache on the front end and are you only mapping 
> >>>>>*.jsp where
> >>>>>*.jsp%20 is not a match and apache would then serve the 
> >>>>>  
> >>>>>
> >>>>file as text?
> >>>>
> >>>>
> >>>>>Charlie
> >>>>>
> >>>>>  
> >>>>>
> >>>>>>-Original Message-
> >>>>>>From: John Turner [mailto:[EMAIL PROTECTED]
> >>>>>>Sent: Monday, August 11, 2003 9:22 AM
> >>>>>>To: Tomcat Users List
> >>>>>>Subject: Re: security hole on windows tomcat?
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>Appending "%20" to my Tomcat 4.1.1x URLs generates a 404.
> >>>>>>
> >>>>>>John
> >>>>>>
> >>>>>>Paul Sundling("Webdaddy") wrote:
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>>I came across what appears to be a security hole when 
> >>>>>>>  
> >>>>>>>
> >>>>>>running tomcat. 
> >>>>>>
> >>>>>>
> >>>>>>>I'm not sure how widespread it is, but my linux server is 
> >>>>>>>  
> >>>>>>>
> >>>>>>safe, yet my 
> >

RE: security hole on windows tomcat?

2003-08-14 Thread Cox, Charlie
sorry, I overlooked where you mentioned it was the default install.

please post a link
Charlie

> -Original Message-
> From: Cox, Charlie [mailto:[EMAIL PROTECTED]
> Sent: Monday, August 11, 2003 12:15 PM
> To: 'Tomcat Users List'
> Subject: RE: security hole on windows tomcat?
> 
> 
> did you change any mime-mappings in conf/web.xml? could you 
> have a "jsp " in
> there somewhere defining it as text?
> 
> > -Original Message-
> > From: Angus Mezick [mailto:[EMAIL PROTECTED]
> > Sent: Monday, August 11, 2003 12:15 PM
> > To: Tomcat Users List
> > Subject: RE: security hole on windows tomcat?
> > 
> > 
> > Ok guys,
> > What could I have turned on that would have allowed this bug 
> > to happen?
> > I can make it happen in both tomcat and tomcat through 
> apache.  (Most
> > recent of both)  I can provide a site where it DOES happen 
> so you guys
> > can see what is happening.
> > 
> > > -Original Message-
> > > From: Cox, Charlie [mailto:[EMAIL PROTECTED] 
> > > Sent: Monday, August 11, 2003 12:07 PM
> > > To: 'Tomcat Users List'
> > > Subject: RE: security hole on windows tomcat?
> > > 
> > > 
> > > sorry, I don't know - I don't use Apache. This was just a 
> > > thought that I
> > > had.
> > > 
> > > I do not have this problem 4.1.24 on Win2k
> > > 
> > > Charlie
> > > 
> > > > -Original Message-
> > > > From: Angus Mezick [mailto:[EMAIL PROTECTED]
> > > > Sent: Monday, August 11, 2003 11:49 AM
> > > > To: Tomcat Users List
> > > > Subject: RE: security hole on windows tomcat?
> > > > 
> > > > 
> > > > Charlie,  
> > > > How do you fix this within apache?
> > > > 
> > > > > -Original Message-
> > > > > From: Cox, Charlie [mailto:[EMAIL PROTECTED] 
> > > > > Sent: Monday, August 11, 2003 10:15 AM
> > > > > To: 'Tomcat Users List'
> > > > > Subject: RE: security hole on windows tomcat?
> > > > > 
> > > > > 
> > > > > do you have apache on the front end and are you only mapping 
> > > > > *.jsp where
> > > > > *.jsp%20 is not a match and apache would then serve the 
> > > > file as text?
> > > > > 
> > > > > Charlie
> > > > > 
> > > > > > -Original Message-
> > > > > > From: John Turner [mailto:[EMAIL PROTECTED]
> > > > > > Sent: Monday, August 11, 2003 9:22 AM
> > > > > > To: Tomcat Users List
> > > > > > Subject: Re: security hole on windows tomcat?
> > > > > > 
> > > > > > 
> > > > > > 
> > > > > > Appending "%20" to my Tomcat 4.1.1x URLs generates a 404.
> > > > > > 
> > > > > > John
> > > > > > 
> > > > > > Paul Sundling("Webdaddy") wrote:
> > > > > > 
> > > > > > > I came across what appears to be a security hole when 
> > > > > > running tomcat. 
> > > > > > > I'm not sure how widespread it is, but my linux server is 
> > > > > > safe, yet my 
> > > > > > > windows XP, tomcat 4.1.24 is vulnerable.
> > > > > > > 
> > > > > > > I found that if you append %20 to a jsp page it shows the 
> > > > > > source code 
> > > > > > > instead of displaying the page:
> > > > > > > 
> > > > > > > http://192.168.1.54:8080/index.jsp   as expected>
> > > > > > > http://192.168.1.54:8080/index.jsp%20  source code of 
> > > > > > index.jsp>
> > > > > > > 
> > > > > > > So how widespread is this?
> > > > > > > 
> > > > > > > Paul Sundling
> > > > > > > 
> > > > > > > 
> > > > > > > 
> > > > > > 
> > > > > 
> > > > 
> > > 
> > 
> -
> > > > > > > To unsubscribe, e-mail: 
> > > > [EMAIL PROTECTED]
> > > > > > > For additional commands, e-mail: 
> > > > > [EMAIL PROTECTED

RE: security hole on windows tomcat?

2003-08-14 Thread Cox, Charlie
did you change any mime-mappings in conf/web.xml? could you have a "jsp " in
there somewhere defining it as text?

> -Original Message-
> From: Angus Mezick [mailto:[EMAIL PROTECTED]
> Sent: Monday, August 11, 2003 12:15 PM
> To: Tomcat Users List
> Subject: RE: security hole on windows tomcat?
> 
> 
> Ok guys,
> What could I have turned on that would have allowed this bug 
> to happen?
> I can make it happen in both tomcat and tomcat through apache.  (Most
> recent of both)  I can provide a site where it DOES happen so you guys
> can see what is happening.
> 
> > -Original Message-
> > From: Cox, Charlie [mailto:[EMAIL PROTECTED] 
> > Sent: Monday, August 11, 2003 12:07 PM
> > To: 'Tomcat Users List'
> > Subject: RE: security hole on windows tomcat?
> > 
> > 
> > sorry, I don't know - I don't use Apache. This was just a 
> > thought that I
> > had.
> > 
> > I do not have this problem 4.1.24 on Win2k
> > 
> > Charlie
> > 
> > > -Original Message-
> > > From: Angus Mezick [mailto:[EMAIL PROTECTED]
> > > Sent: Monday, August 11, 2003 11:49 AM
> > > To: Tomcat Users List
> > > Subject: RE: security hole on windows tomcat?
> > > 
> > > 
> > > Charlie,  
> > > How do you fix this within apache?
> > > 
> > > > -Original Message-
> > > > From: Cox, Charlie [mailto:[EMAIL PROTECTED] 
> > > > Sent: Monday, August 11, 2003 10:15 AM
> > > > To: 'Tomcat Users List'
> > > > Subject: RE: security hole on windows tomcat?
> > > > 
> > > > 
> > > > do you have apache on the front end and are you only mapping 
> > > > *.jsp where
> > > > *.jsp%20 is not a match and apache would then serve the 
> > > file as text?
> > > > 
> > > > Charlie
> > > > 
> > > > > -Original Message-
> > > > > From: John Turner [mailto:[EMAIL PROTECTED]
> > > > > Sent: Monday, August 11, 2003 9:22 AM
> > > > > To: Tomcat Users List
> > > > > Subject: Re: security hole on windows tomcat?
> > > > > 
> > > > > 
> > > > > 
> > > > > Appending "%20" to my Tomcat 4.1.1x URLs generates a 404.
> > > > > 
> > > > > John
> > > > > 
> > > > > Paul Sundling("Webdaddy") wrote:
> > > > > 
> > > > > > I came across what appears to be a security hole when 
> > > > > running tomcat. 
> > > > > > I'm not sure how widespread it is, but my linux server is 
> > > > > safe, yet my 
> > > > > > windows XP, tomcat 4.1.24 is vulnerable.
> > > > > > 
> > > > > > I found that if you append %20 to a jsp page it shows the 
> > > > > source code 
> > > > > > instead of displaying the page:
> > > > > > 
> > > > > > http://192.168.1.54:8080/index.jsp  
> > > > > > http://192.168.1.54:8080/index.jsp%20  > > > > index.jsp>
> > > > > > 
> > > > > > So how widespread is this?
> > > > > > 
> > > > > > Paul Sundling
> > > > > > 
> > > > > > 
> > > > > > 
> > > > > 
> > > > 
> > > 
> > 
> -
> > > > > > 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]
> > > 
> > 
> > 
> -
> > 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: Again, Problem: Tomcat server went down ...

2003-08-14 Thread Cox, Charlie
are there any hs_err_pid* files?

> -Original Message-
> From: Bing Zhang [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, August 06, 2003 10:31 AM
> To: '[EMAIL PROTECTED]'
> Subject: Again, Problem: Tomcat server went down ...
> 
> 
> 
> Can someone out there help on this ?  I have posted my 
> problem for 2 days,
> didn't really get any response.  
> 
> Our Tomcat server just shut down by itself.  It caused an application
> error(0xc05 ) in Java.exe and shut down.
> 
> Did this type of things happen to anybody before ?  Any ideas 
> or directions
> about what could cause this ?
> 
> Our platform is Apache 1.3.9, Tomcat 3.3, JDK 1.3, and FOP 
> 0.20.4 running on
> NT servers.  Well, I know this configuration is kinda old.
> 
> Any info on how to dig out the problem is greatly appreciated.
> 
> Bing
> 
> 
> -
> 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: security hole on windows tomcat?

2003-08-14 Thread Cox, Charlie
sorry, I don't know - I don't use Apache. This was just a thought that I
had.

I do not have this problem 4.1.24 on Win2k

Charlie

> -Original Message-
> From: Angus Mezick [mailto:[EMAIL PROTECTED]
> Sent: Monday, August 11, 2003 11:49 AM
> To: Tomcat Users List
> Subject: RE: security hole on windows tomcat?
> 
> 
> Charlie,  
> How do you fix this within apache?
> 
> > -----Original Message-
> > From: Cox, Charlie [mailto:[EMAIL PROTECTED] 
> > Sent: Monday, August 11, 2003 10:15 AM
> > To: 'Tomcat Users List'
> > Subject: RE: security hole on windows tomcat?
> > 
> > 
> > do you have apache on the front end and are you only mapping 
> > *.jsp where
> > *.jsp%20 is not a match and apache would then serve the 
> file as text?
> > 
> > Charlie
> > 
> > > -Original Message-
> > > From: John Turner [mailto:[EMAIL PROTECTED]
> > > Sent: Monday, August 11, 2003 9:22 AM
> > > To: Tomcat Users List
> > > Subject: Re: security hole on windows tomcat?
> > > 
> > > 
> > > 
> > > Appending "%20" to my Tomcat 4.1.1x URLs generates a 404.
> > > 
> > > John
> > > 
> > > Paul Sundling("Webdaddy") wrote:
> > > 
> > > > I came across what appears to be a security hole when 
> > > running tomcat. 
> > > > I'm not sure how widespread it is, but my linux server is 
> > > safe, yet my 
> > > > windows XP, tomcat 4.1.24 is vulnerable.
> > > > 
> > > > I found that if you append %20 to a jsp page it shows the 
> > > source code 
> > > > instead of displaying the page:
> > > > 
> > > > http://192.168.1.54:8080/index.jsp  
> > > > http://192.168.1.54:8080/index.jsp%20  > > index.jsp>
> > > > 
> > > > So how widespread is this?
> > > > 
> > > > Paul Sundling
> > > > 
> > > > 
> > > > 
> > > 
> > 
> -
> > > > 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]
> 

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



RE: security hole on windows tomcat?

2003-08-11 Thread Cox, Charlie
you can also turn on the AccessLogValve in server.xml to show if the request
gets to tomcat from apache and to see what it looks like.



> -Original Message-
> From: Angus Mezick [mailto:[EMAIL PROTECTED]
> Sent: Monday, August 11, 2003 12:56 PM
> To: Tomcat Users List
> Subject: RE: security hole on windows tomcat?
> 
> 
> ARGH! This has gone to just being an apache problem.  Tomcat seems to
> have self corrected.  I am very confused but will keep 
> looking.  Apache
> still does it though.
> 
> > -Original Message-
> > From: Cox, Charlie [mailto:[EMAIL PROTECTED] 
> > Sent: Monday, August 11, 2003 12:40 PM
> > To: 'Tomcat Users List'
> > Subject: RE: security hole on windows tomcat?
> > 
> > 
> > can you turn on debug for the defaultservlet - set it to 99 
> > in conf/web.xml
> > and post the log.
> > 
> > > -Original Message-
> > > From: Angus Mezick [mailto:[EMAIL PROTECTED]
> > > Sent: Monday, August 11, 2003 12:39 PM
> > > To: Tomcat Users List
> > > Subject: RE: security hole on windows tomcat?
> > > 
> > > 
> > > Nope, but this mime mapping exists.
> > > 
> > > jspf
> > > text/plain
> > > 
> > > 
> > > > -Original Message-
> > > > From: Cox, Charlie [mailto:[EMAIL PROTECTED] 
> > > > Sent: Monday, August 11, 2003 12:15 PM
> > > > To: 'Tomcat Users List'
> > > > Subject: RE: security hole on windows tomcat?
> > > > 
> > > > 
> > > > did you change any mime-mappings in conf/web.xml? could you 
> > > > have a "jsp " in
> > > > there somewhere defining it as text?
> > > > 
> > > > > -Original Message-
> > > > > From: Angus Mezick [mailto:[EMAIL PROTECTED]
> > > > > Sent: Monday, August 11, 2003 12:15 PM
> > > > > To: Tomcat Users List
> > > > > Subject: RE: security hole on windows tomcat?
> > > > > 
> > > > > 
> > > > > Ok guys,
> > > > > What could I have turned on that would have allowed this bug 
> > > > > to happen?
> > > > > I can make it happen in both tomcat and tomcat through 
> > > > apache.  (Most
> > > > > recent of both)  I can provide a site where it DOES happen 
> > > > so you guys
> > > > > can see what is happening.
> > > > > 
> > > > > > -Original Message-
> > > > > > From: Cox, Charlie [mailto:[EMAIL PROTECTED] 
> > > > > > Sent: Monday, August 11, 2003 12:07 PM
> > > > > > To: 'Tomcat Users List'
> > > > > > Subject: RE: security hole on windows tomcat?
> > > > > > 
> > > > > > 
> > > > > > sorry, I don't know - I don't use Apache. This was just a 
> > > > > > thought that I
> > > > > > had.
> > > > > > 
> > > > > > I do not have this problem 4.1.24 on Win2k
> > > > > > 
> > > > > > Charlie
> > > > > > 
> > > > > > > -Original Message-
> > > > > > > From: Angus Mezick [mailto:[EMAIL PROTECTED]
> > > > > > > Sent: Monday, August 11, 2003 11:49 AM
> > > > > > > To: Tomcat Users List
> > > > > > > Subject: RE: security hole on windows tomcat?
> > > > > > > 
> > > > > > > 
> > > > > > > Charlie,  
> > > > > > > How do you fix this within apache?
> > > > > > > 
> > > > > > > > -Original Message-
> > > > > > > > From: Cox, Charlie [mailto:[EMAIL PROTECTED] 
> > > > > > > > Sent: Monday, August 11, 2003 10:15 AM
> > > > > > > > To: 'Tomcat Users List'
> > > > > > > > Subject: RE: security hole on windows tomcat?
> > > > > > > > 
> > > > > > > > 
> > > > > > > > do you have apache on the front end and are you 
> > > only mapping 
> > > > > > > > *.jsp where
> > > > > > > > *.jsp%20 is not a match and apache would then serve the 
> > > > > > > file as text?
> > 

RE: security hole on windows tomcat?

2003-08-11 Thread Cox, Charlie
do you have apache on the front end and are you only mapping *.jsp where
*.jsp%20 is not a match and apache would then serve the file as text?

Charlie

> -Original Message-
> From: John Turner [mailto:[EMAIL PROTECTED]
> Sent: Monday, August 11, 2003 9:22 AM
> To: Tomcat Users List
> Subject: Re: security hole on windows tomcat?
> 
> 
> 
> Appending "%20" to my Tomcat 4.1.1x URLs generates a 404.
> 
> John
> 
> Paul Sundling("Webdaddy") wrote:
> 
> > I came across what appears to be a security hole when 
> running tomcat. 
> > I'm not sure how widespread it is, but my linux server is 
> safe, yet my 
> > windows XP, tomcat 4.1.24 is vulnerable.
> > 
> > I found that if you append %20 to a jsp page it shows the 
> source code 
> > instead of displaying the page:
> > 
> > http://192.168.1.54:8080/index.jsp  
> > http://192.168.1.54:8080/index.jsp%20  index.jsp>
> > 
> > So how widespread is this?
> > 
> > Paul Sundling
> > 
> > 
> > 
> -
> > 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: Problem: Tomcat server went down ...

2003-08-08 Thread Cox, Charlie
is there an hs_err_pid.log file? This can provide the stack trace
of the thread that was running when the crash occurred.

Charlie

> -Original Message-
> From: Bing Zhang [mailto:[EMAIL PROTECTED]
> Sent: Monday, August 04, 2003 3:48 PM
> To: 'Tomcat Users List'
> Subject: RE: Problem: Tomcat server went down ...
> 
> 
> 
> Well, there isn't much information in the tomcat's tomcat.log 
> and error.log.
> It didn't provide any hint on which particular part of the 
> server or which
> particular servlet did something and made the server shut down.   
> 
> what's the general approach people would use to find out the 
> source of the
> problem ? 
> Thanks. 
> 
> Bing
> 
> -Original Message-
> From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
> Sent: Monday, August 04, 2003 12:47 PM
> To: Tomcat Users List
> Subject: RE: Problem: Tomcat server went down ...
> 
> 
> 
> Howdy,
> Hmmm... Any information in the logs?
> 
> Yoav Shapira
> Millennium ChemInformatics
> 
> 
> >-Original Message-
> >From: Bing Zhang [mailto:[EMAIL PROTECTED]
> >Sent: Monday, August 04, 2003 12:36 PM
> >To: '[EMAIL PROTECTED]'
> >Subject: Problem: Tomcat server went down ...
> >
> >
> >Our Tomcat server just shut down by itself.  It caused an application
> >error(
> >0xc05 ) in Java.exe and shut down.
> >
> >Any ideas or directions about what could cause this ?
> >
> >Our platform is Apache 1.3.9, Tomcat 3.3, JDK 1.3, and FOP 0.20.4
> running
> >on
> >NT servers.  Well, I know this configuration is kinda old.
> >
> >Any info on how to dig out the problem is greatly appreciated.
> >
> >Bing
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> 
> This e-mail, including any attachments, is a confidential business
> communication, and may contain information that is 
> confidential, proprietary
> and/or privileged.  This e-mail is intended only for the 
> individual(s) to
> whom it is addressed, and may not be saved, copied, printed, 
> disclosed or
> used by anyone else.  If you are not the(an) intended 
> recipient, please
> immediately delete this e-mail from your computer system and 
> notify the
> sender.  Thank you.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

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



RE: Classpath Conundrum (2nd try)

2003-07-17 Thread Cox, Charlie
can't you just set up an ant script to (also)copy the files to the tomcat
directory each time they are updated?

> -Original Message-
> From: Thomas Davis [mailto:[EMAIL PROTECTED]
> Sent: Thursday, July 17, 2003 4:47 PM
> To: Tomcat Users List
> Subject: RE: Classpath Conundrum (2nd try)
> 
> 
> 
> --- "Shapira, Yoav" <[EMAIL PROTECTED]> wrote:
> > 
> > Searching the list archives reveals that every now and then someone
> > comes along with your situation 
> 
> Could you please refer me to one of those threads?  I checked the
> archives before posting here and was unable to find any discussions
> that resolved this issue.
> 
> > 2. They do manage to make a hack work, 
> 
> Do you happen to recall what that hack is?  Much appreciated.  
> 
> Thanks.
> 
> 
> -
> 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: Exception:getOutputStream() has already been called for this response

2003-07-11 Thread Cox, Charlie
remove all whitspace from your jsp before the code. 
change
<%@ page import="Bid.BidSession"%>
<%

to 
<%@ page import="Bid.BidSession"%><%

(one line)
the jsp is writing your whitespace to the outputstream, thus preventing your
forward().

Charlie

> -Original Message-
> From: Abid Ali Teepo [mailto:[EMAIL PROTECTED]
> Sent: Friday, July 11, 2003 11:57 AM
> To: Tomcat Users List
> Subject: RE: Exception:getOutputStream() has already been called for
> this response
> 
> 
> 
> Hi Tim
> 
> No, the rd.include doesn't write anything.
> 
> I'm pasting the root cause stack trace that refers to line 
> number 69 in my jasper produced file that i'm attaching ... 
> sure hope you can have a look at it ...
> 
> Abid
> 
> java.lang.IllegalStateException: getOutputStream() has 
> already been called for this response
>   at 
> org.apache.coyote.tomcat4.CoyoteResponse.getWriter(CoyoteRespo
> nse.java:614)
>   at 
> org.apache.coyote.tomcat4.CoyoteResponseFacade.getWriter(Coyot
> eResponseFacade.java:173)
>   at 
> org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.
> java:173)
>   at 
> org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterI
> mpl.java:166)
>   at 
> org.apache.jasper.runtime.PageContextImpl.release(PageContextI
> mpl.java:184)
>   at 
> org.apache.jasper.runtime.JspFactoryImpl.internalReleasePageCo
> ntext(JspFactoryImpl.java:198)
>   at 
> org.apache.jasper.runtime.JspFactoryImpl.releasePageContext(Js
> pFactoryImpl.java:193)
>   at 
> org.apache.jsp.netbid_done_jsp._jspService(netbid_done_jsp.java:69)
>   at 
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>   at 
> org.apache.jasper.servlet.JspServletWrapper.service(JspServlet
> Wrapper.java:210)
>   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.internalDoFilt
> er(ApplicationFilterChain.java:247)
>   at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli
cationFilterChain.java:193)
>   at 
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardW
> rapperValve.java:256)
>   at 
> org.apache.catalina.core.StandardPipeline$StandardPipelineValv
> eContext.invokeNext(StandardPipeline.java:643)
>   at 
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> ine.java:480)
>   at 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>   at 
> org.apache.catalina.core.StandardContextValve.invoke(StandardC
> ontextValve.java:191)
>   at 
> org.apache.catalina.core.StandardPipeline$StandardPipelineValv
> eContext.invokeNext(StandardPipeline.java:643)
>   at 
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(Aut
> henticatorBase.java:551)
>   at 
> org.apache.catalina.core.StandardPipeline$StandardPipelineValv
> eContext.invokeNext(StandardPipeline.java:641)
>   at 
> org.apache.catalina.valves.CertificatesValve.invoke(Certificat
> esValve.java:246)
>   at 
> org.apache.catalina.core.StandardPipeline$StandardPipelineValv
> eContext.invokeNext(StandardPipeline.java:641)
>   at 
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> ine.java:480)
>   at 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>   at 
> org.apache.catalina.core.StandardContext.invoke(StandardContex
> t.java:2415)
>   at 
> org.apache.catalina.core.StandardHostValve.invoke(StandardHost
> Valve.java:180)
>   at 
> org.apache.catalina.core.StandardPipeline$StandardPipelineValv
> eContext.invokeNext(StandardPipeline.java:643)
>   at 
> org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDi
> spatcherValve.java:171)
>   at 
> org.apache.catalina.core.StandardPipeline$StandardPipelineValv
> eContext.invokeNext(StandardPipeline.java:641)
>   at 
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport
> Valve.java:172)
>   at 
> org.apache.catalina.core.StandardPipeline$StandardPipelineValv
> eContext.invokeNext(StandardPipeline.java:641)
>   at 
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> ine.java:480)
>   at 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>   at 
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEn
> gineValve.java:174)
>   at 
> org.apache.catalina.core.StandardPipeline$StandardPipelineValv
> eContext.invokeNext(StandardPipeline.java:643)
>   at 
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> ine.java:480)
>   at 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>   at 
> org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.
> java:223)
> 

RE: tracking downloads

2003-07-10 Thread Cox, Charlie
you can map your filter for only those requests that you want to track. i.e.
/downloads/*

Charlie

> -Original Message-
> From: Mark F [mailto:[EMAIL PROTECTED]
> Sent: Thursday, July 10, 2003 3:55 PM
> To: Tomcat Users List
> Subject: Re: tracking downloads
> 
> 
> I like that idea but it would require that I check every 
> single request for
> a matching pattern ( a download) and it seems to me that 
> would produce a
> significant amount of overhead, slowing the appserver quite a bit?
> 
> Thanks,
> 
> -Mark
> 
> Justin Ruthenbeck wrote:
> || Why not write a filter that puts an entry in a database table after
> || the file has been successfully served?  This way you can log
> || whatever you want (who, what, when, size, ip address, duration,
> || application-specific info, etc).  The report could then be run
> || whenever you need the information and from any machine with access
> || to the database (not necessarily a Java reporting solution).
> ||
> || This seems logical, especially since you, "will not only need to
> || record the download but query the database (or in this case
> || documentum) in order to check for a specific attribute relevant to
> || the report."
> ||
> || justin
> ||
> ||
> || At 11:38 AM 7/10/2003, you wrote:
> ||| Angus Mezick wrote:
>  You mean, like use the items in the access log?  You could always
>  create a valve that watches for certain paths and 
> updates a DB/file
>  entry or some such.
>  --Angus
> 
> | -Original Message-
> | From: Mark F [mailto:[EMAIL PROTECTED]
> | Sent: Thursday, July 10, 2003 2:15 PM
> | To: Tomcat Users List
> | Subject: tracking downloads
> |
> |
> | We need to track every time a file is downloaded from our
> | server so that we may report on usage.  We are currently
> | migrating to a new Java/JSP (Documentum and WDK) based Web
> | application.  We wrote a perl script before under the old
> | system to parse the log files and construct a report but I'm
> | fairly certain there is a better way now that we are using
> | Tomcat and Java.  I thought about using a filter to increment
> | a counter every time a request matched a particular pattern
> | and I also thought about using the log file approach again
> | this time using a java logging package but I'm not really
> | sure what the best approach would be.  Especially since we
> | will not only need to record the download but query the
> | database (or in this case documentum) in order to check for a
> | specific attribute relevant to the report.
> |
> | Any ideas on how best to accomplish this are appreciated.
> |
> | -Mark
> |
> 
>  
> -
>  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]
> ||
> ||
> || 
> || Justin Ruthenbeck
> || Software Engineer, NextEngine Inc.
> || justinr - AT - nextengine DOT com
> || Confidential
> || See http://www.nextengine.com/confidentiality.php
> || 
> ||
> ||
> || 
> -
> || 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: sharing objects betweeen different contexts (Long)

2003-07-09 Thread Cox, Charlie
put your shared class in /common/lib and each webapp will be able to see it.

Charlie

> -Original Message-
> From: RANDAD,KAILASH (HP-PaloAlto,ex1) [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, July 08, 2003 3:17 PM
> To: 'Tomcat Users List'
> Subject: RE: sharing objects betweeen different contexts (Long)
> 
> 
> Hi
> Different web applications will get loaded from different 
> class loader, so
> you are getting this exception. 
> Regards
> KP
> 
> -Original Message-
> From: laurent marot [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, July 08, 2003 12:12 PM
> To: Tomcat Users List
> Subject: sharing objects betweeen different contexts (Long)
> 
> 
> Hi all,I'm trying to create an object in a Jsp page in an 
> application named
> AppA and get it back in another page in AppB.When i made a test with
> String="my data to share" everything works properly but when 
> i try to create
> a User Objets (simple java class in MyPackage package) i get a Cast
> Exception in the receiver page.any idea to solve this problemThanks a
> lot.Platform : tomcat 4.1.24 on windows2000 with JDK
> 1.4.1/AppA/contextAUser.jsp page :<%@ page 
> import="java.util.*, myPackage.*"
> %><%  out.println(session.getId());String sessionid = 
> session.getId();String
> datas="my datas to share";User user = new User("myName", "myRole");
> ServletContext context=session.getServletContext();Hashtable 
> shareddata =
> (Hashtable)context.getAttribute("user");if (shareddata==null) 
> shareddata =
> new Hashtable();//shareddata.put(sessionid, 
> datas);shareddata.put(sessionid,
> user);context.setAttribute("user", shareddata);%> href="/AppB/contextBUser.jsp?jsessionid=<%=session.getId()%>"
> target="blank">Got to B 
> appplication/AppB/contextBUesr.jsp page :<%@
> page import="java.util.*,myPackage.*"%><%  String
> ssosessionid=request.getParameter("jsessionid");out.println(se
> ssion.getId())
> ;ServletContext context=session.getServletContext();String
> SignonContext="/wisd";ServletContext ssocontext =
> context.getContext(SignonContext);if (ssocontext==null) 
> out.println("no
> context !");String userroles = null;User user = 
> null;Hashtable shareddata =
> null;shareddata = (Hashtable)ssocontext.getAttribute("user");if
> (shareddata!=null) { //userroles = 
> (String)shareddata.get(ssosessionid);
> user = (User)shareddata.get(ssosessionid);
> out.println(user.getUserId());}else out.println("no context
> !");%>org.apache.jasper.JasperException
>   at
> org.apache.jasper.servlet.JspServletWrapper.service(JspServlet
> Wrapper.java:2
> 48)
>   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.internalDoFilt
> er(Application
> FilterChain.java:247)
>   at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli
> cationFilterCh
> ain.java:193)
>   at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardW
> rapperValve.ja
> va:260)
>   at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValv
> eContext.invok
> eNext(StandardPipeline.java:643)
>   at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> ine.java:480)
>   at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>   at
> org.apache.catalina.core.StandardContextValve.invoke(StandardC
> ontextValve.ja
> va:191)
>   at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValv
> eContext.invok
> eNext(StandardPipeline.java:643)
>   at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> ine.java:480)
>   at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>   at
> org.apache.catalina.core.StandardContext.invoke(StandardContex
> t.java:2415)
>   at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHost
> Valve.java:180
> )
>   at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValv
> eContext.invok
> eNext(StandardPipeline.java:643)
>   at
> org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDi
> spatcherValve.
> java:170)
>   at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValv
> eContext.invok
> eNext(StandardPipeline.java:641)
>   at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport
> Valve.java:172
> )
>   at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValv
> eContext.invok
> eNext(StandardPipeline.java:641)
>   at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValv
> e.java:509)
>   at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValv
> eContext.invok
> eNext(StandardPipeline.java:641)
>   at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> ine.java:480)
>   at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:

RE: Insufficient quota

2003-07-02 Thread Cox, Charlie
changing the quota is specific to your operating system and has nothing to
do with tomcat. Consult the person who set up your server.

you can look at the logs directory to see if you can delete any log files,
but chances are that it will happen again.

> -Original Message-
> From: Reis, Tom [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, July 02, 2003 12:52 PM
> To: 'Tomcat Users List'
> Subject: RE: Insufficient quota
> 
> 
> I am new to Tomcat and I am responsible for the server. We 
> are using Tomcat
> version 4.03. Could you tell me how to change the quota. Thanks.
> 
> -Original Message-
> From: John Turner [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, July 01, 2003 4:26 PM
> To: Tomcat Users List
> Subject: Re: Insufficient quota
> 
> 
> 
> - ask your sys-admin to increase (or remove) the quota
> 
> - figure out what is taking up the disk space (runaway log 
> file perhaps?) 
> and delete it
> 
> John
> 
> On Tue, 1 Jul 2003 16:06:55 -0500, Reis, Tom 
> <[EMAIL PROTECTED]> wrote:
> 
> > What can be done about it? Thanks.
> >
> > -Original Message-
> > From: Tim Funk [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, July 01, 2003 3:50 PM
> > To: Tomcat Users List
> > Subject: Re: Insufficient quota
> >
> >
> > Looks like your userid is out of disk space (quota) on a 
> *nix system.
> >
> > -Tim
> >
> > Reis, Tom wrote:
> >>I intermittently receive the following error:
> >> javax.servlet.ServletException: Read error 1453, 
> Insufficient quota to
> >> complete the requested service. Are there any parameters 
> to set for this
> >> problem?
> >>
> >
> >
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> 
> 
> -- 
> Using M2, Opera's revolutionary e-mail client: 
> http://www.opera.com/m2/
> 
> -
> 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: url-pattern in filters

2003-07-02 Thread Cox, Charlie
that is the correct mapping. look at the examples web.xml and it is used in
there. The source for the sample filters is also included inthe examples
context.

do you have any errors in the logs?

> -Original Message-
> From: Abid Ali Teepo [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, July 02, 2003 2:59 AM
> To: Tomcat Users List
> Subject: RE: url-pattern in filters
> 
> 
> Yes i did, thank you
> 
> but i can't get the filter to take action on all requests with (/*),
> so i need to figure out how the url-pattern works 
> 
> -----Original Message-
> From: Cox, Charlie [mailto:[EMAIL PROTECTED]
> Sent: 1. juli 2003 18:55
> To: 'Tomcat Users List'
> Subject: RE: url-pattern in filters
> 
> 
> did you see my reply to your previous post?
> 
> > -Original Message-
> > From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, July 01, 2003 12:30 PM
> > To: Tomcat Users List
> > Subject: RE: url-pattern in filters
> > 
> > 
> > 
> > Howdy,
> > A filter mapped to /* will get called for all requests.  The 
> > description
> > of the url-pattern element and its uses is in the Servlet 
> > Specification.
> > 
> > If you post your specific filter's code, we can help find 
> bugs in it.
> > 
> > Yoav Shapira
> > Millennium ChemInformatics
> > 
> > 
> > >-Original Message-
> > >From: Abid Ali Teepo [mailto:[EMAIL PROTECTED]
> > >Sent: Tuesday, July 01, 2003 12:26 PM
> > >To: [EMAIL PROTECTED]
> > >Subject: url-pattern in filters
> > >
> > >Hi
> > >
> > >Can someone direct me to information as to how i can use the
> > url-pattern in
> > >the web.xml file for a filter. I want the filter to be used for all
> > >requests, and have put in a   /* 
> . Somehow
> > the
> > >filter is still not called for any request.
> > >
> > >Anyone got a clue ?
> > >
> > >Regards
> > >Abid
> > >
> > 
> >-
> > >To unsubscribe, e-mail: [EMAIL PROTECTED]
> > >For additional commands, e-mail: 
> [EMAIL PROTECTED]
> > 
> > 
> > 
> > 
> > This e-mail, including any attachments, is a confidential 
> > business communication, and may contain information that is 
> > confidential, proprietary and/or privileged.  This e-mail is 
> > intended only for the individual(s) to whom it is addressed, 
> > and may not be saved, copied, printed, disclosed or used by 
> > anyone else.  If you are not the(an) intended recipient, 
> > please immediately delete this e-mail from your computer 
> > system and notify the sender.  Thank you.
> > 
> > 
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> -
> 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: A simple filter question ..

2003-07-01 Thread Cox, Charlie
change:
public void init(FilterConfig f) {}

to 
public void init(FilterConfig f) {setFilterConfig(f);}


from one of the filter samples for the m_filterConfig:
 /**
  * The filter configuration object we are associated with.  If this value
  * is null, this filter instance is not currently configured.
  */


Charlie

> -Original Message-
> From: Abid Ali Teepo [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, July 01, 2003 3:18 AM
> To: [EMAIL PROTECTED]
> Subject: A simple filter question ..
> 
> 
> 
> > Hi
> > 
> > I am trying to make a filter that will redirect all request 
> that don't have a autheticated attribute set, to be 
> redirected to the login page.
> > 
> > Somehow my filter does not work properly even though it 
> still is a very basic implementation that
> > does nothing besides a few system out prints.
> > 
> > The only confirmation i get that this filter is in fact 
> loaded into tomcat, is that during startup my constructor is 
> called. I know that since the system out call writes to the console.
> > 
> > The filter is supposed to take all request to the site 
> since the url-pattern is set to /*
> > 
> > Here is the code for the filter :
> > 
> > public class BidFilter implements Filter
> > {
> >   private FilterConfig filterConfig;
> > 
> > public BidFilter() {System.out.println("Filter Constructor");}
> > 
> >   public void init(FilterConfig f) {}
> > 
> >   public void doFilter (ServletRequest request, 
> ServletResponse response,
> > FilterChain chain)
> >   {
> > 
> > try
> > {
> >   System.out.print ("Within Bid Filter ... ");
> >   System.out.println ("Filtering the Request ...");
> > 
> >   chain.doFilter (request, response);
> > 
> >   System.out.print ("Within Bid Filter ... ");
> >   System.out.println ("Filtering the Response ...");
> > 
> > } catch (IOException io) {
> >   System.out.println ("IOException raised in BidFilter");
> > } catch (ServletException se) {
> >   System.out.println ("ServletException raised in BidFilter");
> > }
> >   }
> > 
> >   public FilterConfig getFilterConfig()
> >   {
> > return this.filterConfig;
> >   }
> > 
> >   public void setFilterConfig (FilterConfig filterConfig)
> >   {
> > this.filterConfig = filterConfig;
> >   }
> >   
> >   public void destroy() { }
> >   
> > }
> > 
> > And here is the web.xml file for the filter :
> > 
> > ?xml version="1.0" encoding="UTF-8"?>
> > 
> >  Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd";>
> > 
> > 
> > Filter Request
> > The Secure Server
> > 
> > 
> > BidFilter
> > Bid.BidFilter
> > 
> > 
> > 
> > BidFilter
> > /*
> >   
> > 
> > 
> > 1
> >   
> > 
> > 
> > index.html
> > 
> > 
> > 
> > 
> > 
> > Any help would be very appreciated
> > 
> > regards
> > Abid
> > 
> > 
> 
> -
> 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: Using a custom class loader to load webapp classes

2003-07-01 Thread Cox, Charlie
last I recall per this list was that this had some problems. I don't
remember when that was, so check the archives and bugzilla for 'loader'

Charlie

> -Original Message-
> From: Bill Barker [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, July 01, 2003 2:04 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Using a custom class loader to load webapp classes
> 
> 
> It is supposed to be supported by something like:
>   
>  
>   
> 
> Never actually tried it myself, however.
> 
> "joe user" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > Hello Tomcatters,
> >
> > I have an unusual question.  I have a webapp which
> > needs to load its classes from a source other than a
> > regular .jar file or a .class file.  It needs to get
> > them out of some other storage system, such as a
> > database.  Don't ask me why I need to do this strange
> > thing; I have my reasons for it.
> >
> > I have written a subclass of ClassLoader which does
> > this.  The question is, how do I get this to work with
> > Tomcat?  I was looking at the Tomcat source, and it
> > looks like all Webapp classes are loaded by
> > org.apache.catalina.loader.WebappClassLoader, which is
> > a subclass of URLClassLoader.  I can easily write a
> > subclass of WebappClassLoader which does what I need
> > it to do.  The question is, how do I get Tomcat to use
> > my new subclass instead of the default
> > WebappClassLoader itself?
> >
> > I looked in org.apache.catalina.loader.WebappLoader,
> > and see that it picks the webapp class loader by name,
> > and it has a method like this:
> >
> > public void setLoaderClass(String loaderClass) {
> > this.loaderClass = loaderClass;
> > }
> >
> > Is there somewhere in the Tomcat config files where I
> > could set a string which gets passed to this method?
> > Also, if I do make my own subclass of
> > WebappClassLoader (call it SecureWebappClassLoader),
> > where should that class be put into the Tomcat
> > directory structure so that it can get loaded?
> >
> > Thanks for any advice on this unusual question.
> >
> >
> > __
> > Do you Yahoo!?
> > SBC Yahoo! DSL - Now only $29.95 per month!
> > http://sbc.yahoo.com
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

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



RE: ServletException

2003-06-26 Thread Cox, Charlie
I pass the request around quite a bit as well. Did you compile your classes
against the servlet.jar that is distributed with Tomcat?

at org.apache.jsp.nav_jsp._jspService(nav_jsp.java:61)

what is on line 61 of jsp_nav.java? look in the tomcat\work directory to
find the java file for your jsp.

is it possible that your class is throwing an exception that you are not
catching in the JSP? 

Charlie

> -Original Message-
> From: Woodrich, Jason D (Jason) [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, June 25, 2003 10:41 PM
> To: Tomcat Users List
> Subject: RE: ServletException
> 
> 
> My classes are using the HttpServletRequest.  I'm passing the 
> "request" variable because that's the only one I'm aware of 
> that is in use that implements the HttpServletRequest.  Is 
> there something else I should be using?
> 
> Thanks
> 
> Jason Woodrich
> - Avaya, Inc.
> - Knowledge Management & Tools Development
> 
> -Original Message-
> From: Yoav Shapira [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, June 25, 2003 7:28 PM
> To: Tomcat Users List
> Subject: RE: ServletException
> 
> 
> Howdy,
> Perhaps the fact that in 4.0.x your JSPs were package-less 
> and in 4.1.x they're
> in org.apache.jsp?  (Or vice versa, I can never remember).
> 
> Anyways, why are you using the tomcat-specific 
> HttpRequestFacade instead of the
> servlet specification's HttpServletRequest?
> 
> Yoav Shapira
> 
> --- "Woodrich, Jason D (Jason)" <[EMAIL PROTECTED]> wrote:
> > Ok, I tested this under standalone on 4.1 and on 4.0.6.  It 
> works fine under
> > 4.0.6 but has the ServletException under 4.1.  Anyone know 
> if anything
> > changed between the versions that would prevent 
> HttpRequestFacade methods
> > from being accessible from objects outside of the JSP?
> > 
> > Thanks
> > 
> > Jason Woodrich
> > - Avaya, Inc.
> > - Knowledge Management & Tools Development 
> > 
> > -Original Message-
> > From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, June 25, 2003 7:03 AM
> > To: Tomcat Users List
> > Subject: RE: ServletException
> > 
> > 
> > 
> > Howdy,
> > First try to reproduce this problem using 
> tomcat-standalone, to take out
> > the apache variable.  That will make debugging easier.
> > 
> > Yoav Shapira
> > Millennium ChemInformatics
> > 
> > 
> > >-Original Message-
> > >From: Woodrich, Jason D (Jason) [mailto:[EMAIL PROTECTED]
> > >Sent: Tuesday, June 24, 2003 9:47 PM
> > >To: [EMAIL PROTECTED]
> > >Subject: ServletException
> > >
> > >I'm getting a ServletException when I try to access methods in a
> > >HttpRequestFacade passed to one of my own classes.  It's 
> being casted
> > as a
> > >HttpServletRequest in hopes to maintain portability.  I'm able to
> > access
> > >the methods fine from the JSP that passes the request 
> variable, and the
> > >reference is exactly the same when compared ..  but for some reason
> > >whenever I call it from my class it freaks out and causes the
> > >ServletException which leads to the JasperException ..
> > >
> > >For example:
> > >
> > >jsp file:
> > >
> > ><[EMAIL PROTECTED] language="java" import=".*" %> -->
> > ><%
> > >Cheese hi;
> > >hi=new Cheese(request);
> > >%>
> > >
> > >part of the class:
> > >
> > >public class Cheese {
> > >  private HttpServletRequest _request;
> > >  public Cheese (HttpServletRequest req) {
> > >System.out.println("uri: "+req.getRequestURI());
> > >}
> > >  }
> > >
> > >Returned is:
> > >org.apache.jasper.JasperException:
> > javax/servlet/http/HttpServletRequest
> > >   at
> > 
> >org.apache.jasper.servlet.JspServletWrapper.service(JspServle
> tWrapper.j
> > ava:
> > >254)
> > >   at
> > 
> >org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServle
> t.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.internalDoFil
> ter(Applic
> > atio
> > >nFilterChain.java:247)
> > >   at
> > 
> >org.apache.catalina.core.ApplicationFilterChain.doFilter(Appl
> icationFil
> > terC
> > >hain.java:193)
> > >   at
> > 
> >org.apache.catalina.core.StandardWrapperValve.invoke(Standard
> WrapperVal
> > ve.j
> > >ava:256)
> > >   at
> > 
> >org.apache.catalina.core.StandardPipeline$StandardPipelineVal
> veContext.
> > invo
> > >keNext(StandardPipeline.java:643)
> > >   at
> > 
> >org.apache.catalina.core.StandardPipeline.invoke(StandardPipe
> line.java:
> > 480)
> > >   at
> > 
> >org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> > >   at
> > 
> >org.apache.catalina.core.StandardContextValve.invoke(Standard
> ContextVal
> > ve.j
> > >ava:191)
> > >   at
> > 
> >org.apache.catalina.core.StandardPipeline$StandardPipelineVal
> veContext.
> > invo
> > >keNext(StandardPipeline.java:643)
> > >   at
> > 
> >org.apache.catalina.core.StandardPipeline.invoke(StandardPipe
> line.java:
> > 480)
> > >   at
> > 
> >org

RE: ClassCastException

2003-06-16 Thread Cox, Charlie
you will probably want to review WebappClassLoader.java in the source. This
is the web app's classloader and contains details of setting and delegating
to the parent. Note that it does not use normal delegation - that is it
looks up the class before delegating to the parent.

Charlie



> -Original Message-
> From: Anna [mailto:[EMAIL PROTECTED]
> Sent: Monday, June 16, 2003 11:25 AM
> To: Tomcat Users List
> Cc: [EMAIL PROTECTED]
> Subject: RE: ClassCastException
> 
> 
> i need to do some kind of dynamic plugin managment ... i 
> retrieve files from directory .. and extract names ... after 
> that i use these names to load classes dynamicaly ... 
> 
> i catched article what did you post ... but i have some 
> problems with this ... could you plz explain me how i can set 
> my "classloader's parent to the current classloader"
> 
> Anna
> 
> 
> 
> 
> 
>   you need to set your classloader's parent to the current 
> classloader. Have you reviewed Tomcat's classloader document 
> so that you understand how tomcat works before trying to load 
> your own classes? 
> 
>   
> http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-h
owto.html

  Is there a reason to do this as opposed to moving your classes into
tomcat's WEB-INF directory? I wouldn't do this if you are just trying to
avoid copying your files to tomcat's directory from your network drive.

  Charlie

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



RE: ClassCastException

2003-06-16 Thread Cox, Charlie
you need to set your classloader's parent to the current classloader. Have
you reviewed Tomcat's classloader document so that you understand how tomcat
works before trying to load your own classes? 
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html

Is there a reason to do this as opposed to moving your classes into tomcat's
WEB-INF directory? I wouldn't do this if you are just trying to avoid
copying your files to tomcat's directory from your network drive.

Charlie

> -Original Message-
> From: Anna [mailto:[EMAIL PROTECTED]
> Sent: Monday, June 16, 2003 9:15 AM
> To: Tomcat Users List
> Subject: ClassCastException
> 
> 
> i solved problem with NoClassDefFoundError
> 
> but i have other problem
> 
> This program will use SimpleClassLoader.
> >> Load class : TestClass
> >> Not a system class.
> >> Load class : test.LocalModule
> >> Not a system class.
> >> Load class : java.lang.Object
> >> returning system class (in CLASSPATH).
> >> Returning newly loaded class.
> >> Returning newly loaded class.
> >> Load class : java.util.Vector
> >> returning system class (in CLASSPATH).
> Caught exception : java.lang.ClassCastException
> 
> 
> 
> ## myjsp.jsp #
> 
> SimpleClassLoader sc = new 
> SimpleClassLoader("M:\\Java\\JSP Projects\\Ticker\\servlet4\\");
>Object o;
>String tst = "TestClass";
> 
>System.out.println("This program will use SimpleClassLoader.");
>try {
>Class cClass = sc.loadClass(tst);
>   o= cClass.newInstance();
> 
> 
> ///here ... throw  cast exception ... in debuger 
> i see that in "o" is instance of TestClass (TestClass is 
> implented class of interface LocalModule)
> 
>   ((LocalModule)o).start("DF");
> 
> 
>} catch (Exception e) {
>System.out.println("Caught exception : "+e);
>   }
> 
> 
> 
> 
> #
> 
> package test;
> 
> public interface LocalModule {
> /* Start the module */
> void start(String option);
> }
> 
> 
> #
> I'm using this classloader
> 
> 
> /**
>  * Created by IntelliJ IDEA.
>  * User: Alknaion
>  * Date: 16.6.2003
>  * Time: 12:23:54
>  * To change this template use Options | File Templates.
>  */
> 
> 
> package test;
> import java.util.*;
> import java.io.*;
> 
> public class SimpleClassLoader extends ClassLoader {
> private Hashtable classes = new Hashtable();
> private String basePath;
> 
> public SimpleClassLoader(String basePath) {
>  this.basePath = basePath;
> }
> 
> 
>private byte[] getTypeFromBasePath(String typeName) {
> 
>   FileInputStream fis;
>   String fileName = basePath + File.separatorChar
>   + typeName.replace('.', File.separatorChar)
>   + ".class";
> 
>   try {
>fis = new FileInputStream(fileName);
>   } catch (FileNotFoundException e) {
>return null;
>   }
> 
>   BufferedInputStream bis =
>   new BufferedInputStream(fis);
>   ByteArrayOutputStream out =
>   new ByteArrayOutputStream();
> 
>   try {
>int c = bis.read();
>while (c != -1) {
> out.write(c);
> c = bis.read();
>}
>   } catch (IOException e) {
>return null;
>   }
>   return out.toByteArray();
>  }
> 
> public Class loadClass(String className) throws 
> ClassNotFoundException {
> return (loadClass(className, true));
> }
> 
> public synchronized Class loadClass(String className, 
> boolean resolveIt)
>  throws ClassNotFoundException {
> Class result;
> byte  classData[];
> 
> System.out.println(">> Load class : "+className);
> 
> result = (Class)classes.get(className);
> if (result != null) {
> System.out.println(">> returning 
> cached result.");
> return result;
> }
> 
> try {
> result = super.findSystemClass(className);
> System.out.println(">> returning 
> system class (in CLASSPATH).");
> return result;
> } catch (ClassNotFoundException e) {
> System.out.println(">> Not a system class.");
> }
> 
> /* Try to load it from our repository */
> classData = getTypeFromBasePath(className);
> if (classData == null) {
> throw new ClassNotFoundException();
> }
> 
> /* Define it (parse the class file) */
> result = defineClass(className, classData, 0, 
> classData.length);
> if (result == null) {
> throw new ClassFormatError();
> }
> 
> if (resolveIt) {
> resolveClass(result);
> }
> 
> classes.put(className, result);
> System.out.println(">> Returning newly 
> loaded cl

RE: Using File class in Tomcat

2003-06-12 Thread Cox, Charlie
are you running as a service? if so does the local "System" user have access
to your share? you will need to use \\server\path since the System account
will not have your mapped drives.

Charlie

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Thursday, June 12, 2003 1:51 PM
> To: [EMAIL PROTECTED]
> Subject: RE: [SPAM:56%] Using File class in Tomcat
> 
> 
> I also just found out that if I have any other file that I 
> have to read in
> from a network mapped drive, it's not found.
> 
> This must be some setting in Tomcat.  Any comment?  Idea?
> 
> Bao-Ha Dam Bui
> [EMAIL PROTECTED]
> St. Jude Medical, Inc
>  
> 
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, June 12, 2003 11:03 AM
> To: [EMAIL PROTECTED]
> Subject: RE: [SPAM:56%] Using File class in Tomcat
> 
> Made no difference.  I even tried the \\ instead of the \ by 
> itself.  Any
> more idea please!
> 
> Bao-Ha Dam Bui
> [EMAIL PROTECTED]
> St. Jude Medical, Inc
> 651.765.1018
>  
> 
> -Original Message-
> From: Brendle, Douglas A. [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, June 12, 2003 10:58 AM
> To: Tomcat Users List
> Subject: RE: [SPAM:56%] Using File class in Tomcat
> 
> 
> don't use the mapped drive name. Use it's unc name.
> If your mapped drive is G:\ and it's mapped to 
> someDir on someServer, refer to it as \\someServer\someDir.
> 
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Thursday, June 12, 2003 10:56 AM
> To: [EMAIL PROTECTED]
> Subject: [SPAM:56%] Using File class in Tomcat
> 
> 
> Hi,
> 
> I am using the java.io.File class to get a list of all the files in a
> directory.  If the directory I am trying to read is a local 
> one, all is fine
> and good.  However, if it is a mapped drive (I am using 
> Win2k) then the
> class can not see it.  I ran the same code reading the mapped drive in
> command window (java myclass) and it is fine.
> 
> Is there a setting in Tomcat that I have to set so that I can 
> read a mapped
> drive?  
> 
> I am using Tc 4.0.2
> 
> Thanks.
> 
> 
> Bao-Ha Dam Bui
> [EMAIL PROTECTED]
> St. Jude Medical, Inc
>  
> 

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



RE: Urgent : Can we restrict access to a directory in tomcat

2003-06-10 Thread Cox, Charlie
you could put a value in the user's session from your page and then use your
filter to check for it when an image is requested. If it's not there, they
were not at your site/page. Sessions can be set to timeout, so they would
have to had to visit recently to get the image.

Charlie

> -Original Message-
> From: Justin Ruthenbeck [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 10, 2003 1:41 PM
> To: Tomcat Users List
> Subject: Re: Urgent : Can we restrict access to a directory in tomcat
> 
> 
> At 04:27 AM 6/10/2003, you wrote:
> >Apologies if I'm missing the point, but why can't you 
> store/retrieve your
> >image from a blob field in your database ?
> 
> You could, but the question is really, "How do I stop people 
> from directly 
> linking to my images (ie: only allow them to see the images if a 
> jsp/servlet produces the page)?"  Among other possibilities, 
> this could be 
> because you have images or other resources (celebrity photos 
> come to mind) 
> that other sites want to serve off of yours.  If you've got a 
> jsp/servlet 
> app that is non-session based, how would you go about preventing this?
> 
> A couple solutions have been offered -- all based on an 
> authentication 
> filter/servlet to decide whether the resource should be served.  The 
> question is: how should that filter/servlet make that decision?
> 
> justin
> 
> 
> >- Original Message -
> >From: "Dean Fantham" <[EMAIL PROTECTED]>
> >To: "Syed Nayyer Kamran" <[EMAIL PROTECTED]>
> >Cc: "Tomcat Users List" <[EMAIL PROTECTED]>
> >Sent: Tuesday, June 10, 2003 3:29 AM
> >Subject: Re: Urgent : Can we restrict access to a directory in tomcat
> >
> >
> > > There is no guaranteed way to stop someone directly 
> access a gif image
> > > via a browser url, because this is how an image is accessed by the
> > > browser itself anyways.  The browser just makes a HTTP 
> get request to
> > > the web-server (in this case tomcat) requesting the URL 
> of the image to
> > > be included in the web page.
> > >
> > > i.e. in a standard jsp/servlet response to a web request the image
> > > request is embedded in a  src=".../somedir/some-img.gif">.  This is
> > > going to cause a browser request directory to the 
> directory containing
> > > the image, which can also be duplicated in the browser.
> > >
> > > The only potential method that can catch most (but not 
> all) of these
> > > would be to create a separate image handling jsp/servlet, say
> > > imageHandler.  When imageHanlder servlet recieves an 
> image request it
> > > can check the http-referrer header and ensure that the 
> referrer is the
> > > url of the page to which the images are supposed to load, 
> i.e. is the
> > > page containing the images in /servlet/somepage then the 
> http-referrer
> > > that imageHandler see should be able to checked that it is
> > > /servlet/somepage.  Someone can circumvent this control 
> by the Internet,
> > > but just manually setting this header themselves (via a 
> program or the
> > > like) and then having access directly to the images
> > >
> > > You would then have to update all image referrences on 
> the somepage
> > > servelt/jsp however to something like  > > src="/servlet/imagehandler?gif=somerefernce">.
> > >
> > >
> > >
> > > On Mon, 2003-06-09 at 18:32, Syed Nayyer Kamran wrote:
> > >
> > > > hi there,
> > > >
> > > > I want to restrict the user to access the images 
> directly through the
> >web. They should be able to access these images through web 
> pages developed
> >as jsp/servlet but should not be able to access these images 
> displayed on
> >page by copying the image url to the address bar. Is tomcat 
> directly support
> >this functionality. or any other solution.
> > > >
> > > > Thanks in advance for any solution of the problem.
> > > >
> > > >
> > > > Nayyer Kamran
> > > >
> 
> 
> 
> Justin Ruthenbeck
> Software Engineer, NextEngine Inc.
> justinr - AT - nextengine DOT com
> Confidential
> See http://www.nextengine.com/confidentiality.php
> 
> 
> 
> -
> 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 classpath problem

2003-06-10 Thread Cox, Charlie
unpack your jar to WEB-INF/classes and remove javax/servlet tree. This will
provide you with your classes without the conflicting servlet classes.

Charlie

> -Original Message-
> From: Manav Gupta [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 10, 2003 10:58 AM
> To: Tomcat (E-mail)
> Subject: Tomcat classpath problem
> 
> 
> Apologies for the re-post, but I'm not sure if my messages 
> are reaching the
> list.
> ---
> Hi,
>  
> I'm trying to understand the tomcat class loading mechanism 
> and have read
> through the Class Loader HOW-TO (
> http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-h
> owto.html
>  howto.html> ).
>  
> 
> How does one make additional jars available to tomcat? I 
> understand one can
> add them to WEB-INF/lib,but there are sometimes that approach 
> does not work.
> Here's a scenario:
> I'm using tomcat 4.1.24 with jdk 1.4.1_02. One of the 
> required libraries for
> my web app is oc4j.jar. If I put that oc4j.jar into the 
> WEB-INF/lib, tomcat
> throws the following error on startup:
> =
> Starting service Tomcat-Standalone
> Apache Tomcat/4.1.24
> WebappClassLoader:
> validateJarFile(D:\jakarta-tomcat-4.1.24\bin\..\webapps\graphi
> cs\WEB-INF\lib
> \oc4j.jar) - jar not loaded. See Servlet Spec 2.3, section 
> 9.7.2. Offending
> class: javax/servlet/Servlet.class
> =
> Upon checking, I found oc4j.jar has javax.servlet.Servlet and 
> I suspect it
> does not adhere to Servlet Spec 2.3 (but probably something 
> earlier than
> that). 
>  
> If I do not put oc4j.jar in WEB-INF/lib, I get the following error:
>  
> 2003-06-10 13:28:43 StandardWrapperValve[jsp]: 
> Servlet.service() for servlet
> jsp threw exception
> javax.servlet.ServletException:
> javax.servlet.jsp.tagext.TagInfo.(Ljava/lang/String;Ljav
> a/lang/String;
> Ljava/lang/String;Ljava/lang/String;Ljavax/servlet/jsp/tagext/
> TagLibraryInfo
> ;Ljavax/servlet/jsp/tagext/TagExtraInfo;[Ljavax/servlet/jsp/ta
> gext/TagAttrib
> uteInfo;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;
> [Ljavax/servle
> t/jsp/tagext/TagVariableInfo;)V
>  at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249)
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
>  at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilt
> er(Application
> FilterChain.java:247)
>  at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli
> cationFilterCh
> ain.java:193)
>  at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardW
> rapperValve.ja
> va:256)
>  at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValv
> eContext.invok
> eNext(StandardPipeline.java:643)
>  at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> ine.java:480)
>  at 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>  at
> org.apache.catalina.core.StandardContextValve.invoke(StandardC
> ontextValve.ja
> va:191)
>  at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValv
> eContext.invok
> eNext(StandardPipeline.java:643)
>  at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> ine.java:480)
>  at 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>  at
> org.apache.catalina.core.StandardContext.invoke(StandardContex
> t.java:2415)
>  at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHost
> Valve.java:180
> )
>  at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValv
> eContext.invok
> eNext(StandardPipeline.java:643)
>  at
> org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDi
> spatcherValve.
> java:171)
>  at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValv
> eContext.invok
> eNext(StandardPipeline.java:641)
>  at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport
> Valve.java:172
> )
>  at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValv
> eContext.invok
> eNext(StandardPipeline.java:641)
>  at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> ine.java:480)
>  at 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>  at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEn
> gineValve.java
> :174)
>  at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValv
> eContext.invok
> eNext(StandardPipeline.java:643)
>  at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> ine.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(Http11Process
> or.java:594)
>  at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandle
> r.processConne
> ction(Http11Protocol.java:392)
>  at
> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoi
> nt.java:565)
>  at
> org.apache.tomcat.util.threads.ThreadPool$Co

RE: Realm class, Classloader

2003-06-02 Thread Cox, Charlie
actually it is loaded by tomcat's internal classes, to determine if your
webapp should be called. So the tomcat classes need to be able to see it and
they cannot access classes loaded by the Webapp classloader. Therefore it
belongs in /server/lib as you have seen.

See the classloader doc for more information on classloading in tomcat.
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html

Charlie

> -Original Message-
> From: Oliver Wulff [mailto:[EMAIL PROTECTED]
> Sent: Monday, June 02, 2003 3:23 AM
> To: [EMAIL PROTECTED]
> Subject: Realm class, Classloader
> 
> 
> 
> 
> 
> 
> I'm using Tomcat 4.1.24 and JDK 1.3.1.
> 
> I've created a custom realm which is configured like this:
>   reloadable="true" crossContext="true">
>
> 
> 
> The implementation class "test.RacfRealm" can be found only if it is
> deployed to the server/lib directory.
> 
> If the Realm is configured for the context "sec_test", the 
> class should be
> loaded by the corresponding WebAppClassLoader.
> What do you think?
> 
> 
> 
> 
> 
> 
> *** BITTE BEACHTEN ***
> Diese Nachricht (wie auch allfällige Anhänge dazu) beinhaltet
> möglicherweise vertrauliche oder gesetzlich geschützte Daten oder
> Informationen. Zum Empfang derselben ist (sind) ausschliesslich die
> genannte(n) Person(en) bestimmt. Falls Sie diese Nachricht
> irrtümlicherweise erreicht hat, sind Sie höflich gebeten, diese unter
> Ausschluss jeder Reproduktion zu zerstören und die absendende Person
> umgehend zu benachrichtigen. Vielen Dank für Ihre Hilfe.
> 
> 
> -
> 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: CharConversionException: isHexDigit

2003-05-29 Thread Cox, Charlie
couldn't you set up an error-page that only runs for this exception and then
print out the parameters from that page? Or does the request not get that
far? If not write a valve/responseWrapper that catches response 500 errors
and act upon it.

Alternatively you could create your own RequestDumperValve that could write
only the params to its own logfile as to not fill up your usual logs.

Shouldn't your access log(if you have one) report a 500 response code for
that request? that could give you a time of occurrence and possibly the user
who requested it depending on your setup(since you have a closed
environment).

HTH,
Charlie

> -Original Message-
> From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, May 28, 2003 12:31 PM
> To: Tomcat Users List
> Subject: RE: CharConversionException: isHexDigit
> 
> 
> 
> Howdy,
> 
> >User agents aren't 100% reliable and I think I remember 
> something about
> >Opera identifying itself as IE by default at one stage. Often when
> you're >using an
> >alternative browser you come across a site that insists on 
> using IE so
> you
> >change your user agent so you can use the site but forget to 
> change it
> back
> >afterwards.
> 
> You're right.  I had forgotten about that.  My Opera (7.02 
> for windows)
> indeed identifies itself as IE6 by default.  This is controllable via
> File->Preferences->Network->Browser Identification.
> 
> I'll keep that in mind -- thanks.  I wonder what could possibly cause
> this other than a rare browser...
> 
> Yoav Shapira
> 
> 
> 
> This e-mail, including any attachments, is a confidential 
> business communication, and may contain information that is 
> confidential, proprietary and/or privileged.  This e-mail is 
> intended only for the individual(s) to whom it is addressed, 
> and may not be saved, copied, printed, disclosed or used by 
> anyone else.  If you are not the(an) intended recipient, 
> please immediately delete this e-mail from your computer 
> system and notify the sender.  Thank you.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

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



RE: tomcat 4.1.18 NT service

2003-04-01 Thread Cox, Charlie
I had this same prob on 4.0.x and the bug I had opened was labelled as a
'worksforme' since they could not reproduce it(bug 4524). It happened on a
clean install of win2k that only had office 2k I think. I think it was a
problem with the JavaService that was used with tomcat since tomcat worked
fine through the tomcat.bat file.

I ended up using the old jk_nt_service.exe(which I still use,btw) by
following the directions here:
http://www.mail-archive.com/[EMAIL PROTECTED]/msg35196.html
(replace references to 3.2 with 3.3)

Charlie

> -Original Message-
> From: Andrew Garnett [mailto:[EMAIL PROTECTED]
> Sent: Saturday, March 29, 2003 8:00 AM
> To: [EMAIL PROTECTED]
> Subject: Re: tomcat 4.1.18 NT service
> 
> 
> Yes Larry, that's the weird thing - everything looks
> fine until the hang, then the Iexplorer globe just
> keeps rotating. No response, no timeout, nothing in
> the log, it just goes on... I'll try to leave it
> overnight to see if it eventually returns.
> The worst part is that it does actually work for a
> brief few minutes, so the config can't be that bad.
> 
> meantime, I've installed on another NT4 box, and got
> exactly the same. I got the .exe from the apache site,
> so I'm hoping someone else has seen it.
> 
> Any ideas gladly accepted...
> Andy 
> =  "Larry Meadors"  com>
> 
> 
> Did you look in the logs?
> 
> >>> [EMAIL PROTECTED] 03/28/03 10:14 AM >>>
> All,
> The tomcat-4.1.18.exe installs perfectly as a service
> on my NT 4 box, starts up tomcat service happily, and
> immediately responds on port 8080 with the example
> servlets.
> Then within a minute or two, it stops responding
> completely - just hangs with no output anywhere.
> 
> If I startup using the bat files in DOS, everything
> runs fine.
> Any ideas ?
> Thanks,
> Andy
> 
> 
> 
> __
> Yahoo! Plus
> For a better Internet experience
> http://www.yahoo.co.uk/btoffer
> 
> -
> 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: Servlet init() versus doPost() Classloading???

2003-03-25 Thread Cox, Charlie
you can have 2 instances if you have multiple  definitions in
web.xml. you can calso have 2 instances if you have a  in your
server.xml and it is autoreloading your context(or you have 2 
entries with the same docbase). 

it sounds like the latter, where you have 2 instances of your context and
they would be loaded in separate classloaders. Singletons are only unique to
a classloader, so if you have it in /WEB-INF/lib(or classes), then it will
be loaded again each time a copy of your context is loaded. You could move
your singleton to /common/lib or adjust server.xml to load your context
once.

Charlie

> -Original Message-
> From: Justin Ruthenbeck [mailto:[EMAIL PROTECTED]
> Sent: Monday, March 24, 2003 9:02 PM
> To: Tomcat Users List
> Subject: Re: Servlet init() versus doPost() Classloading???
> 
> 
> 
> Rahul --
> 
> Yeah, you're right.  The problem, though, is that he's seeing 
> two instances 
> start when a servlet's init() method is called.  This means 
> the singleton 
> doesn't have the "mechanism to track the daemon state (running, 
> notStarted)" in place.
> 
> We agree.  My point was just that moving the code that calls into the 
> singleton from the init() method to the doPost() won't fix 
> anything.  If 
> the singleton is broken, he'll have the same problem if he 
> hits the URL 
> twice.  The problem lies in the singleton object.
> 
> justin
> 
> 
> At 05:27 PM 3/24/2003, you wrote:
> >Hi Justin,
> >
> >Since the daemon is a singleton i think... hitting the 
> same URL twice
> >shouldn't be a problem if mechanism to track the daemon 
> state (running,
> >notStarted ) is in place.
> >
> >The problem as you said might be in the configuration.
> >
> >Cheers,
> >
> >Rahul
> >
> >
> >- Original Message -
> >From: "Justin Ruthenbeck" <[EMAIL PROTECTED]>
> >To: "Tomcat Users List" <[EMAIL PROTECTED]>
> >Sent: Tuesday, March 25, 2003 12:43 PM
> >Subject: Re: Servlet init() versus doPost() Classloading???
> >
> >
> > > Hi Micael,
> > >
> > > Seems you're sidestepping the real problem by trying to 
> initialize with a
> > > doPost call ... the init() method is, afterall, meant for such
> > > initialization.  ;)  Won't you have the same problem is 
> you hit the URL
> > > twice?
> > >
> > > If there are two copies of your deamon thread starting, 
> then the problem
> >is
> > > in the code that starts them and can be changed to get the desired
> > > behavior.  Before going into thoughts on that, is there 
> anything non-basic
> > > about your setup that would complicate the problem (such 
> as clustered
> > > Tomcats, multiple JVMs, or other code that can start this daemon)?
> > >
> > > My apologies if you're absolutely sure you want to do this from a
> > > doPost().  (?!)
> > >
> > > justin
> 
> 
> 
> Justin Ruthenbeck
> Software Engineer, NextEngine Inc.
> justinr - AT - nextengine DOT com
> Confidential
> See http://www.nextengine.com/confidentiality.php
> 
> 
> 
> -
> 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: Loading dll for servlets

2003-03-14 Thread Cox, Charlie
you can also put it in /common/lib(or /common/classes). This will also load
only on tomcat startup. 

It is correct that you do not want it in your web app since a library can
only be loaded once. So if you reload your webapp(using manager) it becomes
unavailable since the classloader that loaded it is no longer valid and you
can't load it again until you restart tomcat because it was already loaded
by another classloader.

Charlie

> -Original Message-
> From: Scott, Sean [mailto:[EMAIL PROTECTED]
> Sent: Friday, March 14, 2003 11:49 AM
> To: 'Tomcat Users List'
> Subject: RE: Loading dll for servlets
> 
> 
> In my experience, I have needed to load the class that loads 
> the shared
> library into the bootstrap classloader. This was with 
> jdk1.3.1. I seem to
> recall that the shared library can be loaded only 1 time by 
> the JVM, if the
> class that loads the shared library exists in a webapp it 
> will try to load
> the DLL everytime the App is deployed, which will result in errors.
> 
> -sean
> 
> 
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Friday, March 14, 2003 9:00 AM
> To: Tomcat Users List
> Subject: Re: Loading dll for servlets
> 
> 
> 
> I'm currently working on an app that requires access to some 
> system DLLs.
> Not having done anyting like this before, I'm looking form 
> some advice.  Do
> I keep the DLL in with my webapp, or does it have to go somewhere in
> Tomcat's directory structure?  Any help would be greatly appreciated.
> 
> Thanks,
>Jamie
> 
> 
> 
> 
> Bjoern Abt <[EMAIL PROTECTED]> on 03/14/2003 04:22:34 AM
> 
> Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>
> 
> To:[EMAIL PROTECTED]
> cc:
> Subject:Loading dll for servlets
> 
> 
> Hello List,
> 
> Background:
> I am extending an existing application to the web. The 
> existing application
> is written in cobol and compiled to a *.dll on a 
> Windows2000-System. I can
> load the dll and go the specific entrypoints, so the existing 
> logic doesn't
> have to be rewritten.
> 
> My Question:
> Is it possible to load an dll into the Tomact-Server, so that 
> its functions
> are always accessible to my servlets? I have a terrible 
> overhead in loading
> and unloading the dll in every servlet that is accessed. Or 
> does anyone
> know
> another way to do it?
> 
> Thanks in Advance
> 
> Bjoern Abt
> 
> http://www.inode.ch
> 
> -
> 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: Browser showing the directory structure

2003-03-14 Thread Cox, Charlie
in conf/web.xml set "listings" to false

Charlie

> -Original Message-
> From: Sudhir Kumar [mailto:[EMAIL PROTECTED]
> Sent: Thursday, March 13, 2003 11:27 PM
> To: 'Tomcat Users List'
> Subject: Browser showing the directory structure
> 
> 
> 
>   Hello,
>   When i open my jsp application in Netscape 
> browser on a Unix machine, it
> is displaying the entire directory structure. How can i avoid 
> this ? Do i
> have to do any configuration in server.xml ? please help ..
> 
> thanks and regards
> sudhir
> 
> 
> -
> 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 won't start (was: RE: resolving version of Tomcat)

2003-03-13 Thread Cox, Charlie
write.lock is part of lucene, not tomcat. If you are sure that nothing is
using the index when when tomcat is shut down, you can delete this file and
that should resolve your problem. 

Charlie

> -Original Message-
> From: jeepee3 [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 12, 2003 1:45 PM
> To: Tomcat Users List
> Subject: Re: resolving version of Tomcat
> 
> 
> Hi,
> 
> I have this file "write.lock" in my "Lutece Web application" 
> that's running by
> Tomcat and this cause me a problem when I startup.bat my 
> Tomcat. Here is the
> part of the DOS screen that imform me about this problem. 
> (Sorry for my english
> I need more practice, but this is an other problem :) :
> ...
> [INFO] JkMain - -Jk running ID=0 time=0/110
> config=C:\Program Files\Apache 
> Group\Tomcat41\bin\..\conf\jk2.properties
> java.io.IOException: Index locked for write : Lock@
> C :\Program Files\Apache 
> Group\Tomcat41\webapps\lutece\WEB-INF\index\write.lock
> at org.apache.lucene.index.IndexWriter.(Unknown Source)
> at org.apache.lucene.index.IndexWriter.(Unknown Source)
> 
> I think this problem is due to a bab config on mod_jk2 or 
> jk2.properties or
> something like that ?
> I search the Tomcat User List Archive and I really don't no 
> where to start to
> resolve this problem ?
> Do I have to remove this file (write.lock) from my PC ?
> 
> Thanks for your help !
> 
> JPK
> 
> 
> 
> -
> 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]



  1   2   3   4   5   >