AW: Tomcat aborts
Hi Anto, the problem only occurs in the production system. Therefore we can't change the JRE easily. But I think we have to. The test system is not affected. Do you have a link that supports your hint regarding to JRE problems? > -Ursprüngliche Nachricht- > Von: Anto Paul [mailto:[EMAIL PROTECTED] > Gesendet am: Freitag, 1. April 2005 14:37 > An: Tomcat Users List > Betreff: Re: Tomcat aborts > > On Apr 1, 2005 5:56 PM, [EMAIL PROTECTED] > <[EMAIL PROTECTED]> wrote: > > Hi, > > > > we are running tomcat 5.0.24 on solaris with Java 1.4.2_05. > > Sometimes tomcat aborts with following informations: > > > > Unexpected Signal : 11 occurred at PC=0xFE4B4590 > > Function=[Unknown. Nearest: > sysThreadAvailableStackWithSlack+0x176F0] > > Library=/usr/j2sdk1.4.2_05/jre/lib/sparc/server/libjvm.so > > > > Dynamic libraries: > > --some libs--- > > > > Heap at VM Abort: > > Heap > > PSYoungGen total 284096K, used 17313K [0xb540, 0xca95, > > 0xca95) > > eden space 8192K, 211% used [0xb540,0xb64e86f8,0xb5c0) > > from space 275904K, 0% used [0xb5c0,0xb5c0,0xc697) > > to space 65408K, 0% used [0xc697,0xc697,0xca95) > > PSOldGentotal 699072K, used 693432K [0xca95, > 0xf540, > > 0xf540) > > object space 699072K, 99% used [0xca95,0xf4e7e1a0,0xf540) > > PSPermGen total 16896K, used 16311K [0xf540, 0xf648, > > 0xf940) > > object space 16896K, 96% used [0xf540,0xf63edca0,0xf648) > > > > Im not familiar with that memory stuff. > > Any ideas? > > > > Cheers Dirk > > > > > > You tried any other versions/vendor of JRE ?. This is problem > with JRE. > -- > Anto Paul > Benchmark Softech > www.benchmarksoft.com > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] >
Re: still not clear with connection pooling in tomcat
hello doug, I am sending the following details on the questions you asked. and thanks for your help. I am using mysql as the database back-end and tomcat version 5. I have the mysql jdbc the latest stable version. and the server is right now going to support a single application but I plan to serve more apps in a few days. Please help me with the info I need. I will be obliged if u could give an example. I am again thankfull to you as you exactly understood my problem and the confusion I faced with the articles on the net. Please provide a servlet based example not a jsp one. thanks again Krishnakant Send instant messages to your online friends http://uk.messenger.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Apache, virtual host and Tomcat
Hi, I would like to run the following configurations with only one machine: 3 domains. Let's name them, www.domain1.com and sthg.domain2.com and www.domain2.com. www.domain1.com runs on 80 using apache and php www.domain2.com runs on 8080 using tomcat, mysql... sthg.domain2.com runs on 443 using apache and php Using the virtual hosts, I managed to set-up successfully www.domain1.com and sthg.domain2.com. I am now trying to include mod_jk, but when doing that, I am loosing the virtual hosts features and all my requests (for all sites) are sent to the tomcat instance (including the https one). Is that possible should probably my first question? Has anyone some experience with a similar set-up? Thanks for your help. David. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Apache, virtual host and Tomcat
Hi, I would like to run the following configurations with only one machine: 3 domains. Let's name them, www.domain1.com and sthg.domain2.com and www.domain2.com. www.domain1.com runs on 80 using apache and php www.domain2.com runs on 8080 using tomcat, mysql... sthg.domain2.com runs on 443 using apache and php Using the virtual hosts, I managed to set-up successfully www.domain1.com and sthg.domain2.com. I am now trying to include mod_jk, but when doing that, I am loosing the virtual hosts features and all my requests (for all sites) are sent to the tomcat instance (including the https one). Is that possible should probably my first question? Has anyone some experience with a similar set-up? Thanks for your help. David. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat shutdown exception
I'm using Tomcat 5.5 (installed as a manually started service) with the latest Axis release as a webapp and have defined a MySQL data source (as a context in server.xml and a resource-ref in the Axis web.xml) with to which an Axis web service (and an ordinary jsp page) can both connect successfully. At the end of my web service I close the Connection Statement, ResultSet and Context instances with no problems - no exceptions are thrown. But, after I have used the MySQL connection in my web service program, Tomcat throws the exception I've added beneath (which doesn't happen e.g. with a jsp page). Does anyone have any idea why this should be happening? Thanks. Madeleine This is the exception thrown when Tomcat closes: INFO: ContextListener: contextDestroyed() - Servlet AxisServlet threw unload() exception javax.servlet.ServletException: Servlet.destroy() for servlet AxisServlet threw exception at org.apache.catalina.core.StandardWrapper.unload(StandardWrapper.java:1306) at org.apache.catalina.core.StandardWrapper.stop(StandardWrapper.java:1646) at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:892) at org.apache.catalina.core.StandardContext.removeChild(StandardContext.java:3025) at org.apache.catalina.startup.ContextConfig.stop(ContextConfig.java:1011) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:253) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4275) at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1063) at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1063) at org.apache.catalina.core.StandardEngine.stop(StandardEngine.java:445) at org.apache.catalina.core.StandardService.stop(StandardService.java:512) at org.apache.catalina.core.StandardServer.stop(StandardServer.java:717) at org.apache.catalina.startup.Catalina.stop(Catalina.java:586) at org.apache.catalina.startup.Catalina.start(Catalina.java:561) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
error on tomcat 5.0.28 after tomcat server reboot
I saw this tomcat error below after we rebooted the two suse linux servers. Has anyboy seen this ? and figured out a fix, and what is this error meanse " BAD PACKET SIGNATURE " THANKS JA [-02 Apr 2005 09:20:21 EST-] [-ERROR-] [-org.apache.tomcat.util.threads.ThreadPool-] - Caught exception (java.lang.NullPointerException) executing [EMAIL PROTECTED], terminating thread [-02 Apr 2005 09:20:30 EST-] [-ERROR-] [-org.apache.catalina.cluster.io.XByteBuffer-] - Discarded the package, invalid header [-02 Apr 2005 09:20:55 EST-] [-ERROR-] [-org.apache.catalina.cluster.io.XByteBuffer-] - Discarded the package, invalid header [-02 Apr 2005 09:20:55 EST-] [-ERROR-] [-org.apache.catalina.cluster.io.XByteBuffer-] - Discarded the package, invalid header [-02 Apr 2005 09:20:55 EST-] [-ERROR-] [-org.apache.catalina.cluster.io.XByteBuffer-] - Discarded the package, invalid header [-02 Apr 2005 09:20:55 EST-] [-ERROR-] [-org.apache.catalina.cluster.io.XByteBuffer-] - Discarded the package, invalid header [-02 Apr 2005 09:20:55 EST-] [-ERROR-] [-org.apache.catalina.cluster.io.XByteBuffer-] - Discarded the package, invalid header [-02 Apr 2005 09:20:55 EST-] [-ERROR-] [-org.apache.catalina.cluster.io.XByteBuffer-] - Discarded the package, invalid header [-02 Apr 2005 09:20:55 EST-] [-ERROR-] [-org.apache.catalina.cluster.io.XByteBuffer-] - Discarded the package, invalid header [-02 Apr 2005 09:21:03 EST-] [-ERROR-] [-org.apache.catalina.cluster.io.XByteBuffer-] - Discarded the package, invalid header [-02 Apr 2005 09:21:03 EST-] [-ERROR-] [-org.apache.catalina.cluster.io.XByteBuffer-] - Discarded the package, invalid header [-02 Apr 2005 09:21:03 EST-] [-ERROR-] [-org.apache.catalina.cluster.io.XByteBuffer-] - Discarded the package, invalid header [-02 Apr 2005 09:21:04 EST-] [-ERROR-] [-org.apache.catalina.cluster.io.XByteBuffer-] - Discarded the package, invalid header [-02 Apr 2005 09:21:04 EST-] [-ERROR-] [-org.apache.catalina.cluster.io.XByteBuffer-] - Discarded the package, invalid header [-02 Apr 2005 09:21:04 EST-] [-ERROR-] [-org.apache.catalina.cluster.io.XByteBuffer-] - Discarded the package, invalid header [-02 Apr 2005 09:21:16 EST-] [-ERROR-] [-org.apache.jk.common.MsgAjp-] - BAD packet signature 200 00 c8 00 00 | .ï¿.. [-02 Apr 2005 09:21:16 EST-] [-ERROR-] [-org.apache.jk.common.MsgAjp-] - BAD packet signature 18245 47 45 54 20 00 00 00 00 00 00 00 00 00 00 00 00 | GET 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Context gets continouosly reloaded
If reloadable=true is set on your Context definition, then I believe any changes inside the WEB-INF/classes and WEB-INF/lib prompt Tomcat to reload the context auto-magically. Set reloadable=false if you want that to stop. -steve On Apr 3, 2005, at 8:46 PM, jesper wrote: Hi Even when there are no changes to web.xml, it reloads the context. Is this supposed to be like that? Regards. - 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]
Context gets continouosly reloaded
Hi Even when there are no changes to web.xml, it reloads the context. Is this supposed to be like that? Regards. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat taking 125 seconds to launch
Okay, what exactly do you guys need? - Original Message - From: "Remy Maucherat" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Sunday, April 03, 2005 2:09 PM Subject: Re: Tomcat taking 125 seconds to launch You didn't post anything really relevant, but maybe it could be caused by the port binding (for some reason). -- x Rémy Maucherat Developer & Consultant JBoss Group (Europe) SàRL 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 taking 125 seconds to launch
On Apr 3, 2005 11:04 PM, Michael Mehrle <[EMAIL PROTECTED]> wrote: > Hi Mark: > > Okay, the machine is a P4, 1GB RAM (512MB assigned to tomcat), and besides > Tomcat 5.5.9, there's Apache running and mysql. Apache is not in use much. I > have the apache logging set to WARN, so the slowdown is not due to excessive > logging. > > The site is running an image gallery and there are probably around 100 jps > for the gallery and image pages. I am not sure if adding jsps does affect > the startup time. > > The configuration is a modified version of appfuse 1.5 (struts and > hibernate) - so this should give you a good idea of how it is structured. > FYI: on my development machine here at home Tomcat starts in 28 seconds - > identical project and configuration. > > Any help would be greatly appreciated - if you need any configuration files, > just ask and I'll email them to you. You didn't post anything really relevant, but maybe it could be caused by the port binding (for some reason). -- x Rémy Maucherat Developer & Consultant JBoss Group (Europe) SàRL x - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat taking 125 seconds to launch
Hi Mark: Okay, the machine is a P4, 1GB RAM (512MB assigned to tomcat), and besides Tomcat 5.5.9, there's Apache running and mysql. Apache is not in use much. I have the apache logging set to WARN, so the slowdown is not due to excessive logging. The site is running an image gallery and there are probably around 100 jps for the gallery and image pages. I am not sure if adding jsps does affect the startup time. The configuration is a modified version of appfuse 1.5 (struts and hibernate) - so this should give you a good idea of how it is structured. FYI: on my development machine here at home Tomcat starts in 28 seconds - identical project and configuration. Any help would be greatly appreciated - if you need any configuration files, just ask and I'll email them to you. Michael - Original Message - From: "Mark" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Sunday, April 03, 2005 1:39 PM Subject: Re: Tomcat taking 125 seconds to launch gonna need more information. hardware, config files..etc. On Apr 2, 2005 6:42 PM, Michael Mehrle <[EMAIL PROTECTED]> wrote: I just installed tomcat 5.5.9 on Fedora FC3 and it's suddenly taking a long amount of time to launch - 125 seconds to be exact! INFO: Starting Coyote HTTP/1.1 on http-8080 Apr 2, 2005 6:39:00 PM org.apache.jk.common.ChannelSocket init INFO: JK: ajp13 listening on /0.0.0.0:8009 Apr 2, 2005 6:39:00 PM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=0/364 config=null Apr 2, 2005 6:39:00 PM org.apache.catalina.storeconfig.StoreLoader load INFO: Find registry server-registry.xml at classpath resource Apr 2, 2005 6:39:00 PM org.apache.catalina.startup.Catalina start INFO: Server startup in 125430 ms I didn't have this problem before - does anyone experience the same delay? It's also looking a bit more sluggish... Any input would be greatly appreciated. Michael - 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 taking 125 seconds to launch
gonna need more information. hardware, config files..etc. On Apr 2, 2005 6:42 PM, Michael Mehrle <[EMAIL PROTECTED]> wrote: > I just installed tomcat 5.5.9 on Fedora FC3 and it's suddenly taking a long > amount of time to launch - 125 seconds to be exact! > > INFO: Starting Coyote HTTP/1.1 on http-8080 > Apr 2, 2005 6:39:00 PM org.apache.jk.common.ChannelSocket init > INFO: JK: ajp13 listening on /0.0.0.0:8009 > Apr 2, 2005 6:39:00 PM org.apache.jk.server.JkMain start > INFO: Jk running ID=0 time=0/364 config=null > Apr 2, 2005 6:39:00 PM org.apache.catalina.storeconfig.StoreLoader load > INFO: Find registry server-registry.xml at classpath resource > Apr 2, 2005 6:39:00 PM org.apache.catalina.startup.Catalina start > INFO: Server startup in 125430 ms > > I didn't have this problem before - does anyone experience the same delay? > It's also looking a bit more sluggish... Any input would be greatly > appreciated. > > Michael > > - > 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: still not clear with connection pooling in tomcat
In the beginning a programmer created ... Seriously it goes like this: To use pooling in Tomcat you can forget a lot of what is in the java api as Tomcat uses this to provide pooling for you. Steps to take: 1.Determine the database you are going to use. 2.Get the JDBC drivers for that database and put them in common/lib 3.Determine if the database pool is going to serve one application or many. 4.If many, set up a Global Resource in server.xml 5.If many, add a resource link to the context for each app 4a. If one, set up a resource in the context. 5a.If one, do nothing. 6.Create a class that makes a call to retrieve the resource from the context. 7.From that resource a datasource is received. 8.Ask for a connection from the datasource. 9.Tomcat will give you a connection from the pool it creates when it sets up the resource. 10.Use this connection as you would one from a datamanager. 11.Close the connection when you are done and Tomcat will put it back in the pool. 12.DO NOT call DataManager as you will bypass the connection pool. Now after reading this, to help us give you more help please fill in the details above on 1,2 and 3. Give us the exact version of Tomcat. And OS version. Doug - Original Message - From: "Krishnakant Mane" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Sunday, April 03, 2005 8:47 AM Subject: RE: still not clear with connection pooling in tomcat hello all, Thanks for your help on this issue. however I still can't get my problem solved. 10 different articles give 10 different solutions. however my problem is simple. I have a streight forward question. I want to implement connection pooling in the tomcat 5 web container and I have the jakarta commons packages as well as the mysql jdbc jar file in the proper place. I found one good example in the tomcat 5 docs, but it talks about an example in jsp. I exclusively use servlets and I want to know how I use connection pooling in the servlet. where do I use the Initial context and where do I initialise it? where will the datasource come into question? and how I use the connection object with the datasource? all this I want to know in context of a servlet not jsp. Please help me and please no more references to other documents I have read enough of those articles and I am getting more and more confused. thanks Krishnakant. Send instant messages to your online friends http://uk.messenger.yahoo.com - 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: [Way off topic] Getting MSOutlook calendar to interface with Tomcat-served data
"Synchronize" as in one-way import/upload from the web server. "Synchronize" as in not duplicating entries. "Synchronize" as in not generating additional entries from events that had been modified; event A originally scheduled for 10:00am is moved to 2:00pm -- ultimate result, a single event scheduled at 2:00, not one at 10:00am and a second at 2:00pm. "Sycnhronize" as in deleting entries that have been marked as such "Synchronize" as in what could be done manually to insure the above conditions: -- Tomcat server generates a feed in iCal/vCal format; each event is tagged with a "category" (let's say "www.cal-site.com/calendar") to distinguish the source -- Outlook user imports the file/feed <<>> -- user, having created a specialized view in Outlook, deletes all calendar entries with category = www.cal-site.com/calendar -- user visits the site and downloads another feed for import == I'd be interested in some details about the COM add-in and what would be necessary on the Tomcat side. Thanks!
RE: still not clear with connection pooling in tomcat
hello all, Thanks for your help on this issue. however I still can't get my problem solved. 10 different articles give 10 different solutions. however my problem is simple. I have a streight forward question. I want to implement connection pooling in the tomcat 5 web container and I have the jakarta commons packages as well as the mysql jdbc jar file in the proper place. I found one good example in the tomcat 5 docs, but it talks about an example in jsp. I exclusively use servlets and I want to know how I use connection pooling in the servlet. where do I use the Initial context and where do I initialise it? where will the datasource come into question? and how I use the connection object with the datasource? all this I want to know in context of a servlet not jsp. Please help me and please no more references to other documents I have read enough of those articles and I am getting more and more confused. thanks Krishnakant. Send instant messages to your online friends http://uk.messenger.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [Way off topic] Getting MSOutlook calendar to interface with Tomcat-served data
> From: Rob Hunt [mailto:[EMAIL PROTECTED] > I'd like to serve calendar/event info to the calendar in MS > Outlook (or is that LookOUT!?). I know that it's possible to > create output that can be "statically" imported, but I'd like > to make it as easy as possible to periodically/on-demand > synchronize Outlook with a Tomcat server. 'Synchronize' as in a one-way download from Tomcat, or as in a two-way process? Outlook 2000+ has the notion of a COM add-in that would work for this - construct such an add-in, give it a property page so that you can configure its Tomcat server, and let it poll every so often. We've done similar work in the past. Will there always be an Exchange server behind this? That would make life a lot easier if there are a significant number of users, as the sync could be done 'behind the scenes' by a daemon running on/near that server. - Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]