Re: Strange behavior of runtime.exec(...)
I tried to tweak the security manager of tomcat(using no restrictions at all) - with no effect. And I have absolutely no idea how to set the security-settings for the Webapp: And if i knew, does anyone know if there is a level of control below the reight to call runtime.exec()?! I mean, if the webapp is allowed to spawn a process, can i restrict the abilities of this spawned process?! And in a platform independent matter?! Or is there a bug somwehere else?! Patrick Willart wrote: I suspect the problem to be that no external task that is started by Tomcat is allowed to open any connections. I had a similar problem with cgi and a windows executable. The executable tried to open a socket connection. The same setup had worked on a different server but not on Tomcat. I ended up rewritting the program as a java servlet. This worked. If you setup a Security Manager for Tomcat then you can control what the java code of your applications is allowed to do. Grts, Patrick -Original Message- From: Stefan Frank [mailto:[EMAIL PROTECTED] Sent: Saturday, November 08, 2003 6:52 AM To: [EMAIL PROTECTED] Subject: Strange behaviour of runtime.exec(...) Hi, we are trying to make some calls to scripts from within tomcat, so we are using runtime.exec() inside a Servlet: The script (it submits a Job to teh Sun Grid Engine, http://gridengine.sunsource.net/) runs fine from the command line, and also the java-class, which is called from the servlet for the submit, runs fine outside of tomcat: When the Class is called from inside tomcat, the job is submitted, but never reaches the scheduler: It looks like the spawned process is not allowed to make up sockets to the outside world - are there any restrictions on using Runtime.exec() from within tomcat?! And if there is, is there a way around these restrictions?! Greetingsthx in advance for any help Stefan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Strange behavior of runtime.exec(...)
If I'm not mistaken, the security manager is turned off by default. Stefan Frank wrote: I tried to tweak the security manager of tomcat(using no restrictions at all) - with no effect. And I have absolutely no idea how to set the security-settings for the Webapp: And if i knew, does anyone know if there is a level of control below the reight to call runtime.exec()?! I mean, if the webapp is allowed to spawn a process, can i restrict the abilities of this spawned process?! And in a platform independent matter?! Or is there a bug somwehere else?! Patrick Willart wrote: I suspect the problem to be that no external task that is started by Tomcat is allowed to open any connections. I had a similar problem with cgi and a windows executable. The executable tried to open a socket connection. The same setup had worked on a different server but not on Tomcat. I ended up rewritting the program as a java servlet. This worked. If you setup a Security Manager for Tomcat then you can control what the java code of your applications is allowed to do. Grts, Patrick -Original Message- From: Stefan Frank [mailto:[EMAIL PROTECTED] Sent: Saturday, November 08, 2003 6:52 AM To: [EMAIL PROTECTED] Subject: Strange behaviour of runtime.exec(...) Hi, we are trying to make some calls to scripts from within tomcat, so we are using runtime.exec() inside a Servlet: The script (it submits a Job to teh Sun Grid Engine, http://gridengine.sunsource.net/) runs fine from the command line, and also the java-class, which is called from the servlet for the submit, runs fine outside of tomcat: When the Class is called from inside tomcat, the job is submitted, but never reaches the scheduler: It looks like the spawned process is not allowed to make up sockets to the outside world - are there any restrictions on using Runtime.exec() from within tomcat?! And if there is, is there a way around these restrictions?! Greetingsthx in advance for any help Stefan - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
IIS is redirecting to tomcat only jsp pages. and not working when an action is requested
I have setup an enviroment Tomcat 4.1.18 and IIS 5.0. Everything was configured as required. But IIS is redirecting to tomcat only for *.jsp and does not work when a request to *.do ( struts ). Any hints?? Amjad Shahrour Application Developer Tel: +966.2.653.3334 ext 213 [EMAIL PROTECTED] www.labbaik.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: cannot find custom libraries
Hello Is 'cd' located in the TOMCAT_HOME/webapps directory? I think it must be. Assuming it is, then this is your context (web application folder) and this is where the WEB-INF sub-directory should be located. The cos.jar should then reside in cd/WEB-INF/lib. You can 'bury' JSPs in sub-directories (eg cd/SMC) and still invoke them by specifying the full path details, as you are doing at present. BUT... the WEB-INF sub-directory *must* be located at the top level of the context (web app) folder - and in this case 'cd' is your context (web app) folder. Locating the WEB-INF folder correctly means the 'lib' folder within it will be in 'right' place for Tomcat's classloaders to find it. BTW the same is true for Servlets, which reside in WEB-INF/classes. Regards Harry Mantheakis London, UK Hey, 'cd'is the name of a directory (yes, not the best name for a directory, but its got another meaning from 'change directory :-s) and SMC is a directory under that. (hence .../cd/SMC) I can access another page in .../cd/SMC/foo.jsp that specifies the form and the target ('ACTION'). This action=insertProduct.jsp , which is the code that tries to handle the uploading of files specified in the form on the previous page. I do have a WEB-INF sub-directory in .../cd/SMC , and the lib directory in there does have the jar file that I need.. I still get this error... any clues? Thanks, Kaushal p.s. 'the ...' notation I've used above it to signify a directory structure previous to the one described above. = Original Message From Harry Mantheakis [EMAIL PROTECTED] = Hello What is 'cd'? SMC *should* be your context, because the WEB-INF sub-directory is located there - unless you've got things mixed up? Harry Mantheakis London Hello, I'm new to JSP, so this is confusing me. I am trying to use the com.oreilly.servlet.multipart package to try and upload files for a test page. However, I'm facing the following error: /tmp/foo/jakarta-tomcat-4.1.27/temp/cd/SMC/insertProduct_jsp.java:8: package com.oreilly.servlet does not exist import com.oreilly.servlet.*; ^ /tmp/foo/jakarta-tomcat-4.1.27/temp/cd/SMC/insertProduct_jsp.java:9: package com.oreilly.servlet.multipart does not exist import com.oreilly.servlet.multipart.*; ^ 2 errors The packages are contained in a jar file called cos.jar , which I've put in ../cd/SMC/WEB-INF (and /cd/SMC/WEB-INF/lib ) (the file that uses this - insertProduct.jsp - is located in /cd/SMC ) Can anyone throw any pointers as to why this is happeneing? I set my classpath to point to the jar file, but it doesnt help (frankly, I don't see why it would, since the webserver is running of a totally different daemon, and I'm not even the owner of that :( -- but I'm just trying to get this to compile!) Thanks, Kaushal - 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]
better error messages (was re: Exception at Tomcat startup)
But tomcat should really try to do something about its exceptions. the error messages if existent at all besides merely an exception, leave lots to wish for. Especially the xml parsers that not even say what xml file is being parsed (like ok its probably a web.xml but which one?), let alone where in there the problem is. I would say it's a blocker for next stable release! :p *my opinion* -Original Message- From: Schalk [mailto:[EMAIL PROTECTED] Sent: den 8 november 2003 02:26 To: 'Tomcat Users List' Subject: RE: Exception at Tomcat startup Het there You may want to have a look at this line in your web.xml: Child name 'ControlSer vlet' is not unique It seems that is should say ControlServlet and not ControlSer vlet Kind Regards Schalk Neethling Web Developer.Designer.Programmer.CEO Volume4.Development.Multimedia.Branding emotionalize.conceptualize.visualize.realize Tel: +27125468436 Fax: +27125468436 email:[EMAIL PROTECTED] web: www.volume4.co.za This message contains information that is considered to be sensitive or confidential and may not be forwarded or diclosed to any other party without the permission of the sender. If you received this message in error, please notify me immediately so that I can correct and delete the original email. Thank you. :: -Original Message- :: From: Rishikesh Tembe [mailto:[EMAIL PROTECTED] :: Sent: Saturday, November 08, 2003 3:09 AM :: To: [EMAIL PROTECTED] :: Subject: Exception at Tomcat startup :: :: Hi experts, :: :: This is the display I get when I start up Tomcat v4.1.27. As you can see :: an InvocationTargetException gets thrown. I did not make any changes :: anywhere. What could be the cause? :: Is this a known bug? I couldn't find a similar bug in BugZilla... :: :: --- :: Nov 7, 2003 4:51:28 PM org.apache.commons.modeler.Registry loadRegistry :: INFO: Loading registry information :: Nov 7, 2003 4:51:29 PM org.apache.commons.modeler.Registry getRegistry :: INFO: Creating new Registry instance :: Nov 7, 2003 4:51:30 PM org.apache.commons.modeler.Registry getServer :: INFO: Creating MBeanServer :: Nov 7, 2003 4:51:32 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 :: Nov 7, 2003 4:51:35 PM org.apache.commons.digester.Digester endElement :: SEVERE: End event threw exception :: java.lang.reflect.InvocationTargetException :: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) :: at :: sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. :: java:39) :: at :: sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces :: sorImpl.java:25) :: at java.lang.reflect.Method.invoke(Method.java:324) :: at :: org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.jav :: a: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.dtd.XMLDTDValidator.endNamespaceScope(Unknown :: Source) :: at :: org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown :: S :: ource) :: 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$FragmentContent :: Dispatcher.dispatch(Unknown Source) :: at :: org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un :: known 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(ContextCo :: nfig.java:282) :: at :: org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:63 :: 9) :: at :: org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfi :: g.java:243) :: at :: org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl :: eSupport.java:166) :: at :: org.apache.catalina.core.StandardContext.start(StandardContext.java:3 :: 568) :: at :: org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) :: :: at :: org.apache.catalina.core.StandardHost.start(StandardHost.java:738) :: at ::
Re: Please help me in my problem...
If you don't say which error message you got it will be a little difficult ! SaM Steven Ang wrote: Hello, I need some help in configurating tomcat server. I'm doing a JSP project, I have read some documentation about tomcat and it states that i need to add some line in %CATALINA_HOME%/conf/server.xml Context path=/thesis docbase=thesis debug=0 reloadable=true crossContext=true/ but after i save the server.xml and run start tomcat, i got some error message in console. I don;t know why. And also http://localhost:8080/thesis/hello.jsp returns and error message. here are my source code of hello.jsp html boby HI /body /html here are my software and hardware information WINDOWS XP JAVA SDK 1.4.2 TOMCAT 4.1.24 Pentium III 1G 128MB 20 GB Hard Drive Please help me Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DBCP could not obtain an idle db connection, pool exhausted
How to solve this problem? I'm using Tomcat 4.1.27 J2SDK (build 1.4.1_03-b02 Tyrex 1.0 Commons DBCP 1.1 MySQL ConnectorJ version 3.0.8 My server.xml configuration Context ... Resource name=jdbc/sss auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/sss parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter namemaxActive/name value20/value /parameter parameter namemaxIdle/name value20/value /parameter parameter namemaxWait/name value1/value /parameter parameter nameusername/name valueusername/value /parameter parameter namepassword/name valuepassword/value /parameter parameter namedriverClassName/name valueocom.mysql.jdbc.Driver/value /parameter parameter nameurl/name valuejdbc:mysql://localhost:3306/sss?autoReconnect=true/value /parameter /ResourceParams /Context Galbayar. D Senior software engineer Mobile Business Development Business Development Division MobiCom Corporation Peace Avenue 3/1 P.O Box 20A Ulaanbaatar 210620 Mongolia - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: java.util.zip.ZipException while using the ant install target
On Sunday 09 November 2003 23:53, Rainer Hoeckmann wrote: I found that my build.xml was using the deployTask instead of installTask to implement the ant install command. After changing this it went possible to install my application to Tomcat. Now I'm wondering where the difference is between deployTask and the (not documented) installTask? I posted the same problem some days ago. But there was no response yet. I tried your solution but in my enviroment: - Tomcat/5.0.12 - Ant/1.6beta2 - java/1.4.0_03-b04 - OS/Linux-2.4.19-4GB So i tried your suggestion, and replaced 'deloy' with 'install' as task in the install target. But the 'install' target is not known by my ant. Neither deploy nor install is part of the ant core or optional task, i guess they are implemented in catalina-ant.jar which i copied to $ANT_HOME/lib A look into the jar gives the indication that there are custom tasks org/apache/catalina/ant/DeployTask.class org/apache/catalina/ant/InstallTask.class But i cannot find any documentation about them. Can you give me a hint ? Regards Rainer - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
configuring tomcat 4.1.29 with apache 2 using mod_jk2. HELP me please
Hello. i want to configura my tomcat with apache for using mod_jk2 in my linux suse 9. i know how to configure to use mok_jk, but i must to change to mod_jk2 and i don'tknow .how to make this. for configuring to use the mod jk i configure IfModule mod_jk.c JkWorkersFile /opt/jakarta/tomcat/conf/workers.properties JkLogFile /opt/jakarta/tomcat/logs/mod_jk.log JkLogLevel error JKMount /*.jsp ajp13 /IfModule ad i have one w workers.properties file but this configuration with mod_jk2 doesn't run. Can anybody helps me for using the mod_jk2 with tomcat 4.1.29 and apache 2 in one linux SO? can anybody helps me or send one samle configuration? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Authenticator valve at the host level, not possible?
Hi, I am trying to implement my own authentication system (extending AuthenticatorBase). I would like this valve to be set up at the host level so my server.xml, looks like Host name=localhost debug=0 appBase=webapps unpackWARs=true autoDeploy=true Context path=/myContext docBase=ina debug=0 Manager classname=org.apache.catalina.session.StandardManager pathname= / Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=myLog. suffix=.log timestamp=true/ /Context Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=localhost_log. suffix=.txt timestamp=true/ Valve className=com.mycompany.MyAuthenticator debug=10 myParam1=p1 myParam2=p2/ /Host When I try to start my tomcat, it crashes at startup with the following : Catalina.start: java.lang.IllegalArgumentException: Configuration error: Must be attached to a Context java.lang.IllegalArgumentException: Configuration error: Must be attached to a Context at org.apache.commons.digester.Digester.createSAXException(Digester.java:2540) at org.apache.commons.digester.Digester.createSAXException(Digester.java:2566) at org.apache.commons.digester.Digester.endElement(Digester.java:1061) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(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:1548) at org.apache.catalina.startup.Catalina.start(Catalina.java:449) 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) First question : Am I trying to do it in the bad way? Second question : What can be the reason why it crashes when I attach my valve to the host but starts normally when I attach it to the context? Thanks for giving opinions. PS : any link to information related to custom authentication in tomcat is welcome!!! Cheers, Thomas
Please help me in my problem...
Hello, I need some help in configurating tomcat server. I'm doing a JSP project, I have read some documentation about tomcat and it states that i need to add some line in %CATALINA_HOME%/conf/server.xml Context path=/thesis docbase=thesis debug=0 reloadable=true crossContext=true/ but after i save the server.xml and run start tomcat, i got some error message in console. I don;t know why. And also http://localhost:8080/thesis/hello.jsp returns and error message. here are my source code of hello.jsp html boby HI /body /html here are my software and hardware information WINDOWS XP JAVA SDK 1.4.2 TOMCAT 4.1.24 Pentium III 1G 128MB 20 GB Hard Drive Please help me Thanks
Re: Please help me in my problem...
I got similar problems when I saved the server.xml with non standard ascii chars. Scrive Steven Ang [EMAIL PROTECTED]: Hello, I need some help in configurating tomcat server. I'm doing a JSP project, I have read some documentation about tomcat and it states that i need to add some line in %CATALINA_HOME%/conf/server.xml Context path=/thesis docbase=thesis debug=0 reloadable=true crossContext=true/ but after i save the server.xml and run start tomcat, i got some error message in console. I don;t know why. And also http://localhost:8080/thesis/hello.jsp returns and error message. here are my source code of hello.jsp html boby HI /body /html here are my software and hardware information WINDOWS XP JAVA SDK 1.4.2 TOMCAT 4.1.24 Pentium III 1G 128MB 20 GB Hard Drive Please help me Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Using SSL apache and tomcat
We are trying to call a servlet that generates and returns an image over SSL. Apache is sitting in front doing the SSL, it then connects to Jetty/Tomcat using AJP. The performance we are getting is poor to say the least, any help to increase the performance would be much appreciated. We are comparing the times to the legacy system we are trying to replace which is written in python. We are running the tests using jmeter, the test consist of hitting each implementation 10 times with n threads. All test are over HTTPs, unless stated otherwise. Here are the python results Python ThreadstimesAverage MS Deviation 50 10 469 251 10010 590 341 20010 615 413 Here are the servlet results Java System ThreadstimesAverage MS Deviation 50 20 5639 1227 10010 123042757 20010 316114998 (without HTTPS: AVE MS: 36 DEV 38) 65010 139000* 45000 (without HTTPS: AVE MS: 32 DEV 46) When we turn off HTTPs the java system is literally thousands of times faster. We've swapped out jetty and replaced it with tomcat, the results were the same. There was very little improvement when we used mod_proxy instead of mod_jk. Using just jetty by itself gives us the following results: Java System ThreadstimesAverage MS Deviation 50 10 1463 1938 Which is better but still slow. We really want to use Apache to handle the SSL, but it seems that there is a huge problem when apache is doing the SSL and getting Jetty/Tomcat to generate the dynamic content. Attached are snippets from the conf files, interestingly setting JkExtractSSL off or JkExtractSSL on makes zero difference. We are running Debian woody, jboss 3.2.1, (Jetty 4.2.9/Tomcat4.0.3), Apache 13.26, mod_jk 3.3a # workers.properties - # ps=/ worker.list=site-seal,loadbalancer worker.localhost_siteseal.port=8011 worker.localhost_siteseal.host=localhost worker.localhost_siteseal.type=ajp13 worker.localhost_siteseal.lbfactor=1 worker.site-seal.type=lb worker.site-seal.balanced_workers=localhost_siteseal worker.inprocess.cmd_line=start worker.inprocess.stdout=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stdout worker.inprocess.stderr=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stderr # workers.properties ends # # snippet from httpd.conf # IfModule mod_jk.c JkWorkersFile /etc/apache/workers.properties include /etc/apache/mod_jk.conf JkLogFile /var/log/apache/mod_jk.log JkLogLevel debug JkMount /site-seal/* site-seal JkExtractSSL off /IfModule # # httpd.conf ends # Thanks in advance for your help. Rian smime.p7s Description: S/MIME Cryptographic Signature
Error messages for the jsp compiler
Hello, I am currently using Tomcat 4.1.24 as server and the included jasper2 compiler for offline compilation (via ant). Unfortunately, if the jsp compiler is called via ant, the only error message is a NullPointerException. If it is called from tomcat, it produces more useful output. Is that a known issue? Is there a setting for jasper2 to produce error messages in an offline-compile run that actually help to find the error? Kind regards, Johann Uhrmann -- Johann Uhrmann xpecto AG | Lindenstrasse 81 | D-84030 Ergolding Telefon: 0700 xpecto 00 (0700 973286 00) Telefax: 0700 xpecto 10 (0700 973286 10) Internet: http://www.xpecto.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Error messages for the jsp compiler
I tried exactly the same thing last week.. I found that the NullPointerExceptions were generally because something was missing from my webapp which it needed to compile the JSPs such as a lib or tld etc etc but def not the most friendly of error messages.. The other thing which caused me an issue is that there is no way to disable custom tag pooling when pre-compiling JSPs, my application uses some Struts tags which do no work correctly with pooling enabled.. Regards Dave -Original Message- From: Johann Uhrmann [mailto:[EMAIL PROTECTED] Sent: 10 November 2003 13:00 To: Tomcat Users List Subject: Error messages for the jsp compiler Hello, I am currently using Tomcat 4.1.24 as server and the included jasper2 compiler for offline compilation (via ant). Unfortunately, if the jsp compiler is called via ant, the only error message is a NullPointerException. If it is called from tomcat, it produces more useful output. Is that a known issue? Is there a setting for jasper2 to produce error messages in an offline-compile run that actually help to find the error? Kind regards, Johann Uhrmann -- Johann Uhrmann xpecto AG | Lindenstrasse 81 | D-84030 Ergolding Telefon: 0700 xpecto 00 (0700 973286 00) Telefax: 0700 xpecto 10 (0700 973286 10) Internet: http://www.xpecto.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] *** This message contains information that may be privileged or confidential and is the property of Orbian Management Limited. It is intended solely for the named addressee(s) and may not be used or disclosed except for the purpose for which it has been sent. Access to this e-mail by anyone else is unauthorised. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you have received this message in error, please notify the sender immediately and delete the message and any attached documents. Any opinions, conclusions and other information expressed in this message are those of the individual sender and are not given or endorsed by Orbian unless otherwise clearly indicated. Orbian has scanned this e-mail for viruses but accepts no liability or responsibility for any onward transmission or use of emails and attachments having left the Orbian domain. *** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Security properties (JAAS)
Hi One of the libraries I use (actually my own ;-)) uses JAAS. If I ran a JAAS application on the destop I could simply use -Djava.security.policy=jaas.policy Djava.security.auth.login.config=jaas.conf. With Tomcat, however, I can hardly set those parameters in the start script as other applications might require different seetings. Where should I define those parameters? IMHO I can set java.security.auth.login.config in the code, right? This is prohibited for the policy file, though?? Regards, Marcel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Cannot seem to compile mod_jk (Tomcat 4.1.29) statically into apache 2.0.48
Hi, I cannot seem to compile mod_jk statically into apache 2.0.48, I have given the apache src directory to the ./configure script and yet it cannot find the files it needs? Has something changed since apache 2.0.46 and tomcat 4.1.27 to make this not work anymore? Or maybe my notes I made when I compiled it before are incorrect? Please help! Thanks, Stuart Stephen [EMAIL PROTECTED] native2]# ./buildconf.sh libtoolize --force --automake --copy aclocal automake --copy --add-missing autoconf [EMAIL PROTECTED] native2]# ./configure --with-apache2-include=/root/httpd-2.0.48 --with-java-home=/usr/ java/j2sdk1.4.2 loading cache ./config.cache checking for a BSD compatible install... (cached) /usr/bin/install -c checking whether build environment is sane... yes checking whether make sets ${MAKE}... (cached) yes checking for working aclocal... found checking for working autoconf... found checking for working automake... found checking for working autoheader... found checking for working makeinfo... found checking for gcc... (cached) gcc checking whether the C compiler (gcc ) works... yes checking whether the C compiler (gcc ) is a cross-compiler... no checking whether we are using GNU C... (cached) yes checking whether gcc accepts -g... (cached) yes checking host system type... i686-pc-linux-gnu checking build system type... i686-pc-linux-gnu checking for ld used by GCC... (cached) /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... (cached) yes checking for Cygwin environment... (cached) no checking for mingw32 environment... (cached) no checking how to run the C preprocessor... (cached) gcc -E checking for /usr/bin/ld option to reload object files... (cached) -r checking for BSD-compatible nm... (cached) /usr/bin/nm -B checking whether ln -s works... (cached) yes checking how to recognise dependant libraries... (cached) pass_all checking for object suffix... (cached) o checking for executable suffix... (cached) no checking command to parse /usr/bin/nm -B output... (cached) ok checking for dlfcn.h... (cached) yes checking for ranlib... (cached) ranlib checking for strip... (cached) strip checking for objdir... .libs checking for gcc option to produce PIC... (cached)-fPIC checking if gcc PIC flag-fPIC works... (cached) yes checking if gcc static flag -static works... (cached) yes checking if gcc supports -c -o file.o... (cached) yes checking if gcc supports -c -o file.lo... (cached) yes checking if gcc supports -fno-rtti -fno-exceptions... yes checking whether the linker (/usr/bin/ld) supports shared libraries... yes checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking dynamic linker characteristics... GNU/Linux ld.so checking if libtool supports shared libraries... yes checking for dlopen in -ldl... (cached) yes checking whether a program can dlopen itself... (cached) yes checking whether a statically linked program can dlopen itself... (cached) no checking whether -lc should be explicitly linked in... (cached) no creating libtool checking for test... (cached) /usr/bin/test checking for rm... (cached) /bin/rm checking for grep... (cached) /bin/grep checking for echo... (cached) /bin/echo checking for sed... (cached) /bin/sed checking for cp... (cached) /bin/cp checking for mkdir... (cached) /bin/mkdir no apxs given no apxs2 given configure: error: can't locate /root/httpd-2.0.48/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
encoding problems with XML
Hello folks, i´m trying to write some special characters in a XML file, like: company Doubs Noble/company But i don´t known the right encoding to [ ] be validate properly, any idea? Regards, Edson
Re: encoding problems with XML
try amp; On Monday 10 November 2003 14:50, Edson Alves Pereira wrote: Hello folks, i´m trying to write some special characters in a XML file, like: company Doubs Noble/company But i don´t known the right encoding to [ ] be validate properly, any idea? Regards, Edson -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: encoding problems with XML
You can go to web-site : http://www.w3c.com , you will get most HTML and XML help from there. Hope you find solution. Bhavin Bhatt This is a PRIVATE message. If you are not the intended recipient, please delete without copying and kindly advise us by e-mail of the mistake in delivery. NOTE: Regardless of content, this e-mail shall not operate to bind CSC to any order or other contract unless pursuant to explicit written agreement or government initiative expressly permitting the use of e-mail for such purpose. Edson Alves Pereira To: 'Tomcat-User List' [EMAIL PROTECTED] eapereira cc: @panamericano.co Subject: encoding problems with XML m.br 11/10/2003 11:50 AM Please respond to Tomcat Users List Hello folks, i´m trying to write some special characters in a XML file, like: company Doubs Noble/company But i don´t known the right encoding to [ ] be validate properly, any idea? Regards, Edson - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: encoding problems with XML
Special characters can be written using a escape syntax. This syntax is something like XXX;. where XXX is a numerical code in decimal format (or in hexadecimal if you precede it by a numeral (#) sign. Depending on the character encoding being used in your XML file, the code will vary for non ASCII characters. You can find conversion tables in the web via google. Just search for character table and your encoding charset name. For the ampersand, the sequence would be #38; HTH, Rodrigo Ruiz Edson Alves Pereira wrote: Hello folks, i´m trying to write some special characters in a XML file, like: company Doubs Noble/company But i don´t known the right encoding to [ ] be validate properly, any idea? Regards, Edson - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: encoding problems with XML
http://www.w3schools.com/xml/xml_cdata.asp Escape Characters Illegal XML characters have to be replaced by entity references. If you place a character like inside an XML element, it will generate an error because the parser interprets it as the start of a new element. You cannot write something like this: messageif salary 1000 then/message To avoid this, you have to replace the character with an entity reference, like this: messageif salary lt; 1000 then/message There are 5 predefined entity references in XML: lt; less than gt; greater than amp; ampersand apos; ' apostrophe quot; quotation mark Entity references always start with the character and end with the ; character. Note: Only the characters and are strictly illegal in XML. Apostrophes, quotation marks and greater than signs are legal, but it is a good habit to replace them. From: Julie McCabe [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: encoding problems with XML Date: Mon, 10 Nov 2003 13:55:32 + MIME-Version: 1.0 Received: from mail.apache.org ([208.185.179.12]) by mc4-f13.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Mon, 10 Nov 2003 05:55:32 -0800 Received: (qmail 85441 invoked by uid 500); 10 Nov 2003 13:55:30 - Received: (qmail 85428 invoked from network); 10 Nov 2003 13:55:29 - Received: from unknown (HELO mailhub1.qub.ac.uk) (143.117.143.16) by daedalus.apache.org with SMTP; 10 Nov 2003 13:55:29 - Received: from fujin.qub.ac.uk ([143.117.14.43])by mailhub1.qub.ac.uk with esmtp (Exim 4.20)id 1AJCVt-0005ab-Dufor [EMAIL PROTECTED]; Mon, 10 Nov 2003 13:55:29 + Received: from [143.117.22.8] (helo=chicane.cs.qub.ac.uk)by fujin.qub.ac.uk with esmtp (Exim 3.35 #1)id 1AJCVt-0001yh-00for [EMAIL PROTECTED]; Mon, 10 Nov 2003 13:55:29 + X-Message-Info: JGTYoYF78jEQ2fyJCYPUm8q/mv25sbwo Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm Precedence: bulk List-Unsubscribe: mailto:[EMAIL PROTECTED] List-Subscribe: mailto:[EMAIL PROTECTED] List-Help: mailto:[EMAIL PROTECTED] List-Post: mailto:[EMAIL PROTECTED] List-Id: Tomcat Users List tomcat-user.jakarta.apache.org Delivered-To: mailing list [EMAIL PROTECTED] Organization: BESC QUB User-Agent: KMail/1.5 References: [EMAIL PROTECTED] In-Reply-To: [EMAIL PROTECTED] Message-Id: [EMAIL PROTECTED] X-Spam-Score: -- (-2.5) X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Return-Path: [EMAIL PROTECTED] X-OriginalArrivalTime: 10 Nov 2003 13:55:33.0023 (UTC) FILETIME=[4F133AF0:01C3A792] try amp; On Monday 10 November 2003 14:50, Edson Alves Pereira wrote: Hello folks, i´m trying to write some special characters in a XML file, like: company Doubs Noble/company But i don´t known the right encoding to [ ] be validate properly, any idea? Regards, Edson -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Hot chart ringtones and polyphonics. Go to http://ninemsn.com.au/mobilemania/default.asp - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Apache Tomcat How to - server.xml, httpd.conf configuration help
Hi, I Have Apache 2.0.4 and tomcat 4.1.27 + mod_jk installed successfully. I followed procedure on http://www.meritonlinesystems.com/docs/apache_tomcat_redhat.html Can some body tell me what exact settings required for server.xml, httpd.conf virtual hosts help me _ Discover digital jadoo! Enter this contest. http://server1.msn.co.in/sp03/mediacenter/index.asp Win cool prizes! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Creation of HttpServlets
Hi All, I am hoping someone can help answer me this quick question. If I had a web app with one servlet for processing all requests would that one servlet be used by every thread or is it a one to one relation (each thread uses its own instance of the servlet). Thanks Pete - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Creation of HttpServlets
Think of the servlet as a multithreaded object. It spawns a new thread for each request. On Monday 10 November 2003 09:23 am, Peter Guyatt wrote: Hi All, I am hoping someone can help answer me this quick question. If I had a web app with one servlet for processing all requests would that one servlet be used by every thread or is it a one to one relation (each thread uses its own instance of the servlet). Thanks Pete - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Ben Souther F.W. Davison Company, Inc. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: better error messages (was re: Exception at Tomcat startup)
Howdy, But tomcat should really try to do something about its exceptions. Care to contribute some code? Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: error-page redirection
Howdy, So your servlet throws a LuckyException?? Http Servlets should throw a ServletException or IOException. Alternatively, you could add an error-page tag to your web.xml with LuckyException as the exception type and a custom error page as the URL. Yoav Shapira Millennium ChemInformatics -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, November 07, 2003 9:58 AM To: [EMAIL PROTECTED] Subject: error-page redirection Hello everyone, I am trying to display an error page if user enters a wrong number. The number has to be between 1 an d 10. I get following error: type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception LuckyException at LuckyNumber1Servlet.validate_number(Unknown Source) at LuckyNumber1Servlet.doGet(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java:743) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) Folks, I tried various ways to fix this issue. spent many hours searching thru books and internet, but could not find a way out. Can someone please point out the bug here? Thanks Raju Lokhande *** ** Here is my servlet code: import java.io.*; import java.util.*; import java.sql.*; import javax.servlet.*; import javax.servlet.http.*; /** * This is a simple example of an HTTP Servlet. It responds to the GET * method of the HTTP protocol. */ public class LuckyNumber1Servlet extends HttpServlet { private int inp_int; public void init() throws ServletException { ServletContext servletContext = getServletContext(); servletContext.setAttribute(ServletTotal, new Integer(0)); } // end of init public void validate_number(String in_str) throws LuckyException { inp_int = Integer.parseInt( in_str ); if ( inp_int 1 || inp_int 10 ) throw new LuckyException(); } public void doGet (HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType(text/html); response.setBufferSize(8192); PrintWriter out = response.getWriter(); // then write the data of the response out.println(html + headtitleHello/title/head); // then write the data of the response out.println(body bgcolor=\#ff\ + img src=\duke.waving.gif\ + h2My lucky number is 7. What's yours?/h2 + form method=\get\ + input type=\text\ name=\lnumber\ size=\25\ + p/p + input type=\submit\ value=\Submit\ + input type=\reset\ value=\Reset\ + /form); String lnumber = request.getParameter(lnumber); Integer SessionTotal; int temp_int; if ( lnumber != null lnumber.length() 0 ) { try { validate_number( lnumber ); } catch ( LuckyException not_ignored) { response.resetBuffer(); throw new ServletException( not_ignored ) ; } HttpSession session = request.getSession( true ); synchronized(session) { SessionTotal = (Integer) session.getAttribute ( SessionTotal); if ( SessionTotal == null ) SessionTotal = new Integer(0); temp_int = SessionTotal.intValue() ; int temp_count = temp_int + Integer.parseInt( lnumber); Integer temp_integer = new Integer( temp_count); session.setAttribute ( SessionTotal, temp_integer ); } ServletContext servletContext = getServletContext (); Integer ServletTotal = (Integer) servletContext.getAttribute (ServletTotal); if ( ServletTotal == null ) ServletTotal = new Integer( 0 ); int temp_int2 = ServletTotal.intValue() ; int temp_count2 = temp_int2 + Integer.parseInt( lnumber); Integer temp_integer2 = new Integer( temp_count2 ); servletContext.setAttribute(ServletTotal, temp_integer2); RequestDispatcher dispatcher = getServletContext().getRequestDispatcher (/lucky2); if (dispatcher != null) dispatcher.include(request, response); }
RE: Creation of HttpServlets
Howdy, Tomcat would create one instance of that servlet for every servlet tag in your web.xml. But each request is serviced by one thread, so there would be multiple threads using your one servlet instance, possibly concurrently. Yoav Shapira Millennium ChemInformatics -Original Message- From: Peter Guyatt [mailto:[EMAIL PROTECTED] Sent: Monday, November 10, 2003 9:24 AM To: [EMAIL PROTECTED] Subject: Creation of HttpServlets Hi All, I am hoping someone can help answer me this quick question. If I had a web app with one servlet for processing all requests would that one servlet be used by every thread or is it a one to one relation (each thread uses its own instance of the servlet). Thanks Pete - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to persist web-app properties across restarts ?
Howdy, A Servlet-independent way to do this would be with the java.util.prefs API (JDK 1.4 and later). It would save stuff on disk, in the registry, or in a DB as needed. Yoav Shapira Millennium ChemInformatics -Original Message- From: Harry Mantheakis [mailto:[EMAIL PROTECTED] Sent: Friday, November 07, 2003 6:27 PM To: Tomcat Users List Subject: Re: How to persist web-app properties across restarts ? Hello Here is some stuff that works for me when it comes to *loading* (reading) properties from (usually) a servlet init method... public void init( ServletConfig config ) throws ServletException { super.init( config ); String dbDriver = null; String dbURL= null; String username = null; String password = null; Properties props = new Properties(); ServletContext context = config.getServletContext(); String path = /WEB-INF/classes/props/my_props.txt; InputStream in = context.getResourceAsStream( path ); if( in != null ) { try { props.load( in ); dbDriver = props.getProperty( dbDriver, null ); dbURL= props.getProperty( dbURL,null ); username = props.getProperty( username, null ); password = props.getProperty( password, null ); ... // Read other values. } catch ( IOException e ) { ... // Set default values or handle exception. } finally { try { in.close(); } catch ( IOException ignore ) {} } } else { ... // Set default values. } } // method The 'my_props.txt' properties file would contain the following name-value pairs: dbDriver = oracle.jdbc.driver.OracleDriver dbURL= jdbc:oracle:thin:@123.123.123.123:1521:xyz username = myusername password = mypassword The API for the 'java.util.Properties.load' method has a full description how to write a suitable property file. It would be easy enough to write out a property file - from (say) a servlet destroy method - which could be loaded as above. You are probably right about using the temp directory provided by the ServletContext: it is the only way to *write* stuff that I can think of, but beware that the specification does not say anything about temp files being saved between invocations! Good luck. Harry Mantheakis London thanks, but the whole point of this is to persist a property across restarts - whether they be the entire VM or just the web-app. Is there a consistent wat to persist property information for the web-app to the filesystem, in the same way that sessions can be persisted ? I know that the servlet spec requires the ServletContext to provide a tempdir, so I will probably try serializing my properties to a file in that dir. -Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED] Sent: Friday, November 07, 2003 2:17 PM To: Tomcat Users List Subject: Re: How to persist web-app properties across restarts ? Put a singleton helper class in a parent classloader such as in shared or common Tomcat classloaders and manipulate collections there. They will exist as long as the JVM (and Tomcat) is running. Otherwise, you should also be able to use stuff like System.setProperty(). Jake At 01:51 PM 11/7/2003 -0500, you wrote: I am looking for the most standard and lightweight way to persist some properties about a web application across restarts of the web application or the entire server. Something like the ServletContext.setAttribute() method, but with the persistence ability that you get from Http sessions would be perfect. I am using this for a management servlet that can indicate to load balancing software that traffic needs to be directed away from a given tomcat instance when it's in a certain state, and the management servlet needs to remember what state it was last in when it's application is restarted. Because it's used in monitoring I don't want any dependancies on external data stores other than simple file system. Thanks Steph - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Log4J configuration
Howdy, No, and this is not a really a tomcat question ;) Because of the additional complexities in ensuring the proper classpath for parsing XML files, log4j does not auto-parse them for you like with log4j.properties. Yoav Shapira Millennium ChemInformatics -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Saturday, November 08, 2003 2:41 PM To: Tomcat Users List Subject: Log4J configuration Hello, the Log4J manual mentions the possibility to put log4j.properties under WEB-INF/classes directory to automatically configure Log4J for the context. Is it possible to put log4j.xml instead to the directory to configure Log4J? Thanks in advance Thorsten - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat isapi_redirect.dll
Are there any known problems with the isapi_redirect.dll and IIS 5.0 in a Windows 2000 SP4 environment? We are having problems with Authentication in this environment using an older version of the isapi_redirect.dll. Does the new isapi_redirect.dll correct this? According to the IIS logs when trying to Authenticate with the isapi_redirect.dll IIS is coming back with a HTTP error 401. It seems to work fine in a Windows 2000 SP3 environments. Any help would be appreciated. Thanks, Mike
RE: Réf. : RE: dbcp pool size
Howdy, This is OK, and hopefully you won't get the same error. Why don't you test it out? ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: Kenneth [mailto:[EMAIL PROTECTED] Sent: Saturday, November 08, 2003 7:43 AM To: Tomcat Users List Subject: Re: Réf. : RE: dbcp pool size Sorry, but I'm quite new to this, and I'd like to know if I'm doing it OK. I'm using dbcp with mySQL and I always specify this parameter: parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter Is this OK? Will I get the same error Meissa does? Thanks. Ken - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Server Tweaking
Howdy, I haven't seen this error either. How do you know it's not in your code? ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: Hart, Justin [mailto:[EMAIL PROTECTED] Sent: Friday, November 07, 2003 2:25 PM To: Tomcat Users List Subject: RE: Server Tweaking Version I'm running right now is 4.1.29. Issue first presented itself after I set up NT Authentication using BASIC JDNIRealm. Essentially, I get the popup to authenticate, then, the next page has this in its body: !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN HTMLHEAD META http-equiv=Content-Type content=text/html; charset=windows- 1252/HEAD BODYPRE/PRE/BODY/HTML If I hit refresh, the next page I get is the acutal JSP I was hoping to serve up. Thanks BTW, I can't seem to find a solution to this anywhere! If you've got a thread you can pull on this, that would really help me a lot. Justin -Original Message- From: David Rees [mailto:[EMAIL PROTECTED] Sent: Friday, November 07, 2003 2:18 PM To: Tomcat Users List Subject: RE: Server Tweaking On Fri, November 7, 2003 1at 0:40 am, Hart, Justin wrote: K, I have this issue, and I've heard of it. Anybody got a fix? Well, what version(s) of Tomcat are affected and do you have any references to the issue? Sounds like a serious bug in Tomcat to me. -Dave - 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] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Newbie jakarta-tomcat-4.1.29 question
Howdy, Is there a particular reason you can't use the binaries and must build from source yourself? I haven't seen the build error you're getting ;( Yoav Shapira Millennium ChemInformatics -Original Message- From: Paul Mitchell [mailto:[EMAIL PROTECTED] Sent: Friday, November 07, 2003 3:07 PM To: [EMAIL PROTECTED] Subject: Newbie jakarta-tomcat-4.1.29 question Hello, In trying to build this on a SUN 15k domain, running solaris 9, but I'm running into a consistant problem. During the ANT_HOME/bin/ant deploy step, I get: build-tomcat-webapp: BUILD FAILED file:/opt/tomcat/jakarta-tomcat-4.1.29-src/catalina/build.xml:902: Basedir /usr/local/java/jakarta-tomcat-connectors/webapp does not exist Not sure what version of tomcat-connectors we're using, though it has this in it: more RELEASE-NOTES.txt Tomcat Connectors Version @VERSION@ Release Notes This version matches the version included with tomcat-5.0.2, and supports tomcat 3.3, 4.0, 4.1, 5.0. Bugs and issues will be tracked with tomcat5 - this file will list only issues related with older versions. The problem is, no matter where I look, I find reference to webapps (note s) directories. What am I missing? The install is in service of a GeNet (Bioinformatics software) install scheduled for monday - I've already downloaded a binary tomcat if everything fails, but I'd like to compile the source myself if possible. All help is appreciated. Paul Mitchell === === Paul Mitchell email: [EMAIL PROTECTED] phone: (919) 962-9778 office: I have an office, room 14, Phillips Hall === === - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: error-page redirection
I think you should compile your application with debug information, that way you can see what line in your application causes it. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: den 7 november 2003 15:58 To: [EMAIL PROTECTED] Subject: error-page redirection Hello everyone, I am trying to display an error page if user enters a wrong number. The number has to be between 1 an d 10. I get following error: type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception LuckyException at LuckyNumber1Servlet.validate_number(Unknown Source) at LuckyNumber1Servlet.doGet(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java:743) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) Folks, I tried various ways to fix this issue. spent many hours searching thru books and internet, but could not find a way out. Can someone please point out the bug here? Thanks Raju Lokhande * Here is my servlet code: import java.io.*; import java.util.*; import java.sql.*; import javax.servlet.*; import javax.servlet.http.*; /** * This is a simple example of an HTTP Servlet. It responds to the GET * method of the HTTP protocol. */ public class LuckyNumber1Servlet extends HttpServlet { private int inp_int; public void init() throws ServletException { ServletContext servletContext = getServletContext(); servletContext.setAttribute(ServletTotal, new Integer(0)); } // end of init public void validate_number(String in_str) throws LuckyException { inp_int = Integer.parseInt( in_str ); if ( inp_int 1 || inp_int 10 ) throw new LuckyException(); } public void doGet (HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType(text/html); response.setBufferSize(8192); PrintWriter out = response.getWriter(); // then write the data of the response out.println(html + headtitleHello/title/head); // then write the data of the response out.println(body bgcolor=\#ff\ + img src=\duke.waving.gif\ + h2My lucky number is 7. What's yours?/h2 + form method=\get\ + input type=\text\ name=\lnumber\ size=\25\ + p/p + input type=\submit\ value=\Submit\ + input type=\reset\ value=\Reset\ + /form); String lnumber = request.getParameter(lnumber); Integer SessionTotal; int temp_int; if ( lnumber != null lnumber.length() 0 ) { try { validate_number( lnumber ); } catch ( LuckyException not_ignored) { response.resetBuffer(); throw new ServletException( not_ignored ) ; } HttpSession session = request.getSession( true ); synchronized(session) { SessionTotal = (Integer) session.getAttribute ( SessionTotal); if ( SessionTotal == null ) SessionTotal = new Integer(0); temp_int = SessionTotal.intValue() ; int temp_count = temp_int + Integer.parseInt( lnumber); Integer temp_integer = new Integer( temp_count); session.setAttribute ( SessionTotal, temp_integer ); } ServletContext servletContext = getServletContext (); Integer ServletTotal = (Integer) servletContext.getAttribute (ServletTotal); if ( ServletTotal == null ) ServletTotal = new Integer( 0 ); int temp_int2 = ServletTotal.intValue() ; int temp_count2 = temp_int2 + Integer.parseInt( lnumber); Integer temp_integer2 = new Integer( temp_count2 ); servletContext.setAttribute(ServletTotal, temp_integer2); RequestDispatcher dispatcher = getServletContext().getRequestDispatcher (/lucky2); if (dispatcher != null) dispatcher.include(request, response); } out.println(/body/html); out.close(); } // end of doGet(). public String getServletInfo() { return The LuckyNumber1Servlet servlet types a
RE: java.util.zip.ZipException while using the ant install target
You are right. First, copy Catalina.ant.jar to $ANT_HOME/lib. Then add following lines into your ant script taskdef name=deploy classname=org.apache.catalina.ant.DeployTask/ taskdef name=undeploy classname=org.apache.catalina.ant.UndeployTask/ -Original Message- From: Rainer Stransky [mailto:[EMAIL PROTECTED] Sent: November 10, 2003 4:55 AM To: Tomcat Users List Subject: Re: java.util.zip.ZipException while using the ant install target On Sunday 09 November 2003 23:53, Rainer Hoeckmann wrote: I found that my build.xml was using the deployTask instead of installTask to implement the ant install command. After changing this it went possible to install my application to Tomcat. Now I'm wondering where the difference is between deployTask and the (not documented) installTask? I posted the same problem some days ago. But there was no response yet. I tried your solution but in my enviroment: - Tomcat/5.0.12 - Ant/1.6beta2 - java/1.4.0_03-b04 - OS/Linux-2.4.19-4GB So i tried your suggestion, and replaced 'deloy' with 'install' as task in the install target. But the 'install' target is not known by my ant. Neither deploy nor install is part of the ant core or optional task, i guess they are implemented in catalina-ant.jar which i copied to $ANT_HOME/lib A look into the jar gives the indication that there are custom tasks org/apache/catalina/ant/DeployTask.class org/apache/catalina/ant/InstallTask.class But i cannot find any documentation about them. Can you give me a hint ? Regards Rainer - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: specifying web app classpath in server xml?
Howdy, My point was exactly I would rather like an extra classspath in the webapp context declaration so I could skip the work of building a jar for one project and copy it (or somehow link it) to the other project's web- inf/lib. I understood your point, no need to repeat it ;) When I change in both projects I'd rather tell tomcat to just look a little extra. So you say the classpath fixed? Am I the only one who want to use tomcat in this way? how do I suggest this to developers, write to the other mailing list? You could write the dev list, but I bet you wouldn't even get a response. I'm one of the developers, and we all really dislike this idea, as well ast he idea someone else suggested of mucking the server's global classpath by editing $CATALINA_HOME/bin/setClasspath.sh. The reason is that the servlet specification lays out a well-defined, well-reasoned classloading scheme. Tomcat goes beyond the requirements of the spec by allowing you to plug in a custom classloader which you'd have known if you read the configuration reference for the Loader element in server.xml. Web applications are supposed to be self-contained and independent. Ideally you should just have one packed WAR file containing everything needed by your webapp. Again tomcat goes beyond the spec here by letting you deploy and run from an unpacked WAR file. And further yet by letting you symlink to other directories for your library resources. The longer I'm around the more I think these leniencies just lead to bad development practices and more requests for hacks like you're asking for. Yoav Shapira regards, artin -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: den 6 november 2003 15:11 To: Tomcat Users List Subject: RE: specifying web app classpath in server xml? Howdy, Can you symlink your WEB-INF/lib/otherProject.jar to the other's project's build directory? You can't declare classpaths in server.xml. The classpath hierarchy is fixed. Yoav Shapira Millennium ChemInformatics -Original Message- From: Anton Modaresi [mailto:[EMAIL PROTECTED] Sent: Thursday, November 06, 2003 5:29 AM To: [EMAIL PROTECTED] Subject: specifying web app classpath in server xml? Hi, I would like to specify additional classpaths for a web app beside the WEB-INF/lib WEB-INF/classes and common/lib directories. My reason is I have a project using code from another project. In a production environment you would jar the classes from the used project and put it in the WEb-INF/lib of the other but in development, where both projects may be updated all the time, I'd prefer to skip the extra overhead of either jaring all files, or recompile the classes a second time to the WEB-INF/classes of the taget project.. So I am wondering, is there a way, I can say in my server.xml, hey please go and check in this additional classpath too for this particular web app. is this possible? (Im using tomcat 5.0.7) This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Error messages for the jsp compiler
David Allison wrote: [...] The other thing which caused me an issue is that there is no way to disable custom tag pooling when pre-compiling JSPs, my application uses some Struts tags which do no work correctly with pooling enabled.. Could You provide some details, e.g. what tags are not compatible with tag pooling? Regards, Johann Uhrmann -- Johann Uhrmann xpecto AG | Lindenstrasse 81 | D-84030 Ergolding Telefon: 0700 xpecto 00 (0700 973286 00) Telefax: 0700 xpecto 10 (0700 973286 10) Internet: http://www.xpecto.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat submits twice?
Hi, I know the forum has a lot of questions about requests being submitted twice. I have implemented some of the solutions mentioned in there but the problem still persists. I have implemented a javascript solution which greys out the submit button rendering it unclickable on the first click. But even then, I am still getting multiple database insert requests. Does anyone know of any problem with tomcat actually stalling and submitting it twice? Is this a browser specific issue? I disabled javascript on my Mozilla browser and still cannot replicate the issue. I understand there is the solution of using tokens for form processing. Can someone please explain it concisely how to do it? I cannot synchronize the actual DB insert method but other than that all solutions are game. Thx, Guru - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: java.util.zip.ZipException while using the ant install target
Rainer Stransky wrote: On Sunday 09 November 2003 23:53, Rainer Hoeckmann wrote: I found that my build.xml was using the deployTask instead of installTask to implement the ant install command. After changing this it went possible to install my application to Tomcat. Now I'm wondering where the difference is between deployTask and the (not documented) installTask? I posted the same problem some days ago. But there was no response yet. I tried your solution but in my enviroment: - Tomcat/5.0.12 - Ant/1.6beta2 - java/1.4.0_03-b04 - OS/Linux-2.4.19-4GB Some comments: - Since Tomcat 5 is in beta, you should update regularly, as there's a significant bugfix activity (which has been slowing down after 5.0.14) - I only test with Ant 1.5.x for now - The install task is deprecated, and I recommend you use deploy instead - If you want a ready to use package to precompile and deploy webapps, look at the Tomcat 5 deployer (which is completely optional, of course) - I think the Ant tasks are quite well documented (see the Tomcat 5 manager and deployer documentation) So i tried your suggestion, and replaced 'deloy' with 'install' as task in the install target. But the 'install' target is not known by my ant. Neither deploy nor install is part of the ant core or optional task, i guess they are implemented in catalina-ant.jar which i copied to $ANT_HOME/lib A look into the jar gives the indication that there are custom tasks org/apache/catalina/ant/DeployTask.class org/apache/catalina/ant/InstallTask.class -- x Rémy Maucherat Senior Developer Consultant JBoss Group (Europe) SàRL x - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: specifying web app classpath in server xml?
thanks both. I see what I can do =) -Original Message- From: Rodrigo Ruiz [mailto:[EMAIL PROTECTED] Sent: den 7 november 2003 17:47 To: Tomcat Users List Subject: Re: specifying web app classpath in server xml? In server.xml you can specify an alternative class loader for your context webapp (see configuration reference on the tomcat docs). You will have to dig into the Tomcat code, but you may create a subclass of the default class (or use it as a template), and add some mechanisms to include extra directories at the same level as WEB-INF/lib. You could, for example, make it use a system property, or add xml properties for configuring it from server.xml A bit advanced, and very non-standard, but it may work for your development environment :-) Curtis Leach wrote: I haven't tried this to see if it works, but you can always edit the catalina.sh or setclasspath.sh files. It's where CLASSPATH is reset during the Tomcat startup. (Or .bat for windows) Curtis -Original Message- From: Anton Modaresi [mailto:[EMAIL PROTECTED] Sent: Friday, November 07, 2003 9:31 AM To: 'Tomcat Users List' Subject: RE: specifying web app classpath in server xml? My point was exactly I would rather like an extra classspath in the webapp context declaration so I could skip the work of building a jar for one project and copy it (or somehow link it) to the other project's web-inf/lib. When I change in both projects I'd rather tell tomcat to just look a little extra. So you say the classpath fixed? Am I the only one who want to use tomcat in this way? how do I suggest this to developers, write to the other mailing list? regards, artin -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: den 6 november 2003 15:11 To: Tomcat Users List Subject: RE: specifying web app classpath in server xml? Howdy, Can you symlink your WEB-INF/lib/otherProject.jar to the other's project's build directory? You can't declare classpaths in server.xml. The classpath hierarchy is fixed. Yoav Shapira Millennium ChemInformatics -Original Message- From: Anton Modaresi [mailto:[EMAIL PROTECTED] Sent: Thursday, November 06, 2003 5:29 AM To: [EMAIL PROTECTED] Subject: specifying web app classpath in server xml? Hi, I would like to specify additional classpaths for a web app beside the WEB-INF/lib WEB-INF/classes and common/lib directories. My reason is I have a project using code from another project. In a production environment you would jar the classes from the used project and put it in the WEb-INF/lib of the other but in development, where both projects may be updated all the time, I'd prefer to skip the extra overhead of either jaring all files, or recompile the classes a second time to the WEB-INF/classes of the taget project.. So I am wondering, is there a way, I can say in my server.xml, hey please go and check in this additional classpath too for this particular web app. is this possible? (Im using tomcat 5.0.7) This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: specifying web app classpath in server xml?
Oh, ok sorry, I didn't know you were in tomcat team. Well I got my answer here then. Didn't mean to be impolite. As tomcat is the reference implementation, one does want it to do exactly what the specification says and prefereably nothing more or less , so I understand your point. I guess I didn't think of that but more on its suitablality for development purposes. I think I've heard that sun is planning to make its own reference implementation. Will that make any changes to tomcat's agenda? regards, anton -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: den 10 november 2003 15:54 To: Tomcat Users List Subject: RE: specifying web app classpath in server xml? Howdy, My point was exactly I would rather like an extra classspath in the webapp context declaration so I could skip the work of building a jar for one project and copy it (or somehow link it) to the other project's web- inf/lib. I understood your point, no need to repeat it ;) When I change in both projects I'd rather tell tomcat to just look a little extra. So you say the classpath fixed? Am I the only one who want to use tomcat in this way? how do I suggest this to developers, write to the other mailing list? You could write the dev list, but I bet you wouldn't even get a response. I'm one of the developers, and we all really dislike this idea, as well ast he idea someone else suggested of mucking the server's global classpath by editing $CATALINA_HOME/bin/setClasspath.sh. The reason is that the servlet specification lays out a well-defined, well-reasoned classloading scheme. Tomcat goes beyond the requirements of the spec by allowing you to plug in a custom classloader which you'd have known if you read the configuration reference for the Loader element in server.xml. Web applications are supposed to be self-contained and independent. Ideally you should just have one packed WAR file containing everything needed by your webapp. Again tomcat goes beyond the spec here by letting you deploy and run from an unpacked WAR file. And further yet by letting you symlink to other directories for your library resources. The longer I'm around the more I think these leniencies just lead to bad development practices and more requests for hacks like you're asking for. Yoav Shapira regards, artin -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: den 6 november 2003 15:11 To: Tomcat Users List Subject: RE: specifying web app classpath in server xml? Howdy, Can you symlink your WEB-INF/lib/otherProject.jar to the other's project's build directory? You can't declare classpaths in server.xml. The classpath hierarchy is fixed. Yoav Shapira Millennium ChemInformatics -Original Message- From: Anton Modaresi [mailto:[EMAIL PROTECTED] Sent: Thursday, November 06, 2003 5:29 AM To: [EMAIL PROTECTED] Subject: specifying web app classpath in server xml? Hi, I would like to specify additional classpaths for a web app beside the WEB-INF/lib WEB-INF/classes and common/lib directories. My reason is I have a project using code from another project. In a production environment you would jar the classes from the used project and put it in the WEb-INF/lib of the other but in development, where both projects may be updated all the time, I'd prefer to skip the extra overhead of either jaring all files, or recompile the classes a second time to the WEB-INF/classes of the taget project.. So I am wondering, is there a way, I can say in my server.xml, hey please go and check in this additional classpath too for this particular web app. is this possible? (Im using tomcat 5.0.7) This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: DBCP could not obtain an idle db connection, pool exhausted
Have you tried to close ResultSet, Statement and Connection after each use? -Original Message- From: Galbayar [mailto:[EMAIL PROTECTED] Sent: November 10, 2003 4:50 AM To: Tomcat Users List Subject: DBCP could not obtain an idle db connection, pool exhausted How to solve this problem? I'm using Tomcat 4.1.27 J2SDK (build 1.4.1_03-b02 Tyrex 1.0 Commons DBCP 1.1 MySQL ConnectorJ version 3.0.8 My server.xml configuration Context ... Resource name=jdbc/sss auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/sss parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter namemaxActive/name value20/value /parameter parameter namemaxIdle/name value20/value /parameter parameter namemaxWait/name value1/value /parameter parameter nameusername/name valueusername/value /parameter parameter namepassword/name valuepassword/value /parameter parameter namedriverClassName/name valueocom.mysql.jdbc.Driver/value /parameter parameter nameurl/name valuejdbc:mysql://localhost:3306/sss?autoReconnect=true/value /parameter /ResourceParams /Context Galbayar. D Senior software engineer Mobile Business Development Business Development Division MobiCom Corporation Peace Avenue 3/1 P.O Box 20A Ulaanbaatar 210620 Mongolia - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Error messages for the jsp compiler
I believe from memory it was the iteration tags but it is quite a while since I looked at the problem and we're not using the latest and greatest Struts build so they might well be fixed now.. We also had some other custom tags which were not clearing correctly between each use as they expected release to be called.. Regards Dave -Original Message- From: Johann Uhrmann [mailto:[EMAIL PROTECTED] Sent: 10 November 2003 14:56 To: Tomcat Users List Subject: Re: Error messages for the jsp compiler David Allison wrote: [...] The other thing which caused me an issue is that there is no way to disable custom tag pooling when pre-compiling JSPs, my application uses some Struts tags which do no work correctly with pooling enabled.. Could You provide some details, e.g. what tags are not compatible with tag pooling? Regards, Johann Uhrmann -- Johann Uhrmann xpecto AG | Lindenstrasse 81 | D-84030 Ergolding Telefon: 0700 xpecto 00 (0700 973286 00) Telefax: 0700 xpecto 10 (0700 973286 10) Internet: http://www.xpecto.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] *** This message contains information that may be privileged or confidential and is the property of Orbian Management Limited. It is intended solely for the named addressee(s) and may not be used or disclosed except for the purpose for which it has been sent. Access to this e-mail by anyone else is unauthorised. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you have received this message in error, please notify the sender immediately and delete the message and any attached documents. Any opinions, conclusions and other information expressed in this message are those of the individual sender and are not given or endorsed by Orbian unless otherwise clearly indicated. Orbian has scanned this e-mail for viruses but accepts no liability or responsibility for any onward transmission or use of emails and attachments having left the Orbian domain. *** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Creation of HttpServlets
That being the case. If you open a database connection in the init method of a servlet, will that connection be the only one for all threads? -Peter At 09:42 AM 11/10/2003, you wrote: Think of the servlet as a multithreaded object. It spawns a new thread for each request. On Monday 10 November 2003 09:23 am, Peter Guyatt wrote: Hi All, I am hoping someone can help answer me this quick question. If I had a web app with one servlet for processing all requests would that one servlet be used by every thread or is it a one to one relation (each thread uses its own instance of the servlet). Thanks Pete - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Ben Souther F.W. Davison Company, Inc. - 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]
Where to I put .so for JNI access?
I've searched google for jni and tomcat, but I can't figure out where to put a shared lib so a Tomcat application will find it. All the people looking for help have already figured this out, apparently. Anyway, running Linux on Intel, Tomcat 4.1.24. Where does my .so file go so my SystemLoadLibrary(Replace); might find it? Thanks, Jim. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Realm Authentication and Password Change
Goal: Using forms based authentication, a user logs into a site with a valid user ID/password, and is redirected to a page explaining that the password has expired and user must change their password. What's a good way to reach this goal? I've been working with a custom realm module, so I know when the password needs to be changed, I just can't figure out how to redirect the user to the password change page. Thanks for any help, Jim Shain Sr. Architect Fidelity Information Services - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Where to I put .so for JNI access?
$JAVA_HOME/jre/lib/i386 -Original Message- From: Jim Lynch [mailto:[EMAIL PROTECTED] Sent: November 10, 2003 10:27 AM To: Tomcat Users List Subject: Where to I put .so for JNI access? I've searched google for jni and tomcat, but I can't figure out where to put a shared lib so a Tomcat application will find it. All the people looking for help have already figured this out, apparently. Anyway, running Linux on Intel, Tomcat 4.1.24. Where does my .so file go so my SystemLoadLibrary(Replace); might find it? Thanks, Jim. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Where to I put .so for JNI access?
Hi Jim, just make sure your OS can find the shared lib. Under Win: make sure it can be found using your PATH-variable. Under (L)UNIX: the same. Add an environment variable LD_LIBRARAY_PATH and put your .so there. greets grisi - Original Message - From: Jim Lynch [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, November 10, 2003 4:26 PM Subject: Where to I put .so for JNI access? I've searched google for jni and tomcat, but I can't figure out where to put a shared lib so a Tomcat application will find it. All the people looking for help have already figured this out, apparently. Anyway, running Linux on Intel, Tomcat 4.1.24. Where does my .so file go so my SystemLoadLibrary(Replace); might find it? Thanks, Jim. - 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: Authenticator valve at the host level, not possible?
Your valve is supposed to be initialized with a loginConfig object, itself initialized from the security constraints defined in a web.xml file. How can tomcat configure your valvle if it is not attached to a context (i.e. no web.xml)? -Vincent. Hi, I am trying to implement my own authentication system (extending AuthenticatorBase). I would like this valve to be set up at the host level so my server.xml, looks like Host name=localhost debug=0 appBase=webapps unpackWARs=true autoDeploy=true Context path=/myContext docBase=ina debug=0 Manager classname=org.apache.catalina.session.StandardManager pathname= / Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=myLog. suffix=.log timestamp=true/ /Context Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=localhost_log. suffix=.txt timestamp=true/ Valve className=com.mycompany.MyAuthenticator debug=10 myParam1=p1 myParam2=p2/ /Host When I try to start my tomcat, it crashes at startup with the following : Catalina.start: java.lang.IllegalArgumentException: Configuration error: Must be attached to a Context java.lang.IllegalArgumentException: Configuration error: Must be attached to a Context at org.apache.commons.digester.Digester.createSAXException(Digester.java:2540) at org.apache.commons.digester.Digester.createSAXException(Digester.java:2566) at org.apache.commons.digester.Digester.endElement(Digester.java:1061) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(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:1548) at org.apache.catalina.startup.Catalina.start(Catalina.java:449) 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) First question : Am I trying to do it in the bad way? Second question : What can be the reason why it crashes when I attach my valve to the host but starts normally when I attach it to the context? Thanks for giving opinions. PS : any link to information related to custom authentication in tomcat is welcome!!! Cheers, Thomas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Creation of HttpServlets
Howdy, That being the case. If you open a database connection in the init method of a servlet, will that connection be the only one for all threads? Yup, which is why opening a connection in the init method is not a good idea for scalability. Instead, use a connection pool (possibly defined in server.xml), and obtain and release connections in your service methods. Yoav Shapira -Peter At 09:42 AM 11/10/2003, you wrote: Think of the servlet as a multithreaded object. It spawns a new thread for each request. On Monday 10 November 2003 09:23 am, Peter Guyatt wrote: Hi All, I am hoping someone can help answer me this quick question. If I had a web app with one servlet for processing all requests would that one servlet be used by every thread or is it a one to one relation (each thread uses its own instance of the servlet). Thanks Pete - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Ben Souther F.W. Davison Company, Inc. - 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] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Where to I put .so for JNI access?
Ah, in the java tree! I'm too hung up on Tomcat and overlooked the obvious. Thanks, Jim. Phillip Qin wrote: $JAVA_HOME/jre/lib/i386 -Original Message- From: Jim Lynch [mailto:[EMAIL PROTECTED] Sent: November 10, 2003 10:27 AM To: Tomcat Users List Subject: Where to I put .so for JNI access? I've searched google for jni and tomcat, but I can't figure out where to put a shared lib so a Tomcat application will find it. All the people looking for help have already figured this out, apparently. Anyway, running Linux on Intel, Tomcat 4.1.24. Where does my .so file go so my SystemLoadLibrary(Replace); might find it? Thanks, Jim. - 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]
JasperException:Unable to compile class for JSP
I have the following error for all JSP applications. I know it's not my code as it worked for my server before I reformatted. Any tips on getting it working?? Archer org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: [javac] Since fork is true, ignoring compiler setting. [javac] Compiling 1 source file [javac] Since fork is true, ignoring compiler setting. at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:130) at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:293) at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:353) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:370) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:473) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:190) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172) 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.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) 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:594) 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:536) _ Hot chart ringtones and polyphonics. Go to http://ninemsn.com.au/mobilemania/default.asp - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: RequestDispatcher.include() on 5.0.14
At 07:32 PM 11/9/2003 -0700, you wrote: I hate bugzilla. No, this appears to be a new item. Unsurprising really, considering that it only fails in a root context. Then I assume you reported the bug? A link to the bug report would be helpful. Jake -Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED] Sent: Sunday, November 09, 2003 7:23 PM To: Tomcat Users List Subject: Re: RequestDispatcher.include() on 5.0.14 You should check bugzilla to see if there are already any reports like this for Tomcat-5. If not, report it. It might get lost if you just report it here. http://issues.apache.org/bugzilla/ Jake At 03:55 PM 11/9/2003 -0700, you wrote: I have a servlet that does a pretty simple include: RequestDispatcher rd=req.getRequestDispatcher(OutputCurrentWeek.html); if (rd==null) { WebApp.log(Error getting RequestDispatcher for Include in ViewCal!,new Exception()); } else { rd.include(req,res); } This works on 5.0.14 if the application is not running in a ROOT context. If the app is in a ROOT context, it doesn't work. No exception is logged, so a non-null RequestDispatcher is returned, it just doesn't seem to work. I just verified that the application works correctly on 4.1.29 for both ROOT and non-ROOT contexts. Is this an area where the spec changed, or is 5.0.14 broken? George Sexton MH Software, Inc. Voice: 303 438 9585 http://www.mhsoftware.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 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: specifying web app classpath in server xml?
Howdy, I think I've heard that sun is planning to make its own reference implementation. Will that make any changes to tomcat's agenda? That's a good question, although for a different thread. I think it's premature to speculate, before seeing Sun's servlet container (if any), and seeing if it's open-source, etc. Yoav Shapira -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: den 10 november 2003 15:54 To: Tomcat Users List Subject: RE: specifying web app classpath in server xml? Howdy, My point was exactly I would rather like an extra classspath in the webapp context declaration so I could skip the work of building a jar for one project and copy it (or somehow link it) to the other project's web- inf/lib. I understood your point, no need to repeat it ;) When I change in both projects I'd rather tell tomcat to just look a little extra. So you say the classpath fixed? Am I the only one who want to use tomcat in this way? how do I suggest this to developers, write to the other mailing list? You could write the dev list, but I bet you wouldn't even get a response. I'm one of the developers, and we all really dislike this idea, as well ast he idea someone else suggested of mucking the server's global classpath by editing $CATALINA_HOME/bin/setClasspath.sh. The reason is that the servlet specification lays out a well-defined, well-reasoned classloading scheme. Tomcat goes beyond the requirements of the spec by allowing you to plug in a custom classloader which you'd have known if you read the configuration reference for the Loader element in server.xml. Web applications are supposed to be self-contained and independent. Ideally you should just have one packed WAR file containing everything needed by your webapp. Again tomcat goes beyond the spec here by letting you deploy and run from an unpacked WAR file. And further yet by letting you symlink to other directories for your library resources. The longer I'm around the more I think these leniencies just lead to bad development practices and more requests for hacks like you're asking for. Yoav Shapira regards, artin -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: den 6 november 2003 15:11 To: Tomcat Users List Subject: RE: specifying web app classpath in server xml? Howdy, Can you symlink your WEB-INF/lib/otherProject.jar to the other's project's build directory? You can't declare classpaths in server.xml. The classpath hierarchy is fixed. Yoav Shapira Millennium ChemInformatics -Original Message- From: Anton Modaresi [mailto:[EMAIL PROTECTED] Sent: Thursday, November 06, 2003 5:29 AM To: [EMAIL PROTECTED] Subject: specifying web app classpath in server xml? Hi, I would like to specify additional classpaths for a web app beside the WEB-INF/lib WEB-INF/classes and common/lib directories. My reason is I have a project using code from another project. In a production environment you would jar the classes from the used project and put it in the WEb-INF/lib of the other but in development, where both projects may be updated all the time, I'd prefer to skip the extra overhead of either jaring all files, or recompile the classes a second time to the WEB-INF/classes of the taget project.. So I am wondering, is there a way, I can say in my server.xml, hey please go and check in this additional classpath too for this particular web app. is this possible? (Im using tomcat 5.0.7) This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved,
Re: specifying web app classpath in server xml?
AFAIK, (And i could be way wrong) *Tomcat is NOT the reference implementation.* But the source of tomcat is used by Sun to make the Reference Implementation. -Tim Anton Modaresi wrote: Oh, ok sorry, I didn't know you were in tomcat team. Well I got my answer here then. Didn't mean to be impolite. As tomcat is the reference implementation, one does want it to do exactly what the specification says and prefereably nothing more or less , so I understand your point. I guess I didn't think of that but more on its suitablality for development purposes. I think I've heard that sun is planning to make its own reference implementation. Will that make any changes to tomcat's agenda? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Realm Authentication and Password Change
A possible solution: - Your custom realm sets a session attribute to indicate that the password must be changed. - You create a filter that checks this attribute and redirect the use to the password change page if needed. -Vincent. Goal: Using forms based authentication, a user logs into a site with a valid user ID/password, and is redirected to a page explaining that the password has expired and user must change their password. What's a good way to reach this goal? I've been working with a custom realm module, so I know when the password needs to be changed, I just can't figure out how to redirect the user to the password change page. Thanks for any help, Jim Shain Sr. Architect Fidelity Information Services - 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 4.1.27 with jvm 1.4.2_02=crashes
Anyone else finding problems with tomcat and the latest j2sdk (1.4.2_02)? We think we may need to go back to 1.4.2_01. -Dave David E. Muller Configuration Manager Overture Services, Inc. www.overture.com Office: 760.476.6406 Mobile: 760.458.2714
Log4j auto-parsing XML configuration files
Howdy, I wanted to correct my error earlier today: log4j version 1.2.8 does indeed automatically recognize and parse XML configuration files placed in the WEB-INF/classes directory of your webapp. I said that only works for properties files, not XML, but I was wrong. This is a fairly recent addition, my bad ;) Yoav Shapira Millennium ChemInformatics This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat 4.1.27 with jvm 1.4.2_02=crashes
David, Did you just do a JVM upgrade? Did you install Tomcat after you did the JVM install/upgrade? I did the same thing and I had to reinstall Tomcat. Chances are you had Tomcat running when you did your upgrade, as I did stupidly, and you have to reinstall tomcat. Laters, Jeremy -Original Message- From: David Muller [mailto:[EMAIL PROTECTED] Sent: Monday, November 10, 2003 9:26 AM To: [EMAIL PROTECTED] Subject: tomcat 4.1.27 with jvm 1.4.2_02=crashes Anyone else finding problems with tomcat and the latest j2sdk (1.4.2_02)? We think we may need to go back to 1.4.2_01. -Dave David E. Muller Configuration Manager Overture Services, Inc. www.overture.com Office: 760.476.6406 Mobile: 760.458.2714 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
ssl problem with certain browsers / os versions
Hi I have a webapp configured to be accessed through an SSL connector and it works when I use an IE6 browser on Windows XP. However, if I try to access the same site from IE6 on NT 4 or Windows 98, something fails in the SSL handshake and I cannot access any of the pages on my site. I installed all the latest OS patches on the clients and then it works fine. However, I cannot rely on all my clients having all the latest OS updates, especially since these older OS machines were perfectly capable of accessing other SSL sites without being updated. Has anyone experienced similar problems,or know what the problem is? I am running tomcat 4.1.29 on linux with Sun's JDK 1.4.2 (although the same problem occurs running Tomcat on NT4) Thanks Dave
Re: Problem with mod_jk2
Ok, I'm still pretty new to Tomcat and mod_jk2, but here's how I understand it: The mod_jk2 doesn't take any config arguments from the apache conf file. I think those arguments you're using are for mod_jk (not mod_jk2). As I understand it mod_jk2 will look for its config file when it's loaded in apache. That file is workers.properties, and (on my config anyway) it sits in the same dir as httpd.conf. Use workers.properties to specify how and when mod_jk2 should intercept page requests, and where they should be sent. The jk2.properties file sits in tomcat's config dir, and is used to give the tomcat side of mod_jk2 special instructions on how it should expect its connection. With the default setup I don't think jk2.properties needs to have any actual config lines in it (everything comes commented out by default). If push came to shove I imagine you could find a httpd.conf config parameter that would tell mod_jk2 where to find its workers.properties. I don't know what that parameter is, so for now I just use the default path and filename, and mod_jk2 seems to find the file easily enough. My personal tomcat/apache/jk2 headache has been because I tried to switch from the default mod_jk2 connection type (TCP sockets) to a more efficient option (unix sockets), but that's a tale of woe for another day. Sam - Original Message - From: Andrew Davis [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 5:36 PM Subject: Problem with mod_jk2 Two prefaces... 1) I hope this is the right list. I didn't see one specifically for mod_jk/mod_jk2. 2) I've read all the doc's I can find. I've been reading and trying for the last two days. Please don't send me replies telling me to RTM. The whole reason for my post is that I'm stuck and think I'm dealing with mod_jk docs not being updated for mod_jk2. I have a RH Linux ES 2.1 server. It has apache 1.3.27 installed via RH's up2date. I also have mod_ssl, and a few other mod's. The apache part is up and running correctly on non-standard ports, but I've tested it with local telnets and remotely through a web-browser. Our original configuration on the server was just pure Tomcat (4.1.27) listening on port 80. We wanted to add SSL support (port 443) and split our services at the same time, allowing us to later have Tomcat and Apache on different servers, hence why I installed Apache. I've spent the last two days reading the relevant portions of WROX's Professional Apache Tomcat and loads of information on the jakarta.apache.org site. Unfortunately, it seems that a lot of the docs (and my book) are still referencing mod_jk syntax options and causing me confusion trying to use mod_jk2. My apache and mod_ssl are from RPM, not source. My Tomcat (ver. 4.1.27... need to get this working before going to 4.1.29) is from a binary (jakarta-tomcat-4.1.27.tar.gz). My mod_jk2 is from jakarta-tomcat-connectors-jk2-src-current.tar.gz and was built by cd'ing into ~/jk/native2, then running 'buildconf.sh' and then 'configure --with-apxs=/usr/sbin/apxs'. The file mod_jk2.so was created and I copied it to my modules directory (/usr/lib/apache - stock on RH ES 2.1). I have the following in my server.xml: !-- Define an AJP 1.3 Connector on port 8009 -- Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009 minProcessors=5 maxProcessors=75 acceptCount=10 debug=0/ I've created a workers.properties file in /usr/jakarta-tomcat-4.1.27/conf/jk. It looks like this: # Setting variables workers.tomcat_home=/usr/tomcat workers.java_home=/usr/java/j2sdk1.4.1_04 ps=/ worker.list=TomcatWorker1 # Settings for TomcatWorker1 worker worker.TomcatWorker1.port=8009 worker.TomcatWorker1.host=localhost worker.TomcatWorker1.type=ajp13 Lastly, I've added the following to the end of my httpd.conf: # Load mod_jk2 LoadModule jk2_module modules/mod_jk2.so # Configure mod_jk2 JkWorkersFile /etc/httpd/conf/workers2.properties JkLogFile /var/log/httpd/mod_jk.log JkLogLevel info JkMount /usr/tomcat/webapps/Genvault/*.jsp TomcatWorker1 Here's my problem. When I run apachectl configtest, I get: [Wed Nov 05 23:27:15 2003] ( info) [mod_jk2.c (208)]: Set serverRoot /etc/httpd Create config for main host Syntax error on line 1499 of /etc/httpd/conf/httpd.conf: Invalid command 'JkWorkersFile', perhaps mis-spelled or defined by a module not included in the server configuration Obviously the module is loading. I even tried the AddModule directive, but it just tells me the module is already loaded. I tried commenting out the 'JkWorkersFile' parameter, but it just errors on the next line: [Wed Nov 05 23:28:56 2003] ( info) [mod_jk2.c (208)]: Set serverRoot /etc/httpd Create config for main host Syntax error on line 1500 of /etc/httpd/conf/httpd.conf: Invalid command 'JkLogFile', perhaps mis-spelled or defined by a module not included in the server configuration Any
RE: tomcat 4.1.27 with jvm 1.4.2_02=crashes
Which OS? -Original Message- From: David Muller [mailto:[EMAIL PROTECTED] Sent: November 10, 2003 11:26 AM To: [EMAIL PROTECTED] Subject: tomcat 4.1.27 with jvm 1.4.2_02=crashes Anyone else finding problems with tomcat and the latest j2sdk (1.4.2_02)? We think we may need to go back to 1.4.2_01. -Dave David E. Muller Configuration Manager Overture Services, Inc. www.overture.com Office: 760.476.6406 Mobile: 760.458.2714
RE: tomcat 4.1.27 with jvm 1.4.2_02=crashes
Sorry, not sure which build 1.4.2_02 but I am happily running Tomcat 4.1.27 on Linux RH 9 Win 2K Server SP4, both with Sun's Java 1.4.2-b28 -Original Message- From: David Muller [mailto:[EMAIL PROTECTED] Sent: Monday, November 10, 2003 11:26 AM To: [EMAIL PROTECTED] Subject: tomcat 4.1.27 with jvm 1.4.2_02=crashes Anyone else finding problems with tomcat and the latest j2sdk (1.4.2_02)? We think we may need to go back to 1.4.2_01. -Dave David E. Muller Configuration Manager Overture Services, Inc. www.overture.com Office: 760.476.6406 Mobile: 760.458.2714 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Realm Authentication and Password Change
Vincent, Thanks! Great solution. How can I set a session variable in a custom realm? -Original Message- From: Vincent Aumont [mailto:[EMAIL PROTECTED] Sent: Monday, November 10, 2003 10:24 AM To: Tomcat Users List Subject: Re: Realm Authentication and Password Change A possible solution: - Your custom realm sets a session attribute to indicate that the password must be changed. - You create a filter that checks this attribute and redirect the use to the password change page if needed. -Vincent. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat 4.1.27 with jvm 1.4.2_02=crashes
Linux RH 8 -Original Message- From: Phillip Qin [mailto:[EMAIL PROTECTED] Sent: Monday, November 10, 2003 8:34 AM To: 'Tomcat Users List' Subject: RE: tomcat 4.1.27 with jvm 1.4.2_02=crashes Which OS? -Original Message- From: David Muller [mailto:[EMAIL PROTECTED] Sent: November 10, 2003 11:26 AM To: [EMAIL PROTECTED] Subject: tomcat 4.1.27 with jvm 1.4.2_02=crashes Anyone else finding problems with tomcat and the latest j2sdk (1.4.2_02)? We think we may need to go back to 1.4.2_01. -Dave David E. Muller Configuration Manager Overture Services, Inc. www.overture.com Office: 760.476.6406 Mobile: 760.458.2714 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Jasper compile problem
Hi, I have a problem with the jsp's compiler when the jsp's name contains underscore character (_). In this case jasper doesn't convert well the jsp's name to class's name. For example a file named a_b.jsp will be named a_0005fb_jsp.java by the runtime compiler. This it causes various problems into debugger mode. To get it to work right, I have to go into Jasper and fix the code to make name files consistently. Does anyone known if the next jasper release will fix this bug? thank in advance Antonio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat 4.1.27 with jvm 1.4.2_02=crashes
What errors did you get? Have you verified your JAVA_HOME? -Original Message- From: David Muller [mailto:[EMAIL PROTECTED] Sent: November 10, 2003 11:43 AM To: Tomcat Users List Subject: RE: tomcat 4.1.27 with jvm 1.4.2_02=crashes Linux RH 8 -Original Message- From: Phillip Qin [mailto:[EMAIL PROTECTED] Sent: Monday, November 10, 2003 8:34 AM To: 'Tomcat Users List' Subject: RE: tomcat 4.1.27 with jvm 1.4.2_02=crashes Which OS? -Original Message- From: David Muller [mailto:[EMAIL PROTECTED] Sent: November 10, 2003 11:26 AM To: [EMAIL PROTECTED] Subject: tomcat 4.1.27 with jvm 1.4.2_02=crashes Anyone else finding problems with tomcat and the latest j2sdk (1.4.2_02)? We think we may need to go back to 1.4.2_01. -Dave David E. Muller Configuration Manager Overture Services, Inc. www.overture.com Office: 760.476.6406 Mobile: 760.458.2714 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
I need nsapi_redirect.so binaries for solaris 8
Can you help me? I need nsapi_redirect.so binaries for iPlanet 4.1 (Solaris8) and Tomcat 5.0.14 Best Regards - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat 4.1.27 with jvm 1.4.2_02=crashes
Nov 8, 2003 3:17:40 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 Nov 8, 2003 3:17:41 PM FinalizerInit FinalizerInit INFO: Priority set to Thread.MAX_PRIORITY Unexpected Signal : 11 occurred at PC=0x4031DCFE Function=(null)+0x4031DCFE Library=/usr/local/j2sdk/j2sdk1.4.2_02/jre/lib/i386/client/libjvm.so NOTE: We are unable to locate the function name symbol for the error just occurred. Please refer to release documentation for possible reason and solutions. Current Java thread: at java.lang.Throwable.fillInStackTrace(Native Method) - locked 0x44e36c68 (a java.lang.NullPointerException) at java.lang.Throwable.init(Throwable.java:180) at java.lang.Exception.init(Exception.java:29) at java.lang.RuntimeException.init(RuntimeException.java:32) at java.lang.NullPointerException.init(NullPointerException.java:36) [error occured during error reporting] Another exception has been detected while we were handling last error. Dumping information about last error: ERROR REPORT FILE = (N/A) PC= 0x4031dcfe SIGNAL= 11 FUNCTION NAME = (N/A) OFFSET= 0x4031DCFE LIBRARY NAME = /usr/local/j2sdk/j2sdk1.4.2_02/jre/lib/i386/client/libjvm.so Please check ERROR REPORT FILE for further information, if there is any. Good bye. -Original Message- From: Phillip Qin [mailto:[EMAIL PROTECTED] Sent: Monday, November 10, 2003 8:47 AM To: 'Tomcat Users List' Subject: RE: tomcat 4.1.27 with jvm 1.4.2_02=crashes What errors did you get? Have you verified your JAVA_HOME? -Original Message- From: David Muller [mailto:[EMAIL PROTECTED] Sent: November 10, 2003 11:43 AM To: Tomcat Users List Subject: RE: tomcat 4.1.27 with jvm 1.4.2_02=crashes Linux RH 8 -Original Message- From: Phillip Qin [mailto:[EMAIL PROTECTED] Sent: Monday, November 10, 2003 8:34 AM To: 'Tomcat Users List' Subject: RE: tomcat 4.1.27 with jvm 1.4.2_02=crashes Which OS? -Original Message- From: David Muller [mailto:[EMAIL PROTECTED] Sent: November 10, 2003 11:26 AM To: [EMAIL PROTECTED] Subject: tomcat 4.1.27 with jvm 1.4.2_02=crashes Anyone else finding problems with tomcat and the latest j2sdk (1.4.2_02)? We think we may need to go back to 1.4.2_01. -Dave David E. Muller Configuration Manager Overture Services, Inc. www.overture.com Office: 760.476.6406 Mobile: 760.458.2714 - 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: Realm Authentication and Password Change
session.setAttribute(). Don't forget to remove the attribute from the session when you're done, Actually, you should use a request attribute in this case. - Vincent Shain, Jim wrote: Vincent, Thanks! Great solution. How can I set a session variable in a custom realm? -Original Message- From: Vincent Aumont [mailto:[EMAIL PROTECTED] Sent: Monday, November 10, 2003 10:24 AM To: Tomcat Users List Subject: Re: Realm Authentication and Password Change A possible solution: - Your custom realm sets a session attribute to indicate that the password must be changed. - You create a filter that checks this attribute and redirect the use to the password change page if needed. -Vincent. - 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: Realm Authentication and Password Change
Vincent, Thanks again. That much I knew. Inside the authenticate method of the custom realm how can I gain access to the session? The only passed variables to the authenticate method are username and credentials, and I don't see the http request or the session any of the base classes. -Jim -Original Message- From: Vincent Aumont [mailto:[EMAIL PROTECTED] Sent: Monday, November 10, 2003 10:57 AM To: Tomcat Users List Subject: Re: Realm Authentication and Password Change session.setAttribute(). Don't forget to remove the attribute from the session when you're done, Actually, you should use a request attribute in this case. - Vincent - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Apache+Tomcat+Windows, how?
Hi all, I´m a spanish newbie using Tomcat. My enviroment: Apache HTTP Server 2.0.48, Jakarta Tomcat 4.1 and w2000 Server. I can´t connected the Apache Server and Tomcat. I get the binary distribution and i can´t find the mod_jk.so that i must include in the Apache web with LoadModule directive. I get the mod_jk.dll bat after edit http.conf my server don´t start because can find API in mod_jk.dll. I know that i must use Loadmodule something but i don´t know what. Anybody help me with this configuration? how can i do it? Thanks, sorry if my english is not correct, i´m a spanish student from Canary Island. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Can I have two different directories for deploying webapps?
Can I have two different directories for deploying web applications. E.g. one as webapps under Tomcat root directory, another under a different drive, say D:\webapps. Can I deploy servlet as well as JSPs under these two directories? Any help will be appreciated. Indrasish. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: RequestDispatcher.include() on 5.0.14
I Emailed Remy off list. Essentially, the problem appears intermittent and may be hardware or JVM related (but I don't think so...). Here is the text of the last message I sent to him: You are right. I wrote a test case, and it worked. I then went back and re-tested my original application. This time it worked. Today, I ran into another problem where I was getting a ClassCastException retrieving an attribute from a session. When I run it under 4.1.29, it works perfectly. FWIW, Tomcat 5.0.14 was not doing this last night. There are many other places throughout the application where this attribute is retrieved from the session, but this is the only one failing. Just for grins, I made a small code change and re-compiled. Unsurpisingly the issue went away I just tried both issues on a different machine running 5.0.14 w/ JDK 1.4.1_01 under Windows and all aspects are working correctly. The machine where I have been having issues is running SUSE 9.0 professional with JDK 1.4.2-b28. I tried upgrading the JVM on the SUSE machine to 1.4.2_02-b03 and still had the same issues. This machine has been running Win2K reliably for several years. To be safe, I ran MemTest86 on it, and it reported no issues. At this point I have conflicting data. On the one hand, the app works on one machine with 5.0.14. On another machine, it doesn't work with 5.0.14, but works well with 4.1.29. At this point I have to say I believe there is something (or many things) wrong with 5.0.14. The problem appears intermittently, and is difficult to trigger with many different symptoms. -Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED] Sent: Monday, November 10, 2003 9:10 AM To: Tomcat Users List Subject: RE: RequestDispatcher.include() on 5.0.14 At 07:32 PM 11/9/2003 -0700, you wrote: I hate bugzilla. No, this appears to be a new item. Unsurprising really, considering that it only fails in a root context. Then I assume you reported the bug? A link to the bug report would be helpful. Jake -Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED] Sent: Sunday, November 09, 2003 7:23 PM To: Tomcat Users List Subject: Re: RequestDispatcher.include() on 5.0.14 You should check bugzilla to see if there are already any reports like this for Tomcat-5. If not, report it. It might get lost if you just report it here. http://issues.apache.org/bugzilla/ Jake At 03:55 PM 11/9/2003 -0700, you wrote: I have a servlet that does a pretty simple include: RequestDispatcher rd=req.getRequestDispatcher(OutputCurrentWeek.html); if (rd==null) { WebApp.log(Error getting RequestDispatcher for Include in ViewCal!,new Exception()); } else { rd.include(req,res); } This works on 5.0.14 if the application is not running in a ROOT context. If the app is in a ROOT context, it doesn't work. No exception is logged, so a non-null RequestDispatcher is returned, it just doesn't seem to work. I just verified that the application works correctly on 4.1.29 for both ROOT and non-ROOT contexts. Is this an area where the spec changed, or is 5.0.14 broken? George Sexton MH Software, Inc. Voice: 303 438 9585 http://www.mhsoftware.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Strange behavior of runtime.exec(...)
Stefan, The security manager is disabled per default. In your specific case it has nothing to do with the security manager either. The problem is that the program/script you started with runtime.exec() doesn't have permission to open a socket. The security manager, if enabled, could control the permission to use .exec() and .exit() methods in your java code. Not in external scripts/programs you execute. As I told you, I worked around this by rewriting the program in as a servlet. I never got the original CGI program to open a socket. I think external programs launched by Tomcat always have this restriction. Maybe one of developers can confirm this behavior? http://jakarta.apache.org/tomcat/tomcat-4.1-doc/security-manager-howto.html grts, Patrick -Original Message- From: Kwok Peng Tuck [mailto:[EMAIL PROTECTED] Sent: Monday, November 10, 2003 12:26 AM To: Tomcat Users List Subject: Re: Strange behavior of runtime.exec(...) If I'm not mistaken, the security manager is turned off by default. Stefan Frank wrote: I tried to tweak the security manager of tomcat(using no restrictions at all) - with no effect. And I have absolutely no idea how to set the security-settings for the Webapp: And if i knew, does anyone know if there is a level of control below the reight to call runtime.exec()?! I mean, if the webapp is allowed to spawn a process, can i restrict the abilities of this spawned process?! And in a platform independent matter?! Or is there a bug somwehere else?! Patrick Willart wrote: I suspect the problem to be that no external task that is started by Tomcat is allowed to open any connections. I had a similar problem with cgi and a windows executable. The executable tried to open a socket connection. The same setup had worked on a different server but not on Tomcat. I ended up rewritting the program as a java servlet. This worked. If you setup a Security Manager for Tomcat then you can control what the java code of your applications is allowed to do. Grts, Patrick -Original Message- From: Stefan Frank [mailto:[EMAIL PROTECTED] Sent: Saturday, November 08, 2003 6:52 AM To: [EMAIL PROTECTED] Subject: Strange behaviour of runtime.exec(...) Hi, we are trying to make some calls to scripts from within tomcat, so we are using runtime.exec() inside a Servlet: The script (it submits a Job to teh Sun Grid Engine, http://gridengine.sunsource.net/) runs fine from the command line, and also the java-class, which is called from the servlet for the submit, runs fine outside of tomcat: When the Class is called from inside tomcat, the job is submitted, but never reaches the scheduler: It looks like the spawned process is not allowed to make up sockets to the outside world - are there any restrictions on using Runtime.exec() from within tomcat?! And if there is, is there a way around these restrictions?! Greetingsthx in advance for any help Stefan - 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] - 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: Can I have two different directories for deploying webapps?
Howdy, Yes. Just define additional Host elements with different appBase directories. Yoav Shapira Millennium ChemInformatics -Original Message- From: Indrasish N Basuroychowdhury [mailto:[EMAIL PROTECTED] Sent: Monday, November 10, 2003 12:21 PM To: Tomcat Users List Subject: Can I have two different directories for deploying webapps? Can I have two different directories for deploying web applications. E.g. one as webapps under Tomcat root directory, another under a different drive, say D:\webapps. Can I deploy servlet as well as JSPs under these two directories? Any help will be appreciated. Indrasish. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: RequestDispatcher.include() on 5.0.14
Maybe I will try some more testing. The one thing I haven't replicated is that the problem machine is running 3 virtual hosts. -Original Message- From: George Sexton [mailto:[EMAIL PROTECTED] Sent: Monday, November 10, 2003 10:23 AM To: 'Tomcat Users List' Subject: RE: RequestDispatcher.include() on 5.0.14 I Emailed Remy off list. Essentially, the problem appears intermittent and may be hardware or JVM related (but I don't think so...). Here is the text of the last message I sent to him: You are right. I wrote a test case, and it worked. I then went back and re-tested my original application. This time it worked. Today, I ran into another problem where I was getting a ClassCastException retrieving an attribute from a session. When I run it under 4.1.29, it works perfectly. FWIW, Tomcat 5.0.14 was not doing this last night. There are many other places throughout the application where this attribute is retrieved from the session, but this is the only one failing. Just for grins, I made a small code change and re-compiled. Unsurpisingly the issue went away I just tried both issues on a different machine running 5.0.14 w/ JDK 1.4.1_01 under Windows and all aspects are working correctly. The machine where I have been having issues is running SUSE 9.0 professional with JDK 1.4.2-b28. I tried upgrading the JVM on the SUSE machine to 1.4.2_02-b03 and still had the same issues. This machine has been running Win2K reliably for several years. To be safe, I ran MemTest86 on it, and it reported no issues. At this point I have conflicting data. On the one hand, the app works on one machine with 5.0.14. On another machine, it doesn't work with 5.0.14, but works well with 4.1.29. At this point I have to say I believe there is something (or many things) wrong with 5.0.14. The problem appears intermittently, and is difficult to trigger with many different symptoms. -Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED] Sent: Monday, November 10, 2003 9:10 AM To: Tomcat Users List Subject: RE: RequestDispatcher.include() on 5.0.14 At 07:32 PM 11/9/2003 -0700, you wrote: I hate bugzilla. No, this appears to be a new item. Unsurprising really, considering that it only fails in a root context. Then I assume you reported the bug? A link to the bug report would be helpful. Jake -Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED] Sent: Sunday, November 09, 2003 7:23 PM To: Tomcat Users List Subject: Re: RequestDispatcher.include() on 5.0.14 You should check bugzilla to see if there are already any reports like this for Tomcat-5. If not, report it. It might get lost if you just report it here. http://issues.apache.org/bugzilla/ Jake At 03:55 PM 11/9/2003 -0700, you wrote: I have a servlet that does a pretty simple include: RequestDispatcher rd=req.getRequestDispatcher(OutputCurrentWeek.html); if (rd==null) { WebApp.log(Error getting RequestDispatcher for Include in ViewCal!,new Exception()); } else { rd.include(req,res); } This works on 5.0.14 if the application is not running in a ROOT context. If the app is in a ROOT context, it doesn't work. No exception is logged, so a non-null RequestDispatcher is returned, it just doesn't seem to work. I just verified that the application works correctly on 4.1.29 for both ROOT and non-ROOT contexts. Is this an area where the spec changed, or is 5.0.14 broken? George Sexton MH Software, Inc. Voice: 303 438 9585 http://www.mhsoftware.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Defining alias in Tomcat
Hi there, how can I define alias to directories in Tomcat 3.2.1 (like in Apache)? Thanks in advance, Arménio Pinto
RE: Can I have two different directories for deploying webapps?
Shapira, Thanks for the reply. Would appreciate any example line of code. Do I have to change the server.xml and add a new context? I was trying to do that but was not able to bring up the server. Thanks, Indrasish. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Monday, November 10, 2003 12:22 PM To: Tomcat Users List Subject: RE: Can I have two different directories for deploying webapps? Howdy, Yes. Just define additional Host elements with different appBase directories. Yoav Shapira Millennium ChemInformatics -Original Message- From: Indrasish N Basuroychowdhury [mailto:[EMAIL PROTECTED] Sent: Monday, November 10, 2003 12:21 PM To: Tomcat Users List Subject: Can I have two different directories for deploying webapps? Can I have two different directories for deploying web applications. E.g. one as webapps under Tomcat root directory, another under a different drive, say D:\webapps. Can I deploy servlet as well as JSPs under these two directories? Any help will be appreciated. Indrasish. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - 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: configuring tomcat 4.1.29 with apache 2 using mod_jk2. HELP me please
All you need for apache and mod_jk2 is the LoadModule line. Then you need a workers2.properties file in your apache_home/conf directory. You'll need to search on google or the apache.org site for workers2.properties file parameters. AD Dionisio Ruiz de Zarate wrote: Hello. i want to configura my tomcat with apache for using mod_jk2 in my linux suse 9. i know how to configure to use mok_jk, but i must to change to mod_jk2 and i don'tknow .how to make this. for configuring to use the mod jk i configure IfModule mod_jk.c JkWorkersFile /opt/jakarta/tomcat/conf/workers.properties JkLogFile /opt/jakarta/tomcat/logs/mod_jk.log JkLogLevel error JKMount /*.jsp ajp13 /IfModule ad i have one w workers.properties file but this configuration with mod_jk2 doesn't run. Can anybody helps me for using the mod_jk2 with tomcat 4.1.29 and apache 2 in one linux SO? can anybody helps me or send one samle configuration? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Andrew Davis, Founder SoCalLinuxSolutions [EMAIL PROTECTED] 760-525-4689 SoCalLinuxSolutions.com Linux Consultation Integration Services - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Can I have two different directories for deploying webapps?
Howdy, There's no code involved. RTFM on Host configuration. Yoav Shapira Millennium ChemInformatics -Original Message- From: Indrasish N Basuroychowdhury [mailto:[EMAIL PROTECTED] Sent: Monday, November 10, 2003 12:49 PM To: Tomcat Users List Subject: RE: Can I have two different directories for deploying webapps? Shapira, Thanks for the reply. Would appreciate any example line of code. Do I have to change the server.xml and add a new context? I was trying to do that but was not able to bring up the server. Thanks, Indrasish. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Monday, November 10, 2003 12:22 PM To: Tomcat Users List Subject: RE: Can I have two different directories for deploying webapps? Howdy, Yes. Just define additional Host elements with different appBase directories. Yoav Shapira Millennium ChemInformatics -Original Message- From: Indrasish N Basuroychowdhury [mailto:[EMAIL PROTECTED] Sent: Monday, November 10, 2003 12:21 PM To: Tomcat Users List Subject: Can I have two different directories for deploying webapps? Can I have two different directories for deploying web applications. E.g. one as webapps under Tomcat root directory, another under a different drive, say D:\webapps. Can I deploy servlet as well as JSPs under these two directories? Any help will be appreciated. Indrasish. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - 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] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
jasper2 issues - client deployer
issue # 1 - jasper-compile.jar I get java.util.zip.ZipException: error in opening zip file on jasper-compile.jar even though I have tvf'd, even re-jarred. Same error using nightly build 10/11/2003, 04/11/2003 5.0.14. The deployer ant script does however read the classes inside ok. Issue # 2 - jasper missing files The jasper2 task to turn my .jsp's into *_jsp.java's ignores 750/1000 jsps. There does not seem to be any rhyme nor reason to the ones it does / does not ignore. Thanks Euan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: RequestDispatcher.include() on 5.0.14
OK, I have figured this out. The issue is that I was deploying the contexts using the Admin application. When I deployed the Root contexts, I specified the path as /. I was able to replicate the error on another machine by doing this. Specifically, I could replicate the ClassCastException. After replicating the error on the second machine, if I changed the context XML file path to , then the application worked correctly. I guess what confused me was that the context basically worked. If it hadn't worked at all, I would have figured out the path was a problem. Remy, What is the correct thing to do here? George Sexton MH Software, Inc. Home of Connect Daily Web Calendar Software http://www.mhsoftware.com/connectdaily.htm Voice: 303 438 9585 -Original Message- From: George Sexton [mailto:[EMAIL PROTECTED] Sent: Monday, November 10, 2003 10:41 AM To: 'Tomcat Users List' Subject: RE: RequestDispatcher.include() on 5.0.14 Maybe I will try some more testing. The one thing I haven't replicated is that the problem machine is running 3 virtual hosts. -Original Message- From: George Sexton [mailto:[EMAIL PROTECTED] Sent: Monday, November 10, 2003 10:23 AM To: 'Tomcat Users List' Subject: RE: RequestDispatcher.include() on 5.0.14 I Emailed Remy off list. Essentially, the problem appears intermittent and may be hardware or JVM related (but I don't think so...). Here is the text of the last message I sent to him: You are right. I wrote a test case, and it worked. I then went back and re-tested my original application. This time it worked. Today, I ran into another problem where I was getting a ClassCastException retrieving an attribute from a session. When I run it under 4.1.29, it works perfectly. FWIW, Tomcat 5.0.14 was not doing this last night. There are many other places throughout the application where this attribute is retrieved from the session, but this is the only one failing. Just for grins, I made a small code change and re-compiled. Unsurpisingly the issue went away I just tried both issues on a different machine running 5.0.14 w/ JDK 1.4.1_01 under Windows and all aspects are working correctly. The machine where I have been having issues is running SUSE 9.0 professional with JDK 1.4.2-b28. I tried upgrading the JVM on the SUSE machine to 1.4.2_02-b03 and still had the same issues. This machine has been running Win2K reliably for several years. To be safe, I ran MemTest86 on it, and it reported no issues. At this point I have conflicting data. On the one hand, the app works on one machine with 5.0.14. On another machine, it doesn't work with 5.0.14, but works well with 4.1.29. At this point I have to say I believe there is something (or many things) wrong with 5.0.14. The problem appears intermittently, and is difficult to trigger with many different symptoms. -Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED] Sent: Monday, November 10, 2003 9:10 AM To: Tomcat Users List Subject: RE: RequestDispatcher.include() on 5.0.14 At 07:32 PM 11/9/2003 -0700, you wrote: I hate bugzilla. No, this appears to be a new item. Unsurprising really, considering that it only fails in a root context. Then I assume you reported the bug? A link to the bug report would be helpful. Jake -Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED] Sent: Sunday, November 09, 2003 7:23 PM To: Tomcat Users List Subject: Re: RequestDispatcher.include() on 5.0.14 You should check bugzilla to see if there are already any reports like this for Tomcat-5. If not, report it. It might get lost if you just report it here. http://issues.apache.org/bugzilla/ Jake At 03:55 PM 11/9/2003 -0700, you wrote: I have a servlet that does a pretty simple include: RequestDispatcher rd=req.getRequestDispatcher(OutputCurrentWeek.html); if (rd==null) { WebApp.log(Error getting RequestDispatcher for Include in ViewCal!,new Exception()); } else { rd.include(req,res); } This works on 5.0.14 if the application is not running in a ROOT context. If the app is in a ROOT context, it doesn't work. No exception is logged, so a non-null RequestDispatcher is returned, it just doesn't seem to work. I just verified that the application works correctly on 4.1.29 for both ROOT and non-ROOT contexts. Is this an area where the spec changed, or is 5.0.14 broken? George Sexton MH Software, Inc. Voice: 303 438 9585 http://www.mhsoftware.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Realm Authentication and Password Change
You could use a Filter. Once authenticated, the filter can check to see if the user's password needed changed. If so, you can sendRedirect() or let the next filter in the chain do its thing. -Tim Shain, Jim wrote: Goal: Using forms based authentication, a user logs into a site with a valid user ID/password, and is redirected to a page explaining that the password has expired and user must change their password. What's a good way to reach this goal? I've been working with a custom realm module, so I know when the password needs to be changed, I just can't figure out how to redirect the user to the password change page. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Login Password for Tomcat Web Server Administration Screen
On the TOMCAT web server asministration screen, I am being asked to enter user name and password. I was just wondering when i could have given this username and password. I installed Tomcat, PostGRESql, DSapce and Ant. I configured all these and in that process I entered information at several places,. I am kind of lost about what i have to enter on this screen. ~Vishal - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
apache + tomcat + ssl + mod_rewrite
I have a test server setup with Apache 1.3.27, Tomcat 4.1.27, and mod_jk2. Its all running on RH Linux ES 2.1. Apache is setup on ports 80 443. The port 80 config has only the basics defined, then has a mod_rewrite rule to send *ALL* traffic to the same URL but via https. It also has mod_jk2 setup to forward all .jsp .do requests to tomcat. Tomcat is listening on ports 8080 and 8009. All seems to work fine, but there's a hole. If I go to http://qa-wap1, I am properly redirected to https://qa-wap1. As I login, follow links, etc., I stay on the secure URL. However, if get into a secure URL... say https://qa-wap1/submitProfile.jsp and change the URL in my browser to http://qa-wap1:80/submitProfile.jsp and refresh the browser, the entire page (content and images, both) reloads and looks perfect. The obvious problem is that I just circumvented the secure URL concept. There's a hole somewhere that I haven't been able to plug. This occurs with multiple browsers. Interestingly, I have an almost identical setup using Apache 1.3.26 and Resin via mod_caucho. The mod_rewrite rule is the same, but if I try to substitute the URL as mentioned above, it immediately puts me back on the secure URL as it should. The relevant portions of the config files are below. I'm hoping someone can help me get byond this. Relevant portion of httpd.conf: VirtualHost qa-wap1:80 ServerName qa-wap1 ServerAlias qa-wap1.my.domain.com ServerAdmin [EMAIL PROTECTED] ErrorLog /var/log/httpd/qa-wap1_error_log TransferLog /var/log/httpd/qa-wap1_access_log CustomLog /var/log/httpd/qa-wap1_referer_log referer CustomLog /var/log/httpd/qa-wap1_agent_log agent # RewriteEngine on RewriteLogLevel 0 RewriteRule ^(.*) https://qa-wap1$1 [R=301] /VirtualHost VirtualHost qa-wap1:443 ServerName qa-wap1 ServerAlias qa-wap1.my.domain.com ServerAdmin [EMAIL PROTECTED] DocumentRoot /usr/tomcat/webapps/Genvault ErrorLog /var/log/httpd/qa-wap1_ssl_error_log TransferLog /var/log/httpd/qa-wap1_ssl_access_log CustomLog /var/log/httpd/qa-wap1_ssl_referer_log referer CustomLog /var/log/httpd/qa-wap1_ssl_agent_log agent DirectoryIndex index.htm # SSL Options SSLEngine on SSLCipherSuite ALL:!ADH:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL SSLCertificateFile /etc/httpd/certs/qa-wap1.crt SSLCertificateKeyFile /etc/httpd/certs/qa-wap1.key # End SSL Options /VirtualHost # Load mod_jk2 LoadModule jk2_module modules/mod_jk2.so AddModule mod_jk2.c Relevant portion of workers2.properties #[logger.apache13] #level=DEBUG [shm] file=/var/log/httpd/shm.file size=1048576 [workerEnv:] info=Global server options timing=1 debug=0 [channel.socket:localhost:8009] port=8009 host=127.0.0.1 # define the worker [ajp13:localhost:8009] channel=channel.socket.localhost:8009 # Uri mapping [uri:/*.jsp] worker=ajp13:localhost:8009 [uri:/*.do] worker=ajp13:localhost:8009 [uri:/servlet/*] worker=ajp13:localhost:8009 [uri:/services/*] worker=ajp13:localhost:8009 I'm not including my server.xml as I don't think its necessary, but I can if it will help. Most interestingly, I decided to circumvent the problem by setting a different DocumentRoot for the port 80 vhost, and having only a single index.html in the folder and have it do an immediate refresh to the secure URL (https://qa-wap1), plus I removed the rewrite rules. I would think that in doing this, if I change the URL to http://qa-wap1:80/submitProfile.jsp that I should get a 404 error. Unfortunately, I got the same results as above... the page loaded perfectly on the non-secure URL, except for the images. And since I know someone will ask, when I change the URL (https://qa-wap1/submitProfile.jsp) to http://qa-wap1:80/submitProfile.jsp and refresh the browser, yes, the lock icon goes away. So its not a client caching issue. -- Andrew Davis, Founder SoCalLinuxSolutions [EMAIL PROTECTED] 760-525-4689 SoCalLinuxSolutions.com Linux Consultation Integration Services - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Login Password for Tomcat Web Server Administration Screen
http://jakarta.apache.org/tomcat/faq/security.html#login -Tim VISHAL SAXENA wrote: On the TOMCAT web server asministration screen, I am being asked to enter user name and password. I was just wondering when i could have given this username and password. I installed Tomcat, PostGRESql, DSapce and Ant. I configured all these and in that process I entered information at several places,. I am kind of lost about what i have to enter on this screen. ~Vishal - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Can I have two different directories for deploying webapps?
Shapira, Don't know how to do. Sorry for the ignorance. Could you please help in telling the steps. You seem to be knowledgable. Indrasish. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Monday, November 10, 2003 12:52 PM To: Tomcat Users List Subject: RE: Can I have two different directories for deploying webapps? Howdy, There's no code involved. RTFM on Host configuration. Yoav Shapira Millennium ChemInformatics -Original Message- From: Indrasish N Basuroychowdhury [mailto:[EMAIL PROTECTED] Sent: Monday, November 10, 2003 12:49 PM To: Tomcat Users List Subject: RE: Can I have two different directories for deploying webapps? Shapira, Thanks for the reply. Would appreciate any example line of code. Do I have to change the server.xml and add a new context? I was trying to do that but was not able to bring up the server. Thanks, Indrasish. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Monday, November 10, 2003 12:22 PM To: Tomcat Users List Subject: RE: Can I have two different directories for deploying webapps? Howdy, Yes. Just define additional Host elements with different appBase directories. Yoav Shapira Millennium ChemInformatics -Original Message- From: Indrasish N Basuroychowdhury [mailto:[EMAIL PROTECTED] Sent: Monday, November 10, 2003 12:21 PM To: Tomcat Users List Subject: Can I have two different directories for deploying webapps? Can I have two different directories for deploying web applications. E.g. one as webapps under Tomcat root directory, another under a different drive, say D:\webapps. Can I deploy servlet as well as JSPs under these two directories? Any help will be appreciated. Indrasish. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - 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] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - 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: Can I have two different directories for deploying webapps?
Howdy, Look at server.xml. You'll see a Host element with an appBase=webapps or something like that. Add another Host with an appBase=/some/path/to/my/directory and restart tomcat. You will then be able to deploy apps to this second directory. And if you don't know what RTFM on Host configuration means with respect to tomcat, or where to locate the tomcat configuration reference, you're SOL. Yoav Shapira Millennium ChemInformatics -Original Message- From: Indrasish N Basuroychowdhury [mailto:[EMAIL PROTECTED] Sent: Monday, November 10, 2003 1:11 PM To: Tomcat Users List Subject: RE: Can I have two different directories for deploying webapps? Shapira, Don't know how to do. Sorry for the ignorance. Could you please help in telling the steps. You seem to be knowledgable. Indrasish. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Monday, November 10, 2003 12:52 PM To: Tomcat Users List Subject: RE: Can I have two different directories for deploying webapps? Howdy, There's no code involved. RTFM on Host configuration. Yoav Shapira Millennium ChemInformatics -Original Message- From: Indrasish N Basuroychowdhury [mailto:[EMAIL PROTECTED] Sent: Monday, November 10, 2003 12:49 PM To: Tomcat Users List Subject: RE: Can I have two different directories for deploying webapps? Shapira, Thanks for the reply. Would appreciate any example line of code. Do I have to change the server.xml and add a new context? I was trying to do that but was not able to bring up the server. Thanks, Indrasish. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Monday, November 10, 2003 12:22 PM To: Tomcat Users List Subject: RE: Can I have two different directories for deploying webapps? Howdy, Yes. Just define additional Host elements with different appBase directories. Yoav Shapira Millennium ChemInformatics -Original Message- From: Indrasish N Basuroychowdhury [mailto:[EMAIL PROTECTED] Sent: Monday, November 10, 2003 12:21 PM To: Tomcat Users List Subject: Can I have two different directories for deploying webapps? Can I have two different directories for deploying web applications. E.g. one as webapps under Tomcat root directory, another under a different drive, say D:\webapps. Can I deploy servlet as well as JSPs under these two directories? Any help will be appreciated. Indrasish. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - 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] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - 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] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: better error messages (was re: Exception at Tomcat startup)
Anton, I totally agree. Somehow a blank line found it's way into the top of one of my config files and I had to waste a lot of time trying to figure out the problem. Meanwhile Tomcat would not start and the system was down. The problem gets worse if you have multiple web applications. Chuck -Original Message- From: Anton Modaresi [mailto:[EMAIL PROTECTED] Sent: Monday, November 10, 2003 12:58 AM To: 'Tomcat Users List' Subject: better error messages (was re: Exception at Tomcat startup) But tomcat should really try to do something about its exceptions. the error messages if existent at all besides merely an exception, leave lots to wish for. Especially the xml parsers that not even say what xml file is being parsed (like ok its probably a web.xml but which one?), let alone where in there the problem is. I would say it's a blocker for next stable release! :p *my opinion* -Original Message- From: Schalk [mailto:[EMAIL PROTECTED] Sent: den 8 november 2003 02:26 To: 'Tomcat Users List' Subject: RE: Exception at Tomcat startup Het there You may want to have a look at this line in your web.xml: Child name 'ControlSer vlet' is not unique It seems that is should say ControlServlet and not ControlSer vlet Kind Regards Schalk Neethling Web Developer.Designer.Programmer.CEO Volume4.Development.Multimedia.Branding emotionalize.conceptualize.visualize.realize Tel: +27125468436 Fax: +27125468436 email:[EMAIL PROTECTED] web: www.volume4.co.za This message contains information that is considered to be sensitive or confidential and may not be forwarded or diclosed to any other party without the permission of the sender. If you received this message in error, please notify me immediately so that I can correct and delete the original email. Thank you. :: -Original Message- :: From: Rishikesh Tembe [mailto:[EMAIL PROTECTED] :: Sent: Saturday, November 08, 2003 3:09 AM :: To: [EMAIL PROTECTED] :: Subject: Exception at Tomcat startup :: :: Hi experts, :: :: This is the display I get when I start up Tomcat v4.1.27. As you can see :: an InvocationTargetException gets thrown. I did not make any changes :: anywhere. What could be the cause? :: Is this a known bug? I couldn't find a similar bug in BugZilla... :: :: --- :: Nov 7, 2003 4:51:28 PM org.apache.commons.modeler.Registry loadRegistry :: INFO: Loading registry information :: Nov 7, 2003 4:51:29 PM org.apache.commons.modeler.Registry getRegistry :: INFO: Creating new Registry instance :: Nov 7, 2003 4:51:30 PM org.apache.commons.modeler.Registry getServer :: INFO: Creating MBeanServer :: Nov 7, 2003 4:51:32 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 :: Nov 7, 2003 4:51:35 PM org.apache.commons.digester.Digester endElement :: SEVERE: End event threw exception :: java.lang.reflect.InvocationTargetException :: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) :: at :: sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. :: java:39) :: at :: sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces :: sorImpl.java:25) :: at java.lang.reflect.Method.invoke(Method.java:324) :: at :: org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.jav :: a: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.dtd.XMLDTDValidator.endNamespaceScope(Unknown :: Source) :: at :: org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown :: S :: ource) :: 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$FragmentContent :: Dispatcher.dispatch(Unknown Source) :: at :: org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un :: known 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(ContextCo :: nfig.java:282) :: at :: org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:63 :: 9) ::
RE: tomcat 4.1.27 with jvm 1.4.2_02=crashes
not sure what b28 is - sounds like an older one (1.4.2_01 maybe?) than I am using java.vm.version : 1.4.2_02-b03 http://java.sun.com/j2se/1.4.2/ReleaseNotes.html -Dave -Original Message- From: Steph Richardson [mailto:[EMAIL PROTECTED] Sent: Monday, November 10, 2003 8:38 AM To: Tomcat Users List Subject: RE: tomcat 4.1.27 with jvm 1.4.2_02=crashes Sorry, not sure which build 1.4.2_02 but I am happily running Tomcat 4.1.27 on Linux RH 9 Win 2K Server SP4, both with Sun's Java 1.4.2-b28 -Original Message- From: David Muller [mailto:[EMAIL PROTECTED] Sent: Monday, November 10, 2003 11:26 AM To: [EMAIL PROTECTED] Subject: tomcat 4.1.27 with jvm 1.4.2_02=crashes Anyone else finding problems with tomcat and the latest j2sdk (1.4.2_02)? We think we may need to go back to 1.4.2_01. -Dave David E. Muller Configuration Manager Overture Services, Inc. www.overture.com Office: 760.476.6406 Mobile: 760.458.2714 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat 4.1.27 with jvm 1.4.2_02=crashes
Mine is 1.4.2_02 and the java -showversion shows me 1.4.2 build 28. Where did you get your jdk? -Original Message- From: David Muller [mailto:[EMAIL PROTECTED] Sent: November 10, 2003 1:29 PM To: Tomcat Users List; [EMAIL PROTECTED] Subject: RE: tomcat 4.1.27 with jvm 1.4.2_02=crashes not sure what b28 is - sounds like an older one (1.4.2_01 maybe?) than I am using java.vm.version : 1.4.2_02-b03 http://java.sun.com/j2se/1.4.2/ReleaseNotes.html -Dave -Original Message- From: Steph Richardson [mailto:[EMAIL PROTECTED] Sent: Monday, November 10, 2003 8:38 AM To: Tomcat Users List Subject: RE: tomcat 4.1.27 with jvm 1.4.2_02=crashes Sorry, not sure which build 1.4.2_02 but I am happily running Tomcat 4.1.27 on Linux RH 9 Win 2K Server SP4, both with Sun's Java 1.4.2-b28 -Original Message- From: David Muller [mailto:[EMAIL PROTECTED] Sent: Monday, November 10, 2003 11:26 AM To: [EMAIL PROTECTED] Subject: tomcat 4.1.27 with jvm 1.4.2_02=crashes Anyone else finding problems with tomcat and the latest j2sdk (1.4.2_02)? We think we may need to go back to 1.4.2_01. -Dave David E. Muller Configuration Manager Overture Services, Inc. www.overture.com Office: 760.476.6406 Mobile: 760.458.2714 - 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: Login Password for Tomcat Web Server Administration Screen
Cool ! Now I am facing another problem: bash-2.05$ cd /home/vsaxena/jakarta-tomcat-5.0.12/webapps/ROOT : is my Root directory of Tomcat. However since I want to run DSpace application on Tomcat, so as per the documentation of DSpace - Connect the DSpace webapps up to Tomcat. With many Web applications, the convention is to put everything associated with the application under Tomcat's directory. Since DSpace has many extra components, we instead use symlinks. Go to the webapps directory in Tomcat, and make these symlinks: So I have Root pointing to jsp directory of DSpace: ROOT - /home/vsaxena/dspace_Install/dspace-1.1/jsp Problem is that now if i try to look at http://agate.mit.edu:8080/home.jsp I get page cannot be found error (HTTP 400-Bad request). It says The page you are looking for might have been removed, had its name changed, or is temporarily unavailable I verified home.jsp lies in the /home/vsaxena/dspace_Install/dspace-1.1/jsp directory. What might be the problem? How can I access this jsp. Please note that I installed Tomcat and DSpace as the same user. I will appreciate any suggestion or solution in this regard. Thanks and Regards ~Vishal -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Monday, November 10, 2003 1:10 PM To: Tomcat Users List Subject: Re: Login Password for Tomcat Web Server Administration Screen http://jakarta.apache.org/tomcat/faq/security.html#login -Tim VISHAL SAXENA wrote: On the TOMCAT web server asministration screen, I am being asked to enter user name and password. I was just wondering when i could have given this username and password. I installed Tomcat, PostGRESql, DSapce and Ant. I configured all these and in that process I entered information at several places,. I am kind of lost about what i have to enter on this screen. ~Vishal - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat 4.1.27 with jvm 1.4.2_02=crashes
Output on my machine (RedHat 9 20.4.20-9, Tomcat 4.1.29, Apache 2.0.47) java -showversion java version 1.4.2_02 Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_02-b03) Java HotSpot(TM) Client VM (build 1.4.2_02-b03, mixed mode) I pulled this down from Sun on 11/03/2003 0903. Everything runs cleanly on this machine. However I have not deployed many applications (Cocoon, Xindice, basic Struts, Jetspeed). I think b28 is from 1.4.2. Could you have references to both 1.4.2 and 1.4.2_02 mixed in your catalina.sh, startup.sh, or setclasspath.sh? Just a thought. /mde/ . . . . . just my two cents __ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Login Password for Tomcat Web Server Administration Screen
Did you restart tomcat after making the symlink? Does the user that tomcat is running under have permissions to access that directory? Did you test your symlink? On Monday 10 November 2003 01:37 pm, VISHAL SAXENA wrote: Cool ! Now I am facing another problem: bash-2.05$ cd /home/vsaxena/jakarta-tomcat-5.0.12/webapps/ROOT : is my Root directory of Tomcat. However since I want to run DSpace application on Tomcat, so as per the documentation of DSpace - Connect the DSpace webapps up to Tomcat. With many Web applications, the convention is to put everything associated with the application under Tomcat's directory. Since DSpace has many extra components, we instead use symlinks. Go to the webapps directory in Tomcat, and make these symlinks: So I have Root pointing to jsp directory of DSpace: ROOT - /home/vsaxena/dspace_Install/dspace-1.1/jsp Problem is that now if i try to look at http://agate.mit.edu:8080/home.jsp I get page cannot be found error (HTTP 400-Bad request). It says The page you are looking for might have been removed, had its name changed, or is temporarily unavailable I verified home.jsp lies in the /home/vsaxena/dspace_Install/dspace-1.1/jsp directory. What might be the problem? How can I access this jsp. Please note that I installed Tomcat and DSpace as the same user. I will appreciate any suggestion or solution in this regard. Thanks and Regards ~Vishal -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Monday, November 10, 2003 1:10 PM To: Tomcat Users List Subject: Re: Login Password for Tomcat Web Server Administration Screen http://jakarta.apache.org/tomcat/faq/security.html#login -Tim VISHAL SAXENA wrote: On the TOMCAT web server asministration screen, I am being asked to enter user name and password. I was just wondering when i could have given this username and password. I installed Tomcat, PostGRESql, DSapce and Ant. I configured all these and in that process I entered information at several places,. I am kind of lost about what i have to enter on this screen. ~Vishal - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Ben Souther F.W. Davison Company, Inc. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Can I have two different directories for deploying webapps?
Shapira, If you follow my mail (as threaded below) that's what I did. Since I encountered problem, I posted this question. I definitely appreciate your help but at the same time won't expect you to be so rude of using words. Thanks, Indrasish. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Monday, November 10, 2003 1:18 PM To: Tomcat Users List Subject: RE: Can I have two different directories for deploying webapps? Howdy, Look at server.xml. You'll see a Host element with an appBase=webapps or something like that. Add another Host with an appBase=/some/path/to/my/directory and restart tomcat. You will then be able to deploy apps to this second directory. And if you don't know what RTFM on Host configuration means with respect to tomcat, or where to locate the tomcat configuration reference, you're SOL. Yoav Shapira Millennium ChemInformatics -Original Message- From: Indrasish N Basuroychowdhury [mailto:[EMAIL PROTECTED] Sent: Monday, November 10, 2003 1:11 PM To: Tomcat Users List Subject: RE: Can I have two different directories for deploying webapps? Shapira, Don't know how to do. Sorry for the ignorance. Could you please help in telling the steps. You seem to be knowledgable. Indrasish. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Monday, November 10, 2003 12:52 PM To: Tomcat Users List Subject: RE: Can I have two different directories for deploying webapps? Howdy, There's no code involved. RTFM on Host configuration. Yoav Shapira Millennium ChemInformatics -Original Message- From: Indrasish N Basuroychowdhury [mailto:[EMAIL PROTECTED] Sent: Monday, November 10, 2003 12:49 PM To: Tomcat Users List Subject: RE: Can I have two different directories for deploying webapps? Shapira, Thanks for the reply. Would appreciate any example line of code. Do I have to change the server.xml and add a new context? I was trying to do that but was not able to bring up the server. Thanks, Indrasish. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Monday, November 10, 2003 12:22 PM To: Tomcat Users List Subject: RE: Can I have two different directories for deploying webapps? Howdy, Yes. Just define additional Host elements with different appBase directories. Yoav Shapira Millennium ChemInformatics -Original Message- From: Indrasish N Basuroychowdhury [mailto:[EMAIL PROTECTED] Sent: Monday, November 10, 2003 12:21 PM To: Tomcat Users List Subject: Can I have two different directories for deploying webapps? Can I have two different directories for deploying web applications. E.g. one as webapps under Tomcat root directory, another under a different drive, say D:\webapps. Can I deploy servlet as well as JSPs under these two directories? Any help will be appreciated. Indrasish. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - 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] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - 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] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient,
RE: Can I have two different directories for deploying webapps?
Howdy, If you follow my mail (as threaded below) that's what I did. Since I Please enlighten me as perhaps I'm having difficulty reading. Where in your messages did it mention anything you did? The only things present are multiple questions, not a single I tried this and got this error type statement. Nonetheless, I've posted what you need to do twice now in increasing levels of detail. Yoav Shapira encountered problem, I posted this question. I definitely appreciate your help but at the same time won't expect you to be so rude of using words. Thanks, Indrasish. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Monday, November 10, 2003 1:18 PM To: Tomcat Users List Subject: RE: Can I have two different directories for deploying webapps? Howdy, Look at server.xml. You'll see a Host element with an appBase=webapps or something like that. Add another Host with an appBase=/some/path/to/my/directory and restart tomcat. You will then be able to deploy apps to this second directory. And if you don't know what RTFM on Host configuration means with respect to tomcat, or where to locate the tomcat configuration reference, you're SOL. Yoav Shapira Millennium ChemInformatics -Original Message- From: Indrasish N Basuroychowdhury [mailto:[EMAIL PROTECTED] Sent: Monday, November 10, 2003 1:11 PM To: Tomcat Users List Subject: RE: Can I have two different directories for deploying webapps? Shapira, Don't know how to do. Sorry for the ignorance. Could you please help in telling the steps. You seem to be knowledgable. Indrasish. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Monday, November 10, 2003 12:52 PM To: Tomcat Users List Subject: RE: Can I have two different directories for deploying webapps? Howdy, There's no code involved. RTFM on Host configuration. Yoav Shapira Millennium ChemInformatics -Original Message- From: Indrasish N Basuroychowdhury [mailto:[EMAIL PROTECTED] Sent: Monday, November 10, 2003 12:49 PM To: Tomcat Users List Subject: RE: Can I have two different directories for deploying webapps? Shapira, Thanks for the reply. Would appreciate any example line of code. Do I have to change the server.xml and add a new context? I was trying to do that but was not able to bring up the server. Thanks, Indrasish. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Monday, November 10, 2003 12:22 PM To: Tomcat Users List Subject: RE: Can I have two different directories for deploying webapps? Howdy, Yes. Just define additional Host elements with different appBase directories. Yoav Shapira Millennium ChemInformatics -Original Message- From: Indrasish N Basuroychowdhury [mailto:[EMAIL PROTECTED] Sent: Monday, November 10, 2003 12:21 PM To: Tomcat Users List Subject: Can I have two different directories for deploying webapps? Can I have two different directories for deploying web applications. E.g. one as webapps under Tomcat root directory, another under a different drive, say D:\webapps. Can I deploy servlet as well as JSPs under these two directories? Any help will be appreciated. Indrasish. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - 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] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - 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] This e-mail, including any attachments,
RE: Can I have two different directories for deploying webapps?
Here it is. Do I have to change the server.xml and add a new context? I was trying to do that but was not able to bring up the server. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Monday, November 10, 2003 1:53 PM To: Tomcat Users List Subject: RE: Can I have two different directories for deploying webapps? Howdy, If you follow my mail (as threaded below) that's what I did. Since I Please enlighten me as perhaps I'm having difficulty reading. Where in your messages did it mention anything you did? The only things present are multiple questions, not a single I tried this and got this error type statement. Nonetheless, I've posted what you need to do twice now in increasing levels of detail. Yoav Shapira encountered problem, I posted this question. I definitely appreciate your help but at the same time won't expect you to be so rude of using words. Thanks, Indrasish. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Monday, November 10, 2003 1:18 PM To: Tomcat Users List Subject: RE: Can I have two different directories for deploying webapps? Howdy, Look at server.xml. You'll see a Host element with an appBase=webapps or something like that. Add another Host with an appBase=/some/path/to/my/directory and restart tomcat. You will then be able to deploy apps to this second directory. And if you don't know what RTFM on Host configuration means with respect to tomcat, or where to locate the tomcat configuration reference, you're SOL. Yoav Shapira Millennium ChemInformatics -Original Message- From: Indrasish N Basuroychowdhury [mailto:[EMAIL PROTECTED] Sent: Monday, November 10, 2003 1:11 PM To: Tomcat Users List Subject: RE: Can I have two different directories for deploying webapps? Shapira, Don't know how to do. Sorry for the ignorance. Could you please help in telling the steps. You seem to be knowledgable. Indrasish. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Monday, November 10, 2003 12:52 PM To: Tomcat Users List Subject: RE: Can I have two different directories for deploying webapps? Howdy, There's no code involved. RTFM on Host configuration. Yoav Shapira Millennium ChemInformatics -Original Message- From: Indrasish N Basuroychowdhury [mailto:[EMAIL PROTECTED] Sent: Monday, November 10, 2003 12:49 PM To: Tomcat Users List Subject: RE: Can I have two different directories for deploying webapps? Shapira, Thanks for the reply. Would appreciate any example line of code. Do I have to change the server.xml and add a new context? I was trying to do that but was not able to bring up the server. Thanks, Indrasish. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Monday, November 10, 2003 12:22 PM To: Tomcat Users List Subject: RE: Can I have two different directories for deploying webapps? Howdy, Yes. Just define additional Host elements with different appBase directories. Yoav Shapira Millennium ChemInformatics -Original Message- From: Indrasish N Basuroychowdhury [mailto:[EMAIL PROTECTED] Sent: Monday, November 10, 2003 12:21 PM To: Tomcat Users List Subject: Can I have two different directories for deploying webapps? Can I have two different directories for deploying web applications. E.g. one as webapps under Tomcat root directory, another under a different drive, say D:\webapps. Can I deploy servlet as well as JSPs under these two directories? Any help will be appreciated. Indrasish. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - 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] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you.
RE: Login Password for Tomcat Web Server Administration Screen
I restarted Tomcat number of times. I will do it again as well! Now, How do I know that user that tomcat is running under, have permissions to access that directory? I mean, I am a user say dspace. I installed DSpace and even the Tomcat as dspace user. I did specify symlink from Tomcat webapp to DSpace jsp directory. While looged in solaris machine, As a dspace user, I can visit any of the file that lies in this jsp directory. I can also start and shutdown Tomcat. And I am not surprised as I installed both of these as a dspace user. However to the outer world, when I try to access these file (from browser through internet), How do i know, who is going to access it. And how can I make sure that anybody can see it through a URL, if access is a problem? How can I test symlink? I am sorry to ask so many questions as I am fairly new to Solaris and quite unexperienced with Tomcat. Regards ~Vishal -Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED] Sent: Monday, November 10, 2003 1:54 PM To: Tomcat Users List Subject: Re: Login Password for Tomcat Web Server Administration Screen Did you restart tomcat after making the symlink? Does the user that tomcat is running under have permissions to access that directory? Did you test your symlink? On Monday 10 November 2003 01:37 pm, VISHAL SAXENA wrote: Cool ! Now I am facing another problem: bash-2.05$ cd /home/vsaxena/jakarta-tomcat-5.0.12/webapps/ROOT : is my Root directory of Tomcat. However since I want to run DSpace application on Tomcat, so as per the documentation of DSpace - Connect the DSpace webapps up to Tomcat. With many Web applications, the convention is to put everything associated with the application under Tomcat's directory. Since DSpace has many extra components, we instead use symlinks. Go to the webapps directory in Tomcat, and make these symlinks: So I have Root pointing to jsp directory of DSpace: ROOT - /home/vsaxena/dspace_Install/dspace-1.1/jsp Problem is that now if i try to look at http://agate.mit.edu:8080/home.jsp I get page cannot be found error (HTTP 400-Bad request). It says The page you are looking for might have been removed, had its name changed, or is temporarily unavailable I verified home.jsp lies in the /home/vsaxena/dspace_Install/dspace-1.1/jsp directory. What might be the problem? How can I access this jsp. Please note that I installed Tomcat and DSpace as the same user. I will appreciate any suggestion or solution in this regard. Thanks and Regards ~Vishal -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Monday, November 10, 2003 1:10 PM To: Tomcat Users List Subject: Re: Login Password for Tomcat Web Server Administration Screen http://jakarta.apache.org/tomcat/faq/security.html#login -Tim VISHAL SAXENA wrote: On the TOMCAT web server asministration screen, I am being asked to enter user name and password. I was just wondering when i could have given this username and password. I installed Tomcat, PostGRESql, DSapce and Ant. I configured all these and in that process I entered information at several places,. I am kind of lost about what i have to enter on this screen. ~Vishal - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Ben Souther F.W. Davison Company, Inc. - 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]