tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Raghuveer Rawat" <techhel...@gmail.com>
Subject Re: Problem redeploying war in Tomcat , Unix environment
Date Mon, 14 Apr 2008 17:34:45 GMT
 I do not have same set of jars in common/lib and WEB-INF/lib directories.My
problems resolves if i *restart the tomcat* but it should work without
restarting the tomcat because in Production environment  we can't restart
the server so many times .



On Mon, Apr 14, 2008 at 12:24 PM, Litton, Tom - CEPM <Tom.Litton@cepm-us.com>
wrote:

> It's been my experience errors like this are caused by having the same
> jar file in the common/lib and WEB-INF/lib directories.
>
> -----Original Message-----
> From: Raghuveer Rawat [mailto:techhelp07@gmail.com]
> Sent: Monday, April 14, 2008 10:44 AM
> To: users@tomcat.apache.org
> Subject: Problem redeploying war in Tomcat , Unix environment
>
> Hi ,
> I am using Tomcat5.0.28 and my application works fine in my local
> system(Dev
> environment).
> When i redeploy appln in test server(*Unix Environment*), i get the
> following exception when i click on some link.
>
> java.lang.ClassCastException: otrack.med.acuity.MedicalAcuityLevelCode
> incompatible with otrack.med.acuity.MedicalAcuityLevelCode
> I thought my appln does not unload its classes gracefully on redeploy. I
> modified  tomcat's server.xml and added autoDeploy and unpackWars
> attribute
> as below :
>
>  <Host appBase="webapps" name="domain2" autoDeploy="true" unpackWARs
> ="true"><----The changes you requested
>      <Alias>pubwebtest.doc.state.sc.us</Alias>
>        <Logger className="org.apache.catalina.logger.FileLogger"
> timestamp="true" prefix="pubweb."/>
>      </Host>
>
> *Still iam anable to resolve the issue. I dont have any clue how it
> works in
> UNix environment. Need help. *
> **
> *Detail of the exception: *
> **
>  java.lang.ClassCastException: otrack.med.acuity.MedicalAcuityLevelCode
> incompatible with otrack.med.acuity.MedicalAcuityLevelCode
>  at
> otrack.med.acuity.MedicalAcuityLevelCodeWrapper.getOptionswWithTitleDesc
> (MedicalAcuityLevelCodeWrapper.java:116)
>  at
> otrack.med.PatientSearchActions.loadPatientDeskTop(PatientSearchActions.
> java:927)
>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>  at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
> a:64)
>  at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
> Impl.java:43)
>  at java.lang.reflect.Method.invoke(Method.java:615)
>  at
> org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.j
> ava:276)
>  at
> org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:196
> )
>  at
> org.apache.struts.action.RequestProcessor.processActionPerform(RequestPr
> ocessor.java:421)
>  at
> org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:
> 226)
>  at
> otrack.med.MtrackRequestProcessor.process(MtrackRequestProcessor.java:47
> 1)
>  at
> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
>  at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
>  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(Applica
> tionFilterChain.java:237)
>  at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
> erChain.java:157)
>  at
> otrack.med.hibernate.HibernateSessionRequestFilter.doFilterInternal(Hibe
> rnateSessionRequestFilter.java:206)
>  at
> org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequ
> estFilter.java:77)
>  at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
> tionFilterChain.java:186)
>  at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
> erChain.java:157)
>  at
> us.sc.state.doc.appsecurity.AppUserFilter.doFilter(AppUserFilter.java:93
> )
>  at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
> tionFilterChain.java:186)
>  at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
> erChain.java:157)
>  at otrack.med.RequestFilter.doFilter(RequestFilter.java:28)
>  at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
> tionFilterChain.java:186)
>  at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
>  erChain.java:157)
>  at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
> e.java:214)
>  at
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
> ntext.java:104)
>  at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
> 20)
>  at
> org.apache.catalina.core.StandardContextValve.invokeInternal(StandardCon
> textValve.java:198)
>  at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
> e.java:152)
>  at
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
> ntext.java:104)
>  at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticator
> Base.java:540)
>  at
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
> ntext.java:102)
>  at
> org.apache.catalina.valves.RequestFilterValve.process(RequestFilterValve
> .java:287)
>  at
> org.apache.catalina.valves.RemoteAddrValve.invoke(RemoteAddrValve.java:8
> 4)
>  at
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
> ntext.java:102)
>  at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
> 20)
>  at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
> :137)
>  at
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
> ntext.java:104)
>  at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
> :118)
>  at
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
> ntext.java:102)
>  at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
> 20)
>  at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
> java:109)
>  at
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
> ntext.java:104)
>  at org.josso.tc50.agent.SSOAgentValve.invoke(SSOAgentValve.java:495)
>  at
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
> ntext.java:102)
>  at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
> 20)
>  at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
>  at
> org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
>  at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:79
> 9)
>  at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC
> onnection(Http11Protocol.java:705)
>  at
> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:57
> 7)
>  at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
> .java:683)
>  at java.lang.Thread.run(Thread.java:803)
>
> Thanks and regards,
> Raghu
>
>
> ----------------------------------------------------------------------
> The information contained in this transmission is intended only for
> the personal and confidential use of the designated recipients named
> herein.  If the reader of this transmission is not the intended
> recipient or an agent responsible for delivering it to the intended
> recipient, you are hereby notified that you have received this
> transmission in error, and that any review, dissemination,
> distribution, or copying of this transmission is strictly prohibited.
> If you have received this communication in error, please notify the
> sender and return and delete the original transmission immediately.
> Thank you.
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message