catalina-ant : weird occurance?
I'm deploying a war to Tomcat (4.1.24) using ant (1.5.3) and the catalina-ant tasks, Windows XP. If I use the install command with one of its parameters as war=file://C:/my-app.war it works fine. If I now define resources in a context.xml and add that as the config parameter in the install task : config=file://C:/context.xml I get java.io.IOException: Host not found: C Now, get this, if I change the parameter to: config=file:/C:/context.xml (one slash less) it works! Is this a bug? Or why is the format of the file:// different for the war and config parameters? Did someone else come across this? __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Webapp admin delete a part of server.xml
Hi, I use a tomcat 4.1.18 on a Linux RedHat 7.3, and i have written in my server.xml this line between the two tag of Context: Resources className=org.apache.naming.resources.FileDirContext allowLinking=true/ Like this i can use linking for my directory of images in my webapp But when i use the webapp admin in order to change any parameter of my server.xml, i save , and i commit the changes...that's ok but i lose my line Resources className=org.apache.naming.resources.FileDirContext allowLinking=true/ so i must add this line in my server.xml with an editor. Anyone know why i lost this parameter when i use the webapp admin Thanks to all Yannick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: TomCat and EJBs in WebSphere
Try putting the jars you need in WEB-INF/lib -Original Message- From: brainSucka [mailto:[EMAIL PROTECTED] Sent: 08 July 2003 00:32 To: [EMAIL PROTECTED] Subject: Re: TomCat and EJBs in WebSphere absolutely no one out there, who can help me :-((( - Original Message - From: brainSucka [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, July 04, 2003 7:03 AM Subject: TomCat and EJBs in WebSphere Hi Guys! Im trying to use my TomCat as EJB-Client and reach WebSphere5 EJBs. (This is necessary for a special scenario i try to access). To reach WebSphere-JNDI-Namespace with a Client, one has to use the launchClient.bat that is shipped with WebSphere. This batch sets several properties, uses IBM-JRE and starts a com.ibmWSLauncher class. With this class the EJB-client is started. This works fine with a simple test-class that uses com.ibmInitialFactory. Now i tried to add the property-settings into catalina.bat, startup.bat = and setclasspath.bat. The problem is, that the WSLauncher starts the TomCat Bootstrap thats a Launcher itself. I read that TomCat ignores property-set Classpath e.g.. I tried to add = the .jars that are needed in TC\common\lib, but they still ignored. This = means, that i cant start TomCat, because it wants to instanciate the Factory. I tried to use a Factory thats included in j2se too, but its imopssible = to reach WebSphere JNDI-Namespace with it. I really need a solution :- Hope someone out there that can help me :-)) Greetings Patrick Elgner - 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]
Log Compiler errors
Hi , I have to log the compiler errors occured while build using Ant 1.5.1. How to get the files giving compile error inside a Task, which implements BuildListener. also please let me know how to get the last person who checked in the file into CVS. please let me know asap with luv, bas SMS using the Yahoo! Messenger;Download latest version.
Tomcat on windows 98
Hi, Will tomcat4.18 work on windows 98??? I am facing with the installation problems???I have read somewhere on the net that it wont work on windows 98. Would you please let me know. As a work around,after I installed 4.1.18. and at the command prompt i've entered into 4.0/bin directory. but the autoexec file contains catalina home as 4.1.18. and i gave catalina run at 4.0/bin. it has started apache 4.1.18 bcos of catalina home in autoexec is referring to that version of tomcat. Please tell me whether it is appropriate to run this service like this. will i get the features of 4.1.18 like this. Thanks GVS - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat on windows 98
GVS Srinivas a écrit: Hi, Will tomcat4.18 work on windows 98??? yes it work's I am facing with the installation problems???I have read somewhere on the net that it wont work on windows 98. it's wrong, we use some tomcat 4.1.18 for our developpers on w98 Would you please let me know. As a work around,after I installed 4.1.18. and at the command prompt i've entered into 4.0/bin directory. but the autoexec file contains catalina home as 4.1.18. and i gave catalina run at 4.0/bin. it has started apache 4.1.18 bcos of catalina home in autoexec is referring to that version of tomcat. Please tell me whether it is appropriate to run this service like this. will i get the features of 4.1.18 like this. is you installation of JDK is correct ? if you have any problem, put the JAVA_HOME in the autoexec.bat, so in the command prompt go to the bin directory and type catalina run and tomcat start ps: you must change properties of your shortcut for command prompt set the memory to 4096 Yannick Thanks GVS - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Where to put java code
I'm running jakarta-tomcat-4.1.18 for the purpose of serving with Cocoon, and that's working fine. But I also have a handful of users who have small .jsp files, most of which are trivial (the files, not the users :-)...with one exception, which calls on a custom search bean. This was working fine under the old JServ, but I can't make it work under jakarta-tomcat. The error messages in all the localhost_log.-MM-DD.txt files say: 2003-07-07 09:37:01 Error compiling file: /usr/local/tomcat/jakarta-tomcat-4.1.18/work/Standalone/localhost/_/info/eolas/2002/3_11/search_jsp.java [javac] Compiling 1 source file /usr/local/tomcat/jakarta-tomcat-4.1.18/work/Standalone/localhost/_/info/eolas/2002/3_11/search_jsp.java:48: package ie.b2bsoft.eolas does not exist ie.b2bsoft.eolas.SearchBean Search1 = null; ^ so I've obviously put it in the wrong place, but the Class Loader HOW-TO at http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html says: For classes and resources specific to a particular web application, place unpacked classes and resources under /WEB-INF/classe of your web application archive, or place JAR files containing those classes and resources under /WEB-INF/lib of your web application archive. [presumably that should be classes in the second line], which is exactly where I *have* put the unpacked stuff. This server also runs regular Apache, and the JSP users all have regular HTML sites under the Apache docroot, so I have softlinked that docroot to ROOT in my jakarta-tomcat-4.1.18/webapps (yes, I know it's a horrible thing to do). In that docroot is a WEB-INF directory containing the classes subdirectory containing the unpacked classes thus: /usr/local/tomcat/jakarta-tomcat-4.1.18/webapps/ROOT/WEB-INF/classes/ie/b2bsoft/eolas: drwxrwxr-x2 root root 4096 Oct 12 2001 . drwxrwxr-x3 root root 4096 Oct 12 2001 .. -rw-rw-r--1 root root 1976 Oct 12 2001 HParser.class -rw-rw-r--1 root root 1180 Oct 12 2001 HParser.java -rw-rw-r--1 root root 3218 Oct 12 2001 SearchBean.class -rw-rw-r--1 root root 2111 Oct 12 2001 SearchBean.java The error message refers to a package (by which it presumably means a jar file?) but the classes were supplied unpacked so I typed jar cf eolas.jar . in the classes directory and moved the eolas.jar file to the lib directory...still no change. What have I done wrong? (apart from not being a Java person :-) ///Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat on windows 98
find the attachment which will guide to run tomcat - Original Message - From: GVS Srinivas [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 08, 2003 2:01 PM Subject: Tomcat on windows 98 Hi, Will tomcat4.18 work on windows 98??? I am facing with the installation problems???I have read somewhere on the net that it wont work on windows 98. Would you please let me know. As a work around,after I installed 4.1.18. and at the command prompt i've entered into 4.0/bin directory. but the autoexec file contains catalina home as 4.1.18. and i gave catalina run at 4.0/bin. it has started apache 4.1.18 bcos of catalina home in autoexec is referring to that version of tomcat. Please tell me whether it is appropriate to run this service like this. will i get the features of 4.1.18 like this. Thanks GVS - 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: Where to put java code
Tomcat, by default, has symbolic links disabled. -Original Message- From: Peter Flynn [mailto:[EMAIL PROTECTED] Sent: 08 July 2003 10:54 To: Tomcat Users List Subject: Where to put java code I'm running jakarta-tomcat-4.1.18 for the purpose of serving with Cocoon, and that's working fine. But I also have a handful of users who have small .jsp files, most of which are trivial (the files, not the users :-)...with one exception, which calls on a custom search bean. This was working fine under the old JServ, but I can't make it work under jakarta-tomcat. The error messages in all the localhost_log.-MM-DD.txt files say: 2003-07-07 09:37:01 Error compiling file: /usr/local/tomcat/jakarta-tomcat-4.1.18/work/Standalone/localhost/_/info/eol as/2002/3_11/search_jsp.java [javac] Compiling 1 source file /usr/local/tomcat/jakarta-tomcat-4.1.18/work/Standalone/localhost/_/info/eol as/2002/3_11/search_jsp.java:48: package ie.b2bsoft.eolas does not exist ie.b2bsoft.eolas.SearchBean Search1 = null; ^ so I've obviously put it in the wrong place, but the Class Loader HOW-TO at http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html says: For classes and resources specific to a particular web application, place unpacked classes and resources under /WEB-INF/classe of your web application archive, or place JAR files containing those classes and resources under /WEB-INF/lib of your web application archive. [presumably that should be classes in the second line], which is exactly where I *have* put the unpacked stuff. This server also runs regular Apache, and the JSP users all have regular HTML sites under the Apache docroot, so I have softlinked that docroot to ROOT in my jakarta-tomcat-4.1.18/webapps (yes, I know it's a horrible thing to do). In that docroot is a WEB-INF directory containing the classes subdirectory containing the unpacked classes thus: /usr/local/tomcat/jakarta-tomcat-4.1.18/webapps/ROOT/WEB-INF/classes/ie/b2bs oft/eolas: drwxrwxr-x2 root root 4096 Oct 12 2001 . drwxrwxr-x3 root root 4096 Oct 12 2001 .. -rw-rw-r--1 root root 1976 Oct 12 2001 HParser.class -rw-rw-r--1 root root 1180 Oct 12 2001 HParser.java -rw-rw-r--1 root root 3218 Oct 12 2001 SearchBean.class -rw-rw-r--1 root root 2111 Oct 12 2001 SearchBean.java The error message refers to a package (by which it presumably means a jar file?) but the classes were supplied unpacked so I typed jar cf eolas.jar . in the classes directory and moved the eolas.jar file to the lib directory...still no change. What have I done wrong? (apart from not being a Java person :-) ///Peter - 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]
strange error
I ran the tomcat for second time and now when i try to stop it behaves like this.. [EMAIL PROTECTED] bin]# ./shutdown.sh Guessing CATALINA_HOME from catalina.sh to ./.. Setting CATALINA_HOME to ./.. Using CLASSPATH: ./../bin/bootstrap.jar:/usr/local/j2sdk1.4.0_01/lib/tools.jar Using CATALINA_BASE: ./.. Using CATALINA_HOME: ./.. Using JAVA_HOME: /usr/local/j2sdk1.4.0_01 Exception during startup processing java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243) Caused by: java.lang.ClassFormatError: org/apache/xerces/readers/DefaultEntityHandler$NullReader (Illegal Class name java/lang/Exce`tion) at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:509) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123) at java.net.URLClassLoader.defineClass(URLClassLoader.java:246) at java.net.URLClassLoader.access$100(URLClassLoader.java:54) at java.net.URLClassLoader$1.run(URLClassLoader.java:193) at java.security.AccessController.doPrivileged(Native Method) at org.apache.catalina.util.xml.XmlMapper.readXml(XmlMapper.java:228) at org.apache.catalina.startup.Catalina.stop(Catalina.java:817) at org.apache.catalina.startup.Catalina.execute(Catalina.java:683) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) and more like thisIf someone could understand the possible cause.. regards. -- harsh http://www.cse.iitb.ac.in/~harsh -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: strange error
Sounds like you may have a corrupted .jar file. -Original Message- From: harsh [mailto:[EMAIL PROTECTED] Sent: 08 July 2003 10:18 To: Tomcat Users List Subject: strange error I ran the tomcat for second time and now when i try to stop it behaves like this.. [EMAIL PROTECTED] bin]# ./shutdown.sh Guessing CATALINA_HOME from catalina.sh to ./.. Setting CATALINA_HOME to ./.. Using CLASSPATH: ./../bin/bootstrap.jar:/usr/local/j2sdk1.4.0_01/lib/tools.jar Using CATALINA_BASE: ./.. Using CATALINA_HOME: ./.. Using JAVA_HOME: /usr/local/j2sdk1.4.0_01 Exception during startup processing java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243) Caused by: java.lang.ClassFormatError: org/apache/xerces/readers/DefaultEntityHandler$NullReader (Illegal Class name java/lang/Exce`tion) at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:509) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123) at java.net.URLClassLoader.defineClass(URLClassLoader.java:246) at java.net.URLClassLoader.access$100(URLClassLoader.java:54) at java.net.URLClassLoader$1.run(URLClassLoader.java:193) at java.security.AccessController.doPrivileged(Native Method) at org.apache.catalina.util.xml.XmlMapper.readXml(XmlMapper.java:228) at org.apache.catalina.startup.Catalina.stop(Catalina.java:817) at org.apache.catalina.startup.Catalina.execute(Catalina.java:683) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) and more like thisIf someone could understand the possible cause.. regards. -- harsh http://www.cse.iitb.ac.in/~harsh -- - 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]
A question about filters
Hi After a lot of experimenting and hassle i've come to the conclusion that i have misundeerstood how filters work. I thought i could make a filter for the entire website, and all requests to that website would go through a specified filter. This is not possible, as far as i know?? You can only make filters connected to some webapp, and all requests to that webapp will go through the filter. What i mean is, if you have a site called : http://www.somesite.com/ You can't set up a filter for all request with this url-pattern. You can set up a filter to : http://www.somesite.com/mywebapp/ Or any other context that you specify after the website address. Anyone here know a way for me to set up a filter for all requests to a webiste ? Regards, Abid - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Double decoding of URL
Tim is right, it's a problem with mod_jk. If you install Apache/mod_jk/Tomcat with the default configuration, URLs are decoded twice, once by mod_jk and once by Tomcat. This only caused problems for URLs containing '%' characters, because those are the only ones that are affected by the second decoding. To stop this behaviour you need to set one of the following options in the mod_jk-configuring section of httpd.conf: JkOptions +ForwardURICompatUnparsed or JkOptions +ForwardURIEscaped Does anyone know what the difference between these two is? The page that Tim points to below says: ForwardURICompat - you told mod_jk to send the URI to Tomcat normally, which is less spec compliant but mod_rewrite compatible, use it for compatibility with Tomcat 3.2.x engines (on by default) ForwardURICompatUnparsed - the forwarded URI is unparsed, it's spec compliant but broke mod_rewrite ForwardURIEscaped - the forwarded URI is escaped and Tomcat (since 3.3 rc2) will do the decoding part I've found another page (http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/configwebcom.html), which says: ForwardURICompat - pass the URI untouched ForwardURICompatUnparsed - parse the URI until the '?' ForwardURIEscaped - pass the URI escaped Not much more enlightening. Any ideas? Ben -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: 07 July 2003 18:30 To: Tomcat Users List Subject: Re: Double decoding of URL I cannot reproduce this (standalone 4.1.24 standalone). Do you get the same problem with the standalone connectors? Otherwise, have you played with the Jk options http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk/aphowto.html For example: +ForwardURIEscaped +ForwardURICompatUnparsed, or +ForwardURICompat ?? I have never used those options but if the are set (or unset) - then they might be causing your problem. -Tim Benjamin Butler-Cole wrote: I agree that that is the expected behaviour. However the URL seems to be decoded *twice*. 'a%25sdf' - 'a%sdf' - 'a f' The second decoding is converting '%sd' to ' ', presumably because it's garbage. As Tim says, getRequestURL() doesn't decode the string, but I am seeing the '%25' decoded to '%'. For a request to 'http://localhost/escape/a%25sdf', the value of getRequestURL() is 'http://sekhmet.datcon.co.uk/escape/a%sdf'. -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: 07 July 2003 16:53 To: Tomcat Users List Subject: Re: Double decoding of URL The current behavior seems OK. getRequestURL() returns the URL. This method was originally in HttpUtils. It acts much like getRequestURI() which in the javadocs explicitly says: The web container does not decode this String getPathInfo() OTOH according the the javadocs says... Returns: a String, decoded by the web container -Tim Benjamin Butler-Cole wrote: I am having a problem with Apache/mod_jk/Ajp13Connector/Tomcat. If I make a request to a servlet with '%' in the path, the URL appears to be being decoded twice. I have a servlet mapping of escape - escape.jsp. That JSP contains the following: %= request.getPathInfo() % %= request.getRequestURL() % A request to http://localhost/escape/a%25sdf returns /a f http://sekhmet.datcon.co.uk/escape/a%sdf And http://sekhmet/escape/a%21sdf gives /a!sdf http://sekhmet.datcon.co.uk/escape/a!sdf Note that getRequestURL() returns the URL *without* decoding it, while getPathInfo() does decode. So it looks like the URL is already decoded before it reaches Tomcat (by Apache or the connector). I would expect the values of getPathInfo() to be '/a%sdf' and '/a!sdf', and the values of getRequestURL to contain '%25' and '%21'. Does anyone know what's going on? The relevant bits of my configuration files are below. Thanks Ben - 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: Tomcat on windows 98
Hi pavan The attachement u sent only contains the below message. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] earlier versions of tomcat had no problems with windows 98 I think but with tomcat4.18 I am facing some annoying problems. Would you please resend the attach Thanks GVS -Original Message- From: Pavan Kumar Basa [mailto:[EMAIL PROTECTED] Sent: 08 July 2003 10:05 To: Tomcat Users List Subject:Re: Tomcat on windows 98 File: ATT79162.txt find the attachment which will guide to run tomcat - Original Message - From: GVS Srinivas [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 08, 2003 2:01 PM Subject: Tomcat on windows 98 Hi, Will tomcat4.18 work on windows 98??? I am facing with the installation problems???I have read somewhere on the net that it wont work on windows 98. Would you please let me know. As a work around,after I installed 4.1.18. and at the command prompt i've entered into 4.0/bin directory. but the autoexec file contains catalina home as 4.1.18. and i gave catalina run at 4.0/bin. it has started apache 4.1.18 bcos of catalina home in autoexec is referring to that version of tomcat. Please tell me whether it is appropriate to run this service like this. will i get the features of 4.1.18 like this. Thanks GVS - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ This e-mail has been scanned for viruses by MCI's Internet Managed Scanning Services - powered by MessageLabs. For further information visit http://www.mci.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: A question about filters
Abid, You are right, but if you set up the same filter in the web.xml for every webapp, you'll get the same effect. Andy -Original Message- From: Abid Ali Teepo [mailto:[EMAIL PROTECTED] Sent: 08 July 2003 10:30 To: Tomcat Users List Subject: A question about filters Hi After a lot of experimenting and hassle i've come to the conclusion that i have misundeerstood how filters work. I thought i could make a filter for the entire website, and all requests to that website would go through a specified filter. This is not possible, as far as i know?? You can only make filters connected to some webapp, and all requests to that webapp will go through the filter. What i mean is, if you have a site called : http://www.somesite.com/ You can't set up a filter for all request with this url-pattern. You can set up a filter to : http://www.somesite.com/mywebapp/ Or any other context that you specify after the website address. Anyone here know a way for me to set up a filter for all requests to a webiste ? Regards, Abid - 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: A question about filters
Yes, i suppose that will work, but there is also a web.xml file for the entire installation that is in the same place as the server.xml Is it possible to add a filter in these files ? Abid -Original Message- From: Andy Eastham [mailto:[EMAIL PROTECTED] Sent: 8. juli 2003 12:03 To: Tomcat Users List Subject: RE: A question about filters Abid, You are right, but if you set up the same filter in the web.xml for every webapp, you'll get the same effect. Andy -Original Message- From: Abid Ali Teepo [mailto:[EMAIL PROTECTED] Sent: 08 July 2003 10:30 To: Tomcat Users List Subject: A question about filters Hi After a lot of experimenting and hassle i've come to the conclusion that i have misundeerstood how filters work. I thought i could make a filter for the entire website, and all requests to that website would go through a specified filter. This is not possible, as far as i know?? You can only make filters connected to some webapp, and all requests to that webapp will go through the filter. What i mean is, if you have a site called : http://www.somesite.com/ You can't set up a filter for all request with this url-pattern. You can set up a filter to : http://www.somesite.com/mywebapp/ Or any other context that you specify after the website address. Anyone here know a way for me to set up a filter for all requests to a webiste ? Regards, Abid - 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]
Anonymous posting
Can i restrict domains of the forms posting to my form handling scripts.i.e only all the html or jsps inside http://www.mysite.com/ can post to my jsps,and noone writes his own HTML forms and post to my site .. i hope i m clear in what i m asking. regards harsh -- harsh http://www.cse.iitb.ac.in/~harsh -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Anonymous posting
Sounds like you are after some sort of filter. harsh wrote: Can i restrict domains of the forms posting to my form handling scripts.i.e only all the html or jsps inside http://www.mysite.com/ can post to my jsps,and noone writes his own HTML forms and post to my site .. i hope i m clear in what i m asking. regards harsh -- harsh http://www.cse.iitb.ac.in/~harsh -- - 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: Anonymous posting
Sounds like you are after some sort of filter. donno i m new to tomcat configurationsIf that's possible may i get some more details or some urls to study from or some google keywords. many thanks.. harsh harsh wrote: Can i restrict domains of the forms posting to my form handling scripts.i.e only all the html or jsps inside http://www.mysite.com/ can post to my jsps,and noone writes his own HTML forms and post to my site .. i hope i m clear in what i m asking. regards harsh -- harsh http://www.cse.iitb.ac.in/~harsh -- - 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]
Do the Webap support SSL ?
I want to know if the Webapp connector can support SSL protocol well. I use Solaris8+Apache1.3.27+Webapp+Tomcat4.1.24. I compiled Apache for SSL and I don't know if the figure below is right: Broswer ==https== Apache(webapp) ==http== Tomcat I found there are 2 options(scheme, secure) at Webapp document. Do I need to add this 2 options and config webapp like below at the server.xml file ? Connector className=org.apache.catalina.connector.warp.WarpConnector port=8008 minProcessors=5 maxProcessors=75 enableLookups=true acceptCount=10 debug=0 scheme=https secure=true/ !-- Replace localhost with what your Apache ServerName is set to -- Engine className=org.apache.catalina.connector.warp.WarpEngine name=Apache debug=0 appBase=webapps Rai.
RE: Anonymous posting
You will have to write the filter yourself, it's very much like a servlet. I guess you could set some sessionattribute with your form, and check for the same when the form is posted. If it's not there the sender has probably used his own form ... here are two introductory tutorials: http://www.javaworld.com/javaworld/jw-06-2001/jw-0622-filters.html http://javaboutique.internet.com/tutorials/Servlet_Filters/index.html Regards Abid -Original Message- From: harsh [mailto:[EMAIL PROTECTED] Sent: 8. juli 2003 12:40 To: Tomcat Users List Subject: Re: Anonymous posting Sounds like you are after some sort of filter. donno i m new to tomcat configurationsIf that's possible may i get some more details or some urls to study from or some google keywords. many thanks.. harsh harsh wrote: Can i restrict domains of the forms posting to my form handling scripts.i.e only all the html or jsps inside http://www.mysite.com/ can post to my jsps,and noone writes his own HTML forms and post to my site .. i hope i m clear in what i m asking. regards harsh -- harsh http://www.cse.iitb.ac.in/~harsh -- - 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 manager not working
I'm a real newbie in tomcat installation, but I know a bit about apache and linux. I've successfully installed Tomcat 4.1.24 with Apache 2.0.45 and mod_jk. I'm using IBM Java2 1.31. Everything is working fine : both PHP and JSP rulez ;-) My only problem is using Tomcat manager. Through Apache, I only see the directory listing of the manager's directory ($CATALINA_HOME/server/webapps/manager/). This directory listing is rendered by tomcat, not apache. However, when bypassing Apache mod_jk (I mean talking directly to tomcat, on it's own port), it works just fine : manager servlet is OK. If anyone has had the same problem and solved it, please tell me. If not, as I'm a newbie, could you tell me which log should I look for more information about this problem ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: A question about filters
Abid, The server web.xml is processed before the application web.xml, so it should work. You'll need to ensure the filter class is available to all webapps, so /common/lib (for a jar) or /common/classes(for a .class) is where I'd recommend. You'll need to use a filter map such as *. Why not give it a try and let us know what happens. All the best, Andy -Original Message- From: Abid Ali Teepo [mailto:[EMAIL PROTECTED] Sent: 08 July 2003 11:10 To: Tomcat Users List Subject: RE: A question about filters Yes, i suppose that will work, but there is also a web.xml file for the entire installation that is in the same place as the server.xml Is it possible to add a filter in these files ? Abid -Original Message- From: Andy Eastham [mailto:[EMAIL PROTECTED] Sent: 8. juli 2003 12:03 To: Tomcat Users List Subject: RE: A question about filters Abid, You are right, but if you set up the same filter in the web.xml for every webapp, you'll get the same effect. Andy -Original Message- From: Abid Ali Teepo [mailto:[EMAIL PROTECTED] Sent: 08 July 2003 10:30 To: Tomcat Users List Subject: A question about filters Hi After a lot of experimenting and hassle i've come to the conclusion that i have misundeerstood how filters work. I thought i could make a filter for the entire website, and all requests to that website would go through a specified filter. This is not possible, as far as i know?? You can only make filters connected to some webapp, and all requests to that webapp will go through the filter. What i mean is, if you have a site called : http://www.somesite.com/ You can't set up a filter for all request with this url-pattern. You can set up a filter to : http://www.somesite.com/mywebapp/ Or any other context that you specify after the website address. Anyone here know a way for me to set up a filter for all requests to a webiste ? Regards, Abid - 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: A question about filters
Yes, i think i will try that when you say filter map such as * you mean url-pattern as * right ? Abid -Original Message- From: Andy Eastham [mailto:[EMAIL PROTECTED] Sent: 8. juli 2003 13:05 To: Tomcat Users List Subject: RE: A question about filters Abid, The server web.xml is processed before the application web.xml, so it should work. You'll need to ensure the filter class is available to all webapps, so /common/lib (for a jar) or /common/classes(for a .class) is where I'd recommend. You'll need to use a filter map such as *. Why not give it a try and let us know what happens. All the best, Andy -Original Message- From: Abid Ali Teepo [mailto:[EMAIL PROTECTED] Sent: 08 July 2003 11:10 To: Tomcat Users List Subject: RE: A question about filters Yes, i suppose that will work, but there is also a web.xml file for the entire installation that is in the same place as the server.xml Is it possible to add a filter in these files ? Abid -Original Message- From: Andy Eastham [mailto:[EMAIL PROTECTED] Sent: 8. juli 2003 12:03 To: Tomcat Users List Subject: RE: A question about filters Abid, You are right, but if you set up the same filter in the web.xml for every webapp, you'll get the same effect. Andy -Original Message- From: Abid Ali Teepo [mailto:[EMAIL PROTECTED] Sent: 08 July 2003 10:30 To: Tomcat Users List Subject: A question about filters Hi After a lot of experimenting and hassle i've come to the conclusion that i have misundeerstood how filters work. I thought i could make a filter for the entire website, and all requests to that website would go through a specified filter. This is not possible, as far as i know?? You can only make filters connected to some webapp, and all requests to that webapp will go through the filter. What i mean is, if you have a site called : http://www.somesite.com/ You can't set up a filter for all request with this url-pattern. You can set up a filter to : http://www.somesite.com/mywebapp/ Or any other context that you specify after the website address. Anyone here know a way for me to set up a filter for all requests to a webiste ? Regards, Abid - 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: A question about filters
Hi again Yep :-) it works for the whole application if you put the definition in the application web.xml. Thank you for your help. Abid -Original Message- From: Andy Eastham [mailto:[EMAIL PROTECTED] Sent: 8. juli 2003 13:05 To: Tomcat Users List Subject: RE: A question about filters Abid, The server web.xml is processed before the application web.xml, so it should work. You'll need to ensure the filter class is available to all webapps, so /common/lib (for a jar) or /common/classes(for a .class) is where I'd recommend. You'll need to use a filter map such as *. Why not give it a try and let us know what happens. All the best, Andy -Original Message- From: Abid Ali Teepo [mailto:[EMAIL PROTECTED] Sent: 08 July 2003 11:10 To: Tomcat Users List Subject: RE: A question about filters Yes, i suppose that will work, but there is also a web.xml file for the entire installation that is in the same place as the server.xml Is it possible to add a filter in these files ? Abid -Original Message- From: Andy Eastham [mailto:[EMAIL PROTECTED] Sent: 8. juli 2003 12:03 To: Tomcat Users List Subject: RE: A question about filters Abid, You are right, but if you set up the same filter in the web.xml for every webapp, you'll get the same effect. Andy -Original Message- From: Abid Ali Teepo [mailto:[EMAIL PROTECTED] Sent: 08 July 2003 10:30 To: Tomcat Users List Subject: A question about filters Hi After a lot of experimenting and hassle i've come to the conclusion that i have misundeerstood how filters work. I thought i could make a filter for the entire website, and all requests to that website would go through a specified filter. This is not possible, as far as i know?? You can only make filters connected to some webapp, and all requests to that webapp will go through the filter. What i mean is, if you have a site called : http://www.somesite.com/ You can't set up a filter for all request with this url-pattern. You can set up a filter to : http://www.somesite.com/mywebapp/ Or any other context that you specify after the website address. Anyone here know a way for me to set up a filter for all requests to a webiste ? Regards, Abid - 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: Double decoding of URL
MY WAG (or interpretation) ... Benjamin Butler-Cole wrote: I've found another page (http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/configwebcom.html), which says: ForwardURICompat - pass the URI untouched Pass the URI as apache received it ForwardURICompatUnparsed - parse the URI until the '?' Decode the equivalent of SCRIPT_NAME - don't touch the query string ForwardURIEscaped - pass the URI escaped Decode the the whole request SCRIPT_NAME and QUERY_STRING My guess is some people had % in the file name or servlet name. So they needed a decoding to serve the correct reosurce. But others didn't want it decoded since it could lead to double (or incorrect) decoding of the query string. In any case - all 3 options probably had their roots in historical bugs/kludges in the early life of jk (or more likely jserv). -Tim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: cookie based session sharing among web apps
No - it breaks the servlet spec. Sessions are scoped to their own webapp. -Tim Harris Cotton wrote: I am keen on having two web applications be able to share sessions. Currently, tomcat creates and maintains a session for each web application for a client. Moving the session id to the url is an option, but one I hope to avoid because of the refactoring it would generate in my applications jsps. In essence, I want tomcat to use / as the url path in the JSESSIONID cookie, and use this session id in all web applications the tomcat server hosts. Can this be accomplished solely with configuration? Thank You - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: strange error
what tomcat version did you use. i got a similary error when i shutdown an older version of tomcat something like 4.1.24 or so. i have installed the newest tomcat version and this works fine. bernd Bodycombe, Andrew schrieb: Sounds like you may have a corrupted .jar file. -Original Message- From: harsh [mailto:[EMAIL PROTECTED] Sent: 08 July 2003 10:18 To: Tomcat Users List Subject: strange error I ran the tomcat for second time and now when i try to stop it behaves like this.. [EMAIL PROTECTED] bin]# ./shutdown.sh Guessing CATALINA_HOME from catalina.sh to ./.. Setting CATALINA_HOME to ./.. Using CLASSPATH: ./../bin/bootstrap.jar:/usr/local/j2sdk1.4.0_01/lib/tools.jar Using CATALINA_BASE: ./.. Using CATALINA_HOME: ./.. Using JAVA_HOME: /usr/local/j2sdk1.4.0_01 Exception during startup processing java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243) Caused by: java.lang.ClassFormatError: org/apache/xerces/readers/DefaultEntityHandler$NullReader (Illegal Class name java/lang/Exce`tion) at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:509) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123) at java.net.URLClassLoader.defineClass(URLClassLoader.java:246) at java.net.URLClassLoader.access$100(URLClassLoader.java:54) at java.net.URLClassLoader$1.run(URLClassLoader.java:193) at java.security.AccessController.doPrivileged(Native Method) at org.apache.catalina.util.xml.XmlMapper.readXml(XmlMapper.java:228) at org.apache.catalina.startup.Catalina.stop(Catalina.java:817) at org.apache.catalina.startup.Catalina.execute(Catalina.java:683) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) and more like thisIf someone could understand the possible cause.. regards. -- harsh http://www.cse.iitb.ac.in/~harsh -- - 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]
problem compile mod_jk2
Hello I have compile the mod_jk2 (see below). And when I run make, I received follow error: ../../common/jk_vm_default.c: In function `jk2_vm_guessJvmDll': ../../common/jk_vm_default.c:449: stray '\' in program make[1]: *** [../../../build/jk2/apache2/jk_vm_default.lo] Error 1 make[1]: Leaving directory `/opt/mod_jk/jakarta-tomcat-connectors-4.1.24-src/jk/native2/server/apache2' make: *** [jk2-build] Error 1 I have Linux SUSE 8.0 Can somewhere help me? gianni I made this steps: jakarta-tomcat-connectors-jk2-2.0.2-src.tar.gz from http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/release/v2.0 .2/src/ 2. Uncompress it and extract the tar file. 3. cd to jakarta-tomcat-connectors-jk2-2.0.2-src/jk/native2 4. chmod u+x configure 5. Run configure with: ./configure --with-apxs2=apache-root-directory/bin/apxs \ --with-tomcat41=tomcat-root-directory \ --with-java-home=java-root-directory \ --with-jni \ --with-pcre For example: ./configure --with-apxs2=/home/apache/bin/apxs \ --with-tomcat41=/home/tomcat \ --with-java-home=/usr/java \ --with-jni \ --with-pcre 6. Run make - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Log Compiler errors
bas perumal [EMAIL PROTECTED] writes: I have to log the compiler errors occured while build using Ant 1.5.1. How to get the files giving compile error inside a Task, which implements BuildListener. also please let me know how to get the last person who checked in the file into CVS. To find the last person that checked in a given file, do cvs history FILENAME This will show you a revision log, containing the username of each person that made changes to the file. -- [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: A question about filters
Abid, Yes. Andy PS There is an excellent resource on web.xml as a sample chapter at www.moreservlets.com -Original Message- From: Abid Ali Teepo [mailto:[EMAIL PROTECTED] Sent: 08 July 2003 12:11 To: Tomcat Users List Subject: RE: A question about filters Yes, i think i will try that when you say filter map such as * you mean url-pattern as * right ? Abid -Original Message- From: Andy Eastham [mailto:[EMAIL PROTECTED] Sent: 8. juli 2003 13:05 To: Tomcat Users List Subject: RE: A question about filters Abid, The server web.xml is processed before the application web.xml, so it should work. You'll need to ensure the filter class is available to all webapps, so /common/lib (for a jar) or /common/classes(for a .class) is where I'd recommend. You'll need to use a filter map such as *. Why not give it a try and let us know what happens. All the best, Andy -Original Message- From: Abid Ali Teepo [mailto:[EMAIL PROTECTED] Sent: 08 July 2003 11:10 To: Tomcat Users List Subject: RE: A question about filters Yes, i suppose that will work, but there is also a web.xml file for the entire installation that is in the same place as the server.xml Is it possible to add a filter in these files ? Abid -Original Message- From: Andy Eastham [mailto:[EMAIL PROTECTED] Sent: 8. juli 2003 12:03 To: Tomcat Users List Subject: RE: A question about filters Abid, You are right, but if you set up the same filter in the web.xml for every webapp, you'll get the same effect. Andy -Original Message- From: Abid Ali Teepo [mailto:[EMAIL PROTECTED] Sent: 08 July 2003 10:30 To: Tomcat Users List Subject: A question about filters Hi After a lot of experimenting and hassle i've come to the conclusion that i have misundeerstood how filters work. I thought i could make a filter for the entire website, and all requests to that website would go through a specified filter. This is not possible, as far as i know?? You can only make filters connected to some webapp, and all requests to that webapp will go through the filter. What i mean is, if you have a site called : http://www.somesite.com/ You can't set up a filter for all request with this url-pattern. You can set up a filter to : http://www.somesite.com/mywebapp/ Or any other context that you specify after the website address. Anyone here know a way for me to set up a filter for all requests to a webiste ? Regards, Abid - 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]
Comments and Tomcat 4
I'm running into the following problem. If a JSP page contains, for example, td class=foo %-- This is a comment --% width=100 then the comment is passed through to the generated HTML page, causing the browser to end the td tag at the end of the comment, ignore the width specification, and render the remaining portion of the td tag as plain text. This seems to be a change from Tomcat 3.x. Is Jasper intentionally sending this form of comment through to the generated page, or is this a bug? Thanks, Tom Tom Halliley mailto:[EMAIL PROTECTED] WorkForce Software 734.542.4100 x223 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: strange error
STOP SENDING ME E MAILS YOU GUYS HAVE THE WRONG PERSON PLEASE CONTACT TOMCAT -Original Message- From: BERND PIER [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 08, 2003 4:23 AM To: Tomcat Users List Subject: Re: strange error what tomcat version did you use. i got a similary error when i shutdown an older version of tomcat something like 4.1.24 or so. i have installed the newest tomcat version and this works fine. bernd Bodycombe, Andrew schrieb: Sounds like you may have a corrupted .jar file. -Original Message- From: harsh [mailto:[EMAIL PROTECTED] Sent: 08 July 2003 10:18 To: Tomcat Users List Subject: strange error I ran the tomcat for second time and now when i try to stop it behaves like this.. [EMAIL PROTECTED] bin]# ./shutdown.sh Guessing CATALINA_HOME from catalina.sh to ./.. Setting CATALINA_HOME to ./.. Using CLASSPATH: ./../bin/bootstrap.jar:/usr/local/j2sdk1.4.0_01/lib/tools.jar Using CATALINA_BASE: ./.. Using CATALINA_HOME: ./.. Using JAVA_HOME: /usr/local/j2sdk1.4.0_01 Exception during startup processing java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:3 9 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp l .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243) Caused by: java.lang.ClassFormatError: org/apache/xerces/readers/DefaultEntityHandler$NullReader (Illegal Class name java/lang/Exce`tion) at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:509) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123) at java.net.URLClassLoader.defineClass(URLClassLoader.java:246) at java.net.URLClassLoader.access$100(URLClassLoader.java:54) at java.net.URLClassLoader$1.run(URLClassLoader.java:193) at java.security.AccessController.doPrivileged(Native Method) at org.apache.catalina.util.xml.XmlMapper.readXml(XmlMapper.java:228) at org.apache.catalina.startup.Catalina.stop(Catalina.java:817) at org.apache.catalina.startup.Catalina.execute(Catalina.java:683) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) and more like thisIf someone could understand the possible cause.. regards. --- - -- harsh http://www.cse.iitb.ac.in/~harsh --- - -- - 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: Comments and Tomcat 4
Hmmm ... Anything in %-- --% should not be sent to the browser at all. Are you sure: - That the page is being compiled/executed as a JSP? - That your page contains the correct %-- --% and you don't have a wacky typo? - Which tomcat version Can you reproduce with the following case: html headtitle%-- hello --% hi /title/head body %-- in body--% Hi /body /html = This should yield: html headtitle hi /title/head body Hi /body /html -Tim Tom Halliley wrote: I'm running into the following problem. If a JSP page contains, for example, td class=foo %-- This is a comment --% width=100 then the comment is passed through to the generated HTML page, causing the browser to end the td tag at the end of the comment, ignore the width specification, and render the remaining portion of the td tag as plain text. This seems to be a change from Tomcat 3.x. Is Jasper intentionally sending this form of comment through to the generated page, or is this a bug? Thanks, Tom - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: TOMCAT with EJB??
On Mon, Jul 07, 2003 at 10:25:26PM -0700, vipul viz wrote: HI all I am using Tomcat 4. as an application server but it doesn't support EJB could any one tell me which is the best EJB Server available in the category of Open cource. i have found 2-3 like Jboss,OpenEJB , Jonas. but not sure which one to use for some commercial development There is a demo of Tomcat/OpenEJB running here if you wanted to poke around in it. Most people really like the JNDI browser and the Object invoker, both can save you a ton of time. http://www.openejb.info:8080 There are a couple of features I think are really nice for Tomcat/servlet people. You can use any Tomcat 4.x, 5.x (never tried 3.x) version you want, we don't bundle or embed Tomcat. You don't have to code explicit local interfaces just to get fast performance in a local setup, you can just use regular remote interfaces and just tell OpenEJB to shut-off the marshalling of parameters and return values. This last one is really nice as it will allow you to change your mind and run your app with the Servlets and EJBs in different machines without any code changes at all. You get the benefits of local performance without having to commit to in in code. -David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat an jdk
Does tomcat 4.1.18 specific about jdk version 1.4.1,or does it work with even earlier version of the JDK. what are the compatible versions?? Would you please let me know Thanks GVS - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat on windows 98
Hello Sirinivas, i am here in sending u it again 1.. Install the JDK. Make sure you have JDK 1.3 or 1.4 installed and your PATH set so that both java -version and javac -help give a result. 2.. Configure Tomcat. 3.. Download the software. Go to http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/ and download and unpack the zip file for the latest version (4.1.24 as of last revision of this page). 4.. Enable the ROOT context. Edit install_dir/conf/server.xml and uncomment this line: Context path= docBase=ROOT debug=0/. Not necessary in Tomcat 4.0.3 and earlier. In Tomcat 5.0.3, the element is missing the trailing slash and you need to add it. 5.. Enable the invoker servlet. Go to install_dir/conf/web.xml and uncomment the servlet-mapping element that maps the invoker servlet to /servlet/*. Not necessary prior to Tomcat 4.1.12. 6.. Change the port to 80. Edit install_dir/conf/server.xml and change the port attribute of the Connector element from 8080 to 80. 7.. Turn on servlet reloading. Edit install_dir/conf/server.xml and add a DefaultContext subelement to the main Service element and supply true for the reloadable attribute. 8.. Set the JAVA_HOME variable. Set it to refer to the base JDK directory, not the bin subdirectory. 9.. Change the DOS memory settings. If you get an Out of Environment Space error message when you start the server, right-click on install_dir/bin/startup.bat, select Properties, select Memory, and change the Initial Environment entry from Auto to at least 2816. Repeat the process for install_dir/bin/shutdown.bat. 10.. Set the CATALINA_HOME variable. Optionally, set CATALINA_HOME to refer to the top-level Tomcat installation directory. 11.. Test the server. 12.. Verify that you can start the server. Double-click install_dir/bin/startup.bat and try accessing http://localhost/. 13.. Check that you can access your own HTML JSP pages. Drop some simple HTML and JSP pages into install_dir/webapps/ROOT and access them with http://localhost/filename. 14.. Set up your development environment. 15.. Create a development directory. Put it anywhere except within the Tomcat installation hierarchy. 16.. Make shortcuts to the Tomcat startup shutdown Scripts. Put shortcuts to install_dir/bin/startup.bat and install_dir/bin/shutdown.bat in your development directory and/or on your desktop. 17.. Set your CLASSPATH. Include the current directory (.), install_dir/common/lib/servlet.jar, and the main development directory. 18.. Bookmark the servlet JSP javadocs. Add install_dir/webapps/tomcat-docs/servletapi/index.html to your bookmarks/favorites list. 19.. Compile and test some simple servlets. 20.. Test a packageless servlet. Compile a simple servlet, put the .class file in install_dir/webapps/ROOT/WEB-INF/classes, and access it with http://localhost/servlet/ServletName. 21.. Test a servlet that uses packages. Compile the servlet, put the .class file in install_dir/webapps/ROOT/WEB-INF/classes/packageName, and access it with http://localhost/servlet/packageName.ServletName. 22.. Test a servlet that uses packages and utility classes. Follow the same procedure as the second step above. This third step verifies that the CLASSPATH includes the top level of your development directory. 23.. Establish a simplified deployment method. 24.. Copy to a shortcut. Make a shortcut to install_dir/webapps/ROOT. Copy packageless .class files directly there. With packages, copy the entire directory there. 25.. Use the -d option of javac. Use -d to tell Java where the deployment directory is. 26.. Let your IDE take care of deployment. Tell your IDE where the deployment directory is and let it copy the necessary files. 27.. Use ant or a similar tool. Use the Apache make-like tool to automate copying of files. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Comments and Tomcat 4
Yup ... it's being compiled as a JSP. There are no wacky typos. I understand that such a comment should not be sent through to the generated page at all ... this is precisely the problem. As I stated, this behavior changed between Tomcat 3.x and 4.1. Tom Tim Funk wrote: Hmmm ... Anything in %-- --% should not be sent to the browser at all. Are you sure: - That the page is being compiled/executed as a JSP? - That your page contains the correct %-- --% and you don't have a wacky typo? - Which tomcat version Can you reproduce with the following case: html headtitle%-- hello --% hi /title/head body %-- in body--% Hi /body /html = This should yield: html headtitle hi /title/head body Hi /body /html -Tim Tom Halliley wrote: I'm running into the following problem. If a JSP page contains, for example, td class=foo %-- This is a comment --% width=100 then the comment is passed through to the generated HTML page, causing the browser to end the td tag at the end of the comment, ignore the width specification, and render the remaining portion of the td tag as plain text. This seems to be a change from Tomcat 3.x. Is Jasper intentionally sending this form of comment through to the generated page, or is this a bug? Thanks, Tom - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Tom Halliley mailto:[EMAIL PROTECTED] WorkForce Software 734.542.4100 x223 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat on windows 98
Hello sirnivas, i am sending it again 1.. Install the JDK. Make sure you have JDK 1.3 or 1.4 installed and your PATH set so that both java -version and javac -help give a result. 2.. Configure Tomcat. 3.. Download the software. Go to http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/ and download and unpack the zip file for the latest version (4.1.24 as of last revision of this page). 4.. Enable the ROOT context. Edit install_dir/conf/server.xml and uncomment this line: Context path= docBase=ROOT debug=0/. Not necessary in Tomcat 4.0.3 and earlier. In Tomcat 5.0.3, the element is missing the trailing slash and you need to add it. 5.. Enable the invoker servlet. Go to install_dir/conf/web.xml and uncomment the servlet-mapping element that maps the invoker servlet to /servlet/*. Not necessary prior to Tomcat 4.1.12. 6.. Change the port to 80. Edit install_dir/conf/server.xml and change the port attribute of the Connector element from 8080 to 80. 7.. Turn on servlet reloading. Edit install_dir/conf/server.xml and add a DefaultContext subelement to the main Service element and supply true for the reloadable attribute. 8.. Set the JAVA_HOME variable. Set it to refer to the base JDK directory, not the bin subdirectory. 9.. Change the DOS memory settings. If you get an Out of Environment Space error message when you start the server, right-click on install_dir/bin/startup.bat, select Properties, select Memory, and change the Initial Environment entry from Auto to at least 2816. Repeat the process for install_dir/bin/shutdown.bat. 10.. Set the CATALINA_HOME variable. Optionally, set CATALINA_HOME to refer to the top-level Tomcat installation directory. 11.. Test the server. 12.. Verify that you can start the server. Double-click install_dir/bin/startup.bat and try accessing http://localhost/. 13.. Check that you can access your own HTML JSP pages. Drop some simple HTML and JSP pages into install_dir/webapps/ROOT and access them with http://localhost/filename. 14.. Set up your development environment. 15.. Create a development directory. Put it anywhere except within the Tomcat installation hierarchy. 16.. Make shortcuts to the Tomcat startup shutdown Scripts. Put shortcuts to install_dir/bin/startup.bat and install_dir/bin/shutdown.bat in your development directory and/or on your desktop. 17.. Set your CLASSPATH. Include the current directory (.), install_dir/common/lib/servlet.jar, and the main development directory. 18.. Bookmark the servlet JSP javadocs. Add install_dir/webapps/tomcat-docs/servletapi/index.html to your bookmarks/favorites list. 19.. Compile and test some simple servlets. 20.. Test a packageless servlet. Compile a simple servlet, put the .class file in install_dir/webapps/ROOT/WEB-INF/classes, and access it with http://localhost/servlet/ServletName. 21.. Test a servlet that uses packages. Compile the servlet, put the .class file in install_dir/webapps/ROOT/WEB-INF/classes/packageName, and access it with http://localhost/servlet/packageName.ServletName. 22.. Test a servlet that uses packages and utility classes. Follow the same procedure as the second step above. This third step verifies that the CLASSPATH includes the top level of your development directory. 23.. Establish a simplified deployment method. 24.. Copy to a shortcut. Make a shortcut to install_dir/webapps/ROOT. Copy packageless .class files directly there. With packages, copy the entire directory there. 25.. Use the -d option of javac. Use -d to tell Java where the deployment directory is. 26.. Let your IDE take care of deployment. Tell your IDE where the deployment directory is and let it copy the necessary files. 27.. Use ant or a similar tool. Use the Apache make-like tool to automate copying of files. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Somebody Help Me Out!!!
I have installed tomcat in c drive,that makes the tomacat path as: c:\jakarta-tomcat-3.2.4 and java is installed in c drive: c:\jdk1.3 and the path as i told before is working fine. Then i havn't given any spaces in directory names!! So have tried all that but nothing works. any suggestions?? sharath Send free SMS using the Yahoo! Messenger. Go to http://in.mobile.yahoo.com/new/pc/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
problem compile mod_jk2
Hello I have compile the mod_jk2 (see below). And when I run make, I received follow error: ../../common/jk_vm_default.c: In function `jk2_vm_guessJvmDll': ../../common/jk_vm_default.c:449: stray '\' in program make[1]: *** [../../../build/jk2/apache2/jk_vm_default.lo] Error 1 make[1]: Leaving directory `/opt/mod_jk/jakarta-tomcat-connectors-4.1.24-src/jk/native2/server/apache2' make: *** [jk2-build] Error 1 I have Linux SUSE 8.0 Can somewhere help me? gianni I made this steps: jakarta-tomcat-connectors-jk2-2.0.2-src.tar.gz from http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/release/v2.0 .2/src/ 2. Uncompress it and extract the tar file. 3. cd to jakarta-tomcat-connectors-jk2-2.0.2-src/jk/native2 4. chmod u+x configure 5. Run configure with: ./configure --with-apxs2=apache-root-directory/bin/apxs \ --with-tomcat41=tomcat-root-directory \ --with-java-home=java-root-directory \ --with-jni \ --with-pcre For example: ./configure --with-apxs2=/home/apache/bin/apxs \ --with-tomcat41=/home/tomcat \ --with-java-home=/usr/java \ --with-jni \ --with-pcre 6. Run make - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Comments and Tomcat 4
What happens if you create a JSP with my snippet below? Which version of tomcat? Can you paste a jsp which reproduces the problem. I cannot reproduce this issue with 4.0.4 or 4.1.24. -Tim Tom Halliley wrote: Yup ... it's being compiled as a JSP. There are no wacky typos. I understand that such a comment should not be sent through to the generated page at all ... this is precisely the problem. As I stated, this behavior changed between Tomcat 3.x and 4.1. Tom Tim Funk wrote: Hmmm ... Anything in %-- --% should not be sent to the browser at all. Are you sure: - That the page is being compiled/executed as a JSP? - That your page contains the correct %-- --% and you don't have a wacky typo? - Which tomcat version Can you reproduce with the following case: html headtitle%-- hello --% hi /title/head body %-- in body--% Hi /body /html = This should yield: html headtitle hi /title/head body Hi /body /html -Tim Tom Halliley wrote: I'm running into the following problem. If a JSP page contains, for example, td class=foo %-- This is a comment --% width=100 then the comment is passed through to the generated HTML page, causing the browser to end the td tag at the end of the comment, ignore the width specification, and render the remaining portion of the td tag as plain text. This seems to be a change from Tomcat 3.x. Is Jasper intentionally sending this form of comment through to the generated page, or is this a bug? Thanks, Tom - 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]
problem with tomcat manager app
I am unable to login to the tomcat manager app with MozFirebird browser. I added a user with the manager role to tomcat-users.xml. And the what really bothers me is I CAN login with IE. Any ideas? Here is the error I get: Access to the requested resource has been denied Thanks, Erik __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat an jdk
GVS The release notes of 4.1.18 refer to specific issues with 1.2.x - 1.3.x on Linux, so from that I infer that generally it works with JDK = 1.2.0 It's built with JDK 1.4 though. Andy -Original Message- From: GVS Srinivas [mailto:[EMAIL PROTECTED] Sent: 08 July 2003 13:59 To: '[EMAIL PROTECTED]' Subject: Tomcat an jdk Does tomcat 4.1.18 specific about jdk version 1.4.1,or does it work with even earlier version of the JDK. what are the compatible versions?? Would you please let me know Thanks GVS - 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: cookie based session sharing among web apps
Not as far as I can tell from digging through the session manager code. It looks like each context has their own session manager which stores a list of active sessions in a hashmap. I think you are going to have to get rather creative with this one. I.E. create a patch that allows all tomcat contexts to share the same cookie. --Angus -Original Message- From: Harris Cotton [mailto:[EMAIL PROTECTED] Sent: Monday, July 07, 2003 11:07 PM To: [EMAIL PROTECTED] Subject: cookie based session sharing among web apps I am keen on having two web applications be able to share sessions. Currently, tomcat creates and maintains a session for each web application for a client. Moving the session id to the url is an option, but one I hope to avoid because of the refactoring it would generate in my applications jsps. In essence, I want tomcat to use / as the url path in the JSESSIONID cookie, and use this session id in all web applications the tomcat server hosts. Can this be accomplished solely with configuration? Thank You _ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail - 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: cookie based session sharing among web apps
I guess you could use a filter, and program all the session handling yourself -Original Message- From: Angus Mezick [mailto:[EMAIL PROTECTED] Sent: 8. juli 2003 15:33 To: Tomcat Users List Subject: RE: cookie based session sharing among web apps Not as far as I can tell from digging through the session manager code. It looks like each context has their own session manager which stores a list of active sessions in a hashmap. I think you are going to have to get rather creative with this one. I.E. create a patch that allows all tomcat contexts to share the same cookie. --Angus -Original Message- From: Harris Cotton [mailto:[EMAIL PROTECTED] Sent: Monday, July 07, 2003 11:07 PM To: [EMAIL PROTECTED] Subject: cookie based session sharing among web apps I am keen on having two web applications be able to share sessions. Currently, tomcat creates and maintains a session for each web application for a client. Moving the session id to the url is an option, but one I hope to avoid because of the refactoring it would generate in my applications jsps. In essence, I want tomcat to use / as the url path in the JSESSIONID cookie, and use this session id in all web applications the tomcat server hosts. Can this be accomplished solely with configuration? Thank You _ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail - 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: problem compile mod_jk2
Hi, Try just using the --use-apxs2 option. -e On Tue, 8 Jul 2003, Gianni Martiradonna wrote: Hello I have compile the mod_jk2 (see below). And when I run make, I received follow error: ../../common/jk_vm_default.c: In function `jk2_vm_guessJvmDll': ../../common/jk_vm_default.c:449: stray '\' in program make[1]: *** [../../../build/jk2/apache2/jk_vm_default.lo] Error 1 make[1]: Leaving directory `/opt/mod_jk/jakarta-tomcat-connectors-4.1.24-src/jk/native2/server/apache2' make: *** [jk2-build] Error 1 I have Linux SUSE 8.0 Can somewhere help me? gianni I made this steps: jakarta-tomcat-connectors-jk2-2.0.2-src.tar.gz from http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/release/v2.0 .2/src/ 2. Uncompress it and extract the tar file. 3. cd to jakarta-tomcat-connectors-jk2-2.0.2-src/jk/native2 4. chmod u+x configure 5. Run configure with: ./configure --with-apxs2=apache-root-directory/bin/apxs \ --with-tomcat41=tomcat-root-directory \ --with-java-home=java-root-directory \ --with-jni \ --with-pcre For example: ./configure --with-apxs2=/home/apache/bin/apxs \ --with-tomcat41=/home/tomcat \ --with-java-home=/usr/java \ --with-jni \ --with-pcre 6. Run make - 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, load balancing, singletons
Hello all, I have a few questions about tomcat load balancing. If I use two different machines for two instances, is there a way not to replicate singletons over the two machines? For example, if a webapp uses connection pool, is there a way to host it on a third server, so that the two instances talk to it to call static code? Is there a framework or design already done? Please help. Sincerely, Vijay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat - JNI
Hi, i am using Tomcat 4.1.24 and in our web application we use JNI like below static { System.loadLibrary(optimizer_dll); } optimizer_dll.dll resides in c:\code\bin; This path is also in the the PATH environment When i start Tomcat, every think is fine but after some times passes, tomcat gives error like below dll is already loaded in another classloader I searched that error on the web and i found that this : Applications that require native libraries must ensure that the libraries have been loaded prior to use. Typically, this is done with a call like: static { System.loadLibrary(path-to-library-file); } in some class. However, the application must also ensure that the library is not loaded more than once. If the above code were placed in a class inside the web application (i.e. under /WEB-INF/classes or /WEB-INF/lib), and the application were reloaded, the loadLibrary() call would be attempted a second time. To avoid this problem, place classes that load native libraries outside of the web application, and ensure that the loadLibrary() call is executed only once during the lifetime of a particular JVM. I think this can't be the ideal solution, any idea about this problem ? Regards - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Comments and Tomcat 4
More testing shows that the problem is not in Tomcat/Jasper, but rather in Velocity. We're using the VelocityTag add-on, which is somehow causing JSP comments to be passed through to the generated page. The problem is only reproduced when I add: %@ taglib uri=/WEB-INF/veltag.tld prefix=vel % vel:velocity html headtitle%-- hello --% hi /title/head body %-- in body--% Hi /body /html /vel:velocity to your original example. Thanks, Tom Tim Funk wrote: What happens if you create a JSP with my snippet below? Which version of tomcat? Can you paste a jsp which reproduces the problem. I cannot reproduce this issue with 4.0.4 or 4.1.24. -Tim Tom Halliley wrote: Yup ... it's being compiled as a JSP. There are no wacky typos. I understand that such a comment should not be sent through to the generated page at all ... this is precisely the problem. As I stated, this behavior changed between Tomcat 3.x and 4.1. Tom Tim Funk wrote: Hmmm ... Anything in %-- --% should not be sent to the browser at all. Are you sure: - That the page is being compiled/executed as a JSP? - That your page contains the correct %-- --% and you don't have a wacky typo? - Which tomcat version Can you reproduce with the following case: html headtitle%-- hello --% hi /title/head body %-- in body--% Hi /body /html = This should yield: html headtitle hi /title/head body Hi /body /html -Tim Tom Halliley wrote: I'm running into the following problem. If a JSP page contains, for example, td class=foo %-- This is a comment --% width=100 then the comment is passed through to the generated HTML page, causing the browser to end the td tag at the end of the comment, ignore the width specification, and render the remaining portion of the td tag as plain text. This seems to be a change from Tomcat 3.x. Is Jasper intentionally sending this form of comment through to the generated page, or is this a bug? Thanks, Tom - 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] -- Tom Halliley mailto:[EMAIL PROTECTED] WorkForce Software 734.542.4100 x223 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: problem compile mod_jk2
Ok. thanks It works! -gianni -Ursprungliche Nachricht- Von: Eric J. Pinnell [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 8. Juli 2003 15:40 An: Tomcat Users List Betreff: Re: problem compile mod_jk2 Hi, Try just using the --use-apxs2 option. -e On Tue, 8 Jul 2003, Gianni Martiradonna wrote: Hello I have compile the mod_jk2 (see below). And when I run make, I received follow error: ../../common/jk_vm_default.c: In function `jk2_vm_guessJvmDll': ../../common/jk_vm_default.c:449: stray '\' in program make[1]: *** [../../../build/jk2/apache2/jk_vm_default.lo] Error 1 make[1]: Leaving directory `/opt/mod_jk/jakarta-tomcat-connectors-4.1.24-src/jk/native2/server/apache2' make: *** [jk2-build] Error 1 I have Linux SUSE 8.0 Can somewhere help me? gianni I made this steps: jakarta-tomcat-connectors-jk2-2.0.2-src.tar.gz from http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/release/v2.0 .2/src/ 2. Uncompress it and extract the tar file. 3. cd to jakarta-tomcat-connectors-jk2-2.0.2-src/jk/native2 4. chmod u+x configure 5. Run configure with: ./configure --with-apxs2=apache-root-directory/bin/apxs \ --with-tomcat41=tomcat-root-directory \ --with-java-home=java-root-directory \ --with-jni \ --with-pcre For example: ./configure --with-apxs2=/home/apache/bin/apxs \ --with-tomcat41=/home/tomcat \ --with-java-home=/usr/java \ --with-jni \ --with-pcre 6. Run make - 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: Comments and Tomcat 4
Check the TLD for this tag. You are interested in the body-content element. If the value is 'JSP' then the comments should not appear. However if it is 'tagdependent' then the comments will not be stripped out unless the tag does it explicitly. Ben -Original Message- From: Tom Halliley [mailto:[EMAIL PROTECTED] Sent: 08 July 2003 14:54 To: Tomcat Users List Subject: Re: Comments and Tomcat 4 More testing shows that the problem is not in Tomcat/Jasper, but rather in Velocity. We're using the VelocityTag add-on, which is somehow causing JSP comments to be passed through to the generated page. The problem is only reproduced when I add: %@ taglib uri=/WEB-INF/veltag.tld prefix=vel % vel:velocity html headtitle%-- hello --% hi /title/head body %-- in body--% Hi /body /html /vel:velocity to your original example. Thanks, Tom Tim Funk wrote: What happens if you create a JSP with my snippet below? Which version of tomcat? Can you paste a jsp which reproduces the problem. I cannot reproduce this issue with 4.0.4 or 4.1.24. -Tim Tom Halliley wrote: Yup ... it's being compiled as a JSP. There are no wacky typos. I understand that such a comment should not be sent through to the generated page at all ... this is precisely the problem. As I stated, this behavior changed between Tomcat 3.x and 4.1. Tom Tim Funk wrote: Hmmm ... Anything in %-- --% should not be sent to the browser at all. Are you sure: - That the page is being compiled/executed as a JSP? - That your page contains the correct %-- --% and you don't have a wacky typo? - Which tomcat version Can you reproduce with the following case: html headtitle%-- hello --% hi /title/head body %-- in body--% Hi /body /html = This should yield: html headtitle hi /title/head body Hi /body /html -Tim Tom Halliley wrote: I'm running into the following problem. If a JSP page contains, for example, td class=foo %-- This is a comment --% width=100 then the comment is passed through to the generated HTML page, causing the browser to end the td tag at the end of the comment, ignore the width specification, and render the remaining portion of the td tag as plain text. This seems to be a change from Tomcat 3.x. Is Jasper intentionally sending this form of comment through to the generated page, or is this a bug? Thanks, Tom - 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] -- Tom Halliley mailto:[EMAIL PROTECTED] WorkForce Software 734.542.4100 x223 - 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]
problem loading classes on startup
I have wrote a C program that starts up tomcat using the Invocation API. The reason for this is so that I can prompt the user for a password that will open up a PKCS12 file If anyone has a better solution, please let me know). I have downloaded the tomcat 4.1.24, and commons-digester source and am trying to figure out why I cannot get my program to work. I have traced the problem to the Digester code. The Digeter class is having a problem finding classes : org.apache.catalina.core.StandardServer org.apache.catalina.deploy.NamingResources org.apache.catalina.deploy.ContextEnvironment When I turn on debugging in tomcat, I get the following output : snip ClassLoaderFactory:Including jar file /tmp/jakarta-tomcat-4.1.24-src/build/server/lib/catalina.jar /snip which is where org.apache.catalina.core.StandardServer is, so I am confused. Although when I run tomcat in the standard way (startup.sh), all goes well. Could someone please help Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Anyone seen this error before?
I am getting this error and have looked through the archives and found mixed results on what the root cause was. Anyone seen this error and know what it is? It's so generic that it's hard for me to tell. 2003-07-06 11:58:08 CoyoteAdapter An exception or error occurred in the container during the request processing java.lang.NullPointerException at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal ve.java:164) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex t.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:22 3) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:261) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:360) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:632) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.ja va:590) at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:707) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP ool.java:530) at java.lang.Thread.run(Thread.java:536) Thanks, -e - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat an jdk
Thanks andy for the info. i read somewhere that is built on jdk1.4 so I was doubtful about it working on the earlier versions. Cheers GVS -Original Message- From: Andy Eastham [mailto:[EMAIL PROTECTED] Sent: 08 July 2003 14:32 To: Tomcat Users List Subject:RE: Tomcat an jdk GVS The release notes of 4.1.18 refer to specific issues with 1.2.x - 1.3.x on Linux, so from that I infer that generally it works with JDK = 1.2.0 It's built with JDK 1.4 though. Andy -Original Message- From: GVS Srinivas [mailto:[EMAIL PROTECTED] Sent: 08 July 2003 13:59 To: '[EMAIL PROTECTED]' Subject: Tomcat an jdk Does tomcat 4.1.18 specific about jdk version 1.4.1,or does it work with even earlier version of the JDK. what are the compatible versions?? Would you please let me know Thanks GVS - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ This e-mail has been scanned for viruses by MCI's Internet Managed Scanning Services - powered by MessageLabs. For further information visit http://www.mci.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat, load balancing, singletons
Yeah, they are called EJB's -Tim Vijay Kandy wrote: Hello all, I have a few questions about tomcat load balancing. If I use two different machines for two instances, is there a way not to replicate singletons over the two machines? For example, if a webapp uses connection pool, is there a way to host it on a third server, so that the two instances talk to it to call static code? Is there a framework or design already done? Please help. Sincerely, Vijay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Debugging The document contains no data error
I am having trouble with a servlet in Netscape v 4.76. I am running Red Hat Linux 7.2. Thus far I have had no luck in finding a solution in the archives or elsewhere. The servlet (code included below) calls another class that generates a JPG and outputs it to a file. A link to the temporary image file is supposed to be displayed on the page, but instead I get a pop-up displaying The document contains no data. I have verified that the servlet is generating the image and placing it in my /tmp folder. I have also tested it by outputting the image to $CATALINA_HOME/temp. Any assistance that you can provide would be greatly appreciated!! CODE... import java.io.*; import java.text.*; import java.util.*; import javax.servlet.*; import javax.servlet.http.*; import duke.cgt.bard.apps.SimpleBardApplication; public class BARD extends HttpServlet { static final String PATH = /home/www/pkg/jakarta-tomcat-4.0.6/temp/; static String datafile; public void doBard(String file) { String[] temp = new String[6]; temp[0] = -d; temp[1] = file; temp[2] = -type; temp[3] = ie; temp[4] = -o; temp[5] = PATH+bard.jpg; try { SimpleBardApplication.main(temp); }catch(Exception e) { e.printStackTrace(); } } public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { datafile = request.getParameter(datafile); datafile = PATH + datafile; PrintWriter out = response.getWriter(); response.setContentType(text/html); response.setHeader(pragma, no-cache); out.println(html); out.println(body); out.println(head); out.println(titleBARD Demo/title); out.println(/head); out.println(body bgcolor=\white\); out.println(H1BARD Demo/H1); out.println(This is the image file +datafile); out.println(/body); out.println(/html); this.doBard(datafile); } public void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { doGet(request, response); } } Thanks Rus __ Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo. http://search.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat, load balancing, singletons
Thank you but like I said, I need to run on tomcat. How do you do that? Vijay -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 08, 2003 9:25 AM To: Tomcat Users List Subject:Re: Tomcat, load balancing, singletons Yeah, they are called EJB's -Tim Vijay Kandy wrote: Hello all, I have a few questions about tomcat load balancing. If I use two different machines for two instances, is there a way not to replicate singletons over the two machines? For example, if a webapp uses connection pool, is there a way to host it on a third server, so that the two instances talk to it to call static code? Is there a framework or design already done? Please help. Sincerely, Vijay - 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: Anonymous posting
From: harsh [EMAIL PROTECTED] Can i restrict domains of the forms posting to my form handling scripts.i.e only all the html or jsps inside http://www.mysite.com/ can post to my jsps,and noone writes his own HTML forms and post to my site .. In other words, you'd like to prevent requests from someotherdomain.net from being allowed to access .jsp forms on your site. If you're using tomcat in conjunction with apache, you should be able to use apache's access directives. Something like LocationMatch /*.jsp Order deny,allow Deny from otherdomain.net /LocationMatch Just be sure that your httpd.conf loads mod_access before mod_jk (eg - the AddModule for mod_jk appears before the AddModule for mod_access). -- [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat, load balancing, singletons
By using an EJB server and container integrated with Tomcat. JBoss, OpenEJB, etc. etc. etc. etc. John On Tue, 8 Jul 2003 09:28:22 -0500, Vijay Kandy [EMAIL PROTECTED] wrote: Thank you but like I said, I need to run on tomcat. How do you do that? Vijay -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 08, 2003 9:25 AM To: Tomcat Users List Subject: Re: Tomcat, load balancing, singletons Yeah, they are called EJB's -Tim Vijay Kandy wrote: Hello all, I have a few questions about tomcat load balancing. If I use two different machines for two instances, is there a way not to replicate singletons over the two machines? For example, if a webapp uses connection pool, is there a way to host it on a third server, so that the two instances talk to it to call static code? Is there a framework or design already done? Please help. Sincerely, Vijay - 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 M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat on windows 98
Works fine on Win98. At 09:31 AM 7/8/03 +0100, you wrote: Hi, Will tomcat4.18 work on windows 98??? I am facing with the installation problems???I have read somewhere on the net that it wont work on windows 98. Would you please let me know. As a work around,after I installed 4.1.18. and at the command prompt i've entered into 4.0/bin directory. but the autoexec file contains catalina home as 4.1.18. and i gave catalina run at 4.0/bin. it has started apache 4.1.18 bcos of catalina home in autoexec is referring to that version of tomcat. Please tell me whether it is appropriate to run this service like this. will i get the features of 4.1.18 like this. Thanks GVS - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat, load balancing, singletons
Vijay, Someone else posted something today about an open source EJB container that runs with Tomcat. It might have been called OpenEJB? Andy -Original Message- From: Vijay Kandy [mailto:[EMAIL PROTECTED] Sent: 08 July 2003 15:28 To: 'Tomcat Users List' Subject: RE: Tomcat, load balancing, singletons Thank you but like I said, I need to run on tomcat. How do you do that? Vijay -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 08, 2003 9:25 AM To: Tomcat Users List Subject: Re: Tomcat, load balancing, singletons Yeah, they are called EJB's -Tim Vijay Kandy wrote: Hello all, I have a few questions about tomcat load balancing. If I use two different machines for two instances, is there a way not to replicate singletons over the two machines? For example, if a webapp uses connection pool, is there a way to host it on a third server, so that the two instances talk to it to call static code? Is there a framework or design already done? Please help. Sincerely, Vijay - 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: Tomcat on windows 98
You should not do 5, in my opinion. You should, rather, provide for each individual servlet in your xml files. There are security problems with enabling the invoker servlet. That is why it is commented out in the first place. At 06:35 PM 7/8/03 +0530, you wrote: Hello Sirinivas, i am here in sending u it again 1.. Install the JDK. Make sure you have JDK 1.3 or 1.4 installed and your PATH set so that both java -version and javac -help give a result. 2.. Configure Tomcat. 3.. Download the software. Go to http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/ and download and unpack the zip file for the latest version (4.1.24 as of last revision of this page). 4.. Enable the ROOT context. Edit install_dir/conf/server.xml and uncomment this line: Context path= docBase=ROOT debug=0/. Not necessary in Tomcat 4.0.3 and earlier. In Tomcat 5.0.3, the element is missing the trailing slash and you need to add it. 5.. Enable the invoker servlet. Go to install_dir/conf/web.xml and uncomment the servlet-mapping element that maps the invoker servlet to /servlet/*. Not necessary prior to Tomcat 4.1.12. 6.. Change the port to 80. Edit install_dir/conf/server.xml and change the port attribute of the Connector element from 8080 to 80. 7.. Turn on servlet reloading. Edit install_dir/conf/server.xml and add a DefaultContext subelement to the main Service element and supply true for the reloadable attribute. 8.. Set the JAVA_HOME variable. Set it to refer to the base JDK directory, not the bin subdirectory. 9.. Change the DOS memory settings. If you get an Out of Environment Space error message when you start the server, right-click on install_dir/bin/startup.bat, select Properties, select Memory, and change the Initial Environment entry from Auto to at least 2816. Repeat the process for install_dir/bin/shutdown.bat. 10.. Set the CATALINA_HOME variable. Optionally, set CATALINA_HOME to refer to the top-level Tomcat installation directory. 11.. Test the server. 12.. Verify that you can start the server. Double-click install_dir/bin/startup.bat and try accessing http://localhost/. 13.. Check that you can access your own HTML JSP pages. Drop some simple HTML and JSP pages into install_dir/webapps/ROOT and access them with http://localhost/filename. 14.. Set up your development environment. 15.. Create a development directory. Put it anywhere except within the Tomcat installation hierarchy. 16.. Make shortcuts to the Tomcat startup shutdown Scripts. Put shortcuts to install_dir/bin/startup.bat and install_dir/bin/shutdown.bat in your development directory and/or on your desktop. 17.. Set your CLASSPATH. Include the current directory (.), install_dir/common/lib/servlet.jar, and the main development directory. 18.. Bookmark the servlet JSP javadocs. Add install_dir/webapps/tomcat-docs/servletapi/index.html to your bookmarks/favorites list. 19.. Compile and test some simple servlets. 20.. Test a packageless servlet. Compile a simple servlet, put the .class file in install_dir/webapps/ROOT/WEB-INF/classes, and access it with http://localhost/servlet/ServletName. 21.. Test a servlet that uses packages. Compile the servlet, put the .class file in install_dir/webapps/ROOT/WEB-INF/classes/packageName, and access it with http://localhost/servlet/packageName.ServletName. 22.. Test a servlet that uses packages and utility classes. Follow the same procedure as the second step above. This third step verifies that the CLASSPATH includes the top level of your development directory. 23.. Establish a simplified deployment method. 24.. Copy to a shortcut. Make a shortcut to install_dir/webapps/ROOT. Copy packageless .class files directly there. With packages, copy the entire directory there. 25.. Use the -d option of javac. Use -d to tell Java where the deployment directory is. 26.. Let your IDE take care of deployment. Tell your IDE where the deployment directory is and let it copy the necessary files. 27.. Use ant or a similar tool. Use the Apache make-like tool to automate copying of files. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For
Re: Comments and Tomcat 4
'JSP' did the trick. Thanks for the help, Tom Benjamin Butler-Cole wrote: Check the TLD for this tag. You are interested in the body-content element. If the value is 'JSP' then the comments should not appear. However if it is 'tagdependent' then the comments will not be stripped out unless the tag does it explicitly. Ben -Original Message- From: Tom Halliley [mailto:[EMAIL PROTECTED] Sent: 08 July 2003 14:54 To: Tomcat Users List Subject: Re: Comments and Tomcat 4 More testing shows that the problem is not in Tomcat/Jasper, but rather in Velocity. We're using the VelocityTag add-on, which is somehow causing JSP comments to be passed through to the generated page. The problem is only reproduced when I add: %@ taglib uri=/WEB-INF/veltag.tld prefix=vel % vel:velocity html headtitle%-- hello --% hi /title/head body %-- in body--% Hi /body /html /vel:velocity to your original example. Thanks, Tom Tim Funk wrote: What happens if you create a JSP with my snippet below? Which version of tomcat? Can you paste a jsp which reproduces the problem. I cannot reproduce this issue with 4.0.4 or 4.1.24. -Tim Tom Halliley wrote: Yup ... it's being compiled as a JSP. There are no wacky typos. I understand that such a comment should not be sent through to the generated page at all ... this is precisely the problem. As I stated, this behavior changed between Tomcat 3.x and 4.1. Tom Tim Funk wrote: Hmmm ... Anything in %-- --% should not be sent to the browser at all. Are you sure: - That the page is being compiled/executed as a JSP? - That your page contains the correct %-- --% and you don't have a wacky typo? - Which tomcat version Can you reproduce with the following case: html headtitle%-- hello --% hi /title/head body %-- in body--% Hi /body /html = This should yield: html headtitle hi /title/head body Hi /body /html -Tim Tom Halliley wrote: I'm running into the following problem. If a JSP page contains, for example, td class=foo %-- This is a comment --% width=100 then the comment is passed through to the generated HTML page, causing the browser to end the td tag at the end of the comment, ignore the width specification, and render the remaining portion of the td tag as plain text. This seems to be a change from Tomcat 3.x. Is Jasper intentionally sending this form of comment through to the generated page, or is this a bug? Thanks, Tom - 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] -- Tom Halliley mailto:[EMAIL PROTECTED] WorkForce Software 734.542.4100 x223 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 4.1 on IIS 5?
Hi, I got Tomcat 4.1 and IIS 5 working together with ISAPI_REDIRECT. Only thing that I cannot find out is how to use the machine name and not the localhost. http://localhost/examples/whateva.jsp works, but http://myserver/examples/whateva.jsp does not(500 error). Any help is appreciated. Thanks in advance! TN - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat, load balancing, singletons
Thank you Andy and all. I will try Jboss and OpenEJB. Vijay -Original Message- From: Andy Eastham [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 08, 2003 9:59 AM To: Tomcat Users List Subject:RE: Tomcat, load balancing, singletons Vijay, Someone else posted something today about an open source EJB container that runs with Tomcat. It might have been called OpenEJB? Andy -Original Message- From: Vijay Kandy [mailto:[EMAIL PROTECTED] Sent: 08 July 2003 15:28 To: 'Tomcat Users List' Subject: RE: Tomcat, load balancing, singletons Thank you but like I said, I need to run on tomcat. How do you do that? Vijay -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 08, 2003 9:25 AM To: Tomcat Users List Subject: Re: Tomcat, load balancing, singletons Yeah, they are called EJB's -Tim Vijay Kandy wrote: Hello all, I have a few questions about tomcat load balancing. If I use two different machines for two instances, is there a way not to replicate singletons over the two machines? For example, if a webapp uses connection pool, is there a way to host it on a third server, so that the two instances talk to it to call static code? Is there a framework or design already done? Please help. Sincerely, Vijay - 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: Debugging The document contains no data error
Try closing the writer out.close(); R.U. Spell wrote: I am having trouble with a servlet in Netscape v 4.76. I am running Red Hat Linux 7.2. Thus far I have had no luck in finding a solution in the archives or elsewhere. The servlet (code included below) calls another class that generates a JPG and outputs it to a file. A link to the temporary image file is supposed to be displayed on the page, but instead I get a pop-up displaying "The document contains no data". I have verified that the servlet is generating the image and placing it in my /tmp folder. I have also tested it by outputting the image to $CATALINA_HOME/temp. Any assistance that you can provide would be greatly appreciated!! CODE... import java.io.*; import java.text.*; import java.util.*; import javax.servlet.*; import javax.servlet.http.*; import duke.cgt.bard.apps.SimpleBardApplication; public class BARD extends HttpServlet { static final String PATH = "/home/www/pkg/jakarta-tomcat-4.0.6/temp/"; static String datafile; public void doBard(String file) { String[] temp = new String[6]; temp[0] = "-d"; temp[1] = file; temp[2] = "-type"; temp[3] = "ie"; temp[4] = "-o"; temp[5] = PATH+"bard.jpg"; try { SimpleBardApplication.main(temp); }catch(Exception e) { e.printStackTrace(); } } public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { datafile = request.getParameter("datafile"); datafile = PATH + datafile; PrintWriter out = response.getWriter(); response.setContentType("text/html"); response.setHeader("pragma", "no-cache"); out.println("html"); out.println("body"); out.println("head"); out.println("titleBARD Demo/title"); out.println("/head"); out.println("body bgcolor=\"white\""); out.println("H1BARD Demo/H1"); out.println("This is the image file " +datafile); out.println("/body"); out.println("/html"); this.doBard(datafile); } public void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { doGet(request, response); } } Thanks Rus __ Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo. http://search.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Athoa Signature Mark Riddoch - Software Architect ATHOA Ltd. Making CRM a reality WeirBank Phone: +44 (0)1628 762 635 Bray-on-Thames Fax: +44 (0)1628 635 985 Maidenhead - SL62ED Mobile: +44 (0)7850 218 966 UK e-mail: [EMAIL PROTECTED] inline: ATHOA Logo - eMail.gif
Re: Tomcat 4.1 on IIS 5?
localhost is a virtual host. So, you will need to set up a new virtual host on IIS for myserver if one isn't already setup. Then you will need to modify server.xml and add a new virtual host (see the Host container for localhost for an example). Or you can Alias myserver to localhost in server.xml. Then you will need to change your properties files so that the new host header is picked up. Repeat the above for as many virtual hosts as you need, such as host1.com, host2.com, host3.com, whatever. John On Tue, 8 Jul 2003 10:06:22 -0500, List [EMAIL PROTECTED] wrote: Hi, I got Tomcat 4.1 and IIS 5 working together with ISAPI_REDIRECT. Only thing that I cannot find out is how to use the machine name and not the localhost. http://localhost/examples/whateva.jsp works, but http://myserver/examples/whateva.jsp does not(500 error). Any help is appreciated. Thanks in advance! TN - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Somebody Help Me Out!!!
Open a command window, verify that your environment is set by typing: %JAVA_HOME%\bin\javac (You should see a menu of switch options), cd to the tomcat bin directory (cd c:\jakarta-tomcat-3.2.4\bin), type startup.bat. It should open another dos window with the standard output from the server. Then try hitting the examples with a browser. Any errors will be printed to the command window. On Tuesday 08 July 2003 09:13 am, sharath chandra wrote: I have installed tomcat in c drive,that makes the tomacat path as: c:\jakarta-tomcat-3.2.4 and java is installed in c drive: c:\jdk1.3 and the path as i told before is working fine. Then i havn't given any spaces in directory names!! So have tried all that but nothing works. any suggestions?? sharath Send free SMS using the Yahoo! Messenger. Go to http://in.mobile.yahoo.com/new/pc/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Ben Souther F.W. Davison Company, Inc. REGISTER NOW FOR THE SCORPEO USER CONFERENCE! September 18-19, 2003 in Boston/Brookline, MA Additional Training Sessions held September 17, 2003 More info http://www.fwdco.com/services/Uconf03/default.shtm - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 4.1 on IIS 5?
Hi John, Thanks for the information! I will give it a shot, and I will post the result! TN - Original Message - From: John Turner [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, July 08, 2003 10:18 AM Subject: Re: Tomcat 4.1 on IIS 5? localhost is a virtual host. So, you will need to set up a new virtual host on IIS for myserver if one isn't already setup. Then you will need to modify server.xml and add a new virtual host (see the Host container for localhost for an example). Or you can Alias myserver to localhost in server.xml. Then you will need to change your properties files so that the new host header is picked up. Repeat the above for as many virtual hosts as you need, such as host1.com, host2.com, host3.com, whatever. John On Tue, 8 Jul 2003 10:06:22 -0500, List [EMAIL PROTECTED] wrote: Hi, I got Tomcat 4.1 and IIS 5 working together with ISAPI_REDIRECT. Only thing that I cannot find out is how to use the machine name and not the localhost. http://localhost/examples/whateva.jsp works, but http://myserver/examples/whateva.jsp does not(500 error). Any help is appreciated. Thanks in advance! TN - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - 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]
JDBCRealm first try
This is my first try at setting up a JDBC Realm. I have read the how-to's and I also have the book Mastering Tomcat Development to help me figure it out but I still need help. I am trying to use Form Based Authentication and Oracle JDBCRealm. I get error: No Realm has been configured to authenticate against My error log: 2003-07-08 11:25:32 WebappLoader[/hd]: Deploying class repositories to work directory /var/tomcat4/work/Standalone/localhost/hd 2003-07-08 11:25:32 WebappLoader[/hd]: Deploy class files /WEB-INF/classes to /var/tomcat4/webapps/hd/WEB-INF/classes 2003-07-08 11:25:32 WebappLoader[/hd]: Reloading checks are enabled for this Context 2003-07-08 11:25:32 ContextConfig[/hd]: WARNING: Security role name tomcat used in an auth-constraint without being defined in a security-role 2003-07-08 11:25:32 ContextConfig[/hd]: No Realm has been configured to authenticate against 2003-07-08 11:25:32 ContextConfig[/hd]: Marking this application unavailable due to previous error(s) 2003-07-08 11:25:32 StandardManager[/hd]: Seeding random number generator class java.security.SecureRandom 2003-07-08 11:25:32 StandardManager[/hd]: Seeding of random number generator has been completed 2003-07-08 11:25:32 StandardContext[/hd]: Context startup failed due to previous errors --- I am modifying the default server.xml that installs with Tomcat 4: I am not sure if I need the UserDatabaseRealm. Here it is commented out! !-- This Realm uses the UserDatabase configured in the global JNDI resources under the key UserDatabase. Any edits that are performed against this UserDatabase are immediately available for use by the Realm. -- !-- Realm className=org.apache.catalina.realm.UserDatabaseRealm debug=0 resourceName=UserDatabase/ -- Realm className=org.apache.catalina.realm.JDBCRealm connectionName=AI_DBA connectionPassword=password connectionURL=jdbc:oracle:thin:@sukoi:1521:orcl driverName=oracle.jdbc.driver.OracleDriver userTable=REALM_USER userNameCol=LOGIN userCredCol=PASSWORD userRoleTable=REALM_ROLE roleNameCol=ROLE / - My WEB-INF/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/j2ee/dtds/web-app_2_3.dtd; web-app security-constraint web-resource-collection web-resource-nameProtected Area/web-resource-name !-- Define the context-relative URL(s) to be protected -- url-pattern/*/url-pattern !-- Only methods listed will be protected -- http-methodDELETE/http-method http-methodGET/http-method http-methodPOST/http-method http-methodPUT/http-method /web-resource-collection auth-constraint !-- Anyone with one of the listed roles may access this area -- role-nametomcat/role-name /auth-constraint /security-constraint login-config auth-methodFORM/auth-method realm-nameForm-Based Authentication Area/realm-name form-login-config form-login-page/login.jsp/form-login-page form-error-page/login_error.jsp/form-error-page /form-login-config /login-config /web-app Any help greatly appreciated. Thanks, -- *** * Rick Roberts* * Advanced Information Technologies, Inc. * *** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
java.net.MalformedURLException: unknown protocol: jndi Please help.
This is a question for the jboss forum. Sorry to inflate traffic. I just have no answer, and it coming from the tomcat containet deployment. jboss-3.0.7_jakarta-tomcat-4.1.24 I enabled security manager by setting -Djava.security.manager -Djava.security.policy== ../server/CONFIG%/conf/server.policy Actually i have a strange exception from catalina AbstractWebContainer implementation, the creation of url from string jar:jndi/localhost/lala/WEB-INF/lib/bebe/jar!/ throws java.net.MalformedURLException: unknown protocol: jndi BUT ! only if security manager is enabled org.apache.catalina.startup; ... import java.net.URL; ... public final class ContextConfig implements LifecycleListener { ... ---url = new URL(jar: + url.toString() + !/); ooops :: 16:59:35,218 ERROR [Engine] ContextConfig[/JaasJBossExampleWeb] Exception lors d u traitement du JAR indiquÚ par le chemin de ressource /WEB-INF/lib/controller.j ar javax.servlet.ServletException: Exception lors du traitement du JAR indiquÚ par le chemin de ressource /WEB-INF/lib/controller.jar at org.apache.catalina.startup.ContextConfig.tldScanJar(ContextConfig.ja va:930) at org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java: 868) at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:64 7) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfi g.java:243) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl eSupport.java:166) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3 567) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase .java:821) at org.apache.catalina.core.ContainerBase.access$000(ContainerBase.java: 162) at org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(Contain erBase.java:182) at java.security.AccessController.doPrivileged(Native Method) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:80 5) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579) 16:59:35,265 ERROR [Engine] - Root Cause - java.net.MalformedURLException: java.lang.NullPointerException: invalid url: jnd i:/localhost/JaasJBossExampleWeb/WEB-INF/lib/controller.jar!/ (java.net.Malforme dURLException: unknown protocol: jndi) at java.net.URL.init(URL.java:491) at java.net.URL.init(URL.java:371) at java.net.URL.init(URL.java:325) at org.apache.catalina.startup.ContextConfig.tldScanJar(ContextConfig.ja va:902) at org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java: 868) at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:64 7) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfi g.java:243) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl eSupport.java:166) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3 567) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase .java:821) at org.apache.catalina.core.ContainerBase.access$000(ContainerBase.java: 162) at org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(Contain erBase.java:182) at java.security.AccessController.doPrivileged(Native Method) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:80 5) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579) . Cordialement Edouard Chevtchouk -- This message is for the designated recipient only and may contain privileged or confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Forward with includes
Quick problem here. When ever I [EMAIL PROTECTED] a section of the page and try to use the jsp:forward tag I get the following null pointer exception: java.lang.NullPointerException at org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:430) at org.apache.jsp.index_jsp._jspService(index_jsp.java:382) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:210) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) . . . It is happening right on the forward part in the compiled servlet. Is this a bug or a spec thing? If its a bug is there anyway to get around it? Thanks for the help! -Nick
RE: Forward with includes
You can ONLY forward when data hasn't been sent to the web browser. Move your forwards as far up your page as possible or go with a model 2 architecture and put all your logic in a servlet and have the jsp only display data. --Angus -Original Message- From: Nick Stuart [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 08, 2003 12:00 PM To: Tomcat Users List Subject: Forward with includes Quick problem here. When ever I [EMAIL PROTECTED] a section of the page and try to use the jsp:forward tag I get the following null pointer exception: java.lang.NullPointerException at org.apache.jasper.runtime.PageContextImpl.forward(PageContextI mpl.java:430) at org.apache.jsp.index_jsp._jspService(index_jsp.java:382) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServletWrapper.service(JspServlet Wrapper.java:210) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet .java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilt er(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli cationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardW rapperValve.java:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipel ine.java:480) . . . It is happening right on the forward part in the compiled servlet. Is this a bug or a spec thing? If its a bug is there anyway to get around it? Thanks for the help! -Nick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Anyone seen this error before?
Are you trying to process a NULL value? Possibly from a request.getParameter()? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat fails to start under win2k-pro
Hi, I'm not a Windows person but have been asked to start a standalone Tomcat 4.1.24 server on a Win2k-pro machine. I did a very basic install on a linux box once before and it worked right out of the box. The windows install and startup is not playing nice. I did the install and *think* I have configured it to run on port 80 [this is necessary for our needs]. I set the JAVA_HOME variable and then ran the startup.bat file. I get a report that -Djava.endorsed.dirs= can not be found or is not understood -- sorry for the imprecise message but the machine is half a building away and I was distracted on the way back. I do know this is coming from the catalina.bat script though. I ran: catalina.bat start and received the same message. Dean...K... -- Dean Karres / [EMAIL PROTECTED] / itg.uiuc.edu Imaging Technology Group / Beckman Institute / University of Illinois 405 North Mathews / Urbana, IL 61801 USA - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Forward with includes
Ok, thanks for the reply. Time for some reorganization. :( -Nick On Tue, 2003-07-08 at 12:03, Angus Mezick wrote: You can ONLY forward when data hasn't been sent to the web browser. Move your forwards as far up your page as possible or go with a model 2 architecture and put all your logic in a servlet and have the jsp only display data. --Angus -Original Message- From: Nick Stuart [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 08, 2003 12:00 PM To: Tomcat Users List Subject: Forward with includes Quick problem here. When ever I [EMAIL PROTECTED] a section of the page and try to use the jsp:forward tag I get the following null pointer exception: java.lang.NullPointerException at org.apache.jasper.runtime.PageContextImpl.forward(PageContextI mpl.java:430) at org.apache.jsp.index_jsp._jspService(index_jsp.java:382) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServletWrapper.service(JspServlet Wrapper.java:210) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet .java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilt er(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli cationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardW rapperValve.java:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipel ine.java:480) . . . It is happening right on the forward part in the compiled servlet. Is this a bug or a spec thing? If its a bug is there anyway to get around it? Thanks for the help! -Nick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Relative URL problem
I currently server my jsp files from under the web-inf/jsp directory. If I call my application using http://localhost:8080/myapp, my images do not appear at all. If I call my application using http://localhost:8080/myapp/ (note the trailing slash) everything works fine. Subsequent calls to other resources contain the slash (for example http://localhost:8080/myapp/myservlet). Any advice for handling relative urls on my default page? Regards, Joshua This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return email and delete this communication and destroy all copies. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: Tomcat fails to start under win2k-pro
Try setting the JAVA_HOME variable - either system-wide or in the startup.bat file I had the same problem and it was a bit irritating - the java.endorsed.dirs variable had nothing to do with the problem. It was only because JAVA_HOME was not set and it precedes the -Djava... stuff in the line which starts Tomcat, -Djava... is interpreted as the command... which of course doesn't make sense. Torben --- Torben Fruechtenicht Developer IT Solutions UBIS AGfon: +49 30 39929-731 Dircksenstraße 42-44 fax: +49 30 39929-900 D-10178 Berlin email: [EMAIL PROTECTED] Germanyweb: http://www.ubis-ag.com --- -Ursprüngliche Nachricht- Von: Dean Karres [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 8. Juli 2003 18:07 An: [EMAIL PROTECTED] Betreff: Tomcat fails to start under win2k-pro Hi, I'm not a Windows person but have been asked to start a standalone Tomcat 4.1.24 server on a Win2k-pro machine. I did a very basic install on a linux box once before and it worked right out of the box. The windows install and startup is not playing nice. I did the install and *think* I have configured it to run on port 80 [this is necessary for our needs]. I set the JAVA_HOME variable and then ran the startup.bat file. I get a report that -Djava.endorsed.dirs= can not be found or is not understood -- sorry for the imprecise message but the machine is half a building away and I was distracted on the way back. I do know this is coming from the catalina.bat script though. I ran: catalina.bat start and received the same message. Dean...K... -- Dean Karres / [EMAIL PROTECTED] / itg.uiuc.edu Imaging Technology Group / Beckman Institute / University of Illinois 405 North Mathews / Urbana, IL 61801 USA - 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]
org.apache.commons.digester.Digester error
I am running Tomcat 4.1.24My application worksbut I see the following error when I start the Tomcat. can somebody advice me as what I should do thanks -naveen Apache Tomcat/4.1.24 Jul 8, 2003 11:19:46 AM org.apache.commons.digester.Digester error SEVERE: Parse Error at line 68 column 11: The content of element type web-app must match isplay-name?,description?,distributable?,context-param*,filter*,filter-mapping*,listener*, ervlet-mapping*,session-config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resou f*,resource-ref*,security-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb *). org.xml.sax.SAXParseException: The content of element type web-app must match (icon?,di ?,description?,distributable?,context-param*,filter*,filter-mapping*,listener*,servlet*,se ing*,session-config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-env-ref -ref*,security-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-local-ref* at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Sour at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown So at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher Unknown Source) - Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month!
RE: org.apache.commons.digester.Digester error
That means you have an incorrect entry in web.xml. 'incorrect' in this context means a typo, or elements that are incorrectly nested, or out of order. It's most likely the order though. -Original Message- From: Naveen My [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 08, 2003 11:23 AM To: Tomcat Users List Subject: org.apache.commons.digester.Digester error I am running Tomcat 4.1.24My application worksbut I see the following error when I start the Tomcat. can somebody advice me as what I should do thanks -naveen Apache Tomcat/4.1.24 Jul 8, 2003 11:19:46 AM org.apache.commons.digester.Digester error SEVERE: Parse Error at line 68 column 11: The content of element type web-app must match isplay-name?,description?,distributable?,context-param*,filter *,filter-mapping*,listener*, ervlet-mapping*,session-config?,mime-mapping*,welcome-file-lis t?,error-page*,taglib*,resou f*,resource-ref*,security-constraint*,login-config?,security-r ole*,env-entry*,ejb-ref*,ejb *). org.xml.sax.SAXParseException: The content of element type web-app must match (icon?,di ?,description?,distributable?,context-param*,filter*,filter-ma pping*,listener*,servlet*,se ing*,session-config?,mime-mapping*,welcome-file-list?,error-pa ge*,taglib*,resource-env-ref -ref*,security-constraint*,login-config?,security-role*,env-en try*,ejb-ref*,ejb-local-ref* at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseExcep tion(Unknown Sour at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Un known Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndE lement(Unknown So at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$Fragment ContentDispatcher Unknown Source) - Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Anyone seen this error before?
I don't really know what the developers are trying to do. I guess my question is is it a problem with the JK2 connector?. Because it comes up and says: CoyoteAdapter An exception or error occurred in the container during the request processing java.lang.NullPointerException The developers think that it is JK2 and wash their hands of it. To me it seems like it could be any number of things that cause a NPE it's just Coyote that catching it. The system also seems to be running out of memory. I wonder if that has something to do with it... I'm going to crank it up. -e On Tue, 8 Jul 2003, Rick Roberts wrote: Are you trying to process a NULL value? Possibly from a request.getParameter()? - 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]
One servlet or many...
Is it better to have one big servlet or a couple of smaller ones? Right now all my request are basically passed through one servlet. There isn't really any process heavy stuff going on, but I'm not quite sure which way would be better as there are several distinct sections I could break it up into. Thanks for the info! -Nick
problem: add in httpd.conf :mod_jk2.so
hi When is start apache received follow error: Can't locate API module structure `jk_module' in file /etc/httpd/modules/mod_jk2.so: /usr/lib/libapr-0.so.0: undefined symbol: jk_module I built mod_jk2 : ./configure --with-apxs2=/usr/sbin/apxs make copy mod_jk2.so to /etc/httpd/modules copy jkjni.so to to /etc/httpd/modules I installed apache 2.0.46 ./configure --enable-layout=SuSE --enable-modules=status info proxy cache expires so make make install what's wrong? gianni - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problem: add in httpd.conf :mod_jk2.so
Hi, in httpd.conf make sure you have LoadModule jk2_module modules/mod_jk2.so I think you have jk_module in their now. -e On Tue, 8 Jul 2003, Gianni Martiradonna wrote: hi When is start apache received follow error: Can't locate API module structure `jk_module' in file /etc/httpd/modules/mod_jk2.so: /usr/lib/libapr-0.so.0: undefined symbol: jk_module I built mod_jk2 : ./configure --with-apxs2=/usr/sbin/apxs make copy mod_jk2.so to /etc/httpd/modules copy jkjni.so to to /etc/httpd/modules I installed apache 2.0.46 ./configure --enable-layout=SuSE --enable-modules=status info proxy cache expires so make make install what's wrong? gianni - 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]
REPOST: IIS 5.0, jk2, Distributed Tomcats
We are a traditionally ASP web development shop that is begun the process of converting to Java. That's the good news. We host all our sites on one machine, so we are trying to find a configuration that allows all our ASP and Java servlet sites to co-exist. We have successfully implemented the jk2 w/Tomcat 4.1.24, following the instructions found in this list and on the jakarta main site. Traditionally, we have had 1 development machine where all our developers make edits to code. We realize the potential disaster this setup could wreak, so we are trying to implement winCVS. As part of this process, we are struggling to come up with a way to create the separate environments necessary to accomodate CVS. We'd like to create a setup where 1 main IIS server is sending ajp requests to our developer machines that are each running Tomcat. This way, each developer machine can house it's own sandbox version of each webapps code. Am I correct in saying that this is doable, by modifying the workers2.properties file? If so, am I modifying the channel.socket entry or the worker entry? Any help with examples is greatly appreciated. We are running Win2k Server, IIS 5.0, Tomcat 4.1.24, jk2 Sincerely, Matthew Mamet Developer embarc LLC
JDBC Realm Warning Message?
Can anyone tell me what this message means, and how to correct it? 2003-07-08 12:56:03 ContextConfig[/hd]: WARNING: Security role name tomcat used in an auth-constraint without being defined in a security-role Here is a copy of my WEB-INF/web.xml: ?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/j2ee/dtds/web-app_2_3.dtd; web-app security-constraint web-resource-collection web-resource-nameProtected Area/web-resource-name !-- Define the context-relative URL(s) to be protected -- url-pattern/*/url-pattern !-- If methods are listed, only those methods will be protected -- http-methodDELETE/http-method http-methodGET/http-method http-methodPOST/http-method http-methodPUT/http-method /web-resource-collection auth-constraint !-- Anyone with one of the listed roles may access this area -- role-nametomcat/role-name /auth-constraint /security-constraint login-config auth-methodFORM/auth-method realm-nameForm-Based Authentication Area/realm-name form-login-config form-login-page/login.jsp/form-login-page form-error-page/login_error.jsp/form-error-page /form-login-config /login-config /web-app -- *** * Rick Roberts* * Advanced Information Technologies, Inc. * *** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JDBC Realm Warning Message?
From the DTD for web.xml: !-- The auth-constraint element indicates the user roles that should be permitted access to this resource collection. The role-name used here must either correspond to the role-name of one of the security-role elements defined for this web application, or be the specially reserved role-name * that is a compact syntax for indicating all roles in the web application. snip / -- So then.. it appears you need to define who 'tomcat' is, within a security-role element -Original Message- From: Rick Roberts [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 08, 2003 12:08 PM To: Tomcat Users List Subject: JDBC Realm Warning Message? Can anyone tell me what this message means, and how to correct it? 2003-07-08 12:56:03 ContextConfig[/hd]: WARNING: Security role name tomcat used in an auth-constraint without being defined in a security-role Here is a copy of my WEB-INF/web.xml: ?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/j2ee/dtds/web-app_2_3.dtd; web-app security-constraint web-resource-collection web-resource-nameProtected Area/web-resource-name !-- Define the context-relative URL(s) to be protected -- url-pattern/*/url-pattern !-- If methods are listed, only those methods will be protected -- http-methodDELETE/http-method http-methodGET/http-method http-methodPOST/http-method http-methodPUT/http-method /web-resource-collection auth-constraint !-- Anyone with one of the listed roles may access this area -- role-nametomcat/role-name /auth-constraint /security-constraint login-config auth-methodFORM/auth-method realm-nameForm-Based Authentication Area/realm-name form-login-config form-login-page/login.jsp/form-login-page form-error-page/login_error.jsp/form-error-page /form-login-config /login-config /web-app -- *** * Rick Roberts* * Advanced Information Technologies, 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]
Tomcat servlet shutting down Tomcat
Questions: Why is tomcat stopping? What do the following 2 localhost_log statements mean in lay mans terms? HostConfig[localhost]: HostConfig: Processing STOP StandardWrapper[/test:PressRequestServlet]: Waiting for 1 instance(s) to be deallocated How or where else should I be looking for more error information? Are hidden non-jar/class files (inside WEB-INF) accessed by servlets using the web-app directory as a base directory? Problem Details: I am trying to access a mysql db via servlet. I have no problems creating HTML code to a file using a java application that accesses the db. I had no problems creating HTML code to a web browser using a servlet that accesses a local xml file. I attempted to merge the code by altering my servlet to include the following code in the doGet method: QueryToHTML qTH=new QueryToHTML(query, new StreamResult(out)); try{ qTH.transform(); }catch(Exception e){out.println(invalid xsl transform);} where originally the javax.xml.stream.StreamResult constructor used was taking in a java.io.File object, the new StreamResult constructor is using out which is of type java.io.PrintWriter which extends the java.io.Writer class. When I access this code tomcat shuts down and my browser (IE6) gives me an error page of some sort and quickly redirects me to the icky xupiter.com site (OT: anyone know how to fix IE error page redirection?) with debug set to 99, I get the following from my localhost_log: HostConfig[localhost]: Deploying discovered web applications StandardHost[localhost]: Mapping request URI '/test/connection/Press' StandardHost[localhost]: Trying the longest context path prefix StandardHost[localhost]: Mapped to context '/test' HostConfig[localhost]: HostConfig: Processing STOP HostConfig[localhost]: Stopping background thread HostConfig[localhost]: Deploying discovered web applications HostConfig[localhost]: BACKGROUND THREAD Stopping HostConfig[localhost]: Undeploying deployed web applications HostConfig[localhost]: Undeploying web application at context path /manager StandardHost[localhost]: Removing web application at context path /manager HostConfig[localhost]: Undeploying web application at context path /test StandardHost[localhost]: Removing web application at context path /test StandardWrapper[/test:PressRequestServlet]: Waiting for 1 instance(s) to be deallocated HostConfig[localhost]: Undeploying web application at context path /examples StandardHost[localhost]: Removing web application at context path /examples HostConfig[localhost]: Undeploying web application at context path /tomcat-docs StandardHost[localhost]: Removing web application at context path /tomcat-docs HostConfig[localhost]: Undeploying web application at context path /webdav StandardHost[localhost]: Removing web application at context path /webdav HostConfig[localhost]: Undeploying web application at context path StandardHost[localhost]: Removing web application at context path HostConfig[localhost]: Undeploying web application at context path /admin StandardHost[localhost]: Removing web application at context path /admin Also, the xslt file I am using is being kept in /WEB-INF/data/someTranform.xsl from reading other peoples code I am assuming you refer to all files relative to the base application directory rather than relative to the servlet or base class directory. Is this correct? I haven't been able to find anywhere that specifically states this. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
problem going from 4.0.4 - 4.1.24
I am trying to migrate my applications from using Tomcat 4.0.4 to using Tomcat 4.1.24; I *thought* I had everything configured correctly so the behavior on 4.1.24 would be the same as on 4.0.4, but that's not what I'm seeing. There aren't any errors in any of the many logs that I'm generating, so I'm not sure where else to look. What I had set up in 4.0.4 was for one of my applications to be the default application - and in server.xml (of 4.0.4), all I needed to do for that was in the Context element for that application - make it Context path= docBase=MyApp debug=0 . However, if I do that in 4.1.24, I get the standard Tomcat install page, minus the images, which are expected to be in the same directory. I have to specify /MyApp on the address line to get MyApp to display. Any ideas as to what I'm doing wrong? Something else that I'd think would be related - I noticed in 4.0.4 that the Tomcat install page was called index.html, and it was in /webapps/ROOT, but in 4.1.24, that same file was called index.jsp. To make things the same, I renamed the file to .html, but the browser's address line shows that index.jsp is being served, even tho the same file is displayed. Why? Thanks! -- Lynn Hollerman. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Anyone seen this error before?
I think the problem is much simpler. Sounds like a JSP is attempting to access something (like myHashMap.get(null) ) and the NPE is being thrown up to Tomcat. How about some code? This only happening in one spot? Lukas Eric J. Pinnell [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I don't really know what the developers are trying to do. I guess my question is is it a problem with the JK2 connector?. Because it comes up and says: CoyoteAdapter An exception or error occurred in the container during the request processing java.lang.NullPointerException The developers think that it is JK2 and wash their hands of it. To me it seems like it could be any number of things that cause a NPE it's just Coyote that catching it. The system also seems to be running out of memory. I wonder if that has something to do with it... I'm going to crank it up. -e On Tue, 8 Jul 2003, Rick Roberts wrote: Are you trying to process a NULL value? Possibly from a request.getParameter()? - 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]
RMI-IIOP on Tomcat
I am trying to set a RMI-IIOP server on Tomcat. Getting some issues. MY RMI Server works fine if I start it standalone- without Tomcat. I think have been able to set security codebase etc correctly. Environment : Tomcat 4.1, Win NT4, JDK1.4.1 I have issues when I start the RMIServer in Tomcat. I can start tomcat in the secured mode and start my RMI server successfully but then I run into two different kinds of problems: 1. If I run the client from the same m/c as Tomcat then I can do the lookup and also do the PortableRemoteObject.narrow(). But a client on a difffrent m/c (in the same LAN) can not execute the narrow() - gives classcast Exception. 2. I can not execute a method on the server (even when I get the narrow() to succeeed). Gives error: java.rmi.NoSuchObjectException: CORBA OBJECT_NOT_EXIST 1398079692 No Has anyone done this. Any ideas suggestions would be welcome Thanks Sanjay __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Anyone seen this error before?
I gotta dig around for the code. I'm on the admin side. It seems to only happen in one spot. We got four of these errors within 20 minutes of each other. Before and after that 20 minute period, nada. The ongoing it's the code vs. it's the configuration war is going on. I had a feeling it wasn't a Coyote error but just an NPE that Coyote is reporting on. -e On Tue, 8 Jul 2003, Lukas Bradley wrote: I think the problem is much simpler. Sounds like a JSP is attempting to access something (like myHashMap.get(null) ) and the NPE is being thrown up to Tomcat. How about some code? This only happening in one spot? Lukas Eric J. Pinnell [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I don't really know what the developers are trying to do. I guess my question is is it a problem with the JK2 connector?. Because it comes up and says: CoyoteAdapter An exception or error occurred in the container during the request processing java.lang.NullPointerException The developers think that it is JK2 and wash their hands of it. To me it seems like it could be any number of things that cause a NPE it's just Coyote that catching it. The system also seems to be running out of memory. I wonder if that has something to do with it... I'm going to crank it up. -e On Tue, 8 Jul 2003, Rick Roberts wrote: Are you trying to process a NULL value? Possibly from a request.getParameter()? - 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]
help - problem loading classes on startup
If anyone could help me out, it would be greatly appreciated. I have been working this issue for 2 weeks and cannot figure out what the problem is. Thank you. Mark W. Webb wrote: I have wrote a C program that starts up tomcat using the Invocation API. The reason for this is so that I can prompt the user for a password that will open up a PKCS12 file If anyone has a better solution, please let me know). I have downloaded the tomcat 4.1.24, and commons-digester source and am trying to figure out why I cannot get my program to work. I have traced the problem to the Digester code. The Digeter class is having a problem finding classes : org.apache.catalina.core.StandardServer org.apache.catalina.deploy.NamingResources org.apache.catalina.deploy.ContextEnvironment When I turn on debugging in tomcat, I get the following output : snip ClassLoaderFactory:Including jar file /tmp/jakarta-tomcat-4.1.24-src/build/server/lib/catalina.jar /snip which is where org.apache.catalina.core.StandardServer is, so I am confused. Although when I run tomcat in the standard way (startup.sh), all goes well. Could someone please help Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: variable out may not have been initialised
Yes, i know this, thanks. The thing is that the actual files themselves aren't overly complex (i should have been more clear on that), there's just a lot going on with includes etc. it's not a code bug as such, since the files will compile if i load them first. so for instance, i might have 6 files labelled 1-6 and if i load them in the following sequence (just by clicking on links): 1-2-3-4-5-6, somewhere between 4 and 6 i will get the error, with the errors log complaining about variables not being initialised. then if i clear the cache, restart the server and reopen my browser and load the pages in the following sequence: 4-5-6-1-2-3, somewhere between 1 and 3 the error will occur. just to re-emphasise, the variables that supposedly aren't initialised are most definitely assigned a value (even if it's only null) in the code. the compiler just seems to give up for some reason. that suggests to me that it's not to do with my code but rather with the load the compiler can take. er, actually that means it has everything to do with my code, but i guess my question is whether anyone has encountered this kind of behaviour before and if so, is there a fix? thanks, maurice Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm List-Unsubscribe: mailto:[EMAIL PROTECTED] List-Subscribe: mailto:[EMAIL PROTECTED] List-Help: mailto:[EMAIL PROTECTED] List-Post: mailto:[EMAIL PROTECTED] List-Id: Tomcat Users List tomcat-user.jakarta.apache.org Delivered-To: mailing list [EMAIL PROTECTED] Subject: Re: variable out may not have been initialised To: Tomcat Users List [EMAIL PROTECTED] From: [EMAIL PROTECTED] Date: Mon, 7 Jul 2003 15:23:56 +0100 X-MIMETrack: Serialize by Router on pacific/Ddsi(Release 5.0.9a |January 7, 2002) at 07/07/2003 15:23:54 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi Maurice, You probably don't need to hear that right now but Complex JSPs bring development/maintenance problems. You'd better use some kind of MVC framework... Does the error disappear when you remove some part of the page? - Yagiz |-+ | | Maurice Coyle - | | | Sun Microsystems | | | Ireland | | | [EMAIL PROTECTED]| | || | | 07/07/2003 03:18 | | | PM | | | Please respond to| | | Tomcat Users| | | List| | || |-+ --- ---| | | | To: [EMAIL PROTECTED], [EMAIL PROTECTED] | | cc: | | Subject: update Re: variable out may not have been initialised | --- ---| i forgot to say, i found a thread in a forum online about this, the guys there seemed to think it was a page size problem, possibly related to how many tags there are on a page. just inc ase this sheds any more light on it. Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm List-Unsubscribe: mailto:[EMAIL PROTECTED] List-Subscribe: mailto:[EMAIL PROTECTED] List-Help: mailto:[EMAIL PROTECTED] List-Post: mailto:[EMAIL PROTECTED] List-Id: Tomcat Users List tomcat-user.jakarta.apache.org Delivered-To: mailing list [EMAIL PROTECTED] Date: Mon, 7 Jul 2003 15:04:22 +0100 (BST) From: Maurice Coyle - Sun Microsystems Ireland [EMAIL PROTECTED] Subject: variable out may not have been initialised To: [EMAIL PROTECTED] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N hi, if i have a complex jsp with a lot of information on it, i get a whole ream of errors such as that in the subject of this message, telling me that variables in the jsp that quite clearly have been (when you look at the source) initialised haven't. i really don't get it, is there anyone who knows a way around this? thanks, maurice - 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: JDBCRealm first try
Still haven't figured it out. Can anyone help? Thanks, -- *** * Rick Roberts* * Advanced Information Technologies, Inc. * *** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JDBCRealm first try
Have you read my reply in your other thread ? -Original Message- From: Rick Roberts [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 08, 2003 1:04 PM To: Tomcat Users List Subject: Re: JDBCRealm first try Still haven't figured it out. Can anyone help? Thanks, -- *** * Rick Roberts* * Advanced Information Technologies, 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: JDBC Realm Warning Message?
Thanks for reply Mike. After thinkin about this message some more; I think that the reason I am getting this message is because I still have not successfully created a JDBC Realm. I'm thinking that the Roles are defined in the database that I'm not corectly reading yet. -- *** * Rick Roberts* * Advanced Information Technologies, Inc. * *** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problem: add in httpd.conf :mod_jk2.so
Ditto. John On Tue, 8 Jul 2003 12:57:17 -0400 (EDT), Eric J. Pinnell [EMAIL PROTECTED] wrote: Hi, in httpd.conf make sure you have LoadModule jk2_module modules/mod_jk2.so I think you have jk_module in their now. -e On Tue, 8 Jul 2003, Gianni Martiradonna wrote: hi When is start apache received follow error: Can't locate API module structure `jk_module' in file /etc/httpd/modules/mod_jk2.so: /usr/lib/libapr-0.so.0: undefined symbol: jk_module I built mod_jk2 : ./configure --with-apxs2=/usr/sbin/apxs make copy mod_jk2.so to /etc/httpd/modules copy jkjni.so to to /etc/httpd/modules I installed apache 2.0.46 ./configure --enable-layout=SuSE --enable-modules=status info proxy cache expires so make make install what's wrong? gianni - 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 M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat on windows 98
Thanks a lot .that is really useful. Cheers GVS -Original Message- From: Pavan Kumar Basa [mailto:[EMAIL PROTECTED] Sent: 08 July 2003 14:06 To: Tomcat Users List Subject:Re: Tomcat on windows 98 Hello sirnivas, i am sending it again 1.. Install the JDK. Make sure you have JDK 1.3 or 1.4 installed and your PATH set so that both java -version and javac -help give a result. 2.. Configure Tomcat. 3.. Download the software. Go to http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/ and download and unpack the zip file for the latest version (4.1.24 as of last revision of this page). 4.. Enable the ROOT context. Edit install_dir/conf/server.xml and uncomment this line: Context path= docBase=ROOT debug=0/. Not necessary in Tomcat 4.0.3 and earlier. In Tomcat 5.0.3, the element is missing the trailing slash and you need to add it. 5.. Enable the invoker servlet. Go to install_dir/conf/web.xml and uncomment the servlet-mapping element that maps the invoker servlet to /servlet/*. Not necessary prior to Tomcat 4.1.12. 6.. Change the port to 80. Edit install_dir/conf/server.xml and change the port attribute of the Connector element from 8080 to 80. 7.. Turn on servlet reloading. Edit install_dir/conf/server.xml and add a DefaultContext subelement to the main Service element and supply true for the reloadable attribute. 8.. Set the JAVA_HOME variable. Set it to refer to the base JDK directory, not the bin subdirectory. 9.. Change the DOS memory settings. If you get an Out of Environment Space error message when you start the server, right-click on install_dir/bin/startup.bat, select Properties, select Memory, and change the Initial Environment entry from Auto to at least 2816. Repeat the process for install_dir/bin/shutdown.bat. 10.. Set the CATALINA_HOME variable. Optionally, set CATALINA_HOME to refer to the top-level Tomcat installation directory. 11.. Test the server. 12.. Verify that you can start the server. Double-click install_dir/bin/startup.bat and try accessing http://localhost/. 13.. Check that you can access your own HTML JSP pages. Drop some simple HTML and JSP pages into install_dir/webapps/ROOT and access them with http://localhost/filename. 14.. Set up your development environment. 15.. Create a development directory. Put it anywhere except within the Tomcat installation hierarchy. 16.. Make shortcuts to the Tomcat startup shutdown Scripts. Put shortcuts to install_dir/bin/startup.bat and install_dir/bin/shutdown.bat in your development directory and/or on your desktop. 17.. Set your CLASSPATH. Include the current directory (.), install_dir/common/lib/servlet.jar, and the main development directory. 18.. Bookmark the servlet JSP javadocs. Add install_dir/webapps/tomcat-docs/servletapi/index.html to your bookmarks/favorites list. 19.. Compile and test some simple servlets. 20.. Test a packageless servlet. Compile a simple servlet, put the .class file in install_dir/webapps/ROOT/WEB-INF/classes, and access it with http://localhost/servlet/ServletName. 21.. Test a servlet that uses packages. Compile the servlet, put the .class file in install_dir/webapps/ROOT/WEB-INF/classes/packageName, and access it with http://localhost/servlet/packageName.ServletName. 22.. Test a servlet that uses packages and utility classes. Follow the same procedure as the second step above. This third step verifies that the CLASSPATH includes the top level of your development directory. 23.. Establish a simplified deployment method. 24.. Copy to a shortcut. Make a shortcut to install_dir/webapps/ROOT. Copy packageless .class files directly there. With packages, copy the entire directory there. 25.. Use the -d option of javac. Use -d to tell Java where the deployment directory is. 26.. Let your IDE take care of deployment. Tell your IDE where the deployment directory is and let it copy the necessary files. 27.. Use ant or a similar tool. Use the Apache make-like tool to automate copying of files. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ This e-mail has been scanned for viruses by MCI's Internet Managed Scanning Services - powered by MessageLabs. For further information visit http://www.mci.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]