You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Julien Martin <ba...@gmail.com> on 2009/02/15 17:13:17 UTC

Please help with setting up a tomcat configuration in production...

Hello,

I am experiencing problems with my tomcat setup. I suspect my application
was deployed twice but I am not sure.

Here is the relevant part from my "server.xml":
      <Host name="localhost"  appBase="webapps"
            unpackWARs="true" autoDeploy="true"
           xmlValidation="false" xmlNamespaceAware="false">
    </Host>

<Host appBase="/home/webadmin/jeanbaptistemartin.com/html" name="
jeanbaptistemartin.com" unpackWARs="true" autoDeploy="true">
    <Alias>www.jeanbaptistemartin.com</Alias>
    <Context path="" docBase="jeanbaptistemartin" debug="0"
reloadable="true"/>
    </Host>


Here is what the Application list shows in tomcat manager's full complete
server status (manager/status/all):
localhost/
jeanbaptistemartin.com/
localhost/jeanbaptistemartin.com
localhost/manager
localhost/docs
localhost/host-manager
jeanbaptistemartin.com/jeanbaptistemartin
localhost/examples

Furthermore I noticed that no matter how many times I connect to the app
with my browser, the tomcat manager does not show any session existing in
the "sessions" column of the (manager/html/list).

Also, sometimes the/home/webadmin/
jeanbaptistemartin.com/html/jeanbaptistemartin.com directory contains:
-the war file
-a ROOT directory
-a jeanbaptistemartin directory

I strongly suspect it is something to do with the above snippet from the
"server.xml".

Can you please help?

Thanks in advance,

Julien Martin.


Here is the stack trace:
********************************************************
INFO   | jvm 1    | 2009/02/15 08:24:19 | DEBUG [http-8080-1]
(AccueilView.java:54) - setSuggestionOeuvreView
INFO   | jvm 1    | 2009/02/15 08:24:19 | Feb 15, 2009 1:24:19 PM
org.restfaces.application.RestFacesPhaseListener beforeResponse
INFO   | jvm 1    | 2009/02/15 08:24:19 | SEVERE: restfaces context has been
released because of exeption: java.lang.IllegalArgumentException: object is
not an instance of declaring class
INFO   | jvm 1    | 2009/02/15 08:24:19 | Feb 15, 2009 1:24:19 PM
com.sun.faces.lifecycle.Phase doPhase
INFO   | jvm 1    | 2009/02/15 08:24:19 | SEVERE: JSF1054: (Phase ID:
RENDER_RESPONSE 6, View ID: /lang/fr/galerie.xhtml) Exception thrown during
phase execution:
javax.faces.event.PhaseEvent[source=com.sun.faces.lifecycle.LifecycleImpl@1d88c1f
]
INFO   | jvm 1    | 2009/02/15 08:24:19 | ERROR [http-8080-1]
(BaseXMLFilter.java:181) - Exception in the filter chain
INFO   | jvm 1    | 2009/02/15 08:24:19 | javax.servlet.ServletException:
org.restfaces.RestFacesException: java.lang.IllegalArgumentException: object
is not an instance of declaring class
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
javax.faces.webapp.FacesServlet.service(FacesServlet.java:277)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:390)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:517)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
org.restfaces.Filter.doFilter(Filter.java:208)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.doFilterInternal(OpenEntityManagerInViewFilter.java:112)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
java.lang.Thread.run(Thread.java:619)
INFO   | jvm 1    | 2009/02/15 08:24:19 | Caused by:
org.restfaces.RestFacesException: org.restfaces.RestFacesException:
java.lang.IllegalArgumentException: object is not an instance of declaring
class
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
org.restfaces.application.RestViewHandler.renderView(RestViewHandler.java:143)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:100)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:176)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:109)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     ... 30 more
INFO   | jvm 1    | 2009/02/15 08:24:19 | Caused by:
org.restfaces.RestFacesException: java.lang.IllegalArgumentException: object
is not an instance of declaring class
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
org.restfaces.handler.ActionHandler.decode(ActionHandler.java:206)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
org.restfaces.application.RestFacesPhaseListener.renderLifecycle(RestFacesPhaseListener.java:172)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
org.restfaces.application.RestFacesPhaseListener.beforeResponse(RestFacesPhaseListener.java:142)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
org.restfaces.application.PhaseListenerUtils.beforePhase(PhaseListenerUtils.java:86)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
com.sun.faces.lifecycle.Phase.handleBeforePhase(Phase.java:214)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
com.sun.faces.lifecycle.Phase.doPhase(Phase.java:96)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     ... 32 more
INFO   | jvm 1    | 2009/02/15 08:24:19 | Caused by:
java.lang.IllegalArgumentException: object is not an instance of declaring
class
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
java.lang.reflect.Method.invoke(Method.java:597)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
org.restfaces.handler.ActionHandler.decode(ActionHandler.java:204)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     ... 37 more
INFO   | jvm 1    | 2009/02/15 08:24:19 | Feb 15, 2009 1:24:19 PM
org.apache.catalina.core.ApplicationDispatcher invoke
INFO   | jvm 1    | 2009/02/15 08:24:19 | SEVERE: Servlet.service() for
servlet Faces Servlet threw exception
INFO   | jvm 1    | 2009/02/15 08:24:19 |
java.lang.IllegalArgumentException: object is not an instance of declaring
class
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
java.lang.reflect.Method.invoke(Method.java:597)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
org.restfaces.handler.ActionHandler.decode(ActionHandler.java:204)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
org.restfaces.application.RestFacesPhaseListener.renderLifecycle(RestFacesPhaseListener.java:172)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
org.restfaces.application.RestFacesPhaseListener.beforeResponse(RestFacesPhaseListener.java:142)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
org.restfaces.application.PhaseListenerUtils.beforePhase(PhaseListenerUtils.java:86)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
com.sun.faces.lifecycle.Phase.handleBeforePhase(Phase.java:214)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
com.sun.faces.lifecycle.Phase.doPhase(Phase.java:96)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:390)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:517)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
org.restfaces.Filter.doFilter(Filter.java:208)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.doFilterInternal(OpenEntityManagerInViewFilter.java:112)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
java.lang.Thread.run(Thread.java:619)
INFO   | jvm 1    | 2009/02/15 08:24:19 | Feb 15, 2009 1:24:19 PM
org.apache.catalina.core.StandardWrapperValve invoke
INFO   | jvm 1    | 2009/02/15 08:24:19 | SEVERE: Servlet.service() for
servlet default threw exception
INFO   | jvm 1    | 2009/02/15 08:24:19 |
java.lang.IllegalArgumentException: object is not an instance of declaring
class
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
java.lang.reflect.Method.invoke(Method.java:597)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
org.restfaces.handler.ActionHandler.decode(ActionHandler.java:204)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
org.restfaces.application.RestFacesPhaseListener.renderLifecycle(RestFacesPhaseListener.java:172)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
org.restfaces.application.RestFacesPhaseListener.beforeResponse(RestFacesPhaseListener.java:142)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
org.restfaces.application.PhaseListenerUtils.beforePhase(PhaseListenerUtils.java:86)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
com.sun.faces.lifecycle.Phase.handleBeforePhase(Phase.java:214)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
com.sun.faces.lifecycle.Phase.doPhase(Phase.java:96)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:390)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:517)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
org.restfaces.Filter.doFilter(Filter.java:208)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.doFilterInternal(OpenEntityManagerInViewFilter.java:112)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
INFO   | jvm 1    | 2009/02/15 08:24:19 |     at
java.lang.Thread.run(Thread.java:619)
INFO   | jvm 1    | 2009/02/15 08:24:23 |  INFO [http-8080-1]
(AccueilView.java:29) - AccueilView()
INFO   | jvm 1    | 2009/02/15 08:24:23 | DEBUG [http-8080-1]
(SuggestionOeuvreView.java:34) - SuggestionOeuvreView()
INFO   | jvm 1    | 2009/02/15 08:24:23 | DEBUG [http-8080-1]
(SuggestionOeuvreView.java:122) - recupererSculpturesNonVisitees()
INFO   | jvm 1    | 2009/02/15 08:24:23 | DEBUG [http-8080-1]
(DAOJbm.java:34) - findAllSculptureIDs
********************************************************

Re: Please help with setting up a tomcat configuration in production...

Posted by André Warnier <aw...@ice-sa.com>.
Julien Martin wrote:
> THANKS A LOT ANDRÉ!!
> After reading your detailed reply, I followed your suggestion: ROOT.war and
> removed all unnecessary stuff from server.xml. It now works!!
> All the best,
> Julien.
> 
We live to serve.
À votre service !

(J'en suis tout content moi-même. Cela prouve qu'on apprend quelque 
chose, sur ces forums.)

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Please help with setting up a tomcat configuration in production...

Posted by Julien Martin <ba...@gmail.com>.
THANKS A LOT ANDRÉ!!
After reading your detailed reply, I followed your suggestion: ROOT.war and
removed all unnecessary stuff from server.xml. It now works!!
All the best,
Julien.

2009/2/15 André Warnier <aw...@ice-sa.com>

> Julien Martin wrote:
>
>>
>> I now get a 404 tomcat error.
>>
>> Any one could please help?
>>
>>  We're trying.  But you are not making it easy, by making several changes
> at once and then not telling us about it until it is too late.
>
> First, you have already modified the standard Tomcat configuration, by
> making that second Host the default one (in <Engine>).  You should probably
> not do that, or not yet.
>
> Second, before you create a second Host with a name like "
> jeanbaptistemartin.com", is that name a real DNS name, that resolves to
> the IP address of your physical Tomcat host ?
> Because if it isn't the case, then it will not work, no matter what else.
>
> Third, you should probably *not* have a <Context> element in your
> server.xml.
>
> Although this is explained in the on-line documentation, and has been
> explained many times before in this forum (and these previous explanations
> are available on-line, and searchable), let me give you a quick overview :
>
> - the appBase attribute of your Host element tells Tomcat, /for this Host/,
> where the applications can normally be found.
> By default, this is the "webapps" directory under the main Tomcat
> installation directory (or more exactly, under the CATALINA_BASE directory).
> - you can change the above by creating a specific Context element for your
> webapp, but you should only do that if there is no other way (because it is
> confusing).  And if you create such a Context element, you should not put it
> in the server.xml file.  It goes somewhere else, which I will tell you
> another time.
> - a webapp can consist either of the "developed" directory structure of
> your webapp, with the top directory (e.g. CATALINA_BASE/webapps/abc if your
> application is called "abc"), a WEB-INF subdirectory, the class files or
> jars, etc.., OR of a single "war" file containing everything and named
> "abc.war".
> - if it is a war file "abc.war", the simple fact of dropping it in the
> "webapps" directory will make it so that Tomcat will notice it, and "deploy"
> it as the application named "abc".
> You should then be able to access this application by entering the URL : "
> http://myhostname/abc".
> - if you want your application to be the /default/ application for that
> Host (in other words, the one that is called when the user enters "
> http://myhostname/"), then you should name your application "ROOT"
> (exactly like that, in capitals), and place it under the "webapps" directory
> of that Host.
> If it is a war file, then it should be named ROOT.war (also exactly).
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Re: Please help with setting up a tomcat configuration in production...

Posted by André Warnier <aw...@ice-sa.com>.
Julien Martin wrote:
> 
> I now get a 404 tomcat error.
> 
> Any one could please help?
> 
We're trying.  But you are not making it easy, by making several changes 
at once and then not telling us about it until it is too late.

First, you have already modified the standard Tomcat configuration, by 
making that second Host the default one (in <Engine>).  You should 
probably not do that, or not yet.

Second, before you create a second Host with a name like 
"jeanbaptistemartin.com", is that name a real DNS name, that resolves to 
the IP address of your physical Tomcat host ?
Because if it isn't the case, then it will not work, no matter what else.

Third, you should probably *not* have a <Context> element in your 
server.xml.

Although this is explained in the on-line documentation, and has been 
explained many times before in this forum (and these previous 
explanations are available on-line, and searchable), let me give you a 
quick overview :

- the appBase attribute of your Host element tells Tomcat, /for this 
Host/, where the applications can normally be found.
By default, this is the "webapps" directory under the main Tomcat 
installation directory (or more exactly, under the CATALINA_BASE directory).
- you can change the above by creating a specific Context element for 
your webapp, but you should only do that if there is no other way 
(because it is confusing).  And if you create such a Context element, 
you should not put it in the server.xml file.  It goes somewhere else, 
which I will tell you another time.
- a webapp can consist either of the "developed" directory structure of 
your webapp, with the top directory (e.g. CATALINA_BASE/webapps/abc if 
your application is called "abc"), a WEB-INF subdirectory, the class 
files or jars, etc.., OR of a single "war" file containing everything 
and named "abc.war".
- if it is a war file "abc.war", the simple fact of dropping it in the 
"webapps" directory will make it so that Tomcat will notice it, and 
"deploy" it as the application named "abc".
You should then be able to access this application by entering the URL : 
"http://myhostname/abc".
- if you want your application to be the /default/ application for that 
Host (in other words, the one that is called when the user enters 
"http://myhostname/"), then you should name your application "ROOT" 
(exactly like that, in capitals), and place it under the "webapps" 
directory of that Host.
If it is a war file, then it should be named ROOT.war (also exactly).


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Please help with setting up a tomcat configuration in production...

Posted by Hassan Schroeder <ha...@gmail.com>.
On Sun, Feb 15, 2009 at 9:09 AM, Julien Martin <ba...@gmail.com> wrote:

> I now get a 404 tomcat error.

1) don't post config files full of commented-out example stuff. We've
    all seen it, it isn't relevant, and it makes it hard to read the parts
    that /are/ relevant.

2) are you sure your Tomcat instance has started correctly? You can
    get the default ROOT page? No errors in the logs?

3) if you're only deploying one hostname, why don't you just go back
    to the original config, rename your app to ROOT.war and put it in
    the base webapps dir?

-- 
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Please help with setting up a tomcat configuration in production...

Posted by Julien Martin <ba...@gmail.com>.
I read the documentation and tried the following configuration:

  <Engine name="Catalina" defaultHost="jeanbaptistemartin.com">

      <!--For clustering, please take a look at documentation at:
          /docs/cluster-howto.html  (simple how to)
          /docs/config/cluster.html (reference documentation) -->
      <!--
      <Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"/>
      -->

      <!-- The request dumper valve dumps useful debugging information about
           the request and response data received and sent by Tomcat.
           Documentation at: /docs/config/valve.html -->
      <!--
      <Valve className="org.apache.catalina.valves.RequestDumperValve"/>
      -->

      <!-- This Realm uses the UserDatabase configured in the global JNDI
           resources under the key "UserDatabase".  Any edits
           that are performed against this UserDatabase are immediately
           available for use by the Realm.  -->
      <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
             resourceName="UserDatabase"/>

      <!-- Define the default virtual host
           Note: XML Schema validation will not work with Xerces 2.2.
       -->
      <Host name="localhost"  appBase="webapps"
            unpackWARs="true" autoDeploy="true"
            xmlValidation="false" xmlNamespaceAware="false">

        <!-- SingleSignOn valve, share authentication between web
applications
             Documentation at: /docs/config/valve.html -->
        <!--
        <Valve className="org.apache.catalina.authenticator.SingleSignOn" />
        -->

        <!-- Access log processes all example.
             Documentation at: /docs/config/valve.html -->
        <!--
        <Valve className="org.apache.catalina.valves.AccessLogValve"
directory="logs"
               prefix="localhost_access_log." suffix=".txt" pattern="common"
resolveHosts="false"/>
        -->

    </Host>

    <Host appBase="jbm-app" name="jeanbaptistemartin.com" unpackWARs="true"
autoDeploy="true">
    <Alias>www.jeanbaptistemartin.com</Alias>
    <Context path="" docBase="ROOT" debug="0" reloadable="true"/>
    </Host>

    </Engine>

I now get a 404 tomcat error.

Any one could please help?

Thanks in advance,

Julien.

Re: Please help with setting up a tomcat configuration in production...

Posted by Julien Martin <ba...@gmail.com>.
Thanks but the suggested solution does not work. Now when I point my browser
to http://www.jeanbaptistemartin.com I land on the tomcat manager app...
Any one has any other idea?
In the meantime I am going to have a look at the virtual hosts documentation
as suggested by Hassan.
Julien.

2009/2/15 André Warnier <aw...@ice-sa.com>

> Julien Martin wrote:
>
> Hi.
> It will probably be useful for anyone wanting to help you, to know which
> version of Tomcat you are talking about.
> Also on which platform, athough one can kind of guess that.
> But it's time-consuming and error-prone to have to make guesses.
>
> With my limited knowledge and until a real expert steps in, I'll tell you
> that your guess about the origin of the problem is probably correct.
> You should not have that <Context> element in the server.xml file.
> At best, it means that you cannot reload your application without having to
> restart Tomcat.
> Just remove it.
> You already have an "appBase" in the Host element, so Tomcat knows where to
> look for applications for that Host.
> If you just name your war file "jeanbaptistemartin.com.war", and drop in
> the directory that is the Host appBase, it will probably work, right out of
> the box.
> Why don't you try that, and make another post with all the details if it
> does not work ?
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Re: Please help with setting up a tomcat configuration in production...

Posted by Hassan Schroeder <ha...@gmail.com>.
On Sun, Feb 15, 2009 at 8:33 AM, Julien Martin <ba...@gmail.com> wrote:

> I'll try the suggested solution and keep you posted...

You might also find the virtual hosting how-to in the docs useful.

FWIW,
-- 
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Please help with setting up a tomcat configuration in production...

Posted by Julien Martin <ba...@gmail.com>.
Thanks a lot for your reply,
Tomcat version: 6.0.18
Platform: linux centos
I'll try the suggested solution and keep you posted...
Julien.

2009/2/15 André Warnier <aw...@ice-sa.com>

> Julien Martin wrote:
>
> Hi.
> It will probably be useful for anyone wanting to help you, to know which
> version of Tomcat you are talking about.
> Also on which platform, athough one can kind of guess that.
> But it's time-consuming and error-prone to have to make guesses.
>
> With my limited knowledge and until a real expert steps in, I'll tell you
> that your guess about the origin of the problem is probably correct.
> You should not have that <Context> element in the server.xml file.
> At best, it means that you cannot reload your application without having to
> restart Tomcat.
> Just remove it.
> You already have an "appBase" in the Host element, so Tomcat knows where to
> look for applications for that Host.
> If you just name your war file "jeanbaptistemartin.com.war", and drop in
> the directory that is the Host appBase, it will probably work, right out of
> the box.
> Why don't you try that, and make another post with all the details if it
> does not work ?
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Re: Please help with setting up a tomcat configuration in production...

Posted by André Warnier <aw...@ice-sa.com>.
Julien Martin wrote:

Hi.
It will probably be useful for anyone wanting to help you, to know which 
version of Tomcat you are talking about.
Also on which platform, athough one can kind of guess that.
But it's time-consuming and error-prone to have to make guesses.

With my limited knowledge and until a real expert steps in, I'll tell 
you that your guess about the origin of the problem is probably correct.
You should not have that <Context> element in the server.xml file.
At best, it means that you cannot reload your application without having 
to restart Tomcat.
Just remove it.
You already have an "appBase" in the Host element, so Tomcat knows where 
to look for applications for that Host.
If you just name your war file "jeanbaptistemartin.com.war", and drop in 
the directory that is the Host appBase, it will probably work, right out 
of the box.
Why don't you try that, and make another post with all the details if it 
does not work ?




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org