SV: SV: Build a portal
Hi! Thanks for your answer. An Iframe will create much of the same problems that I have with a regular frameset. I'll guess that I either have to rebuild all my web-apps into one or build a new web-app that forwards requests ala Tiles but without the constraints of context. Isn't this a common problem to solve that one have several webapps and one need to show content from more than one sometimes. How is it done! Regards Roland Carlsson Den 05-02-15 08.14, skrev Aris Javier [EMAIL PROTECTED]: You can make use of Windows Sharepoint Portal Server. But that's too expensive... If you know how to use IFRAME and DIV then you can combine all your webapps into one webapp.. =) and make it somewhat like a dashboard... =) Aris -Original Message- From: Roland Carlsson [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 15, 2005 3:06 PM To: TomcatUsers Subject: VB: SV: Build a portal Hi! I'm sorry for not being clear in my question. I have dynamic content, much are info-screens that should be visible all the time. Since these info-screens are from different webapps i'm having trouble to combine them into one page. If I read you correctly you are only speeking about static content and not dynmaic content? Perhaps there are some other product that could handle this problem? Thanks in advance Roland Carlsson Den 05-02-14 16.07, skrev Jason Bainbridge [EMAIL PROTECTED]: On Mon, 14 Feb 2005 14:39:57 +0100, Roland Carlsson [EMAIL PROTECTED] wrote: Hi! I have built an intranet for a while now and have build everything in small discrete parts that are quite independat of each other. Using the Single sign on valve made it easy to integrate the parts and since we are using a frameset the menus wasn't a problem. Now we are going to replace our frameset with includes and now I forsee a pain in the neck keeping look and feel consistent since I don't have the framset but have to keep a copy of the common components in every web-app. I am really hoping that I have missed something but isn't there a way to have common components in one place only? Not really a Tomcat question and it isn't very clear exactly what you are after but I am guessing you might want to use something like the ROOT webapp to store all the common static files and then you can refer to them with absolute links like href=/media/images/logo.gif Regards, -- Jason Bainbridge KDE - Conquer Your Desktop - http://kde.org KDE Web Team - [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]
Tomcat 5.5.7 deployer ExceptionInInitializer error
When I use the client deployer to compile my web app I am getting this error under SuSE Linux (SLES9). Under Windows XP it deploys fine. It seems sort of puzzling as to why the deployer is running the Struts org.apache.struts.util.MessageResources.getMessageResources during a compile. Here is a the output: [EMAIL PROTECTED]:~/tc55-deployer echo $JAVA_HOME /usr/java/jdk1.5.0_01 [EMAIL PROTECTED]:~/tc55-deployer echo $ANT_HOME /opt/apache-ant-1.6.2 [EMAIL PROTECTED]:~/tc55-deployer $ANT_HOME/bin/ant compile Buildfile: build.xml clean: compile: [copy] Copying 625 files to /home/ltojsw/tc55-deployer/build/webapp/stars [jasper2] log4j:WARN No appenders could be found for logger (org.apache.jasper.compiler.JspRuntimeContext). [jasper2] log4j:WARN Please initialize the log4j system properly. BUILD FAILED /home/ltojsw/tc55-deployer/build.xml:45: java.lang.ExceptionInInitializerError Total time: 8 seconds The stack trace is below (running ant with -verbose flag). Any idea would fix this? Thank you - Richard [jasper2] Error in class org.apache.jasper.JspC BUILD FAILED /home/ltojsw/tc55-deployer/build.xml:45: java.lang.ExceptionInInitializerError at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:131) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) at org.apache.tools.ant.Task.perform(Task.java:364) at org.apache.tools.ant.Target.execute(Target.java:341) at org.apache.tools.ant.Target.performTasks(Target.java:369) at org.apache.tools.ant.Project.executeTarget(Project.java:1214) at org.apache.tools.ant.Project.executeTargets(Project.java:1062) at org.apache.tools.ant.Main.runBuild(Main.java:673) at org.apache.tools.ant.Main.startAnt(Main.java:188) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55) Caused by: java.lang.ExceptionInInitializerError at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:164) at org.apache.strutsel.taglib.html.ELFormTagBeanInfo.class$(ELFormTagBeanIn fo.java:41) at org.apache.strutsel.taglib.html.ELFormTagBeanInfo.getPropertyDescriptors (ELFormTagBeanInfo.java:41) at java.beans.Introspector.getTargetPropertyInfo(Introspector.java:475) at java.beans.Introspector.getBeanInfo(Introspector.java:385) at java.beans.Introspector.getBeanInfo(Introspector.java:155) at org.apache.jasper.compiler.Generator$TagHandlerInfo.init(Generator.jav a:3676) at org.apache.jasper.compiler.Generator$GenerateVisitor.getTagHandlerInfo(G enerator.java:2098) at org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.jav a:1579) at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1441) at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163) at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213) at org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.jav a:1685) at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1441) at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163) at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213) at org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.jav a:1685) at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1441) at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163) at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213) at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2219) at org.apache.jasper.compiler.Node$Root.accept(Node.java:456) at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163) at org.apache.jasper.compiler.Generator.generate(Generator.java:3268) at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:189) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:286) at org.apache.jasper.JspC.processFile(JspC.java:854) at org.apache.jasper.JspC.execute(JspC.java:989) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:123) ... 10 more Caused by: java.lang.NullPointerException at org.apache.struts.util.MessageResources.getMessageResources(MessageResou rces.java:498) at org.apache.struts.taglib.html.FormTag.clinit(FormTag.java:95) ... 44 more --- Nested Exception --- java.lang.ExceptionInInitializerError at
Configure Valve which is called after authentication process???
Hi Is it possible to configure a valve which is called after the authentication process? I've configured the Valve after the Realm but the Valve is called first. Thanks for your support. Oliver *** BITTE BEACHTEN *** Diese Nachricht (wie auch allfällige Anhänge dazu) beinhaltet möglicherweise vertrauliche oder gesetzlich geschützte Daten oder Informationen. Zum Empfang derselben ist (sind) ausschliesslich die genannte(n) Person(en) bestimmt. Falls Sie diese Nachricht irrtümlicherweise erreicht hat, sind Sie höflich gebeten, diese unter Ausschluss jeder Reproduktion zu zerstören und die absendende Person umgehend zu benachrichtigen. Vielen Dank für Ihre Hilfe. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Session Creation with IE
Using 5.0.28 on WIndows 2K. We have three ways of getting at our webapp from the client side: IE Favourites Email link (usually Outlook express) Desktop shortcuts. All clients are running IE6. If the client goes into the app via the browser favourite all is fine. If the first client window is brought up via the email link or desktop short cut and then an IE favourite is used to access another page, a new session is created at the server end. Anyone seen anything like this. It seems that either tomcat thinks the second access is from a different client or it is indeed from a new client and IE/Win2K is doing something strange. -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 265.8.8 - Release Date: 14/02/2005 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Session Creation with IE
Hi Mark, I have experienced this problem as well. It appears that when IE is started from a shortcut or from with Outlook/Outlook Express a different cookie store is used from the main IE one. I also noticed that if a new browser window is opened from within the one created by the shortcut/outlook you revert to normal IE cookie store. Regrettably I didn't find/look for a solution as the problem didn't affect me in any serious way as it does you. -- Mike Fowler Registered Linux user: 379787 I could be a genius if I just put my mind to it, and I, I could do anything, if only I could get 'round to it - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Cannot create JDBC driver of class '' for connect URL 'null'
Hi I have added Oracle resource params to the server.xml file and reference parameters to oracle in the web.xml When i startup tomcat - i get the following error: 11:20:38,385 [ConnectDB.java] [ConnectDB] [getConnectionPoolForOracle:101] - ERR OR - failed to get the connection: org.apache.commons.dbcp.SQLNestedException: C annot create JDBC driver of class '' for connect URL 'null', cause: No suitable driver 11:20:38,385 [SendMessageAction.java] [SendMessageAction] [Send:227] - DEBUG - C onnection after: null java.net.MalformedURLException: no protocol: at java.net.URL.init(URL.java:537) at java.net.URL.init(URL.java:434) at java.net.URL.init(URL.java:383) at com.csc.nhs.web.legacypas.struts.action.SendMessageAction.Send(SendMe ssageAction.java:231) any thoughts? regards Gurpreet - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
HTTP Status 408 Error when i login
I there! I'm using JAAS on Tomcat 5.0.28 to make a authentication process for my web aplication. When I submit a wrong username/password the server redirects to an error page, that's correct, but when I submit the correct username/password I got a HTTP Status 408 Error! I don't know what's the problem :( Any help? Thanks... --- Bruno V. Gonçalves - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] Search in French database in English
Hi all, Sorry for OT. Many here will have experience in developing multilingual sites. I have a doubt regarding searching in a database which stores information in English, French and German. The user can type the search keyword(usually it is customer name and address) in English and it has to match the word in all these languages. Is it possible ?. Any thoughts on this are welcome. rgds Antony Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: FW: Re: Missing application web.xml Tomcat 5.5.7
Hi, Sorry for the confusion on the variable name. I undeploy the ROOT context that comes stock with Tomcat. I don't believe that this is a conflict with another app being installed at the same context name. Before each attempt to upload the ROOT.war file I manually shut down Tomcat and delete any /ROOT, ROOT.war and $CATALINA_HOME\conf\Catalina\localhost\ROOT.xml files so that the instance is clean. When I do the upload, Tomcat successfully moves ROOT.war to $CATALINA_HOME\webapps\ (I watch the directory manually). In the manager web interfact it says that the app is successfully installed and it lists a root context. But then, upon refreshing a few seconds later the app has been undeployed and the Missing application web.xml error appears in stdout. I can shutdown tomcat, clean all ROOT context references, manually explode the war file to $CATALINA_HOME\webapps\ROOT\, restart Tomcat and the app works perfectly. It seemed initially like Tomcat was having trouble extracting the war file but there was something I saw in the detailed log4j debugs or on the file system that made me believe that it was successfully able to get into the war, it just didn't like what it saw. I forget what I saw, but I believe that it was successfully reading in custom variables from my context.xml, inside of the war file. Thanks for the help, Joe -Original Message- From: sven morales [mailto:[EMAIL PROTECTED] Sent: Monday, February 14, 2005 11:31 PM To: Tomcat Users List Subject: RE: FW: Re: Missing application web.xml Tomcat 5.5.7 Hi, Using $CATALINA_HOME and or $CATALINA_BASE is the more proper way to describe those directory references. No I am not having trouble with web.xml file when deploying a WAR file. I'm trying to assist you troubleshoot. Are you trying to deploy an additional ROOT.war? There is an existing ROOT context that came as stock installed and this will most likely conflict with the new one with same name you are trying to deploy. So either remove the existing one or rename your ROOT.war to another name. aka_sergio --- Joe Reger, Jr. [EMAIL PROTECTED] wrote: Hi, I'm just using that to represent the root tomcat installation directory. For me it's C:\Superfly\Tomcat 5.5\. For you it may be different. Are you having any trouble with the web.xml file when deployinga WAR through the manager app? Joe -Original Message- From: sven morales [mailto:[EMAIL PROTECTED] Sent: Monday, February 14, 2005 1:12 PM To: Tomcat Users List Subject: Re: FW: Re: Missing application web.xml Tomcat 5.5.7 Hi, Where are you getting this $CatalinaRoot ? I don't see this env var set in catalina.sh. aka_sergio --- Joe Reger, Jr. [EMAIL PROTECTED] wrote: Hi All. I'm still having trouble with this issue. I'm not able to upload a .WAR file through the html web application manager but the same war manually exploded and placed into the /webapps directory works fine. I've included the web.xml to see if anybody can determine why Tomcat's rejecting it. I've Included the stdout log file. Some notes from the log4j tomcat debug file: Line 91: Tomcat has found the context.xml and moved it to $CatalinaRoot$\conf\Catalina\localhost\ROOT.xml Line 537: org.apache.catalina.core.StandardContext - Starting ROOT Line 7542: org.apache.catalina.startup.ContextConfig - Missing application web.xml, using defaults only Line 7744: org.apache.catalina.startup.HostConfig - Checking context[] redeploy resource C:\SuperFly\Tomcat 5.5\webapps\ROOT Line 7746: ContainerBackgroundProcessor[StandardEngine[Catalina]] org.apache.catalina.core.StandardContext - Stopping Line 7825: Delete C:\SuperFly\Tomcat 5.5\webapps\ROOT.war Here's what I see when I deploy: Click upload. Tomcat moves ROOT.war into $CatalinaRoot$\webapps\. Context.xml, from inside the .war file seen in $CatalinaRoot$\conf\localhost. Application appears in manager/html. A few seconds later the application dissappears and all files are deleted. The tomcat sample war file appears to be broken too : http://jakarta.apache.org/tomcat/tomcat-5.5-doc/appdev/sample/ I'm open to suggestions. More info below. Thanks, Joe _ From: Joe Reger, Jr. [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 02, 2005 11:58 AM To: 'tomcat-user@jakarta.apache.org' Subject: Re: Missing application web.xml Hi! I'm having problems with the Missing application web.xml error on dev machines running Windows XP,. Tomcat 5.5.7, Java 5.0. It happens when I try to deploy a war file by using the Manager app or by placing it in the /webapps directory. Here are some of the things I've done, each time trying to deploy the resulting WAR file with no success and the same error: 1) Completely emptied the /webapps directory (per Paul's success below).
RE : HTTP Status 408 Error when i login
Hi, It's a Request timeout. -Message d'origine- De : Bruno Gonçalves [mailto:[EMAIL PROTECTED] Envoyé : mardi 15 février 2005 12:46 À : tomcat-user@jakarta.apache.org Objet : HTTP Status 408 Error when i login I there! I'm using JAAS on Tomcat 5.0.28 to make a authentication process for my web aplication. When I submit a wrong username/password the server redirects to an error page, that's correct, but when I submit the correct username/password I got a HTTP Status 408 Error! I don't know what's the problem :( Any help? Thanks... --- Bruno V. Gonçalves - 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]
HTTP: 500 Internal Server Error
Hi, I'm getting HTTP:500 Inernal Server Error Problem, while uploading the XML file. The things that is getting strange to me is that uploading is done fine on starting, but system starts throwing this error as files are loaded concurrentlya and Threads seems to be hanged. I'm using Tomcat3.3.1 and JRE 1.2 . Can any one help me out in this. Many Thanks, Anand * Disclaimer: The contents of this E-mail (including the contents of the enclosure(s) or attachment(s) if any) are privileged and confidential material of MBT and should not be disclosed to, used by or copied in any manner by anyone other than the intended addressee(s). In case you are not the desired addressee, you should delete this message and/or re-direct it to the sender. The views expressed in this E-mail message (including the enclosure(s) or attachment(s) if any) are those of the individual sender, except where the sender expressly, and with authority, states them to be the views of MBT. This e-mail message including attachment/(s), if any, is believed to be free of any virus. However, it is the responsibility of the recipient to ensure that it is virus free and MBT is not responsible for any loss or damage arising in any way from its use - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: RE : HTTP Status 408 Error when i login
Yes, I know! But I don't understand where is the problem :( In the web.xml the value of timeout is 30minutes: !-- session timeout -- session-config session-timeout30/session-timeout /session-config I do a quick login, not more than 1minute!!! :( I need some help with this... Thanks.. LERBSCHER Jean-Pierre wrote: Hi, It's a Request timeout. -Message d'origine- De : Bruno Gonçalves [mailto:[EMAIL PROTECTED] Envoyé : mardi 15 février 2005 12:46 À : tomcat-user@jakarta.apache.org Objet : HTTP Status 408 Error when i login I there! I'm using JAAS on Tomcat 5.0.28 to make a authentication process for my web aplication. When I submit a wrong username/password the server redirects to an error page, that's correct, but when I submit the correct username/password I got a HTTP Status 408 Error! I don't know what's the problem :( Any help? Thanks... --- Bruno V. Gonçalves - 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 : RE : HTTP Status 408 Error when i login
With session-timeout element you specify a session timeout not a request timeout. See http://www.checkupdown.com/status/E408.html for explanation! -Message d'origine- De : Bruno Gonçalves [mailto:[EMAIL PROTECTED] Envoyé : mardi 15 février 2005 13:36 À : Tomcat Users List Objet : Re: RE : HTTP Status 408 Error when i login Yes, I know! But I don't understand where is the problem :( In the web.xml the value of timeout is 30minutes: !-- session timeout -- session-config session-timeout30/session-timeout /session-config I do a quick login, not more than 1minute!!! :( I need some help with this... Thanks.. LERBSCHER Jean-Pierre wrote: Hi, It's a Request timeout. -Message d'origine- De : Bruno Gonçalves [mailto:[EMAIL PROTECTED] Envoyé : mardi 15 février 2005 12:46 À : tomcat-user@jakarta.apache.org Objet : HTTP Status 408 Error when i login I there! I'm using JAAS on Tomcat 5.0.28 to make a authentication process for my web aplication. When I submit a wrong username/password the server redirects to an error page, that's correct, but when I submit the correct username/password I got a HTTP Status 408 Error! I don't know what's the problem :( Any help? Thanks... --- Bruno V. Gonçalves - 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: 5.0.28 catalina.properties file
This works: common.loader=${catalina.home}/common/classes,${catalina.home}/common/en dorsed/*.jar,{catalina.home}/common/lib/*.jar,c:/esri/lib/*.jar What didn't work looked like common.loader=${catalina.home}/common/classes,${catalina.home}/common/en dorsed/*.jar,{catalina.home}/common/lib/*.jar,c:/esri/lib/btnm.jar The error was 'class not found' for a class called out in a GlobalResource description. -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Monday, February 14, 2005 10:46 PM To: Tomcat Users List Subject: RE: 5.0.28 catalina.properties file From: Benson Margulies [mailto:[EMAIL PROTECTED] Subject: 5.0.28 catalina.properties file I just converted a non-working to a working configuration by replacing a set of jar file pathnames with a pathname to x/*.jar where x is a dir containing the same two jars. How about posting your exact before and after config lines? What exactly was the result of attempting to use the non-working configuration? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - 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: RE : RE : HTTP Status 408 Error when i login
Humm... I see. So what can I do on Tomcat to resolve this problem? There's any config file? This problem it's very strange!! Thanks Pierre! LERBSCHER Jean-Pierre wrote: With session-timeout element you specify a session timeout not a request timeout. See http://www.checkupdown.com/status/E408.html for explanation! -Message d'origine- De : Bruno Gonçalves [mailto:[EMAIL PROTECTED] Envoyé : mardi 15 février 2005 13:36 À : Tomcat Users List Objet : Re: RE : HTTP Status 408 Error when i login Yes, I know! But I don't understand where is the problem :( In the web.xml the value of timeout is 30minutes: !-- session timeout -- session-config session-timeout30/session-timeout /session-config I do a quick login, not more than 1minute!!! :( I need some help with this... Thanks.. LERBSCHER Jean-Pierre wrote: Hi, It's a Request timeout. -Message d'origine- De : Bruno Gonçalves [mailto:[EMAIL PROTECTED] Envoyé : mardi 15 février 2005 12:46 À : tomcat-user@jakarta.apache.org Objet : HTTP Status 408 Error when i login I there! I'm using JAAS on Tomcat 5.0.28 to make a authentication process for my web aplication. When I submit a wrong username/password the server redirects to an error page, that's correct, but when I submit the correct username/password I got a HTTP Status 408 Error! I don't know what's the problem :( Any help? Thanks... --- Bruno V. Gonçalves - 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: TC 5.0.28 AdminTool -- nodes under Tomcat Server throwing exceptions
!-- Jakarta-Tomcat DEVELOPMENT Server Configuration File -- Server port=21043 shutdown=shutdown debug=3 Listener className=org.apache.catalina.mbeans.ServerLifecycleListener debug=0/ Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener debug=0/ Service name=Catalina Connector port=20041 maxThreads=50 minSpareThreads=5 maxSpareThreads=20 enableLookups=false redirectPort=20051 acceptCount=10 debug=9 connectionTimeout=3 disableUploadTimeout=true / Engine name=Catalina defaultHost=localhost debug=0 Valve className=org.apache.catalina.valves.RequestDumperValve/ Logger className=org.apache.catalina.logger.FileLogger verbosity=3 directory=logs prefix=engine. suffix=.log timestamp=true / !-- Default virtual host -- Host name=localhost debug=9 appBase=\localhost\default unpackWARs=false autoDeploy=false deployOnStartup=false workDir=work/localhost xmlValidation=false xmlNamespaceAware=false Logger className=org.apache.catalina.logger.FileLogger verbosity=4 directory=logs/localhost prefix=filelog. suffix=.log timestamp=true/ Valve className=org.apache.catalina.valves.AccessLogValve directory=logs/localhost prefix=accesslog. suffix=.log resolveHosts=false pattern=%t|%a|%S|%s|%B|%r|/ Context path= docBase=\localhost\default reloadable=true debug=true swallowOutput=false workDir=work/default / Context path=/Admin docBase=\tomcat\5.0.28\server\webapps\admin debug=99 privileged=true Realm className=...realm.MyDBAuthRealm/ /Context /Host!-- localhost -- /Engine /Service /Server - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Session Creation with IE
IE makes a difference between 'an instance' (active IE with 'handles the link' or the 'crtl-N' or file New...) which inherits the cookiestore from the 'active' browser or a complete new 'start' of the browser. The latter has it own cookie store and therefore has no session on the server. There is not real sollution for this since it is IE behaviour noting you can control. On Tue, 15 Feb 2005 11:22:22 +, Mike Fowler [EMAIL PROTECTED] wrote: Hi Mark, I have experienced this problem as well. It appears that when IE is started from a shortcut or from with Outlook/Outlook Express a different cookie store is used from the main IE one. I also noticed that if a new browser window is opened from within the one created by the shortcut/outlook you revert to normal IE cookie store. Regrettably I didn't find/look for a solution as the problem didn't affect me in any serious way as it does you. -- Mike Fowler Registered Linux user: 379787 I could be a genius if I just put my mind to it, and I, I could do anything, if only I could get 'round to it - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Regards, Wouter Boers business: http://www.abcdarium.nl personal: http://www.ikke.net - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE : RE : RE : HTTP Status 408 Error when i login
Do you have proxy in front of Tomcat ? What's your system configuration ? Enable trace on tomcat, and track http request and response. You can use org.apache.soap.util.net.TcpTunnelGui (it's a little http proxy packaged with axis (?) - I don't remember exactly) to check http request and response. Settings : set CLASSPATH=%CLASPATH%;lib/soap.jar java org.apache.soap.util.net.TcpTunnelGui 8080 localhost 8082 where 8080 utility listen port localhost 8082 your tomcat server address and port -Message d'origine- De : Bruno Gonçalves [mailto:[EMAIL PROTECTED] Envoyé : mardi 15 février 2005 13:59 À : Tomcat Users List Objet : Re: RE : RE : HTTP Status 408 Error when i login Humm... I see. So what can I do on Tomcat to resolve this problem? There's any config file? This problem it's very strange!! Thanks Pierre! LERBSCHER Jean-Pierre wrote: With session-timeout element you specify a session timeout not a request timeout. See http://www.checkupdown.com/status/E408.html for explanation! -Message d'origine- De : Bruno Gonçalves [mailto:[EMAIL PROTECTED] Envoyé : mardi 15 février 2005 13:36 À : Tomcat Users List Objet : Re: RE : HTTP Status 408 Error when i login Yes, I know! But I don't understand where is the problem :( In the web.xml the value of timeout is 30minutes: !-- session timeout -- session-config session-timeout30/session-timeout /session-config I do a quick login, not more than 1minute!!! :( I need some help with this... Thanks.. LERBSCHER Jean-Pierre wrote: Hi, It's a Request timeout. -Message d'origine- De : Bruno Gonçalves [mailto:[EMAIL PROTECTED] Envoyé : mardi 15 février 2005 12:46 À : tomcat-user@jakarta.apache.org Objet : HTTP Status 408 Error when i login I there! I'm using JAAS on Tomcat 5.0.28 to make a authentication process for my web aplication. When I submit a wrong username/password the server redirects to an error page, that's correct, but when I submit the correct username/password I got a HTTP Status 408 Error! I don't know what's the problem :( Any help? Thanks... --- Bruno V. Gonçalves - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Cannot create JDBC driver of class '' for connect URL 'null'
Post your jdbc url. -Original Message- From: g k [mailto:[EMAIL PROTECTED] Sent: February 15, 2005 6:44 AM To: tomcat-user@jakarta.apache.org Subject: Cannot create JDBC driver of class '' for connect URL 'null' Hi I have added Oracle resource params to the server.xml file and reference parameters to oracle in the web.xml When i startup tomcat - i get the following error: 11:20:38,385 [ConnectDB.java] [ConnectDB] [getConnectionPoolForOracle:101] - ERR OR - failed to get the connection: org.apache.commons.dbcp.SQLNestedException: C annot create JDBC driver of class '' for connect URL 'null', cause: No suitable driver 11:20:38,385 [SendMessageAction.java] [SendMessageAction] [Send:227] - DEBUG - C onnection after: null java.net.MalformedURLException: no protocol: at java.net.URL.init(URL.java:537) at java.net.URL.init(URL.java:434) at java.net.URL.init(URL.java:383) at com.csc.nhs.web.legacypas.struts.action.SendMessageAction.Send(SendMe ssageAction.java:231) any thoughts? regards Gurpreet - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:4211e08b66521973816187!
Random: Can't find resource for bundle
Hi, I'm using tomcat 5.5.7 under windows (although I had this problem also with 5.0.28). I have a page with locale resources. The page works fine. Refresh it 10 times say and every so often during the refresh I get this error. org.apache.jasper.JasperException: Can't find resource for bundle com.zooplus.resources.WebMessages, key general.title org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3 73) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) root cause java.util.MissingResourceException: Can't find resource for bundle com.zooplus.resources.WebMessages, key general.title java.util.ResourceBundle.getObject(ResourceBundle.java:326) java.util.ResourceBundle.getObject(ResourceBundle.java:323) java.util.ResourceBundle.getString(ResourceBundle.java:286) It's seems to be random. The page refreshes half-a-dozen times without problems and then I get this random message. Press refresh again and it works - finding the resource. Anyone have a clue on this? Thanks, Steve. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Cannot create JDBC driver of class '' for connect URL 'null'
Rename the Oracle classes12.zip file to classes12.jar and move to the tomcat\common\lib directory. -Original Message- From: Phillip Qin [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 15, 2005 6:39 AM To: 'Tomcat Users List' Subject: RE: Cannot create JDBC driver of class '' for connect URL 'null' Post your jdbc url. -Original Message- From: g k [mailto:[EMAIL PROTECTED] Sent: February 15, 2005 6:44 AM To: tomcat-user@jakarta.apache.org Subject: Cannot create JDBC driver of class '' for connect URL 'null' Hi I have added Oracle resource params to the server.xml file and reference parameters to oracle in the web.xml When i startup tomcat - i get the following error: 11:20:38,385 [ConnectDB.java] [ConnectDB] [getConnectionPoolForOracle:101] - ERR OR - failed to get the connection: org.apache.commons.dbcp.SQLNestedException: C annot create JDBC driver of class '' for connect URL 'null', cause: No suitable driver 11:20:38,385 [SendMessageAction.java] [SendMessageAction] [Send:227] - DEBUG - C onnection after: null java.net.MalformedURLException: no protocol: at java.net.URL.init(URL.java:537) at java.net.URL.init(URL.java:434) at java.net.URL.init(URL.java:383) at com.csc.nhs.web.legacypas.struts.action.SendMessageAction.Send(SendMe ssageAction.java:231) any thoughts? regards Gurpreet - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:4211e08b66521973816187! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat configuration
If I want to host several different web apps in Tomcat, each having it's own user database using FORM authentication, how would I configure Tomcat? I tried putting the jdbcRealm in the /engine/hostname/nnn.xml file, yet when I try to log into one of my pages I get the error: Feb 14, 2005 4:20:39 PM org.apache.catalina.realm.JAASRealm authenticate SEVERE: Unexpected error java.lang.SecurityException: Unable to locate a login configuration Can anyone please help me with this? I've spent about a week on it already. Please note: If I put the JdbcRealm in the engine or host element of server.xml, everything works fine - except then I can't have a 1-to-1 mapping between webapp and login database. Thanks, Curtis - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JDBC Named Pipes to SQL Server
What is the recommended way to connect to a Microsoft SQL Server through JDBC? TCP/IP, Named Pipes...? And any recommendations an which driver to use? Thanks Charles Killmer
RE : Tomcat configuration
Hi, Do you use JdbcRealm or JaasRealm ? If you use JAASRealm you have to setup your jaas config file (for example using java.security.auth.login.config system property. This file specifies application by application your login module. In your case, it seems that you have to declare Realm in your application context. -Message d'origine- De : Curtis Nelson [mailto:[EMAIL PROTECTED] Envoyé : mardi 15 février 2005 16:41 À : tomcat-user@jakarta.apache.org Objet : Tomcat configuration If I want to host several different web apps in Tomcat, each having it's own user database using FORM authentication, how would I configure Tomcat? I tried putting the jdbcRealm in the /engine/hostname/nnn.xml file, yet when I try to log into one of my pages I get the error: Feb 14, 2005 4:20:39 PM org.apache.catalina.realm.JAASRealm authenticate SEVERE: Unexpected error java.lang.SecurityException: Unable to locate a login configuration Can anyone please help me with this? I've spent about a week on it already. Please note: If I put the JdbcRealm in the engine or host element of server.xml, everything works fine - except then I can't have a 1-to-1 mapping between webapp and login database. Thanks, Curtis - 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]
HttpServletRequest.getInputStream(), InputStream.read() doesn't work (it blocks) if tomcat uses apache as frontend. Any idea?
Hi, 1) I am trying to send some data (content of a file)from an standalone command line application to the servlet over the (http) stream. It works well. 2) When I am using apache as frontend to the tomcat, servlet blocks. It blocks when I try to read input stream: public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { BufferedReader inputFromClient = null; PrintWriter out= null; BufferedWriter impFileWriter = null; // BufferedReader inTest = null; try { // get an input stream from the applet inputFromClient = new BufferedReader(new InputStreamReader(request.getInputStream())); show(Connected); // writng initialization impFileWriter = new BufferedWriter(new FileWriter(importFile)); // read the serialized student data from applet show(Importing data...); String str; while ((str = inputFromClient.readLine()) != null) { show(str); impFileWriter.write(str); impFileWriter.flush(); } 3) InputStreamReader.ready() returns false Thoughts? Thnx, Bojan -- Open WebMail Project (http://openwebmail.org) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: RE : Tomcat configuration
Thanks for the reply. I'm not using (to the best of my knowledge) JAASRealm. I just want to use JdbcRealm, but define it at the context level. Curtis [EMAIL PROTECTED] 02/15/05 09:08AM Hi, Do you use JdbcRealm or JaasRealm ? If you use JAASRealm you have to setup your jaas config file (for example using java.security.auth.login.config system property. This file specifies application by application your login module. In your case, it seems that you have to declare Realm in your application context. -Message d'origine- De : Curtis Nelson [mailto:[EMAIL PROTECTED] Envoyé : mardi 15 février 2005 16:41 À : tomcat-user@jakarta.apache.org Objet : Tomcat configuration If I want to host several different web apps in Tomcat, each having it's own user database using FORM authentication, how would I configure Tomcat? I tried putting the jdbcRealm in the /engine/hostname/nnn.xml file, yet when I try to log into one of my pages I get the error: Feb 14, 2005 4:20:39 PM org.apache.catalina.realm.JAASRealm authenticate SEVERE: Unexpected error java.lang.SecurityException: Unable to locate a login configuration Can anyone please help me with this? I've spent about a week on it already. Please note: If I put the JdbcRealm in the engine or host element of server.xml, everything works fine - except then I can't have a 1-to-1 mapping between webapp and login database. Thanks, Curtis - 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: RE : RE : RE : HTTP Status 408 Error when i login
No I don't have any proxy! Everything is runing on my local machine. I'm working with Eclipse, using Tomcat 5.0.28 and JAAS. I'm gonna try to track the http request and responde. Thanks one more time! LERBSCHER Jean-Pierre wrote: Do you have proxy in front of Tomcat ? What's your system configuration ? Enable trace on tomcat, and track http request and response. You can use org.apache.soap.util.net.TcpTunnelGui (it's a little http proxy packaged with axis (?) - I don't remember exactly) to check http request and response. Settings : set CLASSPATH=%CLASPATH%;lib/soap.jar java org.apache.soap.util.net.TcpTunnelGui 8080 localhost 8082 where 8080 utility listen port localhost 8082 your tomcat server address and port -Message d'origine- De : Bruno Gonçalves [mailto:[EMAIL PROTECTED] Envoyé : mardi 15 février 2005 13:59 À : Tomcat Users List Objet : Re: RE : RE : HTTP Status 408 Error when i login Humm... I see. So what can I do on Tomcat to resolve this problem? There's any config file? This problem it's very strange!! Thanks Pierre! LERBSCHER Jean-Pierre wrote: With session-timeout element you specify a session timeout not a request timeout. See http://www.checkupdown.com/status/E408.html for explanation! -Message d'origine- De : Bruno Gonçalves [mailto:[EMAIL PROTECTED] Envoyé : mardi 15 février 2005 13:36 À : Tomcat Users List Objet : Re: RE : HTTP Status 408 Error when i login Yes, I know! But I don't understand where is the problem :( In the web.xml the value of timeout is 30minutes: !-- session timeout -- session-config session-timeout30/session-timeout /session-config I do a quick login, not more than 1minute!!! :( I need some help with this... Thanks.. LERBSCHER Jean-Pierre wrote: Hi, It's a Request timeout. -Message d'origine- De : Bruno Gonçalves [mailto:[EMAIL PROTECTED] Envoyé : mardi 15 février 2005 12:46 À : tomcat-user@jakarta.apache.org Objet : HTTP Status 408 Error when i login I there! I'm using JAAS on Tomcat 5.0.28 to make a authentication process for my web aplication. When I submit a wrong username/password the server redirects to an error page, that's correct, but when I submit the correct username/password I got a HTTP Status 408 Error! I don't know what's the problem :( Any help? Thanks... --- Bruno V. Gonçalves - 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] - 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]
Security Constraint
I have a new servlet which I've created - whenever you try to access this servlet, I get the security certificate dialog box (do you want to accept this certificate). However, this application has no security constraint in its web.xml file - I don't know why it's trying to serve up a certificate. In addition, you have to click 'yes' on the security dialog three times, as if it's trying to serve the certificate three times in a row. And, in the end, it doesn't take the user to a secur connection - it just takes them to the http: connection I wanted to get to in the first place. I'm using Tomcat 5.5 - here's a copy of my very simple web.xml - if anyone has any ideas, I'd appreciate it. I don't want to make this a secure site and take on the added overhead just because I can't stop the stupid certificate from popping up. ?xml version=1.0 encoding=UTF-8? web-app version=2.4 xmlns=http://java.sun.com/xml/ns/j2ee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; servlet servlet-nameACHLogin/servlet-name servlet-classcom.gcc.achpayments.ACHLogin/servlet-class /servlet servlet servlet-nameAddACHPayment/servlet-name servlet-classcom.gcc.achpayments.AddACHPayment/servlet-class /servlet servlet-mapping servlet-nameACHLogin/servlet-name url-pattern/ACHLogin/url-pattern /servlet-mapping servlet-mapping servlet-nameAddACHPayment/servlet-name url-pattern/AddACHPayment/url-pattern /servlet-mapping session-config session-timeout30/session-timeout /session-config welcome-file-list welcome-file login.jsp /welcome-file welcome-file index.jsp /welcome-file welcome-file index.html /welcome-file welcome-file index.htm /welcome-file /welcome-file-list /web-app -- Xeth Waxman [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Cannot create JDBC driver of class '' for connect URL 'null'
Hi ojdbc14.jar - is in the tomcat/common/lib directory post jdc url? - not to clear on what this is? do i need to create a context.xml? regards Gurpreet From: David Short [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: 'Tomcat Users List' tomcat-user@jakarta.apache.org Subject: RE: Cannot create JDBC driver of class '' for connect URL 'null' Date: Tue, 15 Feb 2005 07:18:58 -0800 Rename the Oracle classes12.zip file to classes12.jar and move to the tomcat\common\lib directory. -Original Message- From: Phillip Qin [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 15, 2005 6:39 AM To: 'Tomcat Users List' Subject: RE: Cannot create JDBC driver of class '' for connect URL 'null' Post your jdbc url. -Original Message- From: g k [mailto:[EMAIL PROTECTED] Sent: February 15, 2005 6:44 AM To: tomcat-user@jakarta.apache.org Subject: Cannot create JDBC driver of class '' for connect URL 'null' Hi I have added Oracle resource params to the server.xml file and reference parameters to oracle in the web.xml When i startup tomcat - i get the following error: 11:20:38,385 [ConnectDB.java] [ConnectDB] [getConnectionPoolForOracle:101] - ERR OR - failed to get the connection: org.apache.commons.dbcp.SQLNestedException: C annot create JDBC driver of class '' for connect URL 'null', cause: No suitable driver 11:20:38,385 [SendMessageAction.java] [SendMessageAction] [Send:227] - DEBUG - C onnection after: null java.net.MalformedURLException: no protocol: at java.net.URL.init(URL.java:537) at java.net.URL.init(URL.java:434) at java.net.URL.init(URL.java:383) at com.csc.nhs.web.legacypas.struts.action.SendMessageAction.Send(SendMe ssageAction.java:231) any thoughts? regards Gurpreet - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:4211e08b66521973816187! - 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: 5.0.28 catalina.properties file
From: Benson Margulies [mailto:[EMAIL PROTECTED] Subject: RE: 5.0.28 catalina.properties file What didn't work looked like common.loader=${catalina.home}/common/classes,${catalina.home} /common/endorsed/*.jar,{catalina.home}/common/lib/*.jar,c:/esri/lib/btnm.jar Grasping at straws here - could there be a case sensitivity issue with the spelling of btnm.jar? (I know it's Windows, but not all Java code respects the case insensitivity of that platform.) - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Cannot create JDBC driver of class '' for connect URL 'null'
In your context.xml or server.xml, you would define your jdbc resource. Find out that url and post it here. Jdbc driver and location are correct. -Original Message- From: g k [mailto:[EMAIL PROTECTED] Sent: February 15, 2005 11:25 AM To: [EMAIL PROTECTED]; tomcat-user@jakarta.apache.org Subject: RE: Cannot create JDBC driver of class '' for connect URL 'null' Hi ojdbc14.jar - is in the tomcat/common/lib directory post jdc url? - not to clear on what this is? do i need to create a context.xml? regards Gurpreet From: David Short [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: 'Tomcat Users List' tomcat-user@jakarta.apache.org Subject: RE: Cannot create JDBC driver of class '' for connect URL 'null' Date: Tue, 15 Feb 2005 07:18:58 -0800 Rename the Oracle classes12.zip file to classes12.jar and move to the tomcat\common\lib directory. -Original Message- From: Phillip Qin [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 15, 2005 6:39 AM To: 'Tomcat Users List' Subject: RE: Cannot create JDBC driver of class '' for connect URL 'null' Post your jdbc url. -Original Message- From: g k [mailto:[EMAIL PROTECTED] Sent: February 15, 2005 6:44 AM To: tomcat-user@jakarta.apache.org Subject: Cannot create JDBC driver of class '' for connect URL 'null' Hi I have added Oracle resource params to the server.xml file and reference parameters to oracle in the web.xml When i startup tomcat - i get the following error: 11:20:38,385 [ConnectDB.java] [ConnectDB] [getConnectionPoolForOracle:101] - ERR OR - failed to get the connection: org.apache.commons.dbcp.SQLNestedException: C annot create JDBC driver of class '' for connect URL 'null', cause: No suitable driver 11:20:38,385 [SendMessageAction.java] [SendMessageAction] [Send:227] - DEBUG - C onnection after: null java.net.MalformedURLException: no protocol: at java.net.URL.init(URL.java:537) at java.net.URL.init(URL.java:434) at java.net.URL.init(URL.java:383) at com.csc.nhs.web.legacypas.struts.action.SendMessageAction.Send(SendMe ssageAction.java:231) any thoughts? regards Gurpreet - 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] !DSPAM:4212229798071307422972!
RE : RE : Tomcat configuration
If I look at this log, it seems that you are using JAAS Realm ! Feb 14, 2005 4:20:39 PM org.apache.catalina.realm.JAASRealm authenticate SEVERE: Unexpected error java.lang.SecurityException: Unable to locate a login configuration -Message d'origine- De : Curtis Nelson [mailto:[EMAIL PROTECTED] Envoyé : mardi 15 février 2005 17:15 À : tomcat-user@jakarta.apache.org Objet : Re: RE : Tomcat configuration Thanks for the reply. I'm not using (to the best of my knowledge) JAASRealm. I just want to use JdbcRealm, but define it at the context level. Curtis [EMAIL PROTECTED] 02/15/05 09:08AM Hi, Do you use JdbcRealm or JaasRealm ? If you use JAASRealm you have to setup your jaas config file (for example using java.security.auth.login.config system property. This file specifies application by application your login module. In your case, it seems that you have to declare Realm in your application context. -Message d'origine- De : Curtis Nelson [mailto:[EMAIL PROTECTED] Envoyé : mardi 15 février 2005 16:41 À : tomcat-user@jakarta.apache.org Objet : Tomcat configuration If I want to host several different web apps in Tomcat, each having it's own user database using FORM authentication, how would I configure Tomcat? I tried putting the jdbcRealm in the /engine/hostname/nnn.xml file, yet when I try to log into one of my pages I get the error: Feb 14, 2005 4:20:39 PM org.apache.catalina.realm.JAASRealm authenticate SEVERE: Unexpected error java.lang.SecurityException: Unable to locate a login configuration Can anyone please help me with this? I've spent about a week on it already. Please note: If I put the JdbcRealm in the engine or host element of server.xml, everything works fine - except then I can't have a 1-to-1 mapping between webapp and login database. Thanks, Curtis - 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: RE : RE : Tomcat configuration
How can I configure Tomcat to not use JAASRealm? Like I said earlier, if my JDBCRealm is associated with the engine or host element of server.xml, the login forms work. It's only when I move it into it's own .xml file or add it as part of the context element that I run into problems. Does doing that automatically require JAASRealm? Thanks [EMAIL PROTECTED] 02/15/05 09:39AM If I look at this log, it seems that you are using JAAS Realm ! Feb 14, 2005 4:20:39 PM org.apache.catalina.realm.JAASRealm authenticate SEVERE: Unexpected error java.lang.SecurityException: Unable to locate a login configuration -Message d'origine- De : Curtis Nelson [mailto:[EMAIL PROTECTED] Envoyé : mardi 15 février 2005 17:15 À : tomcat-user@jakarta.apache.org Objet : Re: RE : Tomcat configuration Thanks for the reply. I'm not using (to the best of my knowledge) JAASRealm. I just want to use JdbcRealm, but define it at the context level. Curtis [EMAIL PROTECTED] 02/15/05 09:08AM Hi, Do you use JdbcRealm or JaasRealm ? If you use JAASRealm you have to setup your jaas config file (for example using java.security.auth.login.config system property. This file specifies application by application your login module. In your case, it seems that you have to declare Realm in your application context. -Message d'origine- De : Curtis Nelson [mailto:[EMAIL PROTECTED] Envoyé : mardi 15 février 2005 16:41 À : tomcat-user@jakarta.apache.org Objet : Tomcat configuration If I want to host several different web apps in Tomcat, each having it's own user database using FORM authentication, how would I configure Tomcat? I tried putting the jdbcRealm in the /engine/hostname/nnn.xml file, yet when I try to log into one of my pages I get the error: Feb 14, 2005 4:20:39 PM org.apache.catalina.realm.JAASRealm authenticate SEVERE: Unexpected error java.lang.SecurityException: Unable to locate a login configuration Can anyone please help me with this? I've spent about a week on it already. Please note: If I put the JdbcRealm in the engine or host element of server.xml, everything works fine - except then I can't have a 1-to-1 mapping between webapp and login database. Thanks, Curtis - 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 : RE : RE : Tomcat configuration
JAASRealm is not a default! Could you send us your server.xml? -Message d'origine- De : Curtis Nelson [mailto:[EMAIL PROTECTED] Envoyé : mardi 15 février 2005 17:43 À : tomcat-user@jakarta.apache.org Objet : Re: RE : RE : Tomcat configuration How can I configure Tomcat to not use JAASRealm? Like I said earlier, if my JDBCRealm is associated with the engine or host element of server.xml, the login forms work. It's only when I move it into it's own .xml file or add it as part of the context element that I run into problems. Does doing that automatically require JAASRealm? Thanks [EMAIL PROTECTED] 02/15/05 09:39AM If I look at this log, it seems that you are using JAAS Realm ! Feb 14, 2005 4:20:39 PM org.apache.catalina.realm.JAASRealm authenticate SEVERE: Unexpected error java.lang.SecurityException: Unable to locate a login configuration -Message d'origine- De : Curtis Nelson [mailto:[EMAIL PROTECTED] Envoyé : mardi 15 février 2005 17:15 À : tomcat-user@jakarta.apache.org Objet : Re: RE : Tomcat configuration Thanks for the reply. I'm not using (to the best of my knowledge) JAASRealm. I just want to use JdbcRealm, but define it at the context level. Curtis [EMAIL PROTECTED] 02/15/05 09:08AM Hi, Do you use JdbcRealm or JaasRealm ? If you use JAASRealm you have to setup your jaas config file (for example using java.security.auth.login.config system property. This file specifies application by application your login module. In your case, it seems that you have to declare Realm in your application context. -Message d'origine- De : Curtis Nelson [mailto:[EMAIL PROTECTED] Envoyé : mardi 15 février 2005 16:41 À : tomcat-user@jakarta.apache.org Objet : Tomcat configuration If I want to host several different web apps in Tomcat, each having it's own user database using FORM authentication, how would I configure Tomcat? I tried putting the jdbcRealm in the /engine/hostname/nnn.xml file, yet when I try to log into one of my pages I get the error: Feb 14, 2005 4:20:39 PM org.apache.catalina.realm.JAASRealm authenticate SEVERE: Unexpected error java.lang.SecurityException: Unable to locate a login configuration Can anyone please help me with this? I've spent about a week on it already. Please note: If I put the JdbcRealm in the engine or host element of server.xml, everything works fine - except then I can't have a 1-to-1 mapping between webapp and login database. Thanks, Curtis - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: RE : RE : RE : Tomcat configuration
With pleasure. Server port=8005 shutdown=SHUTDOWN Listener className=org.apache.catalina.mbeans.ServerLifecycleListener / Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener / GlobalNamingResources Environment name=simpleValue type=java.lang.Integer value=30/ Resource name=UserDatabase auth=Container type=org.apache.catalina.UserDatabase description=User database that can be updated and saved factory=org.apache.catalina.users.MemoryUserDatabaseFactory pathname=conf/tomcat-users.xml / /GlobalNamingResources Service name=Catalina Connector port=8080 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false redirectPort=8443 acceptCount=100 connectionTimeout=2 disableUploadTimeout=true / Connector port=8009 enableLookups=false redirectPort=8443 protocol=AJP/1.3 / !-- Define the top level container in our container hierarchy -- Engine name=Catalina defaultHost=localhost Host name=localhost appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false /Host /Engine /Service /Server Thanks for you help. [EMAIL PROTECTED] 02/15/05 09:51AM JAASRealm is not a default! Could you send us your server.xml? -Message d'origine- De : Curtis Nelson [mailto:[EMAIL PROTECTED] Envoyé : mardi 15 février 2005 17:43 À : tomcat-user@jakarta.apache.org Objet : Re: RE : RE : Tomcat configuration How can I configure Tomcat to not use JAASRealm? Like I said earlier, if my JDBCRealm is associated with the engine or host element of server.xml, the login forms work. It's only when I move it into it's own .xml file or add it as part of the context element that I run into problems. Does doing that automatically require JAASRealm? Thanks [EMAIL PROTECTED] 02/15/05 09:39AM If I look at this log, it seems that you are using JAAS Realm ! Feb 14, 2005 4:20:39 PM org.apache.catalina.realm.JAASRealm authenticate SEVERE: Unexpected error java.lang.SecurityException: Unable to locate a login configuration -Message d'origine- De : Curtis Nelson [mailto:[EMAIL PROTECTED] Envoyé : mardi 15 février 2005 17:15 À : tomcat-user@jakarta.apache.org Objet : Re: RE : Tomcat configuration Thanks for the reply. I'm not using (to the best of my knowledge) JAASRealm. I just want to use JdbcRealm, but define it at the context level. Curtis [EMAIL PROTECTED] 02/15/05 09:08AM Hi, Do you use JdbcRealm or JaasRealm ? If you use JAASRealm you have to setup your jaas config file (for example using java.security.auth.login.config system property. This file specifies application by application your login module. In your case, it seems that you have to declare Realm in your application context. -Message d'origine- De : Curtis Nelson [mailto:[EMAIL PROTECTED] Envoyé : mardi 15 février 2005 16:41 À : tomcat-user@jakarta.apache.org Objet : Tomcat configuration If I want to host several different web apps in Tomcat, each having it's own user database using FORM authentication, how would I configure Tomcat? I tried putting the jdbcRealm in the /engine/hostname/nnn.xml file, yet when I try to log into one of my pages I get the error: Feb 14, 2005 4:20:39 PM org.apache.catalina.realm.JAASRealm authenticate SEVERE: Unexpected error java.lang.SecurityException: Unable to locate a login configuration Can anyone please help me with this? I've spent about a week on it already. Please note: If I put the JdbcRealm in the engine or host element of server.xml, everything works fine - except then I can't have a 1-to-1 mapping between webapp and login database. Thanks, Curtis - 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] - 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]
GC Behavior
Could someone with a good understanding of gc in Tomcat 5.0.30 explain what the normal behavior is. It appears that dead sessions are not collected until the allocated heap is totally used up, and then it frees only 20 to 30MB. By my rough estimate, there should be at least 128MB of expired sessions in there using Xmx512m. Gary - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: RE : RE : RE : HTTP Status 408 Error when i login
If I run java org.apache.soap.util.net.TcpTunnelGui 8080 localhost 8082 I get Exception in thread main java.lang.NoClassDefFoundError: org/apache/soap/util/net/TcpTunnelGui humm.. but i think my CLASSPATH is correct! LERBSCHER Jean-Pierre wrote: Do you have proxy in front of Tomcat ? What's your system configuration ? Enable trace on tomcat, and track http request and response. You can use org.apache.soap.util.net.TcpTunnelGui (it's a little http proxy packaged with axis (?) - I don't remember exactly) to check http request and response. Settings : set CLASSPATH=%CLASPATH%;lib/soap.jar java org.apache.soap.util.net.TcpTunnelGui 8080 localhost 8082 where 8080 utility listen port localhost 8082 your tomcat server address and port -Message d'origine- De : Bruno Gonçalves [mailto:[EMAIL PROTECTED] Envoyé : mardi 15 février 2005 13:59 À : Tomcat Users List Objet : Re: RE : RE : HTTP Status 408 Error when i login Humm... I see. So what can I do on Tomcat to resolve this problem? There's any config file? This problem it's very strange!! Thanks Pierre! LERBSCHER Jean-Pierre wrote: With session-timeout element you specify a session timeout not a request timeout. See http://www.checkupdown.com/status/E408.html for explanation! -Message d'origine- De : Bruno Gonçalves [mailto:[EMAIL PROTECTED] Envoyé : mardi 15 février 2005 13:36 À : Tomcat Users List Objet : Re: RE : HTTP Status 408 Error when i login Yes, I know! But I don't understand where is the problem :( In the web.xml the value of timeout is 30minutes: !-- session timeout -- session-config session-timeout30/session-timeout /session-config I do a quick login, not more than 1minute!!! :( I need some help with this... Thanks.. LERBSCHER Jean-Pierre wrote: Hi, It's a Request timeout. -Message d'origine- De : Bruno Gonçalves [mailto:[EMAIL PROTECTED] Envoyé : mardi 15 février 2005 12:46 À : tomcat-user@jakarta.apache.org Objet : HTTP Status 408 Error when i login I there! I'm using JAAS on Tomcat 5.0.28 to make a authentication process for my web aplication. When I submit a wrong username/password the server redirects to an error page, that's correct, but when I submit the correct username/password I got a HTTP Status 408 Error! I don't know what's the problem :( Any help? Thanks... --- Bruno V. Gonçalves - 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] - 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]
Using tomcat session
Hi, When two clients are connected to my server, is possible to an third client use the sessions of the other two users? If it is possible, how I catch the sessions? Thanks! -- Rodrigo de Avila [EMAIL PROTECTED] http://www.avila.eti.br - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE : RE : RE : RE : Tomcat configuration
There is no realm describe into it! Have you declared your realm in your META-INF/context.xml directory of your WAR file? Could you send us your context.xml file? -Message d'origine- De : Curtis Nelson [mailto:[EMAIL PROTECTED] Envoyé : mardi 15 février 2005 18:03 À : tomcat-user@jakarta.apache.org Objet : Re: RE : RE : RE : Tomcat configuration With pleasure. Server port=8005 shutdown=SHUTDOWN Listener className=org.apache.catalina.mbeans.ServerLifecycleListener / Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener / GlobalNamingResources Environment name=simpleValue type=java.lang.Integer value=30/ Resource name=UserDatabase auth=Container type=org.apache.catalina.UserDatabase description=User database that can be updated and saved factory=org.apache.catalina.users.MemoryUserDatabaseFactory pathname=conf/tomcat-users.xml / /GlobalNamingResources Service name=Catalina Connector port=8080 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false redirectPort=8443 acceptCount=100 connectionTimeout=2 disableUploadTimeout=true / Connector port=8009 enableLookups=false redirectPort=8443 protocol=AJP/1.3 / !-- Define the top level container in our container hierarchy -- Engine name=Catalina defaultHost=localhost Host name=localhost appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false /Host /Engine /Service /Server Thanks for you help. [EMAIL PROTECTED] 02/15/05 09:51AM JAASRealm is not a default! Could you send us your server.xml? -Message d'origine- De : Curtis Nelson [mailto:[EMAIL PROTECTED] Envoyé : mardi 15 février 2005 17:43 À : tomcat-user@jakarta.apache.org Objet : Re: RE : RE : Tomcat configuration How can I configure Tomcat to not use JAASRealm? Like I said earlier, if my JDBCRealm is associated with the engine or host element of server.xml, the login forms work. It's only when I move it into it's own .xml file or add it as part of the context element that I run into problems. Does doing that automatically require JAASRealm? Thanks [EMAIL PROTECTED] 02/15/05 09:39AM If I look at this log, it seems that you are using JAAS Realm ! Feb 14, 2005 4:20:39 PM org.apache.catalina.realm.JAASRealm authenticate SEVERE: Unexpected error java.lang.SecurityException: Unable to locate a login configuration -Message d'origine- De : Curtis Nelson [mailto:[EMAIL PROTECTED] Envoyé : mardi 15 février 2005 17:15 À : tomcat-user@jakarta.apache.org Objet : Re: RE : Tomcat configuration Thanks for the reply. I'm not using (to the best of my knowledge) JAASRealm. I just want to use JdbcRealm, but define it at the context level. Curtis [EMAIL PROTECTED] 02/15/05 09:08AM Hi, Do you use JdbcRealm or JaasRealm ? If you use JAASRealm you have to setup your jaas config file (for example using java.security.auth.login.config system property. This file specifies application by application your login module. In your case, it seems that you have to declare Realm in your application context. -Message d'origine- De : Curtis Nelson [mailto:[EMAIL PROTECTED] Envoyé : mardi 15 février 2005 16:41 À : tomcat-user@jakarta.apache.org Objet : Tomcat configuration If I want to host several different web apps in Tomcat, each having it's own user database using FORM authentication, how would I configure Tomcat? I tried putting the jdbcRealm in the /engine/hostname/nnn.xml file, yet when I try to log into one of my pages I get the error: Feb 14, 2005 4:20:39 PM org.apache.catalina.realm.JAASRealm authenticate SEVERE: Unexpected error java.lang.SecurityException: Unable to locate a login configuration Can anyone please help me with this? I've spent about a week on it already. Please note: If I put the JdbcRealm in the engine or host element of server.xml, everything works fine - except then I can't have a 1-to-1 mapping between webapp and login database. Thanks, Curtis - 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 : RE : RE : RE : HTTP Status 408 Error when i login
set CLASSPATH=%CLASSPATH%;your library path/soap.jar -Message d'origine- De : Bruno Gonçalves [mailto:[EMAIL PROTECTED] Envoyé : mardi 15 février 2005 18:03 À : Tomcat Users List Objet : Re: RE : RE : RE : HTTP Status 408 Error when i login If I run java org.apache.soap.util.net.TcpTunnelGui 8080 localhost 8082 I get Exception in thread main java.lang.NoClassDefFoundError: org/apache/soap/util/net/TcpTunnelGui humm.. but i think my CLASSPATH is correct! LERBSCHER Jean-Pierre wrote: Do you have proxy in front of Tomcat ? What's your system configuration ? Enable trace on tomcat, and track http request and response. You can use org.apache.soap.util.net.TcpTunnelGui (it's a little http proxy packaged with axis (?) - I don't remember exactly) to check http request and response. Settings : set CLASSPATH=%CLASPATH%;lib/soap.jar java org.apache.soap.util.net.TcpTunnelGui 8080 localhost 8082 where 8080 utility listen port localhost 8082 your tomcat server address and port -Message d'origine- De : Bruno Gonçalves [mailto:[EMAIL PROTECTED] Envoyé : mardi 15 février 2005 13:59 À : Tomcat Users List Objet : Re: RE : RE : HTTP Status 408 Error when i login Humm... I see. So what can I do on Tomcat to resolve this problem? There's any config file? This problem it's very strange!! Thanks Pierre! LERBSCHER Jean-Pierre wrote: With session-timeout element you specify a session timeout not a request timeout. See http://www.checkupdown.com/status/E408.html for explanation! -Message d'origine- De : Bruno Gonçalves [mailto:[EMAIL PROTECTED] Envoyé : mardi 15 février 2005 13:36 À : Tomcat Users List Objet : Re: RE : HTTP Status 408 Error when i login Yes, I know! But I don't understand where is the problem :( In the web.xml the value of timeout is 30minutes: !-- session timeout -- session-config session-timeout30/session-timeout /session-config I do a quick login, not more than 1minute!!! :( I need some help with this... Thanks.. LERBSCHER Jean-Pierre wrote: Hi, It's a Request timeout. -Message d'origine- De : Bruno Gonçalves [mailto:[EMAIL PROTECTED] Envoyé : mardi 15 février 2005 12:46 À : tomcat-user@jakarta.apache.org Objet : HTTP Status 408 Error when i login I there! I'm using JAAS on Tomcat 5.0.28 to make a authentication process for my web aplication. When I submit a wrong username/password the server redirects to an error page, that's correct, but when I submit the correct username/password I got a HTTP Status 408 Error! I don't know what's the problem :( Any help? Thanks... --- Bruno V. Gonçalves - 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] - 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]
[TOMCAT 5.5.7][WIN 2K] Help with admin package installation
Hi there, I just installed Tomcat 5.5.7 and discovered that admin package is no longer installed by default. So, I downloaded it and copied the files. But when trying to access to the admin page tomcat is still saying that Tomcat's administration web application is no longer installed by default. Download and install the admin package to use it.. Any ideas? -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 265.8.8 - Release Date: 14/02/2005 -- Email.it, the professional e-mail, gratis per te: http://www.email.it/f Sponsor: Biscotti perfetti? Metti la pasta dentro allo Sparabiscotti e...click click... biscotti pronti per essere infornati! Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=2745d=15-2 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: RE : RE : RE : RE : Tomcat configuration
According to the tomcat docs, the preferred method of describing a context realm is to place it in it's own xml file. Here's what I have: !-- Context docBase=${catalina.home}/server/webapps/manager privileged=true antiResourceLocking=false antiJARLocking=false -- Context reloadable=true path=/ldsecure docbase=${catalina.home}/server/webapps/ldsecure Realm className=org.apache.catalina.realm.JDBCRealm driverName=com.microsoft.jdbc.sqlserver.SQLServerDriver connectionURL=jdbc:microsoft:sqlserver://LDSERVER:1433;databasename=ldbugtracker;selectmethod=cursor connectionName=abc connectionPassword=abc userTable=LDUsers userNameCol=username userCredCol=password userRoleTable=LDUserRoles roleNameCol=role debug=99/ /Context If I place this context statement in the server.xml file, under the described host, I get the same problem. Curtis [EMAIL PROTECTED] 02/15/05 10:09AM There is no realm describe into it! Have you declared your realm in your META-INF/context.xml directory of your WAR file? Could you send us your context.xml file? -Message d'origine- De : Curtis Nelson [mailto:[EMAIL PROTECTED] Envoyé : mardi 15 février 2005 18:03 À : tomcat-user@jakarta.apache.org Objet : Re: RE : RE : RE : Tomcat configuration With pleasure. Server port=8005 shutdown=SHUTDOWN Listener className=org.apache.catalina.mbeans.ServerLifecycleListener / Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener / GlobalNamingResources Environment name=simpleValue type=java.lang.Integer value=30/ Resource name=UserDatabase auth=Container type=org.apache.catalina.UserDatabase description=User database that can be updated and saved factory=org.apache.catalina.users.MemoryUserDatabaseFactory pathname=conf/tomcat-users.xml / /GlobalNamingResources Service name=Catalina Connector port=8080 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false redirectPort=8443 acceptCount=100 connectionTimeout=2 disableUploadTimeout=true / Connector port=8009 enableLookups=false redirectPort=8443 protocol=AJP/1.3 / !-- Define the top level container in our container hierarchy -- Engine name=Catalina defaultHost=localhost Host name=localhost appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false /Host /Engine /Service /Server Thanks for you help. [EMAIL PROTECTED] 02/15/05 09:51AM JAASRealm is not a default! Could you send us your server.xml? -Message d'origine- De : Curtis Nelson [mailto:[EMAIL PROTECTED] Envoyé : mardi 15 février 2005 17:43 À : tomcat-user@jakarta.apache.org Objet : Re: RE : RE : Tomcat configuration How can I configure Tomcat to not use JAASRealm? Like I said earlier, if my JDBCRealm is associated with the engine or host element of server.xml, the login forms work. It's only when I move it into it's own .xml file or add it as part of the context element that I run into problems. Does doing that automatically require JAASRealm? Thanks [EMAIL PROTECTED] 02/15/05 09:39AM If I look at this log, it seems that you are using JAAS Realm ! Feb 14, 2005 4:20:39 PM org.apache.catalina.realm.JAASRealm authenticate SEVERE: Unexpected error java.lang.SecurityException: Unable to locate a login configuration -Message d'origine- De : Curtis Nelson [mailto:[EMAIL PROTECTED] Envoyé : mardi 15 février 2005 17:15 À : tomcat-user@jakarta.apache.org Objet : Re: RE : Tomcat configuration Thanks for the reply. I'm not using (to the best of my knowledge) JAASRealm. I just want to use JdbcRealm, but define it at the context level. Curtis [EMAIL PROTECTED] 02/15/05 09:08AM Hi, Do you use JdbcRealm or JaasRealm ? If you use JAASRealm you have to setup your jaas config file (for example using java.security.auth.login.config system property. This file specifies application by application your login module. In your case, it seems that you have to declare Realm in your application context. -Message d'origine- De : Curtis Nelson [mailto:[EMAIL PROTECTED] Envoyé : mardi 15 février 2005 16:41 À : tomcat-user@jakarta.apache.org Objet : Tomcat configuration If I want to host several different web apps in Tomcat, each having it's own user database using FORM authentication, how would I configure Tomcat? I tried putting the jdbcRealm in the /engine/hostname/nnn.xml file, yet when I try to log into one of my pages I get the error: Feb 14, 2005 4:20:39 PM org.apache.catalina.realm.JAASRealm authenticate SEVERE: Unexpected error java.lang.SecurityException: Unable to locate a login configuration Can anyone please help me with this? I've spent
SSL Under Tomcat 5.0
Hi, I'm new to Tomcat, so forgive my (temporary) naivite. I need to get my ecommerce web site (JSP) up and running, but when I add the connector for SSL to the server.xml Tomcat goes into an infinite loop with the following error message when the server attempts an SSL handshake (repeats ad-infinitum): No available certificate corresponds to the SSL cipher suites which are enabled. Here's the connector section from my server.xml: Connector className=org.apache.coyote.tomcat5.CoyoteConnector port=443 minProcessors=5 maxProcessors=75 enableLookups=true disableUploadTimeout=true acceptCount=100 debug=0 scheme=https secure=true clientAuth=false sslProtocol=TLS keystoreFile=conf/NCM.keystore keystorePass=changeit/ My SSL vendor has so far failed to identify the problem, and I am stumped also. Can anyone help? Jeffrey D. Gimprich Director of IT National Collectors Mint, Inc. 8 Slater Street Port Chester, NY 10573 ph: 914-935-9800 ext 236 fax: 914-935-3321 [EMAIL PROTECTED] http://www.nationalcollectorsmint.com
Round Robin Balancer Rule and class implementation
In case someone are interesting, I wrote a Round Robin Balance Rule for Balancer, use this rule with catalina-balancer.jar, you can implement a round robin style balance. You can get the code here: http://zebra-bsd.homeip.net/RoundRobinRule.java and the configuration example is already in java file best regard Jason - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Reload aplication
Hi, I would like to allow users reload especific aplications with a expecific users and roles. I dont whant to allow access direct to the manager page... (because user could be able to reload and undeploy any aplication!) There is any way to do this... (Sorry by this question but Im new in tomcat world!) Any recommended docs??? Best Regards, -- David da Guia Carvalho Animus Tecnologia da Informao Tel.: (21) 3525-8800 Fax: (21) 3525-8801 http://www.animus-ti.com.br
RE : RE : RE : RE : RE : Tomcat configuration
Check your configuration with http://jakarta.apache.org/tomcat/tomcat-5.0-doc/realm-howto.html#JDBCRealm (database configuration, driver, url access, user et password access, and log files). Try to setup Memory realm. Try to validate database url connection with simple java class. import java.sql.*; import your driver; class JDBCVersion { public static void main (String args []) throws SQLException { // Load the JDBC driver DriverManager.registerDriver(new com.microsoft.jdbc.sqlserver.SQLServerDriver()); // Something like this (probably) Connection conn = DriverManager.getConnection(jdbc:microsoft:sqlserver://LDSERVER:1433;databa sename=ldbugtracker, abc,abc); // Create Oracle DatabaseMetaData object DatabaseMetaData meta = conn.getMetaData (); // get driver info: System.out.println(JDBC driver version is + meta.getDriverVersion()); } } I assume that you have deployed your context configuration in : - META-INF/context.xml directory of your WAR file - $CATALINA_HOME/conf/[enginename]/[hostname]/ directory -Message d'origine- De : Curtis Nelson [mailto:[EMAIL PROTECTED] Envoyé : mardi 15 février 2005 18:14 À : tomcat-user@jakarta.apache.org Objet : Re: RE : RE : RE : RE : Tomcat configuration According to the tomcat docs, the preferred method of describing a context realm is to place it in it's own xml file. Here's what I have: !-- Context docBase=${catalina.home}/server/webapps/manager privileged=true antiResourceLocking=false antiJARLocking=false -- Context reloadable=true path=/ldsecure docbase=${catalina.home}/server/webapps/ldsecure Realm className=org.apache.catalina.realm.JDBCRealm driverName=com.microsoft.jdbc.sqlserver.SQLServerDriver connectionURL=jdbc:microsoft:sqlserver://LDSERVER:1433;databasename=ldbugtr acker;selectmethod=cursor connectionName=abc connectionPassword=abc userTable=LDUsers userNameCol=username userCredCol=password userRoleTable=LDUserRoles roleNameCol=role debug=99/ /Context If I place this context statement in the server.xml file, under the described host, I get the same problem. Curtis [EMAIL PROTECTED] 02/15/05 10:09AM There is no realm describe into it! Have you declared your realm in your META-INF/context.xml directory of your WAR file? Could you send us your context.xml file? -Message d'origine- De : Curtis Nelson [mailto:[EMAIL PROTECTED] Envoyé : mardi 15 février 2005 18:03 À : tomcat-user@jakarta.apache.org Objet : Re: RE : RE : RE : Tomcat configuration With pleasure. Server port=8005 shutdown=SHUTDOWN Listener className=org.apache.catalina.mbeans.ServerLifecycleListener / Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener / GlobalNamingResources Environment name=simpleValue type=java.lang.Integer value=30/ Resource name=UserDatabase auth=Container type=org.apache.catalina.UserDatabase description=User database that can be updated and saved factory=org.apache.catalina.users.MemoryUserDatabaseFactory pathname=conf/tomcat-users.xml / /GlobalNamingResources Service name=Catalina Connector port=8080 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false redirectPort=8443 acceptCount=100 connectionTimeout=2 disableUploadTimeout=true / Connector port=8009 enableLookups=false redirectPort=8443 protocol=AJP/1.3 / !-- Define the top level container in our container hierarchy -- Engine name=Catalina defaultHost=localhost Host name=localhost appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false /Host /Engine /Service /Server Thanks for you help. [EMAIL PROTECTED] 02/15/05 09:51AM JAASRealm is not a default! Could you send us your server.xml? -Message d'origine- De : Curtis Nelson [mailto:[EMAIL PROTECTED] Envoyé : mardi 15 février 2005 17:43 À : tomcat-user@jakarta.apache.org Objet : Re: RE : RE : Tomcat configuration How can I configure Tomcat to not use JAASRealm? Like I said earlier, if my JDBCRealm is associated with the engine or host element of server.xml, the login forms work. It's only when I move it into it's own .xml file or add it as part of the context element that I run into problems. Does doing that automatically require JAASRealm? Thanks [EMAIL PROTECTED] 02/15/05 09:39AM If I look at this log, it seems that you are using JAAS Realm ! Feb 14, 2005 4:20:39 PM org.apache.catalina.realm.JAASRealm authenticate SEVERE: Unexpected error java.lang.SecurityException: Unable to locate a login
RE: Cannot create JDBC driver of class '' for connect URL 'null'
Server.xml contains : Resource name=jdbc/myoracle auth=Container type=javax.sql.DataSource/ No context tag is in server.xml Context.xml file contains Context ResourceLink global=jdbc/myoracle name=jdbc/myoracle type=javax.sql.DataSource/ /Context From: Phillip Qin [EMAIL PROTECTED] Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org To: 'Tomcat Users List' tomcat-user@jakarta.apache.org Subject: RE: Cannot create JDBC driver of class '' for connect URL 'null' Date: Tue, 15 Feb 2005 11:33:35 -0500 In your context.xml or server.xml, you would define your jdbc resource. Find out that url and post it here. Jdbc driver and location are correct. -Original Message- From: g k [mailto:[EMAIL PROTECTED] Sent: February 15, 2005 11:25 AM To: [EMAIL PROTECTED]; tomcat-user@jakarta.apache.org Subject: RE: Cannot create JDBC driver of class '' for connect URL 'null' Hi ojdbc14.jar - is in the tomcat/common/lib directory post jdc url? - not to clear on what this is? do i need to create a context.xml? regards Gurpreet From: David Short [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: 'Tomcat Users List' tomcat-user@jakarta.apache.org Subject: RE: Cannot create JDBC driver of class '' for connect URL 'null' Date: Tue, 15 Feb 2005 07:18:58 -0800 Rename the Oracle classes12.zip file to classes12.jar and move to the tomcat\common\lib directory. -Original Message- From: Phillip Qin [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 15, 2005 6:39 AM To: 'Tomcat Users List' Subject: RE: Cannot create JDBC driver of class '' for connect URL 'null' Post your jdbc url. -Original Message- From: g k [mailto:[EMAIL PROTECTED] Sent: February 15, 2005 6:44 AM To: tomcat-user@jakarta.apache.org Subject: Cannot create JDBC driver of class '' for connect URL 'null' Hi I have added Oracle resource params to the server.xml file and reference parameters to oracle in the web.xml When i startup tomcat - i get the following error: 11:20:38,385 [ConnectDB.java] [ConnectDB] [getConnectionPoolForOracle:101] - ERR OR - failed to get the connection: org.apache.commons.dbcp.SQLNestedException: C annot create JDBC driver of class '' for connect URL 'null', cause: No suitable driver 11:20:38,385 [SendMessageAction.java] [SendMessageAction] [Send:227] - DEBUG - C onnection after: null java.net.MalformedURLException: no protocol: at java.net.URL.init(URL.java:537) at java.net.URL.init(URL.java:434) at java.net.URL.init(URL.java:383) at com.csc.nhs.web.legacypas.struts.action.SendMessageAction.Send(SendMe ssageAction.java:231) any thoughts? regards Gurpreet - 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] !DSPAM:4212229798071307422972! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: RE : RE : RE : RE : RE : Tomcat configuration
I know the database connection works, because if I include the realm as part of the engine or host, then I can login correctly. As far as reading the realm how-to, I've done that several times. The second .xml file I sent you is named ldsecure.xml (part of the ldsecure webapp), and I placed it in $CATALINA_HOME/conf/[enginename]/[hostname]/ldsecure.xml. I'm not creating a WAR file, just a directory structure. Any additional ideas? [EMAIL PROTECTED] 02/15/05 10:43AM Check your configuration with http://jakarta.apache.org/tomcat/tomcat-5.0-doc/realm-howto.html#JDBCRealm (database configuration, driver, url access, user et password access, and log files). Try to setup Memory realm. Try to validate database url connection with simple java class. import java.sql.*; import your driver; class JDBCVersion { public static void main (String args []) throws SQLException { // Load the JDBC driver DriverManager.registerDriver(new com.microsoft.jdbc.sqlserver.SQLServerDriver()); // Something like this (probably) Connection conn = DriverManager.getConnection(jdbc:microsoft:sqlserver://LDSERVER:1433;databa sename=ldbugtracker, abc,abc); // Create Oracle DatabaseMetaData object DatabaseMetaData meta = conn.getMetaData (); // get driver info: System.out.println(JDBC driver version is + meta.getDriverVersion()); } } I assume that you have deployed your context configuration in : - META-INF/context.xml directory of your WAR file - $CATALINA_HOME/conf/[enginename]/[hostname]/ directory -Message d'origine- De : Curtis Nelson [mailto:[EMAIL PROTECTED] Envoyé : mardi 15 février 2005 18:14 À : tomcat-user@jakarta.apache.org Objet : Re: RE : RE : RE : RE : Tomcat configuration According to the tomcat docs, the preferred method of describing a context realm is to place it in it's own xml file. Here's what I have: !-- Context docBase=${catalina.home}/server/webapps/manager privileged=true antiResourceLocking=false antiJARLocking=false -- Context reloadable=true path=/ldsecure docbase=${catalina.home}/server/webapps/ldsecure Realm className=org.apache.catalina.realm.JDBCRealm driverName=com.microsoft.jdbc.sqlserver.SQLServerDriver connectionURL=jdbc:microsoft:sqlserver://LDSERVER:1433;databasename=ldbugtr acker;selectmethod=cursor connectionName=abc connectionPassword=abc userTable=LDUsers userNameCol=username userCredCol=password userRoleTable=LDUserRoles roleNameCol=role debug=99/ /Context If I place this context statement in the server.xml file, under the described host, I get the same problem. Curtis [EMAIL PROTECTED] 02/15/05 10:09AM There is no realm describe into it! Have you declared your realm in your META-INF/context.xml directory of your WAR file? Could you send us your context.xml file? -Message d'origine- De : Curtis Nelson [mailto:[EMAIL PROTECTED] Envoyé : mardi 15 février 2005 18:03 À : tomcat-user@jakarta.apache.org Objet : Re: RE : RE : RE : Tomcat configuration With pleasure. Server port=8005 shutdown=SHUTDOWN Listener className=org.apache.catalina.mbeans.ServerLifecycleListener / Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener / GlobalNamingResources Environment name=simpleValue type=java.lang.Integer value=30/ Resource name=UserDatabase auth=Container type=org.apache.catalina.UserDatabase description=User database that can be updated and saved factory=org.apache.catalina.users.MemoryUserDatabaseFactory pathname=conf/tomcat-users.xml / /GlobalNamingResources Service name=Catalina Connector port=8080 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false redirectPort=8443 acceptCount=100 connectionTimeout=2 disableUploadTimeout=true / Connector port=8009 enableLookups=false redirectPort=8443 protocol=AJP/1.3 / !-- Define the top level container in our container hierarchy -- Engine name=Catalina defaultHost=localhost Host name=localhost appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false /Host /Engine /Service /Server Thanks for you help. [EMAIL PROTECTED] 02/15/05 09:51AM JAASRealm is not a default! Could you send us your server.xml? -Message d'origine- De : Curtis Nelson [mailto:[EMAIL PROTECTED] Envoyé : mardi 15 février 2005 17:43 À : tomcat-user@jakarta.apache.org Objet : Re: RE : RE : Tomcat configuration How can I configure Tomcat to not use JAASRealm? Like I said earlier, if my JDBCRealm is associated with the engine or host
Re: TC 5.0.28 AdminTool -- nodes under Tomcat Server throwing exceptions
Hi, You have not modified the admin webapp at all? This is a struts based application. If you click on that Service (Catalina) node, the mapping should be something like: admin/treeControlTest.do?tree=Catalina?type:Service,serviceName=Catalina The define tag is defined at struts-bean.tld as such: tagclassorg.apache.struts.taglib.bean.DefineTag/tagclass So figure out which jsp uses this tag and why it is null. aka_sergio --- Robert Hunt [EMAIL PROTECTED] wrote: !-- Jakarta-Tomcat DEVELOPMENT Server Configuration File -- Server port=21043 shutdown=shutdown debug=3 Listener className=org.apache.catalina.mbeans.ServerLifecycleListener debug=0/ Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener debug=0/ Service name=Catalina Connector port=20041 maxThreads=50 minSpareThreads=5 maxSpareThreads=20 enableLookups=false redirectPort=20051 acceptCount=10 debug=9 connectionTimeout=3 disableUploadTimeout=true / Engine name=Catalina defaultHost=localhost debug=0 Valve className=org.apache.catalina.valves.RequestDumperValve/ Logger className=org.apache.catalina.logger.FileLogger verbosity=3 directory=logs prefix=engine. suffix=.log timestamp=true / !-- Default virtual host -- Host name=localhost debug=9 appBase=\localhost\default unpackWARs=false autoDeploy=false deployOnStartup=false workDir=work/localhost xmlValidation=false xmlNamespaceAware=false Logger className=org.apache.catalina.logger.FileLogger verbosity=4 directory=logs/localhost prefix=filelog. suffix=.log timestamp=true/ Valve className=org.apache.catalina.valves.AccessLogValve directory=logs/localhost prefix=accesslog. suffix=.log resolveHosts=false pattern=%t|%a|%S|%s|%B|%r|/ Context path= docBase=\localhost\default reloadable=true debug=true swallowOutput=false workDir=work/default / Context path=/Admin docBase=\tomcat\5.0.28\server\webapps\admin debug=99 privileged=true Realm className=...realm.MyDBAuthRealm/ /Context /Host!-- localhost -- /Engine /Service /Server - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Mail - Find what you need with new enhanced search. http://info.mail.yahoo.com/mail_250 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [TOMCAT 5.5.7][WIN 2K] Help with admin package installation
give more details, where did you copy the files yuo say? On Tue, 15 Feb 2005 18:12:21 +0100, Paolo Beccari [EMAIL PROTECTED] wrote: Hi there, I just installed Tomcat 5.5.7 and discovered that admin package is no longer installed by default. So, I downloaded it and copied the files. But when trying to access to the admin page tomcat is still saying that Tomcat's administration web application is no longer installed by default. Download and install the admin package to use it.. Any ideas? -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 265.8.8 - Release Date: 14/02/2005 -- Email.it, the professional e-mail, gratis per te: http://www.email.it/f Sponsor: Biscotti perfetti? Metti la pasta dentro allo Sparabiscotti e...click click... biscotti pronti per essere infornati! Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=2745d=15-2 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Adobati Omar [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
filters
I'm trying to wite a filter that will process a request after anything else in the chain has finished (ie post process). My goal is to process static content within the web app to update the context name within absolute paths (javascript or css files). I have implemented a response wrapper and put breakpoints on both the getOutputStream and getPrintWriter but neither seems to be called. Does Tomcat do something special when is serves static content that would prevent the filter from intercepting the access? Can I even put a filter on static content? Is there a better way I should be trying to do this? --mikej -=- mike jackson [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE : HTTP Status 408 Error when i login
It seems that I can't listen the same port where tomcat is using (8080). java.net.BindException: Address already in use: JVM_Bind at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(Unknown Source) at java.net.ServerSocket.bind(Unknown Source) at java.net.ServerSocket.init(Unknown Source) at java.net.ServerSocket.init(Unknown Source) at org.apache.soap.util.net.TcpTunnelGui$3.run(TcpTunnelGui.java:185) using: java org.apache.soap.util.net.TcpTunnelGui 8080 localhost 8082 LERBSCHER Jean-Pierre wrote: set CLASSPATH=%CLASSPATH%;your library path/soap.jar -Message d'origine- De : Bruno Gonçalves [mailto:[EMAIL PROTECTED] Envoyé : mardi 15 février 2005 18:03 À : Tomcat Users List Objet : Re: RE : RE : RE : HTTP Status 408 Error when i login If I run java org.apache.soap.util.net.TcpTunnelGui 8080 localhost 8082 I get Exception in thread main java.lang.NoClassDefFoundError: org/apache/soap/util/net/TcpTunnelGui humm.. but i think my CLASSPATH is correct! LERBSCHER Jean-Pierre wrote: Do you have proxy in front of Tomcat ? What's your system configuration ? Enable trace on tomcat, and track http request and response. You can use org.apache.soap.util.net.TcpTunnelGui (it's a little http proxy packaged with axis (?) - I don't remember exactly) to check http request and response. Settings : set CLASSPATH=%CLASPATH%;lib/soap.jar java org.apache.soap.util.net.TcpTunnelGui 8080 localhost 8082 where 8080 utility listen port localhost 8082 your tomcat server address and port -Message d'origine- De : Bruno Gonçalves [mailto:[EMAIL PROTECTED] Envoyé : mardi 15 février 2005 13:59 À : Tomcat Users List Objet : Re: RE : RE : HTTP Status 408 Error when i login Humm... I see. So what can I do on Tomcat to resolve this problem? There's any config file? This problem it's very strange!! Thanks Pierre! LERBSCHER Jean-Pierre wrote: With session-timeout element you specify a session timeout not a request timeout. See http://www.checkupdown.com/status/E408.html for explanation! -Message d'origine- De : Bruno Gonçalves [mailto:[EMAIL PROTECTED] Envoyé : mardi 15 février 2005 13:36 À : Tomcat Users List Objet : Re: RE : HTTP Status 408 Error when i login Yes, I know! But I don't understand where is the problem :( In the web.xml the value of timeout is 30minutes: !-- session timeout -- session-config session-timeout30/session-timeout /session-config I do a quick login, not more than 1minute!!! :( I need some help with this... Thanks.. LERBSCHER Jean-Pierre wrote: Hi, It's a Request timeout. -Message d'origine- De : Bruno Gonçalves [mailto:[EMAIL PROTECTED] Envoyé : mardi 15 février 2005 12:46 À : tomcat-user@jakarta.apache.org Objet : HTTP Status 408 Error when i login I there! I'm using JAAS on Tomcat 5.0.28 to make a authentication process for my web aplication. When I submit a wrong username/password the server redirects to an error page, that's correct, but when I submit the correct username/password I got a HTTP Status 408 Error! I don't know what's the problem :( Any help? Thanks... --- Bruno V. Gonçalves - 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] - 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: RE : RE : RE : RE : RE : Tomcat configuration
Hi, How are you defining the security-constraint security-role in your ldsecure/WEB-INF/web.xml ? And also how do use this in your servlet or jsp to get authentication? Maybe post your web.xml too? aka_sergio --- Curtis Nelson [EMAIL PROTECTED] wrote: I know the database connection works, because if I include the realm as part of the engine or host, then I can login correctly. As far as reading the realm how-to, I've done that several times. The second .xml file I sent you is named ldsecure.xml (part of the ldsecure webapp), and I placed it in $CATALINA_HOME/conf/[enginename]/[hostname]/ldsecure.xml. I'm not creating a WAR file, just a directory structure. Any additional ideas? [EMAIL PROTECTED] 02/15/05 10:43AM Check your configuration with http://jakarta.apache.org/tomcat/tomcat-5.0-doc/realm-howto.html#JDBCRealm (database configuration, driver, url access, user et password access, and log files). Try to setup Memory realm. Try to validate database url connection with simple java class. import java.sql.*; import your driver; class JDBCVersion { public static void main (String args []) throws SQLException { // Load the JDBC driver DriverManager.registerDriver(new com.microsoft.jdbc.sqlserver.SQLServerDriver()); // Something like this (probably) Connection conn = DriverManager.getConnection(jdbc:microsoft:sqlserver://LDSERVER:1433;databa sename=ldbugtracker, abc,abc); // Create Oracle DatabaseMetaData object DatabaseMetaData meta = conn.getMetaData (); // get driver info: System.out.println(JDBC driver version is + meta.getDriverVersion()); } } I assume that you have deployed your context configuration in : - META-INF/context.xml directory of your WAR file - $CATALINA_HOME/conf/[enginename]/[hostname]/ directory -Message d'origine- De : Curtis Nelson [mailto:[EMAIL PROTECTED] Envoy�: mardi 15 f�rier 2005 18:14 �: tomcat-user@jakarta.apache.org Objet : Re: RE : RE : RE : RE : Tomcat configuration According to the tomcat docs, the preferred method of describing a context realm is to place it in it's own xml file. Here's what I have: !-- Context docBase=${catalina.home}/server/webapps/manager privileged=true antiResourceLocking=false antiJARLocking=false -- Context reloadable=true path=/ldsecure docbase=${catalina.home}/server/webapps/ldsecure Realm className=org.apache.catalina.realm.JDBCRealm driverName=com.microsoft.jdbc.sqlserver.SQLServerDriver connectionURL=jdbc:microsoft:sqlserver://LDSERVER:1433;databasename=ldbugtr acker;selectmethod=cursor connectionName=abc connectionPassword=abc userTable=LDUsers userNameCol=username userCredCol=password userRoleTable=LDUserRoles roleNameCol=role debug=99/ /Context If I place this context statement in the server.xml file, under the described host, I get the same problem. Curtis [EMAIL PROTECTED] 02/15/05 10:09AM There is no realm describe into it! Have you declared your realm in your META-INF/context.xml directory of your WAR file? Could you send us your context.xml file? -Message d'origine- De : Curtis Nelson [mailto:[EMAIL PROTECTED] Envoy�: mardi 15 f�rier 2005 18:03 �: tomcat-user@jakarta.apache.org Objet : Re: RE : RE : RE : Tomcat configuration With pleasure. Server port=8005 shutdown=SHUTDOWN Listener className=org.apache.catalina.mbeans.ServerLifecycleListener / Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener / GlobalNamingResources Environment name=simpleValue type=java.lang.Integer value=30/ Resource name=UserDatabase auth=Container type=org.apache.catalina.UserDatabase description=User database that can be updated and saved factory=org.apache.catalina.users.MemoryUserDatabaseFactory pathname=conf/tomcat-users.xml / /GlobalNamingResources Service name=Catalina Connector port=8080 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false redirectPort=8443 acceptCount=100 connectionTimeout=2 disableUploadTimeout=true / Connector port=8009 enableLookups=false redirectPort=8443 protocol=AJP/1.3 / !-- Define the top level container in our container hierarchy -- Engine name=Catalina defaultHost=localhost Host name=localhost appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false /Host /Engine /Service /Server Thanks for you help. [EMAIL PROTECTED] 02/15/05
Re: RE : HTTP Status 408 Error when i login
I used the port 8082 on tomcat! It works! I'm gonna see the trace! Thanks one more time :) Bruno Gonçalves wrote: It seems that I can't listen the same port where tomcat is using (8080). java.net.BindException: Address already in use: JVM_Bind at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(Unknown Source) at java.net.ServerSocket.bind(Unknown Source) at java.net.ServerSocket.init(Unknown Source) at java.net.ServerSocket.init(Unknown Source) at org.apache.soap.util.net.TcpTunnelGui$3.run(TcpTunnelGui.java:185) using: java org.apache.soap.util.net.TcpTunnelGui 8080 localhost 8082 LERBSCHER Jean-Pierre wrote: set CLASSPATH=%CLASSPATH%;your library path/soap.jar -Message d'origine- De : Bruno Gonçalves [mailto:[EMAIL PROTECTED] Envoyé : mardi 15 février 2005 18:03 À : Tomcat Users List Objet : Re: RE : RE : RE : HTTP Status 408 Error when i login If I run java org.apache.soap.util.net.TcpTunnelGui 8080 localhost 8082 I get Exception in thread main java.lang.NoClassDefFoundError: org/apache/soap/util/net/TcpTunnelGui humm.. but i think my CLASSPATH is correct! LERBSCHER Jean-Pierre wrote: Do you have proxy in front of Tomcat ? What's your system configuration ? Enable trace on tomcat, and track http request and response. You can use org.apache.soap.util.net.TcpTunnelGui (it's a little http proxy packaged with axis (?) - I don't remember exactly) to check http request and response. Settings : set CLASSPATH=%CLASPATH%;lib/soap.jar java org.apache.soap.util.net.TcpTunnelGui 8080 localhost 8082 where 8080 utility listen port localhost 8082 your tomcat server address and port -Message d'origine- De : Bruno Gonçalves [mailto:[EMAIL PROTECTED] Envoyé : mardi 15 février 2005 13:59 À : Tomcat Users List Objet : Re: RE : RE : HTTP Status 408 Error when i login Humm... I see. So what can I do on Tomcat to resolve this problem? There's any config file? This problem it's very strange!! Thanks Pierre! LERBSCHER Jean-Pierre wrote: With session-timeout element you specify a session timeout not a request timeout. See http://www.checkupdown.com/status/E408.html for explanation! -Message d'origine- De : Bruno Gonçalves [mailto:[EMAIL PROTECTED] Envoyé : mardi 15 février 2005 13:36 À : Tomcat Users List Objet : Re: RE : HTTP Status 408 Error when i login Yes, I know! But I don't understand where is the problem :( In the web.xml the value of timeout is 30minutes: !-- session timeout -- session-config session-timeout30/session-timeout /session-config I do a quick login, not more than 1minute!!! :( I need some help with this... Thanks.. LERBSCHER Jean-Pierre wrote: Hi, It's a Request timeout. -Message d'origine- De : Bruno Gonçalves [mailto:[EMAIL PROTECTED] Envoyé : mardi 15 février 2005 12:46 À : tomcat-user@jakarta.apache.org Objet : HTTP Status 408 Error when i login I there! I'm using JAAS on Tomcat 5.0.28 to make a authentication process for my web aplication. When I submit a wrong username/password the server redirects to an error page, that's correct, but when I submit the correct username/password I got a HTTP Status 408 Error! I don't know what's the problem :( Any help? Thanks... --- Bruno V. Gonçalves - 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] - 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: RE : RE : RE : RE : RE : Tomcat configuration
Thanks for replying. Here's my web.xml file: ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app welcome-file-list welcome-fileindex.jsp/welcome-file /welcome-file-list security-constraint display-nameExample Security Constraint/display-name web-resource-collection web-resource-nameProtected Area/web-resource-name url-pattern/*/url-pattern http-methodGET/http-method http-methodPOST/http-method /web-resource-collection auth-constraint role-namelduser/role-name /auth-constraint /security-constraint login-config auth-methodFORM/auth-method form-login-config form-login-page/login.jsp/form-login-page form-error-page/error.jsp/form-error-page /form-login-config /login-config security-role role-namelduser/role-name /security-role /web-app [EMAIL PROTECTED] 02/15/05 11:21AM Hi, How are you defining the security-constraint security-role in your ldsecure/WEB-INF/web.xml ? And also how do use this in your servlet or jsp to get authentication? Maybe post your web.xml too? aka_sergio --- Curtis Nelson [EMAIL PROTECTED] wrote: I know the database connection works, because if I include the realm as part of the engine or host, then I can login correctly. As far as reading the realm how-to, I've done that several times. The second .xml file I sent you is named ldsecure.xml (part of the ldsecure webapp), and I placed it in $CATALINA_HOME/conf/[enginename]/[hostname]/ldsecure.xml. I'm not creating a WAR file, just a directory structure. Any additional ideas? [EMAIL PROTECTED] 02/15/05 10:43AM Check your configuration with http://jakarta.apache.org/tomcat/tomcat-5.0-doc/realm-howto.html#JDBCRealm (database configuration, driver, url access, user et password access, and log files). Try to setup Memory realm. Try to validate database url connection with simple java class. import java.sql.*; import your driver; class JDBCVersion { public static void main (String args []) throws SQLException { // Load the JDBC driver DriverManager.registerDriver(new com.microsoft.jdbc.sqlserver.SQLServerDriver()); // Something like this (probably) Connection conn = DriverManager.getConnection(jdbc:microsoft:sqlserver://LDSERVER:1433;databa sename=ldbugtracker, abc,abc); // Create Oracle DatabaseMetaData object DatabaseMetaData meta = conn.getMetaData (); // get driver info: System.out.println(JDBC driver version is + meta.getDriverVersion()); } } I assume that you have deployed your context configuration in : - META-INF/context.xml directory of your WAR file - $CATALINA_HOME/conf/[enginename]/[hostname]/ directory -Message d'origine- De : Curtis Nelson [mailto:[EMAIL PROTECTED] Envoy�: mardi 15 f�rier 2005 18:14 �: tomcat-user@jakarta.apache.org Objet : Re: RE : RE : RE : RE : Tomcat configuration According to the tomcat docs, the preferred method of describing a context realm is to place it in it's own xml file. Here's what I have: !-- Context docBase=${catalina.home}/server/webapps/manager privileged=true antiResourceLocking=false antiJARLocking=false -- Context reloadable=true path=/ldsecure docbase=${catalina.home}/server/webapps/ldsecure Realm className=org.apache.catalina.realm.JDBCRealm driverName=com.microsoft.jdbc.sqlserver.SQLServerDriver connectionURL=jdbc:microsoft:sqlserver://LDSERVER:1433;databasename=ldbugtr acker;selectmethod=cursor connectionName=abc connectionPassword=abc userTable=LDUsers userNameCol=username userCredCol=password userRoleTable=LDUserRoles roleNameCol=role debug=99/ /Context If I place this context statement in the server.xml file, under the described host, I get the same problem. Curtis [EMAIL PROTECTED] 02/15/05 10:09AM There is no realm describe into it! Have you declared your realm in your META-INF/context.xml directory of your WAR file? Could you send us your context.xml file? -Message d'origine- De : Curtis Nelson [mailto:[EMAIL PROTECTED] Envoy�: mardi 15 f�rier 2005 18:03 �: tomcat-user@jakarta.apache.org Objet : Re: RE : RE : RE : Tomcat configuration With pleasure. Server port=8005 shutdown=SHUTDOWN Listener className=org.apache.catalina.mbeans.ServerLifecycleListener / Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener / GlobalNamingResources Environment name=simpleValue type=java.lang.Integer value=30/ Resource name=UserDatabase auth=Container
RE: Cannot create JDBC driver of class '' for connect URL 'null'
Didn't you define url, password etc. in your server.xml GlobalNamingResources? -Original Message- From: g k [mailto:[EMAIL PROTECTED] Sent: February 15, 2005 12:49 PM To: tomcat-user@jakarta.apache.org Subject: RE: Cannot create JDBC driver of class '' for connect URL 'null' Server.xml contains : Resource name=jdbc/myoracle auth=Container type=javax.sql.DataSource/ No context tag is in server.xml Context.xml file contains Context ResourceLink global=jdbc/myoracle name=jdbc/myoracle type=javax.sql.DataSource/ /Context From: Phillip Qin [EMAIL PROTECTED] Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org To: 'Tomcat Users List' tomcat-user@jakarta.apache.org Subject: RE: Cannot create JDBC driver of class '' for connect URL 'null' Date: Tue, 15 Feb 2005 11:33:35 -0500 In your context.xml or server.xml, you would define your jdbc resource. Find out that url and post it here. Jdbc driver and location are correct. -Original Message- From: g k [mailto:[EMAIL PROTECTED] Sent: February 15, 2005 11:25 AM To: [EMAIL PROTECTED]; tomcat-user@jakarta.apache.org Subject: RE: Cannot create JDBC driver of class '' for connect URL 'null' Hi ojdbc14.jar - is in the tomcat/common/lib directory post jdc url? - not to clear on what this is? do i need to create a context.xml? regards Gurpreet From: David Short [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: 'Tomcat Users List' tomcat-user@jakarta.apache.org Subject: RE: Cannot create JDBC driver of class '' for connect URL 'null' Date: Tue, 15 Feb 2005 07:18:58 -0800 Rename the Oracle classes12.zip file to classes12.jar and move to the tomcat\common\lib directory. -Original Message- From: Phillip Qin [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 15, 2005 6:39 AM To: 'Tomcat Users List' Subject: RE: Cannot create JDBC driver of class '' for connect URL 'null' Post your jdbc url. -Original Message- From: g k [mailto:[EMAIL PROTECTED] Sent: February 15, 2005 6:44 AM To: tomcat-user@jakarta.apache.org Subject: Cannot create JDBC driver of class '' for connect URL 'null' Hi I have added Oracle resource params to the server.xml file and reference parameters to oracle in the web.xml When i startup tomcat - i get the following error: 11:20:38,385 [ConnectDB.java] [ConnectDB] [getConnectionPoolForOracle:101] - ERR OR - failed to get the connection: org.apache.commons.dbcp.SQLNestedException: C annot create JDBC driver of class '' for connect URL 'null', cause: No suitable driver 11:20:38,385 [SendMessageAction.java] [SendMessageAction] [Send:227] - DEBUG - C onnection after: null java.net.MalformedURLException: no protocol: at java.net.URL.init(URL.java:537) at java.net.URL.init(URL.java:434) at java.net.URL.init(URL.java:383) at com.csc.nhs.web.legacypas.struts.action.SendMessageAction.Send(SendMe ssageAction.java:231) any thoughts? regards Gurpreet - 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] !DSPAM:42123612105131331513667!
Re: Cannot create JDBC driver of class '' for connect URL 'null'
Laba diena. Dkojame, kad mums parate. Js atsista inut isaugota ms duomen bazje. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
HTTP Status 503 - Servlet action is currently unavailable
Hi, I'm brand new in Apache-Tomcat configurations. Our site tow months ago was working ok, but we did some new adjustments. In one of them, we used a new version of Struts, we still have Tomcat 4.1.31, working fine with no problems. Now when I try to enter the index page I got this error: HTTP Status 503 - Servlet action is currently unavailable type Status report message Servlet action is currently unavailable description The requested service (Servlet action is currently unavailable) is not currently available. Apache Tomcat/4.1.31 Any idea? Should I move to next version of Tomcat? If some doc can help, please send me the url. Thanks = Yaroslav J. Alpízar Zhuravlev Software Engineer System Analyst Havana, Cuba. ...go out there and see how deep the rabbit hole is... Morpheus __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE : HTTP Status 408 Error when i login
humm.. the trace don't give me much more information! --- *The POST:* XXX: Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive Referer: http://localhost:8082/jcms/web/jsp/das/j_security_check Content-Type: application/x-www-form-urlencoded Content-Length: 33 j_username=adminj_password=adminGET /favicon.ico HTTP/1.1 Host: localhost:8082 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.7.5) Gecko/20041110 Firefox/1.0 Accept: image/png,*/*;q=0.5 Accept-Language: en-gb,en;q=0.5 XXX: Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive *The response:* HTTP/1.1 408 The time allowed for the login process has been exceeded. If you wish to continue you must either click back twice and re-click the link you requested or close and re-open your browser Content-Type: text/html;charset=utf-8 Content-Length: 1554 Date: Tue, 15 Feb 2005 18:37:09 GMT Server: Apache-Coyote/1.1 Connection: close htmlheadtitleApache Tomcat/5.0.28 - Error report/titlestyle!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--/style /headbodyh1HTTP Status 408 - The time allowed for the login process has been exceeded. If you wish to continue you must either click back twice and re-click the link you requested or close and re-open your browser/h1HR size=1 noshade=noshadepbtype/b Status report/ppbmessage/b uThe time allowed for the login process has been exceeded. If you wish to continue you must either click back twice and re-click the link you requested or close and re-open your browser/u/ppbdescription/b uThe client did not produce a request within the time that the server was prepared to wait (The time allowed for the login process has been exceeded. If you wish to continue you must either click back twice and re-click the link you requested or close and re-open your browser)./u/pHR size=1 noshade=noshadeh3Apache Tomcat/5.0.28/h3/body/htmlHTTP/1.1 404 /favicon.ico Content-Type: text/html;charset=utf-8 Content-Length: 988 Date: Tue, 15 Feb 2005 18:37:09 GMT Server: Apache-Coyote/1.1 htmlheadtitleApache Tomcat/5.0.28 - Error report/titlestyle!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--/style /headbodyh1HTTP Status 404 - /favicon.ico/h1HR size=1 noshade=noshadepbtype/b Status report/ppbmessage/b u/favicon.ico/u/ppbdescription/b What's your opinion? I used the port 8082 on tomcat! It works! I'm gonna see the trace! Thanks one more time :) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: RE : RE : RE : RE : RE : Tomcat configuration
Hi, Does your login.jsp have something similar to this: form method=POST action='%= response.encodeURL(j_security_check) %' input type=text name=j_username input type=password name=j_password /form It it does, I can't think of where to look for now. aka_sergio --- Curtis Nelson [EMAIL PROTECTED] wrote: Thanks for replying. Here's my web.xml file: ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app welcome-file-list welcome-fileindex.jsp/welcome-file /welcome-file-list security-constraint display-nameExample Security Constraint/display-name web-resource-collection web-resource-nameProtected Area/web-resource-name url-pattern/*/url-pattern http-methodGET/http-method http-methodPOST/http-method /web-resource-collection auth-constraint role-namelduser/role-name /auth-constraint /security-constraint login-config auth-methodFORM/auth-method form-login-config form-login-page/login.jsp/form-login-page form-error-page/error.jsp/form-error-page /form-login-config /login-config security-role role-namelduser/role-name /security-role /web-app [EMAIL PROTECTED] 02/15/05 11:21AM Hi, How are you defining the security-constraint security-role in your ldsecure/WEB-INF/web.xml ? And also how do use this in your servlet or jsp to get authentication? Maybe post your web.xml too? aka_sergio --- Curtis Nelson [EMAIL PROTECTED] wrote: I know the database connection works, because if I include the realm as part of the engine or host, then I can login correctly. As far as reading the realm how-to, I've done that several times. The second .xml file I sent you is named ldsecure.xml (part of the ldsecure webapp), and I placed it in $CATALINA_HOME/conf/[enginename]/[hostname]/ldsecure.xml. I'm not creating a WAR file, just a directory structure. Any additional ideas? [EMAIL PROTECTED] 02/15/05 10:43AM Check your configuration with http://jakarta.apache.org/tomcat/tomcat-5.0-doc/realm-howto.html#JDBCRealm (database configuration, driver, url access, user et password access, and log files). Try to setup Memory realm. Try to validate database url connection with simple java class. import java.sql.*; import your driver; class JDBCVersion { public static void main (String args []) throws SQLException { // Load the JDBC driver DriverManager.registerDriver(new com.microsoft.jdbc.sqlserver.SQLServerDriver()); // Something like this (probably) Connection conn = DriverManager.getConnection(jdbc:microsoft:sqlserver://LDSERVER:1433;databa sename=ldbugtracker, abc,abc); // Create Oracle DatabaseMetaData object DatabaseMetaData meta = conn.getMetaData (); // get driver info: System.out.println(JDBC driver version is + meta.getDriverVersion()); } } I assume that you have deployed your context configuration in : - META-INF/context.xml directory of your WAR file - $CATALINA_HOME/conf/[enginename]/[hostname]/ directory -Message d'origine- De : Curtis Nelson [mailto:[EMAIL PROTECTED] Envoy�: mardi 15 f�rier 2005 18:14 �: tomcat-user@jakarta.apache.org Objet : Re: RE : RE : RE : RE : Tomcat configuration According to the tomcat docs, the preferred method of describing a context realm is to place it in it's own xml file. Here's what I have: !-- Context docBase=${catalina.home}/server/webapps/manager privileged=true antiResourceLocking=false antiJARLocking=false -- Context reloadable=true path=/ldsecure docbase=${catalina.home}/server/webapps/ldsecure Realm className=org.apache.catalina.realm.JDBCRealm driverName=com.microsoft.jdbc.sqlserver.SQLServerDriver connectionURL=jdbc:microsoft:sqlserver://LDSERVER:1433;databasename=ldbugtr acker;selectmethod=cursor connectionName=abc connectionPassword=abc userTable=LDUsers userNameCol=username userCredCol=password userRoleTable=LDUserRoles roleNameCol=role debug=99/ /Context If I place this context statement in the server.xml file, under the described host, I get the same problem. Curtis [EMAIL PROTECTED] 02/15/05 10:09AM There is no realm describe into it! Have you declared your realm in your META-INF/context.xml directory of your WAR file? Could you send us your context.xml file? -Message d'origine- De : Curtis Nelson [mailto:[EMAIL PROTECTED] Envoy�: mardi 15 f�rier 2005 18:03 �:
Re: [TOMCAT 5.5.7][WIN 2K] Help with admin package installation
The admin.xml in $TOMCAT_HOME/conf/Catalina/localhost. The admin webapp under $TOMCAT_HOME/server/webapps/admin. I can see that the Admin application seem to be up running from the Manager Console, (http://host:8081/manager/html), but the admin console is still not visible (http://host:8081/admin) Thank you P. - Original Message - From: Omar Adobati [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Tuesday, February 15, 2005 7:03 PM Subject: Re: [TOMCAT 5.5.7][WIN 2K] Help with admin package installation give more details, where did you copy the files yuo say? On Tue, 15 Feb 2005 18:12:21 +0100, Paolo Beccari [EMAIL PROTECTED] wrote: Hi there, I just installed Tomcat 5.5.7 and discovered that admin package is no longer installed by default. So, I downloaded it and copied the files. But when trying to access to the admin page tomcat is still saying that Tomcat's administration web application is no longer installed by default. Download and install the admin package to use it.. Any ideas? -- Adobati Omar [EMAIL PROTECTED] -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 265.8.8 - Release Date: 14/02/2005 -- Email.it, the professional e-mail, gratis per te: http://www.email.it/f Sponsor: Videogiochi PS2 XBOX GCUBE GBA a prezzi pazzeschi! Provare per credere! * Risparmia fino a 10 euro su ogni gioco, spedizione in 24h a casa tua! Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=2459d=15-2 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: RE : RE : RE : RE : RE : Tomcat configuration
It does. Thanks for trying. Curtis [EMAIL PROTECTED] 02/15/05 11:56AM Hi, Does your login.jsp have something similar to this: form method=POST action='%= response.encodeURL(j_security_check) %' input type=text name=j_username input type=password name=j_password /form It it does, I can't think of where to look for now. aka_sergio --- Curtis Nelson [EMAIL PROTECTED] wrote: Thanks for replying. Here's my web.xml file: ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app welcome-file-list welcome-fileindex.jsp/welcome-file /welcome-file-list security-constraint display-nameExample Security Constraint/display-name web-resource-collection web-resource-nameProtected Area/web-resource-name url-pattern/*/url-pattern http-methodGET/http-method http-methodPOST/http-method /web-resource-collection auth-constraint role-namelduser/role-name /auth-constraint /security-constraint login-config auth-methodFORM/auth-method form-login-config form-login-page/login.jsp/form-login-page form-error-page/error.jsp/form-error-page /form-login-config /login-config security-role role-namelduser/role-name /security-role /web-app [EMAIL PROTECTED] 02/15/05 11:21AM Hi, How are you defining the security-constraint security-role in your ldsecure/WEB-INF/web.xml ? And also how do use this in your servlet or jsp to get authentication? Maybe post your web.xml too? aka_sergio --- Curtis Nelson [EMAIL PROTECTED] wrote: I know the database connection works, because if I include the realm as part of the engine or host, then I can login correctly. As far as reading the realm how-to, I've done that several times. The second .xml file I sent you is named ldsecure.xml (part of the ldsecure webapp), and I placed it in $CATALINA_HOME/conf/[enginename]/[hostname]/ldsecure.xml. I'm not creating a WAR file, just a directory structure. Any additional ideas? [EMAIL PROTECTED] 02/15/05 10:43AM Check your configuration with http://jakarta.apache.org/tomcat/tomcat-5.0-doc/realm-howto.html#JDBCRealm (database configuration, driver, url access, user et password access, and log files). Try to setup Memory realm. Try to validate database url connection with simple java class. import java.sql.*; import your driver; class JDBCVersion { public static void main (String args []) throws SQLException { // Load the JDBC driver DriverManager.registerDriver(new com.microsoft.jdbc.sqlserver.SQLServerDriver()); // Something like this (probably) Connection conn = DriverManager.getConnection(jdbc:microsoft:sqlserver://LDSERVER:1433;databa sename=ldbugtracker, abc,abc); // Create Oracle DatabaseMetaData object DatabaseMetaData meta = conn.getMetaData (); // get driver info: System.out.println(JDBC driver version is + meta.getDriverVersion()); } } I assume that you have deployed your context configuration in : - META-INF/context.xml directory of your WAR file - $CATALINA_HOME/conf/[enginename]/[hostname]/ directory -Message d'origine- De : Curtis Nelson [mailto:[EMAIL PROTECTED] Envoy�: mardi 15 f�rier 2005 18:14 �: tomcat-user@jakarta.apache.org Objet : Re: RE : RE : RE : RE : Tomcat configuration According to the tomcat docs, the preferred method of describing a context realm is to place it in it's own xml file. Here's what I have: !-- Context docBase=${catalina.home}/server/webapps/manager privileged=true antiResourceLocking=false antiJARLocking=false -- Context reloadable=true path=/ldsecure docbase=${catalina.home}/server/webapps/ldsecure Realm className=org.apache.catalina.realm.JDBCRealm driverName=com.microsoft.jdbc.sqlserver.SQLServerDriver connectionURL=jdbc:microsoft:sqlserver://LDSERVER:1433;databasename=ldbugtr acker;selectmethod=cursor connectionName=abc connectionPassword=abc userTable=LDUsers userNameCol=username userCredCol=password userRoleTable=LDUserRoles roleNameCol=role debug=99/ /Context If I place this context statement in the server.xml file, under the described host, I get the same problem. Curtis [EMAIL PROTECTED] 02/15/05 10:09AM There is no realm describe into it! Have you declared your realm in your META-INF/context.xml directory of your WAR file? Could you send us your context.xml file? -Message d'origine- De : Curtis Nelson
Re: [TOMCAT 5.5.7][WIN 2K] Help with admin package installation
Hi, When you say you admin is not visible, what do you actually see and if any errors at all? Check your admin.xml and post it please. aka_sergio --- Paolo Beccari [EMAIL PROTECTED] wrote: The admin.xml in $TOMCAT_HOME/conf/Catalina/localhost. The admin webapp under $TOMCAT_HOME/server/webapps/admin. I can see that the Admin application seem to be up running from the Manager Console, (http://host:8081/manager/html), but the admin console is still not visible (http://host:8081/admin) Thank you P. - Original Message - From: Omar Adobati [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Tuesday, February 15, 2005 7:03 PM Subject: Re: [TOMCAT 5.5.7][WIN 2K] Help with admin package installation give more details, where did you copy the files yuo say? On Tue, 15 Feb 2005 18:12:21 +0100, Paolo Beccari [EMAIL PROTECTED] wrote: Hi there, I just installed Tomcat 5.5.7 and discovered that admin package is no longer installed by default. So, I downloaded it and copied the files. But when trying to access to the admin page tomcat is still saying that Tomcat's administration web application is no longer installed by default. Download and install the admin package to use it.. Any ideas? -- Adobati Omar [EMAIL PROTECTED] -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 265.8.8 - Release Date: 14/02/2005 -- Email.it, the professional e-mail, gratis per te: http://www.email.it/f Sponsor: Videogiochi PS2 XBOX GCUBE GBA a prezzi pazzeschi! Provare per credere! * Risparmia fino a 10 euro su ogni gioco, spedizione in 24h a casa tua! Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=2459d=15-2 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Mail - now with 250MB free storage. Learn more. http://info.mail.yahoo.com/mail_250 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [TOMCAT 5.5.7][WIN 2K] Help with admin package installation
If you have downloaded the zipped version extract it in your tomcat home and try to NOT move any files from the place they will be. I'm quite sure it will work fine. So, the only think you have to do is place exactelly as u find in the zip files all the files ther are needed to make aviable the admin webapp. Hope this help. === In italiano magari te lo spiego meglio: praticamente, se hais caricato la versione compressa dell'Admin per tomcat, scompattala direttamente nella home di tomcat stesso e non muovere alcun file da dove si trova. In questo modo dovrebbe funzionare, con me l'ha fatto. Ciao! On Tue, 15 Feb 2005 19:55:37 +0100, Paolo Beccari [EMAIL PROTECTED] wrote: The admin.xml in $TOMCAT_HOME/conf/Catalina/localhost. The admin webapp under $TOMCAT_HOME/server/webapps/admin. I can see that the Admin application seem to be up running from the Manager Console, (http://host:8081/manager/html), but the admin console is still not visible (http://host:8081/admin) Thank you P. - Original Message - From: Omar Adobati [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Tuesday, February 15, 2005 7:03 PM Subject: Re: [TOMCAT 5.5.7][WIN 2K] Help with admin package installation give more details, where did you copy the files yuo say? On Tue, 15 Feb 2005 18:12:21 +0100, Paolo Beccari [EMAIL PROTECTED] wrote: Hi there, I just installed Tomcat 5.5.7 and discovered that admin package is no longer installed by default. So, I downloaded it and copied the files. But when trying to access to the admin page tomcat is still saying that Tomcat's administration web application is no longer installed by default. Download and install the admin package to use it.. Any ideas? -- Adobati Omar [EMAIL PROTECTED] -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 265.8.8 - Release Date: 14/02/2005 -- Email.it, the professional e-mail, gratis per te: http://www.email.it/f Sponsor: Videogiochi PS2 XBOX GCUBE GBA a prezzi pazzeschi! Provare per credere! * Risparmia fino a 10 euro su ogni gioco, spedizione in 24h a casa tua! Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=2459d=15-2 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Adobati Omar [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: HTTP Status 503 - Servlet action is currently unavailable
Hi, More of curiosity, What do you guys in Cuba uses Apache/Tomcat for? Does it promote information access to all or just a few well to-do people who has access to phones and computers? Can you provide the link for us in the outside see whats over there in Havana ? I hope its not illegal, for any americans to visit your site via the browser off course (he he he), but certainly its not legal for physical visit. aka_sergio --- Yaroslav Alpizar Zhuravliov [EMAIL PROTECTED] wrote: Hi, I'm brand new in Apache-Tomcat configurations. Our site tow months ago was working ok, but we did some new adjustments. In one of them, we used a new version of Struts, we still have Tomcat 4.1.31, working fine with no problems. Now when I try to enter the index page I got this error: HTTP Status 503 - Servlet action is currently unavailable type Status report message Servlet action is currently unavailable description The requested service (Servlet action is currently unavailable) is not currently available. Apache Tomcat/4.1.31 Any idea? Should I move to next version of Tomcat? If some doc can help, please send me the url. Thanks = Yaroslav J. Alp�ar Zhuravlev Software Engineer System Analyst Havana, Cuba. ...go out there and see how deep the rabbit hole is... Morpheus __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Mail - You care about security. So do we. http://promotions.yahoo.com/new_mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Several configuration issues with Tomcat 5.5.7/Apache2 compiling JSPs
Hi all, first time posting to the list. I'm having several problems migrating JSPs and class/jar files to Tomcat 5.5.7 from Tomcat 3. I understand this is a big move, but I'm trying to avoid any rewrite of the JSPs themselves. Documentation for tomcat 5.5.x is rather sparse and terribly cryptic. Each webapp is using its own local classes (which I have copied into the local WEB-INF directory in /classes /lib etc.), as well as some common classes/jars which have been copied into the /tomcat/common/ directory tree. Should I be using the /tomcat/shared/ tree? This does not seem to matter as jasper will consistently throw me errors from compiling the JSPs. Here is the root cause of one such error: HTTP 500 - Internal Server Error ROOT CAUSE java.lang.NullPointerException biz.shipflex.Configuration.getConfiguration(Configuration.java:51) org.apache.jsp.ShipFlex.Website.MainPage_jsp._jspService(org.apache.jsp.Ship Flex.Website.MainPage_jsp:52) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3 25) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) My basic setup is as follows: Apache 2.x /usr/local/apache Tomcat 5.5.7/usr/local/tomcat [EMAIL PROTECTED] tomcat]# echo $CLASSPATH /usr/local/tomcat/webapps/Common/Classes/:/usr/local/tomcat/webapps/Shipping /Classes/:/usr/local/tomcat/webapps/scripts/Classes/:/usr/java/jdk1.5.0_01/l ib/ I have a feeling its something with my CLASSPATH, again, this is a touchy migration. I'll gladly copy any portions of web.xml and/or server.xml, etc to an additional message if needed. Any help or suggestions on things/files to look at would be most appreciated. TIA Sam Halicke Systems Administrator IMSure Network, Inc. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Several configuration issues with Tomcat 5.5.7/Apache2 compiling JSPs
Hi, One of the things you have to do is put support classes for jsp in a package. I dont recall when those requirements has changed. aka_sergio --- Sam Halicke [EMAIL PROTECTED] wrote: Hi all, first time posting to the list. I'm having several problems migrating JSPs and class/jar files to Tomcat 5.5.7 from Tomcat 3. I understand this is a big move, but I'm trying to avoid any rewrite of the JSPs themselves. Documentation for tomcat 5.5.x is rather sparse and terribly cryptic. Each webapp is using its own local classes (which I have copied into the local WEB-INF directory in /classes /lib etc.), as well as some common classes/jars which have been copied into the /tomcat/common/ directory tree. Should I be using the /tomcat/shared/ tree? This does not seem to matter as jasper will consistently throw me errors from compiling the JSPs. Here is the root cause of one such error: HTTP 500 - Internal Server Error ROOT CAUSE java.lang.NullPointerException biz.shipflex.Configuration.getConfiguration(Configuration.java:51) org.apache.jsp.ShipFlex.Website.MainPage_jsp._jspService(org.apache.jsp.Ship Flex.Website.MainPage_jsp:52) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3 25) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) My basic setup is as follows: Apache 2.x/usr/local/apache Tomcat 5.5.7 /usr/local/tomcat [EMAIL PROTECTED] tomcat]# echo $CLASSPATH /usr/local/tomcat/webapps/Common/Classes/:/usr/local/tomcat/webapps/Shipping /Classes/:/usr/local/tomcat/webapps/scripts/Classes/:/usr/java/jdk1.5.0_01/l ib/ I have a feeling its something with my CLASSPATH, again, this is a touchy migration. I'll gladly copy any portions of web.xml and/or server.xml, etc to an additional message if needed. Any help or suggestions on things/files to look at would be most appreciated. TIA Sam Halicke Systems Administrator IMSure Network, Inc. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
jk2.properties Query
Hi: I noticed the following on the catalina.out: Feb 15, 2005 9:19:13 AM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=1/37 config=/local/jakarta-tomcat-5.0.28/conf/jk2.properties Does Tomcat 5.0.28 have mod_jk on by default? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Several configuration issues with Tomcat 5.5.7/Apache2 compiling JSPs
Thank you for your quick reply. Again, putting support classes for jsp in a package is rather cryptic. The test JSPs (jsp-examples) run just fine. Are you saying that for a JSP application all the required classes/jars MUST be in the local webapp's WEB-INF directory? The Classloader Howto seems to indicate that this is the default search path for classes/jars: * Bootstrap classes of your JVM * System class loader classses (described above) * /WEB-INF/classes of your web application * /WEB-INF/lib/*.jar of your web application * $CATALINA_HOME/common/classes * $CATALINA_HOME/common/endorsed/*.jar * $CATALINA_HOME/common/i18n/*.jar * $CATALINA_HOME/common/lib/*.jar * $CATALINA_BASE/shared/classes * $CATALINA_BASE/shared/lib/*.jar The local classes needed by the webapp are in the local WEB-INF. Shared have been placed in /shared/lib as documented on the Tomcat site. My thoughts as of now are these: 1. Is there a .sh script that needs to be edited to set the appropriate class path at a system level? 2. Is there an XML file or tag that needs to be created/edited for my JSPs to compile correctly? 3. Most of my JSPs have an @import statement at the beginning, could the path of that itself be a problem? -Original Message- From: sven morales [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 15, 2005 12:26 PM To: Tomcat Users List Subject: Re: Several configuration issues with Tomcat 5.5.7/Apache2 compiling JSPs Hi, One of the things you have to do is put support classes for jsp in a package. I dont recall when those requirements has changed. aka_sergio --- Sam Halicke [EMAIL PROTECTED] wrote: Hi all, first time posting to the list. I'm having several problems migrating JSPs and class/jar files to Tomcat 5.5.7 from Tomcat 3. I understand this is a big move, but I'm trying to avoid any rewrite of the JSPs themselves. Documentation for tomcat 5.5.x is rather sparse and terribly cryptic. Each webapp is using its own local classes (which I have copied into the local WEB-INF directory in /classes /lib etc.), as well as some common classes/jars which have been copied into the /tomcat/common/ directory tree. Should I be using the /tomcat/shared/ tree? This does not seem to matter as jasper will consistently throw me errors from compiling the JSPs. Here is the root cause of one such error: HTTP 500 - Internal Server Error ROOT CAUSE java.lang.NullPointerException biz.shipflex.Configuration.getConfiguration(Configuration.java:51) org.apache.jsp.ShipFlex.Website.MainPage_jsp._jspService(org.apache.jsp.Ship Flex.Website.MainPage_jsp:52) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3 25) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) My basic setup is as follows: Apache 2.x/usr/local/apache Tomcat 5.5.7 /usr/local/tomcat [EMAIL PROTECTED] tomcat]# echo $CLASSPATH /usr/local/tomcat/webapps/Common/Classes/:/usr/local/tomcat/webapps/Shipping /Classes/:/usr/local/tomcat/webapps/scripts/Classes/:/usr/java/jdk1.5.0_01/l ib/ I have a feeling its something with my CLASSPATH, again, this is a touchy migration. I'll gladly copy any portions of web.xml and/or server.xml, etc to an additional message if needed. Any help or suggestions on things/files to look at would be most appreciated. TIA Sam Halicke Systems Administrator IMSure Network, Inc. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Security Constraint
Could be a server.xml problem. Can you post the connector parts of your server.xml? Mark Xeth Waxman wrote: I have a new servlet which I've created - whenever you try to access this servlet, I get the security certificate dialog box (do you want to accept this certificate). However, this application has no security constraint in its web.xml file - I don't know why it's trying to serve up a certificate. In addition, you have to click 'yes' on the security dialog three times, as if it's trying to serve the certificate three times in a row. And, in the end, it doesn't take the user to a secur connection - it just takes them to the http: connection I wanted to get to in the first place. I'm using Tomcat 5.5 - here's a copy of my very simple web.xml - if anyone has any ideas, I'd appreciate it. I don't want to make this a secure site and take on the added overhead just because I can't stop the stupid certificate from popping up. ?xml version=1.0 encoding=UTF-8? web-app version=2.4 xmlns=http://java.sun.com/xml/ns/j2ee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; servlet servlet-nameACHLogin/servlet-name servlet-classcom.gcc.achpayments.ACHLogin/servlet-class /servlet servlet servlet-nameAddACHPayment/servlet-name servlet-classcom.gcc.achpayments.AddACHPayment/servlet-class /servlet servlet-mapping servlet-nameACHLogin/servlet-name url-pattern/ACHLogin/url-pattern /servlet-mapping servlet-mapping servlet-nameAddACHPayment/servlet-name url-pattern/AddACHPayment/url-pattern /servlet-mapping session-config session-timeout30/session-timeout /session-config welcome-file-list welcome-file login.jsp /welcome-file welcome-file index.jsp /welcome-file welcome-file index.html /welcome-file welcome-file index.htm /welcome-file /welcome-file-list /web-app - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: jk2.properties Query
From: Hari Mailvaganam [mailto:[EMAIL PROTECTED] Subject: jk2.properties Query Does Tomcat 5.0.28 have mod_jk on by default? The default server.xml has an AJP13 connector defined on port 8009; it's been that way for a long time. You should comment it out if you don't need it. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Several configuration issues with Tomcat 5.5.7/Apache2 compiling JSPs
Forget classpath -- it's ignored in Tomcat 5.5 and as I remember, was being phased out in Tomcat 3 (wow -- have I been reading these mail lists for that long??). If you put your classes and jars in the right places, they will be found. In your case, the classes are being found, but some underlying code in biz.shipflex.Configuration is throwing an NPE. --David Sam Halicke wrote: Hi all, first time posting to the list. I'm having several problems migrating JSPs and class/jar files to Tomcat 5.5.7 from Tomcat 3. I understand this is a big move, but I'm trying to avoid any rewrite of the JSPs themselves. Documentation for tomcat 5.5.x is rather sparse and terribly cryptic. Each webapp is using its own local classes (which I have copied into the local WEB-INF directory in /classes /lib etc.), as well as some common classes/jars which have been copied into the /tomcat/common/ directory tree. Should I be using the /tomcat/shared/ tree? This does not seem to matter as jasper will consistently throw me errors from compiling the JSPs. Here is the root cause of one such error: HTTP 500 - Internal Server Error ROOT CAUSE java.lang.NullPointerException biz.shipflex.Configuration.getConfiguration(Configuration.java:51) org.apache.jsp.ShipFlex.Website.MainPage_jsp._jspService(org.apache.jsp.Ship Flex.Website.MainPage_jsp:52) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3 25) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) My basic setup is as follows: Apache 2.x /usr/local/apache Tomcat 5.5.7/usr/local/tomcat [EMAIL PROTECTED] tomcat]# echo $CLASSPATH /usr/local/tomcat/webapps/Common/Classes/:/usr/local/tomcat/webapps/Shipping /Classes/:/usr/local/tomcat/webapps/scripts/Classes/:/usr/java/jdk1.5.0_01/l ib/ I have a feeling its something with my CLASSPATH, again, this is a touchy migration. I'll gladly copy any portions of web.xml and/or server.xml, etc to an additional message if needed. Any help or suggestions on things/files to look at would be most appreciated. TIA Sam Halicke Systems Administrator IMSure Network, 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]
RE: Several configuration issues with Tomcat 5.5.7/Apache2 compiling JSPs
From: Sam Halicke [mailto:[EMAIL PROTECTED] Subject: RE: Several configuration issues with Tomcat 5.5.7/Apache2 compiling JSPs Again, putting support classes for jsp in a package is rather cryptic. The term package in this instance refers to the Java language package statement, which IIRC, is required by the current JSP/Servlet specs. Part of the reason the Tomcat doc seems cryptic is that it depends on an understanding of the JSP and Servlet specs. These can be found on jcp.org web site. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Search in French database in English
Hi, Please look at the very robust Cocoon project under apache too. See http://cocoon.apache.org download the code via cvs, compile it and there is an Internationalization sample. Am positive you will like cocoon. Im not doing it justice with my very very simple explanation. You have to try it and see and it does run on Tomcat or resin, orion, oracle, jboss, etc.. :) aka_sergio --- Antony Paul [EMAIL PROTECTED] wrote: Hi all, Sorry for OT. Many here will have experience in developing multilingual sites. I have a doubt regarding searching in a database which stores information in English, French and German. The user can type the search keyword(usually it is customer name and address) in English and it has to match the word in all these languages. Is it possible ?. Any thoughts on this are welcome. rgds Antony Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Mail - Find what you need with new enhanced search. http://info.mail.yahoo.com/mail_250 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 5.5.7 deployer ExceptionInInitializer error in Struts getMessageResources
Anybody have any ideas? I have googled this list and others and so far no clues Thank you - Richard -Original Message- From: Richard Mixon (qwest) [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 15, 2005 1:31 AM To: TomcatUsers Subject: Tomcat 5.5.7 deployer ExceptionInInitializer error When I use the client deployer to compile my web app I am getting this error under SuSE Linux (SLES9). Under Windows XP it deploys fine. It seems sort of puzzling as to why the deployer is running the Struts org.apache.struts.util.MessageResources.getMessageResources during a compile. Here is a the output: [EMAIL PROTECTED]:~/tc55-deployer echo $JAVA_HOME /usr/java/jdk1.5.0_01 [EMAIL PROTECTED]:~/tc55-deployer echo $ANT_HOME /opt/apache-ant-1.6.2 [EMAIL PROTECTED]:~/tc55-deployer $ANT_HOME/bin/ant compile Buildfile: build.xml clean: compile: [copy] Copying 625 files to /home/ltojsw/tc55-deployer/build/webapp/stars [jasper2] log4j:WARN No appenders could be found for logger (org.apache.jasper.compiler.JspRuntimeContext). [jasper2] log4j:WARN Please initialize the log4j system properly. BUILD FAILED /home/ltojsw/tc55-deployer/build.xml:45: java.lang.ExceptionInInitializerError Total time: 8 seconds The stack trace is below (running ant with -verbose flag). Any idea would fix this? Thank you - Richard [jasper2] Error in class org.apache.jasper.JspC BUILD FAILED /home/ltojsw/tc55-deployer/build.xml:45: java.lang.ExceptionInInitializerError at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:131) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) at org.apache.tools.ant.Task.perform(Task.java:364) at org.apache.tools.ant.Target.execute(Target.java:341) at org.apache.tools.ant.Target.performTasks(Target.java:369) at org.apache.tools.ant.Project.executeTarget(Project.java:1214) at org.apache.tools.ant.Project.executeTargets(Project.java:1062) at org.apache.tools.ant.Main.runBuild(Main.java:673) at org.apache.tools.ant.Main.startAnt(Main.java:188) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55) Caused by: java.lang.ExceptionInInitializerError at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:164) at org.apache.strutsel.taglib.html.ELFormTagBeanInfo.class$(ELFormTagBeanIn fo.java:41) at org.apache.strutsel.taglib.html.ELFormTagBeanInfo.getPropertyDescriptors (ELFormTagBeanInfo.java:41) at java.beans.Introspector.getTargetPropertyInfo(Introspector.java:475) at java.beans.Introspector.getBeanInfo(Introspector.java:385) at java.beans.Introspector.getBeanInfo(Introspector.java:155) at org.apache.jasper.compiler.Generator$TagHandlerInfo.init(Generator.jav a:3676) at org.apache.jasper.compiler.Generator$GenerateVisitor.getTagHandlerInfo(G enerator.java:2098) at org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.jav a:1579) at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1441) at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163) at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213) at org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.jav a:1685) at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1441) at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163) at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213) at org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.jav a:1685) at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1441) at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163) at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213) at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2219) at org.apache.jasper.compiler.Node$Root.accept(Node.java:456) at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163) at org.apache.jasper.compiler.Generator.generate(Generator.java:3268) at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:189) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:286) at org.apache.jasper.JspC.processFile(JspC.java:854) at org.apache.jasper.JspC.execute(JspC.java:989) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:123) ... 10 more Caused by:
Re: Tomcat 5.5.7 deployer ExceptionInInitializer error in Struts getMessageResources
Hi, What do you mean by Under Windows XP it deploys fine. ? I thought your problem is compiling? This deployer (manager webapps) compiles okay in XP and not in SuSE? aka_sergio --- Richard Mixon (qwest) [EMAIL PROTECTED] wrote: Anybody have any ideas? I have googled this list and others and so far no clues Thank you - Richard -Original Message- From: Richard Mixon (qwest) [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 15, 2005 1:31 AM To: TomcatUsers Subject: Tomcat 5.5.7 deployer ExceptionInInitializer error When I use the client deployer to compile my web app I am getting this error under SuSE Linux (SLES9). Under Windows XP it deploys fine. It seems sort of puzzling as to why the deployer is running the Struts org.apache.struts.util.MessageResources.getMessageResources during a compile. Here is a the output: [EMAIL PROTECTED]:~/tc55-deployer echo $JAVA_HOME /usr/java/jdk1.5.0_01 [EMAIL PROTECTED]:~/tc55-deployer echo $ANT_HOME /opt/apache-ant-1.6.2 [EMAIL PROTECTED]:~/tc55-deployer $ANT_HOME/bin/ant compile Buildfile: build.xml clean: compile: [copy] Copying 625 files to /home/ltojsw/tc55-deployer/build/webapp/stars [jasper2] log4j:WARN No appenders could be found for logger (org.apache.jasper.compiler.JspRuntimeContext). [jasper2] log4j:WARN Please initialize the log4j system properly. BUILD FAILED /home/ltojsw/tc55-deployer/build.xml:45: java.lang.ExceptionInInitializerError Total time: 8 seconds The stack trace is below (running ant with -verbose flag). Any idea would fix this? Thank you - Richard [jasper2] Error in class org.apache.jasper.JspC BUILD FAILED /home/ltojsw/tc55-deployer/build.xml:45: java.lang.ExceptionInInitializerError at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:131) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) at org.apache.tools.ant.Task.perform(Task.java:364) at org.apache.tools.ant.Target.execute(Target.java:341) at org.apache.tools.ant.Target.performTasks(Target.java:369) at org.apache.tools.ant.Project.executeTarget(Project.java:1214) at org.apache.tools.ant.Project.executeTargets(Project.java:1062) at org.apache.tools.ant.Main.runBuild(Main.java:673) at org.apache.tools.ant.Main.startAnt(Main.java:188) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55) Caused by: java.lang.ExceptionInInitializerError at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:164) at org.apache.strutsel.taglib.html.ELFormTagBeanInfo.class$(ELFormTagBeanIn fo.java:41) at org.apache.strutsel.taglib.html.ELFormTagBeanInfo.getPropertyDescriptors (ELFormTagBeanInfo.java:41) at java.beans.Introspector.getTargetPropertyInfo(Introspector.java:475) at java.beans.Introspector.getBeanInfo(Introspector.java:385) at java.beans.Introspector.getBeanInfo(Introspector.java:155) at org.apache.jasper.compiler.Generator$TagHandlerInfo.init(Generator.jav a:3676) at org.apache.jasper.compiler.Generator$GenerateVisitor.getTagHandlerInfo(G enerator.java:2098) at org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.jav a:1579) at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1441) at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163) at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213) at org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.jav a:1685) at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1441) at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163) at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213) at org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.jav a:1685) at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1441) at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163) at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213) at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2219) at org.apache.jasper.compiler.Node$Root.accept(Node.java:456) at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163) at org.apache.jasper.compiler.Generator.generate(Generator.java:3268) at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:189) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:286) at org.apache.jasper.JspC.processFile(JspC.java:854) at org.apache.jasper.JspC.execute(JspC.java:989) at
Allow Apache to Serve Static Content
Hi all, I have Apache integrated with Tomcat using mod_jk2 and all is working well with the exception of performance. I would like to direct Apache to serve the static content components of my Java application. How is this done? I presume there must be some type of httpd.conf setting to do this? David A. Morrow Technical Systems Lead Autodata Solutions Company [EMAIL PROTECTED] http://www.autodata.net Tel: (519) 951-6079 Fax: (519) 451-6615 Poor planning on your part does not necessarily constitute an emergency on my part. This message has originated from Autodata Solutions. The attached material is the Confidential and Proprietary Information of Autodata Solutions. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please delete this message and notify the Autodata system administrator at [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
Re: Allow Apache to Serve Static Content
Point the DocumentRoot directory to your webapps directory. Then, in your jk mapping, map only *.jsp and *.servlet to Tomcat. ## WEBSITE ## VirtualHost * ServerAdmin [EMAIL PROTECTED] DocumentRoot /code/www/webapps/website/ROOT ServerName www.website.com CustomLog |/code/utils/cronolog/cronolog /logs/apache/website_access_log_%Y_%m_%d.txt combined ErrorLog |/code/utils/cronolog/cronolog /logs/apache/website_error_log_%Y_%m_%d.txt JkMount /*.jsp tomcat JkMount /*.do tomcat /VirtualHost Charlie Dave Morrow said the following on 2/15/2005 3:25 PM: Hi all, I have Apache integrated with Tomcat using mod_jk2 and all is working well with the exception of performance. I would like to direct Apache to serve the static content components of my Java application. How is this done? I presume there must be some type of httpd.conf setting to do this? David A. Morrow Technical Systems Lead Autodata Solutions Company [EMAIL PROTECTED] http://www.autodata.net Tel: (519) 951-6079 Fax: (519) 451-6615 Poor planning on your part does not necessarily constitute an emergency on my part. This message has originated from Autodata Solutions. The attached material is the Confidential and Proprietary Information of Autodata Solutions. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please delete this message and notify the Autodata system administrator at [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Allow Apache to Serve Static Content
rather than setup tomcat + jk2 + apache, I would recommend setting up a dedicated image server. If you look at the static file benchmark results I posted recently, tomcat is actually faster for 1k files and equal to apache for larger than 1k files. http://cvs.apache.org/~woolfel/tc_results.html I hope that helps peter On Tue, 15 Feb 2005 15:25:28 -0500, Dave Morrow [EMAIL PROTECTED] wrote: Hi all, I have Apache integrated with Tomcat using mod_jk2 and all is working well with the exception of performance. I would like to direct Apache to serve the static content components of my Java application. How is this done? I presume there must be some type of httpd.conf setting to do this? David A. Morrow Technical Systems Lead Autodata Solutions Company [EMAIL PROTECTED] http://www.autodata.net Tel: (519) 951-6079 Fax: (519) 451-6615 Poor planning on your part does not necessarily constitute an emergency on my part. This message has originated from Autodata Solutions. The attached material is the Confidential and Proprietary Information of Autodata Solutions. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please delete this message and notify the Autodata system administrator at [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5.5.7 deployer ExceptionInInitializer error in Struts getMessageResources
Sven, Sorry I was unclear. I should have said that under Windows XP it compiles fine. Same version of Tomcat (5.5.7), Ant (1.6.2) and similar versions of Java: XP: c:\EclipseProjects\workspace\starsjava -version java version 1.5.0_01 Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_01-b08) Java HotSpot(TM) Client VM (build 1.5.0_01-b08, mixed mode, sharing) SuSE Linux user1:~/tc55-deployer java -version java version 1.5.0_01 Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_01-b08) Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_01-b08, mixed mode) user1:~/tc55-deployer What is even weirder (which probably means it is just a config issue somewhere) is that when I set up a log4j.properties file to see if that will illuminate the problem in jasper, I get a different exception (NPE). I've attached two runs below that show where this happens. Thank you - Richard user1:~ cd tc55-deployer/ user1:~ export ANT_HOME=/opt/apache-ant-1.6.2 user1:~ . /etc/sysconfig/tc55 user1:~ . setJava $SETJAVA_OPTS user1:~/tc55-deployer java -version java version 1.5.0_01 Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_01-b08) Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_01-b08, mixed mode) user1:~/tc55-deployer user1:~/tc55-deployer pwd /home/user1/tc55-deployer user1:~/tc55-deployer $ANT_HOME/bin/ant clean LOCALCLASSPATH=/opt/apache-ant-1.6.2/lib/ant-launcher.jar:/home/user1/to mcat-deployer/log4j-1.2.8.jar LOCALCLASSPATH=/opt/apache-ant-1.6.2/lib/ant-launcher.jar:/home/user1/to mcat-deployer/log4j-1.2.8.jar Buildfile: build.xml clean: [delete] Deleting directory /home/user1/tc55-deployer/build BUILD SUCCESSFUL Total time: 1 second user1:~/tc55-deployer $ANT_HOME/bin/ant --execdebug compile LOCALCLASSPATH=/opt/apache-ant-1.6.2/lib/ant-launcher.jar:/home/user1/to mcat-deployer/log4j-1.2.8.jar LOCALCLASSPATH=/opt/apache-ant-1.6.2/lib/ant-launcher.jar:/home/user1/to mcat-deployer/log4j-1.2.8.jar exec /usr/java/jdk1.5.0_01/bin/java -Xms256m -Xmx256m -classpath /opt/apache-ant-1.6.2/lib/ant-launcher.jar:/home/user1/tomcat-deployer/ log4j-1.2.8.jar -Dant.home=/opt/apache-ant-1.6.2 -Dant.library.dir=/ opt/apache-ant-1.6.2/lib org.apache.tools.ant.launch.Launcher -lib compile Buildfile: build.xml clean: customizeContext: [echo] Customizing /home/user1/tc55-deployer/build/webapp/stars/META-INF/stars.xml [move] Moving 1 files to /home/user1/tc55-deployer/stars/META-INF [echo] Changing hibernate.connection.driver_class to com.mysql.jdbc.Driver [copy] Copying 1 file to /home/user1/tc55-deployer/stars/META-INF [copy] Copying /home/user1/tc55-deployer/stars/META-INF/context.xml_bak to /home/user1/tc55-deployer/stars/META-INF/context.xml [echo] Customizing stars/WEB-INF/web.xml [move] Moving 1 files to /home/user1/tc55-deployer/stars/WEB-INF [copy] Copying 1 file to /home/user1/tc55-deployer/stars/WEB-INF [echo] Customizing stars/WEB-INF/classes/treecache.xml [move] Moving 1 files to /home/user1/tc55-deployer/stars/WEB-INF/classes [copy] Copying 1 file to /home/user1/tc55-deployer/stars/WEB-INF/classes [echo] Set location to redirect user to when logging off [move] Moving 1 files to /home/user1/tc55-deployer/stars/WEB-INF [copy] Copying 1 file to /home/user1/tc55-deployer/stars/WEB-INF [echo] l4j.error.mail: true; [echo] customizeLog4jProperties: true; customizeContext2: [echo] Customizing /home/user1/tc55-deployer/build/webapp/stars/WEB-INF/classes/log4j.prope rties [move] Moving 1 files to /home/user1/tc55-deployer/stars/WEB-INF/classes [copy] Copying 1 file to /home/user1/tc55-deployer/stars/WEB-INF/classes compile: [copy] Copying 620 files to /home/user1/tc55-deployer/build/webapp/stars [jasper2] log4j:WARN No appenders could be found for logger (org.apache.jasper.compiler.JspRuntimeContext). [jasper2] log4j:WARN Please initialize the log4j system properly. BUILD FAILED /home/user1/tc55-deployer/build.xml:56: java.lang.ExceptionInInitializerError Total time: 9 seconds user1:~/tc55-deployer [ NOW ADD log4j.properties TO THE CLASSPATH] user1:~/tc55-deployer export LOCALCLASSPATH=/home/user1/tc55-deployer/classes/ user1:~/tc55-deployer ls -l /home/user1/tc55-deployer/classes/ total 4 -rw-r--r-- 1 user1 users 513 2005-02-15 13:30 log4j.properties user1:~/tc55-deployer $ANT_HOME/bin/ant --execdebug compile LOCALCLASSPATH=/opt/apache-ant-1.6.2/lib/ant-launcher.jar:/home/user1/tc 55-deployer/classes/ LOCALCLASSPATH=/opt/apache-ant-1.6.2/lib/ant-launcher.jar:/home/user1/tc 55-deployer/classes/ exec /usr/java/jdk1.5.0_01/bin/java -Xms256m -Xmx256m -classpath /opt/apache-ant-1.6.2/lib/ant-launcher.jar:/home/user1/tc55-deployer/cl asses/ -Dant.home=/opt/apache-ant-1.6.2 -Dant.library.dir=/opt/apach e-ant-1.6.2/lib org.apache.tools.ant.launch.Launcher -lib compile Buildfile: build.xml clean: [delete] Deleting directory /home/user1/tc55-deployer/build customizeContext:
Re: Jakarta Tomcat Connector and IIS; no log being generated.
Aris, This worked out great. My servlet was not located under the webapps directory as the installer expected To get the choice of being able to have this servlet /example/ be a choice I had to create an empty directory under webapps called example before running the installer. Then everything worked smoothly and I can now access the servlet at http://localhost/example/Menu instead of just at http://localhost:8080/example/Menu. Thanks for the help. John Gordon - Original Message - From: Aris Javier [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Tuesday, February 15, 2005 12:11 AM Subject: RE: Jakarta Tomcat Connector and IIS; no log being generated. Hello! I have another workaround on connecting tomcat and iis... I used shiftomat. download the file and install it... it will automatically configure your system hasle free. http://www.shiftomat.com/opensource/ Aris -Original Message- From: John Gordon [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 15, 2005 12:14 AM To: tomcat-user@jakarta.apache.org Subject: Jakarta Tomcat Connector and IIS; no log being generated. I'm having a bit of trouble getting isapi_redirect.dll to work and generate a log. If anyone can see what step I'm missing please let me know. I have done the following. I am running a Windows Server 2003. My Tomcat version is 5.0.28. My IIS version is 6.0. 1.. In the registry I created a new registry key named HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi Redirector\1.0 2.. Added a string value with the name extension_uri and a value of the full path to the folder containing isap_redirect.dll 3.. Added a string value with the name log_file and a value pointing to my jakarta logs directory. 4.. Added a string value with the name log_level and a value of debug 5.. Added a string value with the name worker_file and a value which is the full path to my workers.properties file 6.. Added a string value with the name worker_mount_file and a value which is the full path to my uriworkermap.properties file 7.. Using the IIS management console, added a new virtual directory to my IIS web site. The name of the virtual directory is jakarta. Its physical path is the directory where I placed isapi_redirect.dll. Assigned it with execute access. 8.. Using the IIS management console, added isapi_redirect.dll as a filter in my IIS web site. Named it jakarta and set its executable to the full path to isapi_redirect.dll. 9.. Edited Filter DLLs key under HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\W3SVC\Parameters. Inserted the full path to isapi_redirect.dll. The green arrow showing activity in IIS is active for the filter. Nothing comes up when going to http://localhost/example/Menu My tomcat servlet comes up when going to http://localhost:8080/example/Menu My workers.properties file has worker.ajp13w.host=localhost worker.ajp13w.port=8009 worker.ajp13w.type=ajp13 My uriworkermap.properties file has /example/*=ajp13w I get no logs file in the location i placed the log file or anywhere else on my system for isapi. Thanks for any help. John Gordon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JNDI lookup returns NamingException
For various reasons, I need to put a Hashtable as a resource in the Tomcat Context. I have modified the server.xml as follows (note the resource entry of DBHashtable): Server port=8005 shutdown=SHUTDOWN debug=0 Listener className=org.apache.catalina.mbeans.ServerLifecycleListener debug=0/ Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener debug=0/ !-- Global JNDI resources -- GlobalNamingResources !-- Test entry for demonstration purposes -- Environment name=simpleValue type=java.lang.Integer value=30/ !-- Editable user database that can also be used by UserDatabaseRealm to authenticate users -- Resource name=UserDatabase auth=Container type=org.apache.catalina.UserDatabase description=User database that can be updated and saved /Resource Resource name=DBHashtable auth=Container type=java.util.Hashtable/ ResourceParams name=UserDatabase parameter namefactory/name valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value /parameter parameter namepathname/name valueconf/tomcat-users.xml/value /parameter /ResourceParams ResourceParams name=DBHashtable parameter namefactory/name valuecom.tsr.factory.HashtableFactory/value /parameter /ResourceParams /GlobalNamingResources ResourceLink name=linkToGlobal global=simpleValue type=java.lang.Integer/ !-- Define the Tomcat Stand-Alone Service -- Service name=Catalina !-- Define a non-SSL Coyote HTTP/1.1 Connector on the port specified during installation -- Connector port=8080 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false redirectPort=8443 acceptCount=100 debug=0 connectionTimeout=2 disableUploadTimeout=true / Connector port=8009 enableLookups=false redirectPort=8443 debug=0 protocol=AJP/1.3 / !-- Define the top level container in our container hierarchy -- Engine name=Catalina defaultHost=localhost debug=0 !-- Global logger unless overridden at lower levels -- Logger className=org.apache.catalina.logger.FileLogger prefix=catalina_log. suffix=.txt timestamp=true/ Realm className=org.apache.catalina.realm.UserDatabaseRealm debug=0 resourceName=UserDatabase/ Host name=localhost debug=0 appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=localhost_log. suffix=.txt timestamp=true/ /Host /Engine /Service /Server My application accesses this resource (well, tries to) using the following code: try { Context ctx = new InitialContext(); if(ctx == null ){ System.out.println(Boom - No Context); throw new NamingException(No Context - No DataBase Exists); } Context envCtx = (Context)ctx.lookup(java:comp/env); Object ud = (Object)envCtx.lookup(DBHashtable); }catch (NamingException ne){ ne.printStackTrace(); // throw new SQLException(Datasource Not Found); } It fails of the line Object ud = (Object)envCtx.lookup(DBHashtable); with the following error: javax.naming.NamingException: Cannot create resource instance at org.apache.naming.factory.ResourceEnvFactory.getObjectInstance(ResourceEnvFa ctory.java:99) at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:301) at org.apache.naming.NamingContext.lookup(NamingContext.java:791) at org.apache.naming.NamingContext.lookup(NamingContext.java:151) at LoginServlet.doPost(LoginServlet.java:37) at javax.servlet.http.HttpServlet.service(HttpServlet.java:709) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:157) at com.tsr.filters.RequestFilter.doFilter(RequestFilter.java:78) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:186) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:157) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:214) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex t.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContext Valve.java:198) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:152) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex t.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137 ) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex t.java:104) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117 ) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex t.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at
RE: Several configuration issues with Tomcat 5.5.7/Apache2 compiling JSPs - Fixed
It ended up being the CLASSPATH environment variable, which i suspected all along. Since our underlying code (some of it poorly written AFAIK, based on Tomcat 3 and the older JSP spec) relies on classes/jars being at a certain path in the directory tree, copying the classes over to the WEB-INF directories is not enough. You won't get ClassDefNotFound errors, but you will get NPEs. The exact reason for this, I don't know, (I have only a passing understanding of Java and the JSP spec) but I did find a workaround. It lies in the /bin/catalina.sh script, in which the CLASSPATH environment variable is overridden. I simply added the paths to my necessary .jar files in a separate script run at login, exporting them to another env variable (CLASSPATH2). I then edited $tomcat_home/bin/catalina.sh to look like this: ...snip... # Add on extra jar files to CLASSPATH if [ -n $JSSE_HOME ]; then CLASSPATH=$CLASSPATH:$JSSE_HOME/lib/jcert.jar:$JSSE_HOME/lib/jnet.jar: $JSSE_HOME/lib/jsse.jar fi CLASSPATH=$CLASSPATH:$CATALINA_HOME/bin/bootstrap.jar:$CATALINA_HOME/b in/commons-logging-api.jar:$CLASSPATH2 ...snip... And voila, everything works fine. It's a good tip if you're migrating from the Stone Age of Tomcat 3, as you don't have to re-code anything. If anyone knows of an easier, more modular way to do this, please drop me a line. Thanks for all your advice. Cheers orig message follows Forget classpath -- it's ignored in Tomcat 5.5 and as I remember, was being phased out in Tomcat 3 (wow -- have I been reading these mail lists for that long??). If you put your classes and jars in the right places, they will be found. In your case, the classes are being found, but some underlying code in biz.shipflex.Configuration is throwing an NPE. --David Sam Halicke wrote: Hi all, first time posting to the list. I'm having several problems migrating JSPs and class/jar files to Tomcat 5.5.7 from Tomcat 3. I understand this is a big move, but I'm trying to avoid any rewrite of the JSPs themselves. Documentation for tomcat 5.5.x is rather sparse and terribly cryptic. Each webapp is using its own local classes (which I have copied into the local WEB-INF directory in /classes /lib etc.), as well as some common classes/jars which have been copied into the /tomcat/common/ directory tree. Should I be using the /tomcat/shared/ tree? This does not seem to matter as jasper will consistently throw me errors from compiling the JSPs. Here is the root cause of one such error: HTTP 500 - Internal Server Error ROOT CAUSE java.lang.NullPointerException biz.shipflex.Configuration.getConfiguration(Configuration.java:51) org.apache.jsp.ShipFlex.Website.MainPage_jsp._jspService(org.apache.jsp.Shi p Flex.Website.MainPage_jsp:52) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java: 3 25) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) My basic setup is as follows: Apache 2.x /usr/local/apache Tomcat 5.5.7 /usr/local/tomcat [EMAIL PROTECTED] tomcat]# echo $CLASSPATH /usr/local/tomcat/webapps/Common/Classes/:/usr/local/tomcat/webapps/Shippin g /Classes/:/usr/local/tomcat/webapps/scripts/Classes/:/usr/java/jdk1.5.0_01/ l ib/ I have a feeling its something with my CLASSPATH, again, this is a touchy migration. I'll gladly copy any portions of web.xml and/or server.xml, etc to an additional message if needed. Any help or suggestions on things/files to look at would be most appreciated. TIA Sam Halicke Systems Administrator IMSure Network, 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Cannot create JDBC driver of class '' for connect URL 'null'
yes have defined that !-- Global JNDI resources -- GlobalNamingResources !-- Test entry for demonstration purposes -- Environment name=simpleValue type=java.lang.Integer value=30/ !-- Editable user database that can also be used by UserDatabaseRealm to authenticate users -- Resource name=UserDatabase auth=Container type=org.apache.catalina.UserDatabase description=User database that can be updated and saved /Resource ResourceParams name=UserDatabase parameter namefactory/name valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value /parameter parameter namepathname/name valueconf/tomcat-users.xml/value /parameter /ResourceParams Resource name=jdbc/myoracle auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/myoracle parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter namedriverClassName/name valueoracle.jdbc.driver.OracleDriver/value /parameter parameter nameurl/name valuejdbc:oracle:thin:[EMAIL PROTECTED]:1521:mysid/value /parameter parameter nameusername/name value**/value /parameter parameter namepassword/name value**/value /parameter parameter namemaxActive/name value20/value /parameter parameter namemaxIdle/name value10/value /parameter parameter namemaxWait/name value-1/value /parameter /ResourceParams /GlobalNamingResources From: Phillip Qin [EMAIL PROTECTED] Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org To: 'Tomcat Users List' tomcat-user@jakarta.apache.org Subject: RE: Cannot create JDBC driver of class '' for connect URL 'null' Date: Tue, 15 Feb 2005 13:32:59 -0500 Didn't you define url, password etc. in your server.xml GlobalNamingResources? -Original Message- From: g k [mailto:[EMAIL PROTECTED] Sent: February 15, 2005 12:49 PM To: tomcat-user@jakarta.apache.org Subject: RE: Cannot create JDBC driver of class '' for connect URL 'null' Server.xml contains : Resource name=jdbc/myoracle auth=Container type=javax.sql.DataSource/ No context tag is in server.xml Context.xml file contains Context ResourceLink global=jdbc/myoracle name=jdbc/myoracle type=javax.sql.DataSource/ /Context From: Phillip Qin [EMAIL PROTECTED] Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org To: 'Tomcat Users List' tomcat-user@jakarta.apache.org Subject: RE: Cannot create JDBC driver of class '' for connect URL 'null' Date: Tue, 15 Feb 2005 11:33:35 -0500 In your context.xml or server.xml, you would define your jdbc resource. Find out that url and post it here. Jdbc driver and location are correct. -Original Message- From: g k [mailto:[EMAIL PROTECTED] Sent: February 15, 2005 11:25 AM To: [EMAIL PROTECTED]; tomcat-user@jakarta.apache.org Subject: RE: Cannot create JDBC driver of class '' for connect URL 'null' Hi ojdbc14.jar - is in the tomcat/common/lib directory post jdc url? - not to clear on what this is? do i need to create a context.xml? regards Gurpreet From: David Short [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: 'Tomcat Users List' tomcat-user@jakarta.apache.org Subject: RE: Cannot create JDBC driver of class '' for connect URL 'null' Date: Tue, 15 Feb 2005 07:18:58 -0800 Rename the Oracle classes12.zip file to classes12.jar and move to the tomcat\common\lib directory. -Original Message- From: Phillip Qin [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 15, 2005 6:39 AM To: 'Tomcat Users List' Subject: RE: Cannot create JDBC driver of class '' for connect URL 'null' Post your jdbc url. -Original Message- From: g k [mailto:[EMAIL PROTECTED] Sent: February 15, 2005 6:44 AM To: tomcat-user@jakarta.apache.org Subject: Cannot create JDBC driver of class '' for connect URL 'null' Hi I have added Oracle resource params to the server.xml file and reference parameters to oracle in the web.xml When i startup tomcat - i get the following error: 11:20:38,385 [ConnectDB.java] [ConnectDB] [getConnectionPoolForOracle:101] - ERR OR - failed to get the connection: org.apache.commons.dbcp.SQLNestedException: C annot create JDBC driver of class '' for connect URL 'null', cause: No suitable driver 11:20:38,385 [SendMessageAction.java] [SendMessageAction] [Send:227] - DEBUG - C onnection after: null java.net.MalformedURLException: no protocol: at java.net.URL.init(URL.java:537) at java.net.URL.init(URL.java:434) at java.net.URL.init(URL.java:383) at com.csc.nhs.web.legacypas.struts.action.SendMessageAction.Send(SendMe ssageAction.java:231) any thoughts? regards Gurpreet - To unsubscribe, e-mail:
RE: Cannot create JDBC driver of class '' for connect URL 'null'
My url is jdbc:oracle:thin:@ora.mydomain.com:1521:SID -Original Message- From: g k [mailto:[EMAIL PROTECTED] Sent: February 15, 2005 5:15 PM To: tomcat-user@jakarta.apache.org Subject: RE: Cannot create JDBC driver of class '' for connect URL 'null' yes have defined that !-- Global JNDI resources -- GlobalNamingResources !-- Test entry for demonstration purposes -- Environment name=simpleValue type=java.lang.Integer value=30/ !-- Editable user database that can also be used by UserDatabaseRealm to authenticate users -- Resource name=UserDatabase auth=Container type=org.apache.catalina.UserDatabase description=User database that can be updated and saved /Resource ResourceParams name=UserDatabase parameter namefactory/name valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value /parameter parameter namepathname/name valueconf/tomcat-users.xml/value /parameter /ResourceParams Resource name=jdbc/myoracle auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/myoracle parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter namedriverClassName/name valueoracle.jdbc.driver.OracleDriver/value /parameter parameter nameurl/name valuejdbc:oracle:thin:[EMAIL PROTECTED]:1521:mysid/value /parameter parameter nameusername/name value**/value /parameter parameter namepassword/name value**/value /parameter parameter namemaxActive/name value20/value /parameter parameter namemaxIdle/name value10/value /parameter parameter namemaxWait/name value-1/value /parameter /ResourceParams /GlobalNamingResources From: Phillip Qin [EMAIL PROTECTED] Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org To: 'Tomcat Users List' tomcat-user@jakarta.apache.org Subject: RE: Cannot create JDBC driver of class '' for connect URL 'null' Date: Tue, 15 Feb 2005 13:32:59 -0500 Didn't you define url, password etc. in your server.xml GlobalNamingResources? -Original Message- From: g k [mailto:[EMAIL PROTECTED] Sent: February 15, 2005 12:49 PM To: tomcat-user@jakarta.apache.org Subject: RE: Cannot create JDBC driver of class '' for connect URL 'null' Server.xml contains : Resource name=jdbc/myoracle auth=Container type=javax.sql.DataSource/ No context tag is in server.xml Context.xml file contains Context ResourceLink global=jdbc/myoracle name=jdbc/myoracle type=javax.sql.DataSource/ /Context From: Phillip Qin [EMAIL PROTECTED] Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org To: 'Tomcat Users List' tomcat-user@jakarta.apache.org Subject: RE: Cannot create JDBC driver of class '' for connect URL 'null' Date: Tue, 15 Feb 2005 11:33:35 -0500 In your context.xml or server.xml, you would define your jdbc resource. Find out that url and post it here. Jdbc driver and location are correct. -Original Message- From: g k [mailto:[EMAIL PROTECTED] Sent: February 15, 2005 11:25 AM To: [EMAIL PROTECTED]; tomcat-user@jakarta.apache.org Subject: RE: Cannot create JDBC driver of class '' for connect URL 'null' Hi ojdbc14.jar - is in the tomcat/common/lib directory post jdc url? - not to clear on what this is? do i need to create a context.xml? regards Gurpreet From: David Short [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: 'Tomcat Users List' tomcat-user@jakarta.apache.org Subject: RE: Cannot create JDBC driver of class '' for connect URL 'null' Date: Tue, 15 Feb 2005 07:18:58 -0800 Rename the Oracle classes12.zip file to classes12.jar and move to the tomcat\common\lib directory. -Original Message- From: Phillip Qin [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 15, 2005 6:39 AM To: 'Tomcat Users List' Subject: RE: Cannot create JDBC driver of class '' for connect URL 'null' Post your jdbc url. -Original Message- From: g k [mailto:[EMAIL PROTECTED] Sent: February 15, 2005 6:44 AM To: tomcat-user@jakarta.apache.org Subject: Cannot create JDBC driver of class '' for connect URL 'null' Hi I have added Oracle resource params to the server.xml file and reference parameters to oracle in the web.xml When i startup tomcat - i get the following error: 11:20:38,385 [ConnectDB.java] [ConnectDB] [getConnectionPoolForOracle:101] - ERR OR - failed to get the connection: org.apache.commons.dbcp.SQLNestedException: C annot create JDBC driver of class '' for connect URL 'null', cause: No suitable driver 11:20:38,385 [SendMessageAction.java] [SendMessageAction] [Send:227] - DEBUG - C onnection after: null
RE: Tomcat 5.5.7 deployer ExceptionInInitializer error in Struts getMessageResources
Oops, great apologies. I just checked my XP configuration. As that is a development machine, we had the jasper2 task commented out. When running jasper we also get an exception, albeit it a slightly different one. ant compile works great on jakarta-tomcat-5.0.28, but will not compile on jakarta-tomcat-5.5.7. This is for both XP and Linux (SuSE Linux Enterprise Server 9), though the jasper errors are slightly different. Any suggestions at all on how to better diagnose this? Thank you - Richard Here's the XP error: [jasper2] java.lang.NullPointerException [jasper2] at org.apache.jasper.JspCompilationContext.createCompiler(JspCom pilationContext.java:220) [jasper2] at org.apache.jasper.JspC.processFile(JspC.java:847) [jasper2] at org.apache.jasper.JspC.execute(JspC.java:989) [jasper2] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [jasper2] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces sorImpl.java:39) [jasper2] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet hodAccessorImpl.java:25) [jasper2] at java.lang.reflect.Method.invoke(Method.java:585) [jasper2] at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:123 ) [jasper2] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.ja va:275) [jasper2] at org.apache.tools.ant.Task.perform(Task.java:364) [jasper2] at org.apache.tools.ant.Target.execute(Target.java:341) [jasper2] at org.apache.tools.ant.Target.performTasks(Target.java:369) [jasper2] at org.apache.tools.ant.Project.executeTarget(Project.java:1214) [jasper2] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:386) [jasper2] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.ja va:275) [jasper2] at org.apache.tools.ant.Task.perform(Task.java:364) [jasper2] at org.apache.tools.ant.Target.execute(Target.java:341) [jasper2] at org.apache.tools.ant.Target.performTasks(Target.java:369) [jasper2] at org.apache.tools.ant.Project.executeTarget(Project.java:1214) [jasper2] at org.apache.tools.ant.Project.executeTargets(Project.java:1062 ) [jasper2] at org.apache.tools.ant.Main.runBuild(Main.java:673) [jasper2] at org.apache.tools.ant.Main.startAnt(Main.java:188) [jasper2] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196) [jasper2] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55) [jasper2] Error in class org.apache.jasper.JspC [ant] Exiting C:\jakarta-tomcat-5.5.7-deployer\build.xml. BUILD FAILED C:\EclipseProjects\workspace\stars\build.xml:1429: The following error occurred while executing this line: C:\jakarta-tomcat-5.5.7-deployer\build.xml:56: org.apache.jasper.JasperException at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(Projec tHelper.java:539) at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:388) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) at org.apache.tools.ant.Task.perform(Task.java:364) at org.apache.tools.ant.Target.execute(Target.java:341) at org.apache.tools.ant.Target.performTasks(Target.java:369) at org.apache.tools.ant.Project.executeTarget(Project.java:1214) at org.apache.tools.ant.Project.executeTargets(Project.java:1062) at org.apache.tools.ant.Main.runBuild(Main.java:673) at org.apache.tools.ant.Main.startAnt(Main.java:188) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55) Caused by: C:\jakarta-tomcat-5.5.7-deployer\build.xml:56: org.apache.jasper.Jasp erException at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:131) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) at org.apache.tools.ant.Task.perform(Task.java:364) at org.apache.tools.ant.Target.execute(Target.java:341) at org.apache.tools.ant.Target.performTasks(Target.java:369) at org.apache.tools.ant.Project.executeTarget(Project.java:1214) at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:386) ... 10 more Caused by: org.apache.jasper.JasperException at org.apache.jasper.JspC.processFile(JspC.java:881) at org.apache.jasper.JspC.execute(JspC.java:989) 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:585) at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:123) ... 16 more --- Nested Exception --- C:\jakarta-tomcat-5.5.7-deployer\build.xml:56: org.apache.jasper.JasperException at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:131)
Re: Allow Apache to Serve Static Content
This assumes of course that you are running Apache and Tomcat on the same server. The concept is pretty much the same though. You set the DocumentRoot to where your static files reside on Apache and map your JSPs and servlets to your JK worker that redirects the request to your Tomcat instance. On Tue, 15 Feb 2005 15:48:18 -0500, Charles N. Harvey III [EMAIL PROTECTED] wrote: Point the DocumentRoot directory to your webapps directory. Then, in your jk mapping, map only *.jsp and *.servlet to Tomcat. ## WEBSITE ## VirtualHost * ServerAdmin [EMAIL PROTECTED] DocumentRoot /code/www/webapps/website/ROOT ServerName www.website.com CustomLog |/code/utils/cronolog/cronolog /logs/apache/website_access_log_%Y_%m_%d.txt combined ErrorLog |/code/utils/cronolog/cronolog /logs/apache/website_error_log_%Y_%m_%d.txt JkMount /*.jsp tomcat JkMount /*.do tomcat /VirtualHost Charlie Dave Morrow said the following on 2/15/2005 3:25 PM: Hi all, I have Apache integrated with Tomcat using mod_jk2 and all is working well with the exception of performance. I would like to direct Apache to serve the static content components of my Java application. How is this done? I presume there must be some type of httpd.conf setting to do this? David A. Morrow Technical Systems Lead Autodata Solutions Company [EMAIL PROTECTED] http://www.autodata.net Tel: (519) 951-6079 Fax: (519) 451-6615 Poor planning on your part does not necessarily constitute an emergency on my part. This message has originated from Autodata Solutions. The attached material is the Confidential and Proprietary Information of Autodata Solutions. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please delete this message and notify the Autodata system administrator at [EMAIL PROTECTED] mailto:[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]
Redirect with slash appended
Hi I have the problem that every time I access a servlet with a URL that is equal to a servlet's directory, Tomcat redirects me to an URL with a slash appended. E.g. I want to access /resources, and Tomcat redirects me to /resources/, which my servlet does not match. It expects to match to /resources. Is it possible to disable such redirects? I'm using Tomcat 5.5.7. Maybe it has something to do with the default servlet? Thanks Felix - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JNDI lookup returns NamingException
Hi, See if having a pair of the sequence of Resource ResourceParams instead of having Resource, Resource ResourceParams, ResourceParams. Also the ResourceLink seems to be misplaced, not that it will much difference for your set-up. aka_sergio --- Carl [EMAIL PROTECTED] wrote: For various reasons, I need to put a Hashtable as a resource in the Tomcat Context. I have modified the server.xml as follows (note the resource entry of DBHashtable): Server port=8005 shutdown=SHUTDOWN debug=0 Listener className=org.apache.catalina.mbeans.ServerLifecycleListener debug=0/ Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener debug=0/ !-- Global JNDI resources -- GlobalNamingResources !-- Test entry for demonstration purposes -- Environment name=simpleValue type=java.lang.Integer value=30/ !-- Editable user database that can also be used by UserDatabaseRealm to authenticate users -- Resource name=UserDatabase auth=Container type=org.apache.catalina.UserDatabase description=User database that can be updated and saved /Resource Resource name=DBHashtable auth=Container type=java.util.Hashtable/ ResourceParams name=UserDatabase parameter namefactory/name valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value /parameter parameter namepathname/name valueconf/tomcat-users.xml/value /parameter /ResourceParams ResourceParams name=DBHashtable parameter namefactory/name valuecom.tsr.factory.HashtableFactory/value /parameter /ResourceParams /GlobalNamingResources ResourceLink name=linkToGlobal global=simpleValue type=java.lang.Integer/ !-- Define the Tomcat Stand-Alone Service -- Service name=Catalina !-- Define a non-SSL Coyote HTTP/1.1 Connector on the port specified during installation -- Connector port=8080 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false redirectPort=8443 acceptCount=100 debug=0 connectionTimeout=2 disableUploadTimeout=true / Connector port=8009 enableLookups=false redirectPort=8443 debug=0 protocol=AJP/1.3 / !-- Define the top level container in our container hierarchy -- Engine name=Catalina defaultHost=localhost debug=0 !-- Global logger unless overridden at lower levels -- Logger className=org.apache.catalina.logger.FileLogger prefix=catalina_log. suffix=.txt timestamp=true/ Realm className=org.apache.catalina.realm.UserDatabaseRealm debug=0 resourceName=UserDatabase/ Host name=localhost debug=0 appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=localhost_log. suffix=.txt timestamp=true/ /Host /Engine /Service /Server My application accesses this resource (well, tries to) using the following code: try { Context ctx = new InitialContext(); if(ctx == null ){ System.out.println(Boom - No Context); throw new NamingException(No Context - No DataBase Exists); } Context envCtx = (Context)ctx.lookup(java:comp/env); Object ud = (Object)envCtx.lookup(DBHashtable); }catch (NamingException ne){ ne.printStackTrace(); // throw new SQLException(Datasource Not Found); } It fails of the line Object ud = (Object)envCtx.lookup(DBHashtable); with the following error: javax.naming.NamingException: Cannot create resource instance at org.apache.naming.factory.ResourceEnvFactory.getObjectInstance(ResourceEnvFa ctory.java:99) at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:301) at org.apache.naming.NamingContext.lookup(NamingContext.java:791) at org.apache.naming.NamingContext.lookup(NamingContext.java:151) at LoginServlet.doPost(LoginServlet.java:37) at javax.servlet.http.HttpServlet.service(HttpServlet.java:709) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:157) at com.tsr.filters.RequestFilter.doFilter(RequestFilter.java:78) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:186) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:157) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:214) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex t.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContext Valve.java:198) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:152) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex t.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
Re: JNDI lookup returns NamingException
Did you put ResourceLinks in your Default context or the Apps context? If not, you will not be able to see the resource. http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/globalresources.html And the link that is in your server.xml shouldn't be there or anywhere. See above link. Doug - Original Message - From: Carl [EMAIL PROTECTED] To: Tomcat User Group tomcat-user@jakarta.apache.org Sent: Tuesday, February 15, 2005 4:41 PM Subject: JNDI lookup returns NamingException For various reasons, I need to put a Hashtable as a resource in the Tomcat Context. I have modified the server.xml as follows (note the resource entry of DBHashtable): Server port=8005 shutdown=SHUTDOWN debug=0 Listener className=org.apache.catalina.mbeans.ServerLifecycleListener debug=0/ Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener debug=0/ !-- Global JNDI resources -- GlobalNamingResources !-- Test entry for demonstration purposes -- Environment name=simpleValue type=java.lang.Integer value=30/ !-- Editable user database that can also be used by UserDatabaseRealm to authenticate users -- Resource name=UserDatabase auth=Container type=org.apache.catalina.UserDatabase description=User database that can be updated and saved /Resource Resource name=DBHashtable auth=Container type=java.util.Hashtable/ ResourceParams name=UserDatabase parameter namefactory/name valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value /parameter parameter namepathname/name valueconf/tomcat-users.xml/value /parameter /ResourceParams ResourceParams name=DBHashtable parameter namefactory/name valuecom.tsr.factory.HashtableFactory/value /parameter /ResourceParams /GlobalNamingResources ResourceLink name=linkToGlobal global=simpleValue type=java.lang.Integer/ !-- Define the Tomcat Stand-Alone Service -- Service name=Catalina !-- Define a non-SSL Coyote HTTP/1.1 Connector on the port specified during installation -- Connector port=8080 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false redirectPort=8443 acceptCount=100 debug=0 connectionTimeout=2 disableUploadTimeout=true / Connector port=8009 enableLookups=false redirectPort=8443 debug=0 protocol=AJP/1.3 / !-- Define the top level container in our container hierarchy -- Engine name=Catalina defaultHost=localhost debug=0 !-- Global logger unless overridden at lower levels -- Logger className=org.apache.catalina.logger.FileLogger prefix=catalina_log. suffix=.txt timestamp=true/ Realm className=org.apache.catalina.realm.UserDatabaseRealm debug=0 resourceName=UserDatabase/ Host name=localhost debug=0 appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=localhost_log. suffix=.txt timestamp=true/ /Host /Engine /Service /Server My application accesses this resource (well, tries to) using the following code: try { Context ctx = new InitialContext(); if(ctx == null ){ System.out.println(Boom - No Context); throw new NamingException(No Context - No DataBase Exists); } Context envCtx = (Context)ctx.lookup(java:comp/env); Object ud = (Object)envCtx.lookup(DBHashtable); }catch (NamingException ne){ ne.printStackTrace(); // throw new SQLException(Datasource Not Found); } It fails of the line Object ud = (Object)envCtx.lookup(DBHashtable); with the following error: javax.naming.NamingException: Cannot create resource instance at org.apache.naming.factory.ResourceEnvFactory.getObjectInstance(ResourceEnvFa ctory.java:99) at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:301) at org.apache.naming.NamingContext.lookup(NamingContext.java:791) at org.apache.naming.NamingContext.lookup(NamingContext.java:151) at LoginServlet.doPost(LoginServlet.java:37) at javax.servlet.http.HttpServlet.service(HttpServlet.java:709) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:157) at com.tsr.filters.RequestFilter.doFilter(RequestFilter.java:78) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:186) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:157) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:214) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex t.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContext Valve.java:198) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:152) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex t.java:104) at
Re: [OT] Search in French database in English
Is that German application you are talking about ?. I dont know languages other than English. rgds Antony Paul On Tue, 15 Feb 2005 11:51:00 -0800 (PST), sven morales [EMAIL PROTECTED] wrote: Hi, Please look at the very robust Cocoon project under apache too. See http://cocoon.apache.org download the code via cvs, compile it and there is an Internationalization sample. Am positive you will like cocoon. Im not doing it justice with my very very simple explanation. You have to try it and see and it does run on Tomcat or resin, orion, oracle, jboss, etc.. :) aka_sergio --- Antony Paul [EMAIL PROTECTED] wrote: Hi all, Sorry for OT. Many here will have experience in developing multilingual sites. I have a doubt regarding searching in a database which stores information in English, French and German. The user can type the search keyword(usually it is customer name and address) in English and it has to match the word in all these languages. Is it possible ?. Any thoughts on this are welcome. rgds Antony Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Mail - Find what you need with new enhanced search. http://info.mail.yahoo.com/mail_250 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Session already invalidated
When i login to my application i get this error. pls advice. java.lang.IllegalStateException: getAttribute: Session already invalidated at org.apache.catalina.session.StandardSession.getAttribute (StandardSession.java:984) at org.apache.catalina.session.StandardSessionFacade.getAttribute (StandardSessionFacade.java:109) at gnu.beanfactory.SessionScope.get(Unknown Source) at gnu.beanfactory.BeanFactory.findInstance(Unknown Source) at gnu.beanfactory.BeanFactory.getObjectInstance(Unknown Source) at gnu.beanfactory.BeanFactory.getObjectInstance(Unknown Source) at gnu.beanfactory.BeanContext.lookup(Unknown Source) at gnu.beanfactory.BeanContext.lookup(Unknown Source) at org.apache.jsp.include.nav_jsp.checkAccess (org.apache.jsp.include.nav_jsp:62) at org.apache.jsp.include.nav_jsp._jspService (org.apache.jsp.include.nav_jsp:1601) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.jasper.servlet.JspServletWrapper.service (JspServletWrapper.java:325) at org.apache.jasper.servlet.JspServlet.serviceJspFile (JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterChain.java:157) at org.apache.catalina.core.StandardWrapperValve.invoke (StandardWrapperValve.java:214) at org.apache.catalina.core.StandardContextValve.invoke (StandardContextValve.java:178) at org.apache.catalina.core.StandardHostValve.invoke (StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:105) at org.apache.catalina.valves.AccessLogValve.invoke (AccessLogValve.java:526) at org.apache.catalina.core.StandardEngineValve.invoke (StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service (CoyoteAdapter.java:148) at org.apache.jk.server.JkCoyoteHandler.invoke (JkCoyoteHandler.java:300) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:383) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743) at org.apache.jk.common.ChannelSocket.processConnection (ChannelSocket.java:675) at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run (ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595) thanks SSK - Do you Yahoo!? Yahoo! Search presents - Jib Jab's 'Second Term'
Re: Session already invalidated
Please send example of code that is creating or getting the session. Thanks Dennis M. Payne Programmer / Analyst Information Systems Management Training Corp. e-mail: [EMAIL PROTECTED] web: http://www.mtctrains.com work: (801) 693-2635 fax: (801) 693-2900 [EMAIL PROTECTED] 02/15/05 9:59 PM When i login to my application i get this error. pls advice. java.lang.IllegalStateException: getAttribute: Session already invalidated at org.apache.catalina.session.StandardSession.getAttribute (StandardSession.java:984) at org.apache.catalina.session.StandardSessionFacade.getAttribute (StandardSessionFacade.java:109) at gnu.beanfactory.SessionScope.get(Unknown Source) at gnu.beanfactory.BeanFactory.findInstance(Unknown Source) at gnu.beanfactory.BeanFactory.getObjectInstance(Unknown Source) at gnu.beanfactory.BeanFactory.getObjectInstance(Unknown Source) at gnu.beanfactory.BeanContext.lookup(Unknown Source) at gnu.beanfactory.BeanContext.lookup(Unknown Source) at org.apache.jsp.include.nav_jsp.checkAccess (org.apache.jsp.include.nav_jsp:62) at org.apache.jsp.include.nav_jsp._jspService (org.apache.jsp.include.nav_jsp:1601) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.jasper.servlet.JspServletWrapper.service (JspServletWrapper.java:325) at org.apache.jasper.servlet.JspServlet.serviceJspFile (JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterChain.java:157) at org.apache.catalina.core.StandardWrapperValve.invoke (StandardWrapperValve.java:214) at org.apache.catalina.core.StandardContextValve.invoke (StandardContextValve.java:178) at org.apache.catalina.core.StandardHostValve.invoke (StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:105) at org.apache.catalina.valves.AccessLogValve.invoke (AccessLogValve.java:526) at org.apache.catalina.core.StandardEngineValve.invoke (StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service (CoyoteAdapter.java:148) at org.apache.jk.server.JkCoyoteHandler.invoke (JkCoyoteHandler.java:300) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:383) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743) at org.apache.jk.common.ChannelSocket.processConnection (ChannelSocket.java:675) at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run (ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595) thanks SSK - Do you Yahoo!? Yahoo! Search presents - Jib Jab's 'Second Term' - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Search in French database in English
It is in English. Did you try to visit the link I provided? aka_sergio --- Antony Paul [EMAIL PROTECTED] wrote: Is that German application you are talking about ?. I dont know languages other than English. rgds Antony Paul On Tue, 15 Feb 2005 11:51:00 -0800 (PST), sven morales [EMAIL PROTECTED] wrote: Hi, Please look at the very robust Cocoon project under apache too. See http://cocoon.apache.org download the code via cvs, compile it and there is an Internationalization sample. Am positive you will like cocoon. Im not doing it justice with my very very simple explanation. You have to try it and see and it does run on Tomcat or resin, orion, oracle, jboss, etc.. :) aka_sergio --- Antony Paul [EMAIL PROTECTED] wrote: Hi all, Sorry for OT. Many here will have experience in developing multilingual sites. I have a doubt regarding searching in a database which stores information in English, French and German. The user can type the search keyword(usually it is customer name and address) in English and it has to match the word in all these languages. Is it possible ?. Any thoughts on this are welcome. rgds Antony Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Mail - Find what you need with new enhanced search. http://info.mail.yahoo.com/mail_250 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Read only the mail you want - Yahoo! Mail SpamGuard. http://promotions.yahoo.com/new_mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Search in French database in English
I checked out CVS head compiled it and run it went to sample application Internationalization (i18n) Localization (l10n) and it is giving error. rgds Antony Paul On Tue, 15 Feb 2005 22:17:56 -0800 (PST), sven morales [EMAIL PROTECTED] wrote: It is in English. Did you try to visit the link I provided? aka_sergio --- Antony Paul [EMAIL PROTECTED] wrote: Is that German application you are talking about ?. I dont know languages other than English. rgds Antony Paul On Tue, 15 Feb 2005 11:51:00 -0800 (PST), sven morales [EMAIL PROTECTED] wrote: Hi, Please look at the very robust Cocoon project under apache too. See http://cocoon.apache.org download the code via cvs, compile it and there is an Internationalization sample. Am positive you will like cocoon. Im not doing it justice with my very very simple explanation. You have to try it and see and it does run on Tomcat or resin, orion, oracle, jboss, etc.. :) aka_sergio --- Antony Paul [EMAIL PROTECTED] wrote: Hi all, Sorry for OT. Many here will have experience in developing multilingual sites. I have a doubt regarding searching in a database which stores information in English, French and German. The user can type the search keyword(usually it is customer name and address) in English and it has to match the word in all these languages. Is it possible ?. Any thoughts on this are welcome. rgds Antony Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Mail - Find what you need with new enhanced search. http://info.mail.yahoo.com/mail_250 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Read only the mail you want - Yahoo! Mail SpamGuard. http://promotions.yahoo.com/new_mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Odd temp file being created: +~JF38289.tmp
I hope that this is a Tomcat question. I am using Tomcat 5.0 and Struts 1.2.6. I am getting a temp file seemingly related to my fonts whenever I dynamically create new image buttons on the fly, which I do on almost all pages, and then cache them. My code to get the fonts, reading from .ttf files, is as follows: public synchronized static Font getFont(String fontLogicalName, Map attributes) { Filefile = null; Fontfont = null; FileInputStream fontStream = null; String physicalName = null; String familyName = null; boolean realValue= true; physicalName = (String)fonts.get(fontLogicalName + FONT); familyName = (String)fonts.get(fontLogicalName + FAMILY); attributes.put(TextAttribute.FONT,fontLogicalName); attributes.put(TextAttribute.FAMILY,familyName); if(physicalName == null) { try { font = new Font(attributes); } catch (Exception e) { // ERROR HANDLING } } try { file = new File(MY_CLASSPATH_TO_FONT_FILE); fontStream = new FileInputStream(file); font = Font.createFont(Font.TRUETYPE_FONT,fontStream); font = font.deriveFont(attributes); fontStream.close(); } catch (FileNotFoundException fnfe) { // ERROR HANDLING } catch (IOException ioe) { // ERROR HANDLING } catch (FontFormatException ffe) { // ERROR HANDLING } return font; } Does anyone see why I am getting these files? Is this Tomcat related? The names are like +~JF38289.tmp. Any help? -- The radiance of all the stars does not equal a sixteenth part of the moon's radiance, likewise, good deeds giving us merit, all these do not equal a sixteenth part of the merit of loving-kindness.. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem with admin webapp
Hi Tomcat Users ! I have a problem with the new admin webapp (admin 5.5.7 in tomcat 5.5.7). I downloaded it and installed and the manager shows the webapp as started. But I still get this message by calling http://localhost/admin Tomcat's administration web application is no longer installed by default. Download and install the admin package to use it. What can i do ? It seems taht the webapp is running but /admin calls the old index.html or errorpage !? Greetings Markus Kölzer Softwareentwicklung GCC SSC MSS PC3 T-Systems International GmbH +49 681 2547