Re: Looking for a few good books

2004-12-30 Thread Ben Souther
For organizing a development environment, the best one I've seen is
the First Web App Tutorial on the tomcat site:
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/appdev/index.html

For actually coding JSPs and Servlets I still like:
Core Servlets And Java Server Pages and it's followup:
More Servlets and Java Server Pages.
http://www.coreservlets.com

Most of the books out there are somewhat outdated on deployment
practices.  Be sure to read:
http://jakarta.apache.org/tomcat/faq/misc.html#evil
because most of the books out there still use the invoker servlet in
their examples.

Also search this list. The question which books are best? comes up
about once a month.  There are some good replies in there.



On Thu, 2004-12-30 at 13:01, Charles P. Killmer wrote:
 I am in need of some good books for developing solid JSP code.  There
 are a ton of books out there but I am hoping that this group has a few
 favorites.
  
 What I need is a book that describes how to organize a JSP Tomcat site.
 Describes how to compile code into servlets.
 As well as include those classes into JSP script.
 Ideally these classes should be stored in a location that can be used by
 all sites.
  
 Any help is greatly appreciated.
  
 Thank You
 Charles Killmer
  


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



Re: Looking for a few good books

2004-12-30 Thread apuerta.foros
 Hi.

 I have some servers with Apache2 + Tomcat5, with some virtual hosts
inside. 
 The servers are in production and nothing is reloaded. I've installed
the Tomcat Manager to reload those virtual hosts that suffers changes
from preproduction.

 The problem is that many times the reload fails with that error:
Session already invalidated

and the context goes down, only that context.

 Seems that this error appears when the context suffers any previous
Exception. After a Tomcat restart the manager reload works very well.

 Here is the output error from the context log:

2004-12-30 18:47:03 StandardContext[/managerTomcat]Manager: init:
Associated with Deployer 'XXX'
2004-12-30 18:47:03 StandardContext[/managerTomcat]Manager: init: Global
resources are available
2004-12-30 18:47:03 StandardContext[/managerTomcat]Manager: restart:
Reloading web application at '/'
2004-12-30 18:47:03 StandardContext[/managerTomcat]Manager:
ManagerServlet.reload[/]
java.lang.IllegalStateException: removeAttribute: Session already
invalidated
at
org.apache.catalina.session.StandardSession.removeAttribute(StandardSession.java:1147)
at
org.apache.catalina.session.StandardSession.removeAttribute(StandardSession.java:1122)
at
org.apache.catalina.session.StandardSession.writeObject(StandardSession.java:1405)
at
org.apache.catalina.session.StandardSession.writeObjectData(StandardSession.java:902)
at
org.apache.catalina.session.StandardManager.doUnload(StandardManager.java:539)
at
org.apache.catalina.session.StandardManager.unload(StandardManager.java:485)
at
org.apache.catalina.session.StandardManager.stop(StandardManager.java:687)
at
org.apache.catalina.core.StandardContext.stop(StandardContext.java:4496)
at
org.apache.catalina.core.StandardContext.reload(StandardContext.java:3037)
at
org.apache.catalina.manager.ManagerServlet.reload(ManagerServlet.java:1014)
at
org.apache.catalina.manager.ManagerServlet.doGet(ManagerServlet.java:330)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:540)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
at
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
at
org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:300)
at
org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:374)
at
org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743)
at
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:675)
at
org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:534)


 Thanks a lot, now i've to restart Tomcat in any change made to the
contexts, and is no good in production. 

 Any help is greatly appreciated.



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

Re: Looking for a few good books

2004-12-30 Thread apuerta.foros

 Sorry, i'm a little confused.

El jue, 30-12-2004 a las 20:13, apuerta.foros escribió:
  Hi.
 
  I have some servers with Apache2 + Tomcat5, with some virtual hosts
 inside. 
  The servers are in production and nothing is reloaded. I've installed
 the Tomcat Manager to reload those virtual hosts that suffers changes
 from preproduction.
 
  The problem is that many times the reload fails with that error:
 Session already invalidated
 
 and the context goes down, only that context.
 
  Seems that this error appears when the context suffers any previous
 Exception. After a Tomcat restart the manager reload works very well.
 
  Here is the output error from the context log:
 
 2004-12-30 18:47:03 StandardContext[/managerTomcat]Manager: init:
 Associated with Deployer 'XXX'
 2004-12-30 18:47:03 StandardContext[/managerTomcat]Manager: init: Global
 resources are available
 2004-12-30 18:47:03 StandardContext[/managerTomcat]Manager: restart:
 Reloading web application at '/'
 2004-12-30 18:47:03 StandardContext[/managerTomcat]Manager:
 ManagerServlet.reload[/]
 java.lang.IllegalStateException: removeAttribute: Session already
 invalidated
 at
 org.apache.catalina.session.StandardSession.removeAttribute(StandardSession.java:1147)
 at
 org.apache.catalina.session.StandardSession.removeAttribute(StandardSession.java:1122)
 at
 org.apache.catalina.session.StandardSession.writeObject(StandardSession.java:1405)
 at
 org.apache.catalina.session.StandardSession.writeObjectData(StandardSession.java:902)
 at
 org.apache.catalina.session.StandardManager.doUnload(StandardManager.java:539)
 at
 org.apache.catalina.session.StandardManager.unload(StandardManager.java:485)
 at
 org.apache.catalina.session.StandardManager.stop(StandardManager.java:687)
 at
 org.apache.catalina.core.StandardContext.stop(StandardContext.java:4496)
 at
 org.apache.catalina.core.StandardContext.reload(StandardContext.java:3037)
 at
 org.apache.catalina.manager.ManagerServlet.reload(ManagerServlet.java:1014)
 at
 org.apache.catalina.manager.ManagerServlet.doGet(ManagerServlet.java:330)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
 at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
 at
 org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
 at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
 at
 org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
 at
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
 at
 org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
 at
 org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:540)
 at
 org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
 at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
 at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
 at
 org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
 at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
 at
 org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
 at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
 at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
 at
 org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
 at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
 at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
 at
 org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
 at
 org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:300)
 at
 org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:374)
 at
 org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743)
 at
 org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:675)
 at
 org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866)
 at
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
 at java.lang.Thread.run(Thread.java:534)
 
 
  Thanks a lot, now i've to restart Tomcat in any change made to the
 contexts, and is 

RE: Looking for a few good books

2004-12-30 Thread John Najarian
O'Reilly is the 1 I've used and like.

-Original Message-
From: Charles P. Killmer [mailto:[EMAIL PROTECTED] 
Sent: Thursday, December 30, 2004 10:02 AM
To: Tomcat Users List
Subject: Looking for a few good books

I am in need of some good books for developing solid JSP code.  There
are a ton of books out there but I am hoping that this group has a few
favorites.
 
What I need is a book that describes how to organize a JSP Tomcat site.
Describes how to compile code into servlets.
As well as include those classes into JSP script.
Ideally these classes should be stored in a location that can be used by
all sites.
 
Any help is greatly appreciated.
 
Thank You
Charles Killmer
 



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