Re: Upgrading from Java 1.3 and Tomcat 4.0 to Java 1.4 and Tomcat 5.0.27
Yes, you will have this problem, you must uninstall old service. And what about CATALINA_HOME? You need to reconfigure it anyway when Tomcat is stopped. Stop and uninstall old service or install new service with a different name - it works for me. Regards. Saturday, August 14, 2004, 11:53:02 PM, you wrote: SS Test environment is Windows 2000 pro, live environment is Windows 2000 SS server. SS On my test system I've struck a problem when trying to install Tomcat 5 SS when the system is currently still running Tomcat 4. During SS installation there is a failure installing the Tomcat5 service - SS possibly a clash with the existing Tomcat service? SS When I try to run the newly installed Tomcat 5 from a dos shell it SS closes immediately with no feedback presented or logged. SS Has anyone encountered this before, or does anyone have some tips as to SS what I could be doing wrong? SS -- SS Stephen Souness SS - SS To unsubscribe, e-mail: [EMAIL PROTECTED] SS For additional commands, e-mail: SS [EMAIL PROTECTED] -- Best regards, Eugenemailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] - JVM Max Heap Size on Linux
Interesting idea and if it was my own code i'd certainly consider this. Although if it was my own code I don't think i'd let the sessions get so big in the first place. Unfortunately its now our code so we're stuck with what has been supplied. Ta Matt -Original Message- From: Wade Chandler [mailto:[EMAIL PROTECTED] Sent: 14 August 2004 23:38 To: Tomcat Users List Subject: Re: [OT] - JVM Max Heap Size on Linux Dale, Matt wrote: Hi, Has anyone got around the maximum heap size of 2G on linux? We've got a new server with 12G of ram which was going to be used for an uber tomcat but this plan may have to be changed if we can't get more than 2G of memory used for the JVM. Ta Matt Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] You could write some native code and use the apache apr package or something similar to create shared memory or memory mapped files. Then use the object you wrap around this code and store it in your session. This way you can have as much memory as you want stored in these objects. Pull the memory from the mapped file only as you use it to keep from expanding it all back into the jvm process memory at one time. The speed difference will probably not be noticeable if you have a good search algorithm setup. That or you could tie your session information to a database and do the same thing you would do with the mapped memory. The session would simply hold the id for the db session table. Though this may be a bit slower. Don't know if that would be possible for you or not. Wade - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Have you implemented a Java server faces site?
Oh yes. But ... V D wrote: Thank you very much for the link. I also did some work on JSF too, and see its strength and weakness. Unfortunately, the guy doing the evaluation in the link below did not dig deep enough or use any GUI IDE See links linked from the theserverside page, that is, from the readers responses. Especially, Geary's blog page. The orgiginator guy is rather light and superficial one. such as the Java Creator or IBM's tool. Some of his points are valid though. I see other problems myself. One of them is the ability to create customized view, component, or renderer. They all involves java objects (which is not easily changable), and very elaborate. To have a render, you have to have a tag file, a tag class, a configuration, and the renderer class. Unbelievable! Tags are only for JSP presentation. You could use a better presentation technology if you want. See this article: http://www.onjava.com/pub/a/onjava/2004/06/09/jsf.html Personally, I feel JSF has saved my life in the Web development sea. It's simple, easy to use, and more effective than Struts et al. Hiroshi Iwatani wrote: Yes. See http://www.theserverside.com/news/thread.tss?thread_id=27962 V D wrote: If so, what is your experience? Is it mature enough for a serious web programming? Thanks. - 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] -- Hiroshi Iwatani *stop cruelty* Annual number of institutionally euthanized cats and dogs including kittens and puppies: US 5 million, JP 500 thousand. How about your country? *for our better karma* - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Service startup problems under Win XP
Hello, I am currently trying to install Version 5.027 of Tomcat, running as a service. I have installed the .exe installer. I can see the Tomcat service available, but when I try to start it, it won't start up, and the event handler says the service terminated with service-specific error 0, which doesn't really help me in determining, what the problem is. Anybody can help me there, please? All the best David
RE: Upgrading from Java 1.3 and Tomcat 4.0 to Java 1.4 and Tomcat 5.0.27
Are both instances of Tomcat trying to run on the same port? You cannot have two processes trying to run on the same port for the same ip address. -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Stephen Souness Sent: Saturday, August 14, 2004 7:53 PM To: [EMAIL PROTECTED] Subject: Upgrading from Java 1.3 and Tomcat 4.0 to Java 1.4 and Tomcat 5.0.27 Test environment is Windows 2000 pro, live environment is Windows 2000 server. On my test system I've struck a problem when trying to install Tomcat 5 when the system is currently still running Tomcat 4. During installation there is a failure installing the Tomcat5 service - possibly a clash with the existing Tomcat service? When I try to run the newly installed Tomcat 5 from a dos shell it closes immediately with no feedback presented or logged. Has anyone encountered this before, or does anyone have some tips as to what I could be doing wrong? -- Stephen Souness - 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]
[OT] Re: Have you implemented a Java server faces site?
Thank you for the reply. I happened to read that article too. I also have the book the guy wrote. I'll look into the rendering part using XML. It would be better if it's supported out of the box though. Hopefully the next version will address this. I did write a simple struts app before, and JSP seems to be better architecturally, and simpler to use though. The problem I have with it is that you can not programmatically display the view easily. What I mean is that in the JSP page, there is not much way to put your code there. For example, one of my requirement is that depending on a situation, 1 or more tables must be shown. You can see from the article that mixing tag lib and JSF is prohibited in a loop. Also, in a purist sense, data preparation for the display should also stay in the JSP file, not the back bean. This means it has to support programming in there. I can just create another class/bean to do this, but it becomes so many files just do something, and isn't JSP supposed to be the view part? I think it's perfectly ok to put any type of java programming in the view as long as that code only is used for the view, not application logic. Anyway, I will investigate if I can some how satisfy all my requirements with this technology. I was very commited to JSF, until I read the first link you sent me. The fact that it's very recent (august 10) causes me unease with this technology. Since it seems that you did implemented a full app successfully, if you don't mind, could you share your experience and how did your project go? Thanks. Hiroshi Iwatani wrote: Oh yes. But ... V D wrote: Thank you very much for the link. I also did some work on JSF too, and see its strength and weakness. Unfortunately, the guy doing the evaluation in the link below did not dig deep enough or use any GUI IDE See links linked from the theserverside page, that is, from the readers responses. Especially, Geary's blog page. The orgiginator guy is rather light and superficial one. such as the Java Creator or IBM's tool. Some of his points are valid though. I see other problems myself. One of them is the ability to create customized view, component, or renderer. They all involves java objects (which is not easily changable), and very elaborate. To have a render, you have to have a tag file, a tag class, a configuration, and the renderer class. Unbelievable! Tags are only for JSP presentation. You could use a better presentation technology if you want. See this article: http://www.onjava.com/pub/a/onjava/2004/06/09/jsf.html Personally, I feel JSF has saved my life in the Web development sea. It's simple, easy to use, and more effective than Struts et al. Hiroshi Iwatani wrote: Yes. See http://www.theserverside.com/news/thread.tss?thread_id=27962 V D wrote: If so, what is your experience? Is it mature enough for a serious web programming? Thanks. - 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: WebDAV using Tomcat 5 and Dreamweaver 7.0.1
Looking at this again alongside http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22563 I still think this token should not be quoted but I have patched both TC4 and TC5 to remove the quotes if they are present. Mark -Original Message- From: Mark Thomas [mailto:[EMAIL PROTECTED] Sent: Friday, August 13, 2004 10:00 PM To: 'Tomcat Users List' Subject: RE: WebDAV using Tomcat 5 and Dreamweaver 7.0.1 Looking at the headers the nc value in the header from dreamweaver is quoted. My reading of RFC2617 is that the nc value should not be quoted. Tomcat removes quotes from those parameters that are allowed to be quoted. Quoting selectively from RFC2617: nonce-count = nc = nc-value nc-value = 8LHEX LHEX = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | a | b | c | d | e | f Mark -Original Message- From: Robert Hunt [mailto:[EMAIL PROTECTED] Sent: Friday, August 13, 2004 5:51 AM To: [EMAIL PROTECTED] Subject: WebDAV using Tomcat 5 and Dreamweaver 7.0.1 I'm having problems with using Dreamweaver to access a Tomcat WebDAV environment. The web.xml file uses security-constraint and a login-config (DIGEST) to produce the authentication challenge (sc 401). Every time, DW continues to receive a 401 status. I rolled my own digest authentication (according to RFC2069 2617) and found that DW returns an authorization header that does NOT contain spaces between the parameters, where NS (7) and IE(6) do. Accounting for this, my webdav servlet (extension of Catalina's WebdavServlet ) can match DW's digest response and not trip a 401. Dreamweaver response: authorization=Digest username=userX,realm=/webdav1,nonce=f776f4450e9673ad73b0f 1b3f7ec2d55,u ri=/webdav1/,qop=auth,nc=0001,cnonce=411c41d4,resp onse=24bc402d 885b5b12f895a850e5efed1a,opaque= Netscape response: header=authorization=Digest username=userX, realm=/webdav1, nonce=669d20f8bf4fe0af6433bc8c2c295581, uri=/webdav1/, response=c44573ae2284658d1de62f2d5154acc0, qop=auth, nc=0001, cnonce=082c875dcb2ca740 A quick look at the RFC's and I can't find whether param-comma-space-param is required or param-comma-param, but it's late and RFCs are notorious for giving one heavy eyelids. Can anyone tell me which is correct? (So I can go submit a bug?) Not this should be such a picky issue; whitespace between the parameters (from none to lots) should not be what trips up the authentication. - 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: Upgrading from Java 1.3 and Tomcat 4.0 to Java 1.4 and Tomcat 5.0.27
startup.bat didn't even get to starting Java, so I change the echo off line to be echo on and redirected the output to a file to see how far it was getting, like this: startup.bat output.txt The last information from output.txt is: D:\Tomcat 5.0\bincall D:\Tomcat 5.0\bin\catalina.bat start The JAVA_HOME environment variable is not defined correctly This environment variable is needed to run this program NB: JAVA_HOME should point to a JDK not a JRE Which makes a little sense, as I am trying to avoid having a full JDK. Anyone else successfully running Tomcat 5 on Windows with just a JRE and not a JDK (including tools.jar in common/lib for compiling JSPs). -- Stephen Souness alan sparago wrote: Are both instances of Tomcat trying to run on the same port? You cannot have two processes trying to run on the same port for the same ip address. -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Stephen Souness Sent: Saturday, August 14, 2004 7:53 PM To: [EMAIL PROTECTED] Subject: Upgrading from Java 1.3 and Tomcat 4.0 to Java 1.4 and Tomcat 5.0.27 Test environment is Windows 2000 pro, live environment is Windows 2000 server. On my test system I've struck a problem when trying to install Tomcat 5 when the system is currently still running Tomcat 4. During installation there is a failure installing the Tomcat5 service - possibly a clash with the existing Tomcat service? When I try to run the newly installed Tomcat 5 from a dos shell it closes immediately with no feedback presented or logged. Has anyone encountered this before, or does anyone have some tips as to what I could be doing wrong? -- Stephen Souness - 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]
displaying JSP output through servlet
I'm trying to design an app in a way that all requests will have to go through a servlet. e.g. http://localhost:8080/myservlet?somestring But I want to make use of the JSP technology. So I'm thinking that I'll have to somehow include the JSP compiled classes into the servlet. and somehow put the output of the JSP into the response of the servlet. My question is - is this possible? and how do I do it? Any examples would help. Thanks, David Aleksanyan P.S. This is my first post, I hope it is to the point and it hasn't been answered before, otherwise - please tell me so. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Help Database Pooling in Linux
[EMAIL PROTECTED] writes: Hi I have tried a few more things including upgrading the database, but I'm still havig issues. I have attached a copy of the test file I have used to connect to the database and the context .xml file. As you can see the database connection information is identical. The direct link works but the connection pool doesn't, failing on a Null point exception error. Under windows both work equally well. , it is really not clear to me why they are failing. Any help gratefully received. Tim Tim Barrett Education Technology Consultants Tim Barrett Education Technology Consultants tel: 07944 274088 e-mail: [EMAIL PROTECTED] ?xml version='1.0' encoding='utf-8'? Context displayName=NLN Online docBase=stagenlnonline path=/stagenlnonline Realm className=org.apache.catalina.realm.DataSourceRealm debug=99 dataSourceName=jdbc/NLNOnline localDataSource=true digest=MD5 userTable=users userNameCol=username userCredCol=password userRoleTable=users_roles roleNameCol=rolename/ Resource name=jdbc/NLNOnline auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/NLNOnline parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter nameurl/name valuejdbc:mysql://flash/NLNOnlineDB/value /parameter parameter namedriverClassName/name valuecom.mysql.jdbc.Driver/value /parameter parameter nameusername/name valueNLNOnlineUser/value /parameter parameter namepassword/name valueNLN0/value /parameter parameter namemaxWait/name value3000/value /parameter parameter namemaxIdle/name value100/value /parameter parameter namemaxActive/name value10/value /parameter /ResourceParams /Context %@ taglib uri=/tags/jstl-sql prefix=sql % %@ taglib uri=/tags/jstl-core prefix=c % %@ taglib uri=/tags/jstl-format prefix=fmt % html head /head body sql:setDataSource var=testData scope=application driver=com.mysql.jdbc.Driver url=jdbc:mysql://flash/NLNOnlineDB user=NLNOnlineUser password=NLN0 / sql:query var=testDB dataSource=${testData} sql=SELECT * FROM users / c:forEach items=${testDB.rows} var=row p Connection Succesfull /p /c:forEach /body /head - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: displaying JSP output through servlet
On Sun, Aug 15, 2004 at 07:11:17PM -0700, David Aleksanyan wrote: : I'm trying to design an app in a way that all requests will have to go : through a servlet. : e.g. http://localhost:8080/myservlet?somestring : : But I want to make use of the JSP technology. : So I'm thinking that I'll have to somehow include the JSP compiled classes : into the servlet. and somehow put the output of the JSP into the response of : the servlet. It sounds like you're new to servlet technology? Depending on your end-goal, you could use: - servlet filter: allows you to pass all requests through a common point for added services such as logging, request/response tweaks, security checks, etc. This is part of the servlet spec v2.3 and later. - page controller: perform business logic in the servlet, then use RequestDispatcher#forward() to pass control to a given JSP to produce the output content. This is a well-known design pattern, and the combined servlet+JSP implementation is quite common in J2EE circles. Either way, Googling these terms should turn up lots of advice and examples. -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Service startup problems under Win XP
: I can see the Tomcat service available, but when I try to start it, it won't start up, and the event handler says the service terminated with service-specific error 0, which doesn't really help me in determining, what the problem is. What happens when you run startup.bat in a cmd window? -and what's in the Tomcat log files? -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: servlet question
Well, you could try adding in your exception handling: } catch(Exception e) { log(Problem,e); // For pre-production debugging only throw new ServletException(Problem,e); } The way you servlet is at the moment, if you do get an exception, then all you will see is a blank page with nothing in the logs. Schalk Neethling [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Attached is my servlet and complete web.xml David Short wrote: I don't think the servlet is the issue, since it's not even getting executed. Is your context path set up correctly in your servlet.xml or tomcat\conf\catalina\localhost\context.xml file (tomcat 5). Which version of tomcat are you running and on what os? -Original Message- From: Schalk Neethling [mailto:[EMAIL PROTECTED] Sent: Saturday, August 14, 2004 1:22 PM To: Tomcat Users List Subject: Re: servlet question Attached is the servlet, can you see any problems here? It compiles fine. David Short wrote: Are you running this through apache redirected to tomcat or straight from tomcat? Try loading the servlet at tomcat startup to see if the servlet is recognized. i.e. load-on-startup1/load-on-startup last in the servlet/servlet tag set. I had the same issue and discovered that my pattern in apache wasn't right. However, if you're not using apache, I don't know what to say. The syntax looks correct. -Original Message- From: Schalk Neethling [mailto:[EMAIL PROTECTED] Sent: Saturday, August 14, 2004 1:05 PM To: Tomcat Users List Subject: re: servlet question Hey all! I have a servlet called login. I have it mapped in my web.xml as follows: servlet servlet-namelogin/servlet-name servlet-classorg.volume4.authentication.login/servlet-class /servlet servlet-mapping servlet-namelogin/servlet-name url-pattern*.login/url-pattern /servlet-mapping My WEB-INF structure is as follows WEB-INF/classes/org/volume4/authentication/login.class Does anyone have an idea as to why when I call login as process.login from a form it is not run? I have placed some System.out.println(); in there but, it seems that the servlet is not called at all. I basically just get a blank screen. When I look at the tomcat logs no errors are recorded here either. -- Kind Regards Schalk Neethling Web Developer.Designer.Programmer.President Volume4.Development.Multimedia.Branding emotionalize.conceptualize.visualize.realize Tel: +27125468436 Fax: +27125468436 email:[EMAIL PROTECTED] web: www.volume4.co.za This message contains information that is considered to be sensitive or confidential and may not be forwarded or disclosed to any other party without the permission of the sender. If you received this message in error, please notify me immediately so that I can correct and delete the original email. Thank you. - 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] -- Kind Regards Schalk Neethling Web Developer.Designer.Programmer.President Volume4.Development.Multimedia.Branding emotionalize.conceptualize.visualize.realize Tel: +27125468436 Fax: +27125468436 email:[EMAIL PROTECTED] web: www.volume4.co.za This message contains information that is considered to be sensitive or confidential and may not be forwarded or disclosed to any other party without the permission of the sender. If you received this message in error, please notify me immediately so that I can correct and delete the original email. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Kind Regards Schalk Neethling Web Developer.Designer.Programmer.President Volume4.Development.Multimedia.Branding emotionalize.conceptualize.visualize.realize Tel: +27125468436 Fax: +27125468436 email:[EMAIL PROTECTED] web: www.volume4.co.za This message contains information that is considered to be sensitive or confidential and may not be forwarded or disclosed to any other party without the permission of the sender. If you received this message in error, please notify me immediately so that I can correct and delete the original email. Thank you. /* * login.java * * Created on January 18, 2004, 9:47 PM */ package org.volume4.authentication; import java.io.*; import java.util.*; import java.net.*; import java.sql.*; import javax.servlet.*; import javax.servlet.http.*; /** * * @author Design_DEMON * @version
Unable to accessing shared network folder
Hi, I am running Tomact 5.0 under Windows 2000. I want to access a shared folder in the netowrk from my jsp page. I try giving the UNC path of the shared folder. But tomcat is unable to see the directory. Please help. File sharedFolder = new File (machine\\shared); where machine is the name of the network machine, and shared is a folder shared in that machine. But sharedFolder.exists() returns false, and sharedFolder.listFiles() returns null. This happens even if Tomcat is run as an application and also when it is run as a service. I can access the same shared folder directly if run a test java program outside of tomcat. Thanks in advance, Jo Yahoo! India Matrimony: Find your life partner online Go to: http://yahoo.shaadi.com/india-matrimony - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Managing new service
Hello I managed to configure two service on a tomcat (5.0.25) server. The problem now is how to manage the second server. With the standard server the /manager page is delivered. How can one deploy/undeploy to the second service. Thank's for any help Pedro - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]