Re: Query string / InputStream
[EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi list, I have a question to servlets with TC. I set up a easy web site with a form and request method POST. The action is then a call to a servlet. In this servlet I implemented doPost and doGet while doPost just calls doGet. Now when the servlet gets called the query string is null. This I also can see in the server log file. Also there is no no query string. I figured out that the actual query string can be read from the InputStream in the servlet. But why is this so? Did I set up something wrong? This is how POST works. The parameters are sent in the message body of the request. What do I need to do to just get the query string? If you just want to log the parameters someplace, it's an easy Filter to get them and log them. On the web site I tried both methods POST and GET with the same effect. I am running TC 4.1.18 as a standalone web server. Any suggestions are welcome because I tried so many things now and do not know where the point is. Regards, Christian Schuster Rudolf Schuster AG Postfach 277 CH - 3000 Bern 11 http://www.rsag.ch ++41 31 348 05 30 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problems with web.xml and security
servlet-mapping and mime-mapping are optional elements. If you don't need them, then they don't have to be there. If you remove the session-config, then the rest of what is posted of your web.xml is valid (even if the /secure/* is implied by the /*, but that shouldn't matter). I'm still going to guess that there are errors in your log files (esp. catalina.out) that will tell you more about the problem. If I'm wrong, then it sounds like it should be easy enough for you to strip down your app to something generic (e.g. I don't need to know anything about your proprietary Beans), and wrap it up in a war file (jar cf bug.war bugapp), and attach it to a bug report at http://nagoya.apache.org/bugzilla. Rosaria Silipo [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I am a bit confused. I do not have any servlet-mapping or mime-mapping (do I need them?) and I followed the order as it is in the tutorial. Even removing session-config, /secure/* is not authenticated and /* is. -- Rosaria -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Bill Barker Sent: Tuesday, June 17, 2003 8:16 PM To: [EMAIL PROTECTED] Subject: Re: problems with web.xml and security If you check your log files, you should see that it doesn't like your web.xml file because session-config comes after servlet-mapping and before mime-mapping (which both come before security-constraint). Tomcat 4.x is picky about enforcing the order of elements in your web.xml file (TC 3.3 is as well, at least by default). The result is that Tomcat stopped reading your file as soon as it got to the session-config line. Rosaria Silipo [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, I am trying to set up Tomcat as a secure web engine. From the tutorial I understood that you should insert the following lines in web.xml and the password protection should work. This works perfectly for files in the root directory (/*), it does not work for files in subdirectories, like /secure/*. Have you have ever seen this problem before? Thanks for any help -- Rosaria !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app ... !-- SECURITY CONSTRAINT -- security-constraint web-resource-collection web-resource-nameSecure Pages/web-resource-name descriptionSecurity constraint on all files/description url-pattern/*/url-pattern url-pattern/secure/*/url-pattern http-methodPOST/http-method http-methodGET/http-method /web-resource-collection auth-constraint descriptionadmin can login/description role-nameadmin/role-name /auth-constraint user-data-constraint descriptionSSL not required/description transport-guaranteeNONE/transport-guarantee /user-data-constraint /security-constraint session-config session-timeout30/session-timeout /session-config !-- LOGIN AUTHENTICATION -- login-config auth-methodFORM/auth-method realm-namedefault/realm-name form-login-config form-login-page/LoginForm.html/form-login-page form-error-page/LoginError.html/form-error-page /form-login-config /login-config !-- SECURITY ROLES -- security-role descriptionThe most secure role/description role-nameadmin/role-name /security-role /web-app -- Rosaria - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: problems with web.xml and security
Jwsdp.log.date.txt does not report any error. I do not have catalina.out. Maybe I am using the wrong version of Tomcat? I think my problem is that /secure has its own web.xml that overrides the web.xml in /. How can I avoid that? -- Rosaria -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Bill Barker Sent: Tuesday, June 17, 2003 11:46 PM To: [EMAIL PROTECTED] Subject: Re: problems with web.xml and security servlet-mapping and mime-mapping are optional elements. If you don't need them, then they don't have to be there. If you remove the session-config, then the rest of what is posted of your web.xml is valid (even if the /secure/* is implied by the /*, but that shouldn't matter). I'm still going to guess that there are errors in your log files (esp. catalina.out) that will tell you more about the problem. If I'm wrong, then it sounds like it should be easy enough for you to strip down your app to something generic (e.g. I don't need to know anything about your proprietary Beans), and wrap it up in a war file (jar cf bug.war bugapp), and attach it to a bug report at http://nagoya.apache.org/bugzilla. Rosaria Silipo [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I am a bit confused. I do not have any servlet-mapping or mime-mapping (do I need them?) and I followed the order as it is in the tutorial. Even removing session-config, /secure/* is not authenticated and /* is. -- Rosaria -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Bill Barker Sent: Tuesday, June 17, 2003 8:16 PM To: [EMAIL PROTECTED] Subject: Re: problems with web.xml and security If you check your log files, you should see that it doesn't like your web.xml file because session-config comes after servlet-mapping and before mime-mapping (which both come before security-constraint). Tomcat 4.x is picky about enforcing the order of elements in your web.xml file (TC 3.3 is as well, at least by default). The result is that Tomcat stopped reading your file as soon as it got to the session-config line. Rosaria Silipo [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, I am trying to set up Tomcat as a secure web engine. From the tutorial I understood that you should insert the following lines in web.xml and the password protection should work. This works perfectly for files in the root directory (/*), it does not work for files in subdirectories, like /secure/*. Have you have ever seen this problem before? Thanks for any help -- Rosaria !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app ... !-- SECURITY CONSTRAINT -- security-constraint web-resource-collection web-resource-nameSecure Pages/web-resource-name descriptionSecurity constraint on all files/description url-pattern/*/url-pattern url-pattern/secure/*/url-pattern http-methodPOST/http-method http-methodGET/http-method /web-resource-collection auth-constraint descriptionadmin can login/description role-nameadmin/role-name /auth-constraint user-data-constraint descriptionSSL not required/description transport-guaranteeNONE/transport-guarantee /user-data-constraint /security-constraint session-config session-timeout30/session-timeout /session-config !-- LOGIN AUTHENTICATION -- login-config auth-methodFORM/auth-method realm-namedefault/realm-name form-login-config form-login-page/LoginForm.html/form-login-page form-error-page/LoginError.html/form-error-page /form-login-config /login-config !-- SECURITY ROLES -- security-role descriptionThe most secure role/description role-nameadmin/role-name /security-role /web-app -- Rosaria - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Realm Authentication does not restore Original POST request.
Hi, I am facing this problem. The Form Based Realm Authentication is not able to recreate the original post request. To recreate the problem: -Request a page protected with Form Based authentication. -Login to the application. -Stop at a page which has a form with method POST, till session times out/context is reloaded. -After session times out, Hit the submit button, you will be asked to login again. -org.apache.catalina.authenticator.FormAuthenicator saves the request parameters with the request in session, before taking you to the login page. -After successful login, it should take you to the orgininal URI requested along with FORM parameters. But one gets redirected to the original request URI. All the parameters with the request are lost. Either the user should be forwarded to the original request URI, or the Form Parameters with the original request should be saved as query string to be appended to the request URI, so that even after redirecting to the original URI, we have access to the parameters. Would like to know whether it is a bug in tomcat or something else. Thanks in advance. Raman
Best way to deploy an application?
As far as I can see, you can deploy a .war in three ways: 1) Dump it in the webapps dir 2) Deploy it with the console 3) Use the ant tasks in the catalina-ant.jar I use #3, particularly in development it is the fastest. Which one is recommended and what are the pro's cons of them? Why should/shouldn't I use one or more of these methods? __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
java.sql.SQLException: Cannot load JDBC driver class 'null'
I cannot seem to set up a datasource correctly. I get the java.sql.SQLException: Cannot load JDBC driver class 'null' exception. I have read numerous threads with things to check, but still get it. I deploy my application using ant and the catalina-ant.jar. I have the mysql jar in the /common/lib directory The server.xml is setup correctly (url, driverclass, etc) So is the web.xml I have checked and double checked, no luck. If someone who posted this earlier and eventually got it fixed can maybe send me a step-by-step solution or things to look for, I would appreciate it. Why can't I set up a general datasource that can be used by all applications and does not need to be configured in the web.xml? And why should I configure the datasource in server.xml and not the admin console? __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How do I configure datasources using ANT?
Is there a way to configure a datasource using ant that will result in the server.xml updated to give me datasources? I can delete, update and deploy applications to Tomcat using the catalina-ant.jar tasks, but can I also create/edit datasource? I have done it in BEA WebLogic before, just not sure how to do it in Tomcat I would like my ant script to have the dburl, driver, username, password etc as propeties and automatically create the datasource and underlying connection pool (using those settings). I suspect I will have to use the Resources task? Is it at all possible? __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Filters and Forwarding
Hi, I have a servlet X that forwards to a servlet Y. When Y is requested directly there is a filter specified in web.xml that does some preprocessing of the request. When X forwards to Y I want the request to pass through the filter, but it seems to go straight to Y. Associating the filter with X wont work because the filter would then process the request before X, instead of between X and Y. I can incorporate the functionality of the filter in Y but that defeats the whole purpose of using filters (there are situations where I want to use Y without the filter). Is there is way to do what I want? Thanks, Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problems Setting up Tomcat 4.1.18 on W2K
Hi There, I'm trying to use Tomcat 4.1.18 on my local Machine, but it won't work. When I try to open the index.jsp it says me: Error 500 org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: [javac] Compiling 1 source file The Env-Variables in Windows (Catalina_home, Java_Home, Path, Classpath) are setten correctly. In the work/standalone/localhost/- Directory he creates the file index-jsp.java, but no .class file like on other machines running Tomcat . My it be a problem with my rights on my local machine? Or is it something other? Thx Oliver
Re: problems with web.xml and security
Now we are getting somewhere ;-). If you have a context with a path=/secure, then you need to set the security-constraint (including login-config) in that web.xml as you have except that you only need to have the url-pattern/*/url-pattern (since the url-pattern is relative to the context-path). Note that unless you enable the SingleSignOn Valve, your logins to '/' and to '/secure' won't transfer from one to the other. You'll have to login to each one seperately. Rosaria Silipo [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Jwsdp.log.date.txt does not report any error. I do not have catalina.out. Maybe I am using the wrong version of Tomcat? I think my problem is that /secure has its own web.xml that overrides the web.xml in /. How can I avoid that? -- Rosaria -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Bill Barker Sent: Tuesday, June 17, 2003 11:46 PM To: [EMAIL PROTECTED] Subject: Re: problems with web.xml and security servlet-mapping and mime-mapping are optional elements. If you don't need them, then they don't have to be there. If you remove the session-config, then the rest of what is posted of your web.xml is valid (even if the /secure/* is implied by the /*, but that shouldn't matter). I'm still going to guess that there are errors in your log files (esp. catalina.out) that will tell you more about the problem. If I'm wrong, then it sounds like it should be easy enough for you to strip down your app to something generic (e.g. I don't need to know anything about your proprietary Beans), and wrap it up in a war file (jar cf bug.war bugapp), and attach it to a bug report at http://nagoya.apache.org/bugzilla. Rosaria Silipo [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I am a bit confused. I do not have any servlet-mapping or mime-mapping (do I need them?) and I followed the order as it is in the tutorial. Even removing session-config, /secure/* is not authenticated and /* is. -- Rosaria -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Bill Barker Sent: Tuesday, June 17, 2003 8:16 PM To: [EMAIL PROTECTED] Subject: Re: problems with web.xml and security If you check your log files, you should see that it doesn't like your web.xml file because session-config comes after servlet-mapping and before mime-mapping (which both come before security-constraint). Tomcat 4.x is picky about enforcing the order of elements in your web.xml file (TC 3.3 is as well, at least by default). The result is that Tomcat stopped reading your file as soon as it got to the session-config line. Rosaria Silipo [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, I am trying to set up Tomcat as a secure web engine. From the tutorial I understood that you should insert the following lines in web.xml and the password protection should work. This works perfectly for files in the root directory (/*), it does not work for files in subdirectories, like /secure/*. Have you have ever seen this problem before? Thanks for any help -- Rosaria !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app ... !-- SECURITY CONSTRAINT -- security-constraint web-resource-collection web-resource-nameSecure Pages/web-resource-name descriptionSecurity constraint on all files/description url-pattern/*/url-pattern url-pattern/secure/*/url-pattern http-methodPOST/http-method http-methodGET/http-method /web-resource-collection auth-constraint descriptionadmin can login/description role-nameadmin/role-name /auth-constraint user-data-constraint descriptionSSL not required/description transport-guaranteeNONE/transport-guarantee /user-data-constraint /security-constraint session-config session-timeout30/session-timeout /session-config !-- LOGIN AUTHENTICATION -- login-config auth-methodFORM/auth-method realm-namedefault/realm-name form-login-config form-login-page/LoginForm.html/form-login-page form-error-page/LoginError.html/form-error-page /form-login-config /login-config !-- SECURITY ROLES -- security-role descriptionThe most secure role/description role-nameadmin/role-name /security-role /web-app -- Rosaria - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to stop execution of infinite loop in Tomcat ?
Hi Is there any way to stop the execution of a JSP page on a remote server ? Today by mistake I wrote code which print inside a while loop. By mistake I increased the counter instead of decreasing it. How I can stop the execution of the page. Tomcat is running in another machine which I have no physical access. Regards Anto paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ssl keystore
On Tuesday 17 June 2003 18:55, Marc Dugger wrote: I am attempting to change the certificate against which a webapp authenticates itself. I've gone as far as deleting the old key/cert from the keystore and imported a new one. However, the webapp continues to use the old cert. I've verified that the 'keystorefile' param on the SSL factory is defined correctly and restarted the server repeatedly. What else could I be missing? Hi, Marc! i once had a similar problem with a cert under Apache, and it turned out that i literally had to reboot the machine to get the new cert to be visible. Apparently libssl simply wouldn't let go of it. i theorize that the problem was that libssl had the cert open, and therefor deleting/replacing the file didn't really delete the open filehandle (thus libssl was seeing the old cert). That's just theory, though - i never did find out for 100% certain. You can see a similar behaviour in your system logger if you 'rm /var/log/messages', for example - the syslogger is still writing to the old filehandle, and restarting the syslogger will solve the problem. Since once cannot restart libssl, this theory makes sense, assuming that libssl actually keeps an open filehandle on the cert. -- - stephan The Guy With No Job Title [EMAIL PROTECTED] - http://www.einsurance.de Student: Master, you must teach me the way of liberation! Master: Tell me who it is that binds you. Student: No one binds me! Master: Then why do you seek liberation? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JNDI Resources Problem
I'm trying to add a new custom resource factories in jakarta, I followed the documentation instructions, I wrote a class that extend ObjectFactory and I modified server.xml and web.xml but dosen't work. I use tomact 4.1.18. I use a jsp to try the resource Can someone help me? Follow the jsp source, web.xml file, context os server.xml and the exception. JSP Code: %@ page language=java % html body % javax.naming.Context ctx = new javax.naming.InitialContext(); javax.naming.Context envCtx = (javax.naming.Context) ctx.lookup(java:comp/env); net.sf.hibernate.SessionFactory factory = (net.sf.hibernate.SessionFactory) envCtx.lookup(hibernate/JNDIHibernateFactory); % /body /html - web.xml - web-app resource-env-ref descriptionObject factory for Hibernate SessionFactory instances./description resource-env-ref-namehibernate/JNDIHibernateFactory/resource-env-ref-name resource-env-ref-typenet.sf.hibernate.SessionFactory/resource-env-ref-type /resource-env-ref /web-app -- server.xml -- Context className=org.apache.catalina.core.StandardContext cachingAllowed=true charsetMapperClass=org.apache.catalina.util.CharsetMapper cookies=true crossContext=false debug=2 docBase=C:\Programmi\Apache Group\Tomcat4.1\webapps\persistance-0.1 mapperClass=org.apache.catalina.core.StandardContextMapper path=/persistance-0.1 privileged=false reloadable=false swallowOutput=false useNaming=true wrapperClass=org.apache.catalina.core.StandardWrapper Logger className=org.apache.catalina.logger.FileLogger debug=0 directory=logs prefix=localhost_log_persistance. suffix=.txt timestamp=true verbosity=5/ Resource name=hibernate/JNDIHibernateFactory auth=Container type=net.sf.hibernate.SessionFactory/ ResourceParams name=hibernate/JNDIHibernateFactory parameter namefactory/name valuecom.set.edi.persistance.hibernate.JNDIHibernateFactory/value /parameter parameter nameHibernate.Property/name valuehibernate.cfg.xml/value /parameter /ResourceParams /Context org.apache.jasper.JasperException at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:248) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java: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:2415) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java: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:432) at
probelm running webapp on tomcat 4.1.24
Hi, I'm hoping someone out there can help me with this - I'm banging my head against a wall here... I've just installed tomcat 4.1.24, because it supports multiple developers using a single install (we used to use tomcat 3. The guy who set that up is on holiday, etc., etc.) I'm a tomcat newbie, but I've searched high and low for a solution to this, and even the mighty google couldn't help. Tomcat runs fine using my own specific CATALINA_BASE, but as soon as I put in my own war file into the $CATALINA_BASE/webapps, I can't get it to start. I'm NOT running startup.sh with the '-security' flag, but these are my (edited) error messages: java.security.AccessControlException: access denied (java.io.FilePermission /tmp/giera_l/tomcat/webapps/vpp/WEB-INF /classes/my/package/uk/vportal/service/frontend/ServiceManager.class read) at java.security.AccessControlContext.checkPermission(AccessControlContext.java:272) at java.security.AccessController.checkPermission(AccessController.java:399) at java.lang.SecurityManager.checkPermission(SecurityManager.java:545) at java.lang.SecurityManager.checkRead(SecurityManager.java:890) at java.io.File.exists(File.java:546) snip java.security.AccessControlException: access denied (java.io.FilePermission /tmp/giera_l/tomcat/webapps/vpp/WEB-INF /classes/org/apache/jasper/servlet/JspServlet.class read) at java.security.AccessControlContext.checkPermission(AccessControlContext.java:272) at java.security.AccessController.checkPermission(AccessController.java:399) at java.lang.SecurityManager.checkPermission(SecurityManager.java:545) at java.lang.SecurityManager.checkRead(SecurityManager.java:890) at java.io.File.exists(File.java:546) snip java.security.AccessControlException: access denied (java.io.FilePermission /tmp/giera_l/tomcat/webapps/tomcat-docs read) snip The war file worked in tomcat 3.3.1, and is pretty simple. As far as I can tell, everything is in the correct place in it (jars in WEB-INF/lib, classes in WEB-INF/classes). Any help would be greatly appreciated. Leon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Fw: getting a reply like this.
When I post to this mailing list I am getting the following reply. Why I am getting this. Any one else get this ? - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 1:55 PM Subject: RE: How to stop execution of infinite loop in Tomcat ? Dear [EMAIL PROTECTED], Your recent message to this server regarding `How to stop execution of infinite loop in Tomcat ?` was not delivered. Your address is listed in one or more suppression files on this server or your account is configured to allow local mail traffic only. Please contact the postmaster at this domain if additional information is required. Thank you, [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How do I easily set logging verbosity for coyote and the like?
Hi *, I'm using Tomcat 5.0.2 and J2SDK1.4.2 beta. The Tomcat log fills up with a lot of INFO messages which I wouldn't like to see. (Stdout and stderr are redirected to files.) Tweaking the debug and/or the verbosity attributes for the respective components in server.xml has no effect with respect to suppressing those messages. As logging is ultimately managed by java.util.logging or log4j I can certainly tweak logging.properties or log4j.properties respectively. However, it would be much more convenient to configure all aspects of Tomcat logging in server.xml. There may also be side-effects as the configuration for java.util.logging holds for the entire JDK (at least if I don't pass a dedicated logging.properties to Tomcat at start-up). Is this separation by design? Are changes in the pipeline for forthcoming Tomcat versions? If not, does anyone have an easy solution/work-around? Regards, Marc - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problems starting Tomcat from CD
Hello. We have developed a JSP application we want to provide on CD. Tomcat-Version: 4.1.24-LE-jdk14 JDK Version: 1.4.1-b21 When starting Tomcat from a write protected medium, we get an exception like this: ContextConfig[/applicator]: Exception processing JAR at resource path /WEB-INF/lib/servlets-common.jar javax.servlet.ServletException: Exception processing JAR at resource path /WEB-INF/lib/servlets-common.jar at org.apache.catalina.startup.ContextConfig.tldScanJar(ContextConfig.java: 930) [... more tracing information ...] We already figured out that it is not just servlets-common.jar. It seems to be quite random which JAR file produces that exception, dependent on how many JAR files are in /WEB-INF/lib. Our question is: Can we prevent Tomcat from trying to write onto CD while processing the JAR? And how? Also interesting for us: What does Tomcat do while processing JARs? Our second problem is sessions: StandardManager[/applicator]: IOException while saving persisted sessions: java.io.FileNotFoundException: Z:\webserver\work\Standalone\localhost\applicator\SESSIONS.ser (Zugriff verweigert) at java.io.FileOutputStream.open(Native Method) [... more tracing information ...] First, we used a PersistentManager. In our mind, a StandardManager should not try to write to the SESSIONS.ser file, but it does. Removing the Manager entry from server.xml does not help, because Tomcat uses a StandardManager then. Our question is: Is there a way to stop the Manager from writing to SESSIONS.ser? We already thought of implementing our own Manager, but we currently have no idea what a Manager must do. Is there a chance of implementing the org.apache.catalina.Manager interface with just every method returning NULL? Thanks for your help Thomas Weller Student - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Email Problem
Hi Everyone, Has any one face with a problem seen below: # java.lang.NullPointerException at java.net.InetAddress.cacheAddress(InetAddress.java:648) at java.net.InetAddress.cacheAddress(InetAddress.java:633) at java.net.InetAddress.getAddressFromNameService(InetAddress.java:1016) at java.net.InetAddress.getLocalHost(InetAddress.java:1125) at javax.mail.internet.InternetAddress.getLocalAddress(InternetAddress.java :472) at javax.mail.internet.UniqueValue.getUniqueMessageIDValue(UniqueValue.java :70) at javax.mail.internet.MimeMessage.updateHeaders(MimeMessage.java:1843) at javax.mail.internet.MimeMessage.saveChanges(MimeMessage.java:1822) at email.EmailApp.send(EmailApp.java:187) # Previous environment Tomcat 3.x, Apache 1.3.x, Mod_jk j2sdk1.3 After migration environment Tomcat 4.1.24 Apache 2.0.45 Mod_jk2 J2sdk1.4.x The email server is qmail and there has been no changes on the server. Thanks in advance, Ozgur Kocak - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Precompiling JSPs
Hello, I have a build.cmd file that I have had and modified for every project I've done for years. I should probably go learn ANT or some other build technique but for now I want to do this the command line way. I'm not even sure if ANT will do what I want. I want to have my .jsp files made into .java files (easy) then compiled into .class files (hard) before starting my Tomcat. That way I can see any syntax errors in my .jsp files. If I do this at the moment I get a load of errors where one JSP which is included in another uses variables which are only declared in the major one. Is there a way to compile the .java files the way Tomcat does (which takes account of included .jsp's)? Does ANT create .class files? Thanks in advance. Andoni.
RE: Precompiling JSPs
Andoni, Justin Ruthenbeck helped me with this situation. Direct your browser to: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jasper-howto.html and look at Web Application Compilation. See if that helps you. Best regards, Wayne Chang Pacific Northwest Software Mobile: (978) 869-3446 Email: [EMAIL PROTECTED] -Original Message- From: Andoni [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 6:25 PM To: Tomcat Users List Subject: Precompiling JSPs Hello, I have a build.cmd file that I have had and modified for every project I've done for years. I should probably go learn ANT or some other build technique but for now I want to do this the command line way. I'm not even sure if ANT will do what I want. I want to have my .jsp files made into .java files (easy) then compiled into .class files (hard) before starting my Tomcat. That way I can see any syntax errors in my .jsp files. If I do this at the moment I get a load of errors where one JSP which is included in another uses variables which are only declared in the major one. Is there a way to compile the .java files the way Tomcat does (which takes account of included .jsp's)? Does ANT create .class files? Thanks in advance. Andoni. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
global parameters--which way
I have a question about web app design. It seems as though there are (at least) 2 ways to set up global application parameters at deployment time: 1) put them in a context-param tag in the deployment descriptor, or 2) use a properties file or resource bundle to read them in. Is there a preferred or standard way, or does it even matter? Any opinions are welcome--thanks! Dave Naden - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Dashboard Login
No he does not have one. Should I create one ? What should be his access level ? Just Viewer ? -Kranthi. -Original Message- From: Ryan Waterer Sent: Tuesday, June 17, 2003 4:07 PM To: Thomas Tracey; Kranthi Yemula Subject: RE: Dashboard Login Kranthi, Does Tommy have a username/login that he can use? Ryan Waterer Web Developer @Once.com 503-241-4185x146 -Original Message- From: Thomas Tracey Sent: Tuesday, June 17, 2003 4:06 PM To: Ryan Waterer Subject: Dashboard Login I'm trying to document the requirements from our meeting last week and I need to reference a few screens from the Dashboard. Do you have a username/password for me to use? Thanks. Tommy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to stop execution of infinite loop in Tomcat ?
AFAIK, no. If the JSP/servlet was writing to stream - the browser closing the connection could trigger an IO eventually. Of you can luck out with a recursive loop and end up with a stack overflow. But if you are in a tight loop like this: while(true) { int foo=1; } Then you are out of most likely luck. Killing threads in the JVM is unsafe. See the java.lang.Thread for details why. -Tim anto paul wrote: Hi Is there any way to stop the execution of a JSP page on a remote server ? Today by mistake I wrote code which print inside a while loop. By mistake I increased the counter instead of decreasing it. How I can stop the execution of the page. Tomcat is running in another machine which I have no physical access. Regards Anto paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Filters and Forwarding
Filters apply only to the incoming request. Filters are not invoked on subsequent forward() or include(). But the 2.4 spec will allow filters to be run on forward() (and I think include, read the spec to verify) -Tim Chisholm, Paul wrote: Hi, I have a servlet X that forwards to a servlet Y. When Y is requested directly there is a filter specified in web.xml that does some preprocessing of the request. When X forwards to Y I want the request to pass through the filter, but it seems to go straight to Y. Associating the filter with X wont work because the filter would then process the request before X, instead of between X and Y. I can incorporate the functionality of the filter in Y but that defeats the whole purpose of using filters (there are situations where I want to use Y without the filter). Is there is way to do what I want? Thanks, Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Best way to deploy an application?
Topic most likely to start a flame war. I like to do things manually. In 4.0 - I always edit server.xml and keep my webapps out of the webapps dir. By doing a manual restart - I can guarantee when my JVM crashes (or other stuff occurs) - I can guarantee it will restart. In 4.1 - I plop an XML file in the webapps dir (with the context config) and my webapps still reside somewhere else. -Tim Riaan Oberholzer wrote: As far as I can see, you can deploy a .war in three ways: 1) Dump it in the webapps dir 2) Deploy it with the console 3) Use the ant tasks in the catalina-ant.jar I use #3, particularly in development it is the fastest. Which one is recommended and what are the pro's cons of them? Why should/shouldn't I use one or more of these methods? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JSP Compiler output?
One other thought: I notice that the compiler messages look like ant messages -- could the problem be that ant is not in my classpath or system path some related ant setting? Noel Noel Rappin wrote: I replicated this experiment exactly in my environment. Tomcat 4.1.24, Linux, JSDK 1.4.1_01. Is it a Linux thing? Here's my stack trace in localhost: org.apache.jasper.JasperException: Unable to compile class for JSP at org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:500) at org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:150) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:195) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) By the way, I really appreciate your time in helping with this. Noel Tim Funk wrote: You should get something somewhere. For example ... With 4.1.24 (win2k, jdk1.3, but 1.4 is the same result), I have a file called foo.jsp (at /) with the contents: % more cowbell % My error screen is attached. In the logs (localhost_log.2003-06-17.txt) I get: 2003-06-17 16:34:06 StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: [javac] Since fork is true, ignoring compiler setting. [javac] Compiling 1 source file [javac] Since fork is true, ignoring compiler setting. [javac] C:\opt\jakarta\tomcat4.1.24\work\Standalone\localhost\_\foo_jsp.java:41: ';' expected [javac] more cowbell [javac] ^ [javac] C:\opt\jakarta\tomcat4.1.24\work\Standalone\localhost\_\foo_jsp.java:41: cannot resolve symbol [javac] symbol : class more [javac] location: class org.apache.jsp.foo_jsp [javac] more cowbell [javac] ^ [javac] 2 errors at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:130) ... -Tim Noel Rappin wrote: Okay. I did a clean install of tomcat. I placed a compilation error in one of the example JSPs. I am now seeing this in the logs: * catalina.out: start/stop messages * localhost_examples: a stack trace saying that there was a JasperException: unable to compile class for JSP * localhost_log: messages about servlet loading. What I don't see is a message saying something useful about the compilation error -- like Compile failed on line 10, statement expected or some such. Are those messages just not generated? Noel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JSP Compiler output?
Interesting... can you point me to more information, or has this been discussed on this list? Noel Jason Bainbridge wrote: I haven't really been following this thread but is this the problem where in some scenarios that JAVA_HOME/bin needs to be in the system PATH? Regards, - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: win2000 issue with tomcat4.1.24
Then something is seriously screwed up. As I said, I would start over, and when I say start over, I don't just mean with Tomcat, I mean everything: JDK, etc. Make sure you don't have older JDK files or JAR files hanging around that might confuse Tomcat. John On Tue, 17 Jun 2003 18:35:10 -0400, Srinivasu Gandu [EMAIL PROTECTED] wrote: http://localhost:8080 -Original Message- From: John Turner [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 17, 2003 4:15 PM To: Tomcat Users List Subject: Re: win2000 issue with tomcat4.1.24 Sorry, you lost me. I think Craig's response at the link I provided should be enough to go on, basically he is saying to recompile all of your classes. That would have nothing to do with Tomcat. While I have never personally seen this error message, I have no problems spending time trying a suggested solution if Craig is the one doing the suggesting. Or are you saying that TOMCAT is throwing that error message? With what URL? John On Tue, 17 Jun 2003 16:02:24 -0400, Srinivasu Gandu [EMAIL PROTECTED] wrote: Where do you want to delete all the .class files??, I don't have any application to run right now.. I have a fresh installation of tomcat4.1.24 Srini. -Original Message- From: John Turner [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 17, 2003 8:43 AM To: Tomcat Users List Subject: Re: win2000 issue with tomcat4.1.24 Wow, cool error. Never saw that before. It seems Craig McClanahan has, though: http://www.mail- archive.com/[EMAIL PROTECTED]/msg03255.html If that doesn't help, my suggestion is to reinstall and start over. John On Mon, 16 Jun 2003 22:38:20 -0400, Srini Gandu [EMAIL PROTECTED] wrote: John, I did as you said.. I have a problem in starting the tomcat.. I did try to start by using as service and try to start via command prompt like you said.. in both cases I got the following error log and un able to get the tomcat home page. I am putting the log file content below and also attaching this as attachment.. Thanks - srini. 2003-06-16 22:31:49 HostConfig[localhost]: Deploying configuration descriptor admin.xml 2003-06-16 22:31:54 HostConfig[localhost]: Deploying configuration descriptor manager.xml 2003-06-16 22:31:54 WebappLoader[/manager]: Deploying class repositories to work directory C:\Tomcat4.1\work\Standalone\localhost\manager 2003-06-16 22:31:54 ContextConfig[/manager]: Configured an authenticator for method BASIC 2003-06-16 22:31:54 StandardManager[/manager]: Seeding random number generator class java.security.SecureRandom 2003-06-16 22:31:54 StandardManager[/manager]: Seeding of random number generator has been completed 2003-06-16 22:31:54 StandardWrapper[/manager:default]: Loading container servlet default 2003-06-16 22:31:54 StandardWrapper[/manager:invoker]: Loading container servlet invoker 2003-06-16 22:31:54 StandardWrapper[/manager:jsp]: Marking servlet jsp as unavailable 2003-06-16 22:31:54 StandardContext[/manager]: Servlet /manager threw load() exception javax.servlet.ServletException: Error instantiating servlet class org.apache.jasper.servlet.JspServlet at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:91 2) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java: 3420) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3608) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:8 21) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579) at org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDeployer. java:700) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:252) at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:260) at org.apache.commons.digester.Rule.end(Rule.java:276) at org.apache.commons.digester.Digester.endElement(Digester.java:1064) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc her.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
Re: JSP Compiler output?
There is a root cause, but it doesn't have the error info... java.lang.ClassNotFoundException: org.apache.jsp.foo_jsp at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:209) at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:131) at org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:497) at org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:150) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:195) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) I was also able to replicate Tim's stack trace on a windows machine... the relevant part is here.. at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:130) at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:293) at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:353) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:370) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:473) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:190) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) It looks like in Tim's case, the compilation called at JspServletWrapper:190 triggers an error, that my system is swallowing. My system apparently makes it to JspServletWrapper:195, where it then seems to be looking for the compiled jsp class file, which it's not finding -- only then does my system show the stack trace. The question, I guess, is why is my system swallowing the javac DefaultErrorHandler? I guess I'll dig into the code. Thanks, Noel Shapira, Yoav wrote: Howdy, This isn't the full stack trace: please post the full one with the Root Cause. Yoav Shapira Millennium ChemInformatics -Original Message- From: Noel Rappin [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 17, 2003 4:59 PM To: Tomcat Users List Subject: Re: JSP Compiler output? I replicated this experiment exactly in my environment. Tomcat 4.1.24, Linux, JSDK 1.4.1_01. Is it a Linux thing? Here's my stack trace in localhost: org.apache.jasper.JasperException: Unable to compile class for JSP at org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java :500 ) at org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrappe r.ja va:150) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.j ava: 195) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295 ) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) By the way, I really appreciate your time in helping with this. Noel Tim Funk wrote: You should get something somewhere. For example ... With 4.1.24 (win2k, jdk1.3, but 1.4 is the same result), I have a file called foo.jsp (at /) with the contents: % more cowbell % My error screen is attached. In the logs (localhost_log.2003-06-17.txt) I get: 2003-06-17 16:34:06 StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: [javac] Since fork is true, ignoring compiler setting. [javac] Compiling 1 source file [javac] Since fork is true, ignoring compiler setting. [javac] C:\opt\jakarta\tomcat4.1.24\work\Standalone\localhost\_\foo_jsp.java:41: ';' expected [javac] more cowbell [javac] ^ [javac] C:\opt\jakarta\tomcat4.1.24\work\Standalone\localhost\_\foo_jsp.java:41: cannot resolve symbol [javac] symbol : class more [javac] location: class org.apache.jsp.foo_jsp [javac] more cowbell [javac] ^ [javac] 2 errors at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorH andl er.java:130) ... -Tim Noel Rappin wrote: Okay. I did a clean install of tomcat. I placed a compilation error in one of the example JSPs. I am now seeing this in the logs: * catalina.out: start/stop messages * localhost_examples: a stack trace saying that there was a JasperException: unable to compile class for JSP * localhost_log: messages about servlet loading. What I don't see is a message saying something useful about the compilation error -- like Compile failed on line 10, statement expected or some such. Are those messages just
Re: Precompiling JSPs
Have you tried compiling the servlet source files in the work directory? On Wednesday 18 June 2003 05:25 am, Andoni wrote: Hello, I have a build.cmd file that I have had and modified for every project I've done for years. I should probably go learn ANT or some other build technique but for now I want to do this the command line way. I'm not even sure if ANT will do what I want. I want to have my .jsp files made into .java files (easy) then compiled into .class files (hard) before starting my Tomcat. That way I can see any syntax errors in my .jsp files. If I do this at the moment I get a load of errors where one JSP which is included in another uses variables which are only declared in the major one. Is there a way to compile the .java files the way Tomcat does (which takes account of included .jsp's)? Does ANT create .class files? Thanks in advance. Andoni. -- Ben Souther F.W. Davison Company, Inc. REGISTER NOW FOR THE SCORPEO USER CONFERENCE! September 18-19, 2003 in Boston/Brookline, MA Additional Training Sessions held September 17, 2003 More info http://www.fwdco.com/services/Uconf03/default.shtm - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Best way to deploy an application?
Howdy, I think it's enlightening to see two tomcat developers using different methods for the same task: I do almost the opposite of what Tim does ;) I like to keep the .war files packed, my server set to unpackWARs=false, autoDeploy=false, and I use an ant task (self-written, not from catalina-ant.jar, but very close) that assembles the .war file and copies it into the webapps directory. I restart the server manually. All the approaches are fine I think. It's nice to have choices. Yoav Shapira Millennium ChemInformatics -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 7:02 AM To: Tomcat Users List Subject: Re: Best way to deploy an application? Topic most likely to start a flame war. I like to do things manually. In 4.0 - I always edit server.xml and keep my webapps out of the webapps dir. By doing a manual restart - I can guarantee when my JVM crashes (or other stuff occurs) - I can guarantee it will restart. In 4.1 - I plop an XML file in the webapps dir (with the context config) and my webapps still reside somewhere else. -Tim Riaan Oberholzer wrote: As far as I can see, you can deploy a .war in three ways: 1) Dump it in the webapps dir 2) Deploy it with the console 3) Use the ant tasks in the catalina-ant.jar I use #3, particularly in development it is the fastest. Which one is recommended and what are the pro's cons of them? Why should/shouldn't I use one or more of these methods? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JSP Compiler output?
It's cropped up a few times on the list, maybe do a search for JAVA_HOME/bin (or with a backslash instead) at http://tomcatfaq.sf.net Have you tried doing this yet? It might just work. :) Regards, -- Jason Bainbridge http://jblinux.org On Wed, 18 Jun 2003 19:09, Noel Rappin wrote: Interesting... can you point me to more information, or has this been discussed on this list? Noel Jason Bainbridge wrote: I haven't really been following this thread but is this the problem where in some scenarios that JAVA_HOME/bin needs to be in the system PATH? Regards, - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Email Problem
Howdy, This clearly seems like a BugParade issue, so this is not the list for it. But as always I'm curious: is this a multi-homed system? A multi-NIC system? Yoav Shapira Millennium ChemInformatics -Original Message- From: Ozgur [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 6:10 AM To: [EMAIL PROTECTED] Subject: Email Problem Hi Everyone, Has any one face with a problem seen below: # java.lang.NullPointerException at java.net.InetAddress.cacheAddress(InetAddress.java:648) at java.net.InetAddress.cacheAddress(InetAddress.java:633) at java.net.InetAddress.getAddressFromNameService(InetAddress.java:1016) at java.net.InetAddress.getLocalHost(InetAddress.java:1125) at javax.mail.internet.InternetAddress.getLocalAddress(InternetAddress.jav a :472) at javax.mail.internet.UniqueValue.getUniqueMessageIDValue(UniqueValue.jav a :70) at javax.mail.internet.MimeMessage.updateHeaders(MimeMessage.java:1843) at javax.mail.internet.MimeMessage.saveChanges(MimeMessage.java:1822) at email.EmailApp.send(EmailApp.java:187) # Previous environment Tomcat 3.x, Apache 1.3.x, Mod_jk j2sdk1.3 After migration environment Tomcat 4.1.24 Apache 2.0.45 Mod_jk2 J2sdk1.4.x The email server is qmail and there has been no changes on the server. Thanks in advance, Ozgur Kocak - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: getting a reply like this.
Howdy, Others have reported this. For me, it depends on which of my email accounts I post to this list from. Someone needs to ask [EMAIL PROTECTED] what they're doing... Yoav Shapira Millennium ChemInformatics -Original Message- From: anto paul [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 5:01 AM To: tomcat mail list Subject: Fw: getting a reply like this. When I post to this mailing list I am getting the following reply. Why I am getting this. Any one else get this ? - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 1:55 PM Subject: RE: How to stop execution of infinite loop in Tomcat ? Dear [EMAIL PROTECTED], Your recent message to this server regarding `How to stop execution of infinite loop in Tomcat ?` was not delivered. Your address is listed in one or more suppression files on this server or your account is configured to allow local mail traffic only. Please contact the postmaster at this domain if additional information is required. Thank you, [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: global parameters--which way
Howdy, It seems as though there are (at least) 2 ways to set up global application parameters at deployment time: 1) put them in a context-param tag in the deployment descriptor, or 2) use a properties file or resource bundle to read them in. Is there a preferred or standard way, or does it even matter? You were right to state there are at least 2. Other ways include JNDI (Resource tags in server.xml for tomcat), reading from a service, etc. etc. Between the above two approaches, ask yourself: - Who reads these parameters? Are they servlets/listeners/filters only, POJOs only, or a mix? If it's servlets/listeners/filters only, a context-param is likely a good choice. If it's POJOs only, a .properties file on the classpath is a good choice. If it's a mix, either one is a good choice. The advantage of putting .properties file on the classpath is that you can access them in your app even if you're not running within a servlet container. The disadvantage is that it's more difficult to modify, it's an uglier source organization, it mixes code and configuration. I usually like properties file placed under WEB-INF, accessed via ServletContext#getResource() or ServletContext#getResourceAsStream(). This is standard, portable, clean, safe, protects the properties files from the browser. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
LDAP/SSL Realm
Has anyone used an LDAP Tomcat Realm over SSL? I wasn't able to get the stock JNDIRealm to work using the secure port. -Carl - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to stop execution of infinite loop in Tomcat ?
Howdy, No. You have to kill the server, remove offending code, and restart. That's why I like to test locally ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: anto paul [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 4:14 AM To: tomcat mail list Subject: How to stop execution of infinite loop in Tomcat ? Hi Is there any way to stop the execution of a JSP page on a remote server ? Today by mistake I wrote code which print inside a while loop. By mistake I increased the counter instead of decreasing it. How I can stop the execution of the page. Tomcat is running in another machine which I have no physical access. Regards Anto paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: probelm running webapp on tomcat 4.1.24
Howdy, I've just installed tomcat 4.1.24, because it supports multiple developers using a single install (we used to use tomcat 3. The guy who set that up is As an aside, for development I strongly suggest each developer have a completely separate tomcat installation. It doesn't cost you any money, doesn't take much space nor time to install, and can save a lot of headaches. Tomcat runs fine using my own specific CATALINA_BASE, but as soon as I put in my own war file into the $CATALINA_BASE/webapps, I can't get it to start. Is the war packed? Does the server.xml have unpackWARs=true? I'm NOT running startup.sh with the '-security' flag, but these are my (edited) error messages: java.security.AccessControlException: access denied (java.io.FilePermission /tmp/giera_l/tomcat/webapps/vpp/WEB-INF /classes/my/package/uk/vportal/service/frontend/ServiceManager.class read) at java.security.AccessControlContext.checkPermission(AccessControlContext .jav a:272) at java.security.AccessController.checkPermission(AccessController.java:39 9) at java.lang.SecurityManager.checkPermission(SecurityManager.java:545) Something is starting the security manager... ;) Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problems starting Tomcat from CD
Howdy, ContextConfig[/applicator]: Exception processing JAR at resource path /WEB-INF/lib/servlets-common.jar javax.servlet.ServletException: Exception processing JAR at resource path /WEB-INF/lib/servlets-common.jar at org.apache.catalina.startup.ContextConfig.tldScanJar(ContextConfig.java : 930) Look at the relevant code: http://cvs.apache.org/viewcvs/jakarta-tomcat-4.0/catalina/src/share/org/ apache/catalina/startup/ContextConfig.java?rev=1.67content-type=text/vn d.viewcvs-markup Our question is: Can we prevent Tomcat from trying to write onto CD while processing the JAR? And how? Also interesting for us: What does Tomcat do while processing JARs? It's open source ;) Take a look, same URL as above. Our second problem is sessions: StandardManager[/applicator]: IOException while saving persisted sessions: java.io.FileNotFoundException: Z:\webserver\work\Standalone\localhost\applicator\SESSIONS.ser (Zugriff verweigert) at java.io.FileOutputStream.open(Native Method) [... more tracing information ...] You can use the pathname attribute to set where the sessions are saved: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/manager.html#Rest art%20Persistence Or you can wrap StandardManager in your own implementation, overriding the sessions saving/restoring (thereby breaking parts of the Servlet Specification possibly), and delegating the rest to the StandardManager. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Fw: getting a reply like this.
Because the postmaster at logicaonline.com has blacklisted hotmail.com. The postmaster at logicaonline.com has nothing to do with the list, but someone at logicaonline.com has subscribed to the list, so every time you post, they get a copy of your post, which is rejected because the postmaster is basically an idiot. John On Wed, 18 Jun 2003 14:31:21 +0530, anto paul [EMAIL PROTECTED] wrote: When I post to this mailing list I am getting the following reply. Why I am getting this. Any one else get this ? - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 1:55 PM Subject: RE: How to stop execution of infinite loop in Tomcat ? Dear [EMAIL PROTECTED], Your recent message to this server regarding `How to stop execution of infinite loop in Tomcat ?` was not delivered. Your address is listed in one or more suppression files on this server or your account is configured to allow local mail traffic only. Please contact the postmaster at this domain if additional information is required. Thank you, [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Fw: getting a reply like this.
Because the postmaster at logicaonline.com has blacklisted hotmail.com. The postmaster at logicaonline.com has nothing to do with the list, but someone at logicaonline.com has subscribed to the list, so every time you post, they get a copy of your post, which is rejected because the postmaster is basically an idiot. John On Wed, 18 Jun 2003 14:31:21 +0530, anto paul [EMAIL PROTECTED] wrote: When I post to this mailing list I am getting the following reply. Why I am getting this. Any one else get this ? - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 1:55 PM Subject: RE: How to stop execution of infinite loop in Tomcat ? Dear [EMAIL PROTECTED], Your recent message to this server regarding `How to stop execution of infinite loop in Tomcat ?` was not delivered. Your address is listed in one or more suppression files on this server or your account is configured to allow local mail traffic only. Please contact the postmaster at this domain if additional information is required. Thank you, [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Email Problem
Hi Yoav, Thank you so much for your interest, sorry to bother the list. Unfortunately, I have managed this problem by sending email via an autheticated connection to another email server. The environment which the problem occurs, includes an email server works for our web applicaitons and allows a few hosts to send relay mail. the answer of your questions are yes. I am still searching for this problem. If anything comes to your attention, it would be great to hear from you. Many thanks, Ozgur .. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 4:00 PM To: Tomcat Users List Subject: RE: Email Problem Howdy, This clearly seems like a BugParade issue, so this is not the list for it. But as always I'm curious: is this a multi-homed system? A multi-NIC system? Yoav Shapira Millennium ChemInformatics -Original Message- From: Ozgur [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 6:10 AM To: [EMAIL PROTECTED] Subject: Email Problem Hi Everyone, Has any one face with a problem seen below: # java.lang.NullPointerException at java.net.InetAddress.cacheAddress(InetAddress.java:648) at java.net.InetAddress.cacheAddress(InetAddress.java:633) at java.net.InetAddress.getAddressFromNameService(InetAddress.java:1016) at java.net.InetAddress.getLocalHost(InetAddress.java:1125) at javax.mail.internet.InternetAddress.getLocalAddress(InternetAddress.jav a :472) at javax.mail.internet.UniqueValue.getUniqueMessageIDValue(UniqueValue.jav a :70) at javax.mail.internet.MimeMessage.updateHeaders(MimeMessage.java:1843) at javax.mail.internet.MimeMessage.saveChanges(MimeMessage.java:1822) at email.EmailApp.send(EmailApp.java:187) # Previous environment Tomcat 3.x, Apache 1.3.x, Mod_jk j2sdk1.3 After migration environment Tomcat 4.1.24 Apache 2.0.45 Mod_jk2 J2sdk1.4.x The email server is qmail and there has been no changes on the server. Thanks in advance, Ozgur Kocak - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Host Setup - (The Default Tomcat Page is Stalking Me)
First, let me say that this is the first time, ever, in my checkered I.T. past, that I have encountered someone else who uses booga. I'm cracking up over here. I actually use ooga booga, but still, its fun to see. What you're experiencing is most likely due to the fact that both of your Hosts (localhost and mydomain.com) are using the same appBase. You've got two separate Hosts using the same appBase, but in one the path of = ROOT and in the other = booga. Maybe it should work, but in the interestes of getting you going, I would suggest either moving mydomain.com's appBase to some other location, or removing the Host definition for mydomain.com entirely and simply aliasing mydomain.com to localhost like this: Host name=localhost blah blah blah Aliasmydomain.com/Alias Context blah blah blah /Host appBase and docBase can be anywhere. John On Tue, 17 Jun 2003 16:18:44 -0700, Paul Hepworth [EMAIL PROTECTED] wrote: Hello, Recently I setup mod_jk to try to get Tomcat to play with Apache. I created a new Host with my domain name. When I point my browser to http://mydomain.com it redirects to the default Tomcat page that normally runs on http://localhost:8080; right after installation only all of the images are missing. I have a webapp named booga in the webapps directory. I have checked the logs and my booga logs are complaining of missing images (/tomcat-power.gif and /jakarta-banner.gif). Also if I go to http://www.mydomain.com:8080/booga/; it works fine. I have played with this for a long time and need some objective eyes... can anyone see anything wrong with my configuration below to shed some light for me Thanks much, Paul Here are my configuration file entries: server.xml: -- !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 USED -- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8009 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=0 useURIValidationHack=false protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/ Host name=mydomain.com debug=0 appBase=webapps unpackWARs=true autoDeploy=true Context path= docBase=booga debug=0/ Aliaswww.mydomain.com/Alias /Host workers.properties: -- worker.list=booga #worker booga worker.booga.port=8009 worker.booga.host=localhost worker.booga.type=ajp13 httpd.conf (virtualhost config) --- VirtualHost my.ip.add.ress ServerAdmin [EMAIL PROTECTED] DocumentRoot /usr/local/tomcat/webapps/booga ServerName www.mydomain.com ServerAlias mydomain.com ErrorLog /var/log/apache/booga-error_log CustomLog /var/log/apache/booga-access_log combined IfModule mod_jk.c JkWorkersFile /usr/local/tomcat/conf/workers.properties JkMount /*.jsp booga JkMount /servlet/* booga JkLogFile /var/log/apache/mod_jk.log-booga JkLogLevel debug JkLogStampFormat [%a %b %d %H:%M:%S %Y] JkOptions +ForwardDirectories /IfModule My Version Configuration -- jakarta-tomcat-4.1.24 j2sdk1.4.1_02 Apache/1.3.26 mod_jk - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Precompiling JSPs
Andoni, I do this in Sun One Studio, where I do all my Java development. You can compile JSPs just as you can compile java source. Andy -Original Message- From: Andoni [mailto:[EMAIL PROTECTED] Sent: 18 June 2003 10:25 To: Tomcat Users List Subject: Precompiling JSPs Hello, I have a build.cmd file that I have had and modified for every project I've done for years. I should probably go learn ANT or some other build technique but for now I want to do this the command line way. I'm not even sure if ANT will do what I want. I want to have my .jsp files made into .java files (easy) then compiled into .class files (hard) before starting my Tomcat. That way I can see any syntax errors in my .jsp files. If I do this at the moment I get a load of errors where one JSP which is included in another uses variables which are only declared in the major one. Is there a way to compile the .java files the way Tomcat does (which takes account of included .jsp's)? Does ANT create .class files? Thanks in advance. Andoni. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: getting a reply like this.
Anto, When you post to this list, the mail gets distributed to various subscribers, some of whom are behind companies anti-spam filters that range from crap to fuxxing useless. These antispam filters all seem to be poorly written and poorly configured, so that they allow in most spam but reject most legitimate mail. When they decide that your message is spam (eg you wrote something like thread xxx has terminated), they send you a message, that they somehow think doesn't constitute spam, back to you to inform you that you are the lowest form of low-life on the planet, even though you may have been actively trying to help one of their employees for free... In fact, these anti-spam filters send me more unwanted mail than do spammers. Rest assured that the annoying message is coming from individual recipients of the list, and not the list itself. Most subscribers will have received the message gracefully and not questioned your legitimacy to exist :-) All the best, Andy -Original Message- From: anto paul [mailto:[EMAIL PROTECTED] Sent: 18 June 2003 10:01 To: tomcat mail list Subject: Fw: getting a reply like this. When I post to this mailing list I am getting the following reply. Why I am getting this. Any one else get this ? - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 1:55 PM Subject: RE: How to stop execution of infinite loop in Tomcat ? Dear [EMAIL PROTECTED], Your recent message to this server regarding `How to stop execution of infinite loop in Tomcat ?` was not delivered. Your address is listed in one or more suppression files on this server or your account is configured to allow local mail traffic only. Please contact the postmaster at this domain if additional information is required. Thank you, [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Precompiling JSPs
You should read up on the JspC task: http://ant.apache.org/manual/OptionalTasks/jspc.html The JspC task will compile your jsp file to a java servlet (.java) file. Then you can run javac/ to get your class files. You will need to download the jasper-compiler.jar and jasper-runtime.jar files. I currently do this in ant: Here is what my project for compiling my jsps looks like: project name=PW_JSPS default=build basedir=. target name=build property name=JSP_ROOT value=${WEB_MAIN}/src/java/jsp/ property name=JSP2JAVA_DIR value=${WEB_OUT}/jsp2java/ mkdir dir=${JSP2JAVA_DIR}/ echo message=*** / echo message=Building\Compiling JSP files: / echo message=*** / jspc srcdir=${JSP_ROOT} destdir=${JSP2JAVA_DIR} uriroot=${JSP_ROOT} package=com.myproj.web.jsp verbose=9 webinc=${JSP2JAVA_DIR}/generated_webxml_snippet.xml include name=**/*.jsp / classpath id=jsp_classpath pathelement path=${env.CLASSPATH}/ path refid=classpath/ pathelement location=${TOMCAT_SOURCE}common/lib/jasper-compiler.jar/ pathelement location=${TOMCAT_SOURCE}common/lib/jasper-runtime.jar/ /classpath /jspc javac srcdir=${JSP2JAVA_DIR} destdir=${WEB_OUT} includes=**/*.java listfiles=yes debug=${turn_on_debug} classpathref=jsp_classpath / /target /project -Original Message- From: Andy Eastham [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 10:37 AM To: Tomcat Users List Subject: RE: Precompiling JSPs Andoni, I do this in Sun One Studio, where I do all my Java development. You can compile JSPs just as you can compile java source. Andy -Original Message- From: Andoni [mailto:[EMAIL PROTECTED] Sent: 18 June 2003 10:25 To: Tomcat Users List Subject: Precompiling JSPs Hello, I have a build.cmd file that I have had and modified for every project I've done for years. I should probably go learn ANT or some other build technique but for now I want to do this the command line way. I'm not even sure if ANT will do what I want. I want to have my .jsp files made into .java files (easy) then compiled into .class files (hard) before starting my Tomcat. That way I can see any syntax errors in my .jsp files. If I do this at the moment I get a load of errors where one JSP which is included in another uses variables which are only declared in the major one. Is there a way to compile the .java files the way Tomcat does (which takes account of included .jsp's)? Does ANT create .class files? Thanks in advance. Andoni. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat - PERL problem.
Dear all, I'm currently having this strange problem with Tomcat 4.0.3 (running on Solaris) and a CGI program written in PERL. The program outputs some HTML lines, and everything goes OK until the HTML page is small. When the page grows up, i.e inserting SELECT field with 100 options, Tomcat stops responding. The UNIX ps command shows: user1 12838 12310 0 16:14:45 pts/50:00 /usr/local/bin/perl /usr/local/jakarta-tomcat-4.0.3/webapps/my_app/WEB-INF/ user1 12464 12310 0 14:34:56 pts/50:00 /usr/local/bin/perl /usr/local/jakarta-tomcat-4.0.3/webapps/my_app/WEB-INF/ Those processes don't stop running until killed. Any help? Thanks in advance. Tito. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat - PERL problem.
Without seeing the code that is running forever, it's almost impossible to tell. I have seen the running forever if you call perl without a script name on the command line. When called without a script, the perl executable waits for the script on STDIN. G. Wade tito santini wrote: Dear all, I'm currently having this strange problem with Tomcat 4.0.3 (running on Solaris) and a CGI program written in PERL. The program outputs some HTML lines, and everything goes OK until the HTML page is small. When the page grows up, i.e inserting SELECT field with 100 options, Tomcat stops responding. The UNIX ps command shows: user1 12838 12310 0 16:14:45 pts/50:00 /usr/local/bin/perl /usr/local/jakarta-tomcat-4.0.3/webapps/my_app/WEB-INF/ user1 12464 12310 0 14:34:56 pts/50:00 /usr/local/bin/perl /usr/local/jakarta-tomcat-4.0.3/webapps/my_app/WEB-INF/ Those processes don't stop running until killed. Any help? Thanks in advance. Tito. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problems with XML parsers and webapps
All, Our webapp was built to use the Xerces xml parser. I'm trying to update our JDK and tomcat version to do testing for a production level upgrade. I'm running into problems with the JVM using the Crimson parse. The crimson parser does not agree with our XML files. Does anyone know how to disable the crimson parser that is bundled with JDK 1.4? Would using the non-LE version of tomcat help resolve this problem? thanks, -- Jared Walker [EMAIL PROTECTED] ClickFind - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Best versions - of Tomcat to run with apache
Hi, Can anybody tell me the best version of Tomcat that will run with apache using say mod_jk or mod_jk2. Thanks Kevin Passey Tel +44(0)1273 712830 http://www.kdpsoftware.co.uk http://www.freeas400software.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
NoClassDefFoundError
I'm getting the exception below, however the class that it's saying it cannot find is in the WEB-INF/classes/com/valpak/j2ee/logicalresourcemapping directory for the webapp that's throwing the exception. Is there something special I need to do to get the webapp to look there to find the class? === root cause java.lang.NoClassDefFoundError: com/valpak/j2ee/logicalresourcemapping/InvalidLogicalResourceMappingException at com.valpak.fhp.FHPReportController.processRequest(FHPReportController.java:37) at com.valpak.j2ee.Controller.doGet(Controller.java:23) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) 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.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:223) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106) at java.lang.Thread.run(Thread.java:536) -- Bob Damato [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Best versions - of Tomcat to run with apache
Howdy, The latest stable release, 4.1.24. Yoav Shapira Millennium ChemInformatics -Original Message- From: Kevin Passey [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 11:14 AM To: Tomcat (E-mail) Subject: Best versions - of Tomcat to run with apache Hi, Can anybody tell me the best version of Tomcat that will run with apache using say mod_jk or mod_jk2. Thanks Kevin Passey Tel +44(0)1273 712830 http://www.kdpsoftware.co.uk http://www.freeas400software.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: NoClassDefFoundError
Howdy, tired-mantra-repeating-voice NoClassDefFoundError is not the same as ClassNotFoundException. Read the JavaDocs for both. Search the archives of this list for other people's experiences with this error. /tired-mantra-repeating-voice Yoav Shapira Millennium ChemInformatics -Original Message- From: Bob Damato [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 11:14 AM To: [EMAIL PROTECTED] Subject: NoClassDefFoundError I'm getting the exception below, however the class that it's saying it cannot find is in the WEB-INF/classes/com/valpak/j2ee/logicalresourcemapping directory for the webapp that's throwing the exception. Is there something special I need to do to get the webapp to look there to find the class? === root cause java.lang.NoClassDefFoundError: com/valpak/j2ee/logicalresourcemapping/InvalidLogicalResourceMappingExc epti on at com.valpak.fhp.FHPReportController.processRequest(FHPReportController.j ava: 37) at com.valpak.j2ee.Controller.doGet(Controller.java:23) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic atio nFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil terC hain.java:193) at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorF ilte r.java:223) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic atio nFilterChain.java:213) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil terC hain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVal ve.j ava:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j ava: 566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextVal ve.j ava:201) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j ava: 566) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.j ava: 246) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j ava: 564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:23 44) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.jav a:16 4) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j ava: 566) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherV alve .java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j ava: 564) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.jav a:17 0) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j ava: 564) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:46 2) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j ava: 564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve .jav a:163) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j ava: 566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor. java :1011) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java :110 6) at java.lang.Thread.run(Thread.java:536) -- Bob Damato [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:
Off topic / webapp listener
Hi list, Does anyone know about a resource how to write webapp listeners? Regards, Christian Schuster Rudolf Schuster AG Postfach 277 CH - 3000 Bern 11 http://www.rsag.ch ++41 31 348 05 30 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Off topic / webapp listener
Howdy, They're usually very simple to write: the JavaDocs are clear. If you have a specific design goal and are not sure how best to implement it, feel free to share and I'm sure you'll get a ton of advice ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 11:16 AM To: [EMAIL PROTECTED] Subject: Off topic / webapp listener Hi list, Does anyone know about a resource how to write webapp listeners? Regards, Christian Schuster Rudolf Schuster AG Postfach 277 CH - 3000 Bern 11 http://www.rsag.ch ++41 31 348 05 30 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Best versions - of Tomcat to run with apache
Hi Yoav, I know that - I want to load it on a RH7.2 box with apache using mod_jk or 2. Have you ever configured tomcat to run in-process with apache. All you do is start apache and it calls tomcat when and if it needs it. I'm on the verge of getting the latest 4.1.24 rpms and the latest apache2 rpms and just installing the whole lot. What I wondered was - if there were ony compatibility issues between tomcat(latest) and apache2 running mod_jk2. Thanks anyway + regards Kevin -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: 18 June 2003 16:14 To: Tomcat Users List Subject: RE: Best versions - of Tomcat to run with apache Howdy, The latest stable release, 4.1.24. Yoav Shapira Millennium ChemInformatics -Original Message- From: Kevin Passey [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 11:14 AM To: Tomcat (E-mail) Subject: Best versions - of Tomcat to run with apache Hi, Can anybody tell me the best version of Tomcat that will run with apache using say mod_jk or mod_jk2. Thanks Kevin Passey Tel +44(0)1273 712830 http://www.kdpsoftware.co.uk http://www.freeas400software.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 5 limits the number of jars ???
I noticed a problem when deploying my webapp under Tomcat 5, about the number of jars in the lib dir of my webapp. Unfortunately I can't easily reproduce the problem, but it seems that if the number of jar files exceeds 10-15, Tomcat fails to compile JSP pages (!!!) and produces a message regarding an unknown flag to the javac compiler c:\Program. It seems to be a bit of the directory where it is installed (c:\Program Files\Apache Software Foundation\Tomcat5) Does anyone had the same problem ? Better write to tomcat-dev ?? Thanks Renato Renato Romano Sistemi e Telematica S.p.A. Calata Grazie - Vial Al Molo Giano 16127 - GENOVA e-mail: [EMAIL PROTECTED] Tel.: 010 2712603 _ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Best versions - of Tomcat to run with apache
Howdy, I did the standard apache2 - tomcat mod_jk configuration once, just to try it out. But I run tomcat standalone, including in production, as I find its performance more than adequate and don't need any apache features. Yoav Shapira Millennium ChemInformatics -Original Message- From: Kevin Passey [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 11:27 AM To: 'Tomcat Users List' Subject: RE: Best versions - of Tomcat to run with apache Hi Yoav, I know that - I want to load it on a RH7.2 box with apache using mod_jk or 2. Have you ever configured tomcat to run in-process with apache. All you do is start apache and it calls tomcat when and if it needs it. I'm on the verge of getting the latest 4.1.24 rpms and the latest apache2 rpms and just installing the whole lot. What I wondered was - if there were ony compatibility issues between tomcat(latest) and apache2 running mod_jk2. Thanks anyway + regards Kevin -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: 18 June 2003 16:14 To: Tomcat Users List Subject: RE: Best versions - of Tomcat to run with apache Howdy, The latest stable release, 4.1.24. Yoav Shapira Millennium ChemInformatics -Original Message- From: Kevin Passey [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 11:14 AM To: Tomcat (E-mail) Subject: Best versions - of Tomcat to run with apache Hi, Can anybody tell me the best version of Tomcat that will run with apache using say mod_jk or mod_jk2. Thanks Kevin Passey Tel +44(0)1273 712830 http://www.kdpsoftware.co.uk http://www.freeas400software.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5 limits the number of jars ???
Howdy, For starters, try a clean installation into a directory without spaces in its name, e.g. c:\tomcat5. If that still doesn't work, try coming up with a method to reliably reproduce your error. Yoav Shapira Millennium ChemInformatics -Original Message- From: Renato Romano [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 11:36 AM To: 'Tomcat Users List' Subject: Tomcat 5 limits the number of jars ??? I noticed a problem when deploying my webapp under Tomcat 5, about the number of jars in the lib dir of my webapp. Unfortunately I can't easily reproduce the problem, but it seems that if the number of jar files exceeds 10-15, Tomcat fails to compile JSP pages (!!!) and produces a message regarding an unknown flag to the javac compiler c:\Program. It seems to be a bit of the directory where it is installed (c:\Program Files\Apache Software Foundation\Tomcat5) Does anyone had the same problem ? Better write to tomcat-dev ?? Thanks Renato Renato Romano Sistemi e Telematica S.p.A. Calata Grazie - Vial Al Molo Giano 16127 - GENOVA e-mail: [EMAIL PROTECTED] Tel.: 010 2712603 _ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Best versions - of Tomcat to run with apache
Hi, Yes I've done the apache/tomcat/mod_jk2 and it works fine. The reason I wanted to do this is because I was using nessus to scan my web server and it reports a vulnerability it TOMCAT 4.1.12 which allows someone to retrieve any file on your system by putting ../../ in front of the file name. It recommends to use another web server - yeah right - . So I thought if I put apache in front of it - running tomcat in process that would cure it. Thanks anyway. Kevin -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: 18 June 2003 16:29 To: Tomcat Users List Subject: RE: Best versions - of Tomcat to run with apache Howdy, I did the standard apache2 - tomcat mod_jk configuration once, just to try it out. But I run tomcat standalone, including in production, as I find its performance more than adequate and don't need any apache features. Yoav Shapira Millennium ChemInformatics -Original Message- From: Kevin Passey [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 11:27 AM To: 'Tomcat Users List' Subject: RE: Best versions - of Tomcat to run with apache Hi Yoav, I know that - I want to load it on a RH7.2 box with apache using mod_jk or 2. Have you ever configured tomcat to run in-process with apache. All you do is start apache and it calls tomcat when and if it needs it. I'm on the verge of getting the latest 4.1.24 rpms and the latest apache2 rpms and just installing the whole lot. What I wondered was - if there were ony compatibility issues between tomcat(latest) and apache2 running mod_jk2. Thanks anyway + regards Kevin -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: 18 June 2003 16:14 To: Tomcat Users List Subject: RE: Best versions - of Tomcat to run with apache Howdy, The latest stable release, 4.1.24. Yoav Shapira Millennium ChemInformatics -Original Message- From: Kevin Passey [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 11:14 AM To: Tomcat (E-mail) Subject: Best versions - of Tomcat to run with apache Hi, Can anybody tell me the best version of Tomcat that will run with apache using say mod_jk or mod_jk2. Thanks Kevin Passey Tel +44(0)1273 712830 http://www.kdpsoftware.co.uk http://www.freeas400software.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Log4J under two different webapps
Hi all Im using log4j in two webapps, which means Ive copied the log4j.jar into both WEB-INF/lib directory for each webapp. Im loading a log4j.xml for configuration from my webapp and this works great when I run the app from the command line using the tomcat startup scripts. I can vary the settings in each log4j.xml and see the effect shortly afterwards in my logs for that webapp. However, when I run tomcat under a debugger (ide) like Eclipse the behaviour is different. The logs work OK but if I modify one log4j.xml it affect BOTH webapps. Its like as if the classloader in tomcat is sharing the log4j.jar file? Anybody have any idea why this would happen under an IDE? It was also observed under Visual Café Expert edition so its not just an Eclipse problem. Im using Tomcat 4.1.18 and JDK 1.4.1_02-b06 but weve noticed this same problem with older tomcats and JDKs. Thanks for any help Donie ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
prompting for password at tomcat startup
Hello - I have an SSL enabled system I am deploying using tomcat, and I would like to prompt the user for a password to open up an encrypted file. What is the easiest way to do this using tomcat 4.1.24 ? thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: NoClassDefFoundError
Sorry, I tried to jump in before you did, save you the trouble, but I was too late. LOL John On Wed, 18 Jun 2003 11:19:25 -0400, Shapira, Yoav [EMAIL PROTECTED] wrote: Howdy, tired-mantra-repeating-voice NoClassDefFoundError is not the same as ClassNotFoundException. Read the JavaDocs for both. Search the archives of this list for other people's experiences with this error. /tired-mantra-repeating-voice Yoav Shapira Millennium ChemInformatics -Original Message- From: Bob Damato [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 11:14 AM To: [EMAIL PROTECTED] Subject: NoClassDefFoundError I'm getting the exception below, however the class that it's saying it cannot find is in the WEB-INF/classes/com/valpak/j2ee/logicalresourcemapping directory for the webapp that's throwing the exception. Is there something special I need to do to get the webapp to look there to find the class? === root cause java.lang.NoClassDefFoundError: com/valpak/j2ee/logicalresourcemapping/InvalidLogicalResourceMappingExc epti on at com.valpak.fhp.FHPReportController.processRequest(FHPReportController.j ava: 37) at com.valpak.j2ee.Controller.doGet(Controller.java:23) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic atio nFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil terC hain.java:193) at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorF ilte r.java:223) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic atio nFilterChain.java:213) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil terC hain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVal ve.j ava:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j ava: 566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextVal ve.j ava:201) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j ava: 566) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.j ava: 246) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j ava: 564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:23 44) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.jav a:16 4) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j ava: 566) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherV alve .java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j ava: 564) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.jav a:17 0) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j ava: 564) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:46 2) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j ava: 564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve .jav a:163) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j ava: 566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor. java :1011) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java :110 6) at java.lang.Thread.run(Thread.java:536) -- Bob Damato [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your
Re: Problems with XML parsers and webapps
hi, if you are using the latest tomcat then you will find an endorsed dir in there for example. jakarta-tomcat-4.1.24/common/endorsed/ this should be containing xercesImpl.jar and xmlParserAPIs.jar. i guess this should solve your problem. bye. On Wed, 2003-06-18 at 20:37, Jared Walker wrote: All, Our webapp was built to use the Xerces xml parser. I'm trying to update our JDK and tomcat version to do testing for a production level upgrade. I'm running into problems with the JVM using the Crimson parse. The crimson parser does not agree with our XML files. Does anyone know how to disable the crimson parser that is bundled with JDK 1.4? Would using the non-LE version of tomcat help resolve this problem? thanks, - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Best versions - of Tomcat to run with apache
I wouldn't use any of the RPMs, if I were you. But that's just me. My HOWTO is for RH 7.2, everything you need step by step (for mod_jk, anyway): http://www.johnturner.com/howto. The Apache and Tomcat versions are a little old, but that's irrelevant, the instructions are the same. Don't use the RPMs unless you know what they're doing to your system, we see posts on the list from people who install the RPMs but then have problems running start up scripts, etc. In my mind, using the steps in my HOWTO is easier than installing RPMs, and you get a more modular installation of both Apache and Tomcat. There are no combatibility issues with Apache and Tomcat and either JK or JK2. John On Wed, 18 Jun 2003 16:26:50 +0100, Kevin Passey [EMAIL PROTECTED] wrote: Hi Yoav, I know that - I want to load it on a RH7.2 box with apache using mod_jk or 2. Have you ever configured tomcat to run in-process with apache. All you do is start apache and it calls tomcat when and if it needs it. I'm on the verge of getting the latest 4.1.24 rpms and the latest apache2 rpms and just installing the whole lot. What I wondered was - if there were ony compatibility issues between tomcat(latest) and apache2 running mod_jk2. Thanks anyway + regards Kevin -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: 18 June 2003 16:14 To: Tomcat Users List Subject: RE: Best versions - of Tomcat to run with apache Howdy, The latest stable release, 4.1.24. Yoav Shapira Millennium ChemInformatics -Original Message- From: Kevin Passey [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 11:14 AM To: Tomcat (E-mail) Subject: Best versions - of Tomcat to run with apache Hi, Can anybody tell me the best version of Tomcat that will run with apache using say mod_jk or mod_jk2. Thanks Kevin Passey Tel +44(0)1273 712830 http://www.kdpsoftware.co.uk http://www.freeas400software.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
ClassLoad diagnostic JSP
Hi list, I was struggeling already many times with class loading (NoClassDefFoundErr) issues due to company history. So I wrote a JSP which tells which class are loaded from where. It also looks inside of jar files. Feel free to use and edit it the to met your needs. I just do not guarantee for corectness due I am not an expert in class loading. But for me it works great and helped me already many times. I attached a zip file containig the JSP. In case the zip goes not through the mail list you also can download it from http://www.urbaplan.com/ClassLoad.zip Regards, Christian Schuster Rudolf Schuster AG Postfach 277 CH - 3000 Bern 11 http://www.rsag.ch ++41 31 348 05 30 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Best versions - of Tomcat to run with apache
I've never heard of that vulnerability. Have you tried it? Have you checked the security lists to confirm? If memory serves, it wasn't known as of 4.1.18 when the Apache Tomcat Security Handbook from Wrox Press was published. John On Wed, 18 Jun 2003 16:37:22 +0100, Kevin Passey [EMAIL PROTECTED] wrote: Hi, Yes I've done the apache/tomcat/mod_jk2 and it works fine. The reason I wanted to do this is because I was using nessus to scan my web server and it reports a vulnerability it TOMCAT 4.1.12 which allows someone to retrieve any file on your system by putting ../../ in front of the file name. It recommends to use another web server - yeah right - . So I thought if I put apache in front of it - running tomcat in process that would cure it. Thanks anyway. Kevin -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: 18 June 2003 16:29 To: Tomcat Users List Subject: RE: Best versions - of Tomcat to run with apache Howdy, I did the standard apache2 - tomcat mod_jk configuration once, just to try it out. But I run tomcat standalone, including in production, as I find its performance more than adequate and don't need any apache features. Yoav Shapira Millennium ChemInformatics -Original Message- From: Kevin Passey [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 11:27 AM To: 'Tomcat Users List' Subject: RE: Best versions - of Tomcat to run with apache Hi Yoav, I know that - I want to load it on a RH7.2 box with apache using mod_jk or 2. Have you ever configured tomcat to run in-process with apache. All you do is start apache and it calls tomcat when and if it needs it. I'm on the verge of getting the latest 4.1.24 rpms and the latest apache2 rpms and just installing the whole lot. What I wondered was - if there were ony compatibility issues between tomcat(latest) and apache2 running mod_jk2. Thanks anyway + regards Kevin -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: 18 June 2003 16:14 To: Tomcat Users List Subject: RE: Best versions - of Tomcat to run with apache Howdy, The latest stable release, 4.1.24. Yoav Shapira Millennium ChemInformatics -Original Message- From: Kevin Passey [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 11:14 AM To: Tomcat (E-mail) Subject: Best versions - of Tomcat to run with apache Hi, Can anybody tell me the best version of Tomcat that will run with apache using say mod_jk or mod_jk2. Thanks Kevin Passey Tel +44(0)1273 712830 http://www.kdpsoftware.co.uk http://www.freeas400software.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problems with XML parsers and webapps
Read the very bottom of this doc: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html -Original Message- From: Jared Walker [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 10:08 AM To: Tomcat Users List Subject: Problems with XML parsers and webapps All, Our webapp was built to use the Xerces xml parser. I'm trying to update our JDK and tomcat version to do testing for a production level upgrade. I'm running into problems with the JVM using the Crimson parse. The crimson parser does not agree with our XML files. Does anyone know how to disable the crimson parser that is bundled with JDK 1.4? Would using the non-LE version of tomcat help resolve this problem? thanks, -- Jared Walker [EMAIL PROTECTED] ClickFind - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat Class Loader (parent/child tree)
All, Just to let you know that I found out what caused the ClassNotFoundException problem. I found the answer in the release notes of Tomcat 4.0.6. It says the following: Tomcat 4.0 and Sun JDK 1.4 beta 3 Some unpredictable classloading behaviour has been reported when Tomcat is used with Sun JDK 1.4 beta 3. The problem has been fixed with Sun JDK 1.4 Release Candidate or later. I was using Sun JDK 1.4.0_01-b3 together with Tomcat 4.0.3 (which did not give me any problems) and with Tomcat 4.1.24 (which continuously gave me ClassNotFoundExceptions when retrieving BLOBs from the MySQL database). Regards, Guus - Original Message - From: Guus Holshuijsen [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, June 17, 2003 4:47 PM Subject: Re: Tomcat Class Loader (parent/child tree) Julien, The tomcat documentation also mentions: As mentioned above, the web application class loader diverges from the default Java 2 delegation model (in accordance with the recommendations in the Servlet Specification, version 2.3, section 9.6). When a request to load a class from the web application's WebappX class loader is processed, this class loader will look in the local repostories FIRST, instead of delegating before looking. All other class loaders in Tomcat 4 follow the usual delegation pattern. Therefor I don't think there is any contradiction. The Class loader HOWTO is pretty interesting to read especially when all sections are read. I had to spend several days on a class loading problem and asked for help before somebody pointed me at this howto and adviced me to read it. ;-) Regards, Guus - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 17, 2003 3:50 PM Subject: Tomcat Class Loader (parent/child tree) Hello, According to the tomcat documentation: Normally, when a class loader is asked to load a particular class or resource, it delegates the request to a parent class loader first, and then looks in its own repositories only if the parent class loader(s) cannot find the requested class or resource. From what I understand from the documentation, the common/lib directory is a parent to the webapp1/lib directory and therefore according to the preceding quote, Tomcat should look first in common/lib and THEN in webapp1/lib. I tried putting two identically-named classes in the common/lib directory and in the webapp1/lib. My jsp uses the class loaded from webapp1/lib and not the class loaded from common/lib. Is this not contradictory?? Julien. - Sent using MailStart.com ( http://MailStart.Com/welcome.html ) The FREE way to access your mailbox via any web browser, anywhere! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
context.xml question
Three questions here: Can the docBase attribute of the context element be relative? The location of the docBase will be different depending on where I am deploying to. Given mywebapp/META-INF/context.xml, the document root will always be two directories up from the context.xml file. Could this be done? Is there a better way of managing this? On a seperate note, when installing a war file using the catalina ant task, should tomcat automatically look in the META-INF directory of the war file for a context.xml file? I have not been able to get this to work. I wound up specifing both the config file as well as the war file in the install task. Is this how it is supposed to work? If your set the reloadable attribute of the context element to true, do you still need to use the ant reload task to pick up your changes? Regards, Joshua Context path=/mywebapp crossContext=true reloadable=true useNaming=true debug=5 swallowOutput=false docBase=C:\projects\mywebapp\build cookies=true cachingAllowed=true charsetMapperClass=org.apache.catalina.util.CharsetMapper ... /context This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return email and delete this communication and destroy all copies. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: context.xml question
On Wed, 18 Jun 2003 12:32:00 -0400, White, Joshua A (HTSC, CASD) [EMAIL PROTECTED] wrote: Can the docBase attribute of the context element be relative? The location of the docBase will be different depending on where I am deploying to. Given mywebapp/META-INF/context.xml, the document root will always be two directories up from the context.xml file. Could this be done? Is there a better way of managing this? See the admin.xml and manager.xml files that come with a Tomcat installation. John - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Best versions - of Tomcat to run with apache
John thanks for that - I think it is about time I upgraded anyway. I have tried it and it comes up with a blank page in the editor - so I'm not too worried. Would you say it was better to run tomcat behind apache - the server in question only runs JSP all my static stuff is served by my ISP. I would not prefer the hassle of plugging in apache if I don't have to. Regards Kevin -Original Message- From: John Turner [mailto:[EMAIL PROTECTED] Sent: 18 June 2003 17:14 To: Tomcat Users List Subject: Re: Best versions - of Tomcat to run with apache I've never heard of that vulnerability. Have you tried it? Have you checked the security lists to confirm? If memory serves, it wasn't known as of 4.1.18 when the Apache Tomcat Security Handbook from Wrox Press was published. John On Wed, 18 Jun 2003 16:37:22 +0100, Kevin Passey [EMAIL PROTECTED] wrote: Hi, Yes I've done the apache/tomcat/mod_jk2 and it works fine. The reason I wanted to do this is because I was using nessus to scan my web server and it reports a vulnerability it TOMCAT 4.1.12 which allows someone to retrieve any file on your system by putting ../../ in front of the file name. It recommends to use another web server - yeah right - . So I thought if I put apache in front of it - running tomcat in process that would cure it. Thanks anyway. Kevin -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: 18 June 2003 16:29 To: Tomcat Users List Subject: RE: Best versions - of Tomcat to run with apache Howdy, I did the standard apache2 - tomcat mod_jk configuration once, just to try it out. But I run tomcat standalone, including in production, as I find its performance more than adequate and don't need any apache features. Yoav Shapira Millennium ChemInformatics -Original Message- From: Kevin Passey [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 11:27 AM To: 'Tomcat Users List' Subject: RE: Best versions - of Tomcat to run with apache Hi Yoav, I know that - I want to load it on a RH7.2 box with apache using mod_jk or 2. Have you ever configured tomcat to run in-process with apache. All you do is start apache and it calls tomcat when and if it needs it. I'm on the verge of getting the latest 4.1.24 rpms and the latest apache2 rpms and just installing the whole lot. What I wondered was - if there were ony compatibility issues between tomcat(latest) and apache2 running mod_jk2. Thanks anyway + regards Kevin -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: 18 June 2003 16:14 To: Tomcat Users List Subject: RE: Best versions - of Tomcat to run with apache Howdy, The latest stable release, 4.1.24. Yoav Shapira Millennium ChemInformatics -Original Message- From: Kevin Passey [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 11:14 AM To: Tomcat (E-mail) Subject: Best versions - of Tomcat to run with apache Hi, Can anybody tell me the best version of Tomcat that will run with apache using say mod_jk or mod_jk2. Thanks Kevin Passey Tel +44(0)1273 712830 http://www.kdpsoftware.co.uk http://www.freeas400software.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: context.xml question
Howdy, Can the docBase attribute of the context element be relative? The location Yes. It can be relative to the host's appBase or absolute. See the Context configuration reference. On a seperate note, when installing a war file using the catalina ant task, should tomcat automatically look in the META-INF directory of the war file for a context.xml file? I have not been able to get this to work. I wound up specifing both the config file as well as the war file in the install task. Is this how it is supposed to work? For now, yes. It's an open issue for enhancement that will probably be addressed in the near future. If your set the reloadable attribute of the context element to true, do you still need to use the ant reload task to pick up your changes? Depends on what the changes are; file modifications in WEB-INF/classes and WEB-INF/lib will trigger reloading. Again, see the configuration reference for the Context tag. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Host Setup - (The Default Tomcat Page is Stalking Me)
John, Thanks! I changes the appBase and it worked great! BTW - My good friend got me hooked on booga. I use too much myself. :) You got me to crack up too. :) Thanks again, Paul John Turner wrote: First, let me say that this is the first time, ever, in my checkered I.T. past, that I have encountered someone else who uses booga. I'm cracking up over here. I actually use ooga booga, but still, its fun to see. What you're experiencing is most likely due to the fact that both of your Hosts (localhost and mydomain.com) are using the same appBase. You've got two separate Hosts using the same appBase, but in one the path of = ROOT and in the other = booga. Maybe it should work, but in the interestes of getting you going, I would suggest either moving mydomain.com's appBase to some other location, or removing the Host definition for mydomain.com entirely and simply aliasing mydomain.com to localhost like this: Host name=localhost blah blah blah Aliasmydomain.com/Alias Context blah blah blah /Host appBase and docBase can be anywhere. John On Tue, 17 Jun 2003 16:18:44 -0700, Paul Hepworth [EMAIL PROTECTED] wrote: Hello, Recently I setup mod_jk to try to get Tomcat to play with Apache. I created a new Host with my domain name. When I point my browser to http://mydomain.com it redirects to the default Tomcat page that normally runs on http://localhost:8080; right after installation only all of the images are missing. I have a webapp named booga in the webapps directory. I have checked the logs and my booga logs are complaining of missing images (/tomcat-power.gif and /jakarta-banner.gif). Also if I go to http://www.mydomain.com:8080/booga/; it works fine. I have played with this for a long time and need some objective eyes... can anyone see anything wrong with my configuration below to shed some light for me Thanks much, Paul Here are my configuration file entries: server.xml: -- !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 USED -- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8009 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=0 useURIValidationHack=false protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/ Host name=mydomain.com debug=0 appBase=webapps unpackWARs=true autoDeploy=true Context path= docBase=booga debug=0/ Aliaswww.mydomain.com/Alias /Host workers.properties: -- worker.list=booga #worker booga worker.booga.port=8009 worker.booga.host=localhost worker.booga.type=ajp13 httpd.conf (virtualhost config) --- VirtualHost my.ip.add.ress ServerAdmin [EMAIL PROTECTED] DocumentRoot /usr/local/tomcat/webapps/booga ServerName www.mydomain.com ServerAlias mydomain.com ErrorLog /var/log/apache/booga-error_log CustomLog /var/log/apache/booga-access_log combined IfModule mod_jk.c JkWorkersFile /usr/local/tomcat/conf/workers.properties JkMount /*.jsp booga JkMount /servlet/* booga JkLogFile /var/log/apache/mod_jk.log-booga JkLogLevel debug JkLogStampFormat [%a %b %d %H:%M:%S %Y] JkOptions +ForwardDirectories /IfModule My Version Configuration -- jakarta-tomcat-4.1.24 j2sdk1.4.1_02 Apache/1.3.26 mod_jk - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Best versions - of Tomcat to run with apache
I would only use Apache if you had to...Tomcat should be fine for most uses. Better is relative. John On Wed, 18 Jun 2003 17:39:16 +0100, Kevin Passey [EMAIL PROTECTED] wrote: John thanks for that - I think it is about time I upgraded anyway. I have tried it and it comes up with a blank page in the editor - so I'm not too worried. Would you say it was better to run tomcat behind apache - the server in question only runs JSP all my static stuff is served by my ISP. I would not prefer the hassle of plugging in apache if I don't have to. Regards Kevin -Original Message- From: John Turner [mailto:[EMAIL PROTECTED] Sent: 18 June 2003 17:14 To: Tomcat Users List Subject: Re: Best versions - of Tomcat to run with apache I've never heard of that vulnerability. Have you tried it? Have you checked the security lists to confirm? If memory serves, it wasn't known as of 4.1.18 when the Apache Tomcat Security Handbook from Wrox Press was published. John On Wed, 18 Jun 2003 16:37:22 +0100, Kevin Passey [EMAIL PROTECTED] wrote: Hi, Yes I've done the apache/tomcat/mod_jk2 and it works fine. The reason I wanted to do this is because I was using nessus to scan my web server and it reports a vulnerability it TOMCAT 4.1.12 which allows someone to retrieve any file on your system by putting ../../ in front of the file name. It recommends to use another web server - yeah right - . So I thought if I put apache in front of it - running tomcat in process that would cure it. Thanks anyway. Kevin -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: 18 June 2003 16:29 To: Tomcat Users List Subject: RE: Best versions - of Tomcat to run with apache Howdy, I did the standard apache2 - tomcat mod_jk configuration once, just to try it out. But I run tomcat standalone, including in production, as I find its performance more than adequate and don't need any apache features. Yoav Shapira Millennium ChemInformatics -Original Message- From: Kevin Passey [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 11:27 AM To: 'Tomcat Users List' Subject: RE: Best versions - of Tomcat to run with apache Hi Yoav, I know that - I want to load it on a RH7.2 box with apache using mod_jk or 2. Have you ever configured tomcat to run in-process with apache. All you do is start apache and it calls tomcat when and if it needs it. I'm on the verge of getting the latest 4.1.24 rpms and the latest apache2 rpms and just installing the whole lot. What I wondered was - if there were ony compatibility issues between tomcat(latest) and apache2 running mod_jk2. Thanks anyway + regards Kevin -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: 18 June 2003 16:14 To: Tomcat Users List Subject: RE: Best versions - of Tomcat to run with apache Howdy, The latest stable release, 4.1.24. Yoav Shapira Millennium ChemInformatics -Original Message- From: Kevin Passey [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 11:14 AM To: Tomcat (E-mail) Subject: Best versions - of Tomcat to run with apache Hi, Can anybody tell me the best version of Tomcat that will run with apache using say mod_jk or mod_jk2. Thanks Kevin Passey Tel +44(0)1273 712830 http://www.kdpsoftware.co.uk http://www.freeas400software.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL
RE: context.xml question
Hi, I am having the same situation as Joshua, I have a W2k Server IIS5.0, Tomcat 4.0.6. I looked for admin.xml and manager.xml and those weren't in my installation. All I am trying to do is put my jsp file outside CATALINA_HOME/ (D:\Tomcat4) and put them in E:\webapps. I have tried to do it but it still hasn't worked. I've tried: Host name=mydomain.com debug=0 appBase=e:\webapps unpackWARs=true Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=mydomain_access. suffix=.log pattern=common/ Context path=/manager docBase=manager debug=0 privileged=true/ Context path=/examples docBase=examples reloadable=true crossContext=true and Host name=mydomain.com debug=0 appBase=webapps unpackWARs=true Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=mydomain_access. suffix=.log pattern=common/ Context path=/manager docBase=e:\webapps\manager debug=0 privileged=true/ Context path=/examples docBase=e:\webapps\examples reloadable=true crossContext=true I look forward for your comments. Regards. Jose Oyervides. -Original Message- From: John Turner [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 11:35 AM To: Tomcat Users List Subject: Re: context.xml question On Wed, 18 Jun 2003 12:32:00 -0400, White, Joshua A (HTSC, CASD) [EMAIL PROTECTED] wrote: Can the docBase attribute of the context element be relative? The location of the docBase will be different depending on where I am deploying to. Given mywebapp/META-INF/context.xml, the document root will always be two directories up from the context.xml file. Could this be done? Is there a better way of managing this? See the admin.xml and manager.xml files that come with a Tomcat installation. John - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: context.xml question
Howdy, I am having the same situation as Joshua, I have a W2k Server IIS5.0, Tomcat 4.0.6. I looked for admin.xml and manager.xml and those weren't in my installation. Those are tomcat 4.1 features, as is the whole context.xml approach. All I am trying to do is put my jsp file outside CATALINA_HOME/ (D:\Tomcat4) and put them in E:\webapps. I have tried to do it but it still hasn't worked. What errors do you get? Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: problems with web.xml and security
Thanks! The SingleSignOn valve works like a charm! -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Bill Barker Sent: Wednesday, June 18, 2003 1:02 AM To: [EMAIL PROTECTED] Subject: Re: problems with web.xml and security Now we are getting somewhere ;-). If you have a context with a path=/secure, then you need to set the security-constraint (including login-config) in that web.xml as you have except that you only need to have the url-pattern/*/url-pattern (since the url-pattern is relative to the context-path). Note that unless you enable the SingleSignOn Valve, your logins to '/' and to '/secure' won't transfer from one to the other. You'll have to login to each one seperately. Rosaria Silipo [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Jwsdp.log.date.txt does not report any error. I do not have catalina.out. Maybe I am using the wrong version of Tomcat? I think my problem is that /secure has its own web.xml that overrides the web.xml in /. How can I avoid that? -- Rosaria -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Bill Barker Sent: Tuesday, June 17, 2003 11:46 PM To: [EMAIL PROTECTED] Subject: Re: problems with web.xml and security servlet-mapping and mime-mapping are optional elements. If you don't need them, then they don't have to be there. If you remove the session-config, then the rest of what is posted of your web.xml is valid (even if the /secure/* is implied by the /*, but that shouldn't matter). I'm still going to guess that there are errors in your log files (esp. catalina.out) that will tell you more about the problem. If I'm wrong, then it sounds like it should be easy enough for you to strip down your app to something generic (e.g. I don't need to know anything about your proprietary Beans), and wrap it up in a war file (jar cf bug.war bugapp), and attach it to a bug report at http://nagoya.apache.org/bugzilla. Rosaria Silipo [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I am a bit confused. I do not have any servlet-mapping or mime-mapping (do I need them?) and I followed the order as it is in the tutorial. Even removing session-config, /secure/* is not authenticated and /* is. -- Rosaria -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Bill Barker Sent: Tuesday, June 17, 2003 8:16 PM To: [EMAIL PROTECTED] Subject: Re: problems with web.xml and security If you check your log files, you should see that it doesn't like your web.xml file because session-config comes after servlet-mapping and before mime-mapping (which both come before security-constraint). Tomcat 4.x is picky about enforcing the order of elements in your web.xml file (TC 3.3 is as well, at least by default). The result is that Tomcat stopped reading your file as soon as it got to the session-config line. Rosaria Silipo [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, I am trying to set up Tomcat as a secure web engine. From the tutorial I understood that you should insert the following lines in web.xml and the password protection should work. This works perfectly for files in the root directory (/*), it does not work for files in subdirectories, like /secure/*. Have you have ever seen this problem before? Thanks for any help -- Rosaria !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app ... !-- SECURITY CONSTRAINT -- security-constraint web-resource-collection web-resource-nameSecure Pages/web-resource-name descriptionSecurity constraint on all files/description url-pattern/*/url-pattern url-pattern/secure/*/url-pattern http-methodPOST/http-method http-methodGET/http-method /web-resource-collection auth-constraint descriptionadmin can login/description role-nameadmin/role-name /auth-constraint user-data-constraint descriptionSSL not required/description transport-guaranteeNONE/transport-guarantee /user-data-constraint /security-constraint session-config session-timeout30/session-timeout /session-config !-- LOGIN AUTHENTICATION -- login-config auth-methodFORM/auth-method realm-namedefault/realm-name form-login-config form-login-page/LoginForm.html/form-login-page form-error-page/LoginError.html/form-error-page /form-login-config /login-config !-- SECURITY ROLES -- security-role descriptionThe most secure role/description role-nameadmin/role-name /security-role /web-app -- Rosaria - To unsubscribe, e-mail: [EMAIL PROTECTED] For
Re: JSP Compiler output?
We seem to have been able to get the error stack traces by adding the init-param fork to the JSP servlet, with a value of false. Any idea why this works? Noel Noel Rappin wrote: There is a root cause, but it doesn't have the error info... java.lang.ClassNotFoundException: org.apache.jsp.foo_jsp at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:209) at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:131) at org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:497) at org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:150) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:195) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) I was also able to replicate Tim's stack trace on a windows machine... the relevant part is here.. at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:130) at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:293) at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:353) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:370) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:473) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:190) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) It looks like in Tim's case, the compilation called at JspServletWrapper:190 triggers an error, that my system is swallowing. My system apparently makes it to JspServletWrapper:195, where it then seems to be looking for the compiled jsp class file, which it's not finding -- only then does my system show the stack trace. The question, I guess, is why is my system swallowing the javac DefaultErrorHandler? I guess I'll dig into the code. Thanks, Noel Shapira, Yoav wrote: Howdy, This isn't the full stack trace: please post the full one with the Root Cause. Yoav Shapira Millennium ChemInformatics -Original Message- From: Noel Rappin [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 17, 2003 4:59 PM To: Tomcat Users List Subject: Re: JSP Compiler output? I replicated this experiment exactly in my environment. Tomcat 4.1.24, Linux, JSDK 1.4.1_01. Is it a Linux thing? Here's my stack trace in localhost: org.apache.jasper.JasperException: Unable to compile class for JSP at org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java :500 ) at org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrappe r.ja va:150) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.j ava: 195) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295 ) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) By the way, I really appreciate your time in helping with this. Noel Tim Funk wrote: You should get something somewhere. For example ... With 4.1.24 (win2k, jdk1.3, but 1.4 is the same result), I have a file called foo.jsp (at /) with the contents: % more cowbell % My error screen is attached. In the logs (localhost_log.2003-06-17.txt) I get: 2003-06-17 16:34:06 StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: [javac] Since fork is true, ignoring compiler setting. [javac] Compiling 1 source file [javac] Since fork is true, ignoring compiler setting. [javac] C:\opt\jakarta\tomcat4.1.24\work\Standalone\localhost\_\foo_jsp.java:41: ';' expected [javac] more cowbell [javac] ^ [javac] C:\opt\jakarta\tomcat4.1.24\work\Standalone\localhost\_\foo_jsp.java:41: cannot resolve symbol [javac] symbol : class more [javac] location: class org.apache.jsp.foo_jsp [javac] more cowbell [javac] ^ [javac] 2 errors at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorH andl er.java:130) ... -Tim Noel Rappin wrote: Okay. I did a clean install of tomcat. I placed a compilation error in one of the example JSPs. I am now seeing this in the logs: * catalina.out: start/stop messages * localhost_examples: a stack trace saying that there was a JasperException: unable to compile class for JSP * localhost_log: messages about servlet loading. What I don't see is a message saying
Re: context.xml question
On Thu, 19 Jun 2003 01:15, Jose Santiago Oyervides Gonzalez wrote: I've tried: Host name=mydomain.com debug=0 appBase=e:\webapps unpackWARs=true Try a forward slash instead ie. e:/webapps or maybe a double backslash. Also is e: drive a local or network drive? If it is a Network drive you will need to use it's UNC name and the user that is running Tomcat will need access to the network ie. LocalSystem for an NT service won't work. Regards, -- Jason Bainbridge http://jblinux.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: context.xml question
That were a network drive. I used the tip Jason gave me. Now it works. Thanks to all. Jose Oyervides. -Original Message- From: Jason Bainbridge [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 12:24 PM To: Tomcat Users List Subject: Re: context.xml question On Thu, 19 Jun 2003 01:15, Jose Santiago Oyervides Gonzalez wrote: I've tried: Host name=mydomain.com debug=0 appBase=e:\webapps unpackWARs=true Try a forward slash instead ie. e:/webapps or maybe a double backslash. Also is e: drive a local or network drive? If it is a Network drive you will need to use it's UNC name and the user that is running Tomcat will need access to the network ie. LocalSystem for an NT service won't work. Regards, -- Jason Bainbridge http://jblinux.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
disable session support in Tomcat
Hi, Is it possible to disable the session support (means no cookies and no JSESSIONIDs) somewhere in Tomcat ? This is may be a simply question, but I couldn't found any hint in the docs and the list archive. Thanks in advance Marco P.S.: I'm using 4.1.12 on lInux - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: disable session support in Tomcat
Howdy, The Servlet Specification requires container to support sessions. So no, you can't disable it ;) You can: - Download the tomcat source and hack out the session-related items, rebuild it, and have your own session-less servlet container ;) - Have very short session timeouts, e.g. 1 minute. - Rethink why you want sessions disabled ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: Marco Pöhler [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 1:52 PM To: [EMAIL PROTECTED] Subject: disable session support in Tomcat Hi, Is it possible to disable the session support (means no cookies and no JSESSIONIDs) somewhere in Tomcat ? This is may be a simply question, but I couldn't found any hint in the docs and the list archive. Thanks in advance Marco P.S.: I'm using 4.1.12 on lInux - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: disable session support in Tomcat
that was fast... I think I should try it with session enabled, the other options are... ahm... too simple ;-) Thank you, Yoav Am Mittwoch, 18. Juni 2003 19:53 schrieb Shapira, Yoav: Howdy, The Servlet Specification requires container to support sessions. So no, you can't disable it ;) You can: - Download the tomcat source and hack out the session-related items, rebuild it, and have your own session-less servlet container ;) - Have very short session timeouts, e.g. 1 minute. - Rethink why you want sessions disabled ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: Marco Pöhler [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 1:52 PM To: [EMAIL PROTECTED] Subject: disable session support in Tomcat Hi, Is it possible to disable the session support (means no cookies and no JSESSIONIDs) somewhere in Tomcat ? This is may be a simply question, but I couldn't found any hint in the docs and the list archive. Thanks in advance Marco P.S.: I'm using 4.1.12 on lInux - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: disable session support in Tomcat
Just out of curiosity, why? On Wednesday 18 June 2003 01:52 pm, Marco Pöhler wrote: Hi, Is it possible to disable the session support (means no cookies and no JSESSIONIDs) somewhere in Tomcat ? This is may be a simply question, but I couldn't found any hint in the docs and the list archive. Thanks in advance Marco P.S.: I'm using 4.1.12 on lInux - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Ben Souther F.W. Davison Company, Inc. REGISTER NOW FOR THE SCORPEO USER CONFERENCE! September 18-19, 2003 in Boston/Brookline, MA Additional Training Sessions held September 17, 2003 More info http://www.fwdco.com/services/Uconf03/default.shtm - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Can I set up 2 realms for the same server so I can access 2 databases
Hi, I've got two sites set up on one server, and I am trying to set up security for each of them. They use 2 different databases. Is it possible to set things up in the server.xml the way I have below, or do I have to put all users in the same database? I can't find anything on the Web that deals with this issue. Realm roleNameCol=RoleID userCredCol=Password className=org.apache.catalina.realm.JDBCRealm userTable=tblUSERS debug=99 userRoleTable=tblUSERROLES userNameCol=Username connectionURL=jdbc:mysql://localhost/DB1?user=MyNameamp;password=MyPW driverName=com.mysql.jdbc.Driver / Realm roleNameCol=RoleID userCredCol=Password className=org.apache.catalina.realm.JDBCRealm userTable=tblUSERS debug=99 userRoleTable=tblUSERROLES userNameCol=Username connectionURL=jdbc:mysql://localhost/DB2?user=MyNameamp;password=MyPW driverName=com.mysql.jdbc.Driver / Thank you for any help. Val - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Mod_rewrite and mod_jk2
Hey all, We're using Apache 2.0.45 as a pure load-balancer for two Tomcat 4.1.24 instances. Apache serves no content and redirects /* to the Tomcats (using the uri element of the workers2.properties). We have some rewrite rules that massage some URL's based on the domain name the user is accessing our site with. For Example: RewriteCond %{HTTP_HOST} ^www.mysite.com RewriteRule ^$ /some/url/mysite [PT] RewriteCond %{HTTP_HOST} ^www.myothersite.com RewriteRule ^$ /some/url/myothersite [PT] We're and ASP and basically have customer specific URLS for our product which should redirect the customer to the correct logon page for our app with their branding. mod_jk2 seems to intercept all requests prior to mod_rewrite getting a crack at it. Is there some way to let mod_rewrite get first shot at the URL before the urls are handed off to tomcat? Thanks! Jamey - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Can I set up 2 realms for the same server so I can access 2 databases
According to the spec, you can have 0 or 1 realms configured. Now, if you want to rewrite the code that uses the realms for logging people in I think you can use 2 DB's. -Original Message- From: Val T. [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 2:40 PM To: Tomcat Users List Subject: Can I set up 2 realms for the same server so I can access 2 databases Hi, I've got two sites set up on one server, and I am trying to set up security for each of them. They use 2 different databases. Is it possible to set things up in the server.xml the way I have below, or do I have to put all users in the same database? I can't find anything on the Web that deals with this issue. Realm roleNameCol=RoleID userCredCol=Password className=org.apache.catalina.realm.JDBCRealm userTable=tblUSERS debug=99 userRoleTable=tblUSERROLES userNameCol=Username connectionURL=jdbc:mysql://localhost/DB1?user=MyNameamp;pass word=MyPW driverName=com.mysql.jdbc.Driver / Realm roleNameCol=RoleID userCredCol=Password className=org.apache.catalina.realm.JDBCRealm userTable=tblUSERS debug=99 userRoleTable=tblUSERROLES userNameCol=Username connectionURL=jdbc:mysql://localhost/DB2?user=MyNameamp;pass word=MyPW driverName=com.mysql.jdbc.Driver / Thank you for any help. Val - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Can I set up 2 realms for the same server so I can access 2 databases
Yup, as I read further, it looks like you would need to write your own realm class that will talk to both DB's for you. Sounds like a mess. --Angus -Original Message- From: Angus Mezick Sent: Wednesday, June 18, 2003 2:49 PM To: Tomcat Users List Subject: RE: Can I set up 2 realms for the same server so I can access 2 databases According to the spec, you can have 0 or 1 realms configured. Now, if you want to rewrite the code that uses the realms for logging people in I think you can use 2 DB's. -Original Message- From: Val T. [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 2:40 PM To: Tomcat Users List Subject: Can I set up 2 realms for the same server so I can access 2 databases Hi, I've got two sites set up on one server, and I am trying to set up security for each of them. They use 2 different databases. Is it possible to set things up in the server.xml the way I have below, or do I have to put all users in the same database? I can't find anything on the Web that deals with this issue. Realm roleNameCol=RoleID userCredCol=Password className=org.apache.catalina.realm.JDBCRealm userTable=tblUSERS debug=99 userRoleTable=tblUSERROLES userNameCol=Username connectionURL=jdbc:mysql://localhost/DB1?user=MyNameamp;pass word=MyPW driverName=com.mysql.jdbc.Driver / Realm roleNameCol=RoleID userCredCol=Password className=org.apache.catalina.realm.JDBCRealm userTable=tblUSERS debug=99 userRoleTable=tblUSERROLES userNameCol=Username connectionURL=jdbc:mysql://localhost/DB2?user=MyNameamp;pass word=MyPW driverName=com.mysql.jdbc.Driver / Thank you for any help. Val - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Can I set up 2 realms for the same server so I can access 2 databases
- Original Message - From: Angus Mezick [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 2:48 PM Subject: RE: Can I set up 2 realms for the same server so I can access 2 databases According to the spec, you can have 0 or 1 realms configured. Now, if you want to rewrite the code that uses the realms for logging people in I think you can use 2 DB's. Thank you for the info. I think I'll set up one database for logging in. Val - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: win2000 issue with tomcat4.1.24
I will do tonight and let you know tomorrow.. how it went up -Original Message- From: John Turner [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 8:40 AM To: Tomcat Users List Subject: Re: win2000 issue with tomcat4.1.24 Then something is seriously screwed up. As I said, I would start over, and when I say start over, I don't just mean with Tomcat, I mean everything: JDK, etc. Make sure you don't have older JDK files or JAR files hanging around that might confuse Tomcat. John On Tue, 17 Jun 2003 18:35:10 -0400, Srinivasu Gandu [EMAIL PROTECTED] wrote: http://localhost:8080 -Original Message- From: John Turner [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 17, 2003 4:15 PM To: Tomcat Users List Subject: Re: win2000 issue with tomcat4.1.24 Sorry, you lost me. I think Craig's response at the link I provided should be enough to go on, basically he is saying to recompile all of your classes. That would have nothing to do with Tomcat. While I have never personally seen this error message, I have no problems spending time trying a suggested solution if Craig is the one doing the suggesting. Or are you saying that TOMCAT is throwing that error message? With what URL? John On Tue, 17 Jun 2003 16:02:24 -0400, Srinivasu Gandu [EMAIL PROTECTED] wrote: Where do you want to delete all the .class files??, I don't have any application to run right now.. I have a fresh installation of tomcat4.1.24 Srini. -Original Message- From: John Turner [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 17, 2003 8:43 AM To: Tomcat Users List Subject: Re: win2000 issue with tomcat4.1.24 Wow, cool error. Never saw that before. It seems Craig McClanahan has, though: http://www.mail- archive.com/[EMAIL PROTECTED]/msg03255.html If that doesn't help, my suggestion is to reinstall and start over. John On Mon, 16 Jun 2003 22:38:20 -0400, Srini Gandu [EMAIL PROTECTED] wrote: John, I did as you said.. I have a problem in starting the tomcat.. I did try to start by using as service and try to start via command prompt like you said.. in both cases I got the following error log and un able to get the tomcat home page. I am putting the log file content below and also attaching this as attachment.. Thanks - srini. 2003-06-16 22:31:49 HostConfig[localhost]: Deploying configuration descriptor admin.xml 2003-06-16 22:31:54 HostConfig[localhost]: Deploying configuration descriptor manager.xml 2003-06-16 22:31:54 WebappLoader[/manager]: Deploying class repositories to work directory C:\Tomcat4.1\work\Standalone\localhost\manager 2003-06-16 22:31:54 ContextConfig[/manager]: Configured an authenticator for method BASIC 2003-06-16 22:31:54 StandardManager[/manager]: Seeding random number generator class java.security.SecureRandom 2003-06-16 22:31:54 StandardManager[/manager]: Seeding of random number generator has been completed 2003-06-16 22:31:54 StandardWrapper[/manager:default]: Loading container servlet default 2003-06-16 22:31:54 StandardWrapper[/manager:invoker]: Loading container servlet invoker 2003-06-16 22:31:54 StandardWrapper[/manager:jsp]: Marking servlet jsp as unavailable 2003-06-16 22:31:54 StandardContext[/manager]: Servlet /manager threw load() exception javax.servlet.ServletException: Error instantiating servlet class org.apache.jasper.servlet.JspServlet at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:91 2) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java: 3420) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3608) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:8 21) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579) at org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDeployer. java:700) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:252) at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:260) at org.apache.commons.digester.Rule.end(Rule.java:276) at org.apache.commons.digester.Digester.endElement(Digester.java:1064) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc
RE: Mod_rewrite and mod_jk2
Apparently if you move the loading of mod_jk2 after the loading of mod_rewrite in httpd.conf this corrects the problem... Jamey -Original Message- From: James Courtney Sent: Wednesday, June 18, 2003 11:47 AM To: Tomcat Users List (E-mail) Subject: Mod_rewrite and mod_jk2 Hey all, We're using Apache 2.0.45 as a pure load-balancer for two Tomcat 4.1.24 instances. Apache serves no content and redirects /* to the Tomcats (using the uri element of the workers2.properties). We have some rewrite rules that massage some URL's based on the domain name the user is accessing our site with. For Example: RewriteCond %{HTTP_HOST} ^www.mysite.com RewriteRule ^$ /some/url/mysite [PT] RewriteCond %{HTTP_HOST} ^www.myothersite.com RewriteRule ^$ /some/url/myothersite [PT] We're and ASP and basically have customer specific URLS for our product which should redirect the customer to the correct logon page for our app with their branding. mod_jk2 seems to intercept all requests prior to mod_rewrite getting a crack at it. Is there some way to let mod_rewrite get first shot at the URL before the urls are handed off to tomcat? Thanks! Jamey - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Invalid pc in line number table
Hi, Does anyone understand what might be causing this error? The log files don't enlighten me at all, and searching on the Web brought no resolution. replylibrary is a package name, and SampleReply is the class. I'm accessing it from a JSP. It works fine on another site, and all other files and classes in this site work fine. What is an invalid pc in line number table??? The server encountered an internal error () that prevented it from fulfilling this request. org.apache.jasper.JasperException: replylibrary/SampleReply (Invalid pc in line number table) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2 48) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java) 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)\ Thanks for any help. Val - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat Standalone and Virtual Hosting
I have a web application deployed under Tomcat v4.1.18 (port 8080). Is it also possible to configure the Tomcat Standalone Service to support virtual hosting, but on port 80? If so, how is this accomplished? What is the best practices method for storing static web content in this situation? Should the web content be placed in the Tomcat directory, or someplace else? Any guidance you can provide is appreciated. Latesha Williams Applications Support, Information Technology American Museum of Natural History [EMAIL PROTECTED] (W) 212.769.5947 (C) 917.837.2460 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Invalid pc in line number table
G'day, Strange error... What are the JDK's that are involved along with the Operating Environment and`what version of Tomcat? I'd say it is some sort of incompatibility between the two, is one maybe a very early version of the JDK? Also what JDK was it compiled under? Regards, -- Jason Bainbridge http://jblinux.org On Thu, 19 Jun 2003 04:12, Val T. wrote: Hi, Does anyone understand what might be causing this error? The log files don't enlighten me at all, and searching on the Web brought no resolution. replylibrary is a package name, and SampleReply is the class. I'm accessing it from a JSP. It works fine on another site, and all other files and classes in this site work fine. What is an invalid pc in line number table??? The server encountered an internal error () that prevented it from fulfilling this request. org.apache.jasper.JasperException: replylibrary/SampleReply (Invalid pc in line number table) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java: 2 48) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicatio n FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterC h ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.j a va:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo k 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.j a va:191)\ Thanks for any help. Val - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Invalid pc in line number table
Hi, Strange error... What are the JDK's that are involved along with the Operating Environment and`what version of Tomcat? I'd say it is some sort of incompatibility between the two, is one maybe a very early version of the JDK? Also what JDK was it compiled under? It's not that, because I've got it compiling just fine on another application on the same server. It's on a RH Linux 7.3 machine with Tomcat 4.1.18, JDK 1.4 and I'm accessing a MySQL database (3.23). I don't even know where to look next. Val - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
NullPointerException in classloader?
Hi, System information Linux 2.4.20 #2 SMP jakarta-tomcat-4.0.6 java version 1.4.1_02 Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_02-b06) Java HotSpot(TM) Client VM (build 1.4.1_02-b06, mixed mode) We are running an simple webapp about 7 request / sec and sometimes occurs nullpointers in ClassLoader and few seconds later the Tomcat requires an restart. The time of the staying up is about 2 hours (approx.). clip catalina.out java.lang.NullPointerException at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:180) at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:132) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315) at org.apache.jsp.www_0002dlogin$jsp._jspService(www_0002dlogin$jsp.java:270) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473) 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:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125) at java.lang.Thread.run(Thread.java:536) /clip catalina.out In the jsp code the code is following: code from jsp page where the exception occurs valueFromSession = (String)session.getAttribute(objectNameWhichIsTypeOfString); /code Value of the attribute in the user session may be an empty java.lang.String or java.lang.String with relocation information. I am afraid of that the problem might be else where but the stack trace does not give enough information to track down the problem. Also any suggestions to improve the jsp code is accepted also. If somebody could give us a clue where to find the problem and if somebody is having same kind of problems Yours, Jouko Johansson - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
IIS ISAPI Redirect problems (was Re: context.xml question)
G'day, You're welcome. :) In future though I suggest you post questions to the list and not direct to an individual you are much more likely to get help that way. :) (I've CC'd the list with this) As to your problem, can you give a few more details? Is the 404 being thrown by IIS or Tomcat? If you're using MSIE you will have to turn off friendly error messages to be able to see the 404 properly in your browser, that will reveal where it is coming from. Regards, -- Jason Bainbridge http://jblinux.org On Thu, 19 Jun 2003 04:41, you wrote: Hi Jason, Thanks for answering me. I have several web-sites, and I'm trying to configure the isapi redirect for some of them, now it works for localhost, but I am having some problem with the other hosts? All the web-sites have their Jakarta Virtual Directory with the isapi loaded (green and up arrow), and the hosts are added in the server.xml, if I access them with port 8080, they work, but the redirect isn't working. This is my uriworker.properties: (it is the default) /servlet/*=ajp13 /examples/*=ajp13 This is my worker.properties (Also the default, just added the other hosts) worker.ajp13.type=ajp13 worker.ajp13.lbfactor=1 worker.loadbalancer.type=lb worker.loadbalancer.balanced_workers=ajp13 worker.tomcat_home=D:\Tomcat4 worker.java_home=C:\j2sdk1.4.0 ps=# worker.list=ajp13 worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.host=mydomain.com worker.ajp13.host=myotherdomain.com -- Jason Bainbridge http://jblinux.org My registry is fine, because the redirect is working for the localhost. I'm trying this configuration and it isn't working, (error 404) do you know what could be causing this? Thanks Jose Oyervides. -Original Message- From: Jason Bainbridge [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 12:24 PM To: Tomcat Users List Subject: Re: context.xml question On Thu, 19 Jun 2003 01:15, Jose Santiago Oyervides Gonzalez wrote: I've tried: Host name=mydomain.com debug=0 appBase=e:\webapps unpackWARs=true Try a forward slash instead ie. e:/webapps or maybe a double backslash. Also is e: drive a local or network drive? If it is a Network drive you will need to use it's UNC name and the user that is running Tomcat will need access to the network ie. LocalSystem for an NT service won't work. Regards, - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat Standalone and Virtual Hosting
I have a web application deployed under Tomcat v4.1.18 (port 8080). Is it also possible to configure the Tomcat Standalone Service to support virtual hosting, but on port 80? If so, how is this accomplished? What is the best practices method for storing static web content in this situation? Should the web content be placed in the Tomcat directory, or someplace else? Any guidance you can provide is appreciated. I had to address this question for myself a few weeks ago and what I came up with was having Apache sit in front of Tomcat with mod_jk installed (multiple Tomcat instances behind one Virtual Server configured Apache instance). For me this was necessary but it may well be overkill for most. In the least I suggest you take a look at http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/host.html which says that you can embed context's (aka webapps) inside Host elements which in turn are embedded in Engine elements. One or more virtual hosts are configured this way within a particular engine. (This was how I had my setup before, aka a one-to-one mapping between Tomcat and Apache instances). As far as changing the port you merely need to modify the Connector that listens on 8080 to listen to 80 instead. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Singleton across multiple contexts
I do have a database. Databases are supposed to store data, aren't they? ;-) Yeah, which is why ... Now seriously... My application includes a web interface to a kind of workflow system. This component is the workflow engine, which is in charge for automatic (background) state changes and actions. When my business/persistence logic changes a state, new potential tasks for this engine arise. So it has to be notified (=called) from any context that may change a state. ... you should use one here. You are describing state changes that need to happen in an atomic manner and exist in one and only one place. The semantics of db interactions are perfectly suited for what you are trying to do. -- Jacob L E Blain Christen Entheal LLC - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]