Pb with htc behavior and Tomcat 4.0.1
Hello, We have used htc behaviors to sort an html table. The script is ok with Tomcat 4.0.3, but has problem under Tomcat 4.0.1. Has anybody the same pb ? Thanks. Sylvie ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com ** attachment: winmail.dat-- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE : Pb with htc behavior and Tomcat 4.0.1
I've found this message in the archives : chris brown Tomcat Users List [EMAIL PROTECTED] mailto:Tomcat%20Users%20List%22%20%3ctomcat-user%40jakarta.apache.org Fri Jan 11 06:12:46 2002 Got it working, thanks to a bit of hard work and the advice on this list... In $TOMCAT_HOME/conf/web.xml, add the following mime-mapping: mime-mapping extensionhtc/extension mime-typetext/plain/mime-type /mime-mapping Don't forget to restart tomcat afterwards obviously! -Chris And this seems to be ok !!! Sylvie . -Message d'origine- De : PALLUEL Sylvie [mailto:[EMAIL PROTECTED]] Envoyé : mardi 7 janvier 2003 09:06 À : [EMAIL PROTECTED] Objet : Pb with htc behavior and Tomcat 4.0.1 Hello, We have used htc behaviors to sort an html table. The script is ok with Tomcat 4.0.3, but has problem under Tomcat 4.0.1. Has anybody the same pb ? Thanks. Sylvie ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com ** attachment: winmail.dat-- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: enterprises that use Tomcat as Web Server.
In regard to your query I'm sure you would understand if I pointed out that most commercially owned businesses are quite sensitive about telling anybody outside of their organisation any details of their computer infrastructure and especially a public interface of their computer infrastructure like a web server. I am sure you are not looking for this information to help you hack in to companies but I assure you it would be useful to many internet hackers. For this reason alone I don't see you getting many responses to your query. On the other hand you can test the make of any web server by downloading a program like visual route (http://www.visualware.com/visualroute/index.html) and typing in the name of a domain whose web server you wan to know the type of. Regards, Andoni. - Original Message - From: Sérgio Rocha [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, January 06, 2003 4:37 PM Subject: enterprises that use Tomcat as Web Server. I need a list of enterprises that use Tomcat as Web Server. Can someboby help me? _ MSN Hotmail, o maior webmail do Brasil. http://www.hotmail.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
tomcat 4.1.12 just stopped working, help !
Hi all Some time during christmas Tomcat 4.1.12 stopped working for me, I don´t know why, thought anyone here might have a clue. This is what I know: If I start tomcat with .../bin/startup.sh and then run a portscan I can see: 8009/tcp openajp13 8080/tcp openhttp-proxy So evidently something happens ;) But if I try to access http://my.ip:8080/index.wml (or just http://my.ip:8080) I don´t get any answer at all, it seems totally dead. If I then stop Tomcat (.../bin/shutdown.sh) and run a portscan the services on ports 8009 and 8080 are gone. But if I directly run .../bin/catalina.sh run I get this: (if someone can get any clue from this) [root@star bin]# ./catalina.sh run Using CATALINA_BASE: /etc/jakarta-tomcat-4.1.12 Using CATALINA_HOME: /etc/jakarta-tomcat-4.1.12 Using CATALINA_TMPDIR: /etc/jakarta-tomcat-4.1.12/temp Using JAVA_HOME: /usr/java/j2sdk1.4.1 Jan 7, 2003 9:40:58 AM org.apache.commons.modeler.Registry loadRegistry INFO: Loading registry information Jan 7, 2003 9:40:58 AM org.apache.commons.modeler.Registry getRegistry INFO: Creating new Registry instance Jan 7, 2003 9:41:03 AM org.apache.commons.modeler.Registry getServer INFO: Creating MBeanServer Starting service Tomcat-Standalone Apache Tomcat/4.1.12 Jan 7, 2003 9:47:29 AM org.apache.commons.digester.Digester error SEVERE: Parse Error at line 114 column 15: The content of element type servlet must match (icon?,servlet-name,display-name?,description?,(servlet-class|jsp-file),init-param*,load-on-startup?,run-as?,security-role-ref*). org.xml.sax.SAXParseException: The content of element type servlet must match (icon?,servlet-name,display-name?,description?,(servlet-class|jsp-file),init-param*,load-on-startup?,run-as?,security-role-ref*). at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:232) at org.apache.xerces.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:173) at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:362) at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:296) at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(XMLDTDValidator.java:1953) at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(XMLDTDValidator.java:878) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.handleEndElement(XMLDocumentFragmentScannerImpl.java:1144) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:987) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1445) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:333) at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:524) at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:580) at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152) at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1169) at org.apache.commons.digester.Digester.parse(Digester.java:1495) at org.apache.catalina.startup.ContextConfig.applicationConfig(ContextConfig.java:282) at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:639) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:243) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3493) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardHost.start(StandardHost.java:738) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347) at org.apache.catalina.core.StandardService.start(StandardService.java:497) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2189) at org.apache.catalina.startup.Catalina.start(Catalina.java:510) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) Jan 7, 2003 9:47:29 AM org.apache.commons.digester.Digester error SEVERE: Parse Error at line 120 column 15: The content of element type servlet must match
Re: tomcat 4.1.12 just stopped working, help !
Hmm, it looks like an error in the web.xml of a certain app. Did you by any chance change the web.xml of any of your web applications ? [EMAIL PROTECTED] wrote: Hi all Some time during christmas Tomcat 4.1.12 stopped working for me, I don´t know why, thought anyone here might have a clue. This is what I know: If I start tomcat with .../bin/startup.sh and then run a portscan I can see: 8009/tcp openajp13 8080/tcp openhttp-proxy So evidently something happens ;) But if I try to access http://my.ip:8080/index.wml (or just http://my.ip:8080) I don´t get any answer at all, it seems totally dead. If I then stop Tomcat (.../bin/shutdown.sh) and run a portscan the services on ports 8009 and 8080 are gone. But if I directly run .../bin/catalina.sh run I get this: (if someone can get any clue from this) [root@star bin]# ./catalina.sh run Using CATALINA_BASE: /etc/jakarta-tomcat-4.1.12 Using CATALINA_HOME: /etc/jakarta-tomcat-4.1.12 Using CATALINA_TMPDIR: /etc/jakarta-tomcat-4.1.12/temp Using JAVA_HOME: /usr/java/j2sdk1.4.1 Jan 7, 2003 9:40:58 AM org.apache.commons.modeler.Registry loadRegistry INFO: Loading registry information Jan 7, 2003 9:40:58 AM org.apache.commons.modeler.Registry getRegistry INFO: Creating new Registry instance Jan 7, 2003 9:41:03 AM org.apache.commons.modeler.Registry getServer INFO: Creating MBeanServer Starting service Tomcat-Standalone Apache Tomcat/4.1.12 Jan 7, 2003 9:47:29 AM org.apache.commons.digester.Digester error SEVERE: Parse Error at line 114 column 15: The content of element type servlet must match (icon?,servlet-name,display-name?,description?,(servlet-class|jsp-file),init-param*,load-on-startup?,run-as?,security-role-ref*). org.xml.sax.SAXParseException: The content of element type servlet must match (icon?,servlet-name,display-name?,description?,(servlet-class|jsp-file),init-param*,load-on-startup?,run-as?,security-role-ref*). at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:232) at org.apache.xerces.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:173) at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:362) at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:296) at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(XMLDTDValidator.java:1953) at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(XMLDTDValidator.java:878) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.handleEndElement(XMLDocumentFragmentScannerImpl.java:1144) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:987) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1445) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:333) at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:524) at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:580) at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152) at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1169) at org.apache.commons.digester.Digester.parse(Digester.java:1495) at org.apache.catalina.startup.ContextConfig.applicationConfig(ContextConfig.java:282) at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:639) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:243) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3493) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardHost.start(StandardHost.java:738) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347) at org.apache.catalina.core.StandardService.start(StandardService.java:497) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2189) at org.apache.catalina.startup.Catalina.start(Catalina.java:510) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) Jan 7, 2003 9:47:29 AM
SV: tomcat 4.1.12 just stopped working, help !
Hehe, not that I know of ;)) Well there is a web.xml in .../conf/ and additional web.xml in every catalog in .../webapps/ so is there any good way of finding out in which the error occurs ? -Ursprungligt meddelande- Från: Peng Tuck Kwok [mailto:[EMAIL PROTECTED]] Skickat: den 7 januari 2003 09:54 Till: Tomcat Users List Ämne: Re: tomcat 4.1.12 just stopped working, help ! Hmm, it looks like an error in the web.xml of a certain app. Did you by any chance change the web.xml of any of your web applications ? [EMAIL PROTECTED] wrote: Hi all Some time during christmas Tomcat 4.1.12 stopped working for me, I don´t know why, thought anyone here might have a clue. This is what I know: If I start tomcat with .../bin/startup.sh and then run a portscan I can see: 8009/tcp openajp13 8080/tcp openhttp-proxy So evidently something happens ;) But if I try to access http://my.ip:8080/index.wml (or just http://my.ip:8080) I don´t get any answer at all, it seems totally dead. If I then stop Tomcat (.../bin/shutdown.sh) and run a portscan the services on ports 8009 and 8080 are gone. But if I directly run .../bin/catalina.sh run I get this: (if someone can get any clue from this) [root@star bin]# ./catalina.sh run Using CATALINA_BASE: /etc/jakarta-tomcat-4.1.12 Using CATALINA_HOME: /etc/jakarta-tomcat-4.1.12 Using CATALINA_TMPDIR: /etc/jakarta-tomcat-4.1.12/temp Using JAVA_HOME: /usr/java/j2sdk1.4.1 Jan 7, 2003 9:40:58 AM org.apache.commons.modeler.Registry loadRegistry INFO: Loading registry information Jan 7, 2003 9:40:58 AM org.apache.commons.modeler.Registry getRegistry INFO: Creating new Registry instance Jan 7, 2003 9:41:03 AM org.apache.commons.modeler.Registry getServer INFO: Creating MBeanServer Starting service Tomcat-Standalone Apache Tomcat/4.1.12 Jan 7, 2003 9:47:29 AM org.apache.commons.digester.Digester error SEVERE: Parse Error at line 114 column 15: The content of element type servlet must match (icon?,servlet-name,display-name?,description?,(servlet-class|jsp-file),init-param*,load-on-startup?,run-as?,security-role-ref*). org.xml.sax.SAXParseException: The content of element type servlet must match (icon?,servlet-name,display-name?,description?,(servlet-class|jsp-file),init-param*,load-on-startup?,run-as?,security-role-ref*). at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:232) at org.apache.xerces.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:173) at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:362) at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:296) at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(XMLDTDValidator.java:1953) at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(XMLDTDValidator.java:878) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.handleEndElement(XMLDocumentFragmentScannerImpl.java:1144) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:987) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1445) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:333) at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:524) at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:580) at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152) at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1169) at org.apache.commons.digester.Digester.parse(Digester.java:1495) at org.apache.catalina.startup.ContextConfig.applicationConfig(ContextConfig.java:282) at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:639) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:243) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3493) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardHost.start(StandardHost.java:738) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347) at org.apache.catalina.core.StandardService.start(StandardService.java:497) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2189) at org.apache.catalina.startup.Catalina.start(Catalina.java:510) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at
Re: tomcat 4.1.12 just stopped working, help !
Whats about using a tool like XML Spy. With this one you can check, if the web.xml files are well formed and valid. Valid means, that they match the rules defined in the web-app_2_3.dtd, which seems to be the problem in that case. HTH Holger - Original Message - From: Peng Tuck Kwok [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, January 07, 2003 9:53 AM Subject: Re: tomcat 4.1.12 just stopped working, help ! Hmm, it looks like an error in the web.xml of a certain app. Did you by any chance change the web.xml of any of your web applications ? [EMAIL PROTECTED] wrote: Hi all Some time during christmas Tomcat 4.1.12 stopped working for me, I don´t know why, thought anyone here might have a clue. This is what I know: If I start tomcat with .../bin/startup.sh and then run a portscan I can see: 8009/tcp openajp13 8080/tcp openhttp-proxy So evidently something happens ;) But if I try to access http://my.ip:8080/index.wml (or just http://my.ip:8080) I don´t get any answer at all, it seems totally dead. If I then stop Tomcat (.../bin/shutdown.sh) and run a portscan the services on ports 8009 and 8080 are gone. But if I directly run .../bin/catalina.sh run I get this: (if someone can get any clue from this) [root@star bin]# ./catalina.sh run Using CATALINA_BASE: /etc/jakarta-tomcat-4.1.12 Using CATALINA_HOME: /etc/jakarta-tomcat-4.1.12 Using CATALINA_TMPDIR: /etc/jakarta-tomcat-4.1.12/temp Using JAVA_HOME: /usr/java/j2sdk1.4.1 Jan 7, 2003 9:40:58 AM org.apache.commons.modeler.Registry loadRegistry INFO: Loading registry information Jan 7, 2003 9:40:58 AM org.apache.commons.modeler.Registry getRegistry INFO: Creating new Registry instance Jan 7, 2003 9:41:03 AM org.apache.commons.modeler.Registry getServer INFO: Creating MBeanServer Starting service Tomcat-Standalone Apache Tomcat/4.1.12 Jan 7, 2003 9:47:29 AM org.apache.commons.digester.Digester error SEVERE: Parse Error at line 114 column 15: The content of element type servlet must match (icon?,servlet-name,display-name?,description?,(servlet-class|jsp-file),ini t-param*,load-on-startup?,run-as?,security-role-ref*). org.xml.sax.SAXParseException: The content of element type servlet must match (icon?,servlet-name,display-name?,description?,(servlet-class|jsp-file),ini t-param*,load-on-startup?,run-as?,security-role-ref*). at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(ErrorHand lerWrapper.java:232) at org.apache.xerces.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:17 3) at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:36 2) at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:29 6) at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(XMLDTDValidator. java:1953) at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(XMLDTDValidator.java:8 78) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.handleEndElement(XMLDo cumentFragmentScannerImpl.java:1144) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocu mentFragmentScannerImpl.java:987) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc her.dispatch(XMLDocumentFragmentScannerImpl.java:1445) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocume ntFragmentScannerImpl.java:333) at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:524) at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:580) at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152) at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:116 9) at org.apache.commons.digester.Digester.parse(Digester.java:1495) at org.apache.catalina.startup.ContextConfig.applicationConfig(ContextConfig.ja va:282) at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:639) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java: 243) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor t.java:166) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3493) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardHost.start(StandardHost.java:738) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347) at org.apache.catalina.core.StandardService.start(StandardService.java:497) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2189) at
RE: TOMCAT Not listening on 80
Yes I think I did that too but still I get those page not found on the default port 80/examples/jsp directory. In my previous mail I have attached the files could you pl. check them for the corrections you guys have told me. BTW: I unsubscribed yesterday after getting Jan's email as my inbox was overwhelmed by so many emails. I have subscribed again and hope I will get the solution today.:-) ~Vivek -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Monday, January 06, 2003 7:04 PM To: 'Tomcat Users List' Subject: RE: TOMCAT Not listening on 80 Did you include a LoadModule line in Apache's config to load mod_jk? You cannot use JK commands in httpd.conf unless you load a module that understands them. Perhaps you might want to take a step back, tell us more specifically what you want to do, and perhaps consider setting up a test environment that is not on a production server so that you can understand how to integrate Tomcat with Apache without interfering with your colleague's use of your bugzilla installation. John -Original Message- From: Vivek Singh [mailto:[EMAIL PROTECTED]] Sent: Monday, January 06, 2003 6:43 AM To: 'Tomcat Users List' Subject: RE: TOMCAT Not listening on 80 John, I don't remember doing any of these JkMount directives, I did not find any reference to this in your website, so there you go :-) And I had created a mod_jk.conf file in the path you had told and included it at the end of httpd.conf, It had some autogenerated stuff in it put in my tomcat when I checked it later on.. After that when I tried restarting apache it gave me this error too and did not come up. Invalid command 'JkWorkersFile', perhaps mis-spelled or defined by a module not included in the server configuration Then I echoed blanks in the file and Apache restared pretty well and tomcat did not listen on 80. So let me give a try adding all this... ~vivek -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Monday, January 06, 2003 4:48 PM To: ''Tomcat Users List' ' Subject: RE: TOMCAT Not listening on 80 If you're saying that Apache's httpd.conf has no JkMount directives for JK, then yes, your setup will never work. If you've setup auto-generation according to my HOWTO, you can check your Apache config prior to a restart as specified in my HOWTO, with: /path/to/apache/bin/apachectl configtest provided you have an Include statement that includes mod_jk.conf. If you do have an Include statement, then you can simply restart Apache nicely with: /path/to/apache/bin/apachectl graceful This will cause Apache to refuse new connection requests, wait until all current connection requests are closed, and then reread httpd.conf. It all happens in a second or two, it is highly doubtful that anyone would even notice. John -Original Message- From: Vivek Singh To: 'Tomcat Users List' Sent: 1/6/03 6:04 AM Subject: RE: TOMCAT Not listening on 80 Won't stop it!! My team members will kill me if I stop it. I believe one of the reasons why Tomcat cannot communicate with Apache is that I have no virtual host thing going. I might be wrong What do you think? ~Vivek -Original Message- From: Donie Kelly [mailto:[EMAIL PROTECTED]] Sent: Monday, January 06, 2003 4:19 PM To: 'Tomcat Users List' Subject: RE: TOMCAT Not listening on 80 When you say you can't stop it do you mean won't stop it? or you are unable to stop it? Donie -Original Message- From: Vivek Singh [mailto:[EMAIL PROTECTED]] Sent: 06 January 2003 10:52 To: 'Tomcat Users List' Subject: TOMCAT Not listening on 80 Hi, I did exactly as in the John Turner's website, Apache 1.3.27 with mod_jk and tomcat 4.1.18. To sum up here is what is happening 1. I already have a Bugzilla running on my server at port80. Can't stop it 2. At port 8080 I can see Tomcat listening. I need it on 80 ( Apache is running here) Can anyone help me? Thanks a lot in Advance and thanks John mail for Host Container clarifications ~Vivek -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Wipro_Disclaimer.txt ATT128036.txt -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] **Disclaimer Information contained in this E-MAIL being proprietary to Wipro Limited is 'privileged' and 'confidential' and intended for use only by the individual or entity to which it is addressed. You are notified that any use, copying or dissemination of the information contained in the
SV: tomcat 4.1.12 just stopped working, help !
I checked the .../webapps/examples/WEB-INF/web.xml and I checked line 115 as suggested in the log, I found some servlets that I had added and removed these lines just to get Tomcat working again, but it still doesn´t work. So now when I run .../bin/catalina.sh run I get this: [root@star bin]# ./catalina.sh run Using CATALINA_BASE: /etc/jakarta-tomcat-4.1.12 Using CATALINA_HOME: /etc/jakarta-tomcat-4.1.12 Using CATALINA_TMPDIR: /etc/jakarta-tomcat-4.1.12/temp Using JAVA_HOME: /usr/java/j2sdk1.4.1 Jan 7, 2003 10:25:49 AM org.apache.commons.modeler.Registry loadRegistry INFO: Loading registry information Jan 7, 2003 10:25:49 AM org.apache.commons.modeler.Registry getRegistry INFO: Creating new Registry instance Jan 7, 2003 10:25:53 AM org.apache.commons.modeler.Registry getServer INFO: Creating MBeanServer Jan 7, 2003 10:25:58 AM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on port 8080 Starting service Tomcat-Standalone Apache Tomcat/4.1.12 Jan 7, 2003 10:26:29 AM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on port 8080 Jan 7, 2003 10:26:29 AM org.apache.jk.common.ChannelSocket init INFO: JK2: ajp13 listening on tcp port 8009 Jan 7, 2003 10:26:29 AM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=6/291 config=/etc/jakarta-tomcat-4.1.12/conf/jk2.properties I still don´t get any answer from port 8080 :(( /Dan -Ursprungligt meddelande- Från: Manavendra Gupta [mailto:[EMAIL PROTECTED]] Skickat: den 7 januari 2003 23:42 Till: Tomcat Users List Ämne: Re: tomcat 4.1.12 just stopped working, help ! As the log suggests, the deployment descriptor of the servlet does not conform to the DTD : The content of element type servlet must match (icon?,servlet-name,display-name?,description?,(servlet-class|jsp-file),ini t-param*,load-on-startup?,run-as?,security-role-ref*). Check the web.xml file for the last few servlets you deployed. The descriptor elements should occur in the same order as mentioned above. ~Manav. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, January 07, 2003 12:44 AM Subject: tomcat 4.1.12 just stopped working, help ! Hi all Some time during christmas Tomcat 4.1.12 stopped working for me, I don´t know why, thought anyone here might have a clue. This is what I know: If I start tomcat with .../bin/startup.sh and then run a portscan I can see: 8009/tcp openajp13 8080/tcp openhttp-proxy So evidently something happens ;) But if I try to access http://my.ip:8080/index.wml (or just http://my.ip:8080) I don´t get any answer at all, it seems totally dead. If I then stop Tomcat (.../bin/shutdown.sh) and run a portscan the services on ports 8009 and 8080 are gone. But if I directly run .../bin/catalina.sh run I get this: (if someone can get any clue from this) [root@star bin]# ./catalina.sh run Using CATALINA_BASE: /etc/jakarta-tomcat-4.1.12 Using CATALINA_HOME: /etc/jakarta-tomcat-4.1.12 Using CATALINA_TMPDIR: /etc/jakarta-tomcat-4.1.12/temp Using JAVA_HOME: /usr/java/j2sdk1.4.1 Jan 7, 2003 9:40:58 AM org.apache.commons.modeler.Registry loadRegistry INFO: Loading registry information Jan 7, 2003 9:40:58 AM org.apache.commons.modeler.Registry getRegistry INFO: Creating new Registry instance Jan 7, 2003 9:41:03 AM org.apache.commons.modeler.Registry getServer INFO: Creating MBeanServer Starting service Tomcat-Standalone Apache Tomcat/4.1.12 Jan 7, 2003 9:47:29 AM org.apache.commons.digester.Digester error SEVERE: Parse Error at line 114 column 15: The content of element type servlet must match (icon?,servlet-name,display-name?,description?,(servlet-class|jsp-file),ini t-param*,load-on-startup?,run-as?,security-role-ref*). org.xml.sax.SAXParseException: The content of element type servlet must match (icon?,servlet-name,display-name?,description?,(servlet-class|jsp-file),ini t-param*,load-on-startup?,run-as?,security-role-ref*). at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(ErrorHand lerWrapper.java:232) at org.apache.xerces.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:17 3) at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:36 2) at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:29 6) at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(XMLDTDValidator. java:1953) at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(XMLDTDValidator.java:8 78) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.handleEndElement(XMLDo cumentFragmentScannerImpl.java:1144) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocu mentFragmentScannerImpl.java:987) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc her.dispatch(XMLDocumentFragmentScannerImpl.java:1445) at
Tomcat and java.nio
For those who haven't experienced the joys of java.nio yet, I highly recomend it. Not only do you get performance advantages, but it's easier to use, too, in my opinion. Speaking of which... If I have a servlet which I want to use to send a file straight from disk to the browser, right now it seems like the best way to do that is to get a FileChannel for the file, read it into a buffer, and send that buffer out to the outputstream from Request.getOutputStream(). It seems that it would be much nicer and more efficient if there were a Request.getChannel() type of method, so I could use the highly-efficient FileChannel.transferTo() method. Using that method, the file could be transfered straight from the disk to the network, possibly never leaving kernel space and possibly never being copied (depending on OS). Perhaps Tomcat could serve static content as quickly as its native C competitors (Apache). Is this something which might appear in future releases of the Servlet API? I hope so. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: RE: TOMCAT Not listening on 80 John-Turner/Jan-Michael/seemanto/Donie/Anyone....
Hi Guys, Here is what is happening now with very precise info. I think I was dealing at a very high level so far. . I am running apache 1.3.19 + tomcat 4.1.18 and modjk 1.2.1 I have given the URL down from where I got the entire .so module,no building was done just a copy from Jakarta web site to the apache module directory. Now this is the picture on the linux server. http://192.168.132.34 is a test page from apache. http://192.168.132.34/bugzilla is a perl-CGI application sitting on port 80. http://192.168.132.34:8080 tomcat's page http://192.168.132.34:8080/examples/jsp/index.html shows me JSP samples. They execute very well http://192.168.132.34:8080/examples/servlets/index.html shows me servelets they execute very well. PAGE NOT FOUND ERRORS for http://192.168.132.34/examples/jsp/index.html http://192.168.132.34/examples/servlets/index.htm; Pl. Look for- comments. I am attaching all the configs file as mentioned by Jan/John. The mod_jk.conf file is always empty after I deleted the contents,since I assumed that it would be autogenrated. But it never did. I edited the contents of server.xml and insered workers.properties from John's website, Just retyping the URL again.. http://www.johnturner.com/howto/apache2-tomcat4110-jk-howto.html Thanks Again. Hope to hear a LOT!! ~Vivek -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, January 06, 2003 9:44 PM To: Tomcat Users List Subject: Re: RE: TOMCAT Not listening on 80 Hi there, Hi vivek, John Turner's suggestion is right on. Try setting it up on a development box first. This will save you and your colleagues a lot of headaches later on. Besides it is good practice. But here are some pointers. I have shifted the Bugzilla MySQL DB on a different box and ghosted the server too so I damn well have a contingency plan. Haven't I. Let's not worry about it anymore If anything goes crazy I will ghost it again. -- 1. Log in as root or su to it su - - one of the reasons why I write to user groups :-) -- 2. Search for perl which perl or whereis perl This should return /usr/bin/perl or /usr/local/bin/perl -- /usr/bin/perl -- 3. Check the version /path/to/perl -V Note this version -- 5.6.0 -- 4. Search for apachectl cd / ; find . -local -name 'apachectl' -print This might take a while but should list where apachectl is located - I had apache 1.3.27 from redhat and unluckily rpm does not install bin directory anywhere. SO I use servie httpd restart,stop,start and etc to reread httpd.conf. But wait I did find this file in one of the oracle 9i home ./home/oracle/product/9.0.1/Apache/Apache/bin/apachectl on the same machine, yeah the big box runs almost everything. oracle 9i uses this for it's web applications on this server. So I ran this file with configtest,it said Syntax OK. I did a more on it as well and it uses 'bash' as the interpreter. (( I see where the perl thing came from :-) 4a. Search for workers.properties cd / ; find . -local -name 'workers.properties' -print Note this location as this is what you'll put in JkWorkersFile later on - /usr/local/jakarta-tomcat-4.1.18/conf/jk/workers.properties I typed everything from John Turner's site accordingly, changed the path of module as far as I know it well. I had to create this directory jk after after I learned I require it BTW: -local gave invalid predicate on my linux RH 7.1 - 5. Run apachectl configtest /path/to/apachectl configtest It should return 'Syntax OK' if everything is okay. If it returns 'not found' check to make sure that the first line of apachectl is your perl binary IT did OK --- more apachectl #!/path/to/perl -- should match step 2 no that's sh in oracle's apache(not on the port 80) 6. Check to make sure that you have the Tomcat connectors installed and search for mod_jk.so (JK1 I think) this should be in $APACHE_HOME/libexec --- I did not make this module but downloaded it from Jakarta.apache.org. It was readymade as I did not find any src or binary to build it. Here is the link from which I got it. I simply copied it to the /etc/httpd/modules where other apache modules are. http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1 .2.1/bin/linux/i386/ I downloaded mod_jk-1.3-eapi.so as per the instruction on this page. 7. There should be a couple of lines in your httpd conf along the following LoadModule libexec/mod_jk.so ... [snip] ... AddModule mod_jk.so I also did add these line in httpd.conf, I added the Addmodule line after reading point 7, but it was mod_jk.c not .so - Read more on these directives on the apache website httpd.apache.org 8. Check apache's config
RE: RE: TOMCAT Not listening on 80 John-Turner/Jan-Michael/seemanto/Donie/Anyone....
Hi , I just noticed that when I try opening the server XML file I get this error. End tag 'Host' does not match the start tag 'Engine'. Line 388, Position 9 /Host ^ Any feedback!! Regards ~Vivek -Original Message- From: Vivek Singh [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 07, 2003 2:56 PM To: 'Tomcat Users List' Subject: RE: RE: TOMCAT Not listening on 80 John-Turner/Jan-Michael/seemanto/Donie/Anyone Hi Guys, Here is what is happening now with very precise info. I think I was dealing at a very high level so far. . I am running apache 1.3.19 + tomcat 4.1.18 and modjk 1.2.1 I have given the URL down from where I got the entire .so module,no building was done just a copy from Jakarta web site to the apache module directory. Now this is the picture on the linux server. http://192.168.132.34 is a test page from apache. http://192.168.132.34/bugzilla is a perl-CGI application sitting on port 80. http://192.168.132.34:8080 tomcat's page http://192.168.132.34:8080/examples/jsp/index.html shows me JSP samples. They execute very well http://192.168.132.34:8080/examples/servlets/index.html shows me servelets they execute very well. PAGE NOT FOUND ERRORS for http://192.168.132.34/examples/jsp/index.html http://192.168.132.34/examples/servlets/index.htm; Pl. Look for- comments. I am attaching all the configs file as mentioned by Jan/John. The mod_jk.conf file is always empty after I deleted the contents,since I assumed that it would be autogenrated. But it never did. I edited the contents of server.xml and insered workers.properties from John's website, Just retyping the URL again.. http://www.johnturner.com/howto/apache2-tomcat4110-jk-howto.html Thanks Again. Hope to hear a LOT!! ~Vivek -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, January 06, 2003 9:44 PM To: Tomcat Users List Subject: Re: RE: TOMCAT Not listening on 80 Hi there, Hi vivek, John Turner's suggestion is right on. Try setting it up on a development box first. This will save you and your colleagues a lot of headaches later on. Besides it is good practice. But here are some pointers. I have shifted the Bugzilla MySQL DB on a different box and ghosted the server too so I damn well have a contingency plan. Haven't I. Let's not worry about it anymore If anything goes crazy I will ghost it again. -- 1. Log in as root or su to it su - - one of the reasons why I write to user groups :-) -- 2. Search for perl which perl or whereis perl This should return /usr/bin/perl or /usr/local/bin/perl -- /usr/bin/perl -- 3. Check the version /path/to/perl -V Note this version -- 5.6.0 -- 4. Search for apachectl cd / ; find . -local -name 'apachectl' -print This might take a while but should list where apachectl is located - I had apache 1.3.27 from redhat and unluckily rpm does not install bin directory anywhere. SO I use servie httpd restart,stop,start and etc to reread httpd.conf. But wait I did find this file in one of the oracle 9i home ./home/oracle/product/9.0.1/Apache/Apache/bin/apachectl on the same machine, yeah the big box runs almost everything. oracle 9i uses this for it's web applications on this server. So I ran this file with configtest,it said Syntax OK. I did a more on it as well and it uses 'bash' as the interpreter. (( I see where the perl thing came from :-) 4a. Search for workers.properties cd / ; find . -local -name 'workers.properties' -print Note this location as this is what you'll put in JkWorkersFile later on - /usr/local/jakarta-tomcat-4.1.18/conf/jk/workers.properties I typed everything from John Turner's site accordingly, changed the path of module as far as I know it well. I had to create this directory jk after after I learned I require it BTW: -local gave invalid predicate on my linux RH 7.1 - 5. Run apachectl configtest /path/to/apachectl configtest It should return 'Syntax OK' if everything is okay. If it returns 'not found' check to make sure that the first line of apachectl is your perl binary IT did OK --- more apachectl #!/path/to/perl -- should match step 2 no that's sh in oracle's apache(not on the port 80) 6. Check to make sure that you have the Tomcat connectors installed and search for mod_jk.so (JK1 I think) this should be in $APACHE_HOME/libexec --- I did not make this module but downloaded it from Jakarta.apache.org. It was readymade as I did not find any src or binary to build it. Here is the link from which I got it. I simply copied it to the /etc/httpd/modules where other apache modules are. http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1
Re: SV: tomcat 4.1.12 just stopped working, help !
If you are sure that is the xml in question, can you forward it to the list so we can have a look? [EMAIL PROTECTED] wrote: I checked the .../webapps/examples/WEB-INF/web.xml and I checked line 115 as suggested in the log, I found some servlets that I had added and removed these lines just to get Tomcat working again, but it still doesn´t work. So now when I run .../bin/catalina.sh run I get this: [root@star bin]# ./catalina.sh run Using CATALINA_BASE: /etc/jakarta-tomcat-4.1.12 Using CATALINA_HOME: /etc/jakarta-tomcat-4.1.12 Using CATALINA_TMPDIR: /etc/jakarta-tomcat-4.1.12/temp Using JAVA_HOME: /usr/java/j2sdk1.4.1 Jan 7, 2003 10:25:49 AM org.apache.commons.modeler.Registry loadRegistry INFO: Loading registry information Jan 7, 2003 10:25:49 AM org.apache.commons.modeler.Registry getRegistry INFO: Creating new Registry instance Jan 7, 2003 10:25:53 AM org.apache.commons.modeler.Registry getServer INFO: Creating MBeanServer Jan 7, 2003 10:25:58 AM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on port 8080 Starting service Tomcat-Standalone Apache Tomcat/4.1.12 Jan 7, 2003 10:26:29 AM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on port 8080 Jan 7, 2003 10:26:29 AM org.apache.jk.common.ChannelSocket init INFO: JK2: ajp13 listening on tcp port 8009 Jan 7, 2003 10:26:29 AM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=6/291 config=/etc/jakarta-tomcat-4.1.12/conf/jk2.properties I still don´t get any answer from port 8080 :(( /Dan -Ursprungligt meddelande- Från: Manavendra Gupta [mailto:[EMAIL PROTECTED]] Skickat: den 7 januari 2003 23:42 Till: Tomcat Users List Ämne: Re: tomcat 4.1.12 just stopped working, help ! As the log suggests, the deployment descriptor of the servlet does not conform to the DTD : The content of element type servlet must match (icon?,servlet-name,display-name?,description?,(servlet-class|jsp-file),ini t-param*,load-on-startup?,run-as?,security-role-ref*). Check the web.xml file for the last few servlets you deployed. The descriptor elements should occur in the same order as mentioned above. ~Manav. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, January 07, 2003 12:44 AM Subject: tomcat 4.1.12 just stopped working, help ! Hi all Some time during christmas Tomcat 4.1.12 stopped working for me, I don´t know why, thought anyone here might have a clue. This is what I know: If I start tomcat with .../bin/startup.sh and then run a portscan I can see: 8009/tcp openajp13 8080/tcp openhttp-proxy So evidently something happens ;) But if I try to access http://my.ip:8080/index.wml (or just http://my.ip:8080) I don´t get any answer at all, it seems totally dead. If I then stop Tomcat (.../bin/shutdown.sh) and run a portscan the services on ports 8009 and 8080 are gone. But if I directly run .../bin/catalina.sh run I get this: (if someone can get any clue from this) [root@star bin]# ./catalina.sh run Using CATALINA_BASE: /etc/jakarta-tomcat-4.1.12 Using CATALINA_HOME: /etc/jakarta-tomcat-4.1.12 Using CATALINA_TMPDIR: /etc/jakarta-tomcat-4.1.12/temp Using JAVA_HOME: /usr/java/j2sdk1.4.1 Jan 7, 2003 9:40:58 AM org.apache.commons.modeler.Registry loadRegistry INFO: Loading registry information Jan 7, 2003 9:40:58 AM org.apache.commons.modeler.Registry getRegistry INFO: Creating new Registry instance Jan 7, 2003 9:41:03 AM org.apache.commons.modeler.Registry getServer INFO: Creating MBeanServer Starting service Tomcat-Standalone Apache Tomcat/4.1.12 Jan 7, 2003 9:47:29 AM org.apache.commons.digester.Digester error SEVERE: Parse Error at line 114 column 15: The content of element type servlet must match (icon?,servlet-name,display-name?,description?,(servlet-class|jsp-file),ini t-param*,load-on-startup?,run-as?,security-role-ref*). org.xml.sax.SAXParseException: The content of element type servlet must match (icon?,servlet-name,display-name?,description?,(servlet-class|jsp-file),ini t-param*,load-on-startup?,run-as?,security-role-ref*). at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(ErrorHand lerWrapper.java:232) at org.apache.xerces.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:17 3) at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:36 2) at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:29 6) at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(XMLDTDValidator. java:1953) at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(XMLDTDValidator.java:8 78) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.handleEndElement(XMLDo cumentFragmentScannerImpl.java:1144) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocu mentFragmentScannerImpl.java:987) at
File classes12.zip for Oracle on Tomcat ...
Hello, Where must I put the file classes12.zip on Tomcat (4.0.1 and 4.0.03) to be able to use the Oracle Jdbc driver ? Sylvie. ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com ** attachment: winmail.dat-- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Remote debugging - JDeveloper3.2
Hi, I am in the process of moving to tomcat 4.1.18 from 3.3. In 3.3 I was able to debug the servlets with JDeveloper 3.2 by adding the following arguments to the JAVA command line: -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=4000 -Xdebug -Xnoagent -Djava.compiler=NONE. However, when using tomcat 4.1.18, this does not work. I connect to the process, but catalina shuts down with no error message. Anyone have a clue ? 10x, Yuval -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
[LAXMIAKNTH] - MEMORY USAGE
Hi all, I have installed jdk1.3/apache1.3.27/tomcat4.1.12 in RH Linux 7.1.. If I see the process most of the memory more than 80% is occupied by jdk1.3 and so the system is slow and sites which are running there is slowwhat may be the reason thanks in advance Regards Laxmikanth M S Off : 91-80-6610330 extn 1256 http://www.sonata-software.com Coming together is the beginning, staying together is progress and working together is Success What lies behind us and what lies before us are tiny matters compared to what lies within us - Emerson * Disclaimer: The information in this e-mail and any attachments is confidential / privileged. It is intended solely for the addressee or addressees. If you are not the addressee indicated in this message, you may not copy or deliver this message to anyone. In such case, you should destroy this message and kindly notify the sender by reply email. Please advise immediately if you or your employer does not consent to Internet email for messages of this kind. * -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: File classes12.zip for Oracle on Tomcat ...
Sylvie, You should rename classes12.zip to classes12.jar (a simple rename will do). Then place the jar in your %CATALINA_HOME%/common/lib directory will safice. regards, Dave - Original Message - From: PALLUEL Sylvie [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, January 07, 2003 8:42 PM Subject: File classes12.zip for Oracle on Tomcat ... Hello, Where must I put the file classes12.zip on Tomcat (4.0.1 and 4.0.03) to be able to use the Oracle Jdbc driver ? Sylvie. ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com ** -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
reply soon
Hi This is the first time i am using this server.Kindly let me the following 1. where we put servlet files and class files . 2. where we put JSP and HTML files to excute. reply ASAP Bye Ashok -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: tomcat 4.1.12 just stopped working, help !
Or use cooktop if you don't have XML Spy Cheers Kevin -Original Message- From: Holger Brozio [mailto:[EMAIL PROTECTED]] Sent: 07 January 2003 09:14 To: Tomcat Users List Subject: Re: tomcat 4.1.12 just stopped working, help ! Whats about using a tool like XML Spy. With this one you can check, if the web.xml files are well formed and valid. Valid means, that they match the rules defined in the web-app_2_3.dtd, which seems to be the problem in that case. HTH Holger - Original Message - From: Peng Tuck Kwok [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, January 07, 2003 9:53 AM Subject: Re: tomcat 4.1.12 just stopped working, help ! Hmm, it looks like an error in the web.xml of a certain app. Did you by any chance change the web.xml of any of your web applications ? [EMAIL PROTECTED] wrote: Hi all Some time during christmas Tomcat 4.1.12 stopped working for me, I don´t know why, thought anyone here might have a clue. This is what I know: If I start tomcat with .../bin/startup.sh and then run a portscan I can see: 8009/tcp openajp13 8080/tcp openhttp-proxy So evidently something happens ;) But if I try to access http://my.ip:8080/index.wml (or just http://my.ip:8080) I don´t get any answer at all, it seems totally dead. If I then stop Tomcat (.../bin/shutdown.sh) and run a portscan the services on ports 8009 and 8080 are gone. But if I directly run .../bin/catalina.sh run I get this: (if someone can get any clue from this) [root@star bin]# ./catalina.sh run Using CATALINA_BASE: /etc/jakarta-tomcat-4.1.12 Using CATALINA_HOME: /etc/jakarta-tomcat-4.1.12 Using CATALINA_TMPDIR: /etc/jakarta-tomcat-4.1.12/temp Using JAVA_HOME: /usr/java/j2sdk1.4.1 Jan 7, 2003 9:40:58 AM org.apache.commons.modeler.Registry loadRegistry INFO: Loading registry information Jan 7, 2003 9:40:58 AM org.apache.commons.modeler.Registry getRegistry INFO: Creating new Registry instance Jan 7, 2003 9:41:03 AM org.apache.commons.modeler.Registry getServer INFO: Creating MBeanServer Starting service Tomcat-Standalone Apache Tomcat/4.1.12 Jan 7, 2003 9:47:29 AM org.apache.commons.digester.Digester error SEVERE: Parse Error at line 114 column 15: The content of element type servlet must match (icon?,servlet-name,display-name?,description?,(servlet-class|jsp-file),ini t-param*,load-on-startup?,run-as?,security-role-ref*). org.xml.sax.SAXParseException: The content of element type servlet must match (icon?,servlet-name,display-name?,description?,(servlet-class|jsp-file),ini t-param*,load-on-startup?,run-as?,security-role-ref*). at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(ErrorHand lerWrapper.java:232) at org.apache.xerces.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:17 3) at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:36 2) at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:29 6) at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(XMLDTDValidator. java:1953) at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(XMLDTDValidator.java:8 78) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.handleEndElement(XMLDo cumentFragmentScannerImpl.java:1144) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocu mentFragmentScannerImpl.java:987) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc her.dispatch(XMLDocumentFragmentScannerImpl.java:1445) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocume ntFragmentScannerImpl.java:333) at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:524) at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:580) at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152) at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:116 9) at org.apache.commons.digester.Digester.parse(Digester.java:1495) at org.apache.catalina.startup.ContextConfig.applicationConfig(ContextConfig.ja va:282) at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:639) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java: 243) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor t.java:166) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3493) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardHost.start(StandardHost.java:738) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
RE: RE: TOMCAT Not listening on 80 John/Jan-Michael/seemanto/Donie/....
Hi Guys, Here is what is happening now with very precise info. I think I was dealing at a very high level so far. . I am running apache 1.3.19 + tomcat 4.1.18 and modjk 1.2.1 I have given the URL down from where I got the entire .so module,no building was done just a copy from Jakarta web site to the apache module directory. Now this is the picture on the linux server. http://192.168.132.34 is a test page from apache. http://192.168.132.34/bugzilla is a perl-CGI application sitting on port 80. http://192.168.132.34:8080 tomcat's page http://192.168.132.34:8080/examples/jsp/index.html shows me JSP samples. They execute very well http://192.168.132.34:8080/examples/servlets/index.html shows me servelets they execute very well. PAGE NOT FOUND ERRORS for http://192.168.132.34/examples/jsp/index.html http://192.168.132.34/examples/servlets/index.htm; Pl. Look for- comments. I am attaching all the configs file as mentioned by Jan/John. The mod_jk.conf file is always empty after I deleted the contents,since I assumed that it would be autogenrated. But it never did. I edited the contents of server.xml and insered workers.properties from John's website, Just retyping the URL again.. http://www.johnturner.com/howto/apache2-tomcat4110-jk-howto.html Thanks Again. Hope to hear a LOT!! ~Vivek -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, January 06, 2003 9:44 PM To: Tomcat Users List Subject: Re: RE: TOMCAT Not listening on 80 Hi there, Hi vivek, John Turner's suggestion is right on. Try setting it up on a development box first. This will save you and your colleagues a lot of headaches later on. Besides it is good practice. But here are some pointers. I have shifted the Bugzilla MySQL DB on a different box and ghosted the server too . so I damn well have a contingency plan. Haven't I. Let's not worry about it anymore If anything goes crazy I will ghost it again. -- 1. Log in as root or su to it su - - one of the reasons why I write to user groups :-) -- 2. Search for perl which perl or whereis perl This should return /usr/bin/perl or /usr/local/bin/perl -- /usr/bin/perl -- 3. Check the version /path/to/perl -V Note this version -- 5.6.0 -- 4. Search for apachectl cd / ; find . -local -name 'apachectl' -print This might take a while but should list where apachectl is located - I had apache 1.3.27 from redhat and unluckily rpm does not install bin directory anywhere. SO I use servie httpd restart,stop,start and etc to reread httpd.conf. But wait I did find this file in one of the oracle 9i home ./home/oracle/product/9.0.1/Apache/Apache/bin/apachectl on the same machine, yeah the big box runs almost everything. oracle 9i uses this for it's web applications on this server. So I ran this file with configtest,it said Syntax OK. I did a more on it as well and it uses 'bash' as the interpreter. (( I see where the perl thing came from :-) 4a. Search for workers.properties cd / ; find . -local -name 'workers.properties' -print Note this location as this is what you'll put in JkWorkersFile later on - /usr/local/jakarta-tomcat-4.1.18/conf/jk/workers.properties I typed everything from John Turner's site accordingly, changed the path of module as far as I know it well. I had to create this directory jk after after I learned I require it BTW: -local gave invalid predicate on my linux RH 7.1 - 5. Run apachectl configtest /path/to/apachectl configtest It should return 'Syntax OK' if everything is okay. If it returns 'not found' check to make sure that the first line of apachectl is your perl binary IT did OK --- more apachectl #!/path/to/perl -- should match step 2 no that's sh in oracle's apache(not on the port 80) 6. Check to make sure that you have the Tomcat connectors installed and search for mod_jk.so (JK1 I think) this should be in $APACHE_HOME/libexec --- I did not make this module but downloaded it from Jakarta.apache.org. It was readymade as I did not find any src or binary to build it. Here is the link from which I got it. I simply copied it to the /etc/httpd/modules where other apache modules are. http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1 .2.1/bin/linux/i386/ I downloaded mod_jk-1.3-eapi.so as per the instruction on this page. 7. There should be a couple of lines in your httpd conf along the following LoadModule libexec/mod_jk.so ... [snip] ... AddModule mod_jk.so I also did add these line in httpd.conf, I added the Addmodule line after reading point 7, but it was mod_jk.c not .so - Read more on these directives on the apache website httpd.apache.org 8. Check apache's config and
Re: tomcat 4.1.12 just stopped working, help !
You said your tomcat stopped working somewhere around christmas. What were the last servlets you deployed and in what contexts? Or is that /examples is the only context that you have? ~manav. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, January 07, 2003 1:18 AM Subject: SV: tomcat 4.1.12 just stopped working, help ! I checked the .../webapps/examples/WEB-INF/web.xml and I checked line 115 as suggested in the log, I found some servlets that I had added and removed these lines just to get Tomcat working again, but it still doesn´t work. So now when I run .../bin/catalina.sh run I get this: [root@star bin]# ./catalina.sh run Using CATALINA_BASE: /etc/jakarta-tomcat-4.1.12 Using CATALINA_HOME: /etc/jakarta-tomcat-4.1.12 Using CATALINA_TMPDIR: /etc/jakarta-tomcat-4.1.12/temp Using JAVA_HOME: /usr/java/j2sdk1.4.1 Jan 7, 2003 10:25:49 AM org.apache.commons.modeler.Registry loadRegistry INFO: Loading registry information Jan 7, 2003 10:25:49 AM org.apache.commons.modeler.Registry getRegistry INFO: Creating new Registry instance Jan 7, 2003 10:25:53 AM org.apache.commons.modeler.Registry getServer INFO: Creating MBeanServer Jan 7, 2003 10:25:58 AM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on port 8080 Starting service Tomcat-Standalone Apache Tomcat/4.1.12 Jan 7, 2003 10:26:29 AM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on port 8080 Jan 7, 2003 10:26:29 AM org.apache.jk.common.ChannelSocket init INFO: JK2: ajp13 listening on tcp port 8009 Jan 7, 2003 10:26:29 AM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=6/291 config=/etc/jakarta-tomcat-4.1.12/conf/jk2.properties I still don´t get any answer from port 8080 :(( /Dan -Ursprungligt meddelande- Från: Manavendra Gupta [mailto:[EMAIL PROTECTED]] Skickat: den 7 januari 2003 23:42 Till: Tomcat Users List Ämne: Re: tomcat 4.1.12 just stopped working, help ! As the log suggests, the deployment descriptor of the servlet does not conform to the DTD : The content of element type servlet must match (icon?,servlet-name,display-name?,description?,(servlet-class|jsp-file),ini t-param*,load-on-startup?,run-as?,security-role-ref*). Check the web.xml file for the last few servlets you deployed. The descriptor elements should occur in the same order as mentioned above. ~Manav. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, January 07, 2003 12:44 AM Subject: tomcat 4.1.12 just stopped working, help ! Hi all Some time during christmas Tomcat 4.1.12 stopped working for me, I don´t know why, thought anyone here might have a clue. This is what I know: If I start tomcat with .../bin/startup.sh and then run a portscan I can see: 8009/tcp openajp13 8080/tcp openhttp-proxy So evidently something happens ;) But if I try to access http://my.ip:8080/index.wml (or just http://my.ip:8080) I don´t get any answer at all, it seems totally dead. If I then stop Tomcat (.../bin/shutdown.sh) and run a portscan the services on ports 8009 and 8080 are gone. But if I directly run .../bin/catalina.sh run I get this: (if someone can get any clue from this) [root@star bin]# ./catalina.sh run Using CATALINA_BASE: /etc/jakarta-tomcat-4.1.12 Using CATALINA_HOME: /etc/jakarta-tomcat-4.1.12 Using CATALINA_TMPDIR: /etc/jakarta-tomcat-4.1.12/temp Using JAVA_HOME: /usr/java/j2sdk1.4.1 Jan 7, 2003 9:40:58 AM org.apache.commons.modeler.Registry loadRegistry INFO: Loading registry information Jan 7, 2003 9:40:58 AM org.apache.commons.modeler.Registry getRegistry INFO: Creating new Registry instance Jan 7, 2003 9:41:03 AM org.apache.commons.modeler.Registry getServer INFO: Creating MBeanServer Starting service Tomcat-Standalone Apache Tomcat/4.1.12 Jan 7, 2003 9:47:29 AM org.apache.commons.digester.Digester error SEVERE: Parse Error at line 114 column 15: The content of element type servlet must match (icon?,servlet-name,display-name?,description?,(servlet-class|jsp-file),ini t-param*,load-on-startup?,run-as?,security-role-ref*). org.xml.sax.SAXParseException: The content of element type servlet must match (icon?,servlet-name,display-name?,description?,(servlet-class|jsp-file),ini t-param*,load-on-startup?,run-as?,security-role-ref*). at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(ErrorHand lerWrapper.java:232) at org.apache.xerces.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:17 3) at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:36 2) at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:29 6) at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(XMLDTDValidator. java:1953) at
Build Tomcat 4.0.4 on a Tru64 box
I am trying to build a Tomcat 4.0.4 distribution on a Tru64 4.0F box. I downloaded file jakarta-tomcat-4.0.4-src.tar I downloaded and installed all the packages quoted in file BUILDING.txt I edited the build.properties file to fit my environment. I tried to build the distribution and it failed. I enclose the full output from the command. Any hint? Gustavo Avitabile main.chemistry.unina.it ant dist Buildfile: build.xml deploy-prepare: deploy-static: deploy: [echo] Target: Catalina - Deploy ... flags: flags.display: [echo] --- Build environment for Catalina --- [echo] If ${property_name} is displayed, then the property is not set) [echo] --- Build options --- [echo] full.dist=${full.dist} [echo] build.sysclasspath=${build.sysclasspath} [echo] compile.debug=on [echo] compile.deprecation=off [echo] compile.optimize=on [echo] --- Ant Flags --- [echo] style task available (required)=true [echo] --- JDK --- [echo] jdk.1.2.present=true [echo] jdk.1.3.present=true [echo] jdk.1.4.present=${jdk.1.4.present} [echo] --- Required Libraries --- [echo] jaxp.present=true [echo] jndi.present=true [echo] regexp.present=true [echo] servlet.present=true [echo] --- Optional Libraries --- [echo] javamail.present=true [echo] jsse.present=${jsse.present} [echo] jta.present=true [echo] junit.present=${junit.present} [echo] ldap.present=true [echo] tyrex.present=${tyrex.present} [echo] --- Required JARs --- [echo] jndi.jar.present(except JDK 1.3+)=true [echo] regexp.jar.present=true [echo] servlet.jar.present=true [echo] xerces.jar.present(except JDK 1.4+)=true [echo] --- Optional JARs --- [echo] tomcat-ajp.jar.present=true [echo] javamail.jar.present=true [echo] jdbc20ext.jar.present=true [echo] jta.jar.present=true [echo] junit.jar.present=${junit.jar.present} [echo] ldap.jar.present=true [echo] tomcat-util.jar.present=true [echo] tyrex.jar.present=${tyrex.jar.present} [echo] --- Conditional compilation flags --- [echo] compile.javamail=true [echo] compile.jmx=true [echo] compile.jndi=true [echo] compile.jsse=${compile.jsse} [echo] compile.jta=true [echo] compile.junit=${compile.junit} [echo] compile.ldap=true [echo] compile.tyrex=${compile.tyrex} [echo] --- Distribution flags --- [echo] copy.tomcat-ajp.jar=true [echo] copy.jdbc20ext.jar=true [echo] copy.jndi.jar=${copy.jndi.jar} [echo] copy.javamail.jar=true [echo] copy.jta.jar=true [echo] copy.ldap.jar=${copy.ldap.jar} [echo] copy.tyrex.jar=${copy.tyrex.jar} [echo] copy.xerces.jar=true build-prepare: copy-activation.jar: copy-tomcat-ajp.jar: copy-tomcat-coyote.jar: copy-jdbc20ext.jar: copy-jndi.jar: copy-jsse.jar: copy-jta.jar: copy-ldap.jar: copy-tomcat-util.jar: copy-tyrex.jar: copy-xerces.jar: build-static: build-main: [javac] Compiling 4 source files to /d2/apache/avitab/jakarta-tomcat-4.0.4-src/catalina/build/server/classes deploy-prepare: deploy-static: deploy: [jar] Building jar: /d2/apache/avitab/jakarta-tomcat-4.0.4-src/build/bin/bootstrap.jar [jar] Building jar: /d2/apache/avitab/jakarta-tomcat-4.0.4-src/build/server/lib/catalina.jar [echo] Target: Jasper - Deploy ... build-prepare: build-static: build-main: deploy-prepare: deploy-static: deploy: [echo] Target: Webapps - Deploy ... build-prepare: ROOT: build-prepare: build-static: build-main: dist-prepare: dist: examples: flags: build-prepare: build-static: build-main: dist-prepare: dist: manager: build-prepare: build-static: build-main: dist-prepare: dist: tomcat-docs: build-prepare: build-static: build-main: [style] Transforming into /d2/apache/avitab/jakarta-tomcat-4.0.4-src/webapps/build/tomcat-docs [style] Transforming into /d2/apache/avitab/jakarta-tomcat-4.0.4-src/webapps/build/tomcat-docs [style] Loading stylesheet /d2/apache/avitab/jakarta-tomcat-4.0.4-src/webapps/tomcat-docs/tomcat-docs.xsl BUILD FAILED java.lang.NoClassDefFoundError: org/w3c/dom/traversal/NodeIterator at java.lang.Class.forName0 (Class.java) at java.lang.Class.forName(java.lang.String) (Class.java:120) (pc 5) at org.apache.xml.utils.ObjectPool.init(java.lang.String) (ObjectPool.java:100) (pc 6) at org.apache.xalan.transformer.TransformerImpl.init (TransformerImpl.java:236) (pc 53) at org.apache.xalan.templates.StylesheetRoot.newTransformer (StylesheetRoot.java:175) (pc 5) at org.apache.tools.ant.taskdefs.optional.TraXLiaison.setStylesheet (TraXLiaison.java:112) (pc 50) at org.apache.tools.ant.taskdefs.XSLTProcess.configureLiaison (XSLTProcess.java:459) (pc 42) at
RE: RE: TOMCAT Not listening on 80 John-Turner/Jan-Michael/seemanto/Donie/Anyone....
Yeah, your server.xml file is screwed up, which is why you aren't getting anything in mod_jk.conf, which is why Apache doesn't have any JK directives, which is why Apache doesn't understand what to do with JSP and servlet URLs. Fix your server.xml, sounds like you have a tag out of place or you have a tag terminated incorrectly. If everything is fixed, you WILL ALWAYS get content in mod_jk.conf. If you don't, if mod_jk.conf is empty, there is something seriously wrong on the Tomcat side in server.xml. You can always just add the JK directives to httpd.conf directly, there is a link to a mod_jk.conf file on my site that has what you need or will at least provide a guideline. John -Original Message- From: Vivek Singh To: 'Tomcat Users List'; [EMAIL PROTECTED] Sent: 1/7/03 4:35 AM Subject: RE: RE: TOMCAT Not listening on 80 John-Turner/Jan-Michael/seemanto/Donie/Anyone Hi , I just noticed that when I try opening the server XML file I get this error. End tag 'Host' does not match the start tag 'Engine'. Line 388, Position 9 /Host ^ Any feedback!! Regards ~Vivek -Original Message- From: Vivek Singh [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 07, 2003 2:56 PM To: 'Tomcat Users List' Subject: RE: RE: TOMCAT Not listening on 80 John-Turner/Jan-Michael/seemanto/Donie/Anyone Hi Guys, Here is what is happening now with very precise info. I think I was dealing at a very high level so far. . I am running apache 1.3.19 + tomcat 4.1.18 and modjk 1.2.1 I have given the URL down from where I got the entire .so module,no building was done just a copy from Jakarta web site to the apache module directory. Now this is the picture on the linux server. http://192.168.132.34 is a test page from apache. http://192.168.132.34/bugzilla is a perl-CGI application sitting on port 80. http://192.168.132.34:8080 tomcat's page http://192.168.132.34:8080/examples/jsp/index.html shows me JSP samples. They execute very well http://192.168.132.34:8080/examples/servlets/index.html shows me servelets they execute very well. PAGE NOT FOUND ERRORS for http://192.168.132.34/examples/jsp/index.html http://192.168.132.34/examples/servlets/index.htm; Pl. Look for- comments. I am attaching all the configs file as mentioned by Jan/John. The mod_jk.conf file is always empty after I deleted the contents,since I assumed that it would be autogenrated. But it never did. I edited the contents of server.xml and insered workers.properties from John's website, Just retyping the URL again.. http://www.johnturner.com/howto/apache2-tomcat4110-jk-howto.html Thanks Again. Hope to hear a LOT!! ~Vivek -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, January 06, 2003 9:44 PM To: Tomcat Users List Subject: Re: RE: TOMCAT Not listening on 80 Hi there, Hi vivek, John Turner's suggestion is right on. Try setting it up on a development box first. This will save you and your colleagues a lot of headaches later on. Besides it is good practice. But here are some pointers. I have shifted the Bugzilla MySQL DB on a different box and ghosted the server too so I damn well have a contingency plan. Haven't I. Let's not worry about it anymore If anything goes crazy I will ghost it again. -- 1. Log in as root or su to it su - - one of the reasons why I write to user groups :-) -- 2. Search for perl which perl or whereis perl This should return /usr/bin/perl or /usr/local/bin/perl -- /usr/bin/perl -- 3. Check the version /path/to/perl -V Note this version -- 5.6.0 -- 4. Search for apachectl cd / ; find . -local -name 'apachectl' -print This might take a while but should list where apachectl is located - I had apache 1.3.27 from redhat and unluckily rpm does not install bin directory anywhere. SO I use servie httpd restart,stop,start and etc to reread httpd.conf. But wait I did find this file in one of the oracle 9i home ./home/oracle/product/9.0.1/Apache/Apache/bin/apachectl on the same machine, yeah the big box runs almost everything. oracle 9i uses this for it's web applications on this server. So I ran this file with configtest,it said Syntax OK. I did a more on it as well and it uses 'bash' as the interpreter. (( I see where the perl thing came from :-) 4a. Search for workers.properties cd / ; find . -local -name 'workers.properties' -print Note this location as this is what you'll put in JkWorkersFile later on - /usr/local/jakarta-tomcat-4.1.18/conf/jk/workers.properties I typed everything from John Turner's site accordingly, changed the path of module as far as I know it well. I had to create this directory jk after after I learned I require it BTW: -local gave invalid predicate on my linux RH 7.1
RE: reply soon
Please read the documentation soon. John -Original Message- From: ashok kumar To: [EMAIL PROTECTED] Sent: 1/6/03 11:17 PM Subject: reply soon Hi This is the first time i am using this server.Kindly let me the following 1. where we put servlet files and class files . 2. where we put JSP and HTML files to excute. reply ASAP Bye Ashok -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: tomcat 4.1.12 just stopped working, help !
Hi, I had similar problem but not exactly the same. Please refer to my yesterdays mail for a possible solution.. regards, Keshav - Original Message - From: Manavendra Gupta [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, January 08, 2003 5:32 AM Subject: Re: tomcat 4.1.12 just stopped working, help ! You said your tomcat stopped working somewhere around christmas. What were the last servlets you deployed and in what contexts? Or is that /examples is the only context that you have? ~manav. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, January 07, 2003 1:18 AM Subject: SV: tomcat 4.1.12 just stopped working, help ! I checked the .../webapps/examples/WEB-INF/web.xml and I checked line 115 as suggested in the log, I found some servlets that I had added and removed these lines just to get Tomcat working again, but it still doesn´t work. So now when I run .../bin/catalina.sh run I get this: [root@star bin]# ./catalina.sh run Using CATALINA_BASE: /etc/jakarta-tomcat-4.1.12 Using CATALINA_HOME: /etc/jakarta-tomcat-4.1.12 Using CATALINA_TMPDIR: /etc/jakarta-tomcat-4.1.12/temp Using JAVA_HOME: /usr/java/j2sdk1.4.1 Jan 7, 2003 10:25:49 AM org.apache.commons.modeler.Registry loadRegistry INFO: Loading registry information Jan 7, 2003 10:25:49 AM org.apache.commons.modeler.Registry getRegistry INFO: Creating new Registry instance Jan 7, 2003 10:25:53 AM org.apache.commons.modeler.Registry getServer INFO: Creating MBeanServer Jan 7, 2003 10:25:58 AM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on port 8080 Starting service Tomcat-Standalone Apache Tomcat/4.1.12 Jan 7, 2003 10:26:29 AM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on port 8080 Jan 7, 2003 10:26:29 AM org.apache.jk.common.ChannelSocket init INFO: JK2: ajp13 listening on tcp port 8009 Jan 7, 2003 10:26:29 AM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=6/291 config=/etc/jakarta-tomcat-4.1.12/conf/jk2.properties I still don´t get any answer from port 8080 :(( /Dan -Ursprungligt meddelande- Från: Manavendra Gupta [mailto:[EMAIL PROTECTED]] Skickat: den 7 januari 2003 23:42 Till: Tomcat Users List Ämne: Re: tomcat 4.1.12 just stopped working, help ! As the log suggests, the deployment descriptor of the servlet does not conform to the DTD : The content of element type servlet must match (icon?,servlet-name,display-name?,description?,(servlet-class|jsp-file),ini t-param*,load-on-startup?,run-as?,security-role-ref*). Check the web.xml file for the last few servlets you deployed. The descriptor elements should occur in the same order as mentioned above. ~Manav. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, January 07, 2003 12:44 AM Subject: tomcat 4.1.12 just stopped working, help ! Hi all Some time during christmas Tomcat 4.1.12 stopped working for me, I don´t know why, thought anyone here might have a clue. This is what I know: If I start tomcat with .../bin/startup.sh and then run a portscan I can see: 8009/tcp openajp13 8080/tcp openhttp-proxy So evidently something happens ;) But if I try to access http://my.ip:8080/index.wml (or just http://my.ip:8080) I don´t get any answer at all, it seems totally dead. If I then stop Tomcat (.../bin/shutdown.sh) and run a portscan the services on ports 8009 and 8080 are gone. But if I directly run .../bin/catalina.sh run I get this: (if someone can get any clue from this) [root@star bin]# ./catalina.sh run Using CATALINA_BASE: /etc/jakarta-tomcat-4.1.12 Using CATALINA_HOME: /etc/jakarta-tomcat-4.1.12 Using CATALINA_TMPDIR: /etc/jakarta-tomcat-4.1.12/temp Using JAVA_HOME: /usr/java/j2sdk1.4.1 Jan 7, 2003 9:40:58 AM org.apache.commons.modeler.Registry loadRegistry INFO: Loading registry information Jan 7, 2003 9:40:58 AM org.apache.commons.modeler.Registry getRegistry INFO: Creating new Registry instance Jan 7, 2003 9:41:03 AM org.apache.commons.modeler.Registry getServer INFO: Creating MBeanServer Starting service Tomcat-Standalone Apache Tomcat/4.1.12 Jan 7, 2003 9:47:29 AM org.apache.commons.digester.Digester error SEVERE: Parse Error at line 114 column 15: The content of element type servlet must match (icon?,servlet-name,display-name?,description?,(servlet-class|jsp-file),ini t-param*,load-on-startup?,run-as?,security-role-ref*). org.xml.sax.SAXParseException: The content of element type servlet must match (icon?,servlet-name,display-name?,description?,(servlet-class|jsp-file),ini t-param*,load-on-startup?,run-as?,security-role-ref*). at
SV: tomcat 4.1.12 just stopped working, help !
Hmm, I just got enlisted on this mailinglist so I don´t have yesterdays mail from it. Is there an archive from yesterday, or maybe you could mail me the thread ? /D -Ursprungligt meddelande- Från: Keshava Murthy [mailto:[EMAIL PROTECTED]] Skickat: den 7 januari 2003 12:21 Till: Tomcat Users List Ämne: Re: tomcat 4.1.12 just stopped working, help ! Hi, I had similar problem but not exactly the same. Please refer to my yesterdays mail for a possible solution.. regards, Keshav - Original Message - From: Manavendra Gupta [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, January 08, 2003 5:32 AM Subject: Re: tomcat 4.1.12 just stopped working, help ! You said your tomcat stopped working somewhere around christmas. What were the last servlets you deployed and in what contexts? Or is that /examples is the only context that you have? ~manav. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, January 07, 2003 1:18 AM Subject: SV: tomcat 4.1.12 just stopped working, help ! I checked the .../webapps/examples/WEB-INF/web.xml and I checked line 115 as suggested in the log, I found some servlets that I had added and removed these lines just to get Tomcat working again, but it still doesn´t work. So now when I run .../bin/catalina.sh run I get this: [root@star bin]# ./catalina.sh run Using CATALINA_BASE: /etc/jakarta-tomcat-4.1.12 Using CATALINA_HOME: /etc/jakarta-tomcat-4.1.12 Using CATALINA_TMPDIR: /etc/jakarta-tomcat-4.1.12/temp Using JAVA_HOME: /usr/java/j2sdk1.4.1 Jan 7, 2003 10:25:49 AM org.apache.commons.modeler.Registry loadRegistry INFO: Loading registry information Jan 7, 2003 10:25:49 AM org.apache.commons.modeler.Registry getRegistry INFO: Creating new Registry instance Jan 7, 2003 10:25:53 AM org.apache.commons.modeler.Registry getServer INFO: Creating MBeanServer Jan 7, 2003 10:25:58 AM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on port 8080 Starting service Tomcat-Standalone Apache Tomcat/4.1.12 Jan 7, 2003 10:26:29 AM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on port 8080 Jan 7, 2003 10:26:29 AM org.apache.jk.common.ChannelSocket init INFO: JK2: ajp13 listening on tcp port 8009 Jan 7, 2003 10:26:29 AM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=6/291 config=/etc/jakarta-tomcat-4.1.12/conf/jk2.properties I still don´t get any answer from port 8080 :(( /Dan -Ursprungligt meddelande- Från: Manavendra Gupta [mailto:[EMAIL PROTECTED]] Skickat: den 7 januari 2003 23:42 Till: Tomcat Users List Ämne: Re: tomcat 4.1.12 just stopped working, help ! As the log suggests, the deployment descriptor of the servlet does not conform to the DTD : The content of element type servlet must match (icon?,servlet-name,display-name?,description?,(servlet-class|jsp-file),ini t-param*,load-on-startup?,run-as?,security-role-ref*). Check the web.xml file for the last few servlets you deployed. The descriptor elements should occur in the same order as mentioned above. ~Manav. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, January 07, 2003 12:44 AM Subject: tomcat 4.1.12 just stopped working, help ! Hi all Some time during christmas Tomcat 4.1.12 stopped working for me, I don´t know why, thought anyone here might have a clue. This is what I know: If I start tomcat with .../bin/startup.sh and then run a portscan I can see: 8009/tcp openajp13 8080/tcp openhttp-proxy So evidently something happens ;) But if I try to access http://my.ip:8080/index.wml (or just http://my.ip:8080) I don´t get any answer at all, it seems totally dead. If I then stop Tomcat (.../bin/shutdown.sh) and run a portscan the services on ports 8009 and 8080 are gone. But if I directly run .../bin/catalina.sh run I get this: (if someone can get any clue from this) [root@star bin]# ./catalina.sh run Using CATALINA_BASE: /etc/jakarta-tomcat-4.1.12 Using CATALINA_HOME: /etc/jakarta-tomcat-4.1.12 Using CATALINA_TMPDIR: /etc/jakarta-tomcat-4.1.12/temp Using JAVA_HOME: /usr/java/j2sdk1.4.1 Jan 7, 2003 9:40:58 AM org.apache.commons.modeler.Registry loadRegistry INFO: Loading registry information Jan 7, 2003 9:40:58 AM org.apache.commons.modeler.Registry getRegistry INFO: Creating new Registry instance Jan 7, 2003 9:41:03 AM org.apache.commons.modeler.Registry getServer INFO: Creating MBeanServer Starting service Tomcat-Standalone Apache Tomcat/4.1.12 Jan 7, 2003 9:47:29 AM org.apache.commons.digester.Digester error SEVERE: Parse Error at line 114 column 15: The content of element type servlet must match (icon?,servlet-name,display-name?,description?,(servlet-class|jsp-file),ini
[LAXMIKANTH] Help Needed
Hi , The below details shows the result of top command in my Linux Server... Server Details Pentium 233 MMX 128 MB RAM 125 processes: 124 sleeping, 1 running, 0 zombie, 0 stopped CPU states: 1.2% user, 7.1% system, 0.0% nice, 91.5% idle Mem: 126712K av, 124328K used,2384K free, 0K shrd,5148K buff Swap: 265032K av, 264K used, 264768K free 59680K cached * Disclaimer: The information in this e-mail and any attachments is confidential / privileged. It is intended solely for the addressee or addressees. If you are not the addressee indicated in this message, you may not copy or deliver this message to anyone. In such case, you should destroy this message and kindly notify the sender by reply email. Please advise immediately if you or your employer does not consent to Internet email for messages of this kind. * -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Accessing Secured Site from within Tomcat.
Hi Everyone! Greetings! I have a problems with Tomcat (4.0.4) while accessing a secured site from inside a JSP or Servlet. Please find the code (JSP) below. However, when I execute the code as a standalone Java Program, I get the expected result. But inside Tomcat, I get unknown protocol: https error. 1. I put the three jar files in common/lib folder of Tocmat. 2. I added the security provider. (com.sun.net.ssl.internal.ssl.Provider) 3. Set the required System properties. I expect you'll help me to get out this problem. Thanks and Regards, Hari. PS: Kindly CC me ([EMAIL PROTECTED]) in your replies as I'm not the subscriber to either list. Here is the Stack Trace: *--* java.net.MalformedURLException: unknown protocol: https at java.net.URL.(URL.java:480) at java.net.URL.(URL.java:376) at java.net.URL.(URL.java:330) at org.apache.jsp.https$jsp._jspService(https$jsp.java:69) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) snip.. Here is the (simple) JSP code I use: *--* %@ page language=java import=java.lang.*,java.net.*,java.util.*,HTTPClient.* % % System.getProperties().put( java.protocol.handler.pkgs, com.sun.net.ssl.internal.www.protocol); System.getProperties().put( javax.net.debug, all); System.getProperties().put( javax.net.ssl.trustStore, d:\\work\\ssl\\cacert.dat); System.getProperties().put( javax.net.ssl.trustStorePassword, changeit); java.security.Security.addProvider( new com.sun.net.ssl.internal.ssl.Provider()); URL url = new URL( https://prasanna/getProperties;); HTTPConnection con = new HTTPConnection( url); HTTPResponse rsp = con.Get( /getProperties); System.err.println( Received Code: + rsp.getStatusCode()); System.err.println( Received Message: +rsp.getReasonLine()); String data = rsp.getText(); System.err.println( data); % %= data % -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: RE: TOMCAT Not listening on 80 John-Turner/Jan-Michael/seemanto/Donie/Anyone....
Hi John, Can you just point where the mistake is? The other change was understood pretty well. Actually, I am new to XML! !-- Define the default virtual host -- Host name=192.168.132.34 debug=0 appBase=webapps unpackWARs=true autoDeploy=true/ Listener className=org.apache.ajp.tomcat4.config.ApacheConfig append=true forwardAll=false modJk=/usr/lib/apache/mod_jk.so workersConfig=/usr/local/tomcat/conf/jk/workers.properties / !-- Normally, users must authenticate themselves to each web app individually. Uncomment the following entry if you would like a user to be authenticated the first time they encounter a -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 07, 2003 4:49 PM To: ''Tomcat Users List' ' Subject: RE: RE: TOMCAT Not listening on 80 John-Turner/Jan-Michael/seemanto/Donie/Anyone Yeah, your server.xml file is screwed up, which is why you aren't getting anything in mod_jk.conf, which is why Apache doesn't have any JK directives, which is why Apache doesn't understand what to do with JSP and servlet URLs. Fix your server.xml, sounds like you have a tag out of place or you have a tag terminated incorrectly. If everything is fixed, you WILL ALWAYS get content in mod_jk.conf. If you don't, if mod_jk.conf is empty, there is something seriously wrong on the Tomcat side in server.xml. You can always just add the JK directives to httpd.conf directly, there is a link to a mod_jk.conf file on my site that has what you need or will at least provide a guideline. John -Original Message- From: Vivek Singh To: 'Tomcat Users List'; [EMAIL PROTECTED] Sent: 1/7/03 4:35 AM Subject: RE: RE: TOMCAT Not listening on 80 John-Turner/Jan-Michael/seemanto/Donie/Anyone Hi , I just noticed that when I try opening the server XML file I get this error. End tag 'Host' does not match the start tag 'Engine'. Line 388, Position 9 /Host ^ Any feedback!! Regards ~Vivek -Original Message- From: Vivek Singh [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 07, 2003 2:56 PM To: 'Tomcat Users List' Subject: RE: RE: TOMCAT Not listening on 80 John-Turner/Jan-Michael/seemanto/Donie/Anyone Hi Guys, Here is what is happening now with very precise info. I think I was dealing at a very high level so far. . I am running apache 1.3.19 + tomcat 4.1.18 and modjk 1.2.1 I have given the URL down from where I got the entire .so module,no building was done just a copy from Jakarta web site to the apache module directory. Now this is the picture on the linux server. http://192.168.132.34 is a test page from apache. http://192.168.132.34/bugzilla is a perl-CGI application sitting on port 80. http://192.168.132.34:8080 tomcat's page http://192.168.132.34:8080/examples/jsp/index.html shows me JSP samples. They execute very well http://192.168.132.34:8080/examples/servlets/index.html shows me servelets they execute very well. PAGE NOT FOUND ERRORS for http://192.168.132.34/examples/jsp/index.html http://192.168.132.34/examples/servlets/index.htm; Pl. Look for- comments. I am attaching all the configs file as mentioned by Jan/John. The mod_jk.conf file is always empty after I deleted the contents,since I assumed that it would be autogenrated. But it never did. I edited the contents of server.xml and insered workers.properties from John's website, Just retyping the URL again.. http://www.johnturner.com/howto/apache2-tomcat4110-jk-howto.html Thanks Again. Hope to hear a LOT!! ~Vivek -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, January 06, 2003 9:44 PM To: Tomcat Users List Subject: Re: RE: TOMCAT Not listening on 80 Hi there, Hi vivek, John Turner's suggestion is right on. Try setting it up on a development box first. This will save you and your colleagues a lot of headaches later on. Besides it is good practice. But here are some pointers. I have shifted the Bugzilla MySQL DB on a different box and ghosted the server too so I damn well have a contingency plan. Haven't I. Let's not worry about it anymore If anything goes crazy I will ghost it again. -- 1. Log in as root or su to it su - - one of the reasons why I write to user groups :-) -- 2. Search for perl which perl or whereis perl This should return /usr/bin/perl or /usr/local/bin/perl -- /usr/bin/perl -- 3. Check the version /path/to/perl -V Note this version -- 5.6.0 -- 4. Search for apachectl cd / ; find . -local -name 'apachectl' -print This might take a while but should list where apachectl is located - I had apache 1.3.27 from redhat and unluckily rpm does not install bin directory anywhere. SO I use servie httpd restart,stop,start and etc to reread
Re: tomcat 4.1.12 just stopped working, help !
Hi Search in archive with text - Parse error in application web.xml regards, keshav - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, January 07, 2003 4:52 PM Subject: SV: tomcat 4.1.12 just stopped working, help ! Hmm, I just got enlisted on this mailinglist so I don´t have yesterdays mail from it. Is there an archive from yesterday, or maybe you could mail me the thread ? /D -Ursprungligt meddelande- Från: Keshava Murthy [mailto:[EMAIL PROTECTED]] Skickat: den 7 januari 2003 12:21 Till: Tomcat Users List Ämne: Re: tomcat 4.1.12 just stopped working, help ! Hi, I had similar problem but not exactly the same. Please refer to my yesterdays mail for a possible solution.. regards, Keshav - Original Message - From: Manavendra Gupta [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, January 08, 2003 5:32 AM Subject: Re: tomcat 4.1.12 just stopped working, help ! You said your tomcat stopped working somewhere around christmas. What were the last servlets you deployed and in what contexts? Or is that /examples is the only context that you have? ~manav. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, January 07, 2003 1:18 AM Subject: SV: tomcat 4.1.12 just stopped working, help ! I checked the .../webapps/examples/WEB-INF/web.xml and I checked line 115 as suggested in the log, I found some servlets that I had added and removed these lines just to get Tomcat working again, but it still doesn´t work. So now when I run .../bin/catalina.sh run I get this: [root@star bin]# ./catalina.sh run Using CATALINA_BASE: /etc/jakarta-tomcat-4.1.12 Using CATALINA_HOME: /etc/jakarta-tomcat-4.1.12 Using CATALINA_TMPDIR: /etc/jakarta-tomcat-4.1.12/temp Using JAVA_HOME: /usr/java/j2sdk1.4.1 Jan 7, 2003 10:25:49 AM org.apache.commons.modeler.Registry loadRegistry INFO: Loading registry information Jan 7, 2003 10:25:49 AM org.apache.commons.modeler.Registry getRegistry INFO: Creating new Registry instance Jan 7, 2003 10:25:53 AM org.apache.commons.modeler.Registry getServer INFO: Creating MBeanServer Jan 7, 2003 10:25:58 AM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on port 8080 Starting service Tomcat-Standalone Apache Tomcat/4.1.12 Jan 7, 2003 10:26:29 AM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on port 8080 Jan 7, 2003 10:26:29 AM org.apache.jk.common.ChannelSocket init INFO: JK2: ajp13 listening on tcp port 8009 Jan 7, 2003 10:26:29 AM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=6/291 config=/etc/jakarta-tomcat-4.1.12/conf/jk2.properties I still don´t get any answer from port 8080 :(( /Dan -Ursprungligt meddelande- Från: Manavendra Gupta [mailto:[EMAIL PROTECTED]] Skickat: den 7 januari 2003 23:42 Till: Tomcat Users List Ämne: Re: tomcat 4.1.12 just stopped working, help ! As the log suggests, the deployment descriptor of the servlet does not conform to the DTD : The content of element type servlet must match (icon?,servlet-name,display-name?,description?,(servlet-class|jsp-file),ini t-param*,load-on-startup?,run-as?,security-role-ref*). Check the web.xml file for the last few servlets you deployed. The descriptor elements should occur in the same order as mentioned above. ~Manav. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, January 07, 2003 12:44 AM Subject: tomcat 4.1.12 just stopped working, help ! Hi all Some time during christmas Tomcat 4.1.12 stopped working for me, I don´t know why, thought anyone here might have a clue. This is what I know: If I start tomcat with .../bin/startup.sh and then run a portscan I can see: 8009/tcp openajp13 8080/tcp openhttp-proxy So evidently something happens ;) But if I try to access http://my.ip:8080/index.wml (or just http://my.ip:8080) I don´t get any answer at all, it seems totally dead. If I then stop Tomcat (.../bin/shutdown.sh) and run a portscan the services on ports 8009 and 8080 are gone. But if I directly run .../bin/catalina.sh run I get this: (if someone can get any clue from this) [root@star bin]# ./catalina.sh run Using CATALINA_BASE: /etc/jakarta-tomcat-4.1.12 Using CATALINA_HOME: /etc/jakarta-tomcat-4.1.12 Using CATALINA_TMPDIR: /etc/jakarta-tomcat-4.1.12/temp Using JAVA_HOME: /usr/java/j2sdk1.4.1 Jan 7, 2003 9:40:58 AM org.apache.commons.modeler.Registry loadRegistry INFO: Loading registry information Jan 7, 2003 9:40:58 AM org.apache.commons.modeler.Registry getRegistry INFO: Creating new Registry instance Jan 7, 2003 9:41:03 AM org.apache.commons.modeler.Registry getServer INFO: Creating MBeanServer Starting service Tomcat-Standalone Apache
TOMCAT listening on 80 Thanks John-Turner/Jan-Michael/seemanto/Donie/Anyone....
BINGO!!! IT is working at last at port 80. All services still running. Reason; screwed up server.xml. Gotta watch those tags next time. But I still have tomcat running at 8080. How do I stop it at 8080? -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 07, 2003 4:49 PM To: ''Tomcat Users List' ' Subject: RE: RE: TOMCAT Not listening on 80 John-Turner/Jan-Michael/seemanto/Donie/Anyone Yeah, your server.xml file is screwed up, which is why you aren't getting anything in mod_jk.conf, which is why Apache doesn't have any JK directives, which is why Apache doesn't understand what to do with JSP and servlet URLs. Fix your server.xml, sounds like you have a tag out of place or you have a tag terminated incorrectly. If everything is fixed, you WILL ALWAYS get content in mod_jk.conf. If you don't, if mod_jk.conf is empty, there is something seriously wrong on the Tomcat side in server.xml. You can always just add the JK directives to httpd.conf directly, there is a link to a mod_jk.conf file on my site that has what you need or will at least provide a guideline. John -Original Message- From: Vivek Singh To: 'Tomcat Users List'; [EMAIL PROTECTED] Sent: 1/7/03 4:35 AM Subject: RE: RE: TOMCAT Not listening on 80 John-Turner/Jan-Michael/seemanto/Donie/Anyone Hi , I just noticed that when I try opening the server XML file I get this error. End tag 'Host' does not match the start tag 'Engine'. Line 388, Position 9 /Host ^ Any feedback!! Regards ~Vivek -Original Message- From: Vivek Singh [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 07, 2003 2:56 PM To: 'Tomcat Users List' Subject: RE: RE: TOMCAT Not listening on 80 John-Turner/Jan-Michael/seemanto/Donie/Anyone Hi Guys, Here is what is happening now with very precise info. I think I was dealing at a very high level so far. . I am running apache 1.3.19 + tomcat 4.1.18 and modjk 1.2.1 I have given the URL down from where I got the entire .so module,no building was done just a copy from Jakarta web site to the apache module directory. Now this is the picture on the linux server. http://192.168.132.34 is a test page from apache. http://192.168.132.34/bugzilla is a perl-CGI application sitting on port 80. http://192.168.132.34:8080 tomcat's page http://192.168.132.34:8080/examples/jsp/index.html shows me JSP samples. They execute very well http://192.168.132.34:8080/examples/servlets/index.html shows me servelets they execute very well. PAGE NOT FOUND ERRORS for http://192.168.132.34/examples/jsp/index.html http://192.168.132.34/examples/servlets/index.htm; Pl. Look for- comments. I am attaching all the configs file as mentioned by Jan/John. The mod_jk.conf file is always empty after I deleted the contents,since I assumed that it would be autogenrated. But it never did. I edited the contents of server.xml and insered workers.properties from John's website, Just retyping the URL again.. http://www.johnturner.com/howto/apache2-tomcat4110-jk-howto.html Thanks Again. Hope to hear a LOT!! ~Vivek -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, January 06, 2003 9:44 PM To: Tomcat Users List Subject: Re: RE: TOMCAT Not listening on 80 Hi there, Hi vivek, John Turner's suggestion is right on. Try setting it up on a development box first. This will save you and your colleagues a lot of headaches later on. Besides it is good practice. But here are some pointers. I have shifted the Bugzilla MySQL DB on a different box and ghosted the server too so I damn well have a contingency plan. Haven't I. Let's not worry about it anymore If anything goes crazy I will ghost it again. -- 1. Log in as root or su to it su - - one of the reasons why I write to user groups :-) -- 2. Search for perl which perl or whereis perl This should return /usr/bin/perl or /usr/local/bin/perl -- /usr/bin/perl -- 3. Check the version /path/to/perl -V Note this version -- 5.6.0 -- 4. Search for apachectl cd / ; find . -local -name 'apachectl' -print This might take a while but should list where apachectl is located - I had apache 1.3.27 from redhat and unluckily rpm does not install bin directory anywhere. SO I use servie httpd restart,stop,start and etc to reread httpd.conf. But wait I did find this file in one of the oracle 9i home ./home/oracle/product/9.0.1/Apache/Apache/bin/apachectl on the same machine, yeah the big box runs almost everything. oracle 9i uses this for it's web applications on this server. So I ran this file with configtest,it said Syntax OK. I did a more on it as well and it uses 'bash' as the interpreter. (( I see where the perl thing came from :-)
Re: Tomcat-4-1-12 Connection Pool problem JNDI Datasource
Just checked and double checked, check the contents of my jar file in common/lib, and all seems in order? This is a pesky problem that gets posted often tothe list - can no one figure it out? Very frustrating? I can connect using forClass etc and direct jdbc calls to the Sybase driver, but the driver doesn't seem to load through the JNDI setup - could I be missing some jar files (other than jndi.jar) maybe? Are there any other jndi/naming libraries? Here's the content of my common/lib: activation.jar jndi.jar ant.jar jta.jar commons-collections.jarmail.jar commons-dbcp.jar mysql-connector-java-2.0.14-bin.jar commons-logging-api.jar naming-common.jar commons-pool.jar naming-factory.jar jTDS2.jar naming-resources.jar jasper-compiler.jar servlet.jar jasper-runtime.jarturbine-2.1.jar jconn2.jar velocity-1.2-dev.jar jdbc2_0-stdext.jar Thanks Paul On Tuesday, January 7, 2003, at 10:01 AM, Peng Tuck Kwok wrote: Paul Carpenter wrote: Now I just checked my machine, and I'm running JDK 1.3.1. However, checking the API documents on the Sun site, 1.3.1 has no javax.sql.* package implemented - it doesn't appear until JDK 1.4. Which may explain the 'null' me thinks? The javax.sql package is optional for jdk 1.3.1, and remains available as a seperate package for users of that jdk. You just download the jar file to use it. Tomcat ships with the jar file (at least it did with 4.x afaik). The 'null' error you get is actually related to the fact that it can't find the driver you specified. Maybe you could double check your configuration, jsp servlet code to see if you mistyped anything ? I notice that you didn't specify which JDK you were running in your build, and none of the threads in the archive seem to stress this. I'm quite surprised that the java source compiles in this case, but could this be the simple reason? Or is this package hidden in one of the .jar file somewhere in common/lib? Thanks Paul On Monday, January 6, 2003, at 08:10 PM, Paul Carpenter wrote: Hi Dave This is exactly what I see on my OSX setup - sorry, I can't help you with a fix at present, but please keep me posted of your progress if 4.1.18 works I may try an install here (currently running 4.1.12, as you are, which was the latest build from the MAC website). FYI I tried the suggestion from Iran Marcius (thread: Still can't get JNDI Datasource) which was to and an extra bit to the Context i.e. naming=true But alas, no luck. Thanks Paul On Monday, January 6, 2003, at 01:06 PM, David Hemingway wrote: There was nothing meaningful in the logs no. Just the stack trace leading up to that exception. I have not tried 4.1.18 yet. I may have to give that a go. Thanks Dave - Original Message - From: Craig R. McClanahan [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, January 06, 2003 2:41 PM Subject: Re: Tomcat-4-1-12 Connection Pool problem JNDI Datasource On Mon, 6 Jan 2003, David Hemingway wrote: Date: Mon, 6 Jan 2003 13:45:08 +1100 From: David Hemingway [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Tomcat-4-1-12 Connection Pool problem JNDI Datasource Hi, Sorry if this has been addressed before on this list but I have not seen it. I have followed the instructions in http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource- examples-how to.html. I can get the setup to work 100% under win32 but using the same settings under linux I get: java.sql.SQLException: Cannot load JDBC driver class 'null' I have seen this problem raised in many places but no one has seemed to know the correct answer. Have you examined the log files (in $CATALINA_HOME/logs) to see if there are any interesting (or at least useful :-) error messages? Have you tried the most recent production quality release (4.1.18)? I know there have been some bugfixes in the included commons-dbcp code that might make a difference. Craig My configuration is as follows: Linux - Red Hat 7.3 Apache 1.3.27 Tomcat 4.1.12 LE Oracle 9i Pool 1.0 DBCP 1.0 Collections 2.0 common/lib/commons-collections.jar common/lib/commons-dbcp.jar common/lib/commons-pool.jar common/lib/classes12.jar (with the javax.sql removed) server.xml: Context path=/lawonline docBase=lawonline debug=0 reloadable=true crossContext=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_lawonline_log. suffix=.txt timestamp=true/ Ejb name=ejb/EmplRecord type=Entity home=com.wombat.empl.EmployeeRecordHome remote=com.wombat.empl.EmployeeRecord/ Resource name=jdbc/myoracle
RE: TOMCAT listening on 80 Thanks John-Turner/Jan-Michael/seemanto/Donie/Anyone....
the Java XML errors I used to get while stopping tomcat ./shutdown.sh have also gone. Regards ~Vivek **Disclaimer** Information contained in this E-MAIL being proprietary to Wipro Limited is 'privileged' and 'confidential' and intended for use only by the individual or entity to which it is addressed. You are notified that any use, copying or dissemination of the information contained in the E-MAIL in any manner whatsoever is strictly prohibited. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: GZIP filter problem....
did you look at CompressionFilter.java that is part of the examples distributed with Tomcat? Charlie -Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED]] Sent: Monday, January 06, 2003 8:22 PM To: Tomcat Users List Subject: GZIP filter problem I'm trying to use a GZIP servlet filter under Tomcat-4.1.18. I am basing this filter on an existing example at Orion ( http://www.orionserver.com/tutorials/filters/5.html ) It GZIPs fine and, in my debugging, I can decompress the data back to what it was originally (more on that below). The problem is, all I get when I send the data out to the browser is non-decompressed garbled data. That is, the browser doesn't seem to understand that it is gzip'ed stream and doesn't decode it. Here is the relevant code. Can anyone see what the problem might be? Note that in the no compression case where I simply call dofilter(res, wrapper.getData()) it works just fine, so it isn't a problem with the filter in general ... ... ... httpResponse.setHeader(Vary, Accept-Encoding); OutputStream out = response.getOutputStream(); httpResponse.setHeader(Content-Encoding, gzip); ByteArrayOutputStream compressed = new ByteArrayOutputStream(); GZIPOutputStream gzout = new GZIPOutputStream(compressed); gzout.write(wrapper.getData()); gzout.finish(); gzout.close(); if (logger.isDebugEnabled()) { logger.debug(compressed data...); logger.debug(compressed); ByteArrayInputStream bais = new ByteArrayInputStream(compressed.toByteArray()); GZIPInputStream gzin = new GZIPInputStream(bais); byte[] buffer = new byte[1024]; int n, i = 0, m = buffer.length; while ((n = gzin.read (buffer, i, m - i)) = 0) { i += n; if (i = m) { byte[] newBuffer = new byte[m *= 2]; System.arraycopy (buffer, 0, newBuffer, 0, i); buffer = newBuffer; } } byte[] result = new byte[i]; System.arraycopy (buffer, 0, result, 0, i); ByteArrayOutputStream decompressed = new ByteArrayOutputStream(); DataOutputStream daos = new DataOutputStream(decompressed); daos.write(result); daos.flush(); daos.close(); logger.debug(decompressed data...); logger.debug(decompressed); } out.write(compressed.toByteArray()); response.setContentLength(compressed.size()); if (logger.isDebugEnabled()) logger.debug(Wrote filter compressed data: +compressed.size()+ bytes); out.flush(); response.flushBuffer(); out.close(); ... ... ... Here is an example of the debugging output so you can see that I can compress and decompress the data without issue... compressed data... ³±¯ÈÍQ(K-*ÎÌϳU2Ô3P²·ã²qÉÏMÌÌ+¶f2òsSm*'ós ó**ôÑÄ Ró rRAÂú0? ºÒ'sX decompressed data... ?xml version=1.0? RootMyElement name=someName/MyElement name=someOtherName//Root Note that the contentType was set by the servlet as text/xml and was not reset by the filter. Any ideas? It wouldn't be a bug in Tomcat, would it? I just don't see anything wrong with the code??? Thanks, Jake -- Best regards, Jacob mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: datewise catalina.out
There is no such configuration option. rf wrote: While other log files are on a daily basis, catalina.out is not. Is there any configuration option, I use 4.0.6? Thanks, rf -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
SV: tomcat 4.1.12 just stopped working, help !
The archive only covers from June 5, 2000 to March 13, 2002 :(( (unless you know of another archive than: http://mikal.org/interests/java/tomcat/ ) So, can someone tell me how I am supposed to get a hold of the Parse error in application web.xml thread ? ;) /Dan -Ursprungligt meddelande- Från: Keshava Murthy [mailto:[EMAIL PROTECTED]] Skickat: den 7 januari 2003 12:46 Till: Tomcat Users List Ämne: Re: tomcat 4.1.12 just stopped working, help ! Hi Search in archive with text - Parse error in application web.xml regards, keshav - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, January 07, 2003 4:52 PM Subject: SV: tomcat 4.1.12 just stopped working, help ! Hmm, I just got enlisted on this mailinglist so I don´t have yesterdays mail from it. Is there an archive from yesterday, or maybe you could mail me the thread ? /D -Ursprungligt meddelande- Från: Keshava Murthy [mailto:[EMAIL PROTECTED]] Skickat: den 7 januari 2003 12:21 Till: Tomcat Users List Ämne: Re: tomcat 4.1.12 just stopped working, help ! Hi, I had similar problem but not exactly the same. Please refer to my yesterdays mail for a possible solution.. regards, Keshav - Original Message - From: Manavendra Gupta [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, January 08, 2003 5:32 AM Subject: Re: tomcat 4.1.12 just stopped working, help ! You said your tomcat stopped working somewhere around christmas. What were the last servlets you deployed and in what contexts? Or is that /examples is the only context that you have? ~manav. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, January 07, 2003 1:18 AM Subject: SV: tomcat 4.1.12 just stopped working, help ! I checked the .../webapps/examples/WEB-INF/web.xml and I checked line 115 as suggested in the log, I found some servlets that I had added and removed these lines just to get Tomcat working again, but it still doesn´t work. So now when I run .../bin/catalina.sh run I get this: [root@star bin]# ./catalina.sh run Using CATALINA_BASE: /etc/jakarta-tomcat-4.1.12 Using CATALINA_HOME: /etc/jakarta-tomcat-4.1.12 Using CATALINA_TMPDIR: /etc/jakarta-tomcat-4.1.12/temp Using JAVA_HOME: /usr/java/j2sdk1.4.1 Jan 7, 2003 10:25:49 AM org.apache.commons.modeler.Registry loadRegistry INFO: Loading registry information Jan 7, 2003 10:25:49 AM org.apache.commons.modeler.Registry getRegistry INFO: Creating new Registry instance Jan 7, 2003 10:25:53 AM org.apache.commons.modeler.Registry getServer INFO: Creating MBeanServer Jan 7, 2003 10:25:58 AM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on port 8080 Starting service Tomcat-Standalone Apache Tomcat/4.1.12 Jan 7, 2003 10:26:29 AM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on port 8080 Jan 7, 2003 10:26:29 AM org.apache.jk.common.ChannelSocket init INFO: JK2: ajp13 listening on tcp port 8009 Jan 7, 2003 10:26:29 AM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=6/291 config=/etc/jakarta-tomcat-4.1.12/conf/jk2.properties I still don´t get any answer from port 8080 :(( /Dan -Ursprungligt meddelande- Från: Manavendra Gupta [mailto:[EMAIL PROTECTED]] Skickat: den 7 januari 2003 23:42 Till: Tomcat Users List Ämne: Re: tomcat 4.1.12 just stopped working, help ! As the log suggests, the deployment descriptor of the servlet does not conform to the DTD : The content of element type servlet must match (icon?,servlet-name,display-name?,description?,(servlet-class|jsp-file),ini t-param*,load-on-startup?,run-as?,security-role-ref*). Check the web.xml file for the last few servlets you deployed. The descriptor elements should occur in the same order as mentioned above. ~Manav. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, January 07, 2003 12:44 AM Subject: tomcat 4.1.12 just stopped working, help ! Hi all Some time during christmas Tomcat 4.1.12 stopped working for me, I don´t know why, thought anyone here might have a clue. This is what I know: If I start tomcat with .../bin/startup.sh and then run a portscan I can see: 8009/tcp openajp13 8080/tcp openhttp-proxy So evidently something happens ;) But if I try to access http://my.ip:8080/index.wml (or just http://my.ip:8080) I don´t get any answer at all, it seems totally dead. If I then stop Tomcat (.../bin/shutdown.sh) and run a portscan the services on ports 8009 and 8080 are gone. But if I directly run .../bin/catalina.sh run I get this: (if someone can get any clue from this) [root@star bin]# ./catalina.sh run Using CATALINA_BASE: /etc/jakarta-tomcat-4.1.12 Using CATALINA_HOME: /etc/jakarta-tomcat-4.1.12 Using CATALINA_TMPDIR:
A solution: java.sql.SQLException: Cannot load JDBC driver class 'null'
Hi all, I have found a solution to this problem. Its by no means elegant but if you get as desperate as I have got then you may wish to do the same. It appears that none of the information that you specify in your server.xml gets through to the actual dbcp stuff, don't ask me why. So what I did was crack open the source and hardcode all the details into org.apache.commons.dbcp.BasicDataSource. Then I rebuilt, redeployed and everything works perfectly. I know this is not scalable or pretty but it is a solution that *will* work. The only question I have left remaining is that is it a security issue having the DB password wrapped up in that jar? (I can't see one) assuming that the server is never compromised. Thanks everybody for all the help given over the past couple of days, it was very much appreciated. regards, Dave
Re: enterprises that use Tomcat as Web Server.
Netcraft is one way to find out what web server a company is running. http://www.netcraft.com/ But some reports may be falsified by the webserver. For example: Wal-mart report Solaris with IIS. http://uptime.netcraft.com/up/graph/?host=walmart.com -Tim Andoni wrote: In regard to your query I'm sure you would understand if I pointed out that most commercially owned businesses are quite sensitive about telling anybody outside of their organisation any details of their computer infrastructure and especially a public interface of their computer infrastructure like a web server. I am sure you are not looking for this information to help you hack in to companies but I assure you it would be useful to many internet hackers. For this reason alone I don't see you getting many responses to your query. On the other hand you can test the make of any web server by downloading a program like visual route (http://www.visualware.com/visualroute/index.html) and typing in the name of a domain whose web server you wan to know the type of. Regards, Andoni. - Original Message - From: Sérgio Rocha [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, January 06, 2003 4:37 PM Subject: enterprises that use Tomcat as Web Server. I need a list of enterprises that use Tomcat as Web Server. Can someboby help me? _ MSN Hotmail, o maior webmail do Brasil. http://www.hotmail.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: tomcat 4.1.12 just stopped working, help !
Hi, This is the copy of the text I mailed yesterday- Thanks for the reply. I had same exception thrown even with fresh installation of tomcat 4.1.18 without my application included in webapps. Anyway I solved this problem by uninstalling tomcat, removing all classpath settings from environmental variables and installing tomcat again. Now it is working fine, any way this will remain puzzle to me as no one has reported similar bug anywhere else !! - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, January 07, 2003 5:43 PM Subject: SV: tomcat 4.1.12 just stopped working, help ! The archive only covers from June 5, 2000 to March 13, 2002 :(( (unless you know of another archive than: http://mikal.org/interests/java/tomcat/ ) So, can someone tell me how I am supposed to get a hold of the Parse error in application web.xml thread ? ;) /Dan -Ursprungligt meddelande- Från: Keshava Murthy [mailto:[EMAIL PROTECTED]] Skickat: den 7 januari 2003 12:46 Till: Tomcat Users List Ämne: Re: tomcat 4.1.12 just stopped working, help ! Hi Search in archive with text - Parse error in application web.xml regards, keshav - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, January 07, 2003 4:52 PM Subject: SV: tomcat 4.1.12 just stopped working, help ! Hmm, I just got enlisted on this mailinglist so I don´t have yesterdays mail from it. Is there an archive from yesterday, or maybe you could mail me the thread ? /D -Ursprungligt meddelande- Från: Keshava Murthy [mailto:[EMAIL PROTECTED]] Skickat: den 7 januari 2003 12:21 Till: Tomcat Users List Ämne: Re: tomcat 4.1.12 just stopped working, help ! Hi, I had similar problem but not exactly the same. Please refer to my yesterdays mail for a possible solution.. regards, Keshav - Original Message - From: Manavendra Gupta [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, January 08, 2003 5:32 AM Subject: Re: tomcat 4.1.12 just stopped working, help ! You said your tomcat stopped working somewhere around christmas. What were the last servlets you deployed and in what contexts? Or is that /examples is the only context that you have? ~manav. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, January 07, 2003 1:18 AM Subject: SV: tomcat 4.1.12 just stopped working, help ! I checked the .../webapps/examples/WEB-INF/web.xml and I checked line 115 as suggested in the log, I found some servlets that I had added and removed these lines just to get Tomcat working again, but it still doesn´t work. So now when I run .../bin/catalina.sh run I get this: [root@star bin]# ./catalina.sh run Using CATALINA_BASE: /etc/jakarta-tomcat-4.1.12 Using CATALINA_HOME: /etc/jakarta-tomcat-4.1.12 Using CATALINA_TMPDIR: /etc/jakarta-tomcat-4.1.12/temp Using JAVA_HOME: /usr/java/j2sdk1.4.1 Jan 7, 2003 10:25:49 AM org.apache.commons.modeler.Registry loadRegistry INFO: Loading registry information Jan 7, 2003 10:25:49 AM org.apache.commons.modeler.Registry getRegistry INFO: Creating new Registry instance Jan 7, 2003 10:25:53 AM org.apache.commons.modeler.Registry getServer INFO: Creating MBeanServer Jan 7, 2003 10:25:58 AM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on port 8080 Starting service Tomcat-Standalone Apache Tomcat/4.1.12 Jan 7, 2003 10:26:29 AM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on port 8080 Jan 7, 2003 10:26:29 AM org.apache.jk.common.ChannelSocket init INFO: JK2: ajp13 listening on tcp port 8009 Jan 7, 2003 10:26:29 AM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=6/291 config=/etc/jakarta-tomcat-4.1.12/conf/jk2.properties I still don´t get any answer from port 8080 :(( /Dan -Ursprungligt meddelande- Från: Manavendra Gupta [mailto:[EMAIL PROTECTED]] Skickat: den 7 januari 2003 23:42 Till: Tomcat Users List Ämne: Re: tomcat 4.1.12 just stopped working, help ! As the log suggests, the deployment descriptor of the servlet does not conform to the DTD : The content of element type servlet must match (icon?,servlet-name,display-name?,description?,(servlet-class|jsp-file),ini t-param*,load-on-startup?,run-as?,security-role-ref*). Check the web.xml file for the last few servlets you deployed. The descriptor elements should occur in the same order as mentioned above. ~Manav. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, January 07, 2003 12:44 AM Subject: tomcat 4.1.12 just stopped working, help ! Hi all Some time during christmas Tomcat 4.1.12 stopped working for me, I don´t know why, thought anyone here might have a clue. This is what I know: If I start tomcat with .../bin/startup.sh and then run a portscan I can see: 8009/tcp
configuring two servlets into my application
i am tryin of configuring two test servlets in mytomcat application but when i try to declare them into the web.xml appears error: This file is not valid. unexpected child element 'servlet' the configuration is: servlet servlet-nameHelloWorld/servlet-name servlet-classHelloWorld/servlet-class /servlet servlet-mapping servlet-nameHelloWorld/servlet-name url-patternHelloWorld/url-pattern /servlet-mapping servlet servlet-nameHolasAlMundo/servlet-name servlet-classHolasAlMundo/servlet-class /servlet servlet-mapping servlet-nameHolasAlMundo/servlet-name url-patternHolasAlMundo/url-pattern /servlet-mapping -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
restarting
Hi My customers need to be able to restart tomcat after uploading files to the server. Is it possible for them in a secure way to allow them to restat their web? how do i configurate this in my server? Is there a howto on this somewere? / Jonas -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: configuring two servlets into my application
Dionisio, The child servlet must be inside a web-app element. Is this the case in your setup? You can verify your web.xml is of the correct type by looking at the DTD, this can be found here: http://java.sun.com/j2ee/dtds/web-app_2_2.dtd regards, Dave - Original Message - From: Dionisio Ruiz de Zarate [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, January 07, 2003 11:31 PM Subject: configuring two servlets into my application i am tryin of configuring two test servlets in mytomcat application but when i try to declare them into the web.xml appears error: This file is not valid. unexpected child element 'servlet' the configuration is: servlet servlet-nameHelloWorld/servlet-name servlet-classHelloWorld/servlet-class /servlet servlet-mapping servlet-nameHelloWorld/servlet-name url-patternHelloWorld/url-pattern /servlet-mapping servlet servlet-nameHolasAlMundo/servlet-name servlet-classHolasAlMundo/servlet-class /servlet servlet-mapping servlet-nameHolasAlMundo/servlet-name url-patternHolasAlMundo/url-pattern /servlet-mapping -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: configuring two servlets into my application
Try this: servlet servlet-nameHelloWorld/servlet-name servlet-classHelloWorld/servlet-class /servlet servlet servlet-nameHolasAlMundo/servlet-name servlet-classHolasAlMundo/servlet-class /servlet servlet-mapping servlet-nameHelloWorld/servlet-name url-pattern/HelloWorld/url-pattern /servlet-mapping servlet-mapping servlet-nameHolasAlMundo/servlet-name url-pattern/HolasAlMundo/url-pattern /servlet-mapping Regards, Andy -Original Message- From: Dionisio Ruiz de Zarate [mailto:[EMAIL PROTECTED]] Sent: 07 January 2003 12:31 To: [EMAIL PROTECTED] Subject: configuring two servlets into my application i am tryin of configuring two test servlets in mytomcat application but when i try to declare them into the web.xml appears error: This file is not valid. unexpected child element 'servlet' the configuration is: servlet servlet-nameHelloWorld/servlet-name servlet-classHelloWorld/servlet-class /servlet servlet-mapping servlet-nameHelloWorld/servlet-name url-patternHelloWorld/url-pattern /servlet-mapping servlet servlet-nameHolasAlMundo/servlet-name servlet-classHolasAlMundo/servlet-class /servlet servlet-mapping servlet-nameHolasAlMundo/servlet-name url-patternHolasAlMundo/url-pattern /servlet-mapping -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Help with Tomcat on HP-UX 10.20
Thanks again for the suggestions. I tried both and in case it is useful to others this is what happened: 1) 3.3.2 nightly also didn't work (although with a different error) 2) After a bit of playing around (root does not seem to find .tomcatrc) I managed to get 3.3.1 up and running with the TOMCAT_OPTS setting. I have established a connection and will start testing my application. Thanks once again for all the help. John -Original Message- From: Bill Barker [mailto:[EMAIL PROTECTED]] Sent: 04 January 2003 08:04 To: [EMAIL PROTECTED] Subject: Re: Help with Tomcat on HP-UX 10.20 This looks like a bug in the 3.3.1 release. There should be a 3.3.2 release out in the near future. In the meantime there are two options for you at this point: 1) Use the 3.3.2-dev nightly release (not as bad as it sounds, since the 3.3 branch is mostly bug-fixes these days). 2) Set the '-Dtomcat.install=/u01/jc_keep/jakarta-tomcat-3.3.1' in the TOMCAT_OPTS environment parameter (e.g. by setting it in $HOME/.tomcatrc). The problem is that Tomcat's auto-detect doesn't work properly for certain (broken) 1.1.x JVMs. This has shown up for Mac/Classic systems (as well as others). For more information see: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11177 John Clark [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Thanks for your help. As you probably realised, the JDK version from HP is actually 1.1.8.07. I have now downloaded Tomcat 3.3.1. As root user, I do not get any errors when I run startup.sh (but I cannot connect), but get the following error when I run shutdown.sh: # ./shutdown.sh Using classpath: ./../lib/tomcat.jar Using JAVA_HOME: /opt/java Using TOMCAT_HOME: /u01/jc_keep/jakarta-tomcat-3.3.1 Jdk11Compat: Installing jar protocol handler Guessed home=/u01/jc_keep/jakarta-tomcat-3.3.1/lib Exception: java.lang.ClassNotFoundException: org.apache.tomcat.startup.StopTomca t java.lang.ClassNotFoundException: org.apache.tomcat.startup.StopTomcat at org.apache.tomcat.util.compat.SimpleClassLoader.loadClass(SimpleClass Loader.java:274) at java.lang.ClassLoader.loadClass(ClassLoader.java) at org.apache.tomcat.startup.Main.execute(Main.java:300) at org.apache.tomcat.startup.Main.main(Main.java:140) Is this a config problem or version problem? Once again any help will be much appreciated. John Clark -Original Message- From: Jeanfrancois Arcand [mailto:[EMAIL PROTECTED]] Sent: 03 January 2003 16:24 To: Tomcat Users List Subject: Re: Help with Tomcat on HP-UX 10.20 John Clark wrote: I have spent some time looking at the FAQs, archives, etc. but cannot find the information I need, can anyone help. I have an intranet application (using JSP) that currently runs using Oracle 9i (Apache built in) on Linux and using Oracle 8 and Tomcat on NT/2000. I now want to use it with Oracle 8 on HP-UX 10.20 and need answers to the following: 1. Can I just use Tomcat, or do I also need Apache? Yes, you can. 2. I have downloaded a version of JDK (1.18.07) from the HP website, will this work? You need at least JDK 1.2 to run Tomcat 4.1.18. Tomcat 3.2.2 3.3 will work with your current JDK. -- Jeanfrancois Any help much appreciated. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
HELP, PLEASE! Tomcat creates too many threads!
Hello all, Im running Apache and Tomcat in a Linux machine, after a couple days and several accesses to my applications, Tomcat creates several threads/processes that stay sleeping, as you can see at the end of this e-mail. Im using Tomcat 4.0.4, Apache 1.3.26 with mod_webapp, and Java 1.4.0_01. If I don't restart my tomcat, it will exceed the maximum number of processes the user can execute and it will block, turning my applications offline. Is there any solution to this problem? How is it possible to avoid the creation of so many processes? I really appreciate any help you can give me. These lines are only a few ones I get when I run the ps -elf command: 040 S root 13849 8678 0 60 0- 58223 tcp_re Jan06 ?00:00:00 /usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat 040 S root 13850 8678 0 60 0- 58223 tcp_re Jan06 ?00:00:00 /usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat 040 S root 19616 8678 0 60 0- 58223 tcp_re Jan06 ?00:00:00 /usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat 040 S root 19619 8678 0 60 0- 58223 tcp_re Jan06 ?00:00:00 /usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat 040 S root 19628 8678 0 60 0- 58223 tcp_re Jan06 ?00:00:00 /usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat 040 S root 26732 8678 0 60 0- 58223 tcp_re Jan06 ?00:00:00 /usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat 040 S root 26754 8678 0 60 0- 58223 tcp_re Jan06 ?00:00:00 /usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat 040 S root 31033 8678 0 60 0- 58223 tcp_re Jan06 ?00:00:00 /usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat 040 S root 4677 8678 0 60 0- 58223 tcp_re Jan06 ?00:00:00 /usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat 040 S root 4687 8678 0 60 0- 58223 tcp_re Jan06 ?00:00:00 /usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat 040 S root 5470 8678 0 60 0- 58223 tcp_re Jan06 ?00:00:01 /usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat 040 S root 6154 8678 0 60 0- 58223 tcp_re Jan06 ?00:00:00 /usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat 040 S root 6161 8678 0 60 0- 58223 tcp_re Jan06 ?00:00:00 /usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat 040 S root 6165 8678 0 60 0- 58223 tcp_re Jan06 ?00:00:00 /usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat -- Wagner Santana Analista de Sistemas - TIM Av. Conde da Boa Vista, 800 081 3216-2713081 99136661 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: enterprises that use Tomcat as Web Server.
Netcraft's survey also assumes that Tomcat is on port 80, which might not always be the case. John -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 07, 2003 7:15 AM To: Tomcat Users List Subject: Re: enterprises that use Tomcat as Web Server. Netcraft is one way to find out what web server a company is running. http://www.netcraft.com/ But some reports may be falsified by the webserver. For example: Wal-mart report Solaris with IIS. http://uptime.netcraft.com/up/graph/?host=walmart.com -Tim Andoni wrote: In regard to your query I'm sure you would understand if I pointed out that most commercially owned businesses are quite sensitive about telling anybody outside of their organisation any details of their computer infrastructure and especially a public interface of their computer infrastructure like a web server. I am sure you are not looking for this information to help you hack in to companies but I assure you it would be useful to many internet hackers. For this reason alone I don't see you getting many responses to your query. On the other hand you can test the make of any web server by downloading a program like visual route (http://www.visualware.com/visualroute/index.html) and typing in the name of a domain whose web server you wan to know the type of. Regards, Andoni. - Original Message - From: Sérgio Rocha [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, January 06, 2003 4:37 PM Subject: enterprises that use Tomcat as Web Server. I need a list of enterprises that use Tomcat as Web Server. Can someboby help me? _ MSN Hotmail, o maior webmail do Brasil. http://www.hotmail.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: TOMCAT listening on 80 Thanks John-Turner/Jan-Michael/seemanto/Donie/Anyone....
In server.xml, comment out the CoyoteConnector on port 8080, and restart Tomcat. Be careful editing server.xml. ;) If you're feeling ambitious, you could always try disabling that connector in the admin app on port 80 now that you have the connector working, but I've never done it that way. John -Original Message- From: Vivek Singh [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 07, 2003 6:52 AM To: 'Tomcat Users List' Subject: TOMCAT listening on 80 Thanks John-Turner/Jan-Michael/seemanto/Donie/Anyone BINGO!!! IT is working at last at port 80. All services still running. Reason; screwed up server.xml. Gotta watch those tags next time. But I still have tomcat running at 8080. How do I stop it at 8080? -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 07, 2003 4:49 PM To: ''Tomcat Users List' ' Subject: RE: RE: TOMCAT Not listening on 80 John-Turner/Jan-Michael/seemanto/Donie/Anyone Yeah, your server.xml file is screwed up, which is why you aren't getting anything in mod_jk.conf, which is why Apache doesn't have any JK directives, which is why Apache doesn't understand what to do with JSP and servlet URLs. Fix your server.xml, sounds like you have a tag out of place or you have a tag terminated incorrectly. If everything is fixed, you WILL ALWAYS get content in mod_jk.conf. If you don't, if mod_jk.conf is empty, there is something seriously wrong on the Tomcat side in server.xml. You can always just add the JK directives to httpd.conf directly, there is a link to a mod_jk.conf file on my site that has what you need or will at least provide a guideline. John -Original Message- From: Vivek Singh To: 'Tomcat Users List'; [EMAIL PROTECTED] Sent: 1/7/03 4:35 AM Subject: RE: RE: TOMCAT Not listening on 80 John-Turner/Jan-Michael/seemanto/Donie/Anyone Hi , I just noticed that when I try opening the server XML file I get this error. End tag 'Host' does not match the start tag 'Engine'. Line 388, Position 9 /Host ^ Any feedback!! Regards ~Vivek -Original Message- From: Vivek Singh [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 07, 2003 2:56 PM To: 'Tomcat Users List' Subject: RE: RE: TOMCAT Not listening on 80 John-Turner/Jan-Michael/seemanto/Donie/Anyone Hi Guys, Here is what is happening now with very precise info. I think I was dealing at a very high level so far. . I am running apache 1.3.19 + tomcat 4.1.18 and modjk 1.2.1 I have given the URL down from where I got the entire .so module,no building was done just a copy from Jakarta web site to the apache module directory. Now this is the picture on the linux server. http://192.168.132.34 is a test page from apache. http://192.168.132.34/bugzilla is a perl-CGI application sitting on port 80. http://192.168.132.34:8080 tomcat's page http://192.168.132.34:8080/examples/jsp/index.html shows me JSP samples. They execute very well http://192.168.132.34:8080/examples/servlets/index.html shows me servelets they execute very well. PAGE NOT FOUND ERRORS for http://192.168.132.34/examples/jsp/index.html http://192.168.132.34/examples/servlets/index.htm; Pl. Look for- comments. I am attaching all the configs file as mentioned by Jan/John. The mod_jk.conf file is always empty after I deleted the contents,since I assumed that it would be autogenrated. But it never did. I edited the contents of server.xml and insered workers.properties from John's website, Just retyping the URL again.. http://www.johnturner.com/howto/apache2-tomcat4110-jk-howto.html Thanks Again. Hope to hear a LOT!! ~Vivek -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, January 06, 2003 9:44 PM To: Tomcat Users List Subject: Re: RE: TOMCAT Not listening on 80 Hi there, Hi vivek, John Turner's suggestion is right on. Try setting it up on a development box first. This will save you and your colleagues a lot of headaches later on. Besides it is good practice. But here are some pointers. I have shifted the Bugzilla MySQL DB on a different box and ghosted the server too so I damn well have a contingency plan. Haven't I. Let's not worry about it anymore If anything goes crazy I will ghost it again. -- 1. Log in as root or su to it su - - one of the reasons why I write to user groups :-) -- 2. Search for perl which perl or whereis perl This should return /usr/bin/perl or /usr/local/bin/perl -- /usr/bin/perl -- 3. Check the version /path/to/perl -V Note this version -- 5.6.0 -- 4. Search for
JSP help
hi, I wrote to webapps/root/MyApplication/web-inf/web.xml all servlet names also all servlets to webapps/root/MyApplication/web-inf/classes but there is an error in log files Like that 2003-01-07 13:22:54 ContextConfig[/examples] Configuration error in application web.xml java.lang.IllegalArgumentException: Invalid url-pattern adminPassControl Can any one help me? _ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE* http://join.msn.com/?page=features/virus -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
allowLinking setup, but still have errors
In server.xml, I have: Context path=/blah docBase=build allowLinking=true debug=0 reloadable=false cookies=false / Yet I still get the error: ContextConfig[/estreet]: Missing application web.xml, using defaults only My web.xml is embedded in multiple symlinks in WEB-INF directory. Does anyone have ideas or solutions so that tomcat can see my web.xml? Thanks, -- ___ Talk More, Pay Less with Net2Phone Direct(R), up to 1500 minutes free! http://www.net2phone.com/cgi-bin/link.cgi?143 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
allowLinking setup, but still have errors
In server.xml, I have: Context path=/blah docBase=build allowLinking=true debug=0 reloadable=false cookies=false / Yet I still get the error: ContextConfig[/build]: Missing application web.xml, using defaults only My web.xml is embedded in multiple symlinks in WEB-INF directory. Does anyone have ideas or solutions so that tomcat can see my web.xml? Thanks, -- ___ Talk More, Pay Less with Net2Phone Direct(R), up to 1500 minutes free! http://www.net2phone.com/cgi-bin/link.cgi?143 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: allowLinking setup, but still have errors
allowLinking doesn't go there. Use a Resources element calling FileDirContext as a child of a Context element. http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg78460.html John -Original Message- From: unix guy [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 07, 2003 8:29 AM To: Tomcat Users List Subject: allowLinking setup, but still have errors In server.xml, I have: Context path=/blah docBase=build allowLinking=true debug=0 reloadable=false cookies=false / Yet I still get the error: ContextConfig[/estreet]: Missing application web.xml, using defaults only My web.xml is embedded in multiple symlinks in WEB-INF directory. Does anyone have ideas or solutions so that tomcat can see my web.xml? Thanks, -- ___ Talk More, Pay Less with Net2Phone Direct(R), up to 1500 minutes free! http://www.net2phone.com/cgi-bin/link.cgi?143 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat and java.nio
Hi, There have been several discussions regarding java.nio, related servlet specification changes, and related tomcat implementation changes, on both the user and dev lists. I suggest you search the archives for more information if you're interested. Having experienced the joys of java.nio in migrating a few of our apps, it's not worth the effort. Of course that's for our specific cases, and I make no assumptions about the general case. Yoav Shapira Millennium ChemInformatics -Original Message- From: Joe Tomcat [mailto:[EMAIL PROTECTED]] Sent: Monday, January 06, 2003 5:40 AM To: Tomcat Users List Subject: Tomcat and java.nio For those who haven't experienced the joys of java.nio yet, I highly recomend it. Not only do you get performance advantages, but it's easier to use, too, in my opinion. Speaking of which... If I have a servlet which I want to use to send a file straight from disk to the browser, right now it seems like the best way to do that is to get a FileChannel for the file, read it into a buffer, and send that buffer out to the outputstream from Request.getOutputStream(). It seems that it would be much nicer and more efficient if there were a Request.getChannel() type of method, so I could use the highly-efficient FileChannel.transferTo() method. Using that method, the file could be transfered straight from the disk to the network, possibly never leaving kernel space and possibly never being copied (depending on OS). Perhaps Tomcat could serve static content as quickly as its native C competitors (Apache). Is this something which might appear in future releases of the Servlet API? I hope so. -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: GZIP filter problem....
Hi Charlie, I looked at it a little bit, but, to be honest, that one is less straightforward (kind of messy, actually) and I'm not even sure it is doing any compression as it doesn't provide any logging stating the difference between the original size of the response and the compressed size (although it logs lots of other stuff). I'll continue to investigate, however, I guess my point is that I've seen a good number of examples of how to do the GZIP compression and the example I am following pretty much does exactly what all of them recommend. There is one from More Servlets and Java Server Pages by Marty Hall that also doesn't work under Tomcat-4.1.18 ( http://archive.moreservlets.com/Filter-Code/filters/WEB-INF/classes/moreservlets/filters/CompressionFilter.java ). I have a really hard time believing that all these people are just plain wrong about how they did this. The code looks valid based on all examples I've seen, and I've proven that the GZIP compression was done properly because I was able to decompress and print that to logging. I just can't get it to the browsers (IE5.5/6.0 and Mozilla) to understand the output. So, apart from looking at the example in Tomcat which, presumably, works (and I will continue to study it), is there anything in my code that is just obviously incorrect? If not, why doesn't it work? Jake At 07:03 AM 1/7/2003 -0500, you wrote: did you look at CompressionFilter.java that is part of the examples distributed with Tomcat? Charlie -Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED]] Sent: Monday, January 06, 2003 8:22 PM To: Tomcat Users List Subject: GZIP filter problem I'm trying to use a GZIP servlet filter under Tomcat-4.1.18. I am basing this filter on an existing example at Orion ( http://www.orionserver.com/tutorials/filters/5.html ) It GZIPs fine and, in my debugging, I can decompress the data back to what it was originally (more on that below). The problem is, all I get when I send the data out to the browser is non-decompressed garbled data. That is, the browser doesn't seem to understand that it is gzip'ed stream and doesn't decode it. Here is the relevant code. Can anyone see what the problem might be? Note that in the no compression case where I simply call dofilter(res, wrapper.getData()) it works just fine, so it isn't a problem with the filter in general ... ... ... httpResponse.setHeader(Vary, Accept-Encoding); OutputStream out = response.getOutputStream(); httpResponse.setHeader(Content-Encoding, gzip); ByteArrayOutputStream compressed = new ByteArrayOutputStream(); GZIPOutputStream gzout = new GZIPOutputStream(compressed); gzout.write(wrapper.getData()); gzout.finish(); gzout.close(); if (logger.isDebugEnabled()) { logger.debug(compressed data...); logger.debug(compressed); ByteArrayInputStream bais = new ByteArrayInputStream(compressed.toByteArray()); GZIPInputStream gzin = new GZIPInputStream(bais); byte[] buffer = new byte[1024]; int n, i = 0, m = buffer.length; while ((n = gzin.read (buffer, i, m - i)) = 0) { i += n; if (i = m) { byte[] newBuffer = new byte[m *= 2]; System.arraycopy (buffer, 0, newBuffer, 0, i); buffer = newBuffer; } } byte[] result = new byte[i]; System.arraycopy (buffer, 0, result, 0, i); ByteArrayOutputStream decompressed = new ByteArrayOutputStream(); DataOutputStream daos = new DataOutputStream(decompressed); daos.write(result); daos.flush(); daos.close(); logger.debug(decompressed data...); logger.debug(decompressed); } out.write(compressed.toByteArray()); response.setContentLength(compressed.size()); if (logger.isDebugEnabled()) logger.debug(Wrote filter compressed data: +compressed.size()+ bytes); out.flush(); response.flushBuffer(); out.close(); ... ... ... Here is an example of the debugging output so you can see that I can compress and decompress the data without issue... compressed data... ³±¯ÈÍQ(K-*ÎÌϳU2Ô3P²·ã²qÉÏMÌÌ+¶f2òsSm*'ós ó**ôÑÄ Ró rRAÂú0? ºÓ'sX decompressed data... ?xml version=1.0? RootMyElement name=someName/MyElement name=someOtherName//Root Note that the contentType was set by the servlet as text/xml and was not reset by the filter. Any ideas? It wouldn't be a bug in Tomcat, would it? I just don't see anything wrong with the code??? Thanks, Jake -- Best regards, Jacob mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: [LAXMIAKNTH] - MEMORY USAGE
Hi, You can try with IBM JVM, it works well on linux machines incase of performance as well as garbage collection of memory -Original Message- From: Laxmikanth M.S. [mailto:[EMAIL PROTECTED]] Sent: Tue 1/7/2003 4:56 AM To: [EMAIL PROTECTED] Cc: Subject:[LAXMIAKNTH] - MEMORY USAGE Hi all, I have installed jdk1.3/apache1.3.27/tomcat4.1.12 in RH Linux 7.1.. If I see the process most of the memory more than 80% is occupied by jdk1.3 and so the system is slow and sites which are running there is slowwhat may be the reason thanks in advance Regards Laxmikanth M S Off : 91-80-6610330 extn 1256 http://www.sonata-software.com Coming together is the beginning, staying together is progress and working together is Success What lies behind us and what lies before us are tiny matters compared to what lies within us - Emerson * Disclaimer: The information in this e-mail and any attachments is confidential / privileged. It is intended solely for the addressee or addressees. If you are not the addressee indicated in this message, you may not copy or deliver this message to anyone. In such case, you should destroy this message and kindly notify the sender by reply email. Please advise immediately if you or your employer does not consent to Internet email for messages of this kind. * -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] winmail.dat-- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: HELP, PLEASE! Tomcat creates too many threads!
I am curious about the same thing. My app isn't fully up and operational yet so I do not know for sure if I suffer from the same problem, but I have noticed that while doing some testing new threads are getting started, and it usually takes a restart to get rid of them. I've seen this question posted a few times, but haven't noticed any 'resolution' or possible solutions. Can anyone recommend things to check for, settings to make, or perhaps any documentation on the issue? Is it possible that this could be a JSDK 1.4 issue? It's the only common link I've noticed between my set up and other posters with this problem. Thanks :) Denise Mangano Help Desk Analyst Complus Data Innovations, Inc. -Original Message- From: Wagner José Queiroz de Santana [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 07, 2003 6:47 AM To: [EMAIL PROTECTED] Subject: HELP, PLEASE! Tomcat creates too many threads! Hello all, Im running Apache and Tomcat in a Linux machine, after a couple days and several accesses to my applications, Tomcat creates several threads/processes that stay sleeping, as you can see at the end of this e-mail. Im using Tomcat 4.0.4, Apache 1.3.26 with mod_webapp, and Java 1.4.0_01. If I don't restart my tomcat, it will exceed the maximum number of processes the user can execute and it will block, turning my applications offline. Is there any solution to this problem? How is it possible to avoid the creation of so many processes? I really appreciate any help you can give me. These lines are only a few ones I get when I run the ps -elf command: 040 S root 13849 8678 0 60 0- 58223 tcp_re Jan06 ? 00:00:00 /usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat 040 S root 13850 8678 0 60 0- 58223 tcp_re Jan06 ? 00:00:00 /usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat 040 S root 19616 8678 0 60 0- 58223 tcp_re Jan06 ? 00:00:00 /usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat 040 S root 19619 8678 0 60 0- 58223 tcp_re Jan06 ? 00:00:00 /usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat 040 S root 19628 8678 0 60 0- 58223 tcp_re Jan06 ? 00:00:00 /usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat 040 S root 26732 8678 0 60 0- 58223 tcp_re Jan06 ? 00:00:00 /usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat 040 S root 26754 8678 0 60 0- 58223 tcp_re Jan06 ? 00:00:00 /usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat 040 S root 31033 8678 0 60 0- 58223 tcp_re Jan06 ? 00:00:00 /usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat 040 S root 4677 8678 0 60 0- 58223 tcp_re Jan06 ? 00:00:00 /usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat 040 S root 4687 8678 0 60 0- 58223 tcp_re Jan06 ? 00:00:00 /usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat 040 S root 5470 8678 0 60 0- 58223 tcp_re Jan06 ? 00:00:01 /usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat 040 S root 6154 8678 0 60 0- 58223 tcp_re Jan06 ? 00:00:00 /usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat 040 S root 6161 8678 0 60 0- 58223 tcp_re Jan06 ? 00:00:00 /usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat 040 S root 6165 8678 0 60 0- 58223 tcp_re Jan06 ? 00:00:00 /usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat -- Wagner Santana Analista de Sistemas - TIM Av. Conde da Boa Vista, 800 081 3216-2713081 99136661 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: HELP, PLEASE! Tomcat creates too many threads!
Can you try with IBM JVM, as it works well on linux in cae of performance as well as memory usage -Original Message- From: Denise Mangano [mailto:[EMAIL PROTECTED]] Sent: Tue 1/7/2003 9:31 AM To: 'Tomcat Users List' Cc: Subject:RE: HELP, PLEASE! Tomcat creates too many threads! I am curious about the same thing. My app isn't fully up and operational yet so I do not know for sure if I suffer from the same problem, but I have noticed that while doing some testing new threads are getting started, and it usually takes a restart to get rid of them. I've seen this question posted a few times, but haven't noticed any 'resolution' or possible solutions. Can anyone recommend things to check for, settings to make, or perhaps any documentation on the issue? Is it possible that this could be a JSDK 1.4 issue? It's the only common link I've noticed between my set up and other posters with this problem. Thanks :) Denise Mangano Help Desk Analyst Complus Data Innovations, Inc. -Original Message- From: Wagner José Queiroz de Santana [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 07, 2003 6:47 AM To: [EMAIL PROTECTED] Subject: HELP, PLEASE! Tomcat creates too many threads! Hello all, Im running Apache and Tomcat in a Linux machine, after a couple days and several accesses to my applications, Tomcat creates several threads/processes that stay sleeping, as you can see at the end of this e-mail. Im using Tomcat 4.0.4, Apache 1.3.26 with mod_webapp, and Java 1.4.0_01. If I don't restart my tomcat, it will exceed the maximum number of processes the user can execute and it will block, turning my applications offline. Is there any solution to this problem? How is it possible to avoid the creation of so many processes? I really appreciate any help you can give me. These lines are only a few ones I get when I run the ps -elf command: 040 S root 13849 8678 0 60 0- 58223 tcp_re Jan06 ? 00:00:00 /usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat 040 S root 13850 8678 0 60 0- 58223 tcp_re Jan06 ? 00:00:00 /usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat 040 S root 19616 8678 0 60 0- 58223 tcp_re Jan06 ? 00:00:00 /usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat 040 S root 19619 8678 0 60 0- 58223 tcp_re Jan06 ? 00:00:00 /usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat 040 S root 19628 8678 0 60 0- 58223 tcp_re Jan06 ? 00:00:00 /usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat 040 S root 26732 8678 0 60 0- 58223 tcp_re Jan06 ? 00:00:00 /usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat 040 S root 26754 8678 0 60 0- 58223 tcp_re Jan06 ? 00:00:00 /usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat 040 S root 31033 8678 0 60 0- 58223 tcp_re Jan06 ? 00:00:00 /usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat 040 S root 4677 8678 0 60 0- 58223 tcp_re Jan06 ? 00:00:00 /usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat 040 S root 4687 8678 0 60 0- 58223 tcp_re Jan06 ? 00:00:00 /usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat 040 S root 5470 8678 0 60 0- 58223 tcp_re Jan06 ? 00:00:01 /usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat 040 S root 6154 8678 0 60 0- 58223 tcp_re Jan06 ? 00:00:00 /usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat 040 S root 6161 8678 0 60 0- 58223 tcp_re Jan06 ? 00:00:00 /usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat 040 S root 6165 8678 0 60 0- 58223 tcp_re Jan06 ? 00:00:00 /usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat -- Wagner Santana Analista de Sistemas - TIM Av. Conde da Boa Vista, 800 081 3216-2713081 99136661 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] winmail.dat-- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
HELP with catalina.policy
Hi. I use j2sdk1.4.0 + Apache2 + Tomcat4.0.4 + mod_jk My applets access tomcat servlets to query an Ora9i database. Most of the client W98, NT4 and W-XP can access my applet to query the servlets with the exception of 2. One client uses java 1.3.1_03 and when he tries to use applet over www , java console throws these error : [code] RemotedemoClient : set URL to http://my site : java.security.AccessControlException access denied (java.nt.SocketPermission proxy-iap resolve) at java.security.AccessControlContext.checkPermission(Unknown Source) at java.security.AccessController.checkPermission(Unknown Source) at java.lang.SecurityManager.checkPermission(Unknown Source) at java.lang.SecurityManager.checkConnect(Unknown Source) at java.net.InetAddress.getAllByName0(Unknown Source) at java.net.InetAddress.getAllByName0(Unknown Source) at java.net.InetAddress.getByName(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.getHttpProxyAuthentication(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source) at sun.plugin.protocol.jdk12.http.HttpURLConnection.getInputStream(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(Unknown Source) at sun.plugin.protocol.jdk12.http.HttpURLConnection.checkCookieHeader(Unknown Source) at sun.plugin.protocol.jdk12.http.HttpURLConnection.getInputStream(Unknown Source) at com.developer.Tunnel.QueryCollection.retrieveQueries(QueryCollection.java:62) at com.developer.Tunnel.QueryCollection.run(QueryCollection.java:38) at java.lang.Thread.run(Unknown Source) java.security.AccessControlException: access denied (java.net.SocketPermission proxy-iap resolve) at java.security.AccessControlContext.checkPermission(Unknown Source) at java.security.AccessController.checkPermission(Unknown Source) at java.lang.SecurityManager.checkPermission(Unknown Source) at java.lang.SecurityManager.checkConnect(Unknown Source) at java.net.InetAddress.getAllByName0(Unknown Source) at java.net.InetAddress.getAllByName0(Unknown Source) at java.net.InetAddress.getByName(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.getHttpProxyAuthentication(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source) at sun.plugin.protocol.jdk12.http.HttpURLConnection.getInputStream(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(Unknown Source) at sun.plugin.protocol.jdk12.http.HttpURLConnection.checkCookieHeader(Unknown Source) at sun.plugin.protocol.jdk12.http.HttpURLConnection.getInputStream(Unknown Source) at com.developer.Tunnel.client.BaseTunnelClient._invokeMethod(BaseTunnelClient.java:193) at com.developer.Tunnel.client.BaseTunnelClient._initialize(BaseTunnelClient.java:89) at com.developer.Tunnel.RemotedemoClient.init(RemotedemoClient.java:28) at com.developer.Tunnel.demoApplet.init(demoApplet.java:80) at sun.applet.AppletPanel.run(Unknown Source) at java.lang.Thread.run(Unknown Source) java.security.AccessControlException: access denied (java.net.SocketPermission proxy-iap resolve) at java.security.AccessControlContext.checkPermission(Unknown Source) at java.security.AccessController.checkPermission(Unknown Source) at java.lang.SecurityManager.checkPermission(Unknown Source) at java.lang.SecurityManager.checkConnect(Unknown Source) at java.net.InetAddress.getAllByName0(Unknown Source) at java.net.InetAddress.getAllByName0(Unknown Source) at java.net.InetAddress.getByName(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.getHttpProxyAuthentication(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source) at sun.plugin.protocol.jdk12.http.HttpURLConnection.getInputStream(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(Unknown Source) at sun.plugin.protocol.jdk12.http.HttpURLConnection.checkCookieHeader(Unknown Source) at sun.plugin.protocol.jdk12.http.HttpURLConnection.getInputStream(Unknown Source) at com.developer.Tunnel.QueryCollection.retrieveQueries(QueryCollection.java:62) at com.developer.Tunnel.QueryCollection.run(QueryCollection.java:38) at java.lang.Thread.run(Unknown Source) [/code] Is this a firewall problem from their end ??? Is this a catalina.policy problem from my end ???
Re: JNDIRealm login failure
Gil Check whether the directory server is configured to time out idle connections. If so, the first attempt made by Tomcat to authenticate after a long enough period of inactivity will fail in the manner you describe. If this is the problem, you should find that after a second login attempt has succeeded other users can authenticate straight away - until the next long period of inactivity. You may be able fix the problem by disabling timeout on the directory server. (You don't say which directory server you are using). Really there should be an option for JNDIRealm to check whether the connection is valid and reconnect if not before the authentication attempt is made. However its connection management is very basic! John. Gil Chilton wrote: I have created a simple tomcat web app that uses a JNDIRealm for authentication per the instructions in the Tomcat 4.1 documentation. When I start tomcat, the login process for this web app works fine for a few minutes or logins. Eventually, I reach a state where the first login always fails until I restart Tomcat. Each failed login results in the following error in the logs: 2003-01-06 14:33:35 JNDIRealm[Standalone]: Exception performing authentication javax.naming.CommunicationException. Root exception is java.net.SocketException: Connection reset at java.net.SocketInputStream.read(SocketInputStream.java:168) at java.io.BufferedInputStream.fill(BufferedInputStream.java:183) at java.io.BufferedInputStream.read1(BufferedInputStream.java:222) at java.io.BufferedInputStream.read(BufferedInputStream.java:277) at com.sun.jndi.ldap.Connection.run(Connection.java:779) at java.lang.Thread.run(Thread.java:536) If the user backs up and resubmits the login a second time, it works with no additional log entries. I have seen this on Tomcat 4.1.12 and now 4.1.18 with BASIC or FORM based authentication. I have searched the web and mailing lists without a match. The platform is RedHat Linux 7.3 or 8.0 with Sun's SDK 1.4.1_01 installed. Any ideas? Thanks __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
How to organize your software in proper version control structure?
Hello, Here ia a question that may not have only one correct answer, but I hope you will try to give me your answer still. How to organize your software in proper version control structure? Background: - We are a small company 20 employees to whom this concerns, so expenses are a concern. - We do straight sales, not OEM sales. So our products are often more of product frameworks. There is customization always to each customer. - Our solutions are more of GUI solutions not server solutions. - You can assume that we use Struts, maybe with tiling or XML. - For now we are using MS Visual SourceSafe and JSP without EJB. Component based model seems more attractive due to modular design, but we have hard time to find solutions to problems that arise when components go to the GUI layer also. We would need several Web Archive (WAR) structures, one for each GUI component. But using several WAR's might cause problems with application servers (shared session etc) and would cause problems with GUI tailoring: same GUI lookout for all components. With simple model we could organize projects, products and common library so that GUI customization would be more advanced, thanks to tiling. But then by default it would be easier to copy all standard library functionality to all products projects so there would be unused code. Here are two alternatives what we thought of: Common to both solutions (root)/ products/ product1/ web-application-project product2/ web-application-project ... projects/ customer1/ project A/ web-application-project ... DoneSolutions/ (testing demo applications) demo A/ web-application-project treetest web-application-project ... Component based model - (root)/ components/ tree/ tree component jar-project doc/tree documentation cache/ cache component jar-project doc/tree documentation ... templates/ empty-webapp/ template directory structure for web applications empty-jarcomponent/ template directory structure for jar components ... No Web archive in the standard library. Simple model - (root)/ stdlib/ web-application-project common to all standard library features install/ SQL scripts, server.xml additions src/ com.done.tree tree component com.done.cache cache component doc/common to all standard library features No individual components or only very few components with the structure above. Thank you in advance for any comments or votes. -- Timo Riikonen [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: HELP, PLEASE! Tomcat creates too many threads!
You ought to look into the cause of this problem by running a combination of ps, top, etc commands and getting a thread dump by killing the threads. Generally it turns out that some application/servlet is the cause of runaway threads. It would be a good idea to look into the bug database/forums on the sun java site for JSDK1.4/Linux issues. I know JSDK1.3.x/Linux had a couple of issues with regards to sockets. RS Venkat Reddy Valluri To: Tomcat Users List venkatv@quinnfab [EMAIL PROTECTED] le.com cc: Subject: RE: HELP, PLEASE! Tomcat creates too many 01/07/03 08:31 AM threads! Please respond to Tomcat Users List Can you try with IBM JVM, as it works well on linux in cae of performance as well as memory usage -Original Message- From:Denise Mangano [mailto:[EMAIL PROTECTED]] Sent:Tue 1/7/2003 9:31 AM To: 'Tomcat Users List' Cc: Subject: RE: HELP, PLEASE! Tomcat creates too many threads! I am curious about the same thing. My app isn't fully up and operational yet so I do not know for sure if I suffer from the same problem, but I have noticed that while doing some testing new threads are getting started, and it usually takes a restart to get rid of them. I've seen this question posted a few times, but haven't noticed any 'resolution' or possible solutions. Can anyone recommend things to check for, settings to make, or perhaps any documentation on the issue? Is it possible that this could be a JSDK 1.4 issue? It's the only common link I've noticed between my set up and other posters with this problem. Thanks :) Denise Mangano Help Desk Analyst Complus Data Innovations, Inc. -Original Message- From: Wagner José Queiroz de Santana [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 07, 2003 6:47 AM To: [EMAIL PROTECTED] Subject: HELP, PLEASE! Tomcat creates too many threads! Hello all, Im running Apache and Tomcat in a Linux machine, after a couple days and several accesses to my applications, Tomcat creates several threads/processes that stay sleeping, as you can see at the end of this e-mail. Im using Tomcat 4.0.4, Apache 1.3.26 with mod_webapp, and Java 1.4.0_01. If I don't restart my tomcat, it will exceed the maximum number of processes the user can execute and it will block, turning my applications offline. Is there any solution to this problem? How is it possible to avoid the creation of so many processes? I really appreciate any help you can give me. These lines are only a few ones I get when I run the ps -elf command: 040 S root 13849 8678 0 60 0- 58223 tcp_re Jan06 ? 00:00:00 /usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat 040 S root 13850 8678 0 60 0- 58223 tcp_re Jan06 ? 00:00:00 /usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat 040 S root 19616 8678 0 60 0- 58223 tcp_re Jan06 ? 00:00:00 /usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat 040 S root 19619 8678 0 60 0- 58223 tcp_re Jan06 ? 00:00:00 /usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat 040 S root 19628 8678 0 60 0- 58223 tcp_re Jan06 ? 00:00:00 /usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat 040 S root 26732 8678 0 60 0- 58223 tcp_re Jan06 ? 00:00:00 /usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat 040 S root 26754 8678 0 60 0- 58223 tcp_re Jan06 ? 00:00:00 /usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat 040 S root 31033 8678 0 60 0- 58223 tcp_re Jan06 ? 00:00:00 /usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat 040 S root 4677 8678 0 60 0- 58223 tcp_re Jan06 ? 00:00:00 /usr/local/j2sdk1.4.0_01/bin/java
building mod_jk errors...
Hi All ! Runnin' SOLARIS 8 gcc 3.2 Perl 5.8.0 Apache 1.3.26 Tomcat 4.1.18 Java 1.4.1_01-b01 I download the connectors sources from jakarta site. I tried hard to compile the mod_jk connector by the way ./configure --with-apxs=/usr/local/Apache-1.3.26/bin/apxs but the make always fails... I'm looking for someone who had the same problems with around the same configuration. Any help or clues really appreciated. Regards. Jean-Luc :O) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: building mod_jk errors...
Might help the list to know where it fails? : ) What is the error message it gives? Denise -Original Message- From: Jean-Luc BEAUDET [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 07, 2003 9:54 AM To: tomcat-user Subject: building mod_jk errors... Hi All ! Runnin' SOLARIS 8 gcc 3.2 Perl 5.8.0 Apache 1.3.26 Tomcat 4.1.18 Java 1.4.1_01-b01 I download the connectors sources from jakarta site. I tried hard to compile the mod_jk connector by the way ./configure --with-apxs=/usr/local/Apache-1.3.26/bin/apxs but the make always fails... I'm looking for someone who had the same problems with around the same configuration. Any help or clues really appreciated. Regards. Jean-Luc :O) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Tomcat and java.nio
I have heard that it is unpredicatably buggie? Is that not true? At 02:40 AM 1/6/03 -0800, you wrote: For those who haven't experienced the joys of java.nio yet, I highly recomend it. Not only do you get performance advantages, but it's easier to use, too, in my opinion. Speaking of which... If I have a servlet which I want to use to send a file straight from disk to the browser, right now it seems like the best way to do that is to get a FileChannel for the file, read it into a buffer, and send that buffer out to the outputstream from Request.getOutputStream(). It seems that it would be much nicer and more efficient if there were a Request.getChannel() type of method, so I could use the highly-efficient FileChannel.transferTo() method. Using that method, the file could be transfered straight from the disk to the network, possibly never leaving kernel space and possibly never being copied (depending on OS). Perhaps Tomcat could serve static content as quickly as its native C competitors (Apache). Is this something which might appear in future releases of the Servlet API? I hope so. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: building mod_jk errors...
Also, you might want to check my Solaris HOWTO at http://www.johnturner.com/howto There are other GNU tools you need to have besides gcc in order to do the build, there is a list of them on my site and you can get them in Sun package format from http://www.sunfreeware.com Also, I had problems with gcc 3.something, when I dropped back to gcc 2.95.3 the problems went away. I don't remember exactly what the problems were. John -Original Message- From: Denise Mangano [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 07, 2003 10:09 AM To: 'Tomcat Users List' Subject: RE: building mod_jk errors... Might help the list to know where it fails? : ) What is the error message it gives? Denise -Original Message- From: Jean-Luc BEAUDET [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 07, 2003 9:54 AM To: tomcat-user Subject: building mod_jk errors... Hi All ! Runnin' SOLARIS 8 gcc 3.2 Perl 5.8.0 Apache 1.3.26 Tomcat 4.1.18 Java 1.4.1_01-b01 I download the connectors sources from jakarta site. I tried hard to compile the mod_jk connector by the way ./configure --with-apxs=/usr/local/Apache-1.3.26/bin/apxs but the make always fails... I'm looking for someone who had the same problems with around the same configuration. Any help or clues really appreciated. Regards. Jean-Luc :O) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: building mod_jk errors...
Hi John and Denise ! Well, thanks a lot for yur answers. I did what john adviced in the Building JK Connector, except that my gcc is 3.2. I entered ./buildconf.sh -- no errors. I then added ./configure \ --with-apxs=/usr/local/Apache-1.3.26/bin/apxs \ --with-apr=./apr-0.9.1 The ./configure contains some errors in config.log but i'm not hard enough in compiling to well understand them. The gcc i have comes from Sunfreeware site and is compiled with /usr/ccs/bin/ld and /usr/ccs/bin/as. The paths are bind to gcc and i think that autoconf keep those values make the ./configure... even if i declare a PATH=/usr/sbin:/usr/bin:/usr/local/bin The last error message issue from make cmd is: ../.. gcc -shared mod_jk.lo ../common/jk_ajp12_worker.lo ../common/jk_connect.lo ../common/jk_msg_buff.lo ../common/jk_util.lo ../common/jk_ajp13.lo ../common/jk_pool.lo ../common/jk_worker.lo ../common/jk_ajp13_worker.lo ../common/jk_lb_worker.lo ../common/jk_sockbuf.lo ../common/jk_map.lo ../common/jk_uri_worker_map.lo ../common/jk_ajp14.lo ../common/jk_ajp14_worker.lo ../common/jk_md5.lo ../common/jk_ajp_common.lo ../common/jk_context.lo -lc -Wl,-soname -Wl,mod_jk.so.0 -o .libs/mod_jk.so.0.0.0 ld: warning: option -o appears more than once, first setting taken ld: fatal: file mod_jk.so.0: open failed: No such file or directory ld: fatal: File processing errors. No output written to .libs/mod_jk.so.0.0.0 collect2: ld returned 1 exit status make[1]: *** [mod_jk.la] Error 1 make[1]: Leaving directory `/usr/local/src/jakarta-tomcat-connectors-4.1.18-src/jk/native/apache-1.3' make: *** [all-recursive] Error 1 petrus:/usr/local/src/jakarta-tomcat-connectors-4.1.18-src/jk/native # Does it makes sense to someone ? Can yu help ? I'm a bit stuck, yu know... Regards. Jean-Luc :O) Turner, John wrote: Also, you might want to check my Solaris HOWTO at http://www.johnturner.com/howto There are other GNU tools you need to have besides gcc in order to do the build, there is a list of them on my site and you can get them in Sun package format from http://www.sunfreeware.com Also, I had problems with gcc 3.something, when I dropped back to gcc 2.95.3 the problems went away. I don't remember exactly what the problems were. John -Original Message- From: Denise Mangano [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 07, 2003 10:09 AM To: 'Tomcat Users List' Subject: RE: building mod_jk errors... Might help the list to know where it fails? : ) What is the error message it gives? Denise -Original Message- From: Jean-Luc BEAUDET [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 07, 2003 9:54 AM To: tomcat-user Subject: building mod_jk errors... Hi All ! Runnin' SOLARIS 8 gcc 3.2 Perl 5.8.0 Apache 1.3.26 Tomcat 4.1.18 Java 1.4.1_01-b01 I download the connectors sources from jakarta site. I tried hard to compile the mod_jk connector by the way ./configure --with-apxs=/usr/local/Apache-1.3.26/bin/apxs but the make always fails... I'm looking for someone who had the same problems with around the same configuration. Any help or clues really appreciated. Regards. Jean-Luc :O) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by configure, which was generated by GNU Autoconf 2.53. Invocation command line was $ ./configure --with-apxs=/usr/local/Apache-1.3.26/bin/apxs --with-apr=./apr --with-ld=/usr/local/bin/ld ## - ## ## Platform. ## ## - ## hostname = petrus.fr.kodak.com uname -m = sun4u uname -r = 5.8 uname -s = SunOS uname -v = Generic_108528-15 /usr/bin/uname -p = sparc /bin/uname -X = System = SunOS Node = petrus.fr.kodak.com Release = 5.8 KernelID = Generic_108528-15 Machine = sun4u BusType = unknown Serial = unknown Users = unknown OEM# = 0 Origin# = 1 NumCPU = 1 /bin/arch = sun4 /usr/bin/arch -k = sun4u /usr/convex/getsysinfo = unknown hostinfo = unknown /bin/machine = unknown /usr/bin/oslevel = unknown /bin/universe = unknown PATH: /usr/sbin PATH: /usr/bin PATH: /usr/local/bin PATH: /usr/ccs/bin ## --- ## ## Core tests. ## ## --- ## configure:1416: checking for a BSD-compatible install configure:1470: result: scripts/build/unix/install-sh -c configure:1481: checking whether build environment is sane configure:1524: result: yes configure:1557: checking for gawk configure:1573: found /usr/local/bin/gawk configure:1583: result: gawk configure:1593: checking whether make sets ${MAKE} configure:1613: result: yes configure:1833: checking
Re: HELP with catalina.policy
Arthur Chan wrote: Hi. I use j2sdk1.4.0 + Apache2 + Tomcat4.0.4 + mod_jk My applets access tomcat servlets to query an Ora9i database. Most of the client W98, NT4 and W-XP can access my applet to query the servlets with the exception of 2. One client uses java 1.3.1_03 and when he tries to use applet over www , java console throws these error : [code] RemotedemoClient : set URL to http://my site : java.security.AccessControlException access denied (java.nt.SocketPermission proxy-iap resolve) at java.security.AccessControlContext.checkPermission(Unknown Source) at java.security.AccessController.checkPermission(Unknown Source) at java.lang.SecurityManager.checkPermission(Unknown Source) at java.lang.SecurityManager.checkConnect(Unknown Source) at java.net.InetAddress.getAllByName0(Unknown Source) at java.net.InetAddress.getAllByName0(Unknown Source) at java.net.InetAddress.getByName(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.getHttpProxyAuthentication(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source) at sun.plugin.protocol.jdk12.http.HttpURLConnection.getInputStream(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(Unknown Source) at sun.plugin.protocol.jdk12.http.HttpURLConnection.checkCookieHeader(Unknown Source) at sun.plugin.protocol.jdk12.http.HttpURLConnection.getInputStream(Unknown Source) at com.developer.Tunnel.QueryCollection.retrieveQueries(QueryCollection.java:62) at com.developer.Tunnel.QueryCollection.run(QueryCollection.java:38) at java.lang.Thread.run(Unknown Source) java.security.AccessControlException: access denied (java.net.SocketPermission proxy-iap resolve) at java.security.AccessControlContext.checkPermission(Unknown Source) at java.security.AccessController.checkPermission(Unknown Source) at java.lang.SecurityManager.checkPermission(Unknown Source) at java.lang.SecurityManager.checkConnect(Unknown Source) at java.net.InetAddress.getAllByName0(Unknown Source) at java.net.InetAddress.getAllByName0(Unknown Source) at java.net.InetAddress.getByName(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.getHttpProxyAuthentication(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source) at sun.plugin.protocol.jdk12.http.HttpURLConnection.getInputStream(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(Unknown Source) at sun.plugin.protocol.jdk12.http.HttpURLConnection.checkCookieHeader(Unknown Source) at sun.plugin.protocol.jdk12.http.HttpURLConnection.getInputStream(Unknown Source) at com.developer.Tunnel.client.BaseTunnelClient._invokeMethod(BaseTunnelClient.java:193) at com.developer.Tunnel.client.BaseTunnelClient._initialize(BaseTunnelClient.java:89) at com.developer.Tunnel.RemotedemoClient.init(RemotedemoClient.java:28) at com.developer.Tunnel.demoApplet.init(demoApplet.java:80) at sun.applet.AppletPanel.run(Unknown Source) at java.lang.Thread.run(Unknown Source) java.security.AccessControlException: access denied (java.net.SocketPermission proxy-iap resolve) at java.security.AccessControlContext.checkPermission(Unknown Source) at java.security.AccessController.checkPermission(Unknown Source) at java.lang.SecurityManager.checkPermission(Unknown Source) at java.lang.SecurityManager.checkConnect(Unknown Source) at java.net.InetAddress.getAllByName0(Unknown Source) at java.net.InetAddress.getAllByName0(Unknown Source) at java.net.InetAddress.getByName(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.getHttpProxyAuthentication(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source) at sun.plugin.protocol.jdk12.http.HttpURLConnection.getInputStream(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(Unknown Source) at sun.plugin.protocol.jdk12.http.HttpURLConnection.checkCookieHeader(Unknown Source) at sun.plugin.protocol.jdk12.http.HttpURLConnection.getInputStream(Unknown Source) at com.developer.Tunnel.QueryCollection.retrieveQueries(QueryCollection.java:62) at com.developer.Tunnel.QueryCollection.run(QueryCollection.java:38) at java.lang.Thread.run(Unknown Source) [/code] Is this a firewall problem from their end ??? Yes, It could be a firewall problem. IMO, It is more a privilege issue with NT. Have you try with Administrator privilege? Also, double check that your usesr have the proper java.security file with their JRE. Is this a catalina.policy problem from my end ??? No, the catalina.policy file is for Tomcat server side, and doesn't protect anything on the client side. -- Jeanfrancois -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Java - MTS - Oracle... Good friends??
Has anyone had problems with connection pooling and MTS when connecting to Oracle 9i? What are the pitfalls? I am using Tomcat 4.0.4, Java 1.3 and I have been having a lot of problems which I have only just traced back to these. Andoni. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Java - MTS - Oracle... Good friends??
just my 2c: 1. rather try the newest jdk: 1.4.1 2. make sure that you use the newest oracle drivers: ojdbc14.jar On Tue, 2003-01-07 at 16:50, Andoni wrote: Has anyone had problems with connection pooling and MTS when connecting to Oracle 9i? What are the pitfalls? I am using Tomcat 4.0.4, Java 1.3 and I have been having a lot of problems which I have only just traced back to these. Andoni. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- p niemandt [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Java - MTS - Oracle... Good friends??
Howdy, Even without the MTS variable, we've had a lot of problems recently with the Oracle connection pooling implementation for 9i. This is with JDK 1.4, both using tomcat (4.1.18-LE) and outside of tomcat, running from the command-line. Yoav Shapira Millennium ChemInformatics -Original Message- From: Andoni [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 07, 2003 11:51 AM To: Tomcat Users List Subject: Java - MTS - Oracle... Good friends?? Has anyone had problems with connection pooling and MTS when connecting to Oracle 9i? What are the pitfalls? I am using Tomcat 4.0.4, Java 1.3 and I have been having a lot of problems which I have only just traced back to these. Andoni. -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: limiting access by IP address
You can do this using our Cams access management product with Tomcat (see http://www.cafesoft.com). The XML looks like this: !-- Example 4 - allow access to only host 127.0.0.1 -- host-acr id=allow ip rule allow-address address127.0.0.1/address /allow-address /host-acr !-- Example 6 - allow access only to localhost -- host-acr id=allow host rule allow-host hostlocalhost/host /allow-host /host-acr Note that rules based on hostnames should be considered risky as they are subject to DNS lookups resolving. With Cams, you can also chain rules with operators. So, you could make a rule like: !-- Allow only authenticated users with role manager from the internal LAN -- acr id=allow managers from LAN role-constraint role-namemanager/role-name role-classcom.cafesoft.cams.auth.CSUserPrincipal/role-class /role-constraint and/ allow-address address192.168.0/address /allow-address /acr Gary icewind wrote: Could anyone tell me how to limit access to a particular servlet by IP address or hostname? Any pointer to documentation that cover this topic would be appreciated. __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Gary Gwin http://www.cafesoft.com * * * * The Cafesoft Access Management System, Cams, is security* * software that provides single sign-on authentication and* * centralized access control for Apache, Tomcat, and custom * * resources. * * * * -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Jasper and big html files
Hi all, I have a problem with both Jasper and Jasper2. If I have a huge piece of HTML inserted between two statements, the generated out.println() on the compiled code outputs just the first 8192 characters. I tried to play with the 'largefile' option in the /conf/web.xml: servlet servlet-namejsp/servlet-name servlet-classorg.apache.jasper.servlet.JspServlet/servlet-class init-param param-namelogVerbosityLevel/param-name param-valueWARNING/param-value /init-param init-param param-namelargefile/param-name param-valuetrue/param-value /init-param load-on-startup3/load-on-startup /servlet and it does not work either. I'm using Tomcat 4.1.18 with Jasper2. Thanks Renato. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RPMs
where are all the RPMs for the 4.1.X versions of Tomcat?
RE: limiting access by IP address
Aw, come on, a commercial solicitation on an open source product mailing list? You have to be kidding me. Training, books and seminars are one thing, but there's no need to advertise your product here. You can do the same things with Valves and Filters for free. John -Original Message- From: Gary Gwin [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 07, 2003 11:59 AM To: Tomcat Users List Subject: Re: limiting access by IP address You can do this using our Cams access management product with Tomcat (see http://www.cafesoft.com). The XML looks like this: !-- Example 4 - allow access to only host 127.0.0.1 -- host-acr id=allow ip rule allow-address address127.0.0.1/address /allow-address /host-acr !-- Example 6 - allow access only to localhost -- host-acr id=allow host rule allow-host hostlocalhost/host /allow-host /host-acr Note that rules based on hostnames should be considered risky as they are subject to DNS lookups resolving. With Cams, you can also chain rules with operators. So, you could make a rule like: !-- Allow only authenticated users with role manager from the internal LAN -- acr id=allow managers from LAN role-constraint role-namemanager/role-name role-classcom.cafesoft.cams.auth.CSUserPrincipal/role-class /role-constraint and/ allow-address address192.168.0/address /allow-address /acr Gary icewind wrote: Could anyone tell me how to limit access to a particular servlet by IP address or hostname? Any pointer to documentation that cover this topic would be appreciated. __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Gary Gwin http://www.cafesoft.com * * * * The Cafesoft Access Management System, Cams, is security* * software that provides single sign-on authentication and* * centralized access control for Apache, Tomcat, and custom * * resources. * * * * -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
How cai I tell if jikes is being used?
I found the same question in the mailing list but no answer yet. I am trying jikes and everything works, but how can I tell if javac or jikes is used to compile jsp? I use Tomcat4.1.18 on RH Linux 7.0. I inserted the lines in web.xml and in /usr/bin/dtomcat to instruct Tomcat to use jikes, as described in the documentation. If I compile a jsp with a syntactic error, I get two different answers (more verbose using javac). With jikes (supposing it is used) I get this: Generated servlet error: [javac] Compiling 1 source file [javac] /var/tomcat4/work/Standalone/localhost/commesse/varsess_jsp.java:69:3:69:13: Semantic Error: Type org.apache.jsp.CommesseAMa was not found. There is allways written [javac], so how should I be sure I am using jikes? With the same configuration on Windows (catalina.bat + web.xml) I get an error saying jikes does not support the encoding option, so perhaps this assures me that on Linux I am using jikes. Thank you, bye. Marco.
Re: RPMs
i think the general tree structure is as follows: /.../bin /rpm /src different builds move around the tree, and not all builds have rpms (at least until some one builds them) On Tue, 7 Jan 2003, Kevin Wilson wrote: where are all the RPMs for the 4.1.X versions of Tomcat? -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- - - - Jason Pyeron http://www.pyerotechnics.com - - Owner Lead Pyerotechnics Development, Inc. - - +1 410 808 6646 (c) 500 West University Parkway #1S - - +1 410 467 2266 (f) Baltimore, Maryland 21210-3253 - - - -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, purge the message from your system and notify the sender immediately. Any other use of the email by you is prohibited. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: RPMs
Actually, the release builds have moved to a new scenario, basically the same as Apache HTTP. Tomcat release binaries are available from various mirror sites. On any given mirror, there are only /bin and /src, and in /bin there are the full versions and the LE versions. I think RPMs went away with 4.1.17, though I could be wrong. In any case, you can find pre-4.1.18 RPMs here: http://jakarta.apache.org/builds/jakarta-tomcat-4.0/archives/ On that note, there's no need for an RPM for Tomcat, in my opinion. The only thing a RPM adds (AFAIK) is the creation of a tomcat user and the installation of a start/stop init script. Both tasks are easily completed manually, leaving just the need for the binaries themselves. John -Original Message- From: Jason Pyeron [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 07, 2003 12:08 PM To: Tomcat Users List Subject: Re: RPMs i think the general tree structure is as follows: /.../bin /rpm /src different builds move around the tree, and not all builds have rpms (at least until some one builds them) On Tue, 7 Jan 2003, Kevin Wilson wrote: where are all the RPMs for the 4.1.X versions of Tomcat? -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- - - - Jason Pyeron http://www.pyerotechnics.com - - Owner Lead Pyerotechnics Development, Inc. - - +1 410 808 6646 (c) 500 West University Parkway #1S - - +1 410 467 2266 (f) Baltimore, Maryland 21210-3253 - - - -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, purge the message from your system and notify the sender immediately. Any other use of the email by you is prohibited. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
[OT] debuging SQL/datasource
all, I am at a loss of where to start on this. I have a compiled bean, which uses a datasource. It is belived to execute ResultSet.deleteRow(), but it is going ary. I performed the belived action at teh db interface, and it acted as intended. are there any debugging directives I may put into the server.xml / web.xml to trace the datasource messages? Opinions? -jason -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- - - - Jason Pyeron http://www.pyerotechnics.com - - Owner Lead Pyerotechnics Development, Inc. - - +1 410 808 6646 (c) 500 West University Parkway #1S - - +1 410 467 2266 (f) Baltimore, Maryland 21210-3253 - - - -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, purge the message from your system and notify the sender immediately. Any other use of the email by you is prohibited. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: enterprises that use Tomcat as Web Server.
The numbers at SecuritySpace.com indicate the number of mod_jk sites. This is the best indication I've found of production usage (assuming that most commercial usage is probably not Standalone Tomcat): http://www.securityspace.com/s_survey/data/man.200212/apachemods.html?mod=bW9kX2pr Note that the number of ApacheJServ modules is still higher though it doesn't look like it will be too long before mod_jk overtakes it given the trends! http://www.securityspace.com/s_survey/data/man.200212/apachemods.html?mod=QXBhY2hlSlNlcnY= You can buy the mod_jk list for $995, it includes the IP addresses for all the mod_jk sites. Also interesting is the cookie report (notice JSESSIONID): http://www.securityspace.com/s_survey/data/man.200212/cookieReport.html Gary Turner, John wrote: Netcraft's survey also assumes that Tomcat is on port 80, which might not always be the case. John -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 07, 2003 7:15 AM To: Tomcat Users List Subject: Re: enterprises that use Tomcat as Web Server. Netcraft is one way to find out what web server a company is running. http://www.netcraft.com/ But some reports may be falsified by the webserver. For example: Wal-mart report Solaris with IIS. http://uptime.netcraft.com/up/graph/?host=walmart.com -Tim Andoni wrote: In regard to your query I'm sure you would understand if I pointed out that most commercially owned businesses are quite sensitive about telling anybody outside of their organisation any details of their computer infrastructure and especially a public interface of their computer infrastructure like a web server. I am sure you are not looking for this information to help you hack in to companies but I assure you it would be useful to many internet hackers. For this reason alone I don't see you getting many responses to your query. On the other hand you can test the make of any web server by downloading a program like visual route (http://www.visualware.com/visualroute/index.html) and typing in the name of a domain whose web server you wan to know the type of. Regards, Andoni. - Original Message - From: Sérgio Rocha [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, January 06, 2003 4:37 PM Subject: enterprises that use Tomcat as Web Server. I need a list of enterprises that use Tomcat as Web Server. Can someboby help me? _ MSN Hotmail, o maior webmail do Brasil. http://www.hotmail.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Gary Gwin http://www.cafesoft.com * * * * The Cafesoft Access Management System, Cams, is security* * software that provides single sign-on authentication and* * centralized access control for Apache, Tomcat, and custom * * resources. * * * * -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
showing progress bar while uploading file
Hi I am uplaoding files to server thru oreilly's multipartrequest servlet, here I want to get some progress bar showing size of bytes uplaoded for every second thru applet on browser Any help gr8ly appreciated Thks, --Venkat winmail.dat-- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: HELP with catalina.policy
Hi Jeanfrancois Arcand Is this a firewall problem from their end ??? Yes, It could be a firewall problem. IMO, It is more a privilege issue with NT. Have you try with Administrator privilege? Also, double check that your usesr have the proper java.security file with their JRE. Sorry to sound silly, I am aware of policy.exe in bin directory, but waht do I need to do excatly. Also, is it posible to run the applet on NT without Administrator privilege. Many users do not have admin priv on their local machines. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: mod_jk tomcat/apache connector issue
Thanks Adrian... I commented out the JK2 connector in server.xml and uncommented the JK connector... still got the 'syntax error on line 4' error message when attempting to start apache. I also followed the instructions for trying to build coyote/JK2 on the URL you posted before I gave up and tried to do mod_jk instead... the mod_jk2 problems I had were in step 8 where you run 'ant native'... the 'ant' in the root gave me jtc.jar with no problems, but when I did 'ant native' in the /jk directory, the build failed with the following: [so] StdErr: [so] ld: warning: option -o appears more than once, first setting taken [so] ld: fatal: file mod_jk.so: cannot open file: No such file or directory [so] ld: fatal: File processing errors. No output written to .libs/mod_jk.so [so] collect2: ld returned 1 exit status Tried rebuilding from scratch and all sorts of things before throwing in the towel and following John Turner's how-to, but I can't seem to get that one to work either... I must be missing something because I know it can't be this hard to get it to work. :( [ j o h n ] The reason I asked was the default connector on 8009 is for JK2 , right below it commented out is the jk connector, I had to make the change recently for an Apache2 config. Also for building mod_jk, check out http://www.pubbitch.org/jboss/mod_jk2.html, may give a little insight. -Original Message- From: adrian [mailto:[EMAIL PROTECTED]] Sent: Monday, January 06, 2003 5:56 PM To: Tomcat Users List Subject: Re: mod_jk tomcat/apache connector issue John Bullock wrote: I'll try to explain.. :) For a long time, I've tried to build mod_jk with the 4.1.18 connectors package to no avail... it wouldn't give any errors, but I'd wind up with a mod_jk.la file (617 bytes) and no .so file whatsoever. Using a link from John Turner's how-to, I downloaded a pre-compiled binary of mod_jk and followed the configuration steps. Just in case: http://www.johnturner.com/howto/apache2-tomcat4112-sol8-howto.html [ j o h n ] -Original Message- From: adrian [mailto:[EMAIL PROTECTED]] Sent: Monday, January 06, 2003 5:38 PM To: Tomcat Users List Subject: Re: mod_jk tomcat/apache connector issue John Bullock wrote: Haven't seen this anywhere, but when I try to start apache (2.0.43) with the mod_jk module enabled, I get: #apachectl start Syntax error on line 4 of /usr/local/tomcat/conf/auto/mod_jk.conf: Can't locate API module structure `jk_module' in file /usr/local/apache2/modules/mod_jk.so: ld.so.1: /usr/local/apache2/bin/httpd: fatal: jk_module: can't find symbol # Tomcat starts up correctly with working examples, however. I think this is a library issue, though it seems like it'd happen more often and be in the FAQ? using: Tomcat 4.1.18 Apache 2.0.43 Java 1.4.1_01-b01 [ j o h n ] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Are you using mod_jk or mod_jk2 ? Tomcat 4.1.18 is setup for jk2 by default. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] The reason I asked was the default connector on 8009 is for JK2 , right below it commented out is the jk connector, I had to make the change recently for an Apache2 config. Also for building mod_jk, check out http://www.pubbitch.org/jboss/mod_jk2.html, may give a little insight. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: [OT] debuging SQL/datasource
What data manager and what driver. Certain drivers just ignore the deleteRow() request. - Original Message - From: Jason Pyeron [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, January 07, 2003 12:17 PM Subject: [OT] debuging SQL/datasource all, I am at a loss of where to start on this. I have a compiled bean, which uses a datasource. It is belived to execute ResultSet.deleteRow(), but it is going ary. I performed the belived action at teh db interface, and it acted as intended. are there any debugging directives I may put into the server.xml / web.xml to trace the datasource messages? Opinions? -jason -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- - - - Jason Pyeron http://www.pyerotechnics.com - - Owner Lead Pyerotechnics Development, Inc. - - +1 410 808 6646 (c) 500 West University Parkway #1S - - +1 410 467 2266 (f) Baltimore, Maryland 21210-3253 - - - -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, purge the message from your system and notify the sender immediately. Any other use of the email by you is prohibited. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: HELP with catalina.policy
Hi Jeanfrancois Arcand Is this a firewall problem from their end ??? Yes, It could be a firewall problem. IMO, It is more a privilege issue with NT. Have you try with Administrator privilege? Also, double check that your usesr have the proper java.security file with their JRE. Sounding silly again, but what does the client side (the NT box trying to run the applet) need to do with java.security ??? THX -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: RPMs [off topic: why rpm?]
RPMs provide transaction level control for system modification. When you install an application manually, you ASSUME that the administrator has investigated ALL interactions and dependences. Can correctly uninstall the package when needed, rembers it is installed. Now rpm puts these details on the packager, who is assumed to have knowledge of the workings of the application. But lastly, there are services that can issue updates automaticly as needed. Esp for security. on RedHat there is the Red Hat Network on Windows there is windows update That being said, our Systems admin are not allowed to install ANY application, patch any software without using/creating a RPM. This is company policy, the same goes for our windows boxes. -jason On Tue, 7 Jan 2003, Turner, John wrote: Actually, the release builds have moved to a new scenario, basically the same as Apache HTTP. Tomcat release binaries are available from various mirror sites. On any given mirror, there are only /bin and /src, and in /bin there are the full versions and the LE versions. I think RPMs went away with 4.1.17, though I could be wrong. In any case, you can find pre-4.1.18 RPMs here: http://jakarta.apache.org/builds/jakarta-tomcat-4.0/archives/ On that note, there's no need for an RPM for Tomcat, in my opinion. The only thing a RPM adds (AFAIK) is the creation of a tomcat user and the installation of a start/stop init script. Both tasks are easily completed manually, leaving just the need for the binaries themselves. John -Original Message- From: Jason Pyeron [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 07, 2003 12:08 PM To: Tomcat Users List Subject: Re: RPMs i think the general tree structure is as follows: /.../bin /rpm /src different builds move around the tree, and not all builds have rpms (at least until some one builds them) On Tue, 7 Jan 2003, Kevin Wilson wrote: where are all the RPMs for the 4.1.X versions of Tomcat? -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- - - - Jason Pyeron http://www.pyerotechnics.com - - Owner Lead Pyerotechnics Development, Inc. - - +1 410 808 6646 (c) 500 West University Parkway #1S - - +1 410 467 2266 (f) Baltimore, Maryland 21210-3253 - - - -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, purge the message from your system and notify the sender immediately. Any other use of the email by you is prohibited. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- - - - Jason Pyeron http://www.pyerotechnics.com - - Owner Lead Pyerotechnics Development, Inc. - - +1 410 808 6646 (c) 500 West University Parkway #1S - - +1 410 467 2266 (f) Baltimore, Maryland 21210-3253 - - - -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, purge the message from your system and notify the sender immediately. Any other use of the email by you is prohibited. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: RPMs
If you have a Linux box and like to keep your installed programs nice and tidy using the RPM program then rpms are essential unless there is another program used for managing installation of program from tar/tgz/tar.gz archives? I run SuSE v8.0 8.1 and there was a kb article that said to use a program called /sbin/installpkg for installing .tgz packages but I have never seen this nor am I sure that tar.gz is the same as .tgz Guidance? -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 07, 2003 11:15 AM To: 'Tomcat Users List' Subject: RE: RPMs Actually, the release builds have moved to a new scenario, basically the same as Apache HTTP. Tomcat release binaries are available from various mirror sites. On any given mirror, there are only /bin and /src, and in /bin there are the full versions and the LE versions. I think RPMs went away with 4.1.17, though I could be wrong. In any case, you can find pre-4.1.18 RPMs here: http://jakarta.apache.org/builds/jakarta-tomcat-4.0/archives/ On that note, there's no need for an RPM for Tomcat, in my opinion. The only thing a RPM adds (AFAIK) is the creation of a tomcat user and the installation of a start/stop init script. Both tasks are easily completed manually, leaving just the need for the binaries themselves. John -Original Message- From: Jason Pyeron [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 07, 2003 12:08 PM To: Tomcat Users List Subject: Re: RPMs i think the general tree structure is as follows: /.../bin /rpm /src different builds move around the tree, and not all builds have rpms (at least until some one builds them) On Tue, 7 Jan 2003, Kevin Wilson wrote: where are all the RPMs for the 4.1.X versions of Tomcat? -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- - - - Jason Pyeron http://www.pyerotechnics.com - - Owner Lead Pyerotechnics Development, Inc. - - +1 410 808 6646 (c) 500 West University Parkway #1S - - +1 410 467 2266 (f) Baltimore, Maryland 21210-3253 - - - -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, purge the message from your system and notify the sender immediately. Any other use of the email by you is prohibited. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: [OT] debuging SQL/datasource
com.inzoom.jdbcado.Driver and org.apache.commons.dbcp.BasicDataSourceFactory oh it is deleting the row, and others. I am hoping to get a trace on the SQL so I may test it in a controled environment. On Tue, 7 Jan 2003, Carl wrote: What data manager and what driver. Certain drivers just ignore the deleteRow() request. - Original Message - From: Jason Pyeron [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, January 07, 2003 12:17 PM Subject: [OT] debuging SQL/datasource all, I am at a loss of where to start on this. I have a compiled bean, which uses a datasource. It is belived to execute ResultSet.deleteRow(), but it is going ary. I performed the belived action at teh db interface, and it acted as intended. are there any debugging directives I may put into the server.xml / web.xml to trace the datasource messages? Opinions? -jason -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- - - - Jason Pyeron http://www.pyerotechnics.com - - Owner Lead Pyerotechnics Development, Inc. - - +1 410 808 6646 (c) 500 West University Parkway #1S - - +1 410 467 2266 (f) Baltimore, Maryland 21210-3253 - - - -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, purge the message from your system and notify the sender immediately. Any other use of the email by you is prohibited. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- - - - Jason Pyeron http://www.pyerotechnics.com - - Owner Lead Pyerotechnics Development, Inc. - - +1 410 808 6646 (c) 500 West University Parkway #1S - - +1 410 467 2266 (f) Baltimore, Maryland 21210-3253 - - - -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, purge the message from your system and notify the sender immediately. Any other use of the email by you is prohibited. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: RPMs
rpm -tb tarfile will create a rpm from a tarball, it assumes that there is a spec file inside the tarball. If there is no spec file present you can make one. Google: rpm howto http://www.linux.org/docs/ldp/howto/RPM-HOWTO/ On Tue, 7 Jan 2003, Kevin Wilson wrote: If you have a Linux box and like to keep your installed programs nice and tidy using the RPM program then rpms are essential unless there is another program used for managing installation of program from tar/tgz/tar.gz archives? I run SuSE v8.0 8.1 and there was a kb article that said to use a program called /sbin/installpkg for installing .tgz packages but I have never seen this nor am I sure that tar.gz is the same as .tgz Guidance? -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 07, 2003 11:15 AM To: 'Tomcat Users List' Subject: RE: RPMs Actually, the release builds have moved to a new scenario, basically the same as Apache HTTP. Tomcat release binaries are available from various mirror sites. On any given mirror, there are only /bin and /src, and in /bin there are the full versions and the LE versions. I think RPMs went away with 4.1.17, though I could be wrong. In any case, you can find pre-4.1.18 RPMs here: http://jakarta.apache.org/builds/jakarta-tomcat-4.0/archives/ On that note, there's no need for an RPM for Tomcat, in my opinion. The only thing a RPM adds (AFAIK) is the creation of a tomcat user and the installation of a start/stop init script. Both tasks are easily completed manually, leaving just the need for the binaries themselves. John -Original Message- From: Jason Pyeron [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 07, 2003 12:08 PM To: Tomcat Users List Subject: Re: RPMs i think the general tree structure is as follows: /.../bin /rpm /src different builds move around the tree, and not all builds have rpms (at least until some one builds them) On Tue, 7 Jan 2003, Kevin Wilson wrote: where are all the RPMs for the 4.1.X versions of Tomcat? -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- - - - Jason Pyeron http://www.pyerotechnics.com - - Owner Lead Pyerotechnics Development, Inc. - - +1 410 808 6646 (c) 500 West University Parkway #1S - - +1 410 467 2266 (f) Baltimore, Maryland 21210-3253 - - - -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, purge the message from your system and notify the sender immediately. Any other use of the email by you is prohibited. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- - - - Jason Pyeron http://www.pyerotechnics.com - - Owner Lead Pyerotechnics Development, Inc. - - +1 410 808 6646 (c) 500 West University Parkway #1S - - +1 410 467 2266 (f) Baltimore, Maryland 21210-3253 - - - -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, purge the message from your system and notify the sender immediately. Any other use of the email by you is prohibited. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: How cai I tell if jikes is being used?
You are using jikes. When using javac, compile errors always (as far as i know) include the line: org.apache.jasper.JasperException: Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated. The phrase Semantic Error and the notation varsess_jsp.java:69:3:69:13: is also unique to jikes For example (same file compiled with javac jikes): JAVAC: org.apache.jasper.JasperException: Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated. An error occurred at line: 5 in the jsp file: /inc5.jsp Generated servlet error: /appl/jakarta-tomcat-4.0.4/work/Standalone/localhost/klon/inc5$jsp.java:73: Method ccurrentTimeMillis() not found in class java.lang.System. out.print( System.ccurrentTimeMillis() ); ^ 1 error, 1 warning JIKES: org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: 5 in the jsp file: /klon/inc5.jsp Generated servlet error: /appl/tomcat-ausgabe/work/Standalone/localhost/_/klon/inc5$jsp.java:73:28:73 :54: Semantic Error: No method named ccurrentTimeMillis was found in type java.lang.System. However, there is an accessible method currentTimeMillis whose name closely matches the name ccurrentTimeMillis. - Original Message - From: Marco Bucciarelli [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, January 07, 2003 6:12 PM Subject: How cai I tell if jikes is being used? I found the same question in the mailing list but no answer yet. I am trying jikes and everything works, but how can I tell if javac or jikes is used to compile jsp? I use Tomcat4.1.18 on RH Linux 7.0. I inserted the lines in web.xml and in /usr/bin/dtomcat to instruct Tomcat to use jikes, as described in the documentation. If I compile a jsp with a syntactic error, I get two different answers (more verbose using javac). With jikes (supposing it is used) I get this: Generated servlet error: [javac] Compiling 1 source file [javac] /var/tomcat4/work/Standalone/localhost/commesse/varsess_jsp.java:69:3:69:13: Semantic Error: Type org.apache.jsp.CommesseAMa was not found. There is allways written [javac], so how should I be sure I am using jikes? With the same configuration on Windows (catalina.bat + web.xml) I get an error saying jikes does not support the encoding option, so perhaps this assures me that on Linux I am using jikes. Thank you, bye. Marco. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
JSP and windows batch file
Hi, Has anyone ever successfully tried to run a windows batch file from a jsp. If yes .. please provide me with the code. I would really appreciate it. Thanks Shankar -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
HP-UX 10.20 + Oracle
Hi there, The story so far: I have an intranet application that currently runs on a Linux server (with Oracle 9i - built-in Apache) and W2000 server (with Tomcat 4.x connecting to Oracle 8). It is written in JSP and Java, and works fine. I now want to use HP-UX 10.20 as a server, so I got the only available JDK from HP which is version 1.1.8 and this has forced me to use Tomcat 3.3.1. This is all running now (thanks for the help) and I am now testing the application. I have put in the Oracle classes12.jar and DriverManager.registerDriver seems fine, but DriverManager.getConnection gives the following error (only partial list): java.lang.ClassNotFoundException: java.util.Map at org.apache.tomcat.util.compat.SimpleClassLoader.loadClass(Compiled Code) at java.lang.ClassLoader.loadClassInternal(Compiled Code) at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:358) at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:260) at java.sql.DriverManager.getConnection(DriverManager.java:83) at java.sql.DriverManager.getConnection(DriverManager.java:126) at estimating._final.loginvalidate_1._jspService(loginvalidate_1.java:123) Anyone got any ideas? Many thanks as usual. John -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: HP-UX 10.20 + Oracle
I think classes12.jar is for JDK 1.2. You want classes111.jar (if you can find it). -Original Message- From: John Clark [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 07, 2003 12:54 PM To: 'Tomcat Users List' Subject: HP-UX 10.20 + Oracle Hi there, The story so far: I have an intranet application that currently runs on a Linux server (with Oracle 9i - built-in Apache) and W2000 server (with Tomcat 4.x connecting to Oracle 8). It is written in JSP and Java, and works fine. I now want to use HP-UX 10.20 as a server, so I got the only available JDK from HP which is version 1.1.8 and this has forced me to use Tomcat 3.3.1. This is all running now (thanks for the help) and I am now testing the application. I have put in the Oracle classes12.jar and DriverManager.registerDriver seems fine, but DriverManager.getConnection gives the following error (only partial list): java.lang.ClassNotFoundException: java.util.Map at org.apache.tomcat.util.compat.SimpleClassLoader.loadClass(Compiled Code) at java.lang.ClassLoader.loadClassInternal(Compiled Code) at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:358) at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:260) at java.sql.DriverManager.getConnection(DriverManager.java:83) at java.sql.DriverManager.getConnection(DriverManager.java:126) at estimating._final.loginvalidate_1._jspService(loginvalidate_1.java:123) Anyone got any ideas? Many thanks as usual. John -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Screwed Up tomcat-users file
I really screwed up. I edited the tomcat-users.xml file by hand and I messed it up. I can no longer log on to the manager or administrator app. How can I reset this file? Can someone send me a default file? Thanks, Jim
RE: RPMs [off topic: why rpm?]
Believe me, I understand what/why RPMs (and other package schemes) were developed. My point was that there is no need for them with Tomcat. A binary install does nothing to the system. I change Tomcat installations simply by changing a symlink. There is only one dependency, and that is the JDK. I guess it comes down to a trust issue. There's no guarantee that the builder of an RPM did the right thing, nor that an RPM is secure or trusted. All of my servers are RH servers, for example. Unless I'm buying support from Red Hat, any RPM is foreign and untrusted. The only trusted RPM would be one obtained from RH (appropriately signed) under an RH support contract. In the time it takes me or another admin to dissect and analyze an untrusted RPM's actions on a sacrifice box, we can install the app ourselves and have exact, explicit control over how it gets installed. RPMs and a lot of the other package schemes I've worked with over the years have a myth about them...people assume that because it's an RPM that everything is OK. That's a bad assumption to make, and all due respect, it's not wise to base corporate policy on bad assumptions. At my company, the administrators install and configure things themselves, and track it all in a maintenance tracking system for future reference. After all, an RPM can't make any decision about dependencies and interactions if there are custom applications installed; and RPM only knows what it knows, and how can Joe RPMBuilder on the other side of the world know what you've done to your server? I guess for a plain vanilla server that only performs basic services and is the same as everyone else's, that would be OK, but for any server that has proprietary applications installed or custom compiled versions of common software, blindly installing a RPM, accepting what it does, and believing everything will be OK just because it's a RPM is foolish. John -Original Message- From: Jason Pyeron [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 07, 2003 12:27 PM To: Tomcat Users List Subject: RE: RPMs [off topic: why rpm?] RPMs provide transaction level control for system modification. When you install an application manually, you ASSUME that the administrator has investigated ALL interactions and dependences. Can correctly uninstall the package when needed, rembers it is installed. Now rpm puts these details on the packager, who is assumed to have knowledge of the workings of the application. But lastly, there are services that can issue updates automaticly as needed. Esp for security. on RedHat there is the Red Hat Network on Windows there is windows update That being said, our Systems admin are not allowed to install ANY application, patch any software without using/creating a RPM. This is company policy, the same goes for our windows boxes. -jason On Tue, 7 Jan 2003, Turner, John wrote: Actually, the release builds have moved to a new scenario, basically the same as Apache HTTP. Tomcat release binaries are available from various mirror sites. On any given mirror, there are only /bin and /src, and in /bin there are the full versions and the LE versions. I think RPMs went away with 4.1.17, though I could be wrong. In any case, you can find pre-4.1.18 RPMs here: http://jakarta.apache.org/builds/jakarta-tomcat-4.0/archives/ On that note, there's no need for an RPM for Tomcat, in my opinion. The only thing a RPM adds (AFAIK) is the creation of a tomcat user and the installation of a start/stop init script. Both tasks are easily completed manually, leaving just the need for the binaries themselves. John -Original Message- From: Jason Pyeron [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 07, 2003 12:08 PM To: Tomcat Users List Subject: Re: RPMs i think the general tree structure is as follows: /.../bin /rpm /src different builds move around the tree, and not all builds have rpms (at least until some one builds them) On Tue, 7 Jan 2003, Kevin Wilson wrote: where are all the RPMs for the 4.1.X versions of Tomcat? -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- - - - Jason Pyeron http://www.pyerotechnics.com - - Owner Lead Pyerotechnics Development, Inc. - - +1 410 808 6646 (c) 500 West University Parkway #1S - - +1 410 467 2266 (f) Baltimore, Maryland 21210-3253 - - - -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, purge the message from your system and notify the sender immediately. Any
Re: How to organize your software in proper version control structure?
From: Timo Riikonen [EMAIL PROTECTED] Sent: Tuesday, January 07, 2003 3:46 AM Subject: How to organize your software in proper version control structure? Hello, Here ia a question that may not have only one correct answer, but I hope you will try to give me your answer still. How to organize your software in proper version control structure? There are certainly a gazillion answers, but I'll throw in my 2 cents. One thing to consider is that your end product should simply be a single WAR file, with all of the assorted bits and pieces assembled within. The web.xml file has a lot of flexibility on how the various portions of the WAR are exposed to the client, and this is where most of your high level configurations should go. This also helps eliminate, as you mentioned, the potential conflicts between related, yet distinct, WAR applications on the same server. It also helps maintain container portability, as its the least common denominator of all the webapps (in theory). With this in mind, then the task of creating a client application and tracking it falls into a task of creating and managing the appropriate sub-components and assembling a final, cohesive WAR representing the whole thing. This leads to a configuration where you have a single directory for each client application, and this essentially manages the build and integration process. From the root of this directory is where it would be appropriate to have the client specific build.xml file. When you build your WAR, the build.xml would be tasked with pulling the appropriate core code, classes and beans by simply copying jar files into your WEB-INF/lib directory. If you have common jsps and content, you can copy those as well into their appropriate places. Another thing you can do is have a shared content directory between the core and client application. With this shared directory, you have the build.xml copy down the files from the core code area, and then copy over that with the client code. This gives you a crude form of inheritance where you only specialize the appropriate content. For example, in your core directory you might have logo.gif, left-arrow.gif, right-arrow.gif. In your client directory, you only have logo.gif. When copied to their final destination, you end up having the client logo with the stock arrow gifs. Don't do this with Java classes, though, you can use Javas inheritance for that. In the end, what you end up with is several stand alone application fragments that can be readily merged and customized for your clients. And certainly, you don't rebuild a WAR for every trivial JSP change during development. You simply make those changes in place. The key though is that everything ends up in this kind of structure. In the end, when you want to build a WAR for you client, you get the appropriate version of the core application tree, get your clients application tree, go into the client directory and then: ant build-war, as it goes through and builds your final app. What's nice about this is it helps keep you core generic code seperated. If you end up building other generic modules, they can easily be integrated into the final WAR in the same ways. So, just because a WAR is one big single rooted tree does not mean you really need to have all of your source code organized the same way. Only the final result needs to be in the WAR structure. It's not perfect, but it helps isolate your client specific stuff from your generic stuff. It gives you some ability to continue to develop your generic code while snapshotting your clients if necessary, yet still able to bring them up to date later if appropriate. Making custom changes for clients is always a mess for source code. Use your source code controls branching and versioning tools to help keep the pieces together. Regards, Will Hartung ([EMAIL PROTECTED]) Here's a sample: /CoreClasses - creates core.jar build.xml /com /company /pkg1 class1.java /pkg2 class2.java /GenericApp build.xml /content x.jsp y.html /images logo.gif left-arrow.gif right-arrow.gif /WEB-INF web.xml /code -- these classes end up in WEB-INF/classes /com /company /GenericAppPkg localClass.java /OptionalFeature build.xml -- builds a webapp with GenericApp and OptionalFeature /content /optionalFeature feature.jsp /images /optionalFeature feature.gif /WEB-INF web.xml -- feature specific bits /code /com /company /OptionalFeaturePkg feature.java /ClientABC build.xml -- builds a webapp with GenericApp, OptionalFeature, and ClientABC /content x.jsp z.jsp /images logo.gif /WEB-INF
RE: HP-UX 10.20 + Oracle
As far as I know you should use ojdbc14.jar for Oracle9: Though previous ones should work, the ojdbc14.jar is recommended / needed for Oracle9. {The classnames are different between classes12.jar and the new ojdbc14.jar} On Tue, 2003-01-07 at 17:57, Wagoner, Mark wrote: I think classes12.jar is for JDK 1.2. You want classes111.jar (if you can find it). -Original Message- From: John Clark [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 07, 2003 12:54 PM To: 'Tomcat Users List' Subject: HP-UX 10.20 + Oracle Hi there, The story so far: I have an intranet application that currently runs on a Linux server (with Oracle 9i - built-in Apache) and W2000 server (with Tomcat 4.x connecting to Oracle 8). It is written in JSP and Java, and works fine. I now want to use HP-UX 10.20 as a server, so I got the only available JDK from HP which is version 1.1.8 and this has forced me to use Tomcat 3.3.1. This is all running now (thanks for the help) and I am now testing the application. I have put in the Oracle classes12.jar and DriverManager.registerDriver seems fine, but DriverManager.getConnection gives the following error (only partial list): java.lang.ClassNotFoundException: java.util.Map at org.apache.tomcat.util.compat.SimpleClassLoader.loadClass(Compiled Code) at java.lang.ClassLoader.loadClassInternal(Compiled Code) at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:358) at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:260) at java.sql.DriverManager.getConnection(DriverManager.java:83) at java.sql.DriverManager.getConnection(DriverManager.java:126) at estimating._final.loginvalidate_1._jspService(loginvalidate_1.java:123) Anyone got any ideas? Many thanks as usual. John -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- p niemandt [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: File classes12.zip for Oracle on Tomcat ...
I had to rename them to .jar and put them in c:\ApacheTomcat\lib Chuck -Original Message- From: PALLUEL Sylvie [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 07, 2003 1:42 AM To: [EMAIL PROTECTED] Subject: File classes12.zip for Oracle on Tomcat ... Hello, Where must I put the file classes12.zip on Tomcat (4.0.1 and 4.0.03) to be able to use the Oracle Jdbc driver ? Sylvie. File: ATT11898.txt -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: mod_jk tomcat/apache connector issue
There's no need to build the connectors with ant. AFAIK, the ant method builds the tomcat side of the connectors, which is redundant if you're using a binary install of Tomcat as they are included. To build the Apache side, you can use the ./configure method, which, in my mind, is much easier to work with and debug. I got a little crazy with my Delete key, so I don't have this whole thread to reference, but if you want to post/re-post your OS, versions, etc., start clean and step through it on the list, let me know. John -Original Message- From: John Bullock [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 07, 2003 12:24 PM To: 'Tomcat Users List' Subject: RE: mod_jk tomcat/apache connector issue Thanks Adrian... I commented out the JK2 connector in server.xml and uncommented the JK connector... still got the 'syntax error on line 4' error message when attempting to start apache. I also followed the instructions for trying to build coyote/JK2 on the URL you posted before I gave up and tried to do mod_jk instead... the mod_jk2 problems I had were in step 8 where you run 'ant native'... the 'ant' in the root gave me jtc.jar with no problems, but when I did 'ant native' in the /jk directory, the build failed with the following: [so] StdErr: [so] ld: warning: option -o appears more than once, first setting taken [so] ld: fatal: file mod_jk.so: cannot open file: No such file or directory [so] ld: fatal: File processing errors. No output written to .libs/mod_jk.so [so] collect2: ld returned 1 exit status Tried rebuilding from scratch and all sorts of things before throwing in the towel and following John Turner's how-to, but I can't seem to get that one to work either... I must be missing something because I know it can't be this hard to get it to work. :( [ j o h n ] The reason I asked was the default connector on 8009 is for JK2 , right below it commented out is the jk connector, I had to make the change recently for an Apache2 config. Also for building mod_jk, check out http://www.pubbitch.org/jboss/mod_jk2.html, may give a little insight. -Original Message- From: adrian [mailto:[EMAIL PROTECTED]] Sent: Monday, January 06, 2003 5:56 PM To: Tomcat Users List Subject: Re: mod_jk tomcat/apache connector issue John Bullock wrote: I'll try to explain.. :) For a long time, I've tried to build mod_jk with the 4.1.18 connectors package to no avail... it wouldn't give any errors, but I'd wind up with a mod_jk.la file (617 bytes) and no .so file whatsoever. Using a link from John Turner's how-to, I downloaded a pre-compiled binary of mod_jk and followed the configuration steps. Just in case: http://www.johnturner.com/howto/apache2-tomcat4112-sol8-howto.html [ j o h n ] -Original Message- From: adrian [mailto:[EMAIL PROTECTED]] Sent: Monday, January 06, 2003 5:38 PM To: Tomcat Users List Subject: Re: mod_jk tomcat/apache connector issue John Bullock wrote: Haven't seen this anywhere, but when I try to start apache (2.0.43) with the mod_jk module enabled, I get: #apachectl start Syntax error on line 4 of /usr/local/tomcat/conf/auto/mod_jk.conf: Can't locate API module structure `jk_module' in file /usr/local/apache2/modules/mod_jk.so: ld.so.1: /usr/local/apache2/bin/httpd: fatal: jk_module: can't find symbol # Tomcat starts up correctly with working examples, however. I think this is a library issue, though it seems like it'd happen more often and be in the FAQ? using: Tomcat 4.1.18 Apache 2.0.43 Java 1.4.1_01-b01 [ j o h n ] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Are you using mod_jk or mod_jk2 ? Tomcat 4.1.18 is setup for jk2 by default. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] The reason I asked was the default connector on 8009 is for JK2 , right below it commented out is the jk connector, I had to make the change recently for an Apache2 config. Also for building mod_jk, check out http://www.pubbitch.org/jboss/mod_jk2.html, may give a little insight. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: HP-UX 10.20 + Oracle
Mark: I tried changing to classes111.jar, but now get this error: java.lang.UnsatisfiedLinkError: no ocijdbc8 in shared library path Also I should point out that I am using Oracle 8.0.4 on HP. Thanks for the suggestions though -Original Message- From: p niemandt [mailto:[EMAIL PROTECTED]] Sent: 07 January 2003 18:25 To: Tomcat Users List Subject: RE: HP-UX 10.20 + Oracle As far as I know you should use ojdbc14.jar for Oracle9: Though previous ones should work, the ojdbc14.jar is recommended / needed for Oracle9. {The classnames are different between classes12.jar and the new ojdbc14.jar} On Tue, 2003-01-07 at 17:57, Wagoner, Mark wrote: I think classes12.jar is for JDK 1.2. You want classes111.jar (if you can find it). -Original Message- From: John Clark [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 07, 2003 12:54 PM To: 'Tomcat Users List' Subject: HP-UX 10.20 + Oracle Hi there, The story so far: I have an intranet application that currently runs on a Linux server (with Oracle 9i - built-in Apache) and W2000 server (with Tomcat 4.x connecting to Oracle 8). It is written in JSP and Java, and works fine. I now want to use HP-UX 10.20 as a server, so I got the only available JDK from HP which is version 1.1.8 and this has forced me to use Tomcat 3.3.1. This is all running now (thanks for the help) and I am now testing the application. I have put in the Oracle classes12.jar and DriverManager.registerDriver seems fine, but DriverManager.getConnection gives the following error (only partial list): java.lang.ClassNotFoundException: java.util.Map at org.apache.tomcat.util.compat.SimpleClassLoader.loadClass(Compiled Code) at java.lang.ClassLoader.loadClassInternal(Compiled Code) at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:358) at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:260) at java.sql.DriverManager.getConnection(DriverManager.java:83) at java.sql.DriverManager.getConnection(DriverManager.java:126) at estimating._final.loginvalidate_1._jspService(loginvalidate_1.java:123) Anyone got any ideas? Many thanks as usual. John -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- p niemandt [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: HP-UX 10.20 + Oracle
Make sure you have the LD_LIBRARY_PATH environment variable set to $ORACLE_HOME/lib (I think :-\ ) At least you have to on Linux. -Original Message- From: John Clark [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 07, 2003 1:13 PM To: 'Tomcat Users List' Subject: RE: HP-UX 10.20 + Oracle Mark: I tried changing to classes111.jar, but now get this error: java.lang.UnsatisfiedLinkError: no ocijdbc8 in shared library path Also I should point out that I am using Oracle 8.0.4 on HP. Thanks for the suggestions though -Original Message- From: p niemandt [mailto:[EMAIL PROTECTED]] Sent: 07 January 2003 18:25 To: Tomcat Users List Subject: RE: HP-UX 10.20 + Oracle As far as I know you should use ojdbc14.jar for Oracle9: Though previous ones should work, the ojdbc14.jar is recommended / needed for Oracle9. {The classnames are different between classes12.jar and the new ojdbc14.jar} On Tue, 2003-01-07 at 17:57, Wagoner, Mark wrote: I think classes12.jar is for JDK 1.2. You want classes111.jar (if you can find it). -Original Message- From: John Clark [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 07, 2003 12:54 PM To: 'Tomcat Users List' Subject: HP-UX 10.20 + Oracle Hi there, The story so far: I have an intranet application that currently runs on a Linux server (with Oracle 9i - built-in Apache) and W2000 server (with Tomcat 4.x connecting to Oracle 8). It is written in JSP and Java, and works fine. I now want to use HP-UX 10.20 as a server, so I got the only available JDK from HP which is version 1.1.8 and this has forced me to use Tomcat 3.3.1. This is all running now (thanks for the help) and I am now testing the application. I have put in the Oracle classes12.jar and DriverManager.registerDriver seems fine, but DriverManager.getConnection gives the following error (only partial list): java.lang.ClassNotFoundException: java.util.Map at org.apache.tomcat.util.compat.SimpleClassLoader.loadClass(Compiled Code) at java.lang.ClassLoader.loadClassInternal(Compiled Code) at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:358) at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:260) at java.sql.DriverManager.getConnection(DriverManager.java:83) at java.sql.DriverManager.getConnection(DriverManager.java:126) at estimating._final.loginvalidate_1._jspService(loginvalidate_1.java:123) Anyone got any ideas? Many thanks as usual. John -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- p niemandt [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: mod_jk tomcat/apache connector issue
No problem, John. (nice name ;) Versions: Solaris 8 gcc 2.95.3 libtool 1.4 tar 1.13.19 tomcat connectors source 4.1.18 etc. (let me know if you need any more versions for make, autoconf, etc.) Following the instructions for mod_jk on your how-to and 'src/jk/native/BUILDING', I run: ./configure --with-apxs=/usr/local/apache2/bin/apxs Which creates the Makefile environment... I attempt the buildconf.sh script even though it isn't required and it fails with the following: libtoolize --force --automake --copy aclocal automake -a --foreign -i --copy configure.in: 22: required file `scripts/build/unix/ltconfig' not found autoconf configure.in:24: AC_PROG_CPP was called before AC_PROG_CC I try 'make' and, while it doesn't give an error, I get no mod_jk.so file and the following messages: Making all in common make[1]: Entering directory `/path/to/src/jk/native/common' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/path/to/src/jk/native/common' Making all in apache-2.0 make[1]: Entering directory `/path/to/src/jk/native/apache-2.0' /bin/bash /usr/local/apache2/build/libtool --silent --mode=install cp mod_jk.la `pwd`/mod_jk.so libtool: install: warning: remember to run `libtool --finish /usr/local/apache2/modules' make[1]: Leaving directory `/path/to/src/jk/native/apache-2.0' This leaves me with a mod_jk.la file that is 617 bytes. :( I know there's a root cause to all of these problems and once I fix it, I can probably switch back and forth between mod_jk and mod_jk2 in my sleep but as-is, I'm stuck and frustrated. Thanks for any help you can provide and thanks for the work you put into that how-to! [ j o h n ] -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 07, 2003 12:06 PM To: 'Tomcat Users List' Subject: RE: mod_jk tomcat/apache connector issue There's no need to build the connectors with ant. AFAIK, the ant method builds the tomcat side of the connectors, which is redundant if you're using a binary install of Tomcat as they are included. To build the Apache side, you can use the ./configure method, which, in my mind, is much easier to work with and debug. I got a little crazy with my Delete key, so I don't have this whole thread to reference, but if you want to post/re-post your OS, versions, etc., start clean and step through it on the list, let me know. John -Original Message- From: John Bullock [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 07, 2003 12:24 PM To: 'Tomcat Users List' Subject: RE: mod_jk tomcat/apache connector issue Thanks Adrian... I commented out the JK2 connector in server.xml and uncommented the JK connector... still got the 'syntax error on line 4' error message when attempting to start apache. I also followed the instructions for trying to build coyote/JK2 on the URL you posted before I gave up and tried to do mod_jk instead... the mod_jk2 problems I had were in step 8 where you run 'ant native'... the 'ant' in the root gave me jtc.jar with no problems, but when I did 'ant native' in the /jk directory, the build failed with the following: [so] StdErr: [so] ld: warning: option -o appears more than once, first setting taken [so] ld: fatal: file mod_jk.so: cannot open file: No such file or directory [so] ld: fatal: File processing errors. No output written to .libs/mod_jk.so [so] collect2: ld returned 1 exit status Tried rebuilding from scratch and all sorts of things before throwing in the towel and following John Turner's how-to, but I can't seem to get that one to work either... I must be missing something because I know it can't be this hard to get it to work. :( [ j o h n ] The reason I asked was the default connector on 8009 is for JK2 , right below it commented out is the jk connector, I had to make the change recently for an Apache2 config. Also for building mod_jk, check out http://www.pubbitch.org/jboss/mod_jk2.html, may give a little insight. -Original Message- From: adrian [mailto:[EMAIL PROTECTED]] Sent: Monday, January 06, 2003 5:56 PM To: Tomcat Users List Subject: Re: mod_jk tomcat/apache connector issue John Bullock wrote: I'll try to explain.. :) For a long time, I've tried to build mod_jk with the 4.1.18 connectors package to no avail... it wouldn't give any errors, but I'd wind up with a mod_jk.la file (617 bytes) and no .so file whatsoever. Using a link from John Turner's how-to, I downloaded a pre-compiled binary of mod_jk and followed the configuration steps. Just in case: http://www.johnturner.com/howto/apache2-tomcat4112-sol8-howto.html [ j o h n ] -Original Message- From: adrian [mailto:[EMAIL PROTECTED]] Sent: Monday, January 06, 2003 5:38 PM To: Tomcat Users List Subject: Re: mod_jk tomcat/apache connector issue John Bullock wrote: Haven't seen this anywhere, but when I try to start apache (2.0.43)