2 way SSL ( client authentication)
Hi all, I am trying to implement 2 way SSL ( client authentication) on tomcat 4. I am following all steps. But still have something missing. ( all documentations descrips how to deal with certificates that are varified by CA). I need to know how to generate a normal self-signed certificate and how to use it in a proper way. Thnx. Amjad Shahrour Application Developer Tel: +966.2.653.3334 ext 213 [EMAIL PROTECTED] www.labbaik.com
Re: Admintool cannot save changes to servers.xml
George Sexton wrote: I use the admin app and it works for me. Does the user that Tomcat run under have permissions to the file and directory? Hi George, I checked this already. In /etc/init.d/tomcat, I have: TOMCAT_USER=root and authorizations are: drwxr-xr-x 3 root root 264 2003-12-28 09:08 . drwxr-xr-x 11 root root 352 2003-12-27 13:47 .. drwxr-xr-x 4 root root 96 2003-12-27 14:23 Catalina -rw--- 1 root root6804 2003-11-30 16:06 catalina.policy -rw--- 1 root root2715 2003-11-30 16:06 catalina.properties -rw--- 1 root root 778 2003-11-30 16:06 jk2.properties -rw--- 1 root root 18052 2003-12-27 15:00 server.xml -rw-r--r-- 1 root root 460 2003-12-28 09:08 tomcat-users.xml -rw--- 1 root root 37398 2003-11-30 16:06 web.xml linux:/opt/jakarta-tomcat-5.0.16/conf # I can't see any reason why this shouldn't work. But when, after e.g. Create_New_Host to a service, klicking on save button, the (left) navigation pane changes to admin-login-screen. And the only thing that Commit Changes button does is to change the top frame to admin-login-screen. Also, after changing some User Definition, Commit Changes button will change top frame into login screen, whereas Save button does not affect the navigation pane. Any other idea that would be helpful for me? -- [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Admintool cannot save changes to servers.xml
Jacob Kjome wrote: [...] You don't have to edit server.xml. In fact, you probably shouldn't if you can avoid it. You should be able to provide a context configuration file where you can put all the stuff you would normally put in server.xml for you webapp, but instead this is a standalone xml file which gets read kind of like how Apache server works with .htaccess files. You can even deploy your application with file in the META-INF directory of your .war file and it will get picked up by Tomcat (make sure to call it context.xml if you do this). Hi Jake, Do you mean that creating new services into Tomcat Server, creating new hosts into a service or creating new contexts into a host never needs the server.xml file to be edited? Or should Tomcat Administration Tool save (persitently) changes somewhere else instead of server.xml file? Anyhow, after shutting down and restarting Tomcat, all the changes done to Tomcat Server via Tomcat Administration Tool using Commit Changes are lost. See: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/host.html#Automatic%20Application%20Deployment http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/host.html#Automatic%20Application%20Deployment Also see the manager app docs. Yes, there is a large doc about Manager Application but the only detailed doc I found for admintool is from http://java.sun.com/webservices/docs/1.0/tutorial/doc/Admintool.html BTW, Tomcat5 is much better about all of this than Tomcat4.1 was. I recommend moving to Tomcat5 ASAP. In first mail of this thread I mentioned it already is 5.0.16. Jake Thanks so much for your help -- [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problems with RequestFilterValve
Hi All, I'm having some problems with using RemoteAddrValve to allow only certain addresses to access an Engine. I'm using tomcat 4.1.27 with jdk1.3.1 on Solaris. I've configured the following: Valve className=org.apache.catalina.valves.RemoteAddrValve allow=a.b.c.d/ under the engine. I know I should have escaped the '.' (regexp) but it should work as is. I'm receiving once in every few thousands of requests the following error: 2003-12-26 11:26:51 CoyoteAdapter An exception or error occurred in the container during the request processing java.lang.StringIndexOutOfBoundsException: String index out of range: 11 at java.lang.String.charAt(String.java:511) at org.apache.regexp.StringCharacterIterator.charAt(StringCharacterIterator.java:90) at org.apache.regexp.RE.matchNodes(RE.java:1161) at org.apache.regexp.RE.matchAt(RE.java:1448) at org.apache.regexp.RE.match(RE.java:1540) at org.apache.regexp.RE.match(RE.java:1468) at org.apache.regexp.RE.match(RE.java:1561) at org.apache.catalina.valves.RequestFilterValve.process(RequestFilterValve.java:335) at org.apache.catalina.valves.RemoteAddrValve.invoke(RemoteAddrValve.java:131) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:577) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:601) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619) at java.lang.Thread.run(Thread.java:479) Also, once in every few thousands of requests I'm receiving a 403 access denied error on a valid address (I can see that in the access log). After checking the RequestFilterValve class, I can see it saves the compiled regular expressions (RE) and reuses them to check every request. Looking at regexp documentations, it is explicitly stated that RE is not thread-safe. Am I missing something? It looks like under load, this valve fails. Also, I can see that the RequestFilterValve class didn't change in the 5.0.16 version either. Any help will be appreciated... Slavik. --- This message contains information that may be confidential or privileged. If you are not the intended recipient, you may not use, copy or disclose to anyone any of the information in this message. If you have received this message and are not the intended recipient, kindly notify the sender and delete this message from your computer. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SV: [OFF-TOPIC] Tomcat web hosting
try www.mobinor.com Tore -Opprinnelig melding- Fra: Pitre, Russell [mailto:[EMAIL PROTECTED] Sendt: 8. desember 2003 22:24 Til: Tomcat Users List Emne: [OFF-TOPIC] Tomcat web hosting Hello All- Sorry to bother you with another one of my questions.. Can anyone suggest a good and inexpensive web hosting service that provides tomcat and mySQL support?? Russ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat isn't using Jikes for compiling jsps
Hay there, Because of the outOfMemory errors I get while compiling the (large number of) jsp's I like to use Jikes to compile them. In conf/web.xml I try to configure Tomcat to use Jikes as followed: 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-namecompiler/param-name param-valuejikes/param-value /init-param init-param param-namefork/param-name param-valuetrue/param-value /init-param load-on-startup3/load-on-startup /servlet And on top in bin/catalina.sh I added: CATALINA_OPTS=-Dbuild.compiler.emacs=true. Furter I have set -Xms and -Xmx for the java compiler, but I don't think I have to do this when I want to use Jikes When I now start Tomcat and go through the jsp's I'm still getting the outOfMemory errors after a while. When I'm thinking about this it lookes like Tomcat Isn't using Jikes at all to compile the jsp's Is there a way to check if Tomcat is using Jikes??? And did I do something wrong with my configuration in Tomcat??? Is it necesary to set the fork parameter when I want to use Jikes??? Any help is preciated Hans - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
mod_jk2-2.0.2 + Apache 2.0.48
Hello. I'm trying to compile jakarta-tomcat-connectors-jk2-2.0.2 with apache 2.0.48 on Solaris 9 x86. I've installed Apache and Tomcat 5.0.16 correctly. They are both working. On tomcat-connectors i'm doing this: bash-2.05# pwd /var/tomcat/software/jakarta-tomcat-connectors-jk2-2.0.2-src/jk/native2 bash-2.05# ./buildconf.sh libtoolize --force --automake --copy aclocal automake --copy --add-missing autoconf bash-2.05# ./configure --with-apxs2=/usr/local/apache2/bin/apxs 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 style of include used by make... GNU checking dependency style of gcc... none checking build system type... i386-pc-solaris2.9 checking host system type... i386-pc-solaris2.9 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 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... yes 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.9 ld.so checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static 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/bin/perl building connector for apache-2.0 checking for tomcat33 location... not provided checking for tomcat40 location... not provided checking for tomcat41 location... not provided checking for JDK location (please wait)... /usr/java from environment checking Java platform... checking Java platform... checking os_type directory... solaris 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 config.status: creating server/apache2/Makefile.apxs config.status: creating ../build.properties config.status: creating scripts/build/unix/dummy config.status: executing depfiles commands bash-2.05# make list=' server/apache2'; \ for i in $list; do \ echo Making $target in $i; \ if test $i != .; then \ (cd $i make) || exit 1; \ fi; \ done; Making in server/apache2 make: Fatal error in reader: Makefile, line 19: Unexpected end of line seen Current working directory /var/tomcat/software/jakarta-tomcat-connectors-jk2-2.0.2-src/jk/native2/server/apache2 *** Error code 1 make: Fatal error: Command failed for target `jk2-build' bash-2.05# I've also tried the mod_jk2 binary for solaris 8 for apache 2.0.43, but the apache gives me an error on ELF something. Is there any special requirement for apache 2.0.48? Isnt this tested yet? Thanks. -- Vitor Domingos Paradigma.co.pt - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Fwd: Need Help - JDBC MySQL + Velocity - Apache 2.0.48 + Tomcat 4.1.29 + Mod_jk2 + Windows 2000 Server ( No IIS)
I couldn't tell if this email went through on 12/27/2003 when I sent it. If it did, please accept my apologies. Thanks for your help. Lenny Sorey ==BEGIN FORWARDED MESSAGE== From: Lenny Sorey [EMAIL PROTECTED] To: Tomcat Users Group [EMAIL PROTECTED] Cc: Apache HTTP Users List [EMAIL PROTECTED] Date: Sat, 27 Dec 2003 19:02:11 -0600 Priority: Normal X-Mailer: PMMail 2000 Professional (2.20.2717) For Windows 2000 (5.0.2195;3) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit Subject: Need Help - JDBC MySQL + Velocity - Apache 2.0.48 + Tomcat 4.1.29 + Mod_jk2 + Windows 2000 Server ( No IIS) I currently have Apache 2.0.48 + Tomcat 4.1.29 + Mod_jk2 + Windows 2000 Server ( No IIS) partially working. I get the static content served via http://mysite. This displays the index.jsp which has not database connection. First of all, I will have to share two web sites with one IP address. The problem starts when I try to connect to a page that connect to a 4.1 MySQL database table. I can access everything normally when I use http://mysite:8080/mscarloans/index.jsp as well as when I use http://mysite:8080/mscarloans/creditapp.jsp. I can access the index.jsp, testamonies.jsp static pages from http://mysite/index.jsp or http://mysite/testamonies.jsp. I cannot access any of the jsp pages that have a database connection. I keep getting a org.apache.jasper.JasperException: IO Problems Is there some additional configuration in workers2.properties for a jdbc connection. I am currently connecting to MySQL 4.1 thought a properties file with the following jdbc:mysql://mysite/mscarcredit. In addition, on bannersite, I cannot connect at all when I use http://bannersite, I can connect when I use http://bannersite:8080. I have a jsp that redirects index.jsp to login.vm. Is there a special configuration in workers2.properties where Velocity is used. I have many *.vm templates that are used in this site. In addition, I am using Mysql 4.10 where I'm using mysql-connector-java-3.0.9-stable-bin.jar to connect to my Mysql database via Hibernate. I realize that I've furnished my configuration many times, but I feel with each answer I get back that I'm coming that much closer to success. Thanks for all y'alls help. Lenny Sorey Here's the platform that I am using: Windows 2000 Server - no IIS Tomcat 4.1.29 Apache Http Server 2.0.48 Mod_jk2 or jakarta-tomcat-connectors-jk2.0.2-win32-apache2.0.43.zip J2SDK 1.4.2 MySQL 4.1.0 mysql-connector-java-3.0.9-stable-bin.jar Here's my configuration for my server: jk2.properties - located in d:/java/Tomcat41/conf *** * # # Socket configuration # handler.list=request,container,channelSocket # # socket configuration # channelSocket.port=8009 channelSocket.address=127.0.0.1 channelSocket.maxPort=port+10 *** ** end - jk2.properties workers2.properties - located in d:/java/Apache2/conf *** ** # # basic workers2.properties file # # # shared memory # [shm] file=D:/java/Apache2/logs/shm.file size=1048576 [workerEnv:] info=Global server options timing=1 debug=0 # # IP socket channel # [channel.socket:localhost:8009] port=8009 host=127.0.0.1 # # define the ajp13 worker # [ajp13:localhost:8009] channel=channel.socket:localhost:8009 # # Uri mapping examples - jsp files only # #[uri:/examples/*.jsp] #worker=ajp13:localhost:8009 # # Uri mapping examples - all servlets # #[uri:/examples/servlet/*] #worker=ajp13:localhost:8009 [uri:mysite/] info=Example webapp in the default context. context=/mscarloans debug=0 [uri:mysite/*.jsp] worker=ajp13:localhost:8009 info=Extension mapping [uri:mysite/*] info=Map the whole webapp [uri:mysite/webapp/*] info=mysite data # # [uri:bannersite/] info=Example webapp in the default context. context=/bs debug=0 [uri:bannersite/*.jsp] worker=ajp13:localhost:8009 info=Extension mapping [uri:bannersite/*.vm] worker=ajp13:localhost:8009 info=Map the whole webapp [uri:bannersite/*.do] worker=ajp13:localhost:8009 info=Map the whole webapp [uri:bannersite/*] worker=ajp13:localhost:8009 info=Map the whole webapp [uri:bannersite/script] info=Map the whole webapp [uri:bannersite/click] info=Map the whole webapp [uri:bannersite/banner] info=Map the whole webapp [status:status] [status:] info=Status worker,displays run time informations [uri:/jkstatus/*] info=Display status information and checks the config file for changes.
RE: Admintool cannot save changes to servers.xml
Do the log files contain no information? -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Sunday, December 28, 2003 2:06 AM To: [EMAIL PROTECTED] Subject: Re: Admintool cannot save changes to servers.xml George Sexton wrote: I use the admin app and it works for me. Does the user that Tomcat run under have permissions to the file and directory? Hi George, I checked this already. In /etc/init.d/tomcat, I have: TOMCAT_USER=root and authorizations are: drwxr-xr-x 3 root root 264 2003-12-28 09:08 . drwxr-xr-x 11 root root 352 2003-12-27 13:47 .. drwxr-xr-x 4 root root 96 2003-12-27 14:23 Catalina -rw--- 1 root root6804 2003-11-30 16:06 catalina.policy -rw--- 1 root root2715 2003-11-30 16:06 catalina.properties -rw--- 1 root root 778 2003-11-30 16:06 jk2.properties -rw--- 1 root root 18052 2003-12-27 15:00 server.xml -rw-r--r-- 1 root root 460 2003-12-28 09:08 tomcat-users.xml -rw--- 1 root root 37398 2003-11-30 16:06 web.xml linux:/opt/jakarta-tomcat-5.0.16/conf # I can't see any reason why this shouldn't work. But when, after e.g. Create_New_Host to a service, klicking on save button, the (left) navigation pane changes to admin-login-screen. And the only thing that Commit Changes button does is to change the top frame to admin-login-screen. Also, after changing some User Definition, Commit Changes button will change top frame into login screen, whereas Save button does not affect the navigation pane. Any other idea that would be helpful for me? -- [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]
Errors when connecting Tomcat to Apache
I'm using the mod_jk module to connect Tomcat to Apache but I get the following errors when I start the Tomcat server: mod_jk location: modules\mod_jk.dll Make sure it is installed corectly or set the config location Using ApacheConfig modJk=PATH_TO_MOD_JK.SO_OR_DLL Can't find workers.properties at C:\jakarta-tomcat\conf\jk\workers.properties Please install it in the default location or set the config location Using ApacheConfig workersConfig=FULL_PATH Starting service Tomcat-Standalone Apache Tomcat/4.0.2 Starting service Tomcat-Apache Apache Tomcat/4.0.2 I checked the location of the mod_jk.dll and it's in the modules folder of Apache. Where should I write the full path using the ApacheConfig as it's telling me to do? As for the second error, the folder jk doesn't contain any workers.properties. In fact, I can't find it in any folder! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Errors when connecting Tomcat to Apache
you shoule create the worker properties file - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Sunday, December 28, 2003 5:59 PM Subject: Errors when connecting Tomcat to Apache I'm using the mod_jk module to connect Tomcat to Apache but I get the following errors when I start the Tomcat server: mod_jk location: modules\mod_jk.dll Make sure it is installed corectly or set the config location Using ApacheConfig modJk=PATH_TO_MOD_JK.SO_OR_DLL Can't find workers.properties at C:\jakarta-tomcat\conf\jk\workers.properties Please install it in the default location or set the config location Using ApacheConfig workersConfig=FULL_PATH Starting service Tomcat-Standalone Apache Tomcat/4.0.2 Starting service Tomcat-Apache Apache Tomcat/4.0.2 I checked the location of the mod_jk.dll and it's in the modules folder of Apache. Where should I write the full path using the ApacheConfig as it's telling me to do? As for the second error, the folder jk doesn't contain any workers.properties. In fact, I can't find it in any folder! - 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: How to: Tomcat 5.0.16 as Windows Service
I pulled down a snapshop of the tomcat source, and I couldn't find the procrun.h file. Could someone create some docs on configuring the new Tomcat 5 service, and place it where some newbs can find? Thanks - Original Message - From: Bill Barker [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, December 28, 2003 12:39 AM Subject: Re: How to: Tomcat 5.0.16 as Windows Service The README contains most of the info. Unfortunately, the definitive info is still in the code :(. Look at 'procrun.h' for the list and most of the descriptions. Merrill Cornish [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Bill, Thanks for the information. I was worried about the command line length. Where can I find documentation for the various //?// commands? Thanks again, Merrill - 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]
Tomcat 5 Fine Tune Config
I have already created some servlets and copied them into the webapps/ROOT/WEB-INF/classes/servletname/ directory in my Tomcat directory, with associated *.htm and *.jsp files in the webapps/ROOT/ file. What do I have to do so that I can have these servlets working when they are copied into the webapps/servletname/ file in Tomcat 5?? Many Thanks Graham Kendall - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to: Tomcat 5.0.16 as Windows Service
-Original Message- From: David Frankson [mailto:[EMAIL PROTECTED] I pulled down a snapshop of the tomcat source, and I couldn't find the procrun.h file. Could someone create some docs on configuring the new Tomcat 5 service, and place it where some newbs can find? Procrun is the part of jakarta-daemon and jakarta-tomcat-connectors. Jakarta-daemon holds the basic code that needs to be copied to j-t-c. MT. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
org.xml.sax.SAXParseException
I'm having trouble getting tomcat 5.0.14 running on win ME. I have not set my classpath. I have set CATALINA_HOME (C:\jakarta-tomcat-5.0.14) and CATALINA_BASE and JAVA_HOME. I get the following error: INFO: Processing Context configuration file URL file:C:\jakarta-tomcat-5.0.14\conf\Catalina\localhost\manager.xml Dec 26, 2003 6:56:35 PM org.apache.commons.digester.Digester fatalError SEVERE: Parse Fatal Error at line 1 column 3: The markup declarations contained or pointed to by the document type declaration must be well-formed. org.xml.sax.SAXParseException: The markup declarations contained or pointed to by the document type declaration must be well-formed. at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source) at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(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.XMLScanner.reportFatalError(Unknown Source) at org.apache.xerces.impl.XMLDTDScannerImpl.scanDecls(Unknown Source) at org.apache.xerces.impl.XMLDTDScannerImpl.scanDTDExternalSubset(Unknown Source) at org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.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.defaultConfig(ContextConfig.java:612) at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:744) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:257) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4116) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:866) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:850) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633) at org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDeployer.java:831) 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.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:252) at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:256) at org.apache.commons.digester.Rule.end(Rule.java:276) at org.apache.commons.digester.Digester.endElement(Digester.java:1058) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndEl ement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.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:1567) at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:511) at org.apache.catalina.core.StandardHost.install(StandardHost.java:890) at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:523) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:468) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1002) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:393) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1133) at org.apache.catalina.core.StandardHost.start(StandardHost.java:816) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1125) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:518) at org.apache.catalina.core.StandardService.start(StandardService.java:519) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2343) at org.apache.catalina.startup.Catalina.start(Catalina.java:580)
help w/ Tomcat configuration
To whom it may concern: Hi!, I recently installed Tomcat on my Laptop (I have to install it on my Company's Server, which is a Windows 2003 Server, but since this is my first time doing so I begun with my laptop). I already got the http://localhost:8080/ working, but let me tell you that I barely understand the reason I have to install Tomcat, and thus I feel overwhelmed with all this configurations and settings. My Company wishes me replace their Lotus approach DB/interface with something more efficient and new, after some research I decided to implement MySQL, and Java JSP, I knew that I need to install Tomcat in order to display Java JSP pages, but that's all I know. I already went to the Administrator/JSP Engine Config HOW-TO section under my local host, but I get easily intimidated by all the terms used Ant, jikes, forks, etc. Is there a section that explains all that, a glossary of sorts? Even though I have a pretty good idea of what all that means, I rather understand it before acting. I'm barely going to learn Java JSP as well as MySQL, which I know should be first step before diving into Tomcat, but this is an urgent shore and I'm stuck with doing it all at once. Any help would be greatly appreciated. You guys are doing a great work, I still can't believe that all this is open source since it is Top Notch Grade Thank you and have a happy new year! -Gustavo N. P.S. What is a local host? why is my http://localhost:8080/ pointing to a webpage within my computer? what is it doing? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Unsubscibing
Perhaps the list moderator, or the list program itself has been celebrating the new year a little early, I've attempted multiple times to sign off this list to now avail. And yes I did try to contact mailman first and went to the web site (before I get flamed for sending this to the list). I have tried with both email addresses I use, but again to no avail. Is my only choice to bounce the messages back? I hope not, since I would find that as rude as an improper unsubscribe function. --Lee Mahan Chief Technology Officer Design West ACM Member Member of SAGE (System Administrators Guild) Usenix IEEE Associate Member - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Mod JK2 - stickySession not implemented?
Hi, I just made some tests with Mod JK2 version 2.0.43 on windows. My loadbalancing is working fine, but I want to disable sticky sessions. The documentation states, that 'stickySession' is a valid property of a loadbalancer definition and defaults to 1. So I changed worker2.properties this way : [lb:loadbalancer] stickySession=0 Nevertheless sessios are still sticky. I have to comment out the tomcatId properties to finally disable sticky sessions: [ajp13:localhost:11020] channel=channel.socket:localhost:11020 #tomcatId=tomcat1 I scanned mod_jk2-2.0.43.dll for 'sticky' just to ensure, that the property name is correct ( for example it was 'sticky_session' in jk1). But I can't find it all, whereas I can find all the other property names for a loadbalancer!? Could somebody please check, that this feature is really present in source code? Thanks Achim -- +++ GMX - die erste Adresse für Mail, Message, More +++ Neu: Preissenkung für MMS und FreeMMS! http://www.gmx.net - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat-mailman integration
Hi, This question might be a bit outside the topic of this mailing list. Sorry for that but I hope someone could help. I am trying to install mailman on jakarta tomcat 4.1.27. I have done installation successfully I suppose, but I don't know how to integrate mailman with my web server tomcat. I will be very happy if anyone gives me any idea, a web adress or anything else that can help. Thank you very much in advance. Basak - Do you Yahoo!? Yahoo! Photos - Get your photo on the big screen in Times Square
Re: Tomcat 5 Fine Tune Config
Construct the WAR and copy to webapps Tomcat will deploy for you check out this blurb from IBM about WAR A War typically contains a.. Servlets b.. JavaServer Pages (JSP) files c.. Utility classes d.. Static documents, such as HTML files, images, and sound. e.. Client-side applets, beans, and classes f.. Descriptive meta-information Martin - Original Message - From: Graham Kendall [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, December 28, 2003 1:26 PM Subject: Tomcat 5 Fine Tune Config I have already created some servlets and copied them into the webapps/ROOT/WEB-INF/classes/servletname/ directory in my Tomcat directory, with associated *.htm and *.jsp files in the webapps/ROOT/ file. What do I have to do so that I can have these servlets working when they are copied into the webapps/servletname/ file in Tomcat 5?? Many Thanks Graham Kendall - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Context docBase + linux
Hello, I've created user /home/webapptest (with WEB-INF/classes, etc.) for java web applications and added in server.xml line Context docBase=/home/webapptest path=/w... restarted Tomcat. And application with path /w doesn't work. Tomcat logs are showing: StandardContext[/w]: Error initializing resources: Document base /home/webapptest does not exist or is not a readable directory How to do that directory readable? Thanks. -- Best regards, Algirdas mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Why Tomcat shutdown unprovokedly?
Hi All, I have encountered a problem when using Tomcat4.1.29. I changed the appbase to my appliaction's directory (not in $TOMCAT_HOME/webapps) and add a context like this: Context path= docBase=/usr/local/myapplication crossContext=true debug=0 reloadable=true trusted=false /Context The application isn't a standard webapp. There is no web.xml in the application's directory. Everything works well after staring the Tomcat. But after 2-3 hours, the Tomcat will shutdown itself. The catalina.out will record like this (I have modified the debug level to 8): ServerLifecycleListener: Destroying MBean for ContextResource ContextResource[name=UserDatabase, description=User database that can be updated and saved, type=org.apache.catalina.UserDatabase, auth=Container, scope=Shareable] ServerLifecycleListener: Destroying MBean for ContextEnvironment ContextEnvironment[name=simpleValue, type=java.lang.Integer, value=30, overri de=true] ServerLifecycleListener: Destroying MBean for NamingResources [EMAIL PROTECTED] ServerLifecycleListener: Destroying MBean for Valve [EMAIL PROTECTED] ServerLifecycleListener: Destroying MBean for Manager [EMAIL PROTECTED] ServerLifecycleListener: Destroying MBean for Logger [EMAIL PROTECTED] ServerLifecycleListener: Destroying MBean for Loader WebappLoader[] ServerLifecycleListener: Destroying MBean for NamingResources [EMAIL PROTECTED] ServerLifecycleListener: Destroying MBean for Context StandardEngine[Standalone].StandardHost[localhost].StandardContext[] ServerLifecycleListener: Destroying MBean for Valve ErrorReportValve[localhost] ServerLifecycleListener: Destroying MBean for Valve ErrorDispatcherValve[localhost] ServerLifecycleListener: Destroying MBean for Valve [EMAIL PROTECTED] ServerLifecycleListener: Destroying MBean for Logger [EMAIL PROTECTED] ServerLifecycleListener: Destroying MBean for Host StandardEngine[Standalone].StandardHost[localhost] ServerLifecycleListener: Destroying MBean for Valve [EMAIL PROTECTED] ServerLifecycleListener: Destroying MBean for Realm [EMAIL PROTECTED] ServerLifecycleListener: Destroying MBean for Logger [EMAIL PROTECTED] ServerLifecycleListener: Destroying MBean for Engine StandardEngine[Standalone] ServerLifecycleListener: Destroying MBean for Connector [EMAIL PROTECTED] ServerLifecycleListener: Destroying MBean for Connector [EMAIL PROTECTED] ServerLifecycleListener: Destroying MBean for Service StandardService[Tomcat-Standalone] ServerLifecycleListener: Destroying MBean for Server StandardServer[8005] GlobalResourcesLifecycleListener: Destroying MBeans for Global JNDI Resources Stopping service Tomcat-Standalone I recorded gc log, the records almost are FULL GC record like: 8341.069: [Full GC 491455K-314771K(519168K), 8.4939708 secs] 8400.893: [Full GC 479251K-313981K(519168K), 8.2763773 secs] 8450.546: [Full GC 478461K-295591K(519168K), 8.4257336 secs] 8504.026: [Full GC 460071K-300918K(519168K), 5.7439801 secs] 8552.918: [Full GC 465398K-305423K(519168K), 5.7107256 secs] 8596.866: [Full GC 469903K-309825K(519168K), 5.8541711 secs] FYI some softwares related: j2sdk-1_4_2_03-solaris-sparc.tar.Z jakarta-tomcat-4.1.29.tar 64bit OS Solaris9 with Sparc CPU MySQL4.0 (The problem arises even though I am not using the DataBase). Any suggestion will be appreciated! Thanks in advanced. Mark
Re: Context docBase + linux
Algirdas: Maybe this will help: http://www.katzenjammer.us/~jford/apache/tomcat/webapps.pdf Jerry Algirdas M. wrote: Hello, I've created user /home/webapptest (with WEB-INF/classes, etc.) for java web applications and added in server.xml line Context docBase=/home/webapptest path=/w... restarted Tomcat. And application with path /w doesn't work. Tomcat logs are showing: StandardContext[/w]: Error initializing resources: Document base /home/webapptest does not exist or is not a readable directory How to do that directory readable? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: help w/ Tomcat configuration
hi actually all is there in server.xml and http://localhost is getting u the /$tomcat_home/webpass/ROOT/index.jsp new contexts are defined in webapps using xml file ..some samples u can get in /$tomcat_home/webapss/ alos for glossory u can search in web its all available in plenty On Sat, 27 Dec 2003, Gustavo Nieto wrote: To whom it may concern: Hi!, I recently installed Tomcat on my Laptop (I have to install it on my Company's Server, which is a Windows 2003 Server, but since this is my first time doing so I begun with my laptop). I already got the http://localhost:8080/ working, but let me tell you that I barely understand the reason I have to install Tomcat, and thus I feel overwhelmed with all this configurations and settings. My Company wishes me replace their Lotus approach DB/interface with something more efficient and new, after some research I decided to implement MySQL, and Java JSP, I knew that I need to install Tomcat in order to display Java JSP pages, but that's all I know. I already went to the Administrator/JSP Engine Config HOW-TO section under my local host, but I get easily intimidated by all the terms used Ant, jikes, forks, etc. Is there a section that explains all that, a glossary of sorts? Even though I have a pretty good idea of what all that means, I rather understand it before acting. I'm barely going to learn Java JSP as well as MySQL, which I know should be first step before diving into Tomcat, but this is an urgent shore and I'm stuck with doing it all at once. Any help would be greatly appreciated. You guys are doing a great work, I still can't believe that all this is open source since it is Top Notch Grade Thank you and have a happy new year! -Gustavo N. P.S. What is a local host? why is my http://localhost:8080/ pointing to a webpage within my computer? what is it doing? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- contact me : _ Akhilesh Kumar Maurya Engineer ITX,BHEL Hardwar _ E-Mail Id(s):- [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] __ DISCLAIMER: This message contains privileged and confidential information and is intended only for the individual named.If you are not the intended recipient you should not disseminate,distribute,store,print, copy or deliver this message.Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system.E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted,corrupted,lost,destroyed,arrive late or incomplete or contain viruses.The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk2-2.0.2 + Apache 2.0.48
My first guess is that you have the Solaris 'make' ahead of the GNU 'make' in your path. You need to use GNU 'make' to compile Jk2. Vitor Domingos [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello. I'm trying to compile jakarta-tomcat-connectors-jk2-2.0.2 with apache 2.0.48 on Solaris 9 x86. I've installed Apache and Tomcat 5.0.16 correctly. They are both working. On tomcat-connectors i'm doing this: bash-2.05# pwd /var/tomcat/software/jakarta-tomcat-connectors-jk2-2.0.2-src/jk/native2 bash-2.05# ./buildconf.sh libtoolize --force --automake --copy aclocal automake --copy --add-missing autoconf bash-2.05# ./configure --with-apxs2=/usr/local/apache2/bin/apxs 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 style of include used by make... GNU checking dependency style of gcc... none checking build system type... i386-pc-solaris2.9 checking host system type... i386-pc-solaris2.9 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 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... yes 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.9 ld.so checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static 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/bin/perl building connector for apache-2.0 checking for tomcat33 location... not provided checking for tomcat40 location... not provided checking for tomcat41 location... not provided checking for JDK location (please wait)... /usr/java from environment checking Java platform... checking Java platform... checking os_type directory... solaris 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 config.status: creating server/apache2/Makefile.apxs config.status: creating ../build.properties config.status: creating scripts/build/unix/dummy config.status: executing depfiles commands bash-2.05# make list=' server/apache2'; \ for i in $list; do \ echo Making $target in $i; \ if test $i != .; then \ (cd $i make) || exit 1; \ fi; \ done; Making in server/apache2 make: Fatal error in reader: Makefile, line 19: Unexpected end of line seen Current working directory /var/tomcat/software/jakarta-tomcat-connectors-jk2-2.0.2-src/jk/native2/serv er/apache2 *** Error code 1 make: Fatal error: Command failed for target `jk2-build' bash-2.05# I've also tried the mod_jk2 binary for solaris 8 for apache 2.0.43, but the apache gives me an error on ELF something. Is there any special requirement for apache 2.0.48? Isnt this tested yet? Thanks. -- Vitor Domingos