Re: RemoteHostValve for infinite domains? & Patch submit question...

2010-04-01 Thread Dean Hiller
yes, interesting, unfortunately, I am running our QA and customer demo
machine behind comcast at home so there is only one ip, though it would work
for our production environment.
Dean

On Thu, Apr 1, 2010 at 10:56 AM, Hassan Schroeder <
hassan.schroe...@gmail.com> wrote:

> On Thu, Apr 1, 2010 at 9:45 AM, Dean Hiller  wrote:
>
> > I like the ip idea(except for needing two tomcats).
>
> You don't need 2 tomcats; a connector can be told to listen on a
> specific IP...
>
> > Two services in tomcat doesn't work as then we would need different ports
> > which is definintely not something we want.
>
> .. in which case you don't need non-standard ports, either.
>
> --
> Hassan Schroeder  hassan.schroe...@gmail.com
> twitter: @hassan
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


Re: RemoteHostValve for infinite domains? & Patch submit question...

2010-04-01 Thread Dean Hiller
yes, I have thought through all those actually.  Was just talking about
urlrewrite filter and apache this morning.  Issue with that then is having
to keep their company name in a param of every single redirect seam does
which is not the easiest of things to dothat way, company could be put
in front .domain.com.

I like the ip idea(except for needing two tomcats).

Two services in tomcat doesn't work as then we would need different ports
which is definintely not something we want.

I decided I am going to go the route of finding that Host matching code
which probably looks up in a map of domain to Host object to route request
to the Host/Engine(*which file is that in so I can jump to it?*), and just
loop through it instead with endsWith.  *hmmm, too bad there is not a
pluggable component to Service or something or whoever owns the lookup like
in server.xml lookupClass="com.alvazan.tomcat.LookupHost" or something*?  I
could certainly provide a patch so people could plug into tomcat what they
like based on performance considerations...ie. endsWith loop is not the best
if you have 400 domains on one tomcat.

Dean

On Thu, Apr 1, 2010 at 9:31 AM, André Warnier  wrote:

> Dean Hiller wrote:
> ...
>
>
>
>> I need "two"one for requests .domain1.com and one for
>> .domain2.com where  is infinite combination.
>>
>>  I think that you are right.  Based on the little I know about Java and
> Tomcat and RequestDispatcher, I would suggest a range of possible solutions,
> in my personal order of preference :
>
> 1) have a look at the urlrewrite filter at www.tuckey.org.
> It may be able to do what you want.
>
> 2) use an Apache httpd with mod_rewrite and mod_proxy (or mod_jk) in front
> of Tomcat, as a proxy server listening on the IP address to which your
> hostnames resolve and port 80.
> Set up Tomcat to listen on another port (e.g.8080), and configure it with
> one default Host (localhost), and two additional Hosts (www.domain1.comand
> www.domain2.com).
> Use Apache's mod_rewrite to rewrite and proxy the calls to one or the other
> Tomcat Host(name), on the base of the domain ending of the original request.
>
> 3) get two different IP addresses for your server, and start 2 Tomcat
> instances, each one listening on one of these adresses.
> Each one would then have a default host, which will answer on all names
> which resolve to that IP.
> (Of course then you also need to split your two domains DNS-wise)
>
> There are different variations mixing and matching the above bits and
> pieces.
>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


Re: RemoteHostValve for infinite domains? & Patch submit question...

2010-04-01 Thread Dean Hiller
hmmm, I don't think Engine worksaccording to

http://tomcat.apache.org/tomcat-5.5-doc/config/engine.html
"Exactly one *Engine* element MUST be nested inside a
Service<http://tomcat.apache.org/tomcat-5.5-doc/config/service.html>element"

I need "two"one for requests .domain1.com and one for
.domain2.com where  is infinite combination.

PATCH submission: I am not interested in regular expression matching and I
have seen many posts on users trying to do .domain.com, so is
serverName.endsWith(domainName) that much of a performance hit?  This patch
would be great for many applications that just set up wildcard DNS so all
subdomains point to the tomcat ip like basecamp or other products.  Right
now, the problem is we have two apps with two different domains each with
infinite subdomains.

thanks,
Dean


On Thu, Apr 1, 2010 at 8:37 AM, Dean Hiller  wrote:

> So, xxx.dev.premonitionx.com will go be routed to
>
> 
> I will give that a try tonight then.  If it doesn't, I guess I would have
> to write a patch.  I need this feature to badly to be able to do
> .premonitionx.com for any companies that register.
>
> thanks!!!
> Dean
>
>
> On Thu, Apr 1, 2010 at 7:52 AM, Pid  wrote:
>
>> On 01/04/2010 06:53, Dean Hiller wrote:
>>
>>> I added this(I want it to use my requirements.war file for any requests
>>> to
>>> .dev.premonitionx.com where  is infinite combinations all of
>>> which
>>> point to one single ip of course.  I have another Host for
>>> .demo.premonitionx.com as well with infinite combinations again.
>>>
>>> This does not seem to be working though...
>>>
>>>   >> unpackWARs="true" autoDeploy="true"
>>> xmlValidation="false" xmlNamespaceAware="false">
>>> >>allow=".*\.dev\.premonitionx\.com"/>
>>>   
>>>
>>> Do I have this wrong?  How do I get this to work?  Does the name need to
>>> match the allow or something?
>>>
>>
>> Remove the valve and set:
>>
>>  >
>> All requests to unknown hosts will be directed to that Host.
>>
>>
>> p
>>
>
>


Re: RemoteHostValve for infinite domains?

2010-04-01 Thread Dean Hiller
So, xxx.dev.premonitionx.com will go be routed to

.premonitionx.com for any companies that register.

thanks!!!
Dean

On Thu, Apr 1, 2010 at 7:52 AM, Pid  wrote:

> On 01/04/2010 06:53, Dean Hiller wrote:
>
>> I added this(I want it to use my requirements.war file for any requests to
>> .dev.premonitionx.com where  is infinite combinations all of
>> which
>> point to one single ip of course.  I have another Host for
>> .demo.premonitionx.com as well with infinite combinations again.
>>
>> This does not seem to be working though...
>>
>>   > unpackWARs="true" autoDeploy="true"
>> xmlValidation="false" xmlNamespaceAware="false">
>> >allow=".*\.dev\.premonitionx\.com"/>
>>   
>>
>> Do I have this wrong?  How do I get this to work?  Does the name need to
>> match the allow or something?
>>
>
> Remove the valve and set:
>
>  
> All requests to unknown hosts will be directed to that Host.
>
>
> p
>


RemoteHostValve for infinite domains?

2010-03-31 Thread Dean Hiller
I added this(I want it to use my requirements.war file for any requests to
.dev.premonitionx.com where  is infinite combinations all of which
point to one single ip of course.  I have another Host for
.demo.premonitionx.com as well with infinite combinations again.

This does not seem to be working though...

  

  

Do I have this wrong?  How do I get this to work?  Does the name need to
match the allow or something?

thanks,
Dean


starting tomcat from ant not working

2009-11-01 Thread Dean Hiller
I have tried from ant and programmed up a main class to start tomcat via
"catalina.bat start" and tried "catalina.bat start" from ant as well.
Lastly, I finally tried directly running the exact command that catalina.bat
start tries to run and then ended up with classnotfound which makes no sense
since I thought the bootstrap class is supposed to put that
together.(any ideas?)

 [echo] os=Windows Vista
 [java] Executing 'C:\AAROOT\Java\jdk1.6.0_16\jre\bin\java.exe' with
arguments:
 [java] '-classpath'
 [java] 'D:\workarea\tomcat\bin\bootstrap.jar;D:\workarea\tomcat\bin'
 [java] 'org.apache.catalina.startup.Bootstrap'
 [java]
'-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager'
 [java]
'-Djava.util.logging.config.file=d:\workarea\tomcat/conf/logging.properties'
 [java] '-Djava.endorsed.dirs=d:\workarea\tomcat/endorsed'
 [java] '-Dcatalina.base=d:\workarea\tomcat'
 [java] '-Dcatalina.home=d:\workarea\tomcat'
 [java] '-Djava.io.tmpdir=d:\workarea\tomcat/temp'
 [java] 'start'
 [java]
 [java] The ' characters around the executable and arguments are
 [java] not part of the command.
 [java] java.lang.ClassNotFoundException:
org.apache.catalina.startup.Catalina
 [java] at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
 [java] at java.security.AccessController.doPrivileged(Native
Method)
 [java] at
java.net.URLClassLoader.findClass(URLClassLoader.java:188)
 [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
 [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
 [java] at
org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:215)
 [java] at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:390)
[sleep] sleeping for 6 milliseconds


Re: how to configure multiple urls with app not starting twice

2009-11-01 Thread Dean Hiller
actually, I am using 6.0.16google yielded me that docs from searching
the web.  Anyway to maintain the war file name so we can tell what war file
is what?
thanks,
Dean

On Sun, Nov 1, 2009 at 9:46 AM, Hassan Schroeder  wrote:

> On Sun, Nov 1, 2009 at 9:32 AM, Dean Hiller  wrote:
>
> > http://tomcat.apache.org/tomcat-4.1-doc/html-manager-howto.html
>
> Why such an ancient version of Tomcat?
>
> > ALSO, I want my files to be saasmain.war, timecard.war, not ROOT.war
> > as well.  I could cheat and do the ROOT.war path
>
> Why do you think "doing things the conventional way" is "cheating"??
>
> --
> Hassan Schroeder  hassan.schroe...@gmail.com
> twitter: @hassan
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


how to configure multiple urls with app not starting twice

2009-11-01 Thread Dean Hiller
I have been going off this documentation...

http://tomcat.apache.org/tomcat-4.1-doc/html-manager-howto.html

which is a bit confusing.  I really want to do something like this...

  



but the doc says path HAS to be saasmain.  Doc also says docBase can't be
inside appBase which is why I do the ../apps.  I want to do 3 different
domains each being at the root of tomcat, but I seem to keep getting it
wrong.  ALSO, I want my files to be saasmain.war, timecard.war, not ROOT.war
as well.  I could cheat and do the ROOT.war path but I would rather not do
that and figure out how this all works.

I do have another config that does work with 3 urls and app names BUT it
boots the apps twice every time because docBase is inside appBase according
to the docs.
thanks,
Dean


intercept and redirect to war file of my choosing(based on URL)

2006-06-26 Thread Dean Hiller

I have a url of this format http:

Where no matter what  is equal to, I would like to be able to
direct the to tomcat/webapps/.war servlet.  I have been trying
to do this with a valve on the engine hoping I could modify the request URL
before the tomcat engine decided which war  file would service the request.
Is this even possible?  I tried this with a generic filter and a forward but
that failed and tomcat said http://machine/ resource does not
exist when using the above url.  If I use http:///, it
works fine and the resource exists when using a filter I deployed to
common/lib.

Below is the code I tried to use for that valve(since I could not get the
filter to work) in the engine to modify the request so that the url would be
http:/// and I was planning on sticking  in
as a request attribute or something so the war file could access it.  Any
ideas?

thanks,
dean

   public void invoke(Request req, Response resp) throws IOException,
ServletException {

   log.info("testing testingzt");
   System.out.println("req1="+req.getContextPath());
   System.out.println("req2="+req.getDecodedRequestURI());
   System.out.println("req3="+req.getPathInfo());
   System.out.println("req4="+req.getPathTranslated());
   System.out.println("req5="+req.getRequestURI());
   System.out.println("req6="+req.getRequestURL());
   System.out.println("req7="+req.getServletPath());

   modifyRequest(req);

   nextValve.invoke(req, resp);
   }

   private void modifyRequest(Request req) {
   String uri = req.getRequestURI();
   int first = uri.indexOf("/");
   int second = uri.lastIndexOf("/");

   if(second > 0) {
   String company = uri.substring(first+1);
   company = company.substring(0, second-1);

   System.out.println("company="+company);
   if("company".equals(company)) {
   uri = uri.substring(second);
   System.out.println("setting uri to="+uri);
   log.info("modifying uri="+uri);
   req.setRequestURI(uri);
   req.setServletPath(uri);
   }
   }
   }


one filter for all webapps?

2006-06-23 Thread Dean Hiller

Is there any way to install a ServletFilter that is run before all
webapps(including the default servlet as well)?

thanks,
dean


war filename in url. I want this to be different

2006-06-22 Thread Dean Hiller

I am trying to make a hosted service(with a few small apps) that companies
can purchase.  I want the default tomcat app(my app as I took default over)
to be run when a url like this is used

http://xsoftware.biz/

and I want the req.war app to be run when this url is used

http://xsoftware.biz//req

I basically want to store the companyName in the request so the app knows
which company is being accessed, but want the correct web app to be executed
as well.  How can I do this?  Any good documentation on this?

I don't want a war file per companyName obviously, but it is like I want to
change out the default tomcat behavior where normally that would be mapped
to the war file name.  Is this even possible?

thanks,
dean


Re: replace tomcat Status report

2006-06-14 Thread Dean Hiller
I guess I should add that my partner did add this stuff to our 
ROOT.war(we deleted the ROOT directory) but it doesn't seem to work...


   
   java.lang.Throwable
   /error.jspx
   
   
   500
   /error.jspx
   
   
   404
   /error.jspx
   

thanks,
dean

Dean Hiller wrote:

I finally gave up in searching for this(and my partner is soon to give 
up to) so I decided to ask here.


When I go to http://localhost:8080/NoPage.jsf, tomcat tells me the 
tomcat version and everything so I can google for tomcat hacks on that 
version.  I would much prefer to hide the version number with my own 
"Resource not found" page.  Is this possible?


for exceptions my app runs into, I am just using a filter to redirect 
to a page that doesn't show a tomcat version too.


thanks for any info,
dean


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



replace tomcat Status report

2006-06-14 Thread Dean Hiller
I finally gave up in searching for this(and my partner is soon to give 
up to) so I decided to ask here.


When I go to http://localhost:8080/NoPage.jsf, tomcat tells me the 
tomcat version and everything so I can google for tomcat hacks on that 
version.  I would much prefer to hide the version number with my own 
"Resource not found" page.  Is this possible?


for exceptions my app runs into, I am just using a filter to redirect to 
a page that doesn't show a tomcat version too.


thanks for any info,
dean


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: The problem i have met

2006-03-31 Thread Dean Hiller
hard to do when the only error in the logs is was two words.  not much 
to google on. 
dean


Steve Ochani wrote:


On 31 Mar 2006 at 19:34, Jay wrote:

 

I am pretty new to tomcat.  I recently read a post  
http://marc.theaimsgroup.com/?l=tomcat-user&m=114372017420869&w=2

which solved a problem I have been having for tomcat 5.5 also.  I
thank that person for posting the solution.  I also read some of the
responses from what appear to be the tomcat developers and was very
dissappointed.  I also think that is a usability problem for newbs. 
like tomcat team wants tomcat to only be usable for advanced users to

me.  This frankly dissapoints me.
   



I disagree. 
I don't know too many software products and their developers that help out regularly on 
their support forums and e-mail lists.


Personally speaking (writing), as a developer (not for tomcat) and systems admin I notice 
that most new people do not try to help themselves first. They don't bother to read any 
documentation/instructions or hardly any at all and they don't bother to use a search 
engine as google. On top of that a lot of these people, when they post questions, they do 
not contain enough clear information for other people to help them.



-Steve O.








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



thanks very much Filip

2006-03-31 Thread Dean Hiller
BTW, I was pretty much stuck until you responded to my post like alot of 
the others I have seen with a similar post and no answer.  If you had 
not responded, I would probably still be stuck and still googling, 
reading, trying to solve it.  I really really appreciate your help.  I 
could not find anything through google, or tomcat docs based on the info 
I had from tomcat logs.  I was utterly lost until you prodded me(and 
that gave me some ideas).

thanks,
dean

Filip Hanik - Dev Lists wrote:

ok, that was fairly easy, the error gets logged to the 
/logs/localhost.2006-03-29.log" this is on the default 
install, no loggers modified


so are you still having a problem?

Mar 29, 2006 9:12:47 AM org.apache.catalina.core.ApplicationContext log
INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: 
[org.apache.webapp.balancer.RuleChain: 
[org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: 
News / Redirect URL: http://www.cnn.com], 
[org.apache.webapp.balancer.rules.RequestParameterRule: Target param 
name: paramName / Target param value: paramValue / Redirect URL: 
http://www.yahoo.com], 
[org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: 
http://jakarta.apache.org]]

Mar 29, 2006 9:12:47 AM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Mar 29, 2006 9:12:47 AM org.apache.catalina.core.StandardContext 
listenerStart
SEVERE: Exception sending context initialized event to listener 
instance of class listeners.ContextListener

java.lang.RuntimeException: sdadasda
   at 
listeners.ContextListener.contextInitialized(ContextListener.java:114)
   at 
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3729) 

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

   at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
   at 
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
   at 
org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:904) 

   at 
org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:867) 

   at 
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:474)
   at 
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122)
   at 
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310) 

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

   at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)
   at 
org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
   at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
   at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
   at 
org.apache.catalina.core.StandardService.start(StandardService.java:450)
   at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:709)

   at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 

   at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 


   at java.lang.reflect.Method.invoke(Method.java:585)
   at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Mar 29, 2006 9:12:47 AM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Mar 29, 2006 9:12:47 AM org.apache.catalina.core.ApplicationContext log


Dean Hiller wrote:

thanks for the link.  I need that too.  Regardless of logging 
thought, quickly add this to any serlvetlistener


public void contextInitialized(ServletContextEvent evt) {
  throw new RuntimeException("asdfsf");
}

Run it, and enjoy not being able to know what the heck went wrong 
with your app like I have seen many have done on the posts already.  
ie. Tomcat used to log the stack trace, but in 5.5 does not, and that 
should be high enough warning level that config of logs don't matter.


Making the problem even harder.
On a second note, I have fooled around with logging and it works fine 
in my app, and I could configure it and such(with 5.5) and my 
logging.properties file in WEB-INF.  I could never get my 
servletlistener to log any statements(making the problem doubly hard).

thanks,
dean






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




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

Re: The problem i have met

2006-03-31 Thread Dean Hiller
this problem didn't have much to do with having servlet knowledge so I 
am confused here.  It had to do with setting up logging for servlets 
which AFAIK, they don't teach in a servlet tutorial, so if you knew 
servlets, it was not enough :( just as in my case.

dean

David Delbecq wrote:


Jay a écrit :

 

I am pretty new to tomcat.  I recently read a post 
http://marc.theaimsgroup.com/?l=tomcat-user&m=114372017420869&w=2

which solved a problem I have been having for tomcat 5.5 also.  I
thank that person for posting the solution.  I also read some of the
responses from what appear to be the tomcat developers and was very
dissappointed.  I also think that is a usability problem for newbs. 
like tomcat team wants tomcat to only be usable for advanced users to

me.  This frankly dissapoints me.


   


I think tomcat doc just aims at people having minimum knowledges
background in java, servlet, j2ee specs. Teaching this background
knowledge is in no point the purpose of tomcat docs. Thought the docs is
not always complete, it generally provide enough information to do what
you need to do, once again assuming you have that background knowledge.

 


-
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 5.0 vs. 5.5? tomcat 5.5 has been bad!

2006-03-31 Thread Dean Hiller
Those things I didyou can read my previous posts.  warning though: 
newbs have a hard time doing this, so go easy on us.  I had no idea what 
to include from the beginning.  I had to search my way through it.

thanks,
dean

David Smith wrote:


Too true Tim.  I've been on this list since the tomcat 3 days and it
never fails to impress me how many questions fall into one of three
categories:

1) Questions easily answerable by reading the docs.  These are the RTFM
questions.
2) Repeats of previously posted and answered questions.  These are the
"Search the Fantastic Web" (STFW) questions.
3) Questions so devoid of any useful information they are completely
unanswerable.  The "it doesn't work, please help" questions.

Don't get me wrong -- there are some excellent questions with even
better answers.  I stay on the list for those gems.

For those out there who are thinking about asking questions, here's my
advice:

1) Define you problem.  The more detail you gather, the better for both
yourself and those that help.  Specifically take a look at the logs and
consider the demands your webapp is making on the server.

2) If you are designing a webapp or library, insert effective logging
from the beginning.  With both commons-logging and log4j, the log level
and classes being logged can be controlled from their respective
configuration files.  The logging can be left in for production, just
reconfigure for error level logging and the debug stuff won't show.

3) Do a couple of searches on your favorite search engine even if all
you get out of it is the proper terms to describe your issue.  In the
process you may also find similar posts to shed some light on your problem.

4) Take a look the online docs for the product you are using.  Tomcat
leverages a fair number of other projects and standards.  Those docs may
also apply to your problem.  For instance in this thread,
Commons-Logging and Log4j project docs would help.

5) Don't be shy about posting a long email.  The important things are to
be specific, show relevant code and complete log info.  You may have
been staring at your problem for two weeks -- we haven't and need the
info to help.

--David

Tim Lucia wrote:

 


Switch places with them for a minute -- They are providing free support and
pretty good support at that.  Note that there are many, many basic questions
that could easily be answered by reading the documentation ("RTFM") or by
Googling ("STFW"), but instead posters demand immediate help as their
homework is due in 20 minutes, or their boss is sitting in the chair behind
them.  Now take a potshot at the most useful, widely used, and COMPLETELY
FREE application server, which you paid nothing for, have no support
contract for (again, you paid nothing), and occasionally someone is bound to
take it a little personally.  I have (casually) observed that the level of
'snippetyness' from the responder is inversely proportional to the quality
of the question.

On the subject of log4j.jar without log4j.properties, don't get mad at
Tomcat / Tomcat developers.  Get mad at the idiot developers who shipped a
war file without a) knowing how to perform logging and b) performing basic
testing. 


I help out when I can.  If I'm not sure, but have a minute, *I* will often
STFW and/or RTFM to make sure.  If I can do it, then so can you (the royal
you) and you didn't have to post.  Ask intelligent questions, and you will
get intelligent answers.  Show an unwillingness to learn anything, and you
will get snubbed.

Tim

-Original Message-
From: Allistair Crossley [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 31, 2006 6:39 AM

To: Tomcat Users List
Subject: RE: tomcat 5.0 vs. 5.5? tomcat 5.5 has been bad!

Please don't think it's the whole Tomcat community Dean, there are some
really helpful devs on Tomat, it's just Remy in particular has a problem
being polite/arrogant about Tomcat - I guess from his privileged point of
view he understands everything about Tomcat and therefore does not
understand what usability is all about.

All the best, AC.

-Original Message-
From: Dean Hiller [mailto:[EMAIL PROTECTED] 
Sent: 31 March 2006 11:39

To: Tomcat Users List
Subject: Re: tomcat 5.0 vs. 5.5? tomcat 5.5 has been bad!

  wow! you guys sound pretty harsh when it comes to messages to help users
on simple mistakes then.  I recently dropped in someone else's example app
war file that had the SAME PROBLEM.latest facelets.  I could not even
give back information to help them debug the problem.  It was standard
tomcat 5.5.16.  It worked on 5.0 just fine.  I now know that I need to unzip
their war file, remove log4j(and maybe even hope that they are using
commons, because if they are not, I may be utterly screwed).  Then I need to
redeploy their app.  I need to do all this because tomcat is unwilling to
give good helpful messages as to wha

Re: tomcat 5.0 vs. 5.5? tomcat 5.5 has been bad!

2006-03-31 Thread Dean Hiller
I was never mad.  sorry to give you that impression.  I may have not 
come across the right way in my first few posts, but I was just trying 
to suggest a usability improvement.


   I support 4 open source projects myself.  I googled the hell out of 
that question without finding an answer starting with what I was given 
by tomcat.  it wasn't much.  The only reason I probably got through it 
was persistence which most newbs I know give up.  I expect users of my 
open source projects to poke me once in a while with usability 
suggestions, and that is all I was doing on this list.  Sorry to imply I 
was mad(I wasn't), just surprised at the reaction to a suggestion that 
would help people who ran into the same situation.though hopefully 
those users will find my solution postthough that could be a needle 
in a haystack :).

thanks,
dean

Tim Lucia wrote:


Switch places with them for a minute -- They are providing free support and
pretty good support at that.  Note that there are many, many basic questions
that could easily be answered by reading the documentation ("RTFM") or by
Googling ("STFW"), but instead posters demand immediate help as their
homework is due in 20 minutes, or their boss is sitting in the chair behind
them.  Now take a potshot at the most useful, widely used, and COMPLETELY
FREE application server, which you paid nothing for, have no support
contract for (again, you paid nothing), and occasionally someone is bound to
take it a little personally.  I have (casually) observed that the level of
'snippetyness' from the responder is inversely proportional to the quality
of the question.

On the subject of log4j.jar without log4j.properties, don't get mad at
Tomcat / Tomcat developers.  Get mad at the idiot developers who shipped a
war file without a) knowing how to perform logging and b) performing basic
testing. 


I help out when I can.  If I'm not sure, but have a minute, *I* will often
STFW and/or RTFM to make sure.  If I can do it, then so can you (the royal
you) and you didn't have to post.  Ask intelligent questions, and you will
get intelligent answers.  Show an unwillingness to learn anything, and you
will get snubbed.

Tim

-Original Message-
From: Allistair Crossley [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 31, 2006 6:39 AM

To: Tomcat Users List
Subject: RE: tomcat 5.0 vs. 5.5? tomcat 5.5 has been bad!

Please don't think it's the whole Tomcat community Dean, there are some
really helpful devs on Tomat, it's just Remy in particular has a problem
being polite/arrogant about Tomcat - I guess from his privileged point of
view he understands everything about Tomcat and therefore does not
understand what usability is all about.

All the best, AC.

-Original Message-
From: Dean Hiller [mailto:[EMAIL PROTECTED] 
Sent: 31 March 2006 11:39

To: Tomcat Users List
Subject: Re: tomcat 5.0 vs. 5.5? tomcat 5.5 has been bad!

   wow! you guys sound pretty harsh when it comes to messages to help users
on simple mistakes then.  I recently dropped in someone else's example app
war file that had the SAME PROBLEM.latest facelets.  I could not even
give back information to help them debug the problem.  It was standard
tomcat 5.5.16.  It worked on 5.0 just fine.  I now know that I need to unzip
their war file, remove log4j(and maybe even hope that they are using
commons, because if they are not, I may be utterly screwed).  Then I need to
redeploy their app.  I need to do all this because tomcat is unwilling to
give good helpful messages as to what is going on(as seen by all the other
posts that have had trouble figuring out their problems behind that error
with no reponses either.I was the lucky one and finally figured out what
was wrong).  I can only hope others can find my solution post without
wasting too much time.
later,
dean



Remy Maucherat wrote:

 


On 3/30/06, Markus Schönhaber <[EMAIL PROTECTED]> wrote:


   


The RuntimeException is to make it more noticeable in the logs.   I mean
953 hits on googling is quite alot of people having trouble.  Would 
be nice to cut that number down with an easy log statement that 
tomcat could add!!!


   


Well, if it's really that easy you should definitely provide a patch.
  

 

I recommend not wasting time, as I would refuse such a nonsensical 
patch. The actual worakround is to learn how to properly use logging, 
which seems to be a useful skill.


--
x
Rémy Maucherat
Developer & Consultant
JBoss Inc
x

-
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 5.0 vs. 5.5? tomcat 5.5 has been bad!

2006-03-31 Thread Dean Hiller
my problem is solved.  I was just trying to poke tomcat team in hopes 
that could put something in to help the next newb. 
later, I think I am jumping off the list nowjust too much email on 
this list,

dean

Markus Schönhaber wrote:


Dean Hiller wrote:
 


   wow! you guys sound pretty harsh when it comes to messages to help
users on simple mistakes then.  I recently dropped in someone else's
example app war file that had the SAME PROBLEM.latest facelets.  I
could not even give back information to help them debug the problem.  It
was standard tomcat 5.5.16.  It worked on 5.0 just fine.  I now know
that I need to unzip their war file, remove log4j(and maybe even hope
that they are using commons, because if they are not, I may be utterly
screwed).  Then I need to redeploy their app.  I need to do all this
because tomcat is unwilling to give good helpful messages as to what is
going on(as seen by all the other posts that have had trouble figuring
out their problems behind that error with no reponses either.I was
the lucky one and finally figured out what was wrong).  I can only hope
others can find my solution post without wasting too much time.
   



I don't see too much harshness here. And my proposal to provide a patch wasn't 
meant really serious either since I strongly doubt it will be as easy as you 
seem to think.
Also, Rémy calling such a patch - if there was one - "nonsensical" seems quite 
understandable to me since trying to work around anything a user can do to 
b0rk his webapp would bloat Tomcat's source code beyond all borders.
OTOH if there are really so many people b0rking their webapps this particular 
way, then maybe this should be added to the FAQ.


Regards
 mks

-
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 5.0 vs. 5.5? tomcat 5.5 has been bad!

2006-03-31 Thread Dean Hiller

thankyou, that response is much appreciated.
thanks,
dean

Allistair Crossley wrote:


Please don't think it's the whole Tomcat community Dean, there are some really 
helpful devs on Tomat, it's just Remy in particular has a problem being 
polite/arrogant about Tomcat - I guess from his privileged point of view he 
understands everything about Tomcat and therefore does not understand what 
usability is all about.

All the best, AC.

-Original Message-----
From: Dean Hiller [mailto:[EMAIL PROTECTED] 
Sent: 31 March 2006 11:39

To: Tomcat Users List
Subject: Re: tomcat 5.0 vs. 5.5? tomcat 5.5 has been bad!

   wow! you guys sound pretty harsh when it comes to messages to help users on 
simple mistakes then.  I recently dropped in someone else's example app war 
file that had the SAME PROBLEM.latest facelets.  I could not even give back 
information to help them debug the problem.  It was standard tomcat 5.5.16.  It 
worked on 5.0 just fine.  I now know that I need to unzip their war file, 
remove log4j(and maybe even hope that they are using commons, because if they 
are not, I may be utterly screwed).  Then I need to redeploy their app.  I need 
to do all this because tomcat is unwilling to give good helpful messages as to 
what is going on(as seen by all the other posts that have had trouble figuring 
out their problems behind that error with no reponses either.I was the 
lucky one and finally figured out what was wrong).  I can only hope others can 
find my solution post without wasting too much time.
later,
dean



Remy Maucherat wrote:

 


On 3/30/06, Markus Schönhaber <[EMAIL PROTECTED]> wrote:


   


The RuntimeException is to make it more noticeable in the logs.   I mean
953 hits on googling is quite alot of people having trouble.  Would 
be nice to cut that number down with an easy log statement that 
tomcat could add!!!


   


Well, if it's really that easy you should definitely provide a patch.
  

 

I recommend not wasting time, as I would refuse such a nonsensical 
patch. The actual worakround is to learn how to properly use logging, 
which seems to be a useful skill.


--
x
Rémy Maucherat
Developer & Consultant
JBoss Inc
x

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





 
---

QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
  
Disclaimer:  The information contained within this e-mail is confidential and may be privileged. This email is intended solely for the named recipient only; if you are not authorised you must not disclose, copy, distribute, or retain this message or any part of it. If you have received this message in error please contact the sender at once so that we may take the appropriate action and avoid troubling you further.  Any views expressed in this message are those of the individual sender.  QAS Limited has the right lawfully to record, monitor and inspect messages between its employees and any third party.  Your messages shall be subject to such lawful supervision as QAS Limited deems to be necessary in order to protect its information, its interests and its reputation.  


Whilst all efforts are made to safeguard Inbound and Outbound emails, QAS 
Limited cannot guarantee that attachments are virus free or compatible with 
your systems and does not accept any liability in respect of viruses or 
computer problems experienced.



-
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 5.0 vs. 5.5? tomcat 5.5 has been bad!

2006-03-31 Thread Dean Hiller
   wow! you guys sound pretty harsh when it comes to messages to help 
users on simple mistakes then.  I recently dropped in someone else's 
example app war file that had the SAME PROBLEM.latest facelets.  I 
could not even give back information to help them debug the problem.  It 
was standard tomcat 5.5.16.  It worked on 5.0 just fine.  I now know 
that I need to unzip their war file, remove log4j(and maybe even hope 
that they are using commons, because if they are not, I may be utterly 
screwed).  Then I need to redeploy their app.  I need to do all this 
because tomcat is unwilling to give good helpful messages as to what is 
going on(as seen by all the other posts that have had trouble figuring 
out their problems behind that error with no reponses either.I was 
the lucky one and finally figured out what was wrong).  I can only hope 
others can find my solution post without wasting too much time.

later,
dean



Remy Maucherat wrote:


On 3/30/06, Markus Schönhaber <[EMAIL PROTECTED]> wrote:
 


The RuntimeException is to make it more noticeable in the logs.   I mean
953 hits on googling is quite alot of people having trouble.  Would be
nice to cut that number down with an easy log statement that tomcat
could add!!!
 


Well, if it's really that easy you should definitely provide a patch.
   



I recommend not wasting time, as I would refuse such a nonsensical
patch. The actual worakround is to learn how to properly use logging,
which seems to be a useful skill.

--
x
Rémy Maucherat
Developer & Consultant
JBoss Inc
x

-
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 5.0 vs. 5.5? tomcat 5.5 has been bad!

2006-03-30 Thread Dean Hiller
yes, but please look at the solution I found in previous post which 
works WITHOUT stripping down everything.  I think tomcat should fix this 
by reporting something like this


log.log(Level.WARNING, "Application Errors will not be logged because 
webapp has log4j but no config file", new RuntimeException("See 
msg).fillInStackTrace());


The RuntimeException is to make it more noticeable in the logs.   I mean 
953 hits on googling is quite alot of people having trouble.  Would be 
nice to cut that number down with an easy log statement that tomcat 
could add!!!


thanks,
dean

Markus Schönhaber wrote:


Dean Hiller wrote:
 


Okay, a zip file with one *.java file and one *.class file can be found
here...

https://pro40.abac.com/deanhiller/cgi-bin/moin.cgi/Downloads

You can unzip it and copy the folder to tomcat/webapps and watch no
Exception get logged.  Just the " Error listenerStart" message gets
logged an no more information is there.  Google has 953 references to
"Error listenerStart" and many of them are "what went wrong with my app"
as there is no stack trace.  I haven't found any posts answering those
questions though.
   



If I strip down this webapp to only contain the LifecycleListener - i. e. 
remove logging.properties, remove the lib dir, remove filters and listeners 
short of LifecycleListener from web.xml - the stacktrace gets logged in 
localhost..log.


Regards
 mks

-
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 5.0 vs. 5.5? SOLUTION!!! figured out tomcat bug!

2006-03-30 Thread Dean Hiller
Found the solution.  This is for all those posters who will run into 
this tomcat bug(well, at least, I consider this a bug).  Basically, 
somehow, I had a log4j jar in my WEB-INF/lib folder.  This would cause 
logging to work in some places and not others.  It would sometimes work 
going to java.util.logging and sometimes would not depending on the 
siutation.  Here is a posted example of it not working


https://pro40.abac.com/deanhiller/cgi-bin/moin.cgi/Downloads

Just unzip and copy to webapps directory and notice not much information 
on why your servlet did not start!  Erase the log4j jar and get 
plenty of information. 


Keywords for google
Error listenerStart tomcat logging not working
Error listenerStart tomcat logging not working
Error listenerStart tomcat logging not working
Error listenerStart tomcat logging not working
Error listenerStart tomcat logging not working
Error listenerStart tomcat logging not working
Error listenerStart tomcat logging not working
Error listenerStart tomcat logging not working
Error listenerStart tomcat logging not working
Error listenerStart tomcat logging not working
Error listenerStart tomcat logging not working

Dean Hiller wrote:

Okay, a zip file with one *.java file and one *.class file can be 
found here...


https://pro40.abac.com/deanhiller/cgi-bin/moin.cgi/Downloads

You can unzip it and copy the folder to tomcat/webapps and watch no 
Exception get logged.  Just the " Error listenerStart" message gets 
logged an no more information is there.  Google has 953 references to 
"Error listenerStart" and many of them are "what went wrong with my 
app" as there is no stack trace.  I haven't found any posts answering 
those questions though.

thanks,
dean

Filip Hanik - Dev Lists wrote:

ok, that was fairly easy, the error gets logged to the 
/logs/localhost.2006-03-29.log" this is on the default 
install, no loggers modified


so are you still having a problem?

Mar 29, 2006 9:12:47 AM org.apache.catalina.core.ApplicationContext log
INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: 
[org.apache.webapp.balancer.RuleChain: 
[org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: 
News / Redirect URL: http://www.cnn.com], 
[org.apache.webapp.balancer.rules.RequestParameterRule: Target param 
name: paramName / Target param value: paramValue / Redirect URL: 
http://www.yahoo.com], 
[org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: 
http://jakarta.apache.org]]

Mar 29, 2006 9:12:47 AM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Mar 29, 2006 9:12:47 AM org.apache.catalina.core.StandardContext 
listenerStart
SEVERE: Exception sending context initialized event to listener 
instance of class listeners.ContextListener

java.lang.RuntimeException: sdadasda
   at 
listeners.ContextListener.contextInitialized(ContextListener.java:114)
   at 
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3729) 

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

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

   at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
   at 
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
   at 
org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:904) 

   at 
org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:867) 

   at 
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:474)
   at 
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122)
   at 
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310) 

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

   at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)
   at 
org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
   at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
   at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
   at 
org.apache.catalina.core.StandardService.start(StandardService.java:450)
   at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:709)

   at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 

   at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 


   at java.lang.reflect.Method.invoke(Method.java:585)
   at 
org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275)

   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Mar 29, 2006 9:12:47 AM org.apa

Re: tomcat 5.0 vs. 5.5? tomcat 5.5 has been bad!

2006-03-30 Thread Dean Hiller
Okay, a zip file with one *.java file and one *.class file can be found 
here...


https://pro40.abac.com/deanhiller/cgi-bin/moin.cgi/Downloads

You can unzip it and copy the folder to tomcat/webapps and watch no 
Exception get logged.  Just the " Error listenerStart" message gets 
logged an no more information is there.  Google has 953 references to 
"Error listenerStart" and many of them are "what went wrong with my app" 
as there is no stack trace.  I haven't found any posts answering those 
questions though.

thanks,
dean

Filip Hanik - Dev Lists wrote:

ok, that was fairly easy, the error gets logged to the 
/logs/localhost.2006-03-29.log" this is on the default 
install, no loggers modified


so are you still having a problem?

Mar 29, 2006 9:12:47 AM org.apache.catalina.core.ApplicationContext log
INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: 
[org.apache.webapp.balancer.RuleChain: 
[org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: 
News / Redirect URL: http://www.cnn.com], 
[org.apache.webapp.balancer.rules.RequestParameterRule: Target param 
name: paramName / Target param value: paramValue / Redirect URL: 
http://www.yahoo.com], 
[org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: 
http://jakarta.apache.org]]

Mar 29, 2006 9:12:47 AM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Mar 29, 2006 9:12:47 AM org.apache.catalina.core.StandardContext 
listenerStart
SEVERE: Exception sending context initialized event to listener 
instance of class listeners.ContextListener

java.lang.RuntimeException: sdadasda
   at 
listeners.ContextListener.contextInitialized(ContextListener.java:114)
   at 
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3729) 

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

   at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
   at 
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
   at 
org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:904) 

   at 
org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:867) 

   at 
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:474)
   at 
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122)
   at 
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310) 

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

   at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)
   at 
org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
   at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
   at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
   at 
org.apache.catalina.core.StandardService.start(StandardService.java:450)
   at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:709)

   at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 

   at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 


   at java.lang.reflect.Method.invoke(Method.java:585)
   at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Mar 29, 2006 9:12:47 AM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Mar 29, 2006 9:12:47 AM org.apache.catalina.core.ApplicationContext log


Dean Hiller wrote:

thanks for the link.  I need that too.  Regardless of logging 
thought, quickly add this to any serlvetlistener


public void contextInitialized(ServletContextEvent evt) {
  throw new RuntimeException("asdfsf");
}

Run it, and enjoy not being able to know what the heck went wrong 
with your app like I have seen many have done on the posts already.  
ie. Tomcat used to log the stack trace, but in 5.5 does not, and that 
should be high enough warning level that config of logs don't matter.


Making the problem even harder.
On a second note, I have fooled around with logging and it works fine 
in my app, and I could configure it and such(with 5.5) and my 
logging.properties file in WEB-INF.  I could never get my 
servletlistener to log any statements(making the problem doubly hard).

thanks,
dean






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





Re: tomcat 5.0 vs. 5.5? tomcat 5.5 has been bad!

2006-03-30 Thread Dean Hiller
I am still getting no log there.my localhost is empty!  Other logs 
get filled, I will trim all the fat off.  Could it be that I am using 
myfaces?  BUT myfaces doesn't sit between servletContextListener and 
tomcat, so I am really confused.  Let me trim the fat(jsp files and 
such).  All I am doing is throwing a runtimeException.  I will send a 
zip in a few.\

thanks,
dean

Filip Hanik - Dev Lists wrote:

ok, that was fairly easy, the error gets logged to the 
/logs/localhost.2006-03-29.log" this is on the default 
install, no loggers modified


so are you still having a problem?

Mar 29, 2006 9:12:47 AM org.apache.catalina.core.ApplicationContext log
INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: 
[org.apache.webapp.balancer.RuleChain: 
[org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: 
News / Redirect URL: http://www.cnn.com], 
[org.apache.webapp.balancer.rules.RequestParameterRule: Target param 
name: paramName / Target param value: paramValue / Redirect URL: 
http://www.yahoo.com], 
[org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: 
http://jakarta.apache.org]]

Mar 29, 2006 9:12:47 AM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Mar 29, 2006 9:12:47 AM org.apache.catalina.core.StandardContext 
listenerStart
SEVERE: Exception sending context initialized event to listener 
instance of class listeners.ContextListener

java.lang.RuntimeException: sdadasda
   at 
listeners.ContextListener.contextInitialized(ContextListener.java:114)
   at 
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3729) 

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

   at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
   at 
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
   at 
org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:904) 

   at 
org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:867) 

   at 
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:474)
   at 
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122)
   at 
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310) 

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

   at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)
   at 
org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
   at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
   at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
   at 
org.apache.catalina.core.StandardService.start(StandardService.java:450)
   at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:709)

   at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 

   at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 


   at java.lang.reflect.Method.invoke(Method.java:585)
   at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Mar 29, 2006 9:12:47 AM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Mar 29, 2006 9:12:47 AM org.apache.catalina.core.ApplicationContext log


Dean Hiller wrote:

thanks for the link.  I need that too.  Regardless of logging 
thought, quickly add this to any serlvetlistener


public void contextInitialized(ServletContextEvent evt) {
  throw new RuntimeException("asdfsf");
}

Run it, and enjoy not being able to know what the heck went wrong 
with your app like I have seen many have done on the posts already.  
ie. Tomcat used to log the stack trace, but in 5.5 does not, and that 
should be high enough warning level that config of logs don't matter.


Making the problem even harder.
On a second note, I have fooled around with logging and it works fine 
in my app, and I could configure it and such(with 5.5) and my 
logging.properties file in WEB-INF.  I could never get my 
servletlistener to log any statements(making the problem doubly hard).

thanks,
dean






-
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 5.0 vs. 5.5? tomcat 5.5 has been bad!

2006-03-30 Thread Dean Hiller
thankyou very much for taking the time to simulate that.  I am going to 
try your code and compare it to mine and see why mine was not showing up 
there at all.

thanks,
dean

Filip Hanik - Dev Lists wrote:

ok, that was fairly easy, the error gets logged to the 
/logs/localhost.2006-03-29.log" this is on the default 
install, no loggers modified


so are you still having a problem?

Mar 29, 2006 9:12:47 AM org.apache.catalina.core.ApplicationContext log
INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: 
[org.apache.webapp.balancer.RuleChain: 
[org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: 
News / Redirect URL: http://www.cnn.com], 
[org.apache.webapp.balancer.rules.RequestParameterRule: Target param 
name: paramName / Target param value: paramValue / Redirect URL: 
http://www.yahoo.com], 
[org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: 
http://jakarta.apache.org]]

Mar 29, 2006 9:12:47 AM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Mar 29, 2006 9:12:47 AM org.apache.catalina.core.StandardContext 
listenerStart
SEVERE: Exception sending context initialized event to listener 
instance of class listeners.ContextListener

java.lang.RuntimeException: sdadasda
   at 
listeners.ContextListener.contextInitialized(ContextListener.java:114)
   at 
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3729) 

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

   at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
   at 
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
   at 
org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:904) 

   at 
org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:867) 

   at 
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:474)
   at 
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122)
   at 
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310) 

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

   at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)
   at 
org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
   at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
   at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
   at 
org.apache.catalina.core.StandardService.start(StandardService.java:450)
   at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:709)

   at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 

   at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 


   at java.lang.reflect.Method.invoke(Method.java:585)
   at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Mar 29, 2006 9:12:47 AM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Mar 29, 2006 9:12:47 AM org.apache.catalina.core.ApplicationContext log


Dean Hiller wrote:

thanks for the link.  I need that too.  Regardless of logging 
thought, quickly add this to any serlvetlistener


public void contextInitialized(ServletContextEvent evt) {
  throw new RuntimeException("asdfsf");
}

Run it, and enjoy not being able to know what the heck went wrong 
with your app like I have seen many have done on the posts already.  
ie. Tomcat used to log the stack trace, but in 5.5 does not, and that 
should be high enough warning level that config of logs don't matter.


Making the problem even harder.
On a second note, I have fooled around with logging and it works fine 
in my app, and I could configure it and such(with 5.5) and my 
logging.properties file in WEB-INF.  I could never get my 
servletlistener to log any statements(making the problem doubly hard).

thanks,
dean






-
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 5.0 vs. 5.5? tomcat 5.5 has been bad!

2006-03-29 Thread Dean Hiller
thanks for the link.  I need that too.  Regardless of logging thought, 
quickly add this to any serlvetlistener


public void contextInitialized(ServletContextEvent evt) {
  throw new RuntimeException("asdfsf");
}

Run it, and enjoy not being able to know what the heck went wrong with 
your app like I have seen many have done on the posts already.  ie. 
Tomcat used to log the stack trace, but in 5.5 does not, and that should 
be high enough warning level that config of logs don't matter.


Making the problem even harder.
On a second note, I have fooled around with logging and it works fine in 
my app, and I could configure it and such(with 5.5) and my 
logging.properties file in WEB-INF.  I could never get my 
servletlistener to log any statements(making the problem doubly hard).

thanks,
dean



Vamsidhar wrote:


I am assuming you have been using logger to log stack traces in case of
errors in tomcat 5.0. This was deprecated in 5.0 and completely removed in
5.5. So, If you have logger defined for engine, host, or context to  record
the stack traces in a file in your application this will not work on tomcat
5.5

http://tomcat.apache.org/tomcat-5.0-doc/config/logger.html
"Please note that Loggers are deprecated in Tomcat 5.0 and removed from
Tomcat 5.5. Tomcat 5.5 uses Commons-Logging  instead."

hope this helps.

On 3/28/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
 


On number 1 5.0 logs the entire stack trace, so you can jump to the line
number.  On 5.5, no such stack trace in any file.  Also, I searched a few
lists and many people had questions on what was wron when they saw that
error.  I think the cause is the lack of informationit should at the
very least log the stack trace and does not.

I just used the latest facelets and it did not work, but worked on 5.0.

in fact, all the stuff works on 5.0 which leads me to believe 5.5 is
unstable, but I wanted to verify.
dean

   


On 3/28/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
 


Anyone have much experience with running on these.  On tomcat 5.5, I
have
ran into many problems
1. exception fron ServletContextListener.contextInitialized causes the
vague error of "Error listenerStart" with no details.  Most people on
lists I have seen don't even know it was caused by Exception out of
   


that
   


method(Took me a while to figure out too)
   


Yes, it's an extremely myterious log message, as a
ServletContextListener is a listener for the context.

 


2. logging MyFaces logs was not working
   


Whatever.

 


3. Facelets example war files don't work in 5.5.16
   


It uses a bad method for descovering its config, if I remember well,
which is now fixed.

--
x
Rémy Maucherat
Developer & Consultant
JBoss Inc
x

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



Error listenerStart solution?

2006-03-26 Thread Dean Hiller
I see lots of post on "Error listenerStart".  I know what this is caused 
by.  It is caused by your ServletContextListener throwing an exception 
on the contextInitialized method.  I do not know however why it is not 
logging stack traces.  It is like one will have to write a JUnit test to 
cal the ServletContextListener with a mock ServletContext to see what 
exception is being thrown.  This is a real pain.  Why is tomcat not 
logging the exception that is thrown anywhere?  I am using 5.5.16.

thanks,
dean


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



not logging ServletContextException anywhere

2006-03-26 Thread Dean Hiller
All I get in the logs is this(which I know is caused by an exception 
in contextInitialized() method of my ServletContextListener)


SEVERE: Error listenerStart
Mar 26, 2006 6:36:25 AM org.apache.catalina.core.StandardContext start
SEVERE: Context [/projectservice] startup failed due to previous errors

I have tried with and without my own logging.properties file in 
WEB-INF/classes.  That logging.properties file works for my JSF backing 
beans, but not for this listener.  I can't get a stack trace anywhere 
from tomcat.  How do I debug if can't get any logs working?  or how do I 
get the logs to work.  This is a brand new installation of 5.5.16 and 
all I changed in the config was adding antiJARLocking and 
antiResourceLocking both set to false.  I can send you my code and/or 
war file if you need.


thanks for any info on this,
dean


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



remove myself from list failure attached

2005-10-14 Thread Dean Hiller

how do I get removed from list?  Sending to the unsubscribe mail is failing.
thanks,
dean
--- Begin Message ---
Hi. This is the qmail-send program at apache.org.
I'm afraid I wasn't able to deliver your message to the following addresses.
This is a permanent error; I've given up. Sorry it didn't work out.

<[EMAIL PROTECTED]>:
Sorry, no mailbox here by that name. (#5.1.1)

--- Below this line is a copy of the message.

Return-Path: <[EMAIL PROTECTED]>
Received: (qmail 64253 invoked by uid 99); 15 Oct 2005 02:54:41 -
Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49)
by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Oct 2005 19:54:40 -0700
X-ASF-Spam-Status: No, hits=0.0 required=10.0
tests=
X-Spam-Check-By: apache.org
Received-SPF: neutral (asf.osuosl.org: local policy)
Received: from [204.127.198.39] (HELO rwcrmhc12.comcast.net) (204.127.198.39)
by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Oct 2005 19:54:42 -0700
Received: from [127.0.0.1] (c-67-176-52-226.hsd1.co.comcast.net[67.176.52.226])
  by comcast.net (rwcrmhc13) with ESMTP
  id <2005101502541801500re43ke>; Sat, 15 Oct 2005 02:54:18 +
Message-ID: <[EMAIL PROTECTED]>
Date: Fri, 14 Oct 2005 20:54:16 -0600
From: Dean Hiller <[EMAIL PROTECTED]>
User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716)
X-Accept-Language: en-us, en
MIME-Version: 1.0
To:  [EMAIL PROTECTED]
Subject: unsubscribe
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Virus-Checked: Checked by ClamAV on apache.org

x


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