Re: serverside include
If you define a variable in a jsp page and then use the jsp:include tag to include it (let's say the middle) in another page, then the variables that you define in the included jsp page is only available after the include statement. If you wish for a variable to presist for the duration of a user's experience, say for example login to the abb, write some email and other stuff, you could acheive this by storing data in the session. [EMAIL PROTECTED] wrote: Hello, Is there anyhting like a server side inlcude that is loaded into memory when the server starts, making variables specified in the include file accessible? Or is what I am trying to acheive (in previous posts) - session or application to be loaded when the server is started - the nearest solution to this? I have seen documentation to have a jsp:include, but I can't see how variables within the servlet would be accessible from any other page? Any thoughts? Thanks Paul. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: newbiw. mysql connector problems
I'm guessing that you're using some 1.4.x JVM. The Tomcat 4.1.x startup scripts override $JAVA_HOME/jre/lib/ext, and set it to $CATALINA_HOME/common/endorsed. Copying your MySQL jars here should solve your problems, Evelin [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi I am a newbie and having problems with mysql connector. I download the mysql-connector-java-2.0.14-bin.jar and put the file in the C:\j2sdk1.4.0_02\jre\lib\ext as the readme file instructed. But when I tried to run a jsp file with content: %@ page language=java import=java.sql.* % % Class.forName(com.mysql.jdbc.Driver).newInstance(); % I get the internal server error: org.apache.jasper.JasperException: com.mysql.jdbc.Driver Can anyone help me by telling me what I did wrong? My system is Windows 2000 Professional system with Service Pack 3 and IE6(SP1) installed. I set the Tomcat to run at port 80 and having no problem viewing the site via http://localhost. The Tomcat version is 4.1.12. Many thanks in advance. Evelin PS: I also tried following and got similar problems. %@ page language=java import=java.sql.* % % Class.forName(org.gjt.mm.mysql.Driver); % === Selama Bulan Suci Ramadhan, ikuti Netkuis Ramadhan, Lomba Design E-Card, Opini Berhadiah hanya di www.plasa.com === -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: local WEB-INF/web.xml
Thanks, And what about a path to the class? Is one necessary? Is any package declaration necessary? If I'm not mistaken you put the java source of the servlet into /WEB-INF/classes/, the directory takes class files not source files as per specification. So you will need to compile the source first. [EMAIL PROTECTED] wrote: Hello Why when I add: listener listener-classLoadMycompServletAtStartup/listener-class /listener to a sparsely populated local web.xml file (webapps/mydir/WEB-INF/web.xml) does the system fail - 404 error?. Without this addition, the page loads. The servlet 'LoadMycompServletAtStartup' is located: webapps/mydir/WEB-INF/classes/LoadMycompServletAtStartup.java. Must a specific path or URL to the file be defined? The syntax above is the only addition made since the installation of Tomcat. Thanks paul. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
path mapping
I have a web application that is currently running under Resin. We may need to migrate our app to Tomcat/JBoss. I'm wondering if there is an equivalent feature in Tomcat that allows us to do the same thing as Resin's path-mapping directive. http://www.caucho.com/resin/ref/app-config.xtp#path-mapping This feature allows us to do things like this: path-mapping url-regexp=/(stage/)?(.*\.jsp)$ real-path=$app-dir/jsp/wap/$2/ Which causes Resin to map all requests that end with .jsp into the jsp/wap directory under wherever our webapp's war file has been expanded to. Or, more simply, is there a way to get Tomcat to map requests like *.jsp into our /jsp directory of our webapp? I've looked through the documentation and couldn't find the answer to this. Thanks for any help, -M@ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: ldap authenitcation
Hi, Is it just not possible to authenticate against LDAP? If not can someone help explain how to set the debugging mode of TomCat to verbose because I'm seeing nothing relevant in the logs. sigh please help! Charlene --- Charlene Mitchell [EMAIL PROTECTED] wrote: Hi, No success so far :-( Surely I can't be the only person trying to do something so fundamental? How can I guarantee that I see even a failure in the log files? Seeing nothing at all seems very weird. Thanks Charlene --- Charlene Mitchell [EMAIL PROTECTED] wrote: Hi, How do I authenticate against an LDAP directory using TomCat 4.1.2? In my web.xml I have a resource that requires form authentication as follows: login-config auth-methodFORM/auth-method realm-namejava:/jaas/LDAPLogin/realm-name !-- I tried with and without this -- form-login-config form-login-page/login/form-login-page form-error-page/login-fail/form-error-page /form-login-config /login-config I have read the JNDI Realm how-to and added the following few lines to my server.xml file. Realm className=org.apache.catalina.realm.JNDIRealm debug=99 connectionURL=ldap://ldapmachine:389; userPattern=uid={0},ou=Users,o=myOrg.com roleBase=ou=Groups,0=myOrg.com roleName=cn roleSearch=(uniqueMember={0})/ When I access a restricted URL the login page appears and I type in my credentials, but when I submit (to: j_security_check) I automatically get redirected to my login-fail page in a matter of nano-seconds (this in itself suggests that it is not working!). When I look in the TomCat log files I cannot see any references to any attempts to contact my LDAP directory. And when I look in the LDAP access log I cannot see any attempt to be contacted either. What step have I missed out or got wrong? Many thanks in advance Charlene __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
App Initialization question
Hi, I need to store an object in the application context and this object has to be instatiated when the application is deployed. I am thinking about a solution but I would like confirmation that it is a good practice to do : - declare a servlet that would have a load-on-startup element in web.xml - implement the creation of my object in this servlet - store the generated object in the application context The point is that this servlet would be used only for that purpose (initialization) and I guess there may have some more standard way to do so. Can someone confirm that this is the way to do or point me to a better solution ? Many thanks, Thomas -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: local WEB-INF/web.xml
Classes are looked for in /WEB-INF/classes and lib so you do not need to provide one. Again, take a look at the specification if you still have some doubts about this. [EMAIL PROTECTED] wrote: Thanks, And what about a path to the class? Is one necessary? Is any package declaration necessary? If I'm not mistaken you put the java source of the servlet into /WEB-INF/classes/, the directory takes class files not source files as per specification. So you will need to compile the source first. [EMAIL PROTECTED] wrote: Hello Why when I add: listener listener-classLoadMycompServletAtStartup/listener-class /listener to a sparsely populated local web.xml file (webapps/mydir/WEB-INF/web.xml) does the system fail - 404 error?. Without this addition, the page loads. The servlet 'LoadMycompServletAtStartup' is located: webapps/mydir/WEB-INF/classes/LoadMycompServletAtStartup.java. Must a specific path or URL to the file be defined? The syntax above is the only addition made since the installation of Tomcat. Thanks paul. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: local WEB-INF/web.xml
I tried debugging the source through, my IDE and it threw a java.lang.NoSuchMethodError: main I tried compiling the source through the command prompt and got a load of 'cannot resolve symobol' errors (useful). Below is the entire servlet, any ideas where the problem is? The first 2 of 5 errors when compiling from DOS is: LoadMycompServletAtStartup.java:10:package javax.servlet does not exist and LoadMycompServletAtStartup.java:11:package javax.servlet.http does not exist Do I have a system problem here? The servlet in question below. On jave -version I am using VM build 1.4.1... thanks! import java.io.*; import javax.servlet.*; import javax.servlet.http.*; import java.util.Hashtable; public class LoadMycompServletAtStartup implements ServletContextListener { public void contextInitialized(ServletContextEvent sce) { ServletContext sc = sce.getServletContext(); Hashtable style_index = new Hashtable(); style_index.put(element1, ONE); style_index.put(element2, TWO); sc.setAttribute(style_index, style_index); } public void contextDestroyed(ServletContextEvent sce) {} }
Re: local WEB-INF/web.xml
Hi Paul, at compile time you need to have servlet.jar inside your classpath. See the Application Developers' Guide at pathToTomcat/webapps/tomcat-docs/appdev/index.html Andreas On 26 Nov 2002 at 16:36, [EMAIL PROTECTED] wrote: I tried debugging the source through, my IDE and it threw a java.lang.NoSuchMethodError: main I tried compiling the source through the command prompt and got a load of 'cannot resolve symobol' errors (useful). Below is the entire servlet, any ideas where the problem is? The first 2 of 5 errors when compiling from DOS is: LoadMycompServletAtStartup.java:10:package javax.servlet does not exist and LoadMycompServletAtStartup.java:11:package javax.servlet.http does not exist Do I have a system problem here? The servlet in question below. On jave -version I am using VM build 1.4.1... thanks! import java.io.*; import javax.servlet.*; import javax.servlet.http.*; import java.util.Hashtable; public class LoadMycompServletAtStartup implements ServletContextListener { public void contextInitialized(ServletContextEvent sce) { ServletContext sc = sce.getServletContext(); Hashtable style_index = new Hashtable(); style_index.put(element1, ONE); style_index.put(element2, TWO); sc.setAttribute(style_index, style_index); } public void contextDestroyed(ServletContextEvent sce) {} } -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: serverside include
Hi Kwok, To retrieve a variable defined in another page is all I wish to do. In my main file I include: jsp:include page=inc.jsp /. In inc.jsp is a String. After the include, it simply executes the page and any reference to the variable in the inlcude file is illegal. How may I include a file, and make the variable accessible to the main (including) page? thanks for yuor help paul. Kwok Peng Tuck [EMAIL PROTECTED] 26-11-2002 16:02 Please respond to Tomcat Users List To: Tomcat Users List [EMAIL PROTECTED] cc: Subject:Re: serverside include If you define a variable in a jsp page and then use the jsp:include tag to include it (let's say the middle) in another page, then the variables that you define in the included jsp page is only available after the include statement. If you wish for a variable to presist for the duration of a user's experience, say for example login to the abb, write some email and other stuff, you could acheive this by storing data in the session. [EMAIL PROTECTED] wrote: Hello, Is there anyhting like a server side inlcude that is loaded into memory when the server starts, making variables specified in the include file accessible? Or is what I am trying to acheive (in previous posts) - session or application to be loaded when the server is started - the nearest solution to this? I have seen documentation to have a jsp:include, but I can't see how variables within the servlet would be accessible from any other page? Any thoughts? Thanks Paul. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Discrepancies between servlets and JSP on tomcat in handling UTF-8?
Thanks. That's cleared this one up. The ?xml version=1.0 encoding=UTF-8? just needs to be ignored when reading the response. I should use the charset attribute from the Content-Type header. The bug is in the application I connect to. The encoding attribute is incorrectly set in the response I receive. Regards, Andy -Original Message- From: Craig R. McClanahan To: Tomcat Users List Sent: 25/11/2002 18:59 Subject: RE: Discrepancies between servlets and JSP on tomcat in handling UTF-8 ? On Mon, 25 Nov 2002, Bodycombe, Andrew wrote: Date: Mon, 25 Nov 2002 15:29:29 + From: Bodycombe, Andrew [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] Subject: RE: Discrepancies between servlets and JSP on tomcat in handling UTF-8 ? Interesting. I have encountered a similiar problem. I have a servlet that connects to an XML application. The response from the application is read using a SAX reader, and I encountered an error if the response contained any non-ASCII characters (ü and ß in particular, as I am currently working in Germany) I did a little investigation, and found that the content type was text/xml; charset=ISO-5591-1 and the xml tag was ?xml version=1.0 encoding=UTF-8? Now the XML I received in my servlet was ISO-5591-1 and not UTF-8, so I have contacted the application developers to say Please fix your application because the XML I receive is not encoded as UTF-8, it is ISO-5591-1. I have a work-round, where I read the input using an ISO-8859-1 InputStreamReader, and get the SAXReader to use this as the input. This is working fine as a temporary measure. The original message in this thread suggests to me that this could actually be a tomcat problem and not necessarily a problem with the application I connect to. There is clearly a discrepancy between the encoding type and the charset, and the SAX reader is using the value of the encoding attribute to read the text. Is tomcat doing something with the HTTP text, possibly converting it from UTF-8 into ISO-5591-1? Yes. The Servlet and JSP specs require that the character encoding (if you are writing a character-based response) default to ISO-8859-1 unless you explicitly tell the container otherwise. To set the character encoding in a servlet, you add the charset modifier to the content type: response.setContentType(text/html;charset=UTF-8); In a JSP page, you set the character encoding of the response in the %@ page % directive: %@ page contentType=text/html;charset=UTF-8 % In JSP 2.0, you'll have the ability to declare (in a global configuration file) that pages that match this URL pattern have this encoding. For JSP 1.2 (i.e. Tomcat 4.x) you do not have that option, and must declare it inside the page itself. I confess, I've not tried this servlet out in other servlet containers, just tomcat version 4.1.12, running on Windows Andy Craig -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Does web.xml inherit?
As far as I know the sequence is: Default Context App Context /conf/web.xml /WEB-INF/web.xml So your /WEB-INF/web.xml has the final say, provided that overrides to the previous settings have been allowed. -Original Message- From: Ben Ricker [mailto:[EMAIL PROTECTED]] Sent: Montag, 25. November 2002 23:24 To: Tomcat Users List Subject: Does web.xml inherit? I am running Tomcat 4.0.6 on Solaris. We are getting complaints of session timeouts from users. Looking around I found the Default Session Configuration section of the web.xml in the /conf directory. The app is in its own context defined by its own web.xml. So my question is: does the web.xml inherit the values from the web.xml in the /conf directory (let us call it the main web.xml)? Or are the default values listed in the main web.xml the default values for ALL other contexts if they are not explicitely changed in the other contexts? Thanks, Ben Ricker Wellinx.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Embedded Tomcat Problem
Hi all, I am running on WinMe platform with jdk1.3.1_04, tomcat 4.1.12 I try to embed tomcat into my Java application but I am facing some difficulties. I can't start tomcat as the classpath has included a lot of tomcat's jar files, if i take away some jars, I'll get NoClassDefFoundError I have moved all jar files to a lib folder. I have also change the memory of the batch file to 4096 The last statement I can see from the console show that the command is too long: java -classpath .;lib/bootstrap.jar;.(cannot reach the end of command which should be EmbeddedTomcat) Below is my batch file that call my EmbeddedTomcat.class set CLASSPATH=.;lib/bootstrap.jar;lib/commons-daemon.jar;lib/tomcat-jni.jar ;lib/xercesImpl.jar;lib/xmlParserAPIs.jar set CLASSPATH=%CLASSPATH%;lib/xercesImpl.jar;lib/activation.jar;lib/ant.jar ;lib/commons-collections.jar;lib/commons-dbcp.jar set CLASSPATH=%CLASSPATH%;lib/commons-logging-api.jar;lib/commons-pool.jar; lib/dom.jar;lib/jasper-compiler.jar set CLASSPATH=%CLASSPATH%;lib/jasper-runtime.jar;lib/jaxen-full.jar;lib/jax p-api.jar;lib/jdbc2_0-stdext.jar;lib/jdom.jar set CLASSPATH=%CLASSPATH%;lib/jndi.jar;lib/jstl.jar;lib/jta.jar;lib/mail. jar;lib/naming-common.jar;lib/naming-factory.jar set CLASSPATH=%CLASSPATH%;lib/naming-resources.jar;lib/sax.jar;lib/saxpath. jar;lib/servlet.jar;lib/standard.jar set CLASSPATH=%CLASSPATH%;lib/xalan.jar;lib/catalina.jar;lib/catalina-ant.j ar;lib/commons-beanutils.jar;lib/commons-digester.jar set CLASSPATH=%CLASSPATH%;lib/commons-logging.jar;lib/commons-modeler.jar;l ib/jaas.jar;lib/jakarta-regexp-1.2.jar set CLASSPATH=%CLASSPATH%;lib/mx4j-jmx.jar;lib/servlets-common.jar;lib/serv lets-default.jar;lib/servlets-invoker.jar set CLASSPATH=%CLASSPATH%;lib/servlets-manager.jar;lib/servlets-webdav.jar; lib/tomcat-coyote.jar;lib/tomcat-http11.jar set CLASSPATH=%CLASSPATH%;lib/tomcat-jk2.jar;lib/tomcat-jk.jar;lib/tomcat-u til.jar;lib/tomcat-warp.jar set CLASSPATH=%CLASSPATH%;C:\jdk1.3.1_04\lib\tools.jar java -classpath %CLASSPATH% EmbeddedTomcat Any help would be appreciated. Thank you. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Embedded Tomcat Problem
Hi, try to set the complete path like CLASSPATH=.;c:\path\to\lib\bootstrap.jar etc. Maybe also without quotes. In a message today it was suggested not to mix forward and back slashes as you did. Subject was: Re: Problems running Tomcat from command line I hope this helps. I can't help you with Embedded Tomcat. Regards. Andreas On 26 Nov 2002 at 18:27, Lee Peik Feng wrote: Hi all, I am running on WinMe platform with jdk1.3.1_04, tomcat 4.1.12 I try to embed tomcat into my Java application but I am facing some difficulties. I can't start tomcat as the classpath has included a lot of tomcat's jar files, if i take away some jars, I'll get NoClassDefFoundError I have moved all jar files to a lib folder. I have also change the memory of the batch file to 4096 The last statement I can see from the console show that the command is too long: java -classpath .;lib/bootstrap.jar;.(cannot reach the end of command which should be EmbeddedTomcat) Below is my batch file that call my EmbeddedTomcat.class set CLASSPATH=.;lib/bootstrap.jar;lib/commons-daemon.jar;lib/tom cat-jni.jar ;lib/xercesImpl.jar;lib/xmlParserAPIs.jar set CLASSPATH=%CLASSPATH%;lib/xercesImpl.jar;lib/activation.jar; lib/ant.jar ;lib/commons-collections.jar;lib/commons-dbcp.jar set CLASSPATH=%CLASSPATH%;lib/commons-logging-api.jar;lib/commons- pool.jar; lib/dom.jar;lib/jasper-compiler.jar set CLASSPATH=%CLASSPATH%;lib/jasper-runtime.jar;lib/jaxen-full.ja r;lib/jax p-api.jar;lib/jdbc2_0-stdext.jar;lib/jdom.jar set CLASSPATH=%CLASSPATH%;lib/jndi.jar;lib/jstl.jar;lib/jta.jar ;lib/mail. jar;lib/naming-common.jar;lib/naming-factory.jar set CLASSPATH=%CLASSPATH%;lib/naming-resources.jar;lib/sax.jar;l ib/saxpath. jar;lib/servlet.jar;lib/standard.jar set CLASSPATH=%CLASSPATH%;lib/xalan.jar;lib/catalina.jar;lib/cat alina-ant.j ar;lib/commons-beanutils.jar;lib/commons-digester.jar set CLASSPATH=%CLASSPATH%;lib/commons-logging.jar;lib/commons-mode ler.jar;l ib/jaas.jar;lib/jakarta-regexp-1.2.jar set CLASSPATH=%CLASSPATH%;lib/mx4j-jmx.jar;lib/servlets-common.jar ;lib/serv lets-default.jar;lib/servlets-invoker.jar set CLASSPATH=%CLASSPATH%;lib/servlets-manager.jar;lib/servlets-we bdav.jar; lib/tomcat-coyote.jar;lib/tomcat-http11.jar set CLASSPATH=%CLASSPATH%;lib/tomcat-jk2.jar;lib/tomcat-jk.jar;l ib/tomcat-u til.jar;lib/tomcat-warp.jar set CLASSPATH=%CLASSPATH%;C:\jdk1.3.1_04\lib\tools.jar java -classpath %CLASSPATH% EmbeddedTomcat Any help would be appreciated. Thank you. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Virtual host problem
I have a HP-UX server with Tomcat 4.0.4, and I want to host 30+ virtual host. I fill up the server.xml, start catalina, and the Tomcat's java process allocate gigabytes(1+) of memory!!! When i remove virtual hosts from server.xml, the memory usage go lower. Is the 1g+ allocation normal, or a bug? What can I do? XYBeR ps: sorry for my english -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
IllegalStateException??? Please help!
I've set up a SSL socket in Tomcat and everything appears to work okay. I can connect to the port, install the cert and access the site. However, when I access the HTTPS port with my browser and get the 'Security Alert' prompt telling me about the certificate and asking me if I want to continue, then I get the following message scrolling continually within the Tomcat window. 2002-11-20 15:25:31 - Ctx( ): IllegalStateException in: R( /) Current state = F LUSHED, new state = CODING 2002-11-20 15:25:31 - Ctx( ): IllegalStateException in: R( /) Current state = F LUSHED, new state = CODING 2002-11-20 15:25:31 - Ctx( ): IllegalStateException in: R( /) Current state = F LUSHED, new state = CODING Can anybody tell me what this means and how I might prevent it from happening? Thanks Steve -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Session Handling in Tomcat 3.2.4
Hi all, Can i persist the session id generated from the server request.getSession(); I am having one class which connects to the server with url object and receives a session id as response from the server. Now the same session id is used by other programs to communicate with the server. Now if because of some malfunction server shuts down I am catching the network errors as ConnectException BindException, UnknowHostException etc. if the exception occurs, in the catch block the method connect method will be called , now in this method session id will be sent as a jsession parameter, and will try to re establish the connection if the connection has been established i want , sever to send the same session id . so that the other threads will be in same state as of they are before , they were sending information to server before connection was lost.. now my question is whether it will work and does server supports such kind of requests of creating the session object with the same name as specified in the url connection. Regards, Vaibhav -- Vaibhav Kulkarni Embedded Systems Group. rapidEffect (P) Ltd. 25,Napier Road, Pune 411 001 Ph. 020 6363250 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: App Initialization question
[EMAIL PROTECTED] wrote: Hi, I need to store an object in the application context and this object has to be instatiated when the application is deployed. I am thinking about a solution but I would like confirmation that it is a good practice to do : - declare a servlet that would have a load-on-startup element in web.xml - implement the creation of my object in this servlet - store the generated object in the application context The point is that this servlet would be used only for that purpose (initialization) and I guess there may have some more standard way to do so. Can someone confirm that this is the way to do or point me to a better solution ? Generally, using a servlet with a load-on-startup element is NOT the best way to go about it - the servlet spec allows servlet containers to instantiate and trash servlets at any time. Hence, your servlet might be instantiated several times, and your initialisation code executed several times. The preferred method is to define a class that implements the ContextListener interface, and to perform initialisation code in the contextInitialised() method. Cleanup can be done in the contextDestroyed() method. I use this to load a bunch of application properties from an external file into a singleton class, MyAppProperties. The servlets then just do MyAppProperties.getInstance() to get the instance of the class. It works great! HTH, Martin -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
WAR files not expanding.
When I put a .war file over to my tomcat server it doesn't work. - It only creates an empty directory in webapps. If I put over the war and unzip the file, it works fine. If I put over the .war file and set unpackWARs=false it does not work. - The unpack command is understood though as it does not create the directory in webapps I am using Tomcat 4.0.4. Has anyone come across anything similar? Thanks in advance, Andoni. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Netscape 6.2.x problem
I am developing a servlet on Apache Tomcat 4.0. On Netscape 6.2.x occasionally it displays the raw http, rather than the html. See this image for an example. http://www.c-o-g-s.org.uk/work/netscape623.jpg Any idea why this is? It doesn't do it on any other browsers that I have found or on earlier versions of netscape. Thanks -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
workers.properties
I am working with apache 1.3.26 with tomcat 4.1.12 . I need help to config the file workers.properties . And how I can do that I will use jk and put jk2 in disable thanks Yossi Lev MobileSpear
workers.properties
Return Receipt Your workers.properties document : was Kristján Bjarni Guðmundsson/BIS/Dev/REK/Hugvit received by: at: 26.11.2002 13:35:42 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat 4.1.12 Logs??
Hi, In 4.1.x the AccessLogValve in server.xml is commented out by default. Comment it in if you'd like those access logs. You can also move it under a specific Context element to only log accesses to that Context. Yoav Shapira Millennium ChemInformatics -Original Message- From: Prashanth Pushpagiri [mailto:[EMAIL PROTECTED]] Sent: Monday, November 25, 2002 5:03 PM To: Tomcat Users List Subject: Re: Tomcat 4.1.12 Logs?? Hi: I am running Tomcat 4.1.12 alongside IIS 5.0. I have no installation problems, but what I'd like to know is how to set up my logs. In all previous versions of Tomcat I observed Tomcat logging access details (complete HTTP requests made) in files like localhost_accesslog_***.txt, but in 4.1.x I havent seen these files being created in $CATALINA_HOME/logs. Do we need to set it up? If so how? If not where are these logs? Thanks Prashanth __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Netscape 6.2.x problem
Richard Heath wrote: I am developing a servlet on Apache Tomcat 4.0. On Netscape 6.2.x occasionally it displays the raw http, rather than the html. See this image for an example. http://www.c-o-g-s.org.uk/work/netscape623.jpg Any idea why this is? It doesn't do it on any other browsers that I have found or on earlier versions of netscape. The only potentially problematic thing might be that chunked HTTP header. Maybe Netscape doesn't like it. Anyway, what is displayed is not a raw HTTP otuput, those 1s are not there when you telnet to a web server and pass a valid HTTP request. Nix. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
verifyError with tomcat and xerces 2.2.1
Hi, I created a very small servlet and when I try to run it I got a VerifyError exception (see below). The servlet try to create a instance of JAXP DocumentBuilder. I use xerces 2.2.1, that work with previous versions. That work also on the client side (xerces 2.2.1 and without tomcat). The JDK used is IBM jdk1.3.1. Any ideas of what wrong? Thanks Execption trace: java.lang.VerifyError: Class org/apache/xerces/impl/XMLNSDocumentScannerImpl$NSContentDispatcher is subclass of final class org/apache/xerces/impl/XMLDocumentScannerImpl$ContentDispatcher at org.apache.xerces.impl.XMLNSDocumentScannerImpl.createContentDispatcher(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.(XMLDocumentFragmentScannerImpl.java:248) at org.apache.xerces.impl.XMLDocumentScannerImpl.(XMLDocumentScannerImpl.java:245) at org.apache.xerces.impl.XMLNSDocumentScannerImpl.(Unknown Source) at org.apache.xerces.parsers.IntegratedParserConfiguration.createDocumentScanner(Unknown Source) at org.apache.xerces.parsers.DTDConfiguration.(DTDConfiguration.java:366) at org.apache.xerces.parsers.StandardParserConfiguration.(StandardParserConfiguration.java:197) at org.apache.xerces.parsers.IntegratedParserConfiguration.(Unknown Source) at org.apache.xerces.parsers.IntegratedParserConfiguration.(Unknown Source) at java.lang.Class.newInstance0(Native Method) at java.lang.Class.newInstance(Class.java:262) at org.apache.xerces.util.ObjectFactory.newInstance(ObjectFactory.java:293) at org.apache.xerces.util.ObjectFactory.createObject(ObjectFactory.java:224) at org.apache.xerces.util.ObjectFactory.createObject(ObjectFactory.java:119) at org.apache.xerces.parsers.DOMParser.(DOMParser.java:153) at org.apache.xerces.parsers.DOMParser.(DOMParser.java:137) at org.apache.xerces.jaxp.DocumentBuilderImpl.(DocumentBuilderImpl.java:102) at org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(DocumentBuilderFactoryImpl.java:88) The servlet code is: import java.io.IOException; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import javax.xml.parsers.ParserConfigurationException; import org.w3c.dom.Document; /** * */ public class Test2 extends HttpServlet { /** * @see javax.servlet.http.HttpServlet#doGet(HttpServletRequest, HttpServletResponse) */ protected void doGet(HttpServletRequest arg0, HttpServletResponse arg1) throws ServletException, IOException { DocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance(); docFactory.setNamespaceAware(true); try { DocumentBuilder docBuilder = docFactory.newDocumentBuilder(); Document _document = docBuilder.newDocument(); } catch (ParserConfigurationException e) { } } } -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Netscape 6.2.x problem
Richard Heath wrote: I wondered about that chunked header myself, but don't really know what that means. It means that the object being transfered isn't... ?raw, but compressed? I'm not sure... I've been doing some more investigation. It appears to only happen when Tomcat is running on our Solaris box. It works fine on Windows XP and NT. Try to capture raw HTTP packets, or just simply telnet to both Tomcat's ports and issue a HTTP request. You should see what's going on. I was wondering if the 1's had something to do with MBCS or unicode characters? ??? Dunno... -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Problems running Tomcat from command line
You are right. The issue is memory. I know this because I tried: command /e:2861 then startup.bat It got going. Unfortunatley it opens up a new dos window, which I don't want as the whole point in doing this for me was to be able to use my shell emulator/tool ( either eshell or cygwin ) to run tomcat so I could easily ( without going to /logs ) see, search, analyze standart out. All of the things I have found for permantly increasing memory size in windows 2000 are methods that work for other versions of windows, but not 2000. Oy! Steve At 04:31 AM 11/26/2002 +0530, you wrote: Did you try this by opening a new command window? (After you change the comspec parameters, the changes take place only in a new window). Manav. - Original Message - From: Steve Russell [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, November 26, 2002 4:09 AM Subject: Re: Problems running Tomcat from command line ComSpec, I made a typo Steve At 04:09 AM 11/26/2002 +0530, you wrote: Are you sure you modified ComSpec or ComSec (as you mentioned)? Manav. - Original Message - From: Steve Russell [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, November 26, 2002 3:56 AM Subject: RE: Problems running Tomcat from command line At 02:04 PM 11/25/2002 -0800, you wrote: Steve Russell, Perhaps this link will help: http://www.google.com/search?q=out+of+environment+space+tomcat Try to get that out of environment space error to go away, then we'll work on the absentee servlet.jar issue. Win 2000 does it differently. I went into control panel | system | advanced | environment and set ComSec to C:\WINNT\sysem32\cmd.exe /e:32768 No effect -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Steve Russell Applications Developer 301-251-1161 x 275 [EMAIL PROTECTED] Emmes Corporation 401 N. Washington Street, Suite 700 Rockville, MD 20850 - 1785 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Steve Russell Applications Developer 301-251-1161 x 275 [EMAIL PROTECTED] Emmes Corporation 401 N. Washington Street, Suite 700 Rockville, MD 20850 - 1785 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Problems running Tomcat from command line
Hello, If you are using NT/W2K then use the command cmd and not command. cmd has more capabilities than command. Regards, Stephen. -Original Message- From: Steve Russell [mailto:[EMAIL PROTECTED]] Sent: 26 November 2002 14:32 To: Tomcat Users List Subject: Re: Problems running Tomcat from command line You are right. The issue is memory. I know this because I tried: command /e:2861 then startup.bat It got going. Unfortunatley it opens up a new dos window, which I don't want as the whole point in doing this for me was to be able to use my shell emulator/tool ( either eshell or cygwin ) to run tomcat so I could easily ( without going to /logs ) see, search, analyze standart out. All of the things I have found for permantly increasing memory size in windows 2000 are methods that work for other versions of windows, but not 2000. Oy! Steve At 04:31 AM 11/26/2002 +0530, you wrote: Did you try this by opening a new command window? (After you change the comspec parameters, the changes take place only in a new window). Manav. - Original Message - From: Steve Russell [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, November 26, 2002 4:09 AM Subject: Re: Problems running Tomcat from command line ComSpec, I made a typo Steve At 04:09 AM 11/26/2002 +0530, you wrote: Are you sure you modified ComSpec or ComSec (as you mentioned)? Manav. - Original Message - From: Steve Russell [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, November 26, 2002 3:56 AM Subject: RE: Problems running Tomcat from command line At 02:04 PM 11/25/2002 -0800, you wrote: Steve Russell, Perhaps this link will help: http://www.google.com/search?q=out+of+environment+space+tomcat Try to get that out of environment space error to go away, then we'll work on the absentee servlet.jar issue. Win 2000 does it differently. I went into control panel | system | advanced | environment and set ComSec to C:\WINNT\sysem32\cmd.exe /e:32768 No effect -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Steve Russell Applications Developer 301-251-1161 x 275 [EMAIL PROTECTED] Emmes Corporation 401 N. Washington Street, Suite 700 Rockville, MD 20850 - 1785 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Steve Russell Applications Developer 301-251-1161 x 275 [EMAIL PROTECTED] Emmes Corporation 401 N. Washington Street, Suite 700 Rockville, MD 20850 - 1785 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] --- Copyright material and/or confidential and/or privileged information may be contained in this e-mail and any attached documents. The material and information is intended for the use of the intended addressee only. If you are not the intended addressee, or the person responsible for delivering it to the intended addressee, you may not copy, disclose, distribute, disseminate or deliver it to anyone else or use it in any unauthorised manner or take or omit to take any action in reliance on it. To do so is prohibited and may be unlawful. The views expressed in this e-mail may not be official policy but the personal views of the originator. If you receive this e-mail in error, please advise the sender immediately by using the reply facility in your e-mail software, or contact [EMAIL PROTECTED] Please also delete this e-mail and all documents attached immediately. Many thanks for your co-operation. BMW Financial Services (GB) Limited is registered in England and Wales under company number 01288537. Registered Offices : Europa House, Bartley Way, Hook, Hants, RG27 9UF -- -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Problems running Tomcat from command line
I am using windows 2000 and there is no difference I can see between cmd vs command. Both lack the option to encrease dos environment memory under properties Steve At 02:43 PM 11/26/2002 +, you wrote: Hello, If you are using NT/W2K then use the command cmd and not command. cmd has more capabilities than command. Regards, Stephen. -Original Message- From: Steve Russell [mailto:[EMAIL PROTECTED]] Sent: 26 November 2002 14:32 To: Tomcat Users List Subject: Re: Problems running Tomcat from command line You are right. The issue is memory. I know this because I tried: command /e:2861 then startup.bat It got going. Unfortunatley it opens up a new dos window, which I don't want as the whole point in doing this for me was to be able to use my shell emulator/tool ( either eshell or cygwin ) to run tomcat so I could easily ( without going to /logs ) see, search, analyze standart out. All of the things I have found for permantly increasing memory size in windows 2000 are methods that work for other versions of windows, but not 2000. Oy! Steve At 04:31 AM 11/26/2002 +0530, you wrote: Did you try this by opening a new command window? (After you change the comspec parameters, the changes take place only in a new window). Manav. - Original Message - From: Steve Russell [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, November 26, 2002 4:09 AM Subject: Re: Problems running Tomcat from command line ComSpec, I made a typo Steve At 04:09 AM 11/26/2002 +0530, you wrote: Are you sure you modified ComSpec or ComSec (as you mentioned)? Manav. - Original Message - From: Steve Russell [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, November 26, 2002 3:56 AM Subject: RE: Problems running Tomcat from command line At 02:04 PM 11/25/2002 -0800, you wrote: Steve Russell, Perhaps this link will help: http://www.google.com/search?q=out+of+environment+space+tomcat Try to get that out of environment space error to go away, then we'll work on the absentee servlet.jar issue. Win 2000 does it differently. I went into control panel | system | advanced | environment and set ComSec to C:\WINNT\sysem32\cmd.exe /e:32768 No effect -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Steve Russell Applications Developer 301-251-1161 x 275 [EMAIL PROTECTED] Emmes Corporation 401 N. Washington Street, Suite 700 Rockville, MD 20850 - 1785 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Steve Russell Applications Developer 301-251-1161 x 275 [EMAIL PROTECTED] Emmes Corporation 401 N. Washington Street, Suite 700 Rockville, MD 20850 - 1785 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] --- Copyright material and/or confidential and/or privileged information may be contained in this e-mail and any attached documents. The material and information is intended for the use of the intended addressee only. If you are not the intended addressee, or the person responsible for delivering it to the intended addressee, you may not copy, disclose, distribute, disseminate or deliver it to anyone else or use it in any unauthorised manner or take or omit to take any action in reliance on it. To do so is prohibited and may be unlawful. The views expressed in this e-mail may not be official policy but the personal views of the originator. If you receive this e-mail in error, please advise the sender immediately by using the reply facility in your e-mail software, or contact [EMAIL PROTECTED] Please also delete this e-mail and all documents attached immediately. Many thanks for your co-operation. BMW Financial Services (GB) Limited is registered in England and Wales under company number 01288537. Registered Offices : Europa House, Bartley Way, Hook, Hants, RG27 9UF -- -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Steve Russell Applications Developer 301-251-1161 x 275 [EMAIL PROTECTED] Emmes Corporation 401 N. Washington Street, Suite 700 Rockville, MD 20850 - 1785 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Does web.xml inherit?
On Tue, 2002-11-26 at 04:19, Roberts, Eric wrote: As far as I know the sequence is: Default Context App Context /conf/web.xml /WEB-INF/web.xml So your /WEB-INF/web.xml has the final say, provided that overrides to the previous settings have been allowed. Actually, we found that this is not correct. The Default Session Configuration section is only definable in the /conf/web.xml. We tried putting it into the /WEB_INF/web.xml and it did nothing to change the session timeout. I did not try removing the session timeout parameter, however. Anyway, at least for the session parameters, the /conf/web.xml has the final say. Thanks for the help, Ben Ricker Wellinx.com -Original Message- From: Ben Ricker [mailto:[EMAIL PROTECTED]] Sent: Montag, 25. November 2002 23:24 To: Tomcat Users List Subject: Does web.xml inherit? I am running Tomcat 4.0.6 on Solaris. We are getting complaints of session timeouts from users. Looking around I found the Default Session Configuration section of the web.xml in the /conf directory. The app is in its own context defined by its own web.xml. So my question is: does the web.xml inherit the values from the web.xml in the /conf directory (let us call it the main web.xml)? Or are the default values listed in the main web.xml the default values for ALL other contexts if they are not explicitely changed in the other contexts? Thanks, Ben Ricker Wellinx.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: virtual machine option
I used: c:\Tomcat4\bin\tomcat jvm_option -server -Xss800m -Xmx200m -Dave -Original Message- From: srinath narasimhan [mailto:[EMAIL PROTECTED]] Sent: Mon 11/25/2002 5:45 PM To: Tomcat Users List Cc: Subject: RE: virtual machine option I have used it and it seems to work. Can you send in your full tomcat.exe command with the options. -Original Message- From: Dave Roberts [mailto:[EMAIL PROTECTED]] Sent: Monday, November 25, 2002 17:35 To: [EMAIL PROTECTED] Subject: virtual machine option I am trying to get tomcat to pass options to the java virtual machine (i.e. -Xss800m). I cannot find a definative solution on the web, let alone one that actually works. I have tried the JAVA_OPTS environment variable to no avail, editing the registry key (couldn't find it), and passing the jvm_options switch to tomcat.exe. I am using Tomcat 4.0.6 on Windows 2000 Professional addition with jdk 1.4.0. Thanks in advance for any suggestions. -Dave -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Does web.xml inherit?
hey i am facing they same problem sometime we are facing session time outs in spite of me setting session to never expire on first jsp page session.setMaxInactiveInterval (-1); DO U THINK I SHOULD CHANGE THIS Conf/web.xml -Original Message- From: Ben Ricker [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 9:49 AM To: Tomcat Users List Subject: RE: Does web.xml inherit? On Tue, 2002-11-26 at 04:19, Roberts, Eric wrote: As far as I know the sequence is: Default Context App Context /conf/web.xml /WEB-INF/web.xml So your /WEB-INF/web.xml has the final say, provided that overrides to the previous settings have been allowed. Actually, we found that this is not correct. The Default Session Configuration section is only definable in the /conf/web.xml. We tried putting it into the /WEB_INF/web.xml and it did nothing to change the session timeout. I did not try removing the session timeout parameter, however. Anyway, at least for the session parameters, the /conf/web.xml has the final say. Thanks for the help, Ben Ricker Wellinx.com -Original Message- From: Ben Ricker [mailto:[EMAIL PROTECTED]] Sent: Montag, 25. November 2002 23:24 To: Tomcat Users List Subject: Does web.xml inherit? I am running Tomcat 4.0.6 on Solaris. We are getting complaints of session timeouts from users. Looking around I found the Default Session Configuration section of the web.xml in the /conf directory. The app is in its own context defined by its own web.xml. So my question is: does the web.xml inherit the values from the web.xml in the /conf directory (let us call it the main web.xml)? Or are the default values listed in the main web.xml the default values for ALL other contexts if they are not explicitely changed in the other contexts? Thanks, Ben Ricker Wellinx.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Problems running Tomcat from command line
Hi; These are all of the things I have tried to increase the default environment space Windows 2000 gives to shell applications: It used to be with Windows 98 that if you right clicked the icon in a shell window, then properties, you got an option to increase default memory size. This option does not exist in windows 2000. I have also tried setting ComSpec in system | advanced | environment to C:\WINNT\system32\cmd.exe /e:32768 No effect. I have also put this line in C:\Config.sys : shell=%systemroot%\system32\cmd.com /e:32767 No effect. I also put this at the bottom of C:\WINNT\system32\Config.nt : shell=%systemroot%\system32\command.com /e:32768 No effect. I even fully rebooted after each of these things. No luck Is there a way to permantly increase the memory for all dos/shell apps in MS Windows 2000 or is this something that the operating system cannot do? Thanks in advance Steve -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Does web.xml inherit?
On Tue, 2002-11-26 at 09:01, [EMAIL PROTECTED] wrote: hey i am facing they same problem sometime we are facing session time outs in spite of me setting session to never expire on first jsp page session.setMaxInactiveInterval (-1); DO U THINK I SHOULD CHANGE THIS Conf/web.xml Possibly. Timeouts can be a tricky business because of all the issues involved. In conf/web.xml there is a session properties where the default session timeout is 30 minutes. If that is not long enouhg, you can change it there. It does work; we tested it thoroughly (setting it to one minute, 30 minutes, and 60 minutes. It worked). Ben Ricker Wellinx.com -Original Message- From: Ben Ricker [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 9:49 AM To: Tomcat Users List Subject: RE: Does web.xml inherit? On Tue, 2002-11-26 at 04:19, Roberts, Eric wrote: As far as I know the sequence is: Default Context App Context /conf/web.xml /WEB-INF/web.xml So your /WEB-INF/web.xml has the final say, provided that overrides to the previous settings have been allowed. Actually, we found that this is not correct. The Default Session Configuration section is only definable in the /conf/web.xml. We tried putting it into the /WEB_INF/web.xml and it did nothing to change the session timeout. I did not try removing the session timeout parameter, however. Anyway, at least for the session parameters, the /conf/web.xml has the final say. Thanks for the help, Ben Ricker Wellinx.com -Original Message- From: Ben Ricker [mailto:[EMAIL PROTECTED]] Sent: Montag, 25. November 2002 23:24 To: Tomcat Users List Subject: Does web.xml inherit? I am running Tomcat 4.0.6 on Solaris. We are getting complaints of session timeouts from users. Looking around I found the Default Session Configuration section of the web.xml in the /conf directory. The app is in its own context defined by its own web.xml. So my question is: does the web.xml inherit the values from the web.xml in the /conf directory (let us call it the main web.xml)? Or are the default values listed in the main web.xml the default values for ALL other contexts if they are not explicitely changed in the other contexts? Thanks, Ben Ricker Wellinx.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re-deploying webapps from war files
Hello All, I'm working with the latest builds of tomcat (4.1.15) in hopes of moving from tomcat 3.3. One thing that seems to be missing in the 4.x line is a 'redeploy' feature for war files. In tomcat 3.3 I can setup my 'webapp' directory to 'look' for changes in a .war file and on a change event redeploy the application. This is a valuable feature for our development workflow and is sorely missed. If i am overlooking something obvious in the documentation of if this is an as yet 'undocumented feature' can someone please let me know. Thanks! Mark -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: verifyError with tomcat and xerces 2.2.1
Have you try with the SUN JDK 1.3.1? Which version of Tomcat are you using? -- Jeanfrancois [EMAIL PROTECTED] wrote: Hi, I created a very small servlet and when I try to run it I got a VerifyError exception (see below). The servlet try to create a instance of JAXP DocumentBuilder. I use xerces 2.2.1, that work with previous versions. That work also on the client side (xerces 2.2.1 and without tomcat). The JDK used is IBM jdk1.3.1. Any ideas of what wrong? Thanks Execption trace: java.lang.VerifyError: Class org/apache/xerces/impl/XMLNSDocumentScannerImpl$NSContentDispatcher is subclass of final class org/apache/xerces/impl/XMLDocumentScannerImpl$ContentDispatcher at org.apache.xerces.impl.XMLNSDocumentScannerImpl.createContentDispatcher(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.(XMLDocumentFragmentScannerImpl.java:248) at org.apache.xerces.impl.XMLDocumentScannerImpl.(XMLDocumentScannerImpl.java:245) at org.apache.xerces.impl.XMLNSDocumentScannerImpl.(Unknown Source) at org.apache.xerces.parsers.IntegratedParserConfiguration.createDocumentScanner(Unknown Source) at org.apache.xerces.parsers.DTDConfiguration.(DTDConfiguration.java:366) at org.apache.xerces.parsers.StandardParserConfiguration.(StandardParserConfiguration.java:197) at org.apache.xerces.parsers.IntegratedParserConfiguration.(Unknown Source) at org.apache.xerces.parsers.IntegratedParserConfiguration.(Unknown Source) at java.lang.Class.newInstance0(Native Method) at java.lang.Class.newInstance(Class.java:262) at org.apache.xerces.util.ObjectFactory.newInstance(ObjectFactory.java:293) at org.apache.xerces.util.ObjectFactory.createObject(ObjectFactory.java:224) at org.apache.xerces.util.ObjectFactory.createObject(ObjectFactory.java:119) at org.apache.xerces.parsers.DOMParser.(DOMParser.java:153) at org.apache.xerces.parsers.DOMParser.(DOMParser.java:137) at org.apache.xerces.jaxp.DocumentBuilderImpl.(DocumentBuilderImpl.java:102) at org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(DocumentBuilderFactoryImpl.java:88) The servlet code is: import java.io.IOException; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import javax.xml.parsers.ParserConfigurationException; import org.w3c.dom.Document; /** * */ public class Test2 extends HttpServlet { /** * @see javax.servlet.http.HttpServlet#doGet(HttpServletRequest, HttpServletResponse) */ protected void doGet(HttpServletRequest arg0, HttpServletResponse arg1) throws ServletException, IOException { DocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance(); docFactory.setNamespaceAware(true); try { DocumentBuilder docBuilder = docFactory.newDocumentBuilder(); Document _document = docBuilder.newDocument(); } catch (ParserConfigurationException e) { } } } -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Pb with HEAD request
Hi, I have Tomcat server 4.0.4 on NT 4 that contains a servlets in charge to create SVG content. The client is Internet Explorer 5.5. It loads the following simple HTML page : html body embed width=200 height=200 src=http://localhost:8080/myContext/MyServlet /body /html The problem is that my servlet is invoked twice. My supposition is that IE is sending a HEAD (or GET) request to know the content type of the URL and then run the Adobe SVG plugin. When started the plugin connects also the servlet to get SVG content. HTTP spec says that HEAD request must return the same headers as GET request. What is sure is that my code is executed twice, not only the part that concerns response headers. But how can I do to know with the servlet if the request is a GET or a HEAD. I test the HttpRequest.getMethod() but it always return GET. Does someone know how to configure tomcat or anything else to avoid the two executions ? Thanks.
Tomcat servlet recieves no posts from JSP - but code works in JBuilder?
Please can you explain to me why the servlet is not getting any parameters from the JSP, when I run it in TOMCAT 4.1. The code works fine in JBuilder/Tomcat IDE. It also works fine in TOMCAT 4.1, when I call it from an HTML page. However, I want to call it from a JSP. NOTE: the form names and values are defined in the included JSP, and then should be passed to the servlet when the SUBMIT button is clicked. Taken from my_main_red.JSP (the full code is at bottom of mail): form method=post name=reddoit action=../myreq_servlet onSubmit=return validateAndSubmit_red() ENCTYPE=multipart/form-data %@ include file=my_body_red.jsp % /form Taken from myreq_servlet: //Process the HTTP Post request public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { Enumeration enum = request.getParameterNames(); while (enum.hasMoreElements()) { // Get the name of the request parameter String name = (String)enum.nextElement(); // Get the value of the request parameter and set to uppercase String value = request.getParameter(name).toUpperCase(); System.out.println(servlet name: +name+ value: +value); } System.out.println(After while); Taken from catalina.out Starting service Tomcat-Apache Apache Tomcat/4.1.12 After while Thank you in advance for any advice ===. HTML (generated from my_main.jsp): html head !-- header.jsp -- !-- Depends on variables title -- !-- Includes files template/biobench.css, template/biobench2.css -- title sequence - Redundant parameters /title meta http-equiv=Content-Type content=text/html; charset=iso-8859-1/ link href=http://sbio4.ph.chbs:8200/seqreq/html/template/biobench.css; rel=stylesheet title=Biobench type=text/css/ link href=http://sbio4.ph.chbs:8200/seqreq/html/template/biobench2.css; rel=stylesheet title=Biobench type=text/css/ SCRIPT LANGUAGE=JavaScript SRC=utility_function.js /SCRIPT SCRIPT LANGUAGE=JavaScript SRC=checkparam_red.js /SCRIPT /head body bgcolor=#FF text=#00 link=#FF vlink=#FF marginwidth=0 marginheight=0 style=margin: 0 onLoad=writeMenus() onResize=if (isNS4) nsResizeHandler() !-- top_red.jsp -- !-- Depends on variables title, contactInfo -- table width=100% bgcolor=#006699 border=0 cellpadding=0 cellspacing=0 tr td class=TOP /td /tr /table table width=650 border=0 align=center tr td align=center class=BOLDTEXT colspan=4 H1 sequence - Redundant parameters /H1/td /tr tr td align=center class=BBLOCKTEXT colspan=4 SMALLSTRONGbr/ Please enter a href=http://sbio4.ph.chbs:8200/seqreq/html/sequence_info.html#REDUNDANT; target=_blankRedundant parameters/a below. They will be propogated to each sample.br/ /STRONG/SMALLbr/ /td /tr trtd height=10 colspan=4hr/ /td /tr /table form method=post name=reddoit action=../seqreq_servlet1 onSubmit=return validateAndSubmit_red() ENCTYPE=multipart/form-data !-- sequence_body_red.jsp -- !-- Depends on variables title -- !-- Includes files sequence_primer.inc -- !-- Connect to jsp sequence_main.jsp -- table width=650 border=1 align=center cellspacing=0 cellpadding=4 class=FORMTEXT tr td colspan=2 height=50 Build request for input type=TEXT name=numberOfSamples size=8 maxlength=3 value=1/ sample(s). /td /tr !--Store the hidden parameters -- input type=hidden name=REDUNDANT value=YES/ input type=hidden name=sequence value=on/ tr tda class=FORMTEXT href=http://sbio4.ph.chbs:8200/seqreq/html/sequence_info.html#NAME;Sample name/a/td tdinput type=text name=sampleName size=10 maxlength=10 value=//td /tr tr tda class=FORMTEXT href=http://sbio4.ph.chbs:8200/seqreq/html/sequence_info.html#INCREMENT;Increment sample numbering/a/td td input type=checkbox name=incrementCheckbox/ starting with input type=TEXT name=incrementStart size=4 maxlength=7 value=1/ /td /tr tr tda class=FORMTEXT href=http://sbio4.ph.chbs:8200/seqreq/html/sequence_info.html#PRIMER;Primer/a/td td select name=primer option value=T7 selected=selectedT7/option option value=T3T3/option option value=SP6SP6/option option value=M13FM13F/option option value=M13RM13R/option option value=DON1DON1/option option value=DON2DON2/option option value=customcustom/option /select /td /tr tr tda class=FORMTEXT href=http://sbio4.ph.chbs:8200/seqreq/html/sequence_info.html#NAME;Customer primer name/a/td tdinput type=text name=customPrimer size=10 maxlength=10//td /tr tr tda class=FORMTEXT href=http://sbio4.ph.chbs:8200/seqreq/html/sequence_info.html#SIZE;Vector size (kb)/a/td tdinput type=text name=vectorSize size=10 maxlength=10//td /tr tr tda class=FORMTEXT href=http://sbio4.ph.chbs:8200/seqreq/html/sequence_info.html#SIZE;Insert size (kb)/a/td tdinput type=text name=insertSize size=10 maxlength=10//td /tr tr tda class=FORMTEXT href=http://sbio4.ph.chbs:8200/seqreq/html/sequence_info.html#LENGTH;Read length (bp)/a/td tdinput type=text name=readLength size=10 maxlength=10//td /tr tr tda class=FORMTEXT
Re:How to specify path when executing CGI in Tomcat?
Does anyone know how to include the system property path(win2000) when executing CGI in Tomcat? Just like the way apache http server did for CGI. __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: path mapping
See section 11 of the Servlet Specification: http://jcp.org/aboutJava/communityprocess/first/jsr154/ -- Jeanfrancois Matthew Hixson wrote: I have a web application that is currently running under Resin. We may need to migrate our app to Tomcat/JBoss. I'm wondering if there is an equivalent feature in Tomcat that allows us to do the same thing as Resin's path-mapping directive. http://www.caucho.com/resin/ref/app-config.xtp#path-mapping This feature allows us to do things like this: path-mapping url-regexp=/(stage/)?(.*\.jsp)$ real-path=$app-dir/jsp/wap/$2/ Which causes Resin to map all requests that end with .jsp into the jsp/wap directory under wherever our webapp's war file has been expanded to. Or, more simply, is there a way to get Tomcat to map requests like *.jsp into our /jsp directory of our webapp? I've looked through the documentation and couldn't find the answer to this. Thanks for any help, -M@ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Pb with HEAD request
You really should look into the servlet specification. I think if you override doHead for your servlet doHead(HttpServletRequest req, HttpServletResponse resp) Receives an HTTP HEAD request from the protected service method and handles the request. Default action for doHead is to simply call doGet Cédric Viaud [EMAIL PROTECTED] wrote on 26.11.2002 15:32:45: Hi, I have Tomcat server 4.0.4 on NT 4 that contains a servlets in charge to create SVG content. The client is Internet Explorer 5.5. It loads the following simple HTML page : html body embed width=200 height=200 src=http://localhost:8080/myContext/MyServlet /body /html The problem is that my servlet is invoked twice. My supposition is that IE is sending a HEAD (or GET) request to know the content type of the URL and then run the Adobe SVG plugin. When started the plugin connects also the servlet to get SVG content. HTTP spec says that HEAD request must return the same headers as GET request. What is sure is that my code is executed twice, not only the part that concerns response headers. But how can I do to know with the servlet if the request is a GET or a HEAD. I test the HttpRequest.getMethod() but it always return GET. Does someone know how to configure tomcat or anything else to avoid the two executions ? Thanks.
RE: tomcat 4.1.12 Incompatible type for getting or setting field error
Did you ever find out what causes this error? We are getting the exact same thing when upgrading to Tomcat 4.1.12 from 3.2.4. Using Sun JDK 1.3.1_01. Anyone know? -Original Message- From: B W [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 12, 2002 3:20 PM To: [EMAIL PROTECTED] Subject: tomcat 4.1.12 Incompatible type for getting or setting field error Hi, I just update the tomcat from 4.0.3 to 4.1.12(on win2k, apache+tomcat). Then an error message when viewing jsp files popups from time to time like the following, but when refreshing, the error disppears. This never happens in 4.03. Does someone have any idea? htmlheadtitleApache Tomcat/4.1.12 - Error report/titleSTYLE!--H1{font-family : sans-serif,Arial,Tahoma;color : white;background-color : #0086b2;} H3{font-family : sans-serif,Arial,Tahoma;color : white;background-color : #0086b2;} BODY{font-family : sans-serif,Arial,Tahoma;color : black;background-color : white;} B{color : white;background-color : #0086b2;} HR{color : #0086b2;} --/STYLE /headbodyh1HTTP Status 500 - Internal Server Error/h1HR size=1 noshadepbtype/b Exception report/ppbmessage/b uInternal Server Error/u/ppbdescription/b uThe server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request./u/ppbexception/b prejavax.servlet.ServletException: (class: org/apache/jsp/searchWizardCore_jsp, method: _jspService signature: (Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletRespo nse;)V) Incompatible type for getting or setting field at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:458) at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551) at java.lang.Thread.run(Thread.java:536) /pre/ppbroot cause/b prejava.lang.VerifyError: (class: org/apache/jsp/searchWizardCore_jsp, method: _jspService signature: (Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletRespo nse;)V) Incompatible type for getting or setting field at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Class.java:1576) at java.lang.Class.getConstructor0(Class.java:1748) at java.lang.Class.newInstance0(Class.java:266) at java.lang.Class.newInstance(Class.java:249) at org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.jav a:146) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:1 89) at
Re: Re-deploying webapps from war files
Mark D.Porter writes: Hello All, I'm working with the latest builds of tomcat (4.1.15) in hopes of moving from tomcat 3.3. One thing that seems to be missing in the 4.x line is a 'redeploy' feature for war files. In tomcat 3.3 I can setup my 'webapp' directory to 'look' for changes in a .war file and on a change event redeploy the application. This is a valuable feature for our development workflow and is sorely missed. If i am overlooking something obvious in the documentation of if this is an as yet 'undocumented feature' can someone please let me know. Thanks! Mark -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Hello Mark, is this not done in server.xml as an attribute for a context e.g. /examples? if not then use of http://localhost:8080/manager/remove?path=context and httpd://localhost:8080/manager/install?path=context should work. the latter, though manual, has the added advantage of remote invocation. hope this helps, david. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Session Handling in Tomcat 3.2.4
Hi all, Can i persist the session id generated from the server request.getSession(); I am having one class which connects to the server with url object and receives a session id as response from the server. Now the same session id is used by other programs to communicate with the server. Now if because of some malfunction server shuts down I am catching the network errors as ConnectException BindException, UnknowHostException etc. if the exception occurs, in the catch block the method connect method will be called , now in this method session id will be sent as a jsession parameter, and will try to re establish the connection if the connection has been established i want , sever to send the same session id . so that the other threads will be in same state as of they are before , they were sending information to server before connection was lost.. now my question is whether it will work and does server supports such kind of requests of creating the session object with the same name as specified in the url connection. Regards, Vaibhav -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: serverside include
I don't know if this would help, but what about setting environment variable through the tomcat administration interface. David Howard -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 12:25 AM To: Tomcat Users List Subject: serverside include Hello, Is there anyhting like a server side inlcude that is loaded into memory when the server starts, making variables specified in the include file accessible? Or is what I am trying to acheive (in previous posts) - session or application to be loaded when the server is started - the nearest solution to this? I have seen documentation to have a jsp:include, but I can't see how variables within the servlet would be accessible from any other page? Any thoughts? Thanks Paul. WorldSecure Server safeway.com made the following annotations on 11/26/02 08:52:58 -- Warning: All e-mail sent to this address will be received by the Safeway corporate e-mail system, and is subject to archival and review by someone other than the recipient. This e-mail may contain information proprietary to Safeway and is intended only for the use of the intended recipient(s). If the reader of this message is not the intended recipient(s), you are notified that you have received this message in error and that any review, dissemination, distribution or copying of this message is strictly prohibited. If you have received this message in error, please notify the sender immediately. == -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
is it possible to authenticate from the form-error-page?
Hi, I'm using form based authentication in Tomcat 4.1.12 with a JDBCRealm. I'm seeing the following problem : When I attempt to hit a secured resource, I am redirected to the form-login-page and can login just fine. However, if I fail a login I am sent to the form-error-page (which is the way it should work). My form-error-page contains the exact j_security_check form found in my form-login-page. The problem is, I can't get authenticated from my form-error-page. What I am trying to do is to allow the user to login again from the form-error-page without forcing them to hit a back button in the browser, or force them to click a link to get back to the form-login-page. Is this possible under Tomcat? I have not posted any of my code, because I'm just using the example login.jsp that came with the distro as my form-login-page, and a copy of this login.jsp page (renamed to error.jsp with a message) as the form-error-page Any help would be greatly appreciated. Thanks, Quenten __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
FW: Cookies translation problem on isapi connector using IIS5 + TOMCA T 4.0.1
Sorry for post this message again, but I am struggling with this issue. Has somebody faced with this problem ? Thanks again. Carles. -Original Message- From: Zaragoza, Carles [mailto:[EMAIL PROTECTED]] Sent: viernes, 22 de noviembre de 2002 9:50 To: Tomcat Users List (E-mail) Subject: Cookies translation problem on isapi connector using IIS5 + TOMCA T 4.0.1 Dear all, Look like that when I use IIS with AJP3 and TomCat 4.0.1 with the isapi_redirect.dll cookies can become HTTP translated and/or truncated. This ugly HTTP translation occurs during request communication between the isapi_redirect.dll and Tomcat. Cookie truncation occurs when multiple cookies are used. I think that this is a side-effect of the HTTP/1.1 extended cookie definition. So for example MY_KEY_VALUE=815 on TomCat working alone becomes MY%5fKEY%5fVALUE%3d815 on IIS + Tomcat. WHY ? I believe, that the connector architecture between IIS and Tomcat is the cause. It is sending the raw HTTP to Tomcat. This is not automatically reversing the escaping of the special characters (ie. Multiple cookies separation character's)). Could any connector-guru help me in order to understand what is going on ? Any help will be much appreciated. Carles. Carles Zaragoza Roig Uniface/Optimal PreSales Compuware Spain R Poniente, 15-2 Dcha 28760 Tres Cantos Madrid - SPAIN Tel. : 91.806.49.30 Fax : 91.803.64.60 E-mail : [EMAIL PROTECTED] Web : http://www.compuware.es/ DISCLAIMER: The contents of this e-mail are intended for the named addressee only. It contains information that may be confidential. Unless you are the named addressee or an authorized designee, you may not copy or use it, or disclose it to anyone else. If you received it in error please notify us immediately and then destroy it. -- The contents of this e-mail are intended for the named addressee only. It contains information that may be confidential. Unless you are the named addressee or an authorized designee, you may not copy or use it, or disclose it to anyone else. If you received it in error please notify us immediately and then destroy it. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- The contents of this e-mail are intended for the named addressee only. It contains information that may be confidential. Unless you are the named addressee or an authorized designee, you may not copy or use it, or disclose it to anyone else. If you received it in error please notify us immediately and then destroy it. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: serverside include
David Howard writes: I don't know if this would help, but what about setting environment variable through the tomcat administration interface. David Howard -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 12:25 AM To: Tomcat Users List Subject: serverside include Hello, Is there anyhting like a server side inlcude that is loaded into memory when the server starts, making variables specified in the include file accessible? Or is what I am trying to acheive (in previous posts) - session or application to be loaded when the server is started - the nearest solution to this? I have seen documentation to have a jsp:include, but I can't see how variables within the servlet would be accessible from any other page? Any thoughts? Thanks Paul. WorldSecure Server safeway.com made the following annotations on 11/26/02 08:52:58 -- Warning: All e-mail sent to this address will be received by the Safeway corporate e-mail system, and is subject to archival and review by someone other than the recipient. This e-mail may contain information proprietary to Safeway and is intended only for the use of the intended recipient(s). If the reader of this message is not the intended recipient(s), you are notified that you have received this message in error and that any review, dissemination, distribution or copying of this message is strictly prohibited. If you have received this message in error, please notify the sender immediately. == -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Hello Paul, if u use a parallel directory and bean class files w/ setter/getter methods u can persist variable information in the bean file and then retrieve the information in a jsp once the the server has changed pages. example directory tree follows. hope this helps, david. $TOMCAT_HOME | /webapps | /app_context | /WEB-INF | /classes | /com | /app_context /\ / \ /web /beans where ur servelets r under web and ur bean class files r under beans. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
USING WRONG JSP COMPILER
Hi, I'm working in a Linux platform. While I was using Tomcat 4.1.12 (with jdk1.4) to serve html and jsp, everything was OK. But when I linked Tomcat 4.1.12 with Apache 1.3 through mod_jk, I got the following error serving jsp pages (html is OK). oracle.jsp.parse.JspParseException: Line # 2, Error: Unable to find class for bean: serv defined by tag with class: intranet.web.serveis.java.vhServeis at oracle.jsp.parse.OpenJspTagHandler.defineBeans(OpenJspTagHandler.java) at oracle.jsp.parse.OpenJspTagHandler.validateTagAttributes(OpenJspTagHandler.j ava) at oracle.jsp.parse.JspParseTag.parse(JspParseTag.java) at oracle.jsp.parse.OpenJspTagHandler.parse(OpenJspTagHandler.java) at oracle.jsp.parse.JspParseTag.parseNextTag(JspParseTag.java) at oracle.jsp.parse.JspParseTagFile.parse(JspParseTagFile.java) at oracle.jsp.parse.OracleJsp2Java.transform(OracleJsp2Java.java) at oracle.jsp.app.JspAppLoader.reloadPage(JspAppLoader.java) at oracle.jsp.app.JspAppLoader.loadPage(JspAppLoader.java) at oracle.jsp.app.JspAppLoader.getPage(JspAppLoader.java) at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java) at oracle.jsp.JspServlet.doDispatch(JspServlet.java) at oracle.jsp.JspServlet.internalService(JspServlet.java) at oracle.jsp.JspServlet.service(JspServlet.java) at javax.servlet.http.HttpServlet.service(HttpServlet.java:588) at org.apache.jserv.JServConnection.processRequest(JServConnection.java:314) at org.apache.jserv.JServConnection.run(JServConnection.java:188) at java.lang.Thread.run(Thread.java) I don´t know why, but now my environment is using the oracle jsp compiler instead the jasper compiler. The question is that I'm executing Apache with oracle user, and Tomcat with tomcat user. I think that I've have a problem with classpath environment variable. For user Oracle, I've the following environment: (...) CLASSPATH=:/home/oracle/product/oracle/JRE:/home/oracle/product/oracle/jlib: /home/oracle/product/oracle/rdbms/jlib:/home/oracle/product/oracle/network/j lib PATH=/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/lib/java/bin:/usr/game s/bin:/usr/games:/opt/gnome/bin:/opt/kde2/bin:.:/home/oracle/product/oracle/ bin (...) For user Tomcat, I've the foollowing environment (related with Tomcat): (...) CATALINA_HOME=/usr/java/jakarta-tomcat-4.1.12 JAVA_HOME=/usr/java/jdk1.4 PATH=/usr/java/jdk1.4/bin:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/l ib/java/bin:/usr/games/bin:/usr/games:/opt/gnome/bin:/opt/kde2/bin:. (...) I've tried to modify the file /usr/java/jakarta-tomcat-4.1.12/conf/web.xml as follows (in order to use jasper compiler), but it doesn't work (in fact, I'm not sure what I'm doing) (...) servlet servlet-namejsp/servlet-name servlet-classorg.apache.jasper.servlet.JspServlet/servlet-class init-param param-namecompiler/param-name param-value/usr/java/jdk1.4/bin/javac/param-value /init-param init-param param-nameclasspath/param-name param-value/usr/java/jakarta-tomcat-4.1.12/param-value /init-param init-param param-namelogVerbosityLevel/param-name param-valueWARNING/param-value /init-param load-on-startup3/load-on-startup /servlet (...) Could anybody tell what to do in order to use again jasper compiler? Thank a lot. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: WAR files not expanding.
Andoni writes: When I put a .war file over to my tomcat server it doesn't work. - It only creates an empty directory in webapps. If I put over the war and unzip the file, it works fine. If I put over the .war file and set unpackWARs=false it does not work. - The unpack command is understood though as it does not create the directory in webapps I am using Tomcat 4.0.4. Has anyone come across anything similar? Thanks in advance, Andoni. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Hello Andoni, have u tried to build and deploy using ant? david. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Virtual host problem
xyber writes: I have a HP-UX server with Tomcat 4.0.4, and I want to host 30+ virtual host. I fill up the server.xml, start catalina, and the Tomcat's java process allocate gigabytes(1+) of memory!!! When i remove virtual hosts from server.xml, the memory usage go lower. Is the 1g+ allocation normal, or a bug? What can I do? XYBeR ps: sorry for my english -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Hello, try to use virt host in apache and configure apache for tomcat. hope this helps, david. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
help for newbie?
Greetings to all. I am new to JSP and Tomcat - but trying diligently to learn quickly. I have what are most probably basic questions. I am using the latest, so I assume, Tomcat 4.1.12. I am attempting to create a Webapp and Servlet. I get the Tomcat 404 error, The Requested resource is not available. I suspect I have two problems(more details follow basic descriptions): 1. My servlet isn't recognized once compiled from .java to .class using latest java 1.4.1_01 javac command. 2. I think my webapp is not recognized. DETAILS What I tried: after inital failure, I attempted copying my .class file to the example directory and executing with localhost:8080/examples/servlet/MyServlet just as the HellowWorld servlet is called in an attempt to eliminate possible causes. No luck with this. (I had restarted Tomcat after pasting .class file.) I also tried copying and pasting the HelloWorldExample .class file to my webapp directory and it would not execute. My webapp Directory (courtesy of WROX Professional JSP [which has not a few typo's]: %TOMCAT%\ch03\WEB-INF\classes\com\wrox\projsp\ch03\app1\ and the URL that should activate it: localhost:8080/ch03/servlet/com.wrox.projsp.ch03.app1.MyFirstServlet I changed the laboriously long .myfirstwebapp. to .app1. both in the package declaration of my .class as well as the call the attempted activation URL. If this is the wrong place to ask for help with basics such as this, plese forgive me - I am hoping this is the place and am all too happy to go where directed for answers. If this is the right place, all help is appreciated. Kind regards, Jered p.s. java follows package com.wrox.projsp.ch03.app1; import java.io.IOException; import java.io.PrintWriter; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpRequest; import javax.servlet.http.HttpResponse; import javax.servlet.ServletException; public class MyFirstServlet extends Httpservlet { public void doGet (HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setConentType(text/plain); PrinWriter out = response.getWriter(); out.println(Frustration: bane of inspiration); } } -=| Just say NO to post-modernism. |=- -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: help for newbie?
Jered, Do you have a web.xml file which describes and maps your servlet? This should be placed in $CATALINA_HOME/webapps/myapp/WEB-INF Have a look at the examples app for examples. Hope this helps. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Dienstag, 26. November 2002 17:05 To: [EMAIL PROTECTED] Subject: help for newbie? Greetings to all. I am new to JSP and Tomcat - but trying diligently to learn quickly. I have what are most probably basic questions. I am using the latest, so I assume, Tomcat 4.1.12. I am attempting to create a Webapp and Servlet. I get the Tomcat 404 error, The Requested resource is not available. I suspect I have two problems(more details follow basic descriptions): 1. My servlet isn't recognized once compiled from .java to .class using latest java 1.4.1_01 javac command. 2. I think my webapp is not recognized. DETAILS What I tried: after inital failure, I attempted copying my .class file to the example directory and executing with localhost:8080/examples/servlet/MyServlet just as the HellowWorld servlet is called in an attempt to eliminate possible causes. No luck with this. (I had restarted Tomcat after pasting .class file.) I also tried copying and pasting the HelloWorldExample .class file to my webapp directory and it would not execute. My webapp Directory (courtesy of WROX Professional JSP [which has not a few typo's]: %TOMCAT%\ch03\WEB-INF\classes\com\wrox\projsp\ch03\app1\ and the URL that should activate it: localhost:8080/ch03/servlet/com.wrox.projsp.ch03.app1.MyFirstServlet I changed the laboriously long .myfirstwebapp. to .app1. both in the package declaration of my .class as well as the call the attempted activation URL. If this is the wrong place to ask for help with basics such as this, plese forgive me - I am hoping this is the place and am all too happy to go where directed for answers. If this is the right place, all help is appreciated. Kind regards, Jered p.s. java follows package com.wrox.projsp.ch03.app1; import java.io.IOException; import java.io.PrintWriter; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpRequest; import javax.servlet.http.HttpResponse; import javax.servlet.ServletException; public class MyFirstServlet extends Httpservlet { public void doGet (HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setConentType(text/plain); PrinWriter out = response.getWriter(); out.println(Frustration: bane of inspiration); } } -=| Just say NO to post-modernism. |=- -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: help for newbie?
[EMAIL PROTECTED] writes: Greetings to all. I am new to JSP and Tomcat - but trying diligently to learn quickly. I have what are most probably basic questions. I am using the latest, so I assume, Tomcat 4.1.12. I am attempting to create a Webapp and Servlet. I get the Tomcat 404 error, The Requested resource is not available. I suspect I have two problems(more details follow basic descriptions): 1. My servlet isn't recognized once compiled from .java to .class using latest java 1.4.1_01 javac command. 2. I think my webapp is not recognized. DETAILS What I tried: after inital failure, I attempted copying my .class file to the example directory and executing with localhost:8080/examples/servlet/MyServlet just as the HellowWorld servlet is called in an attempt to eliminate possible causes. No luck with this. (I had restarted Tomcat after pasting .class file.) I also tried copying and pasting the HelloWorldExample .class file to my webapp directory and it would not execute. My webapp Directory (courtesy of WROX Professional JSP [which has not a few typo's]: %TOMCAT%\ch03\WEB-INF\classes\com\wrox\projsp\ch03\app1\ and the URL that should activate it: localhost:8080/ch03/servlet/com.wrox.projsp.ch03.app1.MyFirstServlet I changed the laboriously long .myfirstwebapp. to .app1. both in the package declaration of my .class as well as the call the attempted activation URL. If this is the wrong place to ask for help with basics such as this, plese forgive me - I am hoping this is the place and am all too happy to go where directed for answers. If this is the right place, all help is appreciated. Kind regards, Jered p.s. java follows package com.wrox.projsp.ch03.app1; import java.io.IOException; import java.io.PrintWriter; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpRequest; import javax.servlet.http.HttpResponse; import javax.servlet.ServletException; public class MyFirstServlet extends Httpservlet { public void doGet (HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setConentType(text/plain); PrinWriter out = response.getWriter(); out.println(Frustration: bane of inspiration); } } -=| Just say NO to post-modernism. |=- -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Hello Jered, this is the right place. code is not ur problem. on the surface (because servlet code is all u sent) i suspect u have not defined ur servlet in web.xml. this aside, if u r really interested in learning use the tools provided by tc: ant build. also, don't do too much: this means don't develop a Hello World servlet and jsp. allow me to suggest to develop only a servlet at first, then progress to jsp's and other objects later. look closely at the http://localhost:8080/examples and the other demos supplied w/ tc. learne to build and deploy a Hello World using ant and preferably if u can congifure apache w/ tc. tc by itself is not very usefull unless u r inside a protected environment (no internet connection or very heavy firewall and CA encrpted ssl stuff). hope this helps, david. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re[2]: Admin Webapp Problems (WAS: MBean server?)
Hi Shawn, I'd recommend installing the full non-RPM version that includes all necessary jars. In that version, you will see the following files in common/endorsed: xercesImpl.jar xmlParserAPIs.jar What Bill says it correct, though. The Xerces version that come with Tomcat causes problems with Struts apps because of an XML parsing bug in Xerces which was recently fixed. You can either do as he says and go back to using 2.1.0 version or move to the latest jars which contain the fix: http://gump.covalent.net/jars/latest/xml-xerces2/ Otherwise, you could also check the xml commons to grab a xml-commons-api's jar that contains an earlier version of the xerces packages equivalent to the 2.1.0 release. http://xml.apache.org/commons/ Jake Tuesday, November 26, 2002, 10:05:27 AM, you wrote: SW Hi Bill, SW Thanks for the info. I checked, but there isn't any xerces jar in SW $CATALINA_HOME/common/endorsed... only jaxp_parser_impl.jar and SW xml-commons-apis.jar. This was just a basic RPM install of Tomcat along SW with the admin webapps. Also, the exception trace I posted _was_ from SW catalina.out, so that's as detailed as it gets. SW By the way, what is this MBean server it is looking for anyways? SW Thanks, SW -shawn SW Bill Barker wrote: I'm guessing that there is a more informative message in 'catalina.out', and that the problem is that 4.1.12 doesn't work with xerces-2.2.x (other than 'nightly'). Replace the xerces jars in $CATALINA_HOME/common/endorsed with the 2.1.0 version, and it should be fine. Shawn Wilson [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I have the following packages installed on a RedHat 7.3 box: tomcat4-4.1.12-full.2jpp tomcat4-admin-webapps-4.1.12-full.2jpp Tomcat starts up fine and I can log into the admin app without problem. However, the moment I try to do anything in the admin app I get a HTTP Status 503 - Servlet action is currently unavailable error, and I see this in my catalina.out log file: javax.servlet.UnavailableException: MBeanServer is not available at org.apache.webapp.admin.ApplicationServlet.initServer(Unknown Source) at org.apache.webapp.admin.ApplicationServlet.getServer(Unknown Source) at org.apache.webapp.admin.TomcatTreeBuilder.buildTree(Unknown Source) at org.apache.webapp.admin.SetUpTreeAction.perform(Unknown Source) at org.apache.struts.action.ActionServlet.processActionPerform(ActionServlet.ja va) at org.apache.struts.action.ActionServlet.process(ActionServlet.java) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown Source) ... ... What does this exception mean, and what do I need to do to get the admin app running? Thanks, -shawn -- Shawn Wilson [[EMAIL PROTECTED]] Software Developer, ATMReports.com PH: 877-327-0873, FAX: 406-294-5806 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Best regards, Jacobmailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Re-deploying webapps from war files
Hi David! Thanks for your response - I've found that your second suggestion is automatable (is that a word?) via ant and as such is a good replacement for the functionality in Tomcat 3.3. However, it appears that these tasks rewrite server.xml and overwrite any ResourceParams elements that your re-deployed context may have contained. Is this a bug or am I mis-using these ant tasks/manager app functions. Thanks again, Mark On Tuesday, November 26, 2002, at 09:44 AM, David Brown wrote: Mark D.Porter writes: Hello All, I'm working with the latest builds of tomcat (4.1.15) in hopes of moving from tomcat 3.3. One thing that seems to be missing in the 4.x line is a 'redeploy' feature for war files. In tomcat 3.3 I can setup my 'webapp' directory to 'look' for changes in a .war file and on a change event redeploy the application. This is a valuable feature for our development workflow and is sorely missed. If i am overlooking something obvious in the documentation of if this is an as yet 'undocumented feature' can someone please let me know. Thanks! Mark -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Hello Mark, is this not done in server.xml as an attribute for a context e.g. /examples? if not then use of http://localhost:8080/manager/remove?path=context and httpd://localhost:8080/manager/install?path=context should work. the latter, though manual, has the added advantage of remote invocation. hope this helps, david. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: verifyError with tomcat and xerces 2.2.1
Yes I tried. I'm using tomcat 4.1.12. Actually if I replace the xercesImpl.jar but the latest version in the common/endorsed directory that work fine (this is normal). So I suppose that is not possible to use two differents version of xerces, one used by the server and the other one used by a webapp. I'm wrong? Actually, this is really weird since in the log file, tomcat load the good xerces jar: 2002-11-25 10:45:12 WebappLoader[/axis]: Deploy JAR /WEB-INF/lib/xercesImpl.jar to C:\java\jakarta-tomcat-4.1.12\webapps\axis\WEB-INF\lib\xercesImpl.jar It must not override the classes already loaded from the endorsed dir. Jeanfrancois Arcand wrote: Have you try with the SUN JDK 1.3.1? Which version of Tomcat are you using? -- Jeanfrancois [EMAIL PROTECTED] wrote: Hi, I created a very small servlet and when I try to run it I got a VerifyError exception (see below). The servlet try to create a instance of JAXP DocumentBuilder. I use xerces 2.2.1, that work with previous versions. That work also on the client side (xerces 2.2.1 and without tomcat). The JDK used is IBM jdk1.3.1. Any ideas of what wrong? Thanks Execption trace: java.lang.VerifyError: Class org/apache/xerces/impl/XMLNSDocumentScannerImpl$NSContentDispatcher is subclass of final class org/apache/xerces/impl/XMLDocumentScannerImpl$ContentDispatcher at org.apache.xerces.impl.XMLNSDocumentScannerImpl.createContentDispatcher(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.(XMLDocumentFragmentScannerImpl.java:248) at org.apache.xerces.impl.XMLDocumentScannerImpl.(XMLDocumentScannerImpl.java:245) at org.apache.xerces.impl.XMLNSDocumentScannerImpl.(Unknown Source) at org.apache.xerces.parsers.IntegratedParserConfiguration.createDocumentScanner(Unknown Source) at org.apache.xerces.parsers.DTDConfiguration.(DTDConfiguration.java:366) at org.apache.xerces.parsers.StandardParserConfiguration.(StandardParserConfiguration.java:197) at org.apache.xerces.parsers.IntegratedParserConfiguration.(Unknown Source) at org.apache.xerces.parsers.IntegratedParserConfiguration.(Unknown Source) at java.lang.Class.newInstance0(Native Method) at java.lang.Class.newInstance(Class.java:262) at org.apache.xerces.util.ObjectFactory.newInstance(ObjectFactory.java:293) at org.apache.xerces.util.ObjectFactory.createObject(ObjectFactory.java:224) at org.apache.xerces.util.ObjectFactory.createObject(ObjectFactory.java:119) at org.apache.xerces.parsers.DOMParser.(DOMParser.java:153) at org.apache.xerces.parsers.DOMParser.(DOMParser.java:137) at org.apache.xerces.jaxp.DocumentBuilderImpl.(DocumentBuilderImpl.java:102) at org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(DocumentBuilderFactoryImpl.java:88) The servlet code is: import java.io.IOException; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import javax.xml.parsers.ParserConfigurationException; import org.w3c.dom.Document; /** * */ public class Test2 extends HttpServlet { /** * @see javax.servlet.http.HttpServlet#doGet(HttpServletRequest, HttpServletResponse) */ protected void doGet(HttpServletRequest arg0, HttpServletResponse arg1) throws ServletException, IOException { DocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance(); docFactory.setNamespaceAware(true); try { DocumentBuilder docBuilder = docFactory.newDocumentBuilder(); Document _document = docBuilder.newDocument(); } catch (ParserConfigurationException e) { } } } -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re[2]: WAR files not expanding.
Hello David, If you define a Context ... for a particular app where the path matches the name of the .war file, the .war will not be unpacked by Tomcat under any circumstances. I imagine you have something like this in server.xml or in a context configuration file: Context docBase=myapp path=/myapp / in this case a .war file named myapp.war will *not* be unpacked. You have to do it yourself or change the docBase to point to the .war file directory such as: Context docBase=myapp.war path=/myapp / In this case, Tomcat still won't unpack the .war file, but that doesn't matter because it is serving the app from the unpacked .war file. Jake Tuesday, November 26, 2002, 9:16:10 AM, you wrote: DB Andoni writes: When I put a .war file over to my tomcat server it doesn't work. - It only creates an empty directory in webapps. If I put over the war and unzip the file, it works fine. If I put over the .war file and set unpackWARs=false it does not work. - The unpack command is understood though as it does not create the directory in webapps I am using Tomcat 4.0.4. Has anyone come across anything similar? Thanks in advance, Andoni. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] DB Hello Andoni, have u tried to build and deploy using ant? david. DB -- DB To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] DB For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Best regards, Jacobmailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Embedded Tomcat Problem
On Tue, 26 Nov 2002, Lee Peik Feng wrote: Date: Tue, 26 Nov 2002 18:27:11 +0800 From: Lee Peik Feng [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Embedded Tomcat Problem Hi all, I am running on WinMe platform with jdk1.3.1_04, tomcat 4.1.12 I try to embed tomcat into my Java application but I am facing some difficulties. I can't start tomcat as the classpath has included a lot of tomcat's jar files, if i take away some jars, I'll get NoClassDefFoundError I have moved all jar files to a lib folder. I have also change the memory of the batch file to 4096 If you are trying to embed Tomcat 4.1 by calling Bootstrap.main() from within your application, you must establish an environment like the one set up by the catalina.bat or catalina.sh shell script. Look at the sources for these scripts and see how they establish a class path, plus a bunch of system properties and command line arguments, for the start command. Craig -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: help for newbie?
Return Receipt Your RE: help for newbie? document : was Kristján Bjarni Guðmundsson/BIS/Dev/REK/Hugvit received by: at: 26.11.2002 17:34:36 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: IllegalStateException??? Please help!
Johan, Thanks for your reply. I've restarted Tomcat but that seems to be when the problem happens. (I say problem though it isn't affecting the program!) And I'm not using servlets. Thanks anyway, Let me know if you have anymore thoughts. Cheers, Steve -Original Message- From: Johan Bryssling [mailto:[EMAIL PROTECTED]] Sent: 26 November 2002 15:07 To: Tomcat Users List Subject: RE: IllegalStateException??? Please help! Hi.. Compiled servlets recently? Try restart tomcat and reconnect... The problem sometimes happens to me when I compile servlets and try to access them direct after. The solution is to restart tomcat (in that case). Perhaps your case is similar. Regards /Johan -Original Message- From: Steve Beech [mailto:[EMAIL PROTECTED]] Sent: den 26 november 2002 12:02 To: 'Tomcat Users List' Subject: IllegalStateException??? Please help! I've set up a SSL socket in Tomcat and everything appears to work okay. I can connect to the port, install the cert and access the site. However, when I access the HTTPS port with my browser and get the 'Security Alert' prompt telling me about the certificate and asking me if I want to continue, then I get the following message scrolling continually within the Tomcat window. 2002-11-20 15:25:31 - Ctx( ): IllegalStateException in: R( /) Current state = F LUSHED, new state = CODING 2002-11-20 15:25:31 - Ctx( ): IllegalStateException in: R( /) Current state = F LUSHED, new state = CODING 2002-11-20 15:25:31 - Ctx( ): IllegalStateException in: R( /) Current state = F LUSHED, new state = CODING Can anybody tell me what this means and how I might prevent it from happening? Thanks Steve -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
checkError with Coyote
Hi, I have a lot of problem using the method PrintWriter.checkError when I use the connector Coyote. Can'you help me ? My servlet can be long (extraction), and if the user close the window, I want to stop my servlet. public class IndicateursDemandeSrvl extends HttpServlet { public void doPost(HttpServletRequest Request, HttpServletResponse Response) throws IOException, ServletException { PrintWriter out=Response.getWriter(); Vector ListeDemande= . for (int i=0;iListeDemande.size();i++) { if (out.checkError()) {return;} out.println(..); } out.close(); } } I call this servlet with JavaScript : open(http://xxx/IndicateursDemandeSrvl,nom;,); The first call works good. If I interrupt by closing window, the statement stop also (it is ok), but after, when I call my servlet, sometimes, checkError return true and the statement stop, and I havn'nt the attempt result. If I use the standard HttpConnector, I haven't this problem. (I use tomcat 4.1.12, but it is the same with 4.0.x). I hope my explication is clear. Have you an idea ? Thanks Elisabeth Toulouse -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Confused about listener for J2K
Using Apache 1.3, Tomcat 4.1 and mod_j2k, and I am really confused on what do. The install script for the rpm includes a mod_jk2.conf file, but this is not there. And the docs references a workers.properties, but a workers2.properties is included. So I am not ture the entries the script made in httpd for apache are proper. Basically I figured out I was missing a listener in my tomcat serverl.xml, so I put this in: Listener className=org.apache.ajp.tomcat4.config.ApacheConfig / And this did generate a /etc/tomcat4/auto/mod_jk.conf and a empty /etc/tomcat4/jk directory. I understand that I need another entry to handle my virtual hosts, but I wanted to make sure I am headed down the right path. If someone could post what they have in their server.xml to auto generate the mod_jk2.conf file, and what I need for a listener statement for the server and the virtual host, I would sure appreciate it. I still have some hair left, I can pull out another day. (J) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: ldap authenitcation
anyone? --- Charlene Mitchell [EMAIL PROTECTED] wrote: Hi, Is it just not possible to authenticate against LDAP? If not can someone help explain how to set the debugging mode of TomCat to verbose because I'm seeing nothing relevant in the logs. sigh please help! Charlene --- Charlene Mitchell [EMAIL PROTECTED] wrote: Hi, No success so far :-( Surely I can't be the only person trying to do something so fundamental? How can I guarantee that I see even a failure in the log files? Seeing nothing at all seems very weird. Thanks Charlene --- Charlene Mitchell [EMAIL PROTECTED] wrote: Hi, How do I authenticate against an LDAP directory using TomCat 4.1.2? In my web.xml I have a resource that requires form authentication as follows: login-config auth-methodFORM/auth-method realm-namejava:/jaas/LDAPLogin/realm-name !-- I tried with and without this -- form-login-config form-login-page/login/form-login-page form-error-page/login-fail/form-error-page /form-login-config /login-config I have read the JNDI Realm how-to and added the following few lines to my server.xml file. Realm className=org.apache.catalina.realm.JNDIRealm debug=99 connectionURL=ldap://ldapmachine:389; userPattern=uid={0},ou=Users,o=myOrg.com roleBase=ou=Groups,0=myOrg.com roleName=cn roleSearch=(uniqueMember={0})/ When I access a restricted URL the login page appears and I type in my credentials, but when I submit (to: j_security_check) I automatically get redirected to my login-fail page in a matter of nano-seconds (this in itself suggests that it is not working!). When I look in the TomCat log files I cannot see any references to any attempts to contact my LDAP directory. And when I look in the LDAP access log I cannot see any attempt to be contacted either. What step have I missed out or got wrong? Many thanks in advance Charlene __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
4.1.x BodyTagSupport
Hi, I have problem using the same Tag with body and without body. In my application, I use BodyTagSupport : - Declaration : tag nameselect/name tag-classappli.jsp.HtmlSelectTag/tag-class body-contentJSP/body-content attributenamename/namerequiredtrue/required/attribute /tag - Code : public class HtmlSelectTag extends BodyTagSupport { public int doAfterBody() throws JspException { BodyContent body=getBodyContent(); String valeur=body.getString(); body.clearBody(); JspWriter out=getPreviousOut(); out.println(...); return SKIP_BODY; } } - Utilisation : appli:selectCorps/appli:select It works fine. appli:select/ Doesn't work appli:select/appli:select Doesn't work The two last exemples don't work with tomcat's version 4.1.x, but work with 4.0.x. Have you an idea ? Is a bug of new version of Tomcat, or I have made a mistake ? Thanks, Elisabeth Toulouse -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat 4.1.12 Logs??
Yes, I uncommented the valve part out and tomcat logs access details now. There is however another problem. My logs are wierd. Instead of the remote IP address, the logs have parts of the data being sent out. Sam is the case for request URI. I get html data instead of request details. Could it be another misconfiguration? Prashanth --- Shapira, Yoav [EMAIL PROTECTED] wrote: Hi, In 4.1.x the AccessLogValve in server.xml is commented out by default. Comment it in if you'd like those access logs. You can also move it under a specific Context element to only log accesses to that Context. Yoav Shapira Millennium ChemInformatics -Original Message- From: Prashanth Pushpagiri [mailto:[EMAIL PROTECTED]] Sent: Monday, November 25, 2002 5:03 PM To: Tomcat Users List Subject: Re: Tomcat 4.1.12 Logs?? Hi: I am running Tomcat 4.1.12 alongside IIS 5.0. I have no installation problems, but what I'd like to know is how to set up my logs. In all previous versions of Tomcat I observed Tomcat logging access details (complete HTTP requests made) in files like localhost_accesslog_***.txt, but in 4.1.x I havent seen these files being created in $CATALINA_HOME/logs. Do we need to set it up? If so how? If not where are these logs? Thanks Prashanth __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: ldap authenitcation
On Tue, 26 Nov 2002, Charlene Mitchell wrote: Date: Tue, 26 Nov 2002 18:07:57 + (GMT) From: Charlene Mitchell [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: ldap authenitcation anyone? This is discussed in the Tomcat documentation included with your Tomcat installation: http://localhost:8080/tomcat-docs/realm-howto.html or available online: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/realm-howto.html Read the section about JNDIRealm. Craig --- Charlene Mitchell [EMAIL PROTECTED] wrote: Hi, Is it just not possible to authenticate against LDAP? If not can someone help explain how to set the debugging mode of TomCat to verbose because I'm seeing nothing relevant in the logs. sigh please help! Charlene --- Charlene Mitchell [EMAIL PROTECTED] wrote: Hi, No success so far :-( Surely I can't be the only person trying to do something so fundamental? How can I guarantee that I see even a failure in the log files? Seeing nothing at all seems very weird. Thanks Charlene --- Charlene Mitchell [EMAIL PROTECTED] wrote: Hi, How do I authenticate against an LDAP directory using TomCat 4.1.2? In my web.xml I have a resource that requires form authentication as follows: login-config auth-methodFORM/auth-method realm-namejava:/jaas/LDAPLogin/realm-name !-- I tried with and without this -- form-login-config form-login-page/login/form-login-page form-error-page/login-fail/form-error-page /form-login-config /login-config I have read the JNDI Realm how-to and added the following few lines to my server.xml file. Realm className=org.apache.catalina.realm.JNDIRealm debug=99 connectionURL=ldap://ldapmachine:389; userPattern=uid={0},ou=Users,o=myOrg.com roleBase=ou=Groups,0=myOrg.com roleName=cn roleSearch=(uniqueMember={0})/ When I access a restricted URL the login page appears and I type in my credentials, but when I submit (to: j_security_check) I automatically get redirected to my login-fail page in a matter of nano-seconds (this in itself suggests that it is not working!). When I look in the TomCat log files I cannot see any references to any attempts to contact my LDAP directory. And when I look in the LDAP access log I cannot see any attempt to be contacted either. What step have I missed out or got wrong? Many thanks in advance Charlene __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat 4.1.12 Logs??
Howdy, If you could perhaps provide examples... I usually set the log pattern to combined, rather than common, but that's for log analyzing and probably doesn't have to do with your problem. Yoav Shapira Millennium ChemInformatics -Original Message- From: Prashanth Pushpagiri [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 1:29 PM To: Tomcat Users List Subject: RE: Tomcat 4.1.12 Logs?? Yes, I uncommented the valve part out and tomcat logs access details now. There is however another problem. My logs are wierd. Instead of the remote IP address, the logs have parts of the data being sent out. Sam is the case for request URI. I get html data instead of request details. Could it be another misconfiguration? Prashanth --- Shapira, Yoav [EMAIL PROTECTED] wrote: Hi, In 4.1.x the AccessLogValve in server.xml is commented out by default. Comment it in if you'd like those access logs. You can also move it under a specific Context element to only log accesses to that Context. Yoav Shapira Millennium ChemInformatics -Original Message- From: Prashanth Pushpagiri [mailto:[EMAIL PROTECTED]] Sent: Monday, November 25, 2002 5:03 PM To: Tomcat Users List Subject: Re: Tomcat 4.1.12 Logs?? Hi: I am running Tomcat 4.1.12 alongside IIS 5.0. I have no installation problems, but what I'd like to know is how to set up my logs. In all previous versions of Tomcat I observed Tomcat logging access details (complete HTTP requests made) in files like localhost_accesslog_***.txt, but in 4.1.x I havent seen these files being created in $CATALINA_HOME/logs. Do we need to set it up? If so how? If not where are these logs? Thanks Prashanth __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
tomcat setup
to start I am new to Tomcat. I have installed 4.1.12 on my Mac and can get to the initial page. From here the links for the jsp examples and the servlet examples return a http status 404 not available. The link for the Tomcat Administrator and Tomcat Manager return a 403 access denied. I can however use the Tomcat documention link. In here I found something about the tomcat-users.xml file. I edited this file to add the manager role the document was talking about and create a user name line with a pasword and assigned the manager role to it. I restarted tomcat but still no go. So my question is How do I start the jsp and servlet services so I can test the examples and how to I create a user to get into the administrator? The documentation that comes with this is not much help in trying to configure or administer Tomcat. Thanks -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
NoSuchMethodError
Hi, When i am trying to access a servlet through tomcat it gives me a java.lang.NoSuchMethodError. From the stack trace at LoginServlet.java:238(which is my servlet) all i am doing is that i have a handle to HttpSession object and i call the setAttribute method to bind an object with the session. Why do i get this error? thanks abhijat java.lang.NoSuchMethodError at org.apache.catalina.session.StandardSession.setAttribute(StandardSession.java:1262) at org.apache.catalina.session.StandardSessionFacade.setAttribute(StandardSessionFacade.java:191) at org.apache.catalina.session.StandardSessionFacade.setAttribute(StandardSessionFacade.java:191) at com.bdna.pl.servlet.LoginServlet.doPostMethod(LoginServlet.java:238) at com.bdna.pl.servlet.LoginServlet.service(LoginServlet.java:116) 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:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533) at java.lang.Thread.run(Thread.java:484) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] winmail.dat-- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Response.ContentType - not always setting contentType in Header
Does anyone know of a reason why response.setContentType() would only sometimes set my content type? I have a single control servlet which sets content type explicitly response.setContentType(text/html); just before it opens an outputStream and writes an XSLT transformation to out. For 70% of my pages the contentType is correct. For 30% of them (even the pages otherwise work perfectly fine) the header info is messed up. There is no contentType specified and contentLenght is 0. Very strange. In these pages (their control classes I do not do anything specific to the response object that is any different from the other pages. In the XsLTs I specify output as HTML on all the pages. Very confusing. Any thoughts as to why this might happen or how to correct it? I think it may be causing me search engine indexing problems. Thanks. Neal attachment: winmail.dat-- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: mysql connector problems
Evelin, The first thing you did wrong was read the readme. :) I'm using the same driver with the same basic setup as you. Place the jar file in %CATALINA_HOME%\common\lib. This will make it available to Tomcat as well as any running web app. On a side note, you may want to have Tomcat create and maintain a pool of connections for your application rather than create connections in the JSP itself. Of course, you may have a good reason for doing this. If you're interested in the connection pool approach, see the following link: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-exampl es-howto.html Jason -Original Message- From: Evelin [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 12:49 AM To: [EMAIL PROTECTED] Subject: mysql connector problems Hi I am a newbie and having problems with mysql connector. I download the mysql-connector-java-2.0.14-bin.jar and put the file in the C:\j2sdk1.4.0_02\jre\lib\ext as the readme file instructed. But when I tried to run a jsp file with content: %@ page language=java import=java.sql.* % % Class.forName(com.mysql.jdbc.Driver).newInstance(); % I get the internal server error. Please see below. Can anyone help me by telling me what I did wrong? My system is Windows 2000 Professional system with Service Pack 3 and IE6(SP1) installed. I set the Tomcat to run at port 80 and having no problem viewing the site via http://localhost. The Tomcat version is 4.1.12. Many thanks in advance. Evelin PS: I also tried following and got similar problems. %@ page language=java import=java.sql.* % % Class.forName(org.gjt.mm.mysql.Driver); % HTTP Status 500 - -- -- type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: com.mysql.jdbc.Driver at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper. java:248) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:28 9) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appli cationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFi lterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVa lve.java:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext .invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java :480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextVa lve.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext .invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java :480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2 396) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.ja va:180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext .invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcher Valve.java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext .invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.ja va:172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext .invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java :480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValv e.java:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext .invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java :480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223 ) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java: 405) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proces sConnection(Http11Protocol.java:380) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java: 508) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPo
Re: Response.ContentType - not always setting contentType in Header
Is it seemingly random or is it definitive classes Neal? At 11:17 AM 11/26/2002 -0800, you wrote: Does anyone know of a reason why response.setContentType() would only sometimes set my content type? I have a single control servlet which sets content type explicitly response.setContentType(text/html); just before it opens an outputStream and writes an XSLT transformation to out. For 70% of my pages the contentType is correct. For 30% of them (even the pages otherwise work perfectly fine) the header info is messed up. There is no contentType specified and contentLenght is 0. Very strange. In these pages (their control classes I do not do anything specific to the response object that is any different from the other pages. In the XsLTs I specify output as HTML on all the pages. Very confusing. Any thoughts as to why this might happen or how to correct it? I think it may be causing me search engine indexing problems. Thanks. Neal -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Micael --- 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: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Response.ContentType - not always setting contentType in Header
Definitive classes. And I have (and still am) going through the XSLT and the page classses (the classes that the control servlet calls specific to the requested page) with a fine tooth comb. The only thing that the 3 problem pages seem to have in common that I have not yet eliminated is that they (a) read from the request header info, and (b) do a couple of redirects if needed based upon that request header info. But those conditions should not be applicable to a simple request and thus should not affect the output. In fact, the status code is 200 (not 302 in the case of a redirect). So then, I guess the only really difference that I'm seeing so far is that they read from the request header. but I can't imagine that this would make a difference. :( Thanks. Neal -Original Message- From: micael [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 11:27 AM To: Tomcat Users List Subject: Re: Response.ContentType - not always setting contentType in Header Is it seemingly random or is it definitive classes Neal? At 11:17 AM 11/26/2002 -0800, you wrote: Does anyone know of a reason why response.setContentType() would only sometimes set my content type? I have a single control servlet which sets content type explicitly response.setContentType(text/html); just before it opens an outputStream and writes an XSLT transformation to out. For 70% of my pages the contentType is correct. For 30% of them (even the pages otherwise work perfectly fine) the header info is messed up. There is no contentType specified and contentLenght is 0. Very strange. In these pages (their control classes I do not do anything specific to the response object that is any different from the other pages. In the XsLTs I specify output as HTML on all the pages. Very confusing. Any thoughts as to why this might happen or how to correct it? I think it may be causing me search engine indexing problems. Thanks. Neal -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Micael --- 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: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Response.ContentType - not always setting contentType in Header
are you getting any errors in the error log? is it possible that you are throwing/catching an exception that is not allowing anything to be written to the output stream? Charlie -Original Message- From: neal [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 2:36 PM To: Tomcat Users List Subject: RE: Response.ContentType - not always setting contentType in Header Definitive classes. And I have (and still am) going through the XSLT and the page classses (the classes that the control servlet calls specific to the requested page) with a fine tooth comb. The only thing that the 3 problem pages seem to have in common that I have not yet eliminated is that they (a) read from the request header info, and (b) do a couple of redirects if needed based upon that request header info. But those conditions should not be applicable to a simple request and thus should not affect the output. In fact, the status code is 200 (not 302 in the case of a redirect). So then, I guess the only really difference that I'm seeing so far is that they read from the request header. but I can't imagine that this would make a difference. :( Thanks. Neal -Original Message- From: micael [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 11:27 AM To: Tomcat Users List Subject: Re: Response.ContentType - not always setting contentType in Header Is it seemingly random or is it definitive classes Neal? At 11:17 AM 11/26/2002 -0800, you wrote: Does anyone know of a reason why response.setContentType() would only sometimes set my content type? I have a single control servlet which sets content type explicitly response.setContentType(text/html); just before it opens an outputStream and writes an XSLT transformation to out. For 70% of my pages the contentType is correct. For 30% of them (even the pages otherwise work perfectly fine) the header info is messed up. There is no contentType specified and contentLenght is 0. Very strange. In these pages (their control classes I do not do anything specific to the response object that is any different from the other pages. In the XsLTs I specify output as HTML on all the pages. Very confusing. Any thoughts as to why this might happen or how to correct it? I think it may be causing me search engine indexing problems. Thanks. Neal -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Micael --- 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: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Response.ContentType - not always setting contentType in Header
Can you provide the relevant code from one that does not work and one that does work? Or, would you have to kill me if you did that? At 11:35 AM 11/26/2002 -0800, you wrote: Definitive classes. And I have (and still am) going through the XSLT and the page classses (the classes that the control servlet calls specific to the requested page) with a fine tooth comb. The only thing that the 3 problem pages seem to have in common that I have not yet eliminated is that they (a) read from the request header info, and (b) do a couple of redirects if needed based upon that request header info. But those conditions should not be applicable to a simple request and thus should not affect the output. In fact, the status code is 200 (not 302 in the case of a redirect). So then, I guess the only really difference that I'm seeing so far is that they read from the request header. but I can't imagine that this would make a difference. :( Thanks. Neal -Original Message- From: micael [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 11:27 AM To: Tomcat Users List Subject: Re: Response.ContentType - not always setting contentType in Header Is it seemingly random or is it definitive classes Neal? At 11:17 AM 11/26/2002 -0800, you wrote: Does anyone know of a reason why response.setContentType() would only sometimes set my content type? I have a single control servlet which sets content type explicitly response.setContentType(text/html); just before it opens an outputStream and writes an XSLT transformation to out. For 70% of my pages the contentType is correct. For 30% of them (even the pages otherwise work perfectly fine) the header info is messed up. There is no contentType specified and contentLenght is 0. Very strange. In these pages (their control classes I do not do anything specific to the response object that is any different from the other pages. In the XsLTs I specify output as HTML on all the pages. Very confusing. Any thoughts as to why this might happen or how to correct it? I think it may be causing me search engine indexing problems. Thanks. Neal -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Micael --- 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: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Micael --- 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: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Response.ContentType - not always setting contentType in Header
Hello neal, I've notice that in a filter I have that the content length is sometimes zero. This never happens the first time a browser requests a particular page but will happen each time after that if the user hits reload. The browser just seems to reload from its own cache. The browser sends the request and the server must be saying that the content hasn't changed or something so it sends back a response with a length of zero. If I do a shift+reload, the the response is as I would expect it. The reason why I brought that up is the same thing may be happening for you. Maybe when the server determines that the content hasn't changed it sends back a zero length response and, since the response contains no content to render, the content-type isn't set? Jake Tuesday, November 26, 2002, 1:17:54 PM, you wrote: n Does anyone know of a reason why response.setContentType() would only n sometimes set my content type? n I have a single control servlet which sets content type explicitly n response.setContentType(text/html); n just before it opens an outputStream and writes an XSLT transformation to n out. For 70% of my pages the contentType is correct. For 30% of them (even n the pages otherwise work perfectly fine) the header info is messed up. There n is no contentType specified and contentLenght is 0. Very strange. In these n pages (their control classes I do not do anything specific to the response n object that is any different from the other pages. In the XsLTs I specify n output as HTML on all the pages. Very confusing. n Any thoughts as to why this might happen or how to correct it? I think it n may be causing me search engine indexing problems. n Thanks. n Neal -- Best regards, Jacobmailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re:How to specify path when executing CGI in Tomcat?
If you are interested in this question, here is how to make cgi in tomcat to know the system property path. 1. download the tomcat source, find the CGIServlet.java 2. add the following line inside setCGIEnvironment method, compile it, create the servlet-cgi.jar file again. envp.put(PATH, nullsToBlanks(System.getProperty(java.library.path))); 3. restart the tomcat, now it will find the path system property. This is just a temparary way to get it work, wish the later release tomcat will allow user to configure to include any system property they need. Bin __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Response.ContentType - not always setting contentType in Header
Howdy, I've notice that in a filter I have that the content length is sometimes zero. This never happens the first time a browser requests a particular page but will happen each time after that if the user hits reload. The browser just seems to reload from its own cache. The browser sends the request and the server must be saying that the content hasn't changed or something so it sends back a response with a length of zero. If I do a shift+reload, the the response is as I would expect it. You can verify that this is the behavior by overriding the getLastModifiedTime() method in your servlet and adding some logging statements. Also check the request headers by enabling the RequestDumperValve for the context. You'll see that it's an if-modified-since request... Yoav Shapira Millennium ChemInformatics -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
StackOverflowError when running java bean
Hi there, I met a problem when running java bean online. Please take a look and give some advice. It's a manufacturing-system simulation java bean. On the website, click one button to run the simulation. I can set the beginning simulation time (e.t., from 01/01/2000 to current clicking time). It can work well for short running period of time, but error for early beginning time (e.t., 1/1/1998). The error is: type Exception report message Internal Server Error description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request. exception javax.servlet.ServletException at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp l.java:457) at org.apache.jsp.simul$jsp._jspService(simul$jsp.java:424) at java.lang.Thread.run(Thread.java:484) root cause java.lang.StackOverflowError at java.io.ObjectOutputStream$HandleTable.findWireOffset(ObjectOutputStream.jav a:2344). And if set the beginning time earlier, the server shutdowns. But I run the similar simulation model offline (with JBuiler 6) with longer running period of time (from 1/1/1990 to current time). And it works well and no such errors. Can you help me figure out the problem? Is it possible that there is some bug for Tomcat 4.0.1? Thanks, Minger __ Do you Yahoo!? New DSL Internet Access from SBC Yahoo! http://sbc.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: verifyError with tomcat and xerces 2.2.1
you are correct. Java 1.4 does not allow you to override classes already loaded by a parent classloader. Tomcat enforces this. You can replace the version that comes with tomcat if you need a newer version. Charlie -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 12:22 PM To: [EMAIL PROTECTED] Subject: Re: verifyError with tomcat and xerces 2.2.1 Yes I tried. I'm using tomcat 4.1.12. Actually if I replace the xercesImpl.jar but the latest version in the common/endorsed directory that work fine (this is normal). So I suppose that is not possible to use two differents version of xerces, one used by the server and the other one used by a webapp. I'm wrong? Actually, this is really weird since in the log file, tomcat load the good xerces jar: 2002-11-25 10:45:12 WebappLoader[/axis]: Deploy JAR /WEB-INF/lib/xercesImpl.jar to C:\java\jakarta-tomcat-4.1.12\webapps\axis\WEB-INF\lib\xercesImpl.jar It must not override the classes already loaded from the endorsed dir. Jeanfrancois Arcand wrote: Have you try with the SUN JDK 1.3.1? Which version of Tomcat are you using? -- Jeanfrancois [EMAIL PROTECTED] wrote: Hi, I created a very small servlet and when I try to run it I got a VerifyError exception (see below). The servlet try to create a instance of JAXP DocumentBuilder. I use xerces 2.2.1, that work with previous versions. That work also on the client side (xerces 2.2.1 and without tomcat). The JDK used is IBM jdk1.3.1. Any ideas of what wrong? Thanks Execption trace: java.lang.VerifyError: Class org/apache/xerces/impl/XMLNSDocumentScannerImpl$NSContentDispa tcher is subclass of final class org/apache/xerces/impl/XMLDocumentScannerImpl$ContentDispatcher at org.apache.xerces.impl.XMLNSDocumentScannerImpl.createContentD ispatcher(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.(XMLDocu mentFragmentScannerImpl.java:248) at org.apache.xerces.impl.XMLDocumentScannerImpl.(XMLDocumentScan nerImpl.java:245) at org.apache.xerces.impl.XMLNSDocumentScannerImpl.(Unknown Source) at org.apache.xerces.parsers.IntegratedParserConfiguration.create DocumentScanner(Unknown Source) at org.apache.xerces.parsers.DTDConfiguration.(DTDConfiguration.java:366) at org.apache.xerces.parsers.StandardParserConfiguration.(Standar dParserConfiguration.java:197) at org.apache.xerces.parsers.IntegratedParserConfiguration.(Unkno wn Source) at org.apache.xerces.parsers.IntegratedParserConfiguration.(Unkno wn Source) at java.lang.Class.newInstance0(Native Method) at java.lang.Class.newInstance(Class.java:262) at org.apache.xerces.util.ObjectFactory.newInstance(ObjectFactory .java:293) at org.apache.xerces.util.ObjectFactory.createObject(ObjectFactor y.java:224) at org.apache.xerces.util.ObjectFactory.createObject(ObjectFactor y.java:119) at org.apache.xerces.parsers.DOMParser.(DOMParser.java:153) at org.apache.xerces.parsers.DOMParser.(DOMParser.java:137) at org.apache.xerces.jaxp.DocumentBuilderImpl.(DocumentBuilderImp l.java:102) at org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocumentB uilder(DocumentBuilderFactoryImpl.java:88) The servlet code is: import java.io.IOException; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import javax.xml.parsers.ParserConfigurationException; import org.w3c.dom.Document; /** * */ public class Test2 extends HttpServlet { /** * @see javax.servlet.http.HttpServlet#doGet(HttpServletRequest, HttpServletResponse) */ protected void doGet(HttpServletRequest arg0, HttpServletResponse arg1) throws ServletException, IOException { DocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance(); docFactory.setNamespaceAware(true); try { DocumentBuilder docBuilder = docFactory.newDocumentBuilder(); Document _document = docBuilder.newDocument(); } catch (ParserConfigurationException e) { } } } -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Thread count growth, /manager/sessions, and persistence
I am trying to port an application over to Tomcat v 4.1.12 which has worked fine for two years running in WebSphere on an iSeries. The JSPs were at the .91 level. I have updated them to the 1.2 level. In addition, I have installed the tomcat-util.jar from 4.1.14 to fix the erroneous ssl debug messaging. From the users perspective everything looks the same. On the server side though, I seem to have a runaway thread problem. The Tomcat manager app shows the number of active sessions to be anywhere between 400 and 700 during the day, dwindling to a few dozen at night. (Incidentally, the session count is always in one group: the 30-40 minute one - I expected a breakdown in 10 minute intervals). But the thread count just keeps rising. When the count reaches the maxProcessors limit a message, [INFO]ThreadPool - -All threads are busy, waiting. Please increase maxThreads or check the servlet status appears in the log. I have tried suggesting garbage collection to the JVM at various times but to no avail. Here are the Connector definitions in use: Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=80 minProcessors=5 maxProcessors=2500 enableLookups=true redirectPort=443 acceptCount=25 debug=0 connectionTimeout=2 useURIValidationHack=false / Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=443 minProcessors=25 maxProcessors=2500 enableLookups=true acceptCount=25 debug=0 scheme=https secure=true useURIValidationHack=false Factory className=org.apache.coyote.tomcat4.CoyoteServerSocketFactory clientAuth=false keystoreFile=**filename** keystorePass=**password** keystoreType=**type** protocol=TLS/ /Connector (There is also the standard Coyote/JK2 AJP 1.3 Connector on 8009 but it looks like I don't need that as I'm using Tomcat as a standalone server) Here are my questions: Are there any known issues with Tomcat and excessive thread counts? (Grasping at straws here I know. I have not found any other relevant reference to Tomcat having thread issues like these, yet the same Java code has served well for two years.) Could the lack of a breakdown list in the /manager/sessions output be a symptom of a thread problem or is it just a newbie configuration error? Another item that might be an issue is persistent sessions. I dont want them. I invalidate() the session when a user logs out. To that end I have included the following within each context group: Manager className=org.apache.catalina.session.PersistentManager debug=0 saveOnRestart=false maxActiveSessions=-1 minIdleSwap=1800 maxIdleSwap=-1 maxIdleBackup=-1 Store className=org.apache.catalina.session.FileStore/ /Manager (I have also used 1 for the minIdleSwap. I changed it to 1800 to try and keep the sessions in memory in case that was part of the problem.) Is this the right approach to take? Im concerned that something is wrong here because if I end Tomcat and restart it the cpu usage goes from an average of 6% to 40+%. A second restart puts it up to 99%. The system maintains these rates until I switch to another server (At least the pages still serve fine though). Lastly, in the event that WebSphere has just been covering my tracks well, I would also welcome suggestions of Java discussion lists anyone has had success with where I could post some particulars regarding our multithreaded processing. Thanks in advance! Mark Walker _ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: ldap authenitcation
Did you check Catalina_log in /logs directory Hari -Original Message- From: Charlene Mitchell [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 3:46 AM To: Tomcat Users List Subject: Re: ldap authenitcation Hi, Is it just not possible to authenticate against LDAP? If not can someone help explain how to set the debugging mode of TomCat to verbose because I'm seeing nothing relevant in the logs. sigh please help! Charlene --- Charlene Mitchell [EMAIL PROTECTED] wrote: Hi, No success so far :-( Surely I can't be the only person trying to do something so fundamental? How can I guarantee that I see even a failure in the log files? Seeing nothing at all seems very weird. Thanks Charlene --- Charlene Mitchell [EMAIL PROTECTED] wrote: Hi, How do I authenticate against an LDAP directory using TomCat 4.1.2? In my web.xml I have a resource that requires form authentication as follows: login-config auth-methodFORM/auth-method realm-namejava:/jaas/LDAPLogin/realm-name !-- I tried with and without this -- form-login-config form-login-page/login/form-login-page form-error-page/login-fail/form-error-page /form-login-config /login-config I have read the JNDI Realm how-to and added the following few lines to my server.xml file. Realm className=org.apache.catalina.realm.JNDIRealm debug=99 connectionURL=ldap://ldapmachine:389; userPattern=uid={0},ou=Users,o=myOrg.com roleBase=ou=Groups,0=myOrg.com roleName=cn roleSearch=(uniqueMember={0})/ When I access a restricted URL the login page appears and I type in my credentials, but when I submit (to: j_security_check) I automatically get redirected to my login-fail page in a matter of nano-seconds (this in itself suggests that it is not working!). When I look in the TomCat log files I cannot see any references to any attempts to contact my LDAP directory. And when I look in the LDAP access log I cannot see any attempt to be contacted either. What step have I missed out or got wrong? Many thanks in advance Charlene __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Can't start tomcat
Hello, I have downloaded tomcat 4.1.12. When I try to startup the server a DOS Window appears and disappears immediately and I have no comment about what's going on. Can anybody help me? - NetCourrier, votre bureau virtuel sur Internet : Mail, Agenda, Clubs, Toolbar... Web/Wap : www.netcourrier.com Téléphone/Fax : 08 92 69 00 21 (0,34 TTC/min) Minitel: 3615 NETCOURRIER (0,15 TTC/min) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
SSL Certificate common to apache and Tomcat.
Hi , We need to run apache and tomcat standalone on the same host both with SSL. Is there any way to use the same SSL certificate for both these webservers ? Regards, Joseph Missed your favourite TV serial last night? Try the new, Yahoo! TV. visit http://in.tv.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
HTTP to HTTPS redirect
All, Been reading posts about this. Changed to HTTP port 80 and HTTPS to port 443. I am using Win2K, IE6. When I type in an http page that is supposed to redirect, I get the following: HTTP Status 500 - Configuration error: Cannot perform access control without an authenticated principle. Note: The page does get re-directed; however shows me an error page instead of my login page. This also happened when I was using 8080 and 8443. Using simple keytool verification based on the user's guide. Joel Werginz sends. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Can't start tomcat
Hi, To see the error message, run the startup script using DOS Window and manually type the startup command, instead of double clicking the icon. My guess would be that the problem is that you haven't setup CATALINA_HOME environment variable. Cheers, Yandell. --- [EMAIL PROTECTED] wrote: Hello, I have downloaded tomcat 4.1.12. When I try to startup the server a DOS Window appears and disappears immediately and I have no comment about what's going on. Can anybody help me? - NetCourrier, votre bureau virtuel sur Internet : Mail, Agenda, Clubs, Toolbar... Web/Wap : www.netcourrier.com Téléphone/Fax : 08 92 69 00 21 (0,34 TTC/min) Minitel: 3615 NETCOURRIER (0,15 TTC/min) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] http://www.yahoo.promo.com.au/hint/ - Yahoo! Hint Dropper - Avoid getting hideous gifts this Christmas with Yahoo! Hint Dropper! -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: path mapping
Okay, so Tomcat implements the spec and nothing but the spec then, correct? Thanks, -M@ On Tuesday, November 26, 2002, at 07:39 AM, Jeanfrancois Arcand wrote: See section 11 of the Servlet Specification: http://jcp.org/aboutJava/communityprocess/first/jsr154/ -- Jeanfrancois Matthew Hixson wrote: I have a web application that is currently running under Resin. We may need to migrate our app to Tomcat/JBoss. I'm wondering if there is an equivalent feature in Tomcat that allows us to do the same thing as Resin's path-mapping directive. http://www.caucho.com/resin/ref/app-config.xtp#path-mapping This feature allows us to do things like this: path-mapping url-regexp=/(stage/)?(.*\.jsp)$ real-path=$app-dir/jsp/wap/$2/ Which causes Resin to map all requests that end with .jsp into the jsp/wap directory under wherever our webapp's war file has been expanded to. Or, more simply, is there a way to get Tomcat to map requests like *.jsp into our /jsp directory of our webapp? I've looked through the documentation and couldn't find the answer to this. Thanks for any help, -M@ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Response.ContentType - not always setting contentType in Header
Micael, yeah, here's the code I've written that I believe to be applicable. The controlServlet (the first snippet) sets the contentType, gets the out and writes to the writer, the output of the XSLT transformation. This is done by calling transformTOWriter (which is in a dff't class). Note, that I have provided the overridden version of this method as well so you can see how the one applicable to the first snippet basically just aliases to the 3 arg version of the mehtod. This seems to work with most classes just not all. :( In regard to a couple of questions as to whether the contentLength was set to 0 upon refreshing - na ... its this way the first time its called and even if I do an explicit refresh. The content comes out fine, displays fine, but the lenght is still 0 and the contentType is not there. FYI, here's the tool I'm using to view this info: http://www.searchengineworld.com/cgi-bin/sim_spider.cgi CODE REFERRED TO ABOVE //Preperare publish response.setContentType(text/html); PrintWriter out = response.getWriter(); XslTool xt = new XslTool(); xt.transformToWriter(xml, xsl, out, xslParams); public void transformToWriter(Document xml, Transformer xsl, Writer out, Hashtable parameters) throws TransformerException { if (parameters != null) { for (Enumeration e = parameters.keys() ; e.hasMoreElements() ;) { String key = (String)e.nextElement(); xsl.setParameter(key, (String)parameters.get(key)); } } transformToWriter(xml,xsl,out); } /** Transform specified DOM against specified transformed and out to a writer. */ public void transformToWriter(Document xml, Transformer xsl, Writer out) throws TransformerException { xsl.transform(new DOMSource(xml), new StreamResult(out)); } -Original Message- From: micael [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 11:48 AM To: Tomcat Users List Subject: RE: Response.ContentType - not always setting contentType in Header Can you provide the relevant code from one that does not work and one that does work? Or, would you have to kill me if you did that? At 11:35 AM 11/26/2002 -0800, you wrote: Definitive classes. And I have (and still am) going through the XSLT and the page classses (the classes that the control servlet calls specific to the requested page) with a fine tooth comb. The only thing that the 3 problem pages seem to have in common that I have not yet eliminated is that they (a) read from the request header info, and (b) do a couple of redirects if needed based upon that request header info. But those conditions should not be applicable to a simple request and thus should not affect the output. In fact, the status code is 200 (not 302 in the case of a redirect). So then, I guess the only really difference that I'm seeing so far is that they read from the request header. but I can't imagine that this would make a difference. :( Thanks. Neal -Original Message- From: micael [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 11:27 AM To: Tomcat Users List Subject: Re: Response.ContentType - not always setting contentType in Header Is it seemingly random or is it definitive classes Neal? At 11:17 AM 11/26/2002 -0800, you wrote: Does anyone know of a reason why response.setContentType() would only sometimes set my content type? I have a single control servlet which sets content type explicitly response.setContentType(text/html); just before it opens an outputStream and writes an XSLT transformation to out. For 70% of my pages the contentType is correct. For 30% of them (even the pages otherwise work perfectly fine) the header info is messed up. There is no contentType specified and contentLenght is 0. Very strange. In these pages (their control classes I do not do anything specific to the response object that is any different from the other pages. In the XsLTs I specify output as HTML on all the pages. Very confusing. Any thoughts as to why this might happen or how to correct it? I think it may be causing me search engine indexing problems. Thanks. Neal -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Micael --- 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: mailto:[EMAIL PROTECTED] For
How to define another WEBDAV directory to Tomcat 4.0.6 ?
The default WEBDAV directory that came with Tomcat points to webapps\webdav What are the things I have to define in server.xml and web.xml if i want another WEBDAv folder that points to say , \project\source\ ? Joseph Tan __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
[Announce] JK 1.2.1 released
Hi to all, mod_jk 1.2.1 has been released and is available at : http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.2.1/ For now binaries are available for : - Linux i386 (Apache 1.3 with/without SSL, Apache 2.0 with SSL) - iSeries (Apache 2.0.39 for OS/400 V5R1/V5R2) Other platforms ports should follow shortly. Changes between JK 1.2.1 and JK 1.2.0 : * Don't send initial chunk for chunked encoding, fix bugzilla report #14282 [costin] * Add perl scripts for analyzing mod_jk logs and generating graphs/reports [glenn] * Make JK honor the CanonicalHost directive. [hgomez] * Log cleanup [costin] * Fix typos in jk xdocs/docs [hgomez] * Add JkRequestLogFormat to Apache 2.0 [hgomez] * Final patches to make JK iSeries compliant [hgomez] Regards -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
[ANNOUNCEMENT] Apache Tomcat 4.1.16 Alpha released
Apache Tomcat 4.1.16 Alpha has just been released. Please help improve upcoming Tomcat releases by testing it. Note: This release is intended only for testing purposes, not for production use. Downloads: http://www.apache.org/dist/jakarta/jakarta-tomcat-4.0/release/v4.1.16-alpha/ Significant changes over 4.1.15 Alpha include minor performance improvements and bugfixes. The full list of changes is available in the release notes. http://www.apache.org/dist/jakarta/jakarta-tomcat-4.0/release/v4.1.16-alpha/RELEASE-NOTES Remy -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Can't start tomcat
Hello there, you sound like you r definitely the newest of all of the various newbies out there!!! :) Have you yet made sure/certain that you have written all of the environmental variables in the System settings that you ought to have done?!!! These variables are: (1)JAVA_HOME [the main install folder for your version of the JDK] (2)TOMCAT_HOME [the main install folder for your Tomcat installation] (3) J2EE_HOME [the main folder containing your installation of the J2EE API] (4)PATH [the path to BOTH your JDK and your J2EE installations]. Hope that helps you out! I very recently had to have someone else more knowledgeable about installing Tomcat 4.* than myself throw me a lifeline, so to speak, to get ME to successfully and then get running Tomcat!! What I am struggling with is just how exactly you go about creating servlets and/or JSP's to my satisfaction. That seems to be a hard nut to crack, and leads to endless hours of sheer frustration on my part, lemme tell you. So, you really don't have it that damned bad at all right now, just trying to figure out to get Tomcat running to your satisfaction. Contact me if it still fails on you, thru email. __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat 4.1.12 Logs??
Hi: Here is a portion of my log file...I currently have the pattern set to common. It seems to be printing out section of a jsp page!! Any suggestions? - [26/Nov/2002:15:45:48 -0600] POST /Upload.jsp 200 - font co - [26/Nov/2002:15:47:49 -0600] POST /SubmissionConfirmation.jsp 200 - /tab - [26/Nov/2002:15:47:53 -0600] GET /MyDLNETStatistics.jsp 200 - lvetica, sans- - [26/Nov/2002:15:47:55 -0600] GET /MyContributionStatistics.jsp 200 - r='#FF';th - [26/Nov/2002:15:47:59 -0600] GET /MyContributionStatistics.jsp 200 - lvetica, sans- - [26/Nov/2002:15:48:03 -0600] GET /MyContributionStatistics.jsp 200 - r='#FF';th - [26/Nov/2002:16:07:45 -0600] GET /MyContributionStatistics.jsp 200 - lvetica, sans- - [26/Nov/2002:16:07:50 -0600] GET /MyContributionStatistics.jsp 200 - /tab - [26/Nov/2002:16:13:18 -0600] GET /MyDLNETStatistics.jsp 200 - /tab - [26/Nov/2002:16:13:26 -0600] GET /MyDLNETStatistics.jsp 200 - lvetica, sans- - [26/Nov/2002:16:13:28 -0600] GET /MyContributionStatistics.jsp 200 - r='#FF';th - [26/Nov/2002:16:13:31 -0600] GET /MyContributionStatistics.jsp 200 - Thanks Prashanth --- Shapira, Yoav [EMAIL PROTECTED] wrote: Howdy, If you could perhaps provide examples... I usually set the log pattern to combined, rather than common, but that's for log analyzing and probably doesn't have to do with your problem. Yoav Shapira Millennium ChemInformatics -Original Message- From: Prashanth Pushpagiri [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 1:29 PM To: Tomcat Users List Subject: RE: Tomcat 4.1.12 Logs?? Yes, I uncommented the valve part out and tomcat logs access details now. There is however another problem. My logs are wierd. Instead of the remote IP address, the logs have parts of the data being sent out. Sam is the case for request URI. I get html data instead of request details. Could it be another misconfiguration? Prashanth --- Shapira, Yoav [EMAIL PROTECTED] wrote: Hi, In 4.1.x the AccessLogValve in server.xml is commented out by default. Comment it in if you'd like those access logs. You can also move it under a specific Context element to only log accesses to that Context. Yoav Shapira Millennium ChemInformatics -Original Message- From: Prashanth Pushpagiri [mailto:[EMAIL PROTECTED]] Sent: Monday, November 25, 2002 5:03 PM To: Tomcat Users List Subject: Re: Tomcat 4.1.12 Logs?? Hi: I am running Tomcat 4.1.12 alongside IIS 5.0. I have no installation problems, but what I'd like to know is how to set up my logs. In all previous versions of Tomcat I observed Tomcat logging access details (complete HTTP requests made) in files like localhost_accesslog_***.txt, but in 4.1.x I havent seen these files being created in $CATALINA_HOME/logs. Do we need to set it up? If so how? If not where are these logs? Thanks Prashanth __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: tomcat setup
I have 4.1.12 installed on a Wallstreet G3 Powerbook and it is running great! There's a document in Apple's Developer Forum (http://developer.apple.com/internet/java/tomcat1.html) that covers installing Tomcat on the Mac. It refers to 4.0.1 but should work fine for you. Actually, it sounds like you may be past that part already. The one hurdle I had in the whole process (not in the article) was caused by StuffIt! when it unzipped the download. The filename for the class SetCharacterEncodingFilter.class is too long for StuffIt! so it drops the ss off the end. Now the JVM doesn't find it and you get an error page instead. I believe the file is in two directories (I'm not near the Mac right now). Look in $CATALINA_HOME/webapps/examples/WEB-INF/classes/filters and $CATALINA_HOME/server/webapps/admin/WEB-INF/classes/filters. Just fix the file extension and you should be good to go. The manager and admin applications should only require the following element in your tomcat-users.xml file: user username=your_user_id password=your_password roles=admin,manager/ Hope this helps! Mark Walker From: Joseph Boccuzzi [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: tomcat setup Date: Tue, 26 Nov 2002 11:06:06 -0600 to start I am new to Tomcat. I have installed 4.1.12 on my Mac and can get to the initial page. From here the links for the jsp examples and the servlet examples return a http status 404 not available. The link for the Tomcat Administrator and Tomcat Manager return a 403 access denied. I can however use the Tomcat documention link. In here I found something about the tomcat-users.xml file. I edited this file to add the manager role the document was talking about and create a user name line with a pasword and assigned the manager role to it. I restarted tomcat but still no go. So my question is How do I start the jsp and servlet services so I can test the examples and how to I create a user to get into the administrator? The documentation that comes with this is not much help in trying to configure or administer Tomcat. Thanks -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
load balancing tomcat3.3.1
Hi, I have an application running on tomcat3.3.1 and it is being load balanced using F5 BigIP load balancer hardware. The F5 persistence type is set to Active Cookie persistence and we are experiencing page loading problem (browser keeps on loading the page, even though the server indicates that it has finished responding). Anyone knows what causes this problem? I'm guessing that it is caused by the fact that the Active Cookie somehow destroys/overwrites the server session. I would like to hear if anyone has had similar problem before and the solution to it. Regards, Yandell. http://www.yahoo.promo.com.au/hint/ - Yahoo! Hint Dropper - Avoid getting hideous gifts this Christmas with Yahoo! Hint Dropper! -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
looping through ResultSet...later in page
i am developing a web application using tomcat and mysql. the requirements of the current functionality on which i am working are such that i need to run a query against a table, and then as i am looping through the ResultSet from that query, i need to be able to execute additional queries and process those ResultSets. the basic structure is as follows. ResultSet rset = (ResultSet) blah; while (rset.next()) { NEED TO RUN ANOTHER DATABASE CONNECTION HERE! } of course, since i have one connection open, i can't nest another open connection without throwing a compilation error. i have thought about trying to store the results of the first query into an array and then working through that array, but it seems rather rudimentary. i would think that tomcat (and jsp engines in general) would have some type of container or some means for assigning the ResultSet to some page context or something to address this need. for those of you that have also used Cold Fusion, it's a very simple task there as the query results are assigned to an object available in that page, and you can loop through that object any time later basically doing what you want with the results. what are some solutions you have used to address this need? fyi, a group by in the sql isn't going to be sufficient... thanks in advance. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: looping through ResultSet...later in page
Assuming you really can't do it in a single query, and assuming you don't want/can't use a stored procedure, it wouldn't be considered rudimentary to bring all the data from the first ResultSet locally and walk through it later ... this is what a disconnected RowSet does. Remember also that nothing stops a Connection from opening multiple cursors, so consider using a single connection with multiple Statements nested inside eachother. Hope that helps... justin At 03:59 PM 11/26/2002, you wrote: i am developing a web application using tomcat and mysql. the requirements of the current functionality on which i am working are such that i need to run a query against a table, and then as i am looping through the ResultSet from that query, i need to be able to execute additional queries and process those ResultSets. the basic structure is as follows. ResultSet rset = (ResultSet) blah; while (rset.next()) { NEED TO RUN ANOTHER DATABASE CONNECTION HERE! } of course, since i have one connection open, i can't nest another open connection without throwing a compilation error. i have thought about trying to store the results of the first query into an array and then working through that array, but it seems rather rudimentary. i would think that tomcat (and jsp engines in general) would have some type of container or some means for assigning the ResultSet to some page context or something to address this need. for those of you that have also used Cold Fusion, it's a very simple task there as the query results are assigned to an object available in that page, and you can loop through that object any time later basically doing what you want with the results. what are some solutions you have used to address this need? fyi, a group by in the sql isn't going to be sufficient... thanks in advance. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Hi all .. licence issue ..
I would like to hack a little with tomcat .. I think it would be no problem but my question is if then I want to redistribute a product with tomcat stuff in it what are the requierements ? Does tomcat includes any sun proprietary code ? Is it GPL ? Can I just take tomcat sources, recompile it with added features and distribute back both to tomcat community and to public under my own or my company's brand ? If think it must just be as easier as it (stating in my softs that I use some code from apache fundation ..) as I believe the tomcat licence allows that kind of deals .. Am I right ? Thanks for any tips .. Eriam Schaffter -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Hi all .. licence issue ..
Have you looked here http://www.apache.org/foundation/licence-FAQ.html -Original Message- From: Eriam Schaffter [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 5:54 PM To: [EMAIL PROTECTED] Subject: Hi all .. licence issue .. I would like to hack a little with tomcat .. I think it would be no problem but my question is if then I want to redistribute a product with tomcat stuff in it what are the requierements ? Does tomcat includes any sun proprietary code ? Is it GPL ? Can I just take tomcat sources, recompile it with added features and distribute back both to tomcat community and to public under my own or my company's brand ? If think it must just be as easier as it (stating in my softs that I use some code from apache fundation ..) as I believe the tomcat licence allows that kind of deals .. Am I right ? Thanks for any tips .. Eriam Schaffter -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]