tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ktou Ho <hk...@hotmail.com>
Subject RE: Singleton in Tomcat 6.0 not working
Date Thu, 05 Jun 2008 17:23:34 GMT

I got twice of the following:
==============
com.imera.ibc.sql.RemoteDBConnections@bc8e1e
java.lang.Thread.getStackTrace(Thread.java:1426)
com.elwin.RemoteDBConnections.<init>(RemoteDBConnections.java:30)
com.elwin.sql.RemoteDBConnections.<clinit>(RemoteDBConnections.java:22)
com.elwin.ElwinFilter.readConfig(ElwinFilter.java:52)
com.elwin.ElwinFilter.<init>(ElwinFilter.java:31)
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
java.lang.reflect.Constructor.newInstance(Constructor.java:513)
java.lang.Class.newInstance0(Class.java:355)
java.lang.Class.newInstance(Class.java:308)
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:255)
org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397)
org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:108)
org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3709)
org.apache.catalina.core.StandardContext.start(StandardContext.java:4356)
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
org.apache.catalina.core.StandardService.start(StandardService.java:516)
org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
org.apache.catalina.startup.Catalina.start(Catalina.java:578)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:597)
org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
=========
 
Thanks
Elwin> From: Chuck.Caldarale@unisys.com> To: users@tomcat.apache.org> Date: Thu,
5 Jun 2008 12:11:24 -0500> Subject: RE: Singleton in Tomcat 6.0 not working> > >
From: ktou Ho [mailto:hktou@hotmail.com]> > Subject: RE: Singleton in Tomcat 6.0 not
working> >> > Have you tried to put in it the "ROOT"?> > Yes, I've tried
putting it in ROOT, and I get only a single instance, using Tomcat 6.0.16 under JDK 1.6.0_06.>
> For more information, add these lines to your constructor, immediately after printing
out the counter:> > StackTraceElement[] traces = Thread.currentThread().getStackTrace();>
for (StackTraceElement ste : traces) System.out.println(" " + ste);> > This is what
mine displays:> counter = 0> java.lang.Thread.getStackTrace(Thread.java:1426)> RemoteDBConnections.<init>(RemoteDBConnections.java:9)>
RemoteDBConnections.<clinit>(RemoteDBConnections.java:3)> Hello.doGet(Hello.java:84)>
javax.servlet.http.HttpServlet.service(HttpServlet.java:690)> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)>
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)>
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)>
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568)> org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:394)>
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)>
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)>
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)> java.lang.Thread.run(Thread.java:619)>
> I'm not using any filters.> > - Chuck> > > THIS COMMUNICATION MAY CONTAIN
CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended
recipient. If you received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.> > --------------------------------------------------------------------->
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> 
_________________________________________________________________
Now you can invite friends from Facebook and other groups to join you on Windows Liveā„¢ Messenger.
Add now.
https://www.invite2messenger.net/im/?source=TXT_EML_WLH_AddNow_Now
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message