mod_jk2 connector
Hi All, I have difficulty to make mod_jk2 connector to work. :-( I try to use Unix Channel from this tutorial : http://cymulacrum.net/writings/tomcat5/c840.html The problems are: - Can not generated jk2.shm & jk2.socket - Error in Catalina.out INFO: APR not loaded, disabling jni components: java.io.IOException: java.lang.UnsatisfiedLinkError: /usr/lib/apache2/jkjni.so: /usr/lib/apache2/jkjni.so: undefined symbol: apr_md5_final Here are my configurations: Jk2.properties handler.list=apr,request,channelUnix channelUnix.file=/var/cache/tomcat5/work/jk2.socket serverRoot=/etc/httpd/2.0 apr.NativeSo=/etc/httpd/2.0/modules/jkjni.so workers2.properties [shm] info=Scoreboard. Requried for reconfiguration and status with multiprocess servers. file=/usr/share/tomcat5/logs/jk2.shm size=1048576 debug=0 disabled=0 [channel.un:/usr/share/tomcat5/work/jk2.socket] tomcatId=localhost:8009 debug=0 [ajp13:/var/cache/tomcat5/work/jk2.socket] channel=channel.un:/usr/share/tomcat5/work/jk2.socket [uri:/jkstatus/*] group=status:status [status:status] info=Status worker, displays runtime information [uri:/examples/*] [uri:/MyFirst/*] [uri:/jkstatus/*] info=The Tomcat /jkstatus handler group=status: [uri:/ROOT/*] [uri:/tomcat-docs/*] [uri:/manager/*] Any help would be appreciated, thank you very much. Best Regards, Ricky Ign Virtual Map (www.virtual-map.com) CONFIDENTIALITY STATEMENT: This email and any attachment herein contains strictly confidential information. The same are intended only for the named Recipient(s) as above mentioned . In the event you are not named as a Recipient, we ask that you inform us of this immediately. Do not disseminate anything herein and please delete this message and any attachment in its entirety from any system you may have control over.
Re: mod_jk2 connector
Try commenting everything out in jk2.props, should get you connector working even if the jni stuff takes more work afterwards. Mark On 5 Jun 2004, at 12:23, Ricky wrote: Hi All, I have difficulty to make mod_jk2 connector to work. :-( I try to use Unix Channel from this tutorial : http://cymulacrum.net/writings/tomcat5/c840.html The problems are: - Can not generated jk2.shm & jk2.socket - Error in Catalina.out INFO: APR not loaded, disabling jni components: java.io.IOException: java.lang.UnsatisfiedLinkError: /usr/lib/apache2/jkjni.so: /usr/lib/apache2/jkjni.so: undefined symbol: apr_md5_final Here are my configurations: Jk2.properties handler.list=apr,request,channelUnix channelUnix.file=/var/cache/tomcat5/work/jk2.socket serverRoot=/etc/httpd/2.0 apr.NativeSo=/etc/httpd/2.0/modules/jkjni.so workers2.properties [shm] info=Scoreboard. Requried for reconfiguration and status with multiprocess servers. file=/usr/share/tomcat5/logs/jk2.shm size=1048576 debug=0 disabled=0 [channel.un:/usr/share/tomcat5/work/jk2.socket] tomcatId=localhost:8009 debug=0 [ajp13:/var/cache/tomcat5/work/jk2.socket] channel=channel.un:/usr/share/tomcat5/work/jk2.socket [uri:/jkstatus/*] group=status:status [status:status] info=Status worker, displays runtime information [uri:/examples/*] [uri:/MyFirst/*] [uri:/jkstatus/*] info=The Tomcat /jkstatus handler group=status: [uri:/ROOT/*] [uri:/tomcat-docs/*] [uri:/manager/*] Any help would be appreciated, thank you very much. Best Regards, Ricky Ign Virtual Map (www.virtual-map.com) CONFIDENTIALITY STATEMENT: This email and any attachment herein contains strictly confidential information. The same are intended only for the named Recipient(s) as above mentioned . In the event you are not named as a Recipient, we ask that you inform us of this immediately. Do not disseminate anything herein and please delete this message and any attachment in its entirety from any system you may have control over. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: mod_jk2 connector
Hi, Thanks for replay. I already comment all and the error disappear from Catalina.out But still can not integrated apache 2 with tomcat 5. Any ideas why? Are there any other ways to connect tomcat 5 with apache 2? Best Regards, Ricky -Original Message- From: Mark Lowe [mailto:[EMAIL PROTECTED] Sent: Saturday, June 05, 2004 7:56 PM To: Tomcat Users List Subject: Re: mod_jk2 connector Try commenting everything out in jk2.props, should get you connector working even if the jni stuff takes more work afterwards. Mark On 5 Jun 2004, at 12:23, Ricky wrote: > Hi All, > > I have difficulty to make mod_jk2 connector to work. :-( > > I try to use Unix Channel from this tutorial : > http://cymulacrum.net/writings/tomcat5/c840.html > > The problems are: > > - Can not generated jk2.shm & jk2.socket > > - Error in Catalina.out > > INFO: APR not loaded, disabling jni components: java.io.IOException: > java.lang.UnsatisfiedLinkError: /usr/lib/apache2/jkjni.so: > /usr/lib/apache2/jkjni.so: undefined symbol: apr_md5_final > > > > Here are my configurations: > > > > Jk2.properties > > handler.list=apr,request,channelUnix > > channelUnix.file=/var/cache/tomcat5/work/jk2.socket > > serverRoot=/etc/httpd/2.0 > > apr.NativeSo=/etc/httpd/2.0/modules/jkjni.so > > > > workers2.properties > > [shm] > > info=Scoreboard. Requried for reconfiguration and status with > multiprocess servers. > > file=/usr/share/tomcat5/logs/jk2.shm > > size=1048576 > > debug=0 > > disabled=0 > > > > [channel.un:/usr/share/tomcat5/work/jk2.socket] > > tomcatId=localhost:8009 > > debug=0 > > > > [ajp13:/var/cache/tomcat5/work/jk2.socket] > > channel=channel.un:/usr/share/tomcat5/work/jk2.socket > > > > [uri:/jkstatus/*] > > group=status:status > > > > [status:status] > > info=Status worker, displays runtime information > > > > [uri:/examples/*] > > > > [uri:/MyFirst/*] > > > > [uri:/jkstatus/*] > > info=The Tomcat /jkstatus handler > > group=status: > > > > [uri:/ROOT/*] > > > > [uri:/tomcat-docs/*] > > > > [uri:/manager/*] > > > > > > > > Any help would be appreciated, thank you very much. > > > > Best Regards, > > > > Ricky Ign > > Virtual Map (www.virtual-map.com) > > > > > > > > CONFIDENTIALITY STATEMENT: > > This email and any attachment herein contains strictly confidential > information. The same are intended only for the named Recipient(s) as > above mentioned . In the event you are not named as a Recipient, we > ask that you inform us of this immediately. Do not disseminate > anything herein and please delete this message and any attachment in > its entirety from any system you may have control over. > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] CONFIDENTIALITY STATEMENT: This email and any attachment herein contains strictly confidential information. The same are intended only for the named Recipient(s) as above mentioned . In the event you are not named as a Recipient, we ask that you inform us of this immediately. Do not disseminate anything herein and please delete this message and any attachment in its entirety from any system you may have control over. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
mod_jk2 connector module not working (?)
Okay, now that I successfully built the connectors and have installed them. The JSP and servlets are not working so, I'm almost there but not quite yet.. Are these errors in the error_log file of any significance? [Fri Jan 31 14:47:04 2003] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?) [Fri Jan 31 14:47:04 2003] [error] config.update(): Can't find config file /usr/local/apache2/conf/workers2.properties [Fri Jan 31 14:47:04 2003] [error] shm.init(): No file [Fri Jan 31 14:47:05 2003] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?) [Fri Jan 31 14:47:05 2003] [error] jk2_init() Can't find child 630400 in scoreboard [Fri Jan 31 14:47:05 2003] [error] shm.init(): No file [Fri Jan 31 14:47:05 2003] [error] mod_jk child init 1 -2 [Fri Jan 31 14:47:05 2003] [error] shm.init(): No file [Fri Jan 31 14:47:05 2003] [error] mod_jk child init 1 0 [Fri Jan 31 14:47:05 2003] [error] shm.init(): No file [Fri Jan 31 14:47:05 2003] [error] shm.init(): No file [Fri Jan 31 14:47:05 2003] [notice] Apache/2.0.44 (Unix) mod_jk2/2.0.3-dev mod_ssl/2.0.44 OpenSSL/0.9.6g configured -- resuming normal operations ..looks like shared memory init function call is not working properly? And are the mod_jk and jk2_init init messages bad? Thanks for all the help! Cheers, -- Trev - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk2 connector module not working (?)
Looks like your /usr/local/apache2/conf/workers2.properties is missing. Even if Apache is not installed in one directory (as is the case in my Linux distribution), JK2 insists on it to be in ServerRoot\conf. Your ServerRoot seems to be set to /usr/local/apache2. Check out this link: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/confighowto.html Trevor Hurst wrote: > Okay, now that I successfully built the connectors > and have installed them. The JSP and servlets are > not working so, I'm almost there but not quite yet.. > > Are these errors in the error_log file of any significance? > > [Fri Jan 31 14:47:04 2003] [warn] RSA server certificate is a CA > certificate (BasicConstraints: CA == TRUE !?) > [Fri Jan 31 14:47:04 2003] [error] config.update(): Can't find config > file /usr/local/apache2/conf/workers2.properties > [Fri Jan 31 14:47:04 2003] [error] shm.init(): No file > [Fri Jan 31 14:47:05 2003] [warn] RSA server certificate is a CA > certificate (BasicConstraints: CA == TRUE !?) > [Fri Jan 31 14:47:05 2003] [error] jk2_init() Can't find child 630400 > in scoreboard > [Fri Jan 31 14:47:05 2003] [error] shm.init(): No file > [Fri Jan 31 14:47:05 2003] [error] mod_jk child init 1 -2 > [Fri Jan 31 14:47:05 2003] [error] shm.init(): No file > [Fri Jan 31 14:47:05 2003] [error] mod_jk child init 1 0 > [Fri Jan 31 14:47:05 2003] [error] shm.init(): No file > [Fri Jan 31 14:47:05 2003] [error] shm.init(): No file > [Fri Jan 31 14:47:05 2003] [notice] Apache/2.0.44 (Unix) > mod_jk2/2.0.3-dev mod_ssl/2.0.44 OpenSSL/0.9.6g configured -- resuming > normal operations > > > ..looks like shared memory init function call is not working properly? > > And are the mod_jk and jk2_init init messages bad? > > Thanks for all the help! > > Cheers, > > -- Trev > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk2 connector module not working (?)
Right, and also make sure your have an [shm:] block in workers2.properties otherwise jk2 can't start correctly. Regards, Lajos Hannes Schmidt wrote: Looks like your /usr/local/apache2/conf/workers2.properties is missing. Even if Apache is not installed in one directory (as is the case in my Linux distribution), JK2 insists on it to be in ServerRoot\conf. Your ServerRoot seems to be set to /usr/local/apache2. Check out this link: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/confighowto.html Trevor Hurst wrote: Okay, now that I successfully built the connectors and have installed them. The JSP and servlets are not working so, I'm almost there but not quite yet.. Are these errors in the error_log file of any significance? [Fri Jan 31 14:47:04 2003] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?) [Fri Jan 31 14:47:04 2003] [error] config.update(): Can't find config file /usr/local/apache2/conf/workers2.properties [Fri Jan 31 14:47:04 2003] [error] shm.init(): No file [Fri Jan 31 14:47:05 2003] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?) [Fri Jan 31 14:47:05 2003] [error] jk2_init() Can't find child 630400 in scoreboard [Fri Jan 31 14:47:05 2003] [error] shm.init(): No file [Fri Jan 31 14:47:05 2003] [error] mod_jk child init 1 -2 [Fri Jan 31 14:47:05 2003] [error] shm.init(): No file [Fri Jan 31 14:47:05 2003] [error] mod_jk child init 1 0 [Fri Jan 31 14:47:05 2003] [error] shm.init(): No file [Fri Jan 31 14:47:05 2003] [error] shm.init(): No file [Fri Jan 31 14:47:05 2003] [notice] Apache/2.0.44 (Unix) mod_jk2/2.0.3-dev mod_ssl/2.0.44 OpenSSL/0.9.6g configured -- resuming normal operations ..looks like shared memory init function call is not working properly? And are the mod_jk and jk2_init init messages bad? Thanks for all the help! Cheers, -- Trev - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Lajos Moczar Open Source Support, Consulting and Training Cocoon Developer's Handbook (www.amazon.com/exec/obidos/tg/detail/-/0672322579) _ _ / \ / /___\ / / \ / http://www.galatea.com -- powered by AzSSL - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk2 connector module not working (?)
Hello, [error] shm.init(): No file Have you an "jk2.shm" file in your Apache/Logs ?? And in the "jk2.properties" the line shm.file with Achache_Root/logs ?? Fred - Original Message - From: "Hannes Schmidt" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Saturday, February 01, 2003 1:18 AM Subject: Re: mod_jk2 connector module not working (?) > Looks like your > > /usr/local/apache2/conf/workers2.properties > > is missing. Even if Apache is not installed in one directory (as is the case > in my Linux distribution), JK2 insists on it to be in ServerRoot\conf. Your > ServerRoot seems to be set to /usr/local/apache2. Check out this link: > > http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/confighowto.html > > Trevor Hurst wrote: > > Okay, now that I successfully built the connectors > > and have installed them. The JSP and servlets are > > not working so, I'm almost there but not quite yet.. > > > > Are these errors in the error_log file of any significance? > > > > [Fri Jan 31 14:47:04 2003] [warn] RSA server certificate is a CA > > certificate (BasicConstraints: CA == TRUE !?) > > [Fri Jan 31 14:47:04 2003] [error] config.update(): Can't find config > > file /usr/local/apache2/conf/workers2.properties > > [Fri Jan 31 14:47:04 2003] [error] shm.init(): No file > > [Fri Jan 31 14:47:05 2003] [warn] RSA server certificate is a CA > > certificate (BasicConstraints: CA == TRUE !?) > > [Fri Jan 31 14:47:05 2003] [error] jk2_init() Can't find child 630400 > > in scoreboard > > [Fri Jan 31 14:47:05 2003] [error] shm.init(): No file > > [Fri Jan 31 14:47:05 2003] [error] mod_jk child init 1 -2 > > [Fri Jan 31 14:47:05 2003] [error] shm.init(): No file > > [Fri Jan 31 14:47:05 2003] [error] mod_jk child init 1 0 > > [Fri Jan 31 14:47:05 2003] [error] shm.init(): No file > > [Fri Jan 31 14:47:05 2003] [error] shm.init(): No file > > [Fri Jan 31 14:47:05 2003] [notice] Apache/2.0.44 (Unix) > > mod_jk2/2.0.3-dev mod_ssl/2.0.44 OpenSSL/0.9.6g configured -- resuming > > normal operations > > > > > > ..looks like shared memory init function call is not working properly? > > > > And are the mod_jk and jk2_init init messages bad? > > > > Thanks for all the help! > > > > Cheers, > > > > -- Trev > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Virtual host and mod_jk2 connector setup questions
HI all, I am only newbie to tomcat. I really need help on setting up tomcat 4.1.27 with mod_jk2 connector with a virtual host on apache 2.0.47. I have digged through the mail-list and the jarkata doco page. still no help. Here are my configuration files and the output of the catalina.out file. When i get rid of the section in the server.xml it doesn't come up any error on the catalina.out file. 1. Am I on the right track of setting up virtual host on apache and tomcat? 2. Would that be a problem when I compile the connector and apache myself? SPECs. REDHAT 9.0 j2sdk1.4.2 jakarta-tomcat-4.1.27(binary) apache2.0.47 (./configure --enable-so --enable-ssl --with-ssl=/usr/local/ssl --enable-vho st-alias) jakarta-tomcat-connectors-4.1.27-src (./configure --with-apxs2=/usr/local/apache2/bin/apxs \ --with-tomcat41=/usr/local/tomcat\ --with-java-home=/usr/local/java \ --with-apache2-lib=/usr/local/apache2/lib \ --with-apr-lib=/usr/local/apache2/lib \ --with-jni) THANKS in advance. =catalina.out Sep 2, 2003 2:31:24 PM org.apache.commons.modeler.Registry loadRegistry INFO: Loading registry information Sep 2, 2003 2:31:24 PM org.apache.commons.modeler.Registry getRegistry INFO: Creating new Registry instance Sep 2, 2003 2:31:30 PM org.apache.commons.modeler.Registry getServer INFO: Creating MBeanServer Sep 2, 2003 2:31:37 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on port 8080 Starting service Tomcat-Standalone Apache Tomcat/4.1.27 Sep 2, 2003 2:31:43 PM org.apache.commons.digester.Digester error SEVERE: Parse Error at line 42 column 11: The content of element type "web-app" must match "(icon?,display-name?,description?,distributable?,context-param*,filter*,fil ter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mappin g*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,se curity-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-loca l-ref*)". org.xml.sax.SAXParseException: The content of element type "web-app" must match "(icon?,display-name?,description?,distributable?,context-param*,filter*,fil ter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mappin g*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,se curity-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-loca l-ref*)". at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source) at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc her.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.commons.digester.Digester.parse(Digester.java:1548) 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:3568) 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:2190) at org.apache.catalina.startup.Catalina.start(Catalina.java:512) 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.DelegatingMethodAcc
RE: Virtual host and mod_jk2 connector setup questions
Hi all tomcat guru, After mess around. I found out what the problem was. it was the web.xml. all the tags has to place before the tags. I assume that the tags in web.xml has to be put in a certain order. But another problem. I can access all the *.jsp file with no problem with the virutal host i setup (e.g. www.domain.com/test.jsp). But I can access to my test servlet(e.g. www.domain.com/HelloWorld). it comes up page not found. here is my web.xml under /web/domain.com/htdocs/WEB-INF here is my webapp directory structure /web/domain.com/htdocs (have all the *.jsp files) /web/domain.com/htdocs/WEB-INF /web/domain.com/htdocs/WEB-INF/classes (all the *.classes) web.xml sits under /web/domain.com/htdocs/WEB-INF Could any one please let me know where did I do wrong? web.xml=== http://java.sun.com/dtd/web-app_2_3.dtd";> Test webapp Test webapp HelloWorld HelloWorld HelloWorld /HelloWorld Cheers, Clive -Original Message- From: Clive Luk [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 02, 2003 2:56 PM To: Tomcat Users List Subject: Virtual host and mod_jk2 connector setup questions HI all, I am only newbie to tomcat. I really need help on setting up tomcat 4.1.27 with mod_jk2 connector with a virtual host on apache 2.0.47. I have digged through the mail-list and the jarkata doco page. still no help. Here are my configuration files and the output of the catalina.out file. When i get rid of the section in the server.xml it doesn't come up any error on the catalina.out file. 1. Am I on the right track of setting up virtual host on apache and tomcat? 2. Would that be a problem when I compile the connector and apache myself? SPECs. REDHAT 9.0 j2sdk1.4.2 jakarta-tomcat-4.1.27(binary) apache2.0.47 (./configure --enable-so --enable-ssl --with-ssl=/usr/local/ssl --enable-vho st-alias) jakarta-tomcat-connectors-4.1.27-src (./configure --with-apxs2=/usr/local/apache2/bin/apxs \ --with-tomcat41=/usr/local/tomcat\ --with-java-home=/usr/local/java \ --with-apache2-lib=/usr/local/apache2/lib \ --with-apr-lib=/usr/local/apache2/lib \ --with-jni) THANKS in advance. =catalina.out Sep 2, 2003 2:31:24 PM org.apache.commons.modeler.Registry loadRegistry INFO: Loading registry information Sep 2, 2003 2:31:24 PM org.apache.commons.modeler.Registry getRegistry INFO: Creating new Registry instance Sep 2, 2003 2:31:30 PM org.apache.commons.modeler.Registry getServer INFO: Creating MBeanServer Sep 2, 2003 2:31:37 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on port 8080 Starting service Tomcat-Standalone Apache Tomcat/4.1.27 Sep 2, 2003 2:31:43 PM org.apache.commons.digester.Digester error SEVERE: Parse Error at line 42 column 11: The content of element type "web-app" must match "(icon?,display-name?,description?,distributable?,context-param*,filter*,fil ter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mappin g*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,se curity-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-loca l-ref*)". org.xml.sax.SAXParseException: The content of element type "web-app" must match "(icon?,display-name?,description?,distributable?,context-param*,filter*,fil ter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mappin g*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,se curity-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-loca l-ref*)". at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source) at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc her.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.commons.digester.Digester.parse(Digester.java:1548) at org.apache.catalina.startup.ContextConfig.applicationConfig(ContextConfig.ja va:282) at org.apache.catalina.startup.C
Problem compiling mod_jk2 connector in Solaris 8 Apache 2.0.39
Hello, I have a Sun Blade 100 (SPARC) running Solaris 8 with all its bundled patches. I'm traing to configure Apache HTTP 2.0.39 with Tomcat 4.1.18, i got Apache and Tomcat working seperatly but i'm traing to make it work together via Coyote mod_jk2, but when i try to compile mod_jk2 connectors a get an error. Can any one help I dont now if i'm missing a package that i need to install or is something else that i'm missing. It traid the compiled mod_jk2 thats in http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/release/v2.0.2/bin/solaris8/ but its compiled for Apache HTTPD 2.0.43 and it dosent let apache version of apache start. In the Solaris Machine i have installed: - Solaris 8 (SPARC) - Apache HTTP 2.0.39 (i need to make it work whit this version) - Tomcat 4.1.18 - Tomcat Connectors 4.1.18 - GNU gcc 3.2.2 - GNUmake 3.80 - Perl 5.8.0 - Jakarta ant 1.5.1 - autocong 2.57 - expect 5.38 - gd 1.8.3 - j2sdk 1.4.1 - libtool 1.4 - GNU tar 1.13. - tcl 8.4.1 - tk 8.4.1 - openssl 0.9.6g Here is the what i'm doing to compile the connectors and at the end the error message # pwd /opt/jakarta-tomcat-connectors-4.1.18-src/jk/native2 #*sh ./buildconf.sh* libtoolize --force --automake --copy aclocal automake --copy --add-missing configure.in: installing `scripts/build/unix/install-sh' configure.in: installing `scripts/build/unix/mkinstalldirs' configure.in: installing `scripts/build/unix/missing' autoconf # cp /usr/j2se/include/solaris/* /usr/java/include/ # pwd /opt/jakarta-tomcat-connectors-4.1.18-src/jk/native2 #*CPPFLAGS=-DBSD_COMP ./configure --with-apxs2=/usr/local/apache/bin/apxs --with-tomcat41=/opt/jakarta-tomcat-4.1.18 --with-java-home=/usr/j2se --with-java-platform=2 --with-jni* checking for a BSD-compatible install... scripts/build/unix/install-sh -c checking whether build environment is sane... yes checking for gawk... no checking for mawk... no checking for nawk... nawk checking whether make sets $(MAKE)... yes checking for gcc... gcc checking for C compiler default output... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking for style of include used by make... GNU checking dependency style of gcc... none checking build system type... sparc-sun-solaris2.8 checking host system type... sparc-sun-solaris2.8 checking for ld used by GCC... /usr/ccs/bin/ld checking if the linker (/usr/ccs/bin/ld) is GNU ld... no checking for /usr/ccs/bin/ld option to reload object files... -r checking for BSD-compatible nm... /usr/ccs/bin/nm -p checking whether ln -s works... yes checking how to recognise dependant libraries... pass_all checking command to parse /usr/ccs/bin/nm -p output... ok checking how to run the C preprocessor... gcc -E checking for egrep... Broken Pipe egrep checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... no checking for unistd.h... yes checking dlfcn.h usability... yes checking dlfcn.h presence... yes checking for dlfcn.h... yes checking for ranlib... ranlib checking for strip... strip checking for objdir... .libs checking for gcc option to produce PIC... -fPIC checking if gcc PIC flag -fPIC works... yes checking if gcc static flag -static works... yes checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.lo... checking if gcc supports -fno-rtti -fno-exceptions... yes checking whether the linker (/usr/ccs/bin/ld) supports shared libraries... yes checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... no checking dynamic linker characteristics... solaris2.8 ld.so checking if libtool supports shared libraries... yes creating libtool checking for test... /usr/bin/test checking for rm... /usr/bin/rm checking for grep... /usr/bin/grep checking for echo... /usr/bin/echo checking for sed... /usr/bin/sed checking for cp... /usr/bin/cp checking for mkdir... /usr/bin/mkdir no apxs given need to check for Perl first, apxs depends on it... checking for perl... /usr/local/bin/perl building connector for "apache-2.0" checking for tomcat33 location... not provided checking for tomcat40 location... not provided checking for tomcat41 location... /opt/jakarta-tomcat-4.1.18 checking for JDK location (please wait)... /usr/j2se checking Java platform... 2 checking os_type directory... configure: creating ./config.status config.status: creating Makefile config.status: creating server/apache13/Makefile config.status: creating server/apache13/Makefile.apxs config.status: creating server/apache2/Makefile co
FW: MOD_JK2 Connector possibly corrupting javascript files (mod_jk2-2.0.43.dll)
Dear participants of this list. My environment is: OS : Windows XP Web Server : Apache 2.0.43 Tomcat : 4.1.18 Connector : mod_jk2 (mod_jk2-2.0.43.dll) I have deployed a sample application, that includes some dhtml javascript (HM_ScriptDOM.js) for simplicity I placed this file in the example context when accessing this javascript by not going thru the connector: http://127.0.0.1:8080/examples/HM_ScriptDOM.js behavior is as expected, no corruption occurs and some simple error is thrown due to undefined variables However hitting the same uri via a connector: http://127.0.0.1/examples/HM_ScriptDOM.js seemes to be corrupting this javascript file Wonder if this is an environmental error, or indeed a serious defect Attaching all relevant files that might help diagnose problem, wonder if any of you came across this problem for space reasons I couldnt attach HM_ScriptDOM.js, but that readily can be obtained from http://helikon.muze.nl/cgi-bin/cvsweb/ariadne/www/widgets/menu/HM_ScriptDOM. js?sortby=author regards # # Based upon the NCSA server configuration files originally by Rob McCool. # # This is the main Apache server configuration file. It contains the # configuration directives that give the server its instructions. # See http://httpd.apache.org/docs-2.0/> for detailed information about # the directives. # # Do NOT simply read the instructions in here without understanding # what they do. They're here only as hints or reminders. If you are unsure # consult the online docs. You have been warned. # # The configuration directives are grouped into three basic sections: # 1. Directives that control the operation of the Apache server process as a # whole (the 'global environment'). # 2. Directives that define the parameters of the 'main' or 'default' server, # which responds to requests that aren't handled by a virtual host. # These directives also provide default values for the settings # of all virtual hosts. # 3. Settings for virtual hosts, which allow Web requests to be sent to # different IP addresses or hostnames and have them handled by the # same Apache server process. # # Configuration and logfile names: If the filenames you specify for many # of the server's control files begin with "/" (or "drive:/" for Win32), the # server will use that explicit path. If the filenames do *not* begin # with "/", the value of ServerRoot is prepended -- so "logs/foo.log" # with ServerRoot set to "C:/Apache/Apache2" will be interpreted by the # server as "C:/Apache/Apache2/logs/foo.log". # # NOTE: Where filenames are specified, you must use forward slashes # instead of backslashes (e.g., "c:/apache" instead of "c:\apache"). # If a drive letter is omitted, the drive on which Apache.exe is located # will be used by default. It is recommended that you always supply # an explicit drive letter in absolute paths, however, to avoid # confusion. # ### Section 1: Global Environment # # The directives in this section affect the overall operation of Apache, # such as the number of concurrent requests it can handle or where it # can find its configuration files. # # # ServerRoot: The top of the directory tree under which the server's # configuration, error, and log files are kept. # # NOTE! If you intend to place this on an NFS (or otherwise network) # mounted filesystem then please read the LockFile documentation (available # at http://httpd.apache.org/docs-2.0/mod/mpm_common.html#lockfile>); # you will save yourself a lot of trouble. # # Do NOT add a slash at the end of the directory path. # ServerRoot "C:/Apache/Apache2" # # ScoreBoardFile: File used to store internal server process information. # If unspecified (the default), the scoreboard will be stored in an # anonymous shared memory segment, and will be unavailable to third-party # applications. # If specified, ensure that no two invocations of Apache share the same # scoreboard file. The scoreboard file MUST BE STORED ON A LOCAL DISK. # #ScoreBoardFile logs/apache_runtime_status # # PidFile: The file in which the server should record its process # identification number when it starts. # PidFile logs/httpd.pid # # Timeout: The number of seconds before receives and sends time out. # Timeout 300 # # KeepAlive: Whether or not to allow persistent connections (more than # one request per connection). Set to "Off" to deactivate. # KeepAlive On # # MaxKeepAliveRequests: The maximum number of requests to allow # during a persistent connection. Set to 0 to allow an unlimited amount. # We recommend you leave this number high, for maximum performance. # MaxKeepAliveRequests 100 # # KeepAliveTimeout: Number of seconds to wait for the next request from the # same client on the same connection. # KeepAliveTimeout 15 ## ## Server-Pool Size Regulation (MPM specific) ## # WinNT MPM # ThreadsPerChild: constant number of worker threads in the server process # MaxRequestsPerChild: maximum number of requests a serv
RE: MOD_JK2 Connector possibly corrupting javascript files (mod_jk2-2.0.43.dll)
Can you define "seems to be corrupting this javascript file"? Be more specific? What exactly is happening? John > -Original Message- > From: Andrew Milkowski [mailto:[EMAIL PROTECTED]] > Sent: Friday, February 07, 2003 12:41 PM > To: Tomcat Users List > Subject: FW: MOD_JK2 Connector possibly corrupting javascript files > (mod_jk2-2.0.43.dll) > > > > Dear participants of this list. > > My environment is: > > OS: Windows XP > Web Server: Apache 2.0.43 > Tomcat: 4.1.18 > Connector : mod_jk2 (mod_jk2-2.0.43.dll) > > I have deployed a sample application, that includes some > dhtml javascript > (HM_ScriptDOM.js) > for simplicity I placed this file in the example context > > when accessing this javascript by not going thru the connector: > http://127.0.0.1:8080/examples/HM_ScriptDOM.js > behavior is as expected, no corruption occurs and some simple error is > thrown due to undefined variables > > However hitting the same uri via a connector: > http://127.0.0.1/examples/HM_ScriptDOM.js seemes to be corrupting > this javascript file > > Wonder if this is an environmental error, or indeed a serious defect > > Attaching all relevant files that might help diagnose > problem, wonder if any > of you came across this problem > > for space reasons I couldnt attach HM_ScriptDOM.js, but that > readily can be > obtained from > http://helikon.muze.nl/cgi-bin/cvsweb/ariadne/www/widgets/menu /HM_ScriptDOM. js?sortby=author regards - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: MOD_JK2 Connector possibly corrupting javascript files (mod_jk2-2.0.43.dll)
Hi, I've used both mod_jk2 with IIS and apache with loads of javascripts with out any problems, so I think you should look at something else. Check if the content type mapping for *.js is correct (in $tomcat_home/conf/web.xml). Hope it helps -reynir > -Original Message- > From: Andrew Milkowski [mailto:[EMAIL PROTECTED]] > Sent: 7. febrúar 2003 17:41 > To: Tomcat Users List > Subject: FW: MOD_JK2 Connector possibly corrupting javascript > files (mod_jk2-2.0.43.dll) > > > > Dear participants of this list. > > My environment is: > > OS: Windows XP > Web Server: Apache 2.0.43 > Tomcat: 4.1.18 > Connector : mod_jk2 (mod_jk2-2.0.43.dll) > > I have deployed a sample application, that includes some > dhtml javascript > (HM_ScriptDOM.js) > for simplicity I placed this file in the example context > > when accessing this javascript by not going thru the > connector: http://127.0.0.1:8080/examples/HM_ScriptDOM.js > behavior is as expected, no corruption occurs and some simple > error is thrown due to undefined variables > > However hitting the same uri via a connector: > http://127.0.0.1/examples/HM_ScriptDOM.js > seemes to be > corrupting this javascript file > > Wonder if this is an environmental error, or indeed a serious defect > > Attaching all relevant files that might help diagnose > problem, wonder if any of you came across this problem > > for space reasons I couldnt attach HM_ScriptDOM.js, but that > readily can be obtained from > http://helikon.muze.nl/cgi-bin/cvsweb/ariadne/www/widgets/menu /HM_ScriptDOM. js?sortby=author regards - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: MOD_JK2 Connector possibly corrupting javascript files (mod_jk2-2.0.43.dll)
My applogy.. space problem did not allow me attaching the file after corruption.. file is 44 kb however this is what I am going to do.. I am going attach a snippet from this file containing corrupted lines of code: (function HM_f_FixSize(makevis){ looks very different in the file received via a connector) file names: original method content in HM_ScriptDOM.js.original file names: original method content in HM_ScriptDOM.js.corrupted regards -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Friday, February 07, 2003 12:47 PM To: 'Tomcat Users List' Subject: RE: MOD_JK2 Connector possibly corrupting javascript files (mod_jk2-2.0.43.dll) Can you define "seems to be corrupting this javascript file"? Be more specific? What exactly is happening? John > -Original Message- > From: Andrew Milkowski [mailto:[EMAIL PROTECTED]] > Sent: Friday, February 07, 2003 12:41 PM > To: Tomcat Users List > Subject: FW: MOD_JK2 Connector possibly corrupting javascript files > (mod_jk2-2.0.43.dll) > > > > Dear participants of this list. > > My environment is: > > OS: Windows XP > Web Server: Apache 2.0.43 > Tomcat: 4.1.18 > Connector : mod_jk2 (mod_jk2-2.0.43.dll) > > I have deployed a sample application, that includes some > dhtml javascript > (HM_ScriptDOM.js) > for simplicity I placed this file in the example context > > when accessing this javascript by not going thru the connector: > http://127.0.0.1:8080/examples/HM_ScriptDOM.js > behavior is as expected, no corruption occurs and some simple error is > thrown due to undefined variables > > However hitting the same uri via a connector: > http://127.0.0.1/examples/HM_ScriptDOM.js seemes to be corrupting > this javascript file > > Wonder if this is an environmental error, or indeed a serious defect > > Attaching all relevant files that might help diagnose > problem, wonder if any > of you came across this problem > > for space reasons I couldnt attach HM_ScriptDOM.js, but that > readily can be > obtained from > http://helikon.muze.nl/cgi-bin/cvsweb/ariadne/www/widgets/menu /HM_ScriptDOM. js?sortby=author regards - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problem compiling mod_jk2 connector in Solaris 8 Apache 2.0.39
Yowzer, that was a lot of scrolling. I had lots of problems with gcc 3.2 on Solaris 8. I ended up going back to 2.95. The library it can't find is the APR library. On my Solaris 8 development server: bash-2.03# find / -name "libapr*" -print /usr/local/apache2/lib/libapr-0.so.0.9.2 /usr/local/apache2/lib/libapr-0.so.0 /usr/local/apache2/lib/libapr-0.so /usr/local/apache2/lib/libapr-0.la /usr/local/apache2/lib/libapr-0.a /usr/local/apache2/lib/libaprutil-0.so /usr/local/apache2/lib/libaprutil-0.so.0.9.2 /usr/local/apache2/lib/libaprutil-0.so.0 /usr/local/apache2/lib/libaprutil-0.la /usr/local/apache2/lib/libaprutil-0.a /usr/local/apache2/lib/libapr.so bash-2.03# John > -Original Message- > From: Julio César Mejia Vergara [mailto:[EMAIL PROTECTED] > Sent: Monday, February 24, 2003 10:44 PM > To: [EMAIL PROTECTED] > Subject: Problem compiling mod_jk2 connector in Solaris 8 > Apache 2.0.39 > > > Hello, > > I have a Sun Blade 100 (SPARC) running Solaris 8 with all its bundled > patches. > I'm traing to configure Apache HTTP 2.0.39 with Tomcat 4.1.18, i got > Apache and Tomcat working seperatly but i'm traing to make it work > together via Coyote mod_jk2, but when i try to compile mod_jk2 > connectors a get an error. > Can any one help > I dont now if i'm missing a package that i need to install or is > something else that i'm missing. > It traid the compiled mod_jk2 thats in > http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2 > /release/v2.0.2/bin/solaris8/ > but its compiled for Apache HTTPD 2.0.43 and it dosent let apache > version of apache start. > In the Solaris Machine i have installed: > - Solaris 8 (SPARC) > - Apache HTTP 2.0.39 (i need to make it work whit this version) > - Tomcat 4.1.18 > - Tomcat Connectors 4.1.18 > - GNU gcc 3.2.2 > - GNUmake 3.80 > - Perl 5.8.0 > - Jakarta ant 1.5.1 > - autocong 2.57 > - expect 5.38 > - gd 1.8.3 > - j2sdk 1.4.1 > - libtool 1.4 > - GNU tar 1.13. > - tcl 8.4.1 > - tk 8.4.1 > - openssl 0.9.6g > Here is the what i'm doing to compile the connectors and at > the end the > error message > > # pwd > /opt/jakarta-tomcat-connectors-4.1.18-src/jk/native2 > #*sh ./buildconf.sh* > libtoolize --force --automake --copy > aclocal > automake --copy --add-missing > configure.in: installing `scripts/build/unix/install-sh' > configure.in: installing `scripts/build/unix/mkinstalldirs' > configure.in: installing `scripts/build/unix/missing' > autoconf > # cp /usr/j2se/include/solaris/* /usr/java/include/ > # pwd > /opt/jakarta-tomcat-connectors-4.1.18-src/jk/native2 > #*CPPFLAGS=-DBSD_COMP ./configure > --with-apxs2=/usr/local/apache/bin/apxs > --with-tomcat41=/opt/jakarta-tomcat-4.1.18 --with-java-home=/usr/j2se > --with-java-platform=2 --with-jni* > checking for a BSD-compatible install... > scripts/build/unix/install-sh -c > checking whether build environment is sane... yes > checking for gawk... no > checking for mawk... no > checking for nawk... nawk > checking whether make sets $(MAKE)... yes > checking for gcc... gcc > checking for C compiler default output... a.out > checking whether the C compiler works... yes > checking whether we are cross compiling... no > checking for suffix of executables... > checking for suffix of object files... o > checking whether we are using the GNU C compiler... yes > checking whether gcc accepts -g... yes > checking for gcc option to accept ANSI C... none needed > checking for style of include used by make... GNU > checking dependency style of gcc... none > checking build system type... sparc-sun-solaris2.8 > checking host system type... sparc-sun-solaris2.8 > checking for ld used by GCC... /usr/ccs/bin/ld > checking if the linker (/usr/ccs/bin/ld) is GNU ld... no > checking for /usr/ccs/bin/ld option to reload object files... -r > checking for BSD-compatible nm... /usr/ccs/bin/nm -p > checking whether ln -s works... yes > checking how to recognise dependant libraries... pass_all > checking command to parse /usr/ccs/bin/nm -p output... ok > checking how to run the C preprocessor... gcc -E > checking for egrep... Broken Pipe > egrep > checking for ANSI C header files... yes > checking for sys/types.h... yes > checking for sys/stat.h... yes > checking for stdlib.h... yes > checking for string.h... yes > checking for memory.h... yes > checking for strings.h... yes > checking for inttypes.h... yes > checking for stdint.h... no > checking for unistd.h... yes > checking dlfcn.h usability... yes > checking dlfcn.h presence... yes > checking for dlfcn.h... yes > checking for ranlib... ranlib > checking for strip... strip > c