Re: servlet startup compile error
The 'application' variable is only defined within the definition of the '_jspservice' method. And, this is how it should be. To get what you want you need: %! public void contextInitialized(ServletContextEvent sce) { // Relying on the fact that Jasper's base class extends GenericServlet ServletContext application = getServletContext(); . [EMAIL PROTECTED] wrote in message news:OFB198B5CB.AE8A1E11-ON48256C7C.000EB33E-48256C7C.000EF3D4@allsolutions. com.au... Hello, In my servlet to be started on server load, why may I not define the application thus: public void contextInitialized(ServletContextEvent sce) { Hashtable style_index = new Hashtable(); style_index.put(element1, ONE); style_index.put(element2, TWO); application.setAttribute(style_index, style_index); // cannot resolve symbol! } your thoughts / input appreciated paul. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Tomcat NT Service Runtime.exec()
At least, doing so you should be able to test you are doing things well. We have developed a service (an internal project, not Tomcat related), and it's able to execute any program, including shells. Check the security policy used by your Tomcat service. Perhaps you are not allowed to call the Runtime.exec() method. - Original Message - From: Jacob Kjome [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, November 25, 2002 5:29 PM Subject: Re: Tomcat NT Service Runtime.exec() For each NT service, there is an option called Allow service to interact with desktop under Properties / Log On. Check that option and what you ask for should work just fine. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: [OT] Re: is there a free ide that gets along well with tomcat?
I'm using JEdit4 (http://www.jedit.org/) which I like a lot. It doesn't use much memory at all and has some extremely useful plugins. Open source too. Steve -Original Message- From: Chris Gokey [mailto:[EMAIL PROTECTED]] Sent: 22 November 2002 02:29 To: Tomcat Users List Subject: Re: [OT] Re: is there a free ide that gets along well with tomcat? Something also to remember if you are running Linux, you should download the x86/GTK 2 version of it. The MOTIF version is slow and buggy. Unfortunately this isn't obvious and they put the MOTIF version higher in the list of download choices. But we have also experimented with both Eclipse, Netbeans, and Forte and most of our development group is leaning towards eclipse as a IDE choice. Chris On Thu, 2002-11-21 at 21:08, Peter Lin wrote: eclipse does have a different model for the UI, but once I got over the difference, I found it better. Those who are used to Borland's style of UI will find eclipse a bit un-intuitive at first, but having used it quite a bit the last month I find it is actually much more productive. until I really sat down and tried it out, it was a bit weird at first. Once you get over the visual differences, the under lying framework is much more powerful and flexible than other java IDE's. the plugin architecture allows one to write plugins for tomcat fairly easily. there seems to be a lot of momentum with eclipse and I personally prefer it to swing. The widget API seems better to me and is much more appealing than swing. there are several server plugins in the work for eclipse including websphere and couple other popular containers. peter Kwok Peng Tuck [EMAIL PROTECTED] wrote:eclipse needs a lot of work, but it looks like they are making progress. Some of their stuff seems counter intuitive at the moment. So I'll take a rain check on that ide. I'm suprised that Sun One Studio would need 512 mb of memory. Have you done some module tuning yet? That might help you reduce memory usage. Tref Gare wrote: I'd be voting more like 512meg memory for Sun One Studio... but similarly.. it's pretty effective once you're up at that level of hardware. I've heard really good things about eclipse though.. when I get a chance I'm going to give it a try. T -- Tref Gare Development Consultant Areeba Level 19/114 William St, Melbourne VIC 3000 email: [EMAIL PROTECTED] phone: +61 3 9642 5553 fax: +61 3 9642 1335 website: http://www.areeba.com.au -- This email is intended only for the use of the individual or entity named above and contains information that is confidential. No confidentiality is waived or lost by any mis-transmission. If you received this correspondence in error, please notify the sender and immediately delete it from your system. You must not disclose, copy or rely on any part of this correspondence if you are not the intended recipient. Any communication directed to clients via this message is subject to our Agreement and relevant Project Schedule. Any information that is transmitted via email which may offend may have been sent without knowledge or the consent of Areeba. -- -Original Message- From: Andy Eastham [mailto:[EMAIL PROTECTED]] Sent: Friday, 22 November 2002 9:23 AM To: Tomcat Users List Subject: RE: is there a free ide that gets along well with tomcat? Sun One Studio needs 256Mb of memory. If you haven't got that much, forget it. If you have, it rocks. Andy -Original Message- From: Steve R Burrus [mailto:[EMAIL PROTECTED]] Sent: 21 November 2002 21:29 To: Tomcat Users List Subject: Re: is there a free ide that gets along well with tomcat? Hi Jennifer, this is steve burrus, and I am most curious about u apparently stating that the Sun One Studio (aka Forte) is irritating so you chose/decided to uninstall it unceremoniously :)!! How do you find it to be irritating because I also have certain issues with it, namely that I have to WAIT FOREVER for my PC's processor to be able to do the next operation in the application!!! I await breathlessly for your response. S.R.B. __ Do you Yahoo!? Yahoo! News - Today's headlines http://news.yahoo.com -- To unsubscribe, e-mail: For additional commands, e-mail: -- To unsubscribe, e-mail: For additional commands, e-mail: -- To unsubscribe, e-mail: For additional commands, e-mail: -- To unsubscribe, e-mail: For additional commands, e-mail: - Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -- Christopher D. Gokey, SSAI, NASA/GCMD 18 Martin Road, Shelburne Falls, MA 01370 Phone: Voice (413) 625-8129 / FAX 208-248-9055 [EMAIL
Set Jikes Path
Hi all, I am using jikes1.18 with tomcat 4.1.12 on Linux. My question is: is it possible for me to set Jikes path if I dun't put the jikes in my system path? As for tomcat 4.0, I can set jspCompilerPath in tomcat/conf/web.xml, as below: init-param param-namejspCompilerPath/param-name param-value/some/where/to/jikes/param-value /init-param How can I do this in tomcat 4.1.12? Thank you -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
jk2 + SSL
Hi, I'm running Apache 1.3 with mod_ssl/Tomcat 4.1/JK2 and I'd like to get SSL access to some of my webapps. This is my workers2.properties: - [shm] file=/usr/local/httpd/logs/shm.file size=1048576 [channel.socket:localhost:8009] port=8009 host=127.0.0.1 [ajp13:localhost:8009] channel=channel.socket:localhost:8009 [uri:/foo/*] worker=ajp13:localhost:8009 [uri:/bar/*] worker=ajp13:localhost:8009 -- and this is my server.xml connector config: -- Connector className=org.apache.coyote.tomcat4.CoyoteConnector ... port=8009 protocolHandlerClassName=org.apache.jk.server.JKCoyoteHandler scheme=http secure=false Factory className=org.apache.catalina.net.DefaultServerSocketFactory/ /Connector -- I'd like 'bar' to be accesible by https 'foo' by http. However, with the above config, when I browse to 'https://localhost/bar/' I get the error message: Your browser sent a request that this server could not understand. Reason: You're speaking plain HTTP to an SSL-enabled server port. Instead use the HTTPS scheme to access this URL, please. Hint: https://localhost:443/ When I change my connector in server.xml to scheme='https' then SSL access works ok, but if I try to connect at http://localhost/foo/, I'm getting automatically redirected to 'https'... I've tried to set up two connectors (one with scheme=http on port 8009 and one with scheme=https on port 8019), but I don't know how to configure jk2 to map /foo/ to 8009 and /bar/ to 8019. Can anybody help? Thanks Alex -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
ldap authenitcation
Hi, How do I authenticate against an LDAP directory using TomCat 4.1.2? In my web.xml I have a resource that requires form authentication as follows: login-config auth-methodFORM/auth-method realm-namejava:/jaas/LDAPLogin/realm-name !-- I tried with and without this -- form-login-config form-login-page/login/form-login-page form-error-page/login-fail/form-error-page /form-login-config /login-config I have read the JNDI Realm how-to and added the following few lines to my server.xml file. Realm className=org.apache.catalina.realm.JNDIRealm debug=99 connectionURL=ldap://ldapmachine:389; userPattern=uid={0},ou=Users,o=myOrg.com roleBase=ou=Groups,0=myOrg.com roleName=cn roleSearch=(uniqueMember={0})/ When I access a restricted URL the login page appears and I type in my credentials, but when I submit (to: j_security_check) I automatically get redirected to my login-fail page in a matter of nano-seconds (this in itself suggests that it is not working!). When I look in the TomCat log files I cannot see any references to any attempts to contact my LDAP directory. And when I look in the LDAP access log I cannot see any attempt to be contacted either. What step have I missed out or got wrong? Many thanks in advance Charlene __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Problems running VeriSign trial sertificate in Tomcat.
Problem with running Tomcat using VeriSign trial certificate. Can anyone please help me with this problem? Have searched for hours, but can't find any sollutions... I'm running: Windows 2000 JDK 1.3 JSSE 1.0.3 Tomcat 3.2.3 Have done: - Created self-signed certificate using keytool, OK. - Tomcat SSL setup, running with self-signed certificate, OK. - Created the CSR and sent it to VeriSign, OK. - Imported the trial certificate from VeriSign using 'keytool -import -alias tomcat -keystore verisign -file tomcat.cer' Have also tried to change keystore name and password. Tomcat error message: javax.net.ssl.SSLException: Unrecognized SSL handshake. My connector parameters in server.xml: Connector className=org.apache.tomcat.service.PoolTcpConnector Parameter name=handler value=org.apache.tomcat.service.http.HttpConnectionHandler/ Parameter name=port value=443/ Parameter name=socketFactory value=org.apache.tomcat.net.SSLSocketFactory / Parameter name=keystore value=c:/documents and settings/localhost/verisign / Parameter name=keypass value=changeit / Parameter name=secure value=true / Parameter name=clientauth value=true / /Connector Have tried to change secure and clientauth parameters without success. Any ideas??? Greetings Morten Tollefsen Integrasjonssystemer AS [EMAIL PROTECTED] 33036066 / 97178250
Protectind directory
Hi, I want protect a directory in my structure ( http://localhost/directory ) I use Apache+Tomcat and all test, it´s failed. Try .htaccess of apache, but nothing. Try permission org.apache.naming.JndiPermission jndi://localhost/examples/* , but nothing. How I do ? Osvâneo A. Ferreira
cannot use SSL with tomcat running as a service
If run tomcat using the provided batch I can use SSL without any problem, if I run tomcat as a service instead, I receive the 404 errore page. Any Idea how to solve this problem? I'm using: windows NT SP6 java 4.1.1_01 tomcat 4.1.12-LE-jdk14 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
reloadable
Hello, I set the attribute reloadable to true in a sample context tag(Context in the sever.xml) to monitor the the WEB-INF/classes. But it didn't affect. I make change in a sample class and the server don't load this class again. I am using jakarta-tomcat-4.0.6 in winow2000 server. Should I have to do other setting to make the reloadable work. Thanks, raja
Re: tomcat as bundle
[EMAIL PROTECTED] writes: Hi, Can any one tell me whether tomcat is avalable for download as a single tar.gz file?! and where is it available... I would like to install tomcat on Irix 6.5.16, anyone suggest if experimented already on this. thanks, Ranjit. - -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Hello, apache.org. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Protectind directory
Osvâneo A. Ferreira writes: Hi, I want protect a directory in my structure ( http://localhost/directory ) I use Apache+Tomcat and all test, it´s failed. Try .htaccess of apache, but nothing. Try permission org.apache.naming.JndiPermission jndi://localhost/examples/* , but nothing. How I do ? Osvâneo A. Ferreira Hello, u need to supply more info (how u build is important): OS: TOMCAT VERSION: PLATFORM: ENVIRONMENT: NETWORK: BUILD: ant (build.xml), scripts (.sh , .bat, manual, etc.) if u want tomcat directory protection don't fiddle around with apache (i assume u mean httpd.conf). the tomcat instructions r very clear if u downloaded: jakarta-tomcat-x.y.z-src. u have to build a directory w/ WEB-INF and its own web.xml file (preferably using a war/jar file) where u define the protected directory something like this: $TOMCAT_HOME | /webapps |protected_dir | /WEB-INF | /web.xml u must be able to generate a war file and put it in your webapps directory and then bounce ur tomcat server (i prefer to use: http://localhost/manager/install?path=protected_dir). get the src as described above and read thoroughly and carefully. hope this helps, david. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Page Statistics for Tomcat?
Hi, I was wondering if someone could advise me on a good tool to show statistics for Tomcat. Something like webalizer. I'm going to look into webalizer, but I wanted to see if anyone had something better. Thank You, Justin A. Stanczak Web Manager Shake Learning Resource Center Vincennes University (812)888-5813 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Page Statistics for Tomcat?
Hi, I really like awstats, it's in sourceforge... I recommend that one : http://sourceforge.net/projects/awstats/ Hope it helps [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 25. nóvember 2002 13:41 To: [EMAIL PROTECTED] Subject: Page Statistics for Tomcat? Hi, I was wondering if someone could advise me on a good tool to show statistics for Tomcat. Something like webalizer. I'm going to look into webalizer, but I wanted to see if anyone had something better. Thank You, Justin A. Stanczak Web Manager Shake Learning Resource Center Vincennes University (812)888-5813 -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Tomcat or JBoss?
I'm sure you get this question all the time, but this is not that type of question. I've been using Tomcat for a while, like a year, in a production environment. I think it's been doing fine so far. I've just got a new server to replace my current application server that's been running Tomcat. I was thinking maybe I should set this up with JBoss instead of Tomcat, because this will be production. The reason I'm thinking about doing this is one, because I'm at a stage where it would be easy to just install whatever I want and two, I've read a couple places that Tomcat is just a reference implementation. That it was not really designed to be in production. It doesn't have to be just JBoss either. I just know a little about it. Any suggestions would be great. Thank You, Justin A. Stanczak Web Manager Shake Learning Resource Center Vincennes University (812)888-5813 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Displaying servlets and its memory usage
Hi, OptimizeIt 5.0, the newest, claims to be able to display this sort of thing, if your servlets are each a different class, which is normally the case. But keep in mind all you'll see, with any of today's tools that I know of, is the memory usage of the servlet instance itself, not including any member variables it holds. For example, if com.mycompany.MyServlet has five instances in memory, each holding a String[1000] array, you would see the five instances as one memory total, and the String[] as 5000 separate things. Older tools don't even support that much information. In general, using JPDA/JVMPI to get hierarchical (as opposed to flat, which all tools do) memory information is currently next to impossible. Yoav Shapira Millennium ChemInformatics -Original Message- From: Sriraman.R [mailto:[EMAIL PROTECTED]] Sent: Sunday, November 24, 2002 6:38 AM To: tomcat Subject: FW: Displaying servlets and its memory usage Any clues/pointers to get this info! -Sriram -Original Message- From: Sriraman.R [mailto:[EMAIL PROTECTED]] Sent: Friday, November 22, 2002 7:18 PM To: Tomcat Users List Subject: Displaying servlets and its memory usage hi all, I have tomcat 3.2.4 and few servlets running. I want to see the memory usage of each serlvet running. However I get memory hogging often. I would like to find which servlet is causing this problem. Is there a tool/java program to dump each servlet and its memory usage periodically,say every 10 secs like NT's Task Manager. Appreciate any help asap! thanks, -Sriram -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: IIS on W2k + tomcat 4.1.12
I didn't have too much trouble getting the 2.01 filter to work with Tomcat 4.1.12 and IIS 5. http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/configwebcom.html I don't think you need urimapworkers.properties. In addition to the ISAPI dll, all I'm using is workers2.properties and jk2.properties. I think the source for the jk2 connector contains all of the sample properties and reg files and some additional info: http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/release/v2.0.1/src/ [EMAIL PROTECTED] 11/24/02 10:58PM Was anybody successful in integrating IIS with tomcat 4.1.12. I downloaded the isapi_redirector2.dll. I was able to find the workers2.properties but I am not able to find the urimapworkers.properties. It is not available along with the workers2.properties file. After trying to add the ISAPI filter I get a error in event viewer saying unable to open the key Software\Apache Software Foundation\Jakarta Isapi Redirector\2.0. The How To document ( http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/release/v2.0. 1/doc/jk/iishowto.html ) says the key as Software\Apache Software Foundation\Jakarta Isapi Redirector\1.0 Looks like the How to document is not up to date with software changes. Any Ideas. Thanks.
Re: reloadable
Hi Raja, The default behaviour setting for the class reloading is a touch on the slow side, so include a Loader in the Context that looks like this one: Context path=/myapp docBase=myapp reloadable=true Loader className=org.apache.catalina.loader.WebappLoader loaderClass=org.apache.catalina.loader.WebappClassLoader checkInterval=1 / /Context And you'll find that it will now check every second, rather than the default 15 seconds. Cheers, -- jon Raja Nasrallah wrote: Hello, I set the attribute reloadable to true in a sample context tag(Context in the sever.xml) to monitor the the WEB-INF/classes. But it didn't affect. I make change in a sample class and the server don't load this class again. I am using jakarta-tomcat-4.0.6 in winow2000 server. Should I have to do other setting to make the reloadable work. Thanks, raja -- Jon Eaves [EMAIL PROTECTED] http://www.eaves.org/jon/ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: JDK is not enough. SDK is needed
Howdy, Whoa there skippy ;) Venting is good sometimes... According to this page, it references j2se which is the JRE, the runtime. If you're using Tomcat binaries and not compiling any Java, you would think you only need the runtime libraries and not the whole SDK. http://members.ozemail.com.au/~lampante/howto/tomcat/iisnt/#1 This page above is some user's howto guide. I wouldn't count on it as the definitive reference for anything. The Jakarta site says you need the JDK, not the JRE. These definitions are uniform in their use across java.sun.com, the various apache.org sites, theserverside, jguru, many vendor sites, etc. so there is very little confusion as to which one is which. The JDK is the bigger one, containing various development tools including Javac and its tools.jar packaging required for runtime compilation of JSPs. The JRE is the smaller one. Also Jakarta's site is one of the worst sites I visited. The home page says nothing about Jakarta upfront. No intro about jakarta and what it's about. I find the Jakarta home page EXCELLENT. I've used it as a model in telling my developers, contractors, etc, how to structure their product web sites. If you scroll a bit down past the news, on the front page there is a section that explains what Jakarta is quite well: Welcome The Jakarta Project creates and maintains open source solutions on the Java platform for distribution to the public at no charge. Jakarta products are developed by and distributed through various subprojects, which are listed the SubProjects menu the left, or in the section below. Each subproject has its own team of developers and committers, and its own mailing list. All product support is provided through the subproject mailing lists. All work at Jakarta is provided a volunteer basis. There is no paid staff. Please considerate and do your homework before asking our volunteers to donate additional time and energy to your project. All active products from the Java Apache Project have been merged into the Jakarta website. A few retired projects (like JServ) are still available through the Java Apache website. nothing about Tomcat. There's no 'requirements' section. Therefore I can't find out what I need to run Tomcat. For someone who just wants to use it, The documentation for tomcat is easily accessible. The READ-ME tells you that the install and run document has requirements. The install and run document has clear, complete, and concise requirements. Every tomcat distribution also includes this documentation in the top level directory when you unpack it. the resources are hidden in the site. There's no search function and the site is not easy to navigate. I hope it wasn't developed by a developer. Web developers do not necessarily design good web pages. Not necessarily is correct. There guys, IMHO, do design excellent web pages. I've found them easy to navigate and to find what I need. There's a Search Jakarta link at the top left of the home page. I hope you've installed it all, and chilled out a bit, over the weekend. As a future reference, I would point out that historically, calm and well thought-out questions to this list tend to get more and better responses. There's a good reason most people (and believe me, a lot of people read it) chose to ignore your message. Yoav Shapira Millennium ChemInformatics -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: jasper.error.emptybodycontent.nonempty, MySQL
Eric Earnst writes: Hi all, I've read a lot of docs but over a long enough period of time that I forget most of what I read, the recent over-age newbie really applies here... I am putting together my first site and am getting the following error message from Tomcat (4.1.12-LE-jdk14): org.apache.jasper.JasperException: /pnDatabaseConnect.jsp(3,0) jasper.error.emptybodycontent.nonempty Here is the top of the file in question: %@ taglib prefix=c uri=http://java.sun.com/jstl/core; % %@ taglib prefix=sql uri=http://java.sun.com/jstl/sql; % sql:setDataSource var=PartNumDB scope=application driver=org.gjt.mm.mysql.driver url=jdbc:mysql://localhost:3306/PartNumberMaster user=Root password= /sql:setDataSource sql:query var=PartNum scope=request datasource=${PartNumDB} SELECT * FROM PartNumberMaster /sql:query I don't have a web.xml file, every one I've come up with causes Tomcat to not find my pages... I've loaded the JSTL into: C:\Jakarta\jakarta-tomcat-4.1.12-LE-jdk14\webapps\myapp\WEB-INF\lib and the TLD files into the WEB-INF directory. Thanks, Eric -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Hello Eric, i will have to admit that i'm using a tc version 4.1.12 but i cannot fathom tc w/o a web.xml file. if u r a newbie then u r taking leaps that r too big. u have crammed a lot of functinality into a jsp using the tags. this is ok 4 someone w/ a lot of background but i personally don't recommend this approach. 4 the time being if u r interested in the functionality and not the implementation then allow me to suggest that u take a more tiered approach to make ur jdbc connection and sql query: 1) lay off the tags untill u r more experienced. 2) what i mean by tier is put ur jdbc connection and sql query in a separate class or bean away from ur web content directory. i use oracle and mysql all the time this way. get the class bean to execute standalone first b4 u put it into ur directory structure. an ascii directory tree follows. 3) inspect ur build process. using ant and bulid.xml is highly recommended. 4) if u get step two above to work (separating ur web content from ur process) then allow me to suggest introducing a third leg (in technogeek this is MVC: model-view-controller). this third piece is a servlet or better yet a director servlet that handles all requests from all of ur jsp's (1 to serveral jsp's). case in point: ur jsp requests ur servlet for db info. the servlet requests info from ur class bean. the servlet sends the db info and sql query results back to the jsp. in the long run much simpler and cleaner not to mention the ability to scale this design pattern (more technogeek). an example of my directory structure follows: $TOMCAT_HOME | /webapps | /app_dir /WEB-INF | /web.xml $TOMCAT_HOME | /webapps | /app_dir /WEB-INF | /classes | /app_dir /\ / \ /\ /web /beans this is just one director. i have the directory separated to show the different file contents: web.xml is always under /WEB-INF. under /web contains: jsp's, html's, css's, etc. and under /beans contains: ordinary class files w/ constructors and getter/setter methods 4 ur web objects. also, the /beans directory or yet another aply named directory could contained serialized classes 4 even more advance data movement. this is the classic design pattern most developers have at least some familiarity: http://java.sun.com/blueprints/patterns/ or better yet just type: model-view-controler at the google prompt and start reading. hope this helps, david. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Tomcat or JBoss?
I don't know much about JBoss but it was my understanding that it was an Enterprise JavaBeans Application Server and used Tomcat or something other as Servlet container. This is from the JBoss faq: What support exists in JBoss for JSP/Servlets ? The default download contains Jetty as an integrated web container. There is also a download in which Tomcat is integrated. Other web containers can be integrated, and it is also possible to create a configuration where no web support is included. [EMAIL PROTECTED] wrote on 25.11.2002 13:52:28: I'm sure you get this question all the time, but this is not that type of question. I've been using Tomcat for a while, like a year, in a production environment. I think it's been doing fine so far. I've just got a new server to replace my current application server that's been running Tomcat. I was thinking maybe I should set this up with JBoss instead of Tomcat, because this will be production. The reason I'm thinking about doing this is one, because I'm at a stage where it would be easy to just install whatever I want and two, I've read a couple places that Tomcat is just a reference implementation. That it was not really designed to be in production. It doesn't have to be just JBoss either. I just know a little about it. Any suggestions would be great. Thank You, Justin A. Stanczak Web Manager Shake Learning Resource Center Vincennes University (812)888-5813 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: JavaMail problems on Tomcat4.0.6
Hi, So you didn't get any errors with 4.0.3 and now are getting them with 4.0.6? Would you be willing to try 4.0.6-LE and JDK 1.4.1? Minute 1: Default user is logged into mail server. See that messages are waiting. Attempt to invoke second sevlet. Exception is thrown: javax.servlet.UnavailableException: Cannot invoke default servlet through invoker This doesn't seem to be a JavaMail exception. It's generally through that you can't programmatically invoke the default servlet. What is the argument (you called it strDispatch or something like that) to the RequestDispatcher? Minute 2: Default user is logged into mail server. See that messages are waiting. Attempt to nvoke second sevlet. Exception is thrown: javax.mail.AuthenticationFailedException: Can't get lock. Mailbox in use What happens if you catch this one and retry (once)? Can you pre-clear (or unlock) the mailbox before making this call? Alternatively, can you have a mail retriever of some sort that's NOT a servlet get the mail, and have the first servlet use this mail retriever, skipping the whole RequestDispatcher.include mechanism? I know this is not an answer ;) Just suggesting an alternative design that should be easy to implement... Yoav Shapira Millennium ChemInformatics -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat or JBoss?
If you need EJB container I recommend that you set up Jboss, if you don't need it, don't do it. You must realize the fact that Tomcat is a servlet/JSP container when Jboss is a J2EE container, usually bundled with either Jetty or tomcat for servlets/jsp support. I've been using tomcat for development for about 2 years and it is in my mind one of the best servlet containers around these days, as it's very simple to configure, performes well and is quite stable, I've also been using tomcat and other application servers for production and tomcat is just doing fine there as well. What kind of improvement are you looking for in your production env over the dev-env, that you've been using ? -reynir -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 25. nóvember 2002 13:52 To: [EMAIL PROTECTED] Subject: Tomcat or JBoss? I'm sure you get this question all the time, but this is not that type of question. I've been using Tomcat for a while, like a year, in a production environment. I think it's been doing fine so far. I've just got a new server to replace my current application server that's been running Tomcat. I was thinking maybe I should set this up with JBoss instead of Tomcat, because this will be production. The reason I'm thinking about doing this is one, because I'm at a stage where it would be easy to just install whatever I want and two, I've read a couple places that Tomcat is just a reference implementation. That it was not really designed to be in production. It doesn't have to be just JBoss either. I just know a little about it. Any suggestions would be great. Thank You, Justin A. Stanczak Web Manager Shake Learning Resource Center Vincennes University (812)888-5813 -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Sun JDK 1.4 production quality?
Hi, We actually have several webapps (on separate tomcat instances) with very different data models and corresponding GC behaviors. For example, we have one webapp which actually doesn't get that much user traffic, but needs to have a lot of information cached in memory for very quick retrieval once those few users ask for it. So its old generation is about 80% of the heap. We found ConcMarkSweepGC on the old generation and parallel GC on the new generation to be very good here: JAVA_OPTS='-server -Xmx1024m -Xms768m -XX:NewSize=100m -XX:MaxNewSize=200m -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseParNewGC' But as I've mentioned many times before: these settings are very application-specific. I don't know of any way, other than experimentation and tuning with your own app, of finding the right settings for you ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: Nick Wesselman [mailto:[EMAIL PROTECTED]] Sent: Friday, November 22, 2002 4:28 PM To: Tomcat Users List Subject: Re: Sun JDK 1.4 production quality? On Friday, November 22, 2002, at 11:33 AM, Shapira, Yoav wrote: GC has markedly improved, although we did have to experiment a bit with the new GC options. What conclusions did you come to? My understanding is that ConcMarkSweepGC might be helpful for Tomcat, since you could avoid the problem of the OS gathering too many network connections for Tomcat while it's garbage collecting. Nick -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Help needed with Tomcat support for Double Byte Chars
Hi, We are using Tomcat3.3.1 and Oracle on Linux. When we enter DoubleByte Chars (CJK, GB2312) in jsp form input, Tomcat turns the characters into 's. The only way we can get around this problem now is to set the IE browser to check the temporary files everytime. Does anyone knows how to fix this problem? Many thanks. John -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat or JBoss?
Howdy, A couple of comments: 1. JBoss uses (or can use) Tomcat as its servlet/JSP container. We've used this setup in the past and like it. 2. If you need EJB support, or other J2EE features not offered by tomcat stand-alone, JBoss would be a good way to go. 3. While the initial thought behind tomcat was a pure reference implementation, at a time when none existed, I don't think this is the case now. It's still a reference implementation, used by Sun and JBoss etc. However, its performance is quite good, and it supports several key features above and beyond the spec. Just my $.02, Yoav Shapira Millennium ChemInformatics -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, November 25, 2002 8:52 AM To: [EMAIL PROTECTED] Subject: Tomcat or JBoss? I'm sure you get this question all the time, but this is not that type of question. I've been using Tomcat for a while, like a year, in a production environment. I think it's been doing fine so far. I've just got a new server to replace my current application server that's been running Tomcat. I was thinking maybe I should set this up with JBoss instead of Tomcat, because this will be production. The reason I'm thinking about doing this is one, because I'm at a stage where it would be easy to just install whatever I want and two, I've read a couple places that Tomcat is just a reference implementation. That it was not really designed to be in production. It doesn't have to be just JBoss either. I just know a little about it. Any suggestions would be great. Thank You, Justin A. Stanczak Web Manager Shake Learning Resource Center Vincennes University (812)888-5813 -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Protectind directory
Hi David, Thank for help. I found a solution. Added in WEB-INF/web.xml a directive: security-constraint and tomcat-users.xml a user, password and role. Make a test and ok. See you. Osvâneo A. Ferreira - Original Message - From: David Brown [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, November 25, 2002 10:13 AM Subject: Re: Protectind directory Osvâneo A. Ferreira writes: Hi, I want protect a directory in my structure ( http://localhost/directory ) I use Apache+Tomcat and all test, it´s failed. Try .htaccess of apache, but nothing. Try permission org.apache.naming.JndiPermission jndi://localhost/examples/* , but nothing. How I do ? Osvâneo A. Ferreira Hello, u need to supply more info (how u build is important): OS: TOMCAT VERSION: PLATFORM: ENVIRONMENT: NETWORK: BUILD: ant (build.xml), scripts (.sh , .bat, manual, etc.) if u want tomcat directory protection don't fiddle around with apache (i assume u mean httpd.conf). the tomcat instructions r very clear if u downloaded: jakarta-tomcat-x.y.z-src. u have to build a directory w/ WEB-INF and its own web.xml file (preferably using a war/jar file) where u define the protected directory something like this: $TOMCAT_HOME | /webapps |protected_dir | /WEB-INF | /web.xml u must be able to generate a war file and put it in your webapps directory and then bounce ur tomcat server (i prefer to use: http://localhost/manager/install?path=protected_dir). get the src as described above and read thoroughly and carefully. hope this helps, david. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Tomcat NT Service Runtime.exec()
Hey everybody, Thanks for all of the replies. I was actually testing this code on the actual production web server (which I shouldn't have been doing in the first place) and when I found out that I was unable to execute any programs while logged on as myself I assumed it was a shortcoming of running Tomcat as a service. However if I run the same JSP page using a browser on another computer, it works fine. Rodrigo and Jacob were right in that checking the Allow service to interact with desktop this JSP page will properly execute any programs or shell commands while I am logged onto the web server computer as a user thereby allowing me to test that my code is functioning correctly. Newbie mistake. Anyways, thanks to everyone who replied. --- Rodrigo Ruiz [EMAIL PROTECTED] wrote: At least, doing so you should be able to test you are doing things well. We have developed a service (an internal project, not Tomcat related), and it's able to execute any program, including shells. Check the security policy used by your Tomcat service. Perhaps you are not allowed to call the Runtime.exec() method. - Original Message - From: Jacob Kjome [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, November 25, 2002 5:29 PM Subject: Re: Tomcat NT Service Runtime.exec() For each NT service, there is an option called Allow service to interact with desktop under Properties / Log On. Check that option and what you ask for should work just fine. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Mail Plus Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: How to configure Apache2.0.43 and Tomcat4.1.12 on Win2k
There are two sets of configuration that need to be done to get this working. Apache Configuration The following needs to be added to the httpd.conf for Apache: (assuming the dll has been put into the modules directory) LoadModule jk2_module modules/mod_jk2.dll Also, in the same directory you need a workers2.properties file. Below is an example. --- below this line # Example socket channel, override port and host. [channel.socket:localhost:8009] port=8009 host=127.0.0.1 # define the worker [ajp13:localhost:8009] channel=channel.socket:localhost:8009 [uri:/examples/*] worker=ajp13:localhost:8009 -- above this line Tomcat Configuration tomcat_home/conf/server.xml In the server.xml file make sure that you have the following connector uncommented. (Or add this is you need if there isn't one!) Connector className=org.apache.coyote.tomcat4.CoyoteConnector acceptCount=10 bufferSize=2048 connectionTimeout=2 debug=0 enableLookups=true maxProcessors=75 minProcessors=5 port=8009 protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler proxyPort=0 redirectPort=8443 scheme=http secure=false tcpNoDelay=true useURIValidationHack=false Factory className=org.apache.catalina.net.DefaultServerSocketFactory/ /Connector tomcat_home/conf/jk2.properties My jk2.properties doesn't contain anyting at all (everything is commented out) so the defaults are used (e.g. port 8009). Using the above you should be able to get to the examples bundled with tomcat, assuming that you could get to the examples using http on port 8080. Hope this helps Malcolm -Original Message- From: Kaustuv Sharma [mailto:[EMAIL PROTECTED]] Sent: 23 November 2002 05:49 To: Tomcat Users List Subject: How to configure Apache2.0.43 and Tomcat4.1.12 on Win2k Hi, I am new to Apache and I am trying to configure Apache2.0.43 and Tomcat4.1.12 on win2k. I have downloaded mod_jk2.dll, but i am not being able to run my jsp application. I am not being able to configure the connector. I tried the docs in the jakarta site, but it has not been much help. I also search trhough the archives but there too I didn't get much help. If anyone can please direct me to some good docs or if somebody can help me out, it will be a great help. Regards, Kaustuv -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat or JBoss?
Yes, I say that. It even has a graphic with Tomcat in it. I assumed they used Tomcat, but I didn't know if there was more to it or if they just used it straight out of the box. I have no need for EJB support. Well I guess I'll just stick with Tomcat. Thanks for the info everyone!!! Thank You, Justin A. Stanczak Web Manager Shake Learning Resource Center Vincennes University (812)888-5813 |-+ | | Shapira, Yoav | | | Yoav.Shapira@mpi| | | .com| | || | | 11/25/02 09:25 AM| | | Please respond to| | | Tomcat Users| | | List| | || |-+ --| | | | To: Tomcat Users List [EMAIL PROTECTED] | | cc: | | Subject: RE: Tomcat or JBoss? | --| Howdy, A couple of comments: 1. JBoss uses (or can use) Tomcat as its servlet/JSP container. We've used this setup in the past and like it. 2. If you need EJB support, or other J2EE features not offered by tomcat stand-alone, JBoss would be a good way to go. 3. While the initial thought behind tomcat was a pure reference implementation, at a time when none existed, I don't think this is the case now. It's still a reference implementation, used by Sun and JBoss etc. However, its performance is quite good, and it supports several key features above and beyond the spec. Just my $.02, Yoav Shapira Millennium ChemInformatics -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, November 25, 2002 8:52 AM To: [EMAIL PROTECTED] Subject: Tomcat or JBoss? I'm sure you get this question all the time, but this is not that type of question. I've been using Tomcat for a while, like a year, in a production environment. I think it's been doing fine so far. I've just got a new server to replace my current application server that's been running Tomcat. I was thinking maybe I should set this up with JBoss instead of Tomcat, because this will be production. The reason I'm thinking about doing this is one, because I'm at a stage where it would be easy to just install whatever I want and two, I've read a couple places that Tomcat is just a reference implementation. That it was not really designed to be in production. It doesn't have to be just JBoss either. I just know a little about it. Any suggestions would be great. Thank You, Justin A. Stanczak Web Manager Shake Learning Resource Center Vincennes University (812)888-5813 -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Problem with Tomcat 4.1.12 and Oracle Lite JDBC Driver
Hello, I am trying to use the Oracle Lite JDBC driver from my webapp running in Tomcat 4.1.12. Whenever the code attempts to make a connection, there is JVM native code error detailed below. I have found this to occur every time for Tomcat 4.0.6 and 4.1.12 on NT 4 and Windows 2000. The strange thing is that the same Oracle Lite JDBC URL works fine from other Java apps. The whole webapp also works okay in Oracle web server AND Tomcat 3.3.1. I suspect this may have something to do with JNI. Is there some configuration I may be missing? Any ideas? Regards, Adam Hudspith. Error: Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x6D360274 Function=[Unknown.] Library=C:\j2sdk1.4.0_01\jre\bin\client\jvm.dll NOTE: We are unable to locate the function name symbol for the error just occurred. Please refer to release documentation for possible reason and solutions. Current Java thread: at oracle.lite.poljdbc.LiteEmbResultSet.jniGetDataTimestamp(Native Method) at oracle.lite.poljdbc.LiteEmbResultSet.getVal(Unknown Source) at oracle.lite.poljdbc.POLJDBCResultSet.getTimestamp(Unknown Source) at oracle.lite.poljdbc.POLJDBCResultSet.getObject(Unknown Source) at oracle.lite.poljdbc.POLJDBCResultSet.getObject(Unknown Source) at oracle.jbo.server.BaseSQLBuilderImpl.doLoadFromResultSet(BaseSQLBuilderImpl. java:815) at oracle.jbo.server.AttributeDefImpl.loadFromResultSet(AttributeDefImpl.java:1 406) at oracle.jbo.server.ViewRowImpl.populate(ViewRowImpl.java:1819) at oracle.jbo.server.ViewDefImpl.createInstanceFromResultSet(ViewDefImpl.java:8 57) at oracle.jbo.server.ViewObjectImpl.createRowFromResultSet(ViewObjectImpl.java: 2029) at oracle.jbo.server.ViewObjectImpl.createInstanceFromResultSet(ViewObjectImpl. java:1963) at oracle.jbo.server.QueryCollection.populateRow(QueryCollection.java:1279) at oracle.jbo.server.QueryCollection.fetch(QueryCollection.java:1165) - locked 0383D2B8 (a oracle.jbo.JboSyncLock) at oracle.jbo.server.QueryCollection.get(QueryCollection.java:800) at oracle.jbo.server.ViewRowSetImpl.getRow(ViewRowSetImpl.java:2538) at oracle.jbo.server.ViewRowSetIteratorImpl.doFetch(ViewRowSetIteratorImpl.java :2154) at oracle.jbo.server.ViewRowSetIteratorImpl.ensureRefreshed(ViewRowSetIteratorI mpl.java:2018) - locked 0383D2B8 (a oracle.jbo.JboSyncLock) at oracle.jbo.server.ViewRowSetIteratorImpl.refresh(ViewRowSetIteratorImpl.java :2218) at oracle.jbo.server.ViewRowSetImpl.notifyRefresh(ViewRowSetImpl.java:1503) at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:527) - locked 0383D2B8 (a oracle.jbo.JboSyncLock) at oracle.jbo.server.ViewRowSetIteratorImpl.ensureRefreshed(ViewRowSetIteratorI mpl.java:2004) - locked 0383D2B8 (a oracle.jbo.JboSyncLock) at oracle.jbo.server.ViewRowSetIteratorImpl.hasNext(ViewRowSetIteratorImpl.java :1406) - locked 0383D2B8 (a oracle.jbo.JboSyncLock) at oracle.jbo.server.ViewRowSetImpl.hasNext(ViewRowSetImpl.java:2137) at oracle.jbo.server.ViewObjectImpl.hasNext(ViewObjectImpl.java:4324) at com.candcuk.delphi.web.model.utils.RowList.init(RowList.java:32) at com.candcuk.infrastructure.web.model.BC4JTableModel.init(BC4JTableModel.ja va:28) at com.candcuk.infrastructure.web.model.BC4JRowTableModel.init(BC4JRowTableMo del.java:22) at com.candcuk.delphi.web.portal.model.PlanSetsTableModel.init(PlanSetsTableM odel.java:26) at com.candcuk.delphi.web.portal.view.MyPlansPage.init(MyPlansPage.java:41) at com.candcuk.delphi.web.portal.controller.MyPlansPageAction.perform(MyPlansPa geAction.java:29) at com.candcuk.infrastructure.web.controller.ControllerServlet.doProcessRequest (ControllerServlet.java:166) at com.candcuk.infrastructure.web.controller.ControllerServlet.doPost(Controlle rServlet.java:81) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at
Re: reloadable
Hi, But I can't start Tomcat after I put the following to server.xml, and the error msg can't be logged. Context path=/test docBase=test reloadable=true Loader className=org.apache.catalina.loader.WebappLoader loaderClass=org.apache.catalina.loader.WebappClassLoader checkInterval=1 / /Context James - Original Message - From: Jon Eaves [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, November 25, 2002 8:59 AM Subject: Re: reloadable Hi Raja, The default behaviour setting for the class reloading is a touch on the slow side, so include a Loader in the Context that looks like this one: Context path=/myapp docBase=myapp reloadable=true Loader className=org.apache.catalina.loader.WebappLoader loaderClass=org.apache.catalina.loader.WebappClassLoader checkInterval=1 / /Context And you'll find that it will now check every second, rather than the default 15 seconds. Cheers, -- jon Raja Nasrallah wrote: Hello, I set the attribute reloadable to true in a sample context tag(Context in the sever.xml) to monitor the the WEB-INF/classes. But it didn't affect. I make change in a sample class and the server don't load this class again. I am using jakarta-tomcat-4.0.6 in winow2000 server. Should I have to do other setting to make the reloadable work. Thanks, raja -- Jon Eaves [EMAIL PROTECTED] http://www.eaves.org/jon/ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: apache and tomcat and a webapp
We switched from JServ to tomcat about 2 months ago. for our production setup we use mod_webapp and set the appBase to be the apache web_root. Connector className=org.apache.catalina.connector.warp.WarpConnector port=8008 minProcessors=5 maxProcessors=75 enableLookups=false appBase=/var/www/html acceptCount=10 debug=0/ This means that every thing goes through apache (a must) and that tomcat serves all the content (Its all servlets and JSP) Which may not be at all what you want. --- Ron Smits [EMAIL PROTECTED] wrote: Let me try and be more specific :) First of all, if I get all to work the current setup with JServ will disappear and I am testing this in a test environment (Vmware) So let me see if I can chop my questions up in different parts The application is being developed using tomcat 4.1.12 running standalone. The development is going nice and contacting the application on localhost:8080/application is perfect. Question 1: I want the application to be the root of the tomcat. Meaning that in my test environment when I contact localhost:8080 I get the application and not the standard Tomcat page. I edited the server.xml and changed the Root context to point to the application: Context path= docBase=application debug=0/ I even removed the ROOT directory. When starting this up going to localhost:8080 will give me a No context configured to process this request If I go to localhost:8080/application my application is there. So how do I change this? Because the current server that needs to be replaced is running several domains in a virtual setup (and very nicely too thanks to apache). My idea is to remove the current 1.3 install with JServ and replace it with apache 2.0.43 that will run all the virtual hosts and will talk to tomcat for the web application (see question 1) that will be in a new virtual host. So after I have been able to get question 1 answered (replacing the root context with my application) the next question will be what the best way is of setting mod_jk up to serve up the application when apache gets a request for this application. I hope this is more clearer Ron PS to fullfill the list: OS linux version 2.4.19 TOMCAT 4.1.12 JDK: jsdk1.4.1_1 Hardware never enough but it is a big enough intel box :) Network: running fine, thank you :) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Mail Plus Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Applet from servlet
Andreas Probst writes: Hi David, don't put the class files and jars, which you need for an applet, below WEB-INF. Tomcat won't serve these files to the user's browser. Just put these files in your webapp's directory. If you need the same classes also on the server, than you need to have two copies of them. Hope this solves your problem. Andreas On 24 Nov 2002 at 10:07, David Brown wrote: Hello tc-user, has anyone successfully invoked an applet from a servlet using: response.sendRedirect(url) where url=http://localhost/somehtml.html w/ the APPLET/APPLET tag embedded? my efforts so far result in: Exception: java.lang.ClassNotFoundException: com.x.y.MyApplet.class. i have repackaged the applet in different ways to no avail. i am using jakarta-tomcat installed out-of-box and using the same ant build infrastructure as the examples and demos: $TOMCAT_HOME | | /bin /classes /common /conf /lib /logs /server /temp /webapps /work $TOMCAT_HOME | | /webapps | /myapplication | /manager | /ROOT | /examples | /webdav $TOMCAT_HOME | | /webapps | /index.html | /META-INF | /WEB-INF $TOMCAT_HOME | | /webapps | /WEB-INF | /web.xml | /classes $TOMCAT_HOME | | /webapps | /classes | /com | /myapplication | /web /beans i can place any number of servlets in /web and any number of java bean or ordinary class files in /beans and reference their constructors, variables and methods from servlets in /web. however, no amount of packaging or lack of packaging of an applet stored anywhere in this directory tree referenced w/ APPLET/APPLET in the index.html (see above) will work (ClassNotFoundException). TOMCAT VERSION: 4.0.6 JDK: 1.3.1_02 OS: RH7.2 NETWORK: linux box as router ENVIRONMENT: TOMCAT_HOME, JDK_HOME BUILD: ant build.xml i welcome any and all ideas, suggestions, rants etc.. thanx, david. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Hello Andreas, thanx 4 the accurate and speedy reply. i (on a hunch) put my applet class under /webapps and can now load which ur message confirms (thanx). the history of this applet started out as a java standalone which works perfectly from any remote client. however to avoid downloads and client compiles i decided to convert the standalone to an applet. the applet depends on classes12.jar (or classes12.zip if on windoz). again, class not found exception because of classes found in classes12.jar. again, on a hunch, i unpacked the jar under /webapss along w/ the applet class (i know this is a poor solution but it helped throw light). when the applet loads i can see that i completes some of the init() but eventually hangs w/ the following: Exception: java.util.MissingResourceException: Can't find bundle for basename Connection.locale en_US i know the best solution is for the applet to find the packed jar and then all should be ok but how? i have put the jar everywhere: classpath, build.xml property, $TOMCAT_HOME/lib, $TOMCAT_HOME/common/lib, etc.. any and all ideas, references, rants and raves welcomed. david. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: help with multilingual JSP sites pls. using a Filter to rewrite the URL ?
One way you can do this is using property files. Prop_ file name _ language code.properties So for say abc.jsp , you have abc_en.properties and abc_fr.properties. At comple time the JSP calls a class you write at server which gives say % String languageCode = ObjectName.getLaguageCode(param 1 ,param 2); % Then all JSP elements are picked from there. Thanks Tript Singh - Original Message - From: Stephen Riek [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Sunday, November 24, 2002 6:42 PM Subject: help with multilingual JSP sites pls. using a Filter to rewrite the URL ? I'd like for a request to webapp/en/Folder/File to be sent to webapp/Folder/File but with a parameter 'lang' set to 'en'. Likewise, a request to webapp/fr/Folder/File to be sent to webapp/Folder/File but with a parameter 'lang' set to 'fr'. Is this possible with Filters? If not, is there any way to accomplish this within Tomcat so that it works for any number of directories and subdirectories. The reason I want to do this is to avoid copying/pasting an entire sitemap to support a second language - I know that some people create a site in English then copy/paste the directory tree into another directory (eg. '/fr', '/de/', '/cn/') to support a second language but this is not scalable and difficult to maintain. How do you circumvent doing such things ? Other mechanisms I've looked at are Apache rewrite rules but they're very complicated and I'd also like to make this work independent of Apache, and preferably for all servlet engines. Stephen. - With Yahoo! Mail you can get a bigger mailbox -- choose a size that fits your needs -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Page Statistics for Tomcat?
What log format do you use for awstats? #4? Thank You, Justin A. Stanczak Web Manager Shake Learning Resource Center Vincennes University (812)888-5813 |-+ | | Reynir Hübner| | | reynir@hugsmidja| | | n.is| | || | | 11/25/02 08:45 AM| | | Please respond to| | | Tomcat Users| | | List| | || |-+ --| | | | To: Tomcat Users List [EMAIL PROTECTED] | | cc: | | Subject: RE: Page Statistics for Tomcat? | --| Hi, I really like awstats, it's in sourceforge... I recommend that one : http://sourceforge.net/projects/awstats/ Hope it helps [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 25. nóvember 2002 13:41 To: [EMAIL PROTECTED] Subject: Page Statistics for Tomcat? Hi, I was wondering if someone could advise me on a good tool to show statistics for Tomcat. Something like webalizer. I'm going to look into webalizer, but I wanted to see if anyone had something better. Thank You, Justin A. Stanczak Web Manager Shake Learning Resource Center Vincennes University (812)888-5813 -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Discrepancies between servlets and JSP on tomcat in handling UTF-8?
Interesting. I have encountered a similiar problem. I have a servlet that connects to an XML application. The response from the application is read using a SAX reader, and I encountered an error if the response contained any non-ASCII characters (ü and ß in particular, as I am currently working in Germany) I did a little investigation, and found that the content type was text/xml; charset=ISO-5591-1 and the xml tag was ?xml version=1.0 encoding=UTF-8? Now the XML I received in my servlet was ISO-5591-1 and not UTF-8, so I have contacted the application developers to say Please fix your application because the XML I receive is not encoded as UTF-8, it is ISO-5591-1. I have a work-round, where I read the input using an ISO-8859-1 InputStreamReader, and get the SAXReader to use this as the input. This is working fine as a temporary measure. The original message in this thread suggests to me that this could actually be a tomcat problem and not necessarily a problem with the application I connect to. There is clearly a discrepancy between the encoding type and the charset, and the SAX reader is using the value of the encoding attribute to read the text. Is tomcat doing something with the HTTP text, possibly converting it from UTF-8 into ISO-5591-1? I confess, I've not tried this servlet out in other servlet containers, just tomcat version 4.1.12, running on Windows Andy -Original Message- From: Stephen Riek To: Tomcat Users List Sent: 24/11/2002 23:37 Subject: Discrepancies between servlets and JSP on tomcat in handling UTF-8 ? I have a Form which is displayed in UTF-8. The form contains just one editable field, namely textarea name=test/textarea. When I submit this to a JSP: I can extract the value of the string using, % String s = request.getParameter(test); % I then write the value of s to a UTF-8 file with this % PrintWriter o = new PrintWriter(new OutputStreamWriter(new FileOutputStream(output.html), UTF-8)); o.write(msg); o.flush(); o.close(); % Opening the file output.html with a browser, I see that the original UTF-8 text is still perfectly intact and encoded as recognizable UTF-8. Hooray, it works. But when I submit the form to a servlet -=- If I submit the form to a servlet, and try the same code, String s = request.getParameter(test); PrintWriter o = new PrintWriter(new OutputStreamWriter(new FileOutputStream(output.html), UTF-8)); o.write(msg); o.flush(); o.close(); Then the text is no longer recognizable. Same if I try to output 's' to the browser (after setting ContentTYpe to text/html;charset=uTF-8) It WILL however work if I do the following: String s = new String(request.getParameter(test).getBytes(8859_1), UTF-8); This is screwing with my head. First off, I thought that all JSP become servlets anyway so there should be no discrepancy between the first and second sets of code. Secondly, Tomcat seems pretty inconsistent in that s=request.getParameter() works in a JSP but not in a servlet. Has anybody else noticed this ? Or can anybody account for this behaviour ? Thank you, Stephen. - With Yahoo! Mail you can get a bigger mailbox -- choose a size that fits your needs -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
standard way to include XML resources
Hi, Can someone point me to an example showing how to use a custom XML file as a ressource in Tomcat ? Is it possible to use the package org.apache.tomcat.util.xml for this purpose ? Thanks, Thomas -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Problems with Tomcat 4.1.12 and FORM based authentication
Quenten Van Egeren writes: I'm having the following problem when using FORM based authentication with Tomcat 4.1.12 : When I bring up a new browser window, and go to a protected page (under /do/) I am redirected to the login.jsp as I should be. If I enter the correct username / password, I am logged in correctly and forwarded back to the page I was trying to access. This all works correctly. However, if I enter garbage for a username and password, I am redirected to the error.jsp page, which is also correct. I then click the link on the error.jsp page that takes me back to the login.jsp page and try to login again with a valid username/password combo, and it instantly redirects me back to the error.jsp page. This isn't correct (as far as I can tell) since it should have successfully authed me the second time into the page. I was wondering if anyone else had run into this issue, or if there was something I was missing in one of the config files or my web.xml file. I am also using struts, but I don't think that has anything to do with this error, since it appears to be a j_security_check setup issue somehow. Any help would be greatly appreciated. Thanks, Quenten Here is my code : + my application web.xml + security-constraint display-nameSecurity Constraint/display-name web-resource-collection web-resource-nameProtected Area/web-resource-name url-pattern/do/*/url-pattern http-methodGET/http-method http-methodPOST/http-method http-methodPUT/http-method /web-resource-collection auth-constraint role-nameeadmin/role-name role-namemember/role-name /auth-constraint /security-constraint login-config auth-methodFORM/auth-method realm-nameMy JDBCRealm/realm-name form-login-config form-login-page/login.jsp/form-login-page form-error-page/error.jsp/form-error-page /form-login-config /login-config security-role descriptionadmin role./description role-nameeadmin/role-name /security-role security-role descriptionmember role./description role-namemember/role-name /security-role + tomcat server.xml + Realm className=org.apache.catalina.realm.JDBCRealm debug=50 driverName=org.postgresql.Driver connectionURL=jdbc:postgresql://localhost:5432/mydb?user=postgres:password=postgres userTable=members userNameCol=login userCredCol=password userRoleTable=member_roles_view roleNameCol=user_role / + my login.jsp + html head titleLogin Page for Examples/title body bgcolor=white form method=POST action='%= response.encodeURL(j_security_check) %' table border=0 cellspacing=5 tr th align=rightUsername:/th td align=leftinput type=text name=j_username/td /tr tr th align=rightPassword:/th td align=leftinput type=password name=j_password/td /tr tr td align=rightinput type=submit value=Log In/td td align=leftinput type=reset/td /tr /table /form /body /html + my error.jsp + html head titleError Page For Examples/title /head body bgcolor=white Invalid username and/or password, please try a href='%= response.encodeURL(login.jsp) %'again/a. /body /html __ Do you Yahoo!? Yahoo! Mail Plus Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Hello Quenten, if ur web.xml is: $TOMCAT_HOME | /webapps | /do | /WEB-INF then change ur web.xml tag: security-constraint url-pattern/do/* to only: url-pattern*/url-pattern hope this helps, david. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Problems with Apache 2.0.43 and Tomcat4 on Linux7.3
Hello everybody, i'm new to these topics and i'm in deep trouble trying to integrate Apache 2.0.43 an Tomcat4. I have done as follows: - downloaded from the Apache site the mod_jk-2_0_42.so; - have added the following line in my server.xml file: Listener className=org.apache.ajp.tomcat4.config.ApacheConfig modJk=/usr/local/apache2/modules/mod_jk-2_0_42.so workersConfig=/var/tomcat4/conf/jk/workers.properties jkDebug=info jkLog=/var/tomcat4/logs/mod_jk.log/ and after the host name=localhost... tags Listener className=org.apache.ajp.tomcat4.config.ApacheConfig append=true / - in ($TOMCAT_HOME)/conf/jk i put a workers.properties file with this content: workers.tomcat_home=/var/tomcat4 workers.java_home=$(JAVA_HOME) ps=\ - restarting Tomcat it creates a new directory : ($TOMCAT_HOME)/conf/auto containing a new file: mod_jk.conf with the following lines: IfModule !mod_jk.c LoadModule jk_module /usr/local/apache2/modules/mod_jk-2_0_42.so /IfModule JkWorkersFile /var/tomcat4/conf/jk/workers.properties JkLogFile /var/tomcat4/logs/mod_jk.log JkLogLevel info VirtualHost localhost ServerName localhost JkMount /webdav ajp13 JkMount /webdav/* ajp13 JkMount /admin ajp13 JkMount /admin/* ajp13 JkMount /tomcat-docs ajp13 JkMount /tomcat-docs/* ajp13 JkMount /examples ajp13 JkMount /examples/* ajp13 JkMount /manager ajp13 JkMount /manager/* ajp13 JkMount /CDS ajp13 JkMount /CDS/* ajp13 JkMount /liste ajp13 JkMount /liste/* ajp13 JkMount /liste-1 ajp13 JkMount /liste-1/* ajp13 /VirtualHost - i copied the lines of this file in the httpd.conf file after the last LoadModule line - i restarted the apache web server and i get the following messages in the Apache's error_log : [Mon Nov 25 16:34:33 2002] [notice] caught SIGTERM, shutting down [Mon Nov 25 16:37:33 2002] [notice] Apache/2.0.43 (Unix) mod_jk/1.2.0 configured -- resuming normal operations [Mon Nov 25 16:49:50 2002] [notice] caught SIGTERM, shutting down [Mon Nov 25 16:50:29 2002] [notice] Apache/2.0.43 (Unix) mod_jk/1.2.0 configured -- resuming normal operations [Mon Nov 25 16:51:15 2002] [notice] caught SIGTERM, shutting down [Mon Nov 25 16:52:40 2002] [notice] Apache/2.0.43 (Unix) mod_jk/1.2.0 configured -- resuming normal operations - i also have a file workers2.properties(in the same directory as mod_jk-2_0_42.so) like this: [shm] file=${serverRoot}/logs/shm.file size=1048576 # Example socket channel, override port and host. [channel.socket:localhost:8009] port=8009 host=127.0.0.1 # define the worker [ajp13:localhost:8009] channel=channel.socket:localhost:8009 # Uri mapping [uri:/examples/*] worker=ajp13:localhost:8009 Is the approach correct or not? Is there anything right in what i did? :-) I hope that someone will help me, i'm getting mad Thanks in advance! Greetings. Mauro Brandle -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Page Statistics for Tomcat?
I think tomcat is set to combined, you could also create your own pattern in tomcat, but the string being used in awstats is : LogFormat = %host %other %logname %time1 %methodurl %code %bytesd Hope it helps -reynir -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 25. nóvember 2002 15:35 To: Tomcat Users List Subject: RE: Page Statistics for Tomcat? What log format do you use for awstats? #4? Thank You, Justin A. Stanczak Web Manager Shake Learning Resource Center Vincennes University (812)888-5813 |-+ | | Reynir Hübner| | | reynir@hugsmidja| | | n.is| | || | | 11/25/02 08:45 AM| | | Please respond to| | | Tomcat Users| | | List| | || |-+ - -| | | | To: Tomcat Users List [EMAIL PROTECTED] | | cc: | | Subject: RE: Page Statistics for Tomcat? | - -| Hi, I really like awstats, it's in sourceforge... I recommend that one : http://sourceforge.net/projects/awstats/ Hope it helps [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 25. nóvember 2002 13:41 To: [EMAIL PROTECTED] Subject: Page Statistics for Tomcat? Hi, I was wondering if someone could advise me on a good tool to show statistics for Tomcat. Something like webalizer. I'm going to look into webalizer, but I wanted to see if anyone had something better. Thank You, Justin A. Stanczak Web Manager Shake Learning Resource Center Vincennes University (812)888-5813 -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Resource leak with a DBCP BasicDataSource?
Hi, We're using a connection pool based on a DBCP 1.0 BasicDataSource, set up through our Tomcat 4.0 server.xml file. Every so often the retrieval of connections from the pool slows down to a snail's pace. We added some trace to the code which gets and releases connections to time how long it takes to get a connection, and also to see how many connections are active/idle from moment to moment. The retrieval of connections sometimes takes far longer than the maxWait parameter setting. That's a question in itself, but the more interesting thing is that at those times the trace code indicates that there are plenty of connections idle (150 out of a pool of 275). I've read accounts of people managing very large MySQL connection pools with DBCP and BasicDataSource, even needing to use the autoReconnect parameter to restart the connections after eight hours. We're lucky to get three hours out of the app before needing to restart. I would be the first to blame a simple resource leak, ie connections not being properly closed; but the fact that the number of idle connections is so high suggests that something else is afoot. What are we doing wrong? Thanks in advance, Jerry Gaines PS Relevant excerpt from server.xml ResourceParams defining the data source. The validation query SELECT 1 is probably not ANSI SQL, but it works in the version of MySQL we're using. parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter namemaxActive/name value270/value /parameter parameter namemaxIdle/name value250/value /parameter parameter namemaxWait/name value1/value /parameter parameter namevalidationQuery/name valueSELECT 1/value /parameter parameter nameremoveAbandoned/name valuetrue/value /parameter parameter nameremoveAbandonedTimeout/name value120/value /parameter parameter namedriverClassName/name valueorg.gjt.mm.mysql.Driver/value /parameter
RE: reloadable [bayes][adr]
Hello, Thanks you, it works raja -Original Message- From: Jon Eaves [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 10:28 PM To: Tomcat Users List Subject: Re: reloadable [bayes][adr] Importance: Low Hi Raja, The default behaviour setting for the class reloading is a touch on the slow side, so include a Loader in the Context that looks like this one: Context path=/myapp docBase=myapp reloadable=true Loader className=org.apache.catalina.loader.WebappLoader loaderClass=org.apache.catalina.loader.WebappClassLoader checkInterval=1 / /Context And you'll find that it will now check every second, rather than the default 15 seconds. Cheers, -- jon Raja Nasrallah wrote: Hello, I set the attribute reloadable to true in a sample context tag(Context in the sever.xml) to monitor the the WEB-INF/classes. But it didn't affect. I make change in a sample class and the server don't load this class again. I am using jakarta-tomcat-4.0.6 in winow2000 server. Should I have to do other setting to make the reloadable work. Thanks, raja -- Jon Eaves [EMAIL PROTECTED] http://www.eaves.org/jon/ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Tomcat Connector JK2 + Apache + SSL
Hello group. I'm not able to configure Apache + SSL with Tomcat to make available to servlets the SSL data, such like are returned by request.getRemoteUser() function (always return NULL). Apache runs correctly with HTTPS, but Tomcat no. Any idea? - José Antonio Tarifa Lorenzo Departamento de Desarrollo Compañía Operadora del Mercado Español de Electricidad, S.A. c/Alfonso XI, 6 4ª Planta. 28014 Madrid email: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -
Tomcat 4.1.12 Logs??
Hi: I am running Tomcat 4.1.12 alongside IIS 5.0. I have no installation problems, but what I'd like to know is how to set up my logs. In all previous versions of Tomcat I observed Tomcat logging access details (complete HTTP requests made) in files like localhost_accesslog_***.txt, but in 4.1.x I havent seen these files being created in $CATALINA_HOME/logs. Do we need to set it up? If so how? If not where are these logs? Thanks Prashanth __ Do you Yahoo!? Yahoo! Mail Plus Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Tomcat Connector JK2 + Apache + SSL
SAG - Jose Antonio Tarifa writes: Hello group. I'm not able to configure Apache + SSL with Tomcat to make available to servlets the SSL data, such like are returned by request.getRemoteUser() function (always return NULL). Apache runs correctly with HTTPS, but Tomcat no. Any idea? - José Antonio Tarifa Lorenzo Departamento de Desarrollo Compañía Operadora del Mercado Español de Electricidad, S.A. c/Alfonso XI, 6 4ª Planta. 28014 Madrid email: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] - Hello, have u uncommented the ssl connector in server.xml? what version of tc? what version of apache? what platform? os? have u configured mod_ssl and JkMount in httpd.conf? many variables that can break ssl between apache and tc. hope this helps, david. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Over-aged Newbie needs some help
-Original Message- From: Michele Emmi [mailto:[EMAIL PROTECTED]] Sent: Saturday, November 23, 2002 9:27 PM To: [EMAIL PROTECTED] Subject: Re: Over-aged Newbie needs some help But if he is an over-aged newbie he might prefer book over reading off a computer screengod knows this cough over-aged newbie does! I am reading: Apache Jarkart-Tomcat by Goodwill Sun one programming by Mogha and Bhargava I have been reading Core Servlets which is a free book online (I download and print the PDFs) at http://pdf.coreservlets.com/. It's a pretty good book. There is another book that I was considering taking a look at and I wonder if anyone could share their thoughts on it -- a New Riders book called Java for the Web with Servlets, JSP, and EJB: A Developer's Guide to J2EE Solutions by Budi Kurniawan http://www.amazon.com/exec/obidos/ASIN/073571195X/qid=1038241284. It looks good, and more up to date than Core Servlets. The reviews say there are code errors, but since I feel somewhat comfortable with JSP/servlets I hope that this won't be too much of an obstacle Erik -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: help with multilingual JSP sites pls. using a Filter to rewrite the URL ?
Sorry, I'm not making myself clear here. My JSPs do exactly as you suggest so that I have one JSP serving up French and English pages, depending on the language that the user selected on my site. Here is the problem explained very simply. I have a sitemap as follows: /en -- /Products -- Toys/index.jsp -- Decoration/index.jsp /fr -- /Products -- /Toys/index.jsp -- /Decoration/index.jsp As you can see, this is braindead. If I wish the functionality of the English section of the site to be the same as that of the French part of the site, then any change to a JSP in the 'en' part must be repeated within the 'fr' site. This is not scalable and is tedious. Instead, it would be much better if I had one site structure which served up the whole site. /Products -- /Toys/index.jsp -- /Decoration/index.jsp Any changes to functionality only have to be made in one place and both the french viewers and english viewers will experience the same user experience, just in different languages. (I use the properties files as you suggest to serve up different languages). The problem however is how does /Products/Toys/index.jsp know whether the user is viewing in English or French ? The easy way would be to have the user select a language on entering the site and then store the language preference in a cookie which I check before serving up pages. However, users may access the site from a search engine or from direct URLs due to promotions. I would like a request for /en/Products/Toys/index.jsp to be sent to /Products/Toys/index.jsp but with a 'lang' parameter set to 'en'. Likewise for the french part of the site. Surely somebody has had to encounter this sort of problem in dealing with pan-European sites ? Stephen. Triptpal Singh Lamba [EMAIL PROTECTED] wrote:One way you can do this is using property files. Prop_ file name _ language code.properties So for say abc.jsp , you have abc_en.properties and abc_fr.properties. At comple time the JSP calls a class you write at server which gives say String languageCode = ObjectName.getLaguageCode(param 1 ,param 2); % Then all JSP elements are picked from there. Thanks Tript Singh - With Yahoo! Mail you can get a bigger mailbox -- choose a size that fits your needs
RE: Tomcat or JBoss?
We're currently running on WebLogic and are looking into retreating to Tomcat. Tyrex makes Tomcat pretty compelling. I think a lot of people are finding out that EJBs are overkill for web-based apps. Plus, it's cheaper! Steve __ Do you Yahoo!? Yahoo! Mail Plus Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: help with multilingual JSP sites pls. using a Filter to rewrite the URL ?
use request.gePathInfo() to get the path. Then parse the string and use RequestDispatcher.forward(/products/Toys/index.jsp?myparam=+langString). The forward() will not be subject to further filter processing. Charlie -Original Message- From: Stephen Riek [mailto:[EMAIL PROTECTED]] Sent: Monday, November 25, 2002 11:27 AM To: Tomcat Users List Subject: Re: help with multilingual JSP sites pls. using a Filter to rewrite the URL ? Sorry, I'm not making myself clear here. My JSPs do exactly as you suggest so that I have one JSP serving up French and English pages, depending on the language that the user selected on my site. Here is the problem explained very simply. I have a sitemap as follows: /en -- /Products -- Toys/index.jsp -- Decoration/index.jsp /fr -- /Products -- /Toys/index.jsp -- /Decoration/index.jsp As you can see, this is braindead. If I wish the functionality of the English section of the site to be the same as that of the French part of the site, then any change to a JSP in the 'en' part must be repeated within the 'fr' site. This is not scalable and is tedious. Instead, it would be much better if I had one site structure which served up the whole site. /Products -- /Toys/index.jsp -- /Decoration/index.jsp Any changes to functionality only have to be made in one place and both the french viewers and english viewers will experience the same user experience, just in different languages. (I use the properties files as you suggest to serve up different languages). The problem however is how does /Products/Toys/index.jsp know whether the user is viewing in English or French ? The easy way would be to have the user select a language on entering the site and then store the language preference in a cookie which I check before serving up pages. However, users may access the site from a search engine or from direct URLs due to promotions. I would like a request for /en/Products/Toys/index.jsp to be sent to /Products/Toys/index.jsp but with a 'lang' parameter set to 'en'. Likewise for the french part of the site. Surely somebody has had to encounter this sort of problem in dealing with pan-European sites ? Stephen. Triptpal Singh Lamba [EMAIL PROTECTED] wrote:One way you can do this is using property files. Prop_ file name _ language code.properties So for say abc.jsp , you have abc_en.properties and abc_fr.properties. At comple time the JSP calls a class you write at server which gives say String languageCode = ObjectName.getLaguageCode(param 1 ,param 2); % Then all JSP elements are picked from there. Thanks Tript Singh - With Yahoo! Mail you can get a bigger mailbox -- choose a size that fits your needs -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
I think I broke jsp compiler
Hello all, I'm trying to swap out a jre/jdk (yes, I know the diff) on the fly from tomcat 3.3a. All seems well with 1.3.1, but I'm getting problems with 1.4. It seems that the jsp simply don't get compiled (I get blank screen). Since my error page is also a jsp, where would I see jsp compilation errors (tool too recent or something), or how would I debug this. Thank you, edward -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Multiple instanceq
Have anybody tried creating multiple tomcat instances. Is there any documentation that explains this step by step? Hari -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Mod_jk Problem
I'm currently having problems getting Apache to use load mod_jk, it keeps giving this error [emerg] Error while opening the workers. The workers.properties file exists and has the right attributes. I'm using Tomcat 3.3.1, Apache 1.3.9 and mod_jk-3.3-ap13-noeapi.so with Sun's jdk 1.4(build 1.4.0_02-b02) on linux (2.2.12-20). Everything used to work okay the only change I've made is to Web app and its logic, it used to run using Apache, tomcat and jonas but now uses just Apache and tomcat. I can't understand how this could affect the mod_jk. Thanks for any help Dayo - Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now
Progress bar in html
Hi, does anybody know a code (JSP tag) that produces a progress bar in html format? Zsolt -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Multiple instanceq
In this URL I found instructions for tomcat 3.2.x: http://www.andreasklimke.de/webdev/misc.html#4.2.2 Hari Venkatesan wrote: Have anybody tried creating multiple tomcat instances. Is there any documentation that explains this step by step? Hari -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Rafael Angarita Systems Administrator (+58212)(2009765) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: reloadable [bayes][adr]
Hi, Raja: I am using Tomcat 4.1, it doesn't work for me. Did you change anything? Thanks for you help. James - Original Message - From: Raja Nasrallah [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, November 25, 2002 9:32 AM Subject: RE: reloadable [bayes][adr] Hello, Thanks you, it works raja -Original Message- From: Jon Eaves [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 10:28 PM To: Tomcat Users List Subject: Re: reloadable [bayes][adr] Importance: Low Hi Raja, The default behaviour setting for the class reloading is a touch on the slow side, so include a Loader in the Context that looks like this one: Context path=/myapp docBase=myapp reloadable=true Loader className=org.apache.catalina.loader.WebappLoader loaderClass=org.apache.catalina.loader.WebappClassLoader checkInterval=1 / /Context And you'll find that it will now check every second, rather than the default 15 seconds. Cheers, -- jon Raja Nasrallah wrote: Hello, I set the attribute reloadable to true in a sample context tag(Context in the sever.xml) to monitor the the WEB-INF/classes. But it didn't affect. I make change in a sample class and the server don't load this class again. I am using jakarta-tomcat-4.0.6 in winow2000 server. Should I have to do other setting to make the reloadable work. Thanks, raja -- Jon Eaves [EMAIL PROTECTED] http://www.eaves.org/jon/ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Tomcat 3.2 and 4.1 coexist?
Hello Folks, Is it possible to install Tomcat 3.2 and 4.1 on the same server? Are there any side effects? Which path needs to be followed to install 4.1 on a system that has 3.2 installed? The build list is rather long and complicated along with references and dependancies to many packages. Therefore any assistance would be appreciated from someone who has already accomplished a similiar task. Thanks for your time! Tom Jerry __ Do you Yahoo!? Yahoo! Mail Plus Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: help with multilingual JSP sites pls. using a Filter to rewrite the URL ?
The browser can tell you the language that the system is setup for: Accept-Language: en-us, en;q=0.50 This is from my Mozilla setup All modern browsers will return an Accept Language string Another question related to this, Are you telling me that all your jsp pages have the actual content stored in several properties files? I wonder what that would look like Ron -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: ldap authenitcation
Hi, No success so far :-( Surely I can't be the only person trying to do something so fundamental? How can I guarantee that I see even a failure in the log files? Seeing nothing at all seems very weird. Thanks Charlene --- Charlene Mitchell [EMAIL PROTECTED] wrote: Hi, How do I authenticate against an LDAP directory using TomCat 4.1.2? In my web.xml I have a resource that requires form authentication as follows: login-config auth-methodFORM/auth-method realm-namejava:/jaas/LDAPLogin/realm-name !-- I tried with and without this -- form-login-config form-login-page/login/form-login-page form-error-page/login-fail/form-error-page /form-login-config /login-config I have read the JNDI Realm how-to and added the following few lines to my server.xml file. Realm className=org.apache.catalina.realm.JNDIRealm debug=99 connectionURL=ldap://ldapmachine:389; userPattern=uid={0},ou=Users,o=myOrg.com roleBase=ou=Groups,0=myOrg.com roleName=cn roleSearch=(uniqueMember={0})/ When I access a restricted URL the login page appears and I type in my credentials, but when I submit (to: j_security_check) I automatically get redirected to my login-fail page in a matter of nano-seconds (this in itself suggests that it is not working!). When I look in the TomCat log files I cannot see any references to any attempts to contact my LDAP directory. And when I look in the LDAP access log I cannot see any attempt to be contacted either. What step have I missed out or got wrong? Many thanks in advance Charlene __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Multiple instanceq
Hi Hari, this has been discussed several times. Try to search the archive. Andreas On 25 Nov 2002 at 11:36, Hari Venkatesan wrote: Have anybody tried creating multiple tomcat instances. Is there any documentation that explains this step by step? Hari -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Applet from servlet
Hello David! On 25 Nov 2002 at 9:25, David Brown wrote: Andreas Probst writes: Hi David, don't put the class files and jars, which you need for an applet, below WEB-INF. Tomcat won't serve these files to the user's browser. Just put these files in your webapp's directory. If you need the same classes also on the server, than you need to have two copies of them. Hope this solves your problem. Andreas older messages deleted Hello Andreas, thanx 4 the accurate and speedy reply. i (on a hunch) put my applet class under /webapps and can now load which ur message confirms (thanx). the history of this applet started out as a java standalone which works perfectly from any remote client. however to avoid downloads and client compiles i decided to convert the standalone to an applet. the applet depends on classes12.jar (or classes12.zip if on windoz). again, class not found exception because of classes found in classes12.jar. again, on a hunch, i unpacked the jar under /webapss along w/ the applet class (i know this is a poor solution but it helped throw light). when the applet loads i can see that i completes some of the init() but eventually hangs w/ the following: Exception: java.util.MissingResourceException: Can't find bundle for basename Connection.locale en_US i know the best solution is for the applet to find the packed jar and then all should be ok but how? i have put the jar everywhere: classpath, build.xml property, $TOMCAT_HOME/lib, $TOMCAT_HOME/common/lib, etc.. any and all ideas, references, rants and raves welcomed. david. I think this sounds like an applet problem, which has nothing to do with Tomcat. You should now design your application to run as a normal applet. Package it and put every resource that it needs where I had described before. I don't know, whether I've understood you right. In case you only need to provide an applet without associated servlets, you won't need Tomcat. A normal web server, which serves static content, will be enough and probably the better performing solution. Regards, Andreas -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: I cannot make working SSL if I run tomcat as a service (NT)
Additionally you may want to make sure that the keystore file can be found by the user account that the tomcat service will run under. For my installation I do an explict: Factory className=org.apache.catalina.net.SSLServerSocketFactory clientAuth=false protocol=TLS keystoreFile=conf/mykeystore.ks / In the SSL connector and make sure I have a the file mykeystore.ks in the conf folder. Anthony -Original Message- From: Pae Choi [mailto:[EMAIL PROTECTED]] Sent: November 22, 2002 5:51 AM To: Tomcat Users List Subject: Re: I cannot make working SSL if I run tomcat as a service (NT) J2SDK 1.4.0_x has a bug in handling the security. Try it with J2SDK 1.4.1_x. Pae - Original Message - From: Aurelio D'Amico [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, November 21, 2002 11:23 PM Subject: I cannot make working SSL if I run tomcat as a service (NT) I have the following problem: If I run tomcat using the provided batches I have no problem with SSL but when I run it as a service (what I need) I receive the 404 error. There is someone that could help me? I'm running tomcat 4.0.4 (standalone) in a window NT environment (SP6) and with java SDK 1.4.0_03 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Tomcat 3.2 and 4.1 coexist?
I performed your taskk without any trouble. 3.2 is running on port 8080, 4.1. on 8090. You just have to change the file server.xml to define the new port. Both versions are running in parallel. They've been installed in /usr/local/tomcat3 and /usr/local/tomcat4 Carsten Am Montag, 25.11.02, um 18:19 Uhr (Europe/Berlin) schrieb jimmy: Hello Folks, Is it possible to install Tomcat 3.2 and 4.1 on the same server? Are there any side effects? Which path needs to be followed to install 4.1 on a system that has 3.2 installed? The build list is rather long and complicated along with references and dependancies to many packages. Therefore any assistance would be appreciated from someone who has already accomplished a similiar task. Thanks for your time! Tom Jerry __ Do you Yahoo!? Yahoo! Mail Plus ñ Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Carsten Ziegert Hannover Medical School, Dept. of Hematology and Oncology Carl-Neuberg-Straße 1, 30625 Hannover University of Applied Sciences, Faculty of Information Sciences Ricklinger Stadtweg 120, 30459 Hannover http://summit-bmt.fh-hannover.de -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: help with multilingual JSP sites pls. using a Filter to rewri te the URL ?
Thanks for the reply Ron, I've heard of people using Accept-Language before but have my own doubts about that. For example, using Tomcat's example servlet to examine the request. ( http://127.0.0.1:8080/examples/servlet/RequestHeaderExample ) I find that accept-language is always en-us on my system. That doesn't necessarily mean that the person using my PC wants to read English. I can just as easily read French or asian languages on my PC. As for your other question, no, I don't keep all content in properties files. The bulk of it is database generated since it's a shopping catalog. Storing all site content in properties files would drive me insane. Thanks for your help. Stephen. Ron Smits [EMAIL PROTECTED] wrote: The browser can tell you the language that the system is setup for: Accept-Language: en-us, en;q=0.50 This is from my Mozilla setup All modern browsers will return an Accept Language string Another question related to this, Are you telling me that all your jsp pages have the actual content stored in several properties files? I wonder what that would look like Ron -- To unsubscribe, e-mail: For additional commands, e-mail: - With Yahoo! Mail you can get a bigger mailbox -- choose a size that fits your needs
How to specify path when executing CGI in Tomcat?
Hi, I try to implement CGI in Tomcat(win2k,tomcat4.15). I follow the instruction to make a simple CGI work. However when I test a more complicated cgi file written using c++, I get a problem like xxx.exe -Unable to Locate DLL The dynamic link library orasql.dll cound not found in specified path D:\tomcat\webapps\test\WEB-INF\cgi;.;c:\WINNT\System32;c:\WINNT\System;c:\WINNT; Apparently it can't find the system property path. So how to specify path for cgi in tomcat? If anyone can tell me how to fix this problem, I will really appreciate it. Thanks, Bin __ Do you Yahoo!? Yahoo! Mail Plus Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: help with multilingual JSP sites pls. using a Filter to rewri te the URL ?
Thanks Charlie. Genius. Another simple solution saves the day. I presume you also mean that I should map all incoming requests to a servlet that then examines the PathInfo and issues the requestDispatcher. Magnificent solution. Thank you indeed. Stephen. Cox, Charlie [EMAIL PROTECTED] wrote:use request.gePathInfo() to get the path. Then parse the string and use RequestDispatcher.forward(/products/Toys/index.jsp?myparam=+langString). The forward() will not be subject to further filter processing. Charlie -Original Message- From: Stephen Riek [mailto:[EMAIL PROTECTED]] Sent: Monday, November 25, 2002 11:27 AM To: Tomcat Users List Subject: Re: help with multilingual JSP sites pls. using a Filter to rewrite the URL ? Sorry, I'm not making myself clear here. My JSPs do exactly as you suggest so that I have one JSP serving up French and English pages, depending on the language that the user selected on my site. Here is the problem explained very simply. I have a sitemap as follows: /en -- /Products -- Toys/index.jsp -- Decoration/index.jsp /fr -- /Products -- /Toys/index.jsp -- /Decoration/index.jsp As you can see, this is braindead. If I wish the functionality of the English section of the site to be the same as that of the French part of the site, then any change to a JSP in the 'en' part must be repeated within the 'fr' site. This is not scalable and is tedious. Instead, it would be much better if I had one site structure which served up the whole site. /Products -- /Toys/index.jsp -- /Decoration/index.jsp Any changes to functionality only have to be made in one place and both the french viewers and english viewers will experience the same user experience, just in different languages. (I use the properties files as you suggest to serve up different languages). The problem however is how does /Products/Toys/index.jsp know whether the user is viewing in English or French ? The easy way would be to have the user select a language on entering the site and then store the language preference in a cookie which I check before serving up pages. However, users may access the site from a search engine or from direct URLs due to promotions. I would like a request for /en/Products/Toys/index.jsp to be sent to /Products/Toys/index.jsp but with a 'lang' parameter set to 'en'. Likewise for the french part of the site. Surely somebody has had to encounter this sort of problem in dealing with pan-European sites ? Stephen. Triptpal Singh Lamba wrote:One way you can do this is using property files. Prop_ file name _ language code.properties So for say abc.jsp , you have abc_en.properties and abc_fr.properties. At comple time the JSP calls a class you write at server which gives say String languageCode = ObjectName.getLaguageCode(param 1 ,param 2); % Then all JSP elements are picked from there. Thanks Tript Singh - With Yahoo! Mail you can get a bigger mailbox -- choose a size that fits your needs -- To unsubscribe, e-mail: For additional commands, e-mail: - With Yahoo! Mail you can get a bigger mailbox -- choose a size that fits your needs
thanx for helping with TomCat query.. another problem..plz. help..
Hi, Thanks for helping with my previous query regarding Beans. I have another problem which I have posted earlier (dated 22nd Nov) on the users mailing list. plz. suggest about the possible cause. Thanks, Runu __ Do you Yahoo!? Yahoo! Mail Plus Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Problems running Tomcat from command line
Hi; I just started a new job. The company is using MS Windows 2000 and Tomcat 3.2.4 ( not my choice - peace! ). I am able to start tomcat by going to C:\Tomcat\bin and double clicking startup.bat in explorer. However, I am not able to start tomcat from a command line. When I try it from dos I get bad command or filename When I try startup.sh from my cygwin I get Using classpath: C:\TOMCAT/lib/ant.jar:C:\TOMCAT/lib/crimson.jar:C:\TOMCAT/lib/jasper.jar:C:\TOMCAT/lib/jaxp.jar:C:\TOMCAT/lib/servlet.jar:C:\TOMCAT/lib/test:C:\TOMCAT/lib/tools.jar:C:\TOMCAT/lib/webserver.jar:C:\JDK/lib/tools.jar:.;C:\W2Kimage_c\cygwin\home\steve\Projects\Classes stever@STEVER c:/TOMCAT/bin $ Exception in thread main java.lang.NoClassDefFoundError: org/apache/tomcat/s tartup/Tomcat == When I have tried starting C:\Tomcat\bin directly, in dos I get the error message that %TOMCAT_HOME%/lib/servet.jar does not exist. It exists at that location. TOMCAT_HOME is set properly at C:\Tomcat, output statements I put in tomcat.bat reflect that. It seems like windows is not TOMCAT_HOME/lib I'm not a windows expert, can anyone give me a clue? Here is my system PATH: %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SystemRoot%\system32\nls;%SystemRoot%\system32\nls\English;C:JDK\bin;C:\ProgramFiles\GnuEmacs21.2\bin;C:\ProgramFiles;C:\PROGRA~1\ULTRAE~1;C:\Program Files\Microsoft SQL Server\80\Tools\BINN; I have a JAVA_HOME and a JDK_HOME set, and those work. Steve -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Problems running Tomcat from command line
You should set CLASSPATH as a Windows environment variable. I always make sure that the slashes in the CLASSPATH value should all point the same direction. - CB Steve Russell wrote: Hi; I just started a new job. The company is using MS Windows 2000 and Tomcat 3.2.4 ( not my choice - peace! ). I am able to start tomcat by going to C:\Tomcat\bin and double clicking startup.bat in explorer. However, I am not able to start tomcat from a command line. When I try it from dos I get bad command or filename When I try startup.sh from my cygwin I get Using classpath: C:\TOMCAT/lib/ant.jar:C:\TOMCAT/lib/crimson.jar:C:\TOMCAT/lib/jasper.jar:C:\TOMCAT/lib/jaxp.jar:C:\TOMCAT/lib/servlet.jar:C:\TOMCAT/lib/test:C:\TOMCAT/lib/tools.jar:C:\TOMCAT/lib/webserver.jar:C:\JDK/lib/tools.jar:.;C:\W2Kimage_c\cygwin\home\steve\Projects\Classes stever@STEVER c:/TOMCAT/bin $ Exception in thread main java.lang.NoClassDefFoundError: org/apache/tomcat/s tartup/Tomcat == When I have tried starting C:\Tomcat\bin directly, in dos I get the error message that %TOMCAT_HOME%/lib/servet.jar does not exist. It exists at that location. TOMCAT_HOME is set properly at C:\Tomcat, output statements I put in tomcat.bat reflect that. It seems like windows is not TOMCAT_HOME/lib I'm not a windows expert, can anyone give me a clue? Here is my system PATH: %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SystemRoot%\system32\nls;%SystemRoot%\system32\nls\English;C:JDK\bin;C:\ProgramFiles\GnuEmacs21.2\bin;C:\ProgramFiles;C:\PROGRA~1\ULTRAE~1;C:\Program Files\Microsoft SQL Server\80\Tools\BINN; I have a JAVA_HOME and a JDK_HOME set, and those work. Steve -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- . . . / This Cabinet is formd of Gold / And Pearl Crystal shining bright And within it opens into a World / . . . Another England there I saw / Another London with its Tower Another Thames other Hills / And another pleasant Surrey Bower . . . - from The Crystal Cabinet, a poem by William Blake. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Newbie Problems
Our shop is using Tomcat 4.0.5 and Apache 1.3.27 on FreeBSD with mixed results. Apache can be brought up and down with the normal 'apachectl start|stop'. Tomcat can be started normally via the startup.sh script but when the shutdown-sh script is run there is a burst of error messages from the parsing of server.xml. I am confused as to how no errors occur when I ./startup.sh the Tomcat server but the shutdown.sh script has problems with server.xml format. Don't both scripts actually deal with the same server.xml? Bob Tilley -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Newbie Problems
What do the error messages say? I.e.: can you paste them into a message (and maybe your server.xml also) then we could tell you what each one means. Andoni. - Original Message - From: Bob Tilley [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Monday, November 25, 2002 6:03 PM Subject: Newbie Problems Our shop is using Tomcat 4.0.5 and Apache 1.3.27 on FreeBSD with mixed results. Apache can be brought up and down with the normal 'apachectl start|stop'. Tomcat can be started normally via the startup.sh script but when the shutdown-sh script is run there is a burst of error messages from the parsing of server.xml. I am confused as to how no errors occur when I ./startup.sh the Tomcat server but the shutdown.sh script has problems with server.xml format. Don't both scripts actually deal with the same server.xml? Bob Tilley -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: TagLibs in Tomcat3.3.1
On Sun, 24 Nov 2002, Bill Barker wrote: Date: Sun, 24 Nov 2002 23:31:27 -0800 From: Bill Barker [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: TagLibs in Tomcat3.3.1 Craig R. McClanahan [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Sat, 23 Nov 2002, Laxmikanth M.S. wrote: Date: Sat, 23 Nov 2002 14:41:11 +0530 From: Laxmikanth M.S. [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: TagLibs in Tomcat3.3.1 Hi all, Is it possible to write TagLibs in Tomcat3.3.1 version. Yes, as long as your tags conform to the JSP 1.1 specification that Tomcat 3.3.1 implements. I must have been tranported into some alternative universe ;-). Like, Craig never answers 3.3 questions (but, thanks anyway :). Craig's answer is correct. Finally found a 3.3 question that I could answer correctly. :-) It's a bit of a pain not having access to IterationTags (which first appeared in JSP/1.2), but my JSP/1.1 TagLibs work really well under Tomcat 3.3.1 (and in some cases, better than they do in 4.x, but I'm working on it). I fully trust that Bill's efforts in this regard, along with the other folks working on Jasper, will be successful. thanks laxmikanth Craig Craig -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: help with multilingual JSP sites pls. using a Filter to rewri te the URL ?
You can use a servlet or a filter. Filter mappings can overlap servlet mappings if you need them to. You can map all requests, or you can only map the specific paths for which you will use forward(). You probably want a filter if you are going to map all requests. glad to help :-) Charlie -Original Message- From: Stephen Riek [mailto:[EMAIL PROTECTED]] Sent: Monday, November 25, 2002 12:47 PM To: Tomcat Users List Subject: RE: help with multilingual JSP sites pls. using a Filter to rewri te the URL ? Thanks Charlie. Genius. Another simple solution saves the day. I presume you also mean that I should map all incoming requests to a servlet that then examines the PathInfo and issues the requestDispatcher. Magnificent solution. Thank you indeed. Stephen. Cox, Charlie [EMAIL PROTECTED] wrote:use request.gePathInfo() to get the path. Then parse the string and use RequestDispatcher.forward(/products/Toys/index.jsp?myparam=+ langString). The forward() will not be subject to further filter processing. Charlie -Original Message- From: Stephen Riek [mailto:[EMAIL PROTECTED]] Sent: Monday, November 25, 2002 11:27 AM To: Tomcat Users List Subject: Re: help with multilingual JSP sites pls. using a Filter to rewrite the URL ? Sorry, I'm not making myself clear here. My JSPs do exactly as you suggest so that I have one JSP serving up French and English pages, depending on the language that the user selected on my site. Here is the problem explained very simply. I have a sitemap as follows: /en -- /Products -- Toys/index.jsp -- Decoration/index.jsp /fr -- /Products -- /Toys/index.jsp -- /Decoration/index.jsp As you can see, this is braindead. If I wish the functionality of the English section of the site to be the same as that of the French part of the site, then any change to a JSP in the 'en' part must be repeated within the 'fr' site. This is not scalable and is tedious. Instead, it would be much better if I had one site structure which served up the whole site. /Products -- /Toys/index.jsp -- /Decoration/index.jsp Any changes to functionality only have to be made in one place and both the french viewers and english viewers will experience the same user experience, just in different languages. (I use the properties files as you suggest to serve up different languages). The problem however is how does /Products/Toys/index.jsp know whether the user is viewing in English or French ? The easy way would be to have the user select a language on entering the site and then store the language preference in a cookie which I check before serving up pages. However, users may access the site from a search engine or from direct URLs due to promotions. I would like a request for /en/Products/Toys/index.jsp to be sent to /Products/Toys/index.jsp but with a 'lang' parameter set to 'en'. Likewise for the french part of the site. Surely somebody has had to encounter this sort of problem in dealing with pan-European sites ? Stephen. Triptpal Singh Lamba wrote:One way you can do this is using property files. Prop_ file name _ language code.properties So for say abc.jsp , you have abc_en.properties and abc_fr.properties. At comple time the JSP calls a class you write at server which gives say String languageCode = ObjectName.getLaguageCode(param 1 ,param 2); % Then all JSP elements are picked from there. Thanks Tript Singh - With Yahoo! Mail you can get a bigger mailbox -- choose a size that fits your needs -- To unsubscribe, e-mail: For additional commands, e-mail: - With Yahoo! Mail you can get a bigger mailbox -- choose a size that fits your needs -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Newbie Problems
The FreeBSD box is on an intranet in our office that does not link to the outside world, but I'll try to communicate the errors: PARSE error at line 55, column 23 of ... server.xml org.xml.sax.SAXParseException: Attribute name IfModule must be followed by the '=' character. Then more errors cascade from the one above. Here is the relevant line from the server.xml file: # Tomcat 4 Webapp Warp IfModule mod_webapp.c ... /IfModule Any ideas? -Original Message- From: Andoni [mailto:[EMAIL PROTECTED]] Sent: Monday, November 25, 2002 1:18 PM To: Tomcat Users List Subject: Re: Newbie Problems What do the error messages say? I.e.: can you paste them into a message (and maybe your server.xml also) then we could tell you what each one means. Andoni. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Why can't put weblogic.jar to classpath when using ant
Hi, I have a question, when I use ant to compile some files, the following error popped up, after tried a few times, I found if I delete weblogic.jar in the classpath, it is OK! Why is that? Thanks in advance James java.lang.VerifyError: (class: org/apache/tools/ant/taskdefs/optional/Native2Asc ii, method: createMapper signature: ()Lorg/apache/tools/ant/types/Mapper;) Incom patible type for getting or setting field at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:115) at org.apache.tools.ant.Project.init(Project.java:163) at org.apache.tools.ant.Main.runBuild(Main.java:387) at org.apache.tools.ant.Main.main(Main.java:149) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Discrepancies between servlets and JSP on tomcat in handlingUTF-8 ?
On Mon, 25 Nov 2002, Bodycombe, Andrew wrote: Date: Mon, 25 Nov 2002 15:29:29 + From: Bodycombe, Andrew [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] Subject: RE: Discrepancies between servlets and JSP on tomcat in handling UTF-8 ? Interesting. I have encountered a similiar problem. I have a servlet that connects to an XML application. The response from the application is read using a SAX reader, and I encountered an error if the response contained any non-ASCII characters (ü and ß in particular, as I am currently working in Germany) I did a little investigation, and found that the content type was text/xml; charset=ISO-5591-1 and the xml tag was ?xml version=1.0 encoding=UTF-8? Now the XML I received in my servlet was ISO-5591-1 and not UTF-8, so I have contacted the application developers to say Please fix your application because the XML I receive is not encoded as UTF-8, it is ISO-5591-1. I have a work-round, where I read the input using an ISO-8859-1 InputStreamReader, and get the SAXReader to use this as the input. This is working fine as a temporary measure. The original message in this thread suggests to me that this could actually be a tomcat problem and not necessarily a problem with the application I connect to. There is clearly a discrepancy between the encoding type and the charset, and the SAX reader is using the value of the encoding attribute to read the text. Is tomcat doing something with the HTTP text, possibly converting it from UTF-8 into ISO-5591-1? Yes. The Servlet and JSP specs require that the character encoding (if you are writing a character-based response) default to ISO-8859-1 unless you explicitly tell the container otherwise. To set the character encoding in a servlet, you add the charset modifier to the content type: response.setContentType(text/html;charset=UTF-8); In a JSP page, you set the character encoding of the response in the %@ page % directive: %@ page contentType=text/html;charset=UTF-8 % In JSP 2.0, you'll have the ability to declare (in a global configuration file) that pages that match this URL pattern have this encoding. For JSP 1.2 (i.e. Tomcat 4.x) you do not have that option, and must declare it inside the page itself. I confess, I've not tried this servlet out in other servlet containers, just tomcat version 4.1.12, running on Windows Andy Craig -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
newbie . catalina.out
Hi Is it possible to redirect system.out elsewhere than in $CATALINA_HOME/logs/catalina.out ? For exemple, one file per context ?, per host ? thks
MBean server?
I have the following packages installed on a RedHat 7.3 box: tomcat4-4.1.12-full.2jpp tomcat4-admin-webapps-4.1.12-full.2jpp Tomcat starts up fine and I can log into the admin app without problem. However, the moment I try to do anything in the admin app I get a HTTP Status 503 - Servlet action is currently unavailable error, and I see this in my catalina.out log file: javax.servlet.UnavailableException: MBeanServer is not available at org.apache.webapp.admin.ApplicationServlet.initServer(Unknown Source) at org.apache.webapp.admin.ApplicationServlet.getServer(Unknown Source) at org.apache.webapp.admin.TomcatTreeBuilder.buildTree(Unknown Source) at org.apache.webapp.admin.SetUpTreeAction.perform(Unknown Source) at org.apache.struts.action.ActionServlet.processActionPerform(ActionServlet.java) at org.apache.struts.action.ActionServlet.process(ActionServlet.java) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown Source) ... ... What does this exception mean, and what do I need to do to get the admin app running? Thanks, -shawn -- Shawn Wilson [[EMAIL PROTECTED]] Software Developer, ATMReports.com PH: 877-327-0873, FAX: 406-294-5806 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Newbie Problems
Just going to take a stab at it, but it looks like you are trying to combine the apache configuration and the tomcat configuration into one file. basic xml dictates ... 1. Comments are the same as html comments, meaning !-- -- and not # 2. Attributes are followed by an = sign and quotes, IfModule mod_webapp.c does not make sense for XML. {In apache it does!!} So, in your apache.conf file it would be {like you have it} IfModule ... /IfModule But this will NOT work in the tomcat server.xml or web.xml. Hope this helps. On Mon, 2002-11-25 at 18:45, Bob Tilley wrote: The FreeBSD box is on an intranet in our office that does not link to the outside world, but I'll try to communicate the errors: PARSE error at line 55, column 23 of ... server.xml org.xml.sax.SAXParseException: Attribute name IfModule must be followed by the '=' character. Then more errors cascade from the one above. Here is the relevant line from the server.xml file: # Tomcat 4 Webapp Warp IfModule mod_webapp.c ... /IfModule Any ideas? -Original Message- From: Andoni [mailto:[EMAIL PROTECTED]] Sent: Monday, November 25, 2002 1:18 PM To: Tomcat Users List Subject: Re: Newbie Problems What do the error messages say? I.e.: can you paste them into a message (and maybe your server.xml also) then we could tell you what each one means. Andoni. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- p niemandt [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: newbie . catalina.out
On Mon, 25 Nov 2002, mc wrote: Date: Mon, 25 Nov 2002 14:12:51 -0500 From: mc [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: newbie . catalina.out Hi Is it possible to redirect system.out elsewhere than in $CATALINA_HOME/logs/catalina.out ? For exemple, one file per context ?, per host ? In Tomcat 4.1, you can capture per-webapp output by using the swallowOutput attribute on the Context element. It will send System.err and System.out output to the same place that ServletContext.log() calls go. See the config docs for more details: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/context.html under Standard Implementation Attributes. thks Craig -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: IIS on W2k + tomcat 4.1.12
The IISHowTo is not upto date . I referred to the instructions in InstallHowTo.xml that comes along with the zip file. That worked. Thanks. -Original Message- From: David Boyer [mailto:[EMAIL PROTECTED]] Sent: Monday, November 25, 2002 08:59 To: [EMAIL PROTECTED] Subject: Re: IIS on W2k + tomcat 4.1.12 I didn't have too much trouble getting the 2.01 filter to work with Tomcat 4.1.12 and IIS 5. http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/configwebcom.htm l I don't think you need urimapworkers.properties. In addition to the ISAPI dll, all I'm using is workers2.properties and jk2.properties. I think the source for the jk2 connector contains all of the sample properties and reg files and some additional info: http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/release/v 2.0.1/src/ [EMAIL PROTECTED] 11/24/02 10:58PM Was anybody successful in integrating IIS with tomcat 4.1.12. I downloaded the isapi_redirector2.dll. I was able to find the workers2.properties but I am not able to find the urimapworkers.properties. It is not available along with the workers2.properties file. After trying to add the ISAPI filter I get a error in event viewer saying unable to open the key Software\Apache Software Foundation\Jakarta Isapi Redirector\2.0. The How To document ( http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/release/v 2.0. 1/doc/jk/iishowto.html ) says the key as Software\Apache Software Foundation\Jakarta Isapi Redirector\1.0 Looks like the How to document is not up to date with software changes. Any Ideas. Thanks. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat or JBoss?
-Original Message- From: Steve Lewis [mailto:[EMAIL PROTECTED]] Sent: Monday, November 25, 2002 11:33 AM To: Tomcat Users List Subject: RE: Tomcat or JBoss? We're currently running on WebLogic and are looking into retreating to Tomcat. Tyrex makes Tomcat pretty compelling. I think a lot of people are finding out that EJBs are overkill for web-based apps. If they are overkill for webapps, what sorts of situations would benefit from them? (Not asking rhetorically, I'm honestly curious about when to use EJB since I know nothing about them.) Erik -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat or JBoss?
Hi, If they are overkill for webapps, what sorts of situations would benefit from them? flame-bait NEVER http://www.softwarereality.com/programming/ejb/index.jsp /flame-bait (Just kidding) ;) Yoav Shapira Millennium ChemInformatics -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Does the number of vhosts limit tomcat 4.1.12 scalability
Does Tomcat 4.1.12 need more file handlers or available threads when starting than tomcat 3.2.4? When upgrading from tomcat 3.2.4 to tomcat 4.1.12, I get a java.lang.OutOfMemoryError: unable to create new native thread exception when trying to start. The configuration is the exact same as with tomcat 3.2.4. There are about 160 hosts with the context and two others for each host. With tomcat 3.2.4, it seemed that it needed about one thread for each host and context, but Craig said this is not the case. So...do I need to have more available file handlers for each host and context I have configured within server.xml for tomcat 4.1.12? Thanks! Brandon -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
jspc error
Hi I'm unable to use jspc I use tomcat 4.1.12 and jstl (jakarta-taglibs-standard-1.0.1) /usr/local/tomcat/bin#./jspc.sh -webapp ../webapp/myapp 2002-11-25 03:10:07 - ERROR-the file '/test.jsp' generated the following general exception: java.lang.NullPointerException error:null sbdy have a solution or an alternative to jspc ? thks
Re: Problems running Tomcat from command line
Ya, Christopher Balz is right on the money with his solid judgement that all of the various slashes in BOTH the path and the classpath env. variables should definitely point in just one direction only!!! Listen, can someone please tell me how I start to package up a WAR file and then in what folder I stick it to run a JSP/Servlet??! __ Do you Yahoo!? Yahoo! Mail Plus Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
problems with tomcat as rmi client
Hi, I am trying to use a Tomcat webapp as a RMI client. For the test purposes, my RMI server resides on the same machine. When I use a Tomcat webapp as a client, I consistently get a ClassCastException, while if I use a plain java class for the client, it works flawlessly. Following is my client code used in the servlet and the plain java class. System.setProperty(java.rmi.server.codebase, file:/path/to/stubfile/); try { //(line: 141) TestInterface testIf = (TestInterface)Naming.lookup(//localhost/Test); result = testIf.testMethod(); } catch (Exception e) { servlet.log(e.getMessage()); e.printStackTrace(); } I am using: JDK-1.4 tomcat-4.1.12 From the stack it looks like the stub file is located, but it cannot relate it with the interface file. It looks like the interface file and the stub files are loaded with different class loaders and cannot be associated. java.lang.ClassCastException: Test_Stub at com.vishal.eg.TestAction.perform(TestAction.java:141) at org.apache.struts.action.ActionServlet.processActionPerform(ActionServlet.java:1786) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1585) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:509) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) 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.access$000(ApplicationFilterChain.java:98) at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:176) at java.security.AccessController.doPrivileged(Native Method) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:172) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533) at java.lang.Thread.run(Thread.java:536) Thanks in advance, Vishal __ Do you Yahoo!? Yahoo! Mail Plus Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Problems running Tomcat from command line
At 12:41 PM 11/25/2002 -0800, you wrote: Ya, Christopher Balz is right on the money with his solid judgement that all of the various slashes in BOTH the path and the classpath env. variables should definitely point in just one direction only!!! This isn't an issue. As I wrote in my post I had two sets of output. One I got when trying to run tomcat from dos which only gave me bad command or file name. The second set of output is from cygwin, a unix emulator that mixes up/ takes care of slashes of different directions. I included that output because it gave a little bit more information. My apologies if it gave anyone the mistaken impression that I had mixed slash types in my Windows 2000 environmental variables. I could still use some help. Clicking on startup.bat gets tomcat running. typing startup.bat at a dos prompt in C:\TOMCAT\bin does nothing. Here are the enviromental variables for Windows 2000 I set under system: CLASSPATH: .;C:\W2Kimage_c\cygwin\home\steve\Projects\Classes;C:\TOMCAT\lib\servlet.jar PATH: %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SystemRoot%\system32\nls;%SystemRoot%\system32\nls\English;C:JDK\bin;C:\ProgramFiles\GnuEmacs21.2\bin;C:\ProgramFiles;C:\PROGRA~1\ULTRAE~1;C:\Program Files\Microsoft SQL Server\80\Tools\BINN; JAVA_HOME: C:\JDK TOMCAT_HOME C:\TOMCAT Any ideas? Please? :) Steve Steve Russell Applications Developer 301-251-1161 x 275 [EMAIL PROTECTED] Emmes Corporation 401 N. Washington Street, Suite 700 Rockville, MD 20850 - 1785 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Problems running Tomcat from command line
Steve, are you typing (literally) startup.bat at the DOS command line to start Tomcat?? If so, you should just type in startup--one word--and that should quickly activate it to your satisfaction!! If it still doesn't, get back to me at the speed of light and I will go on with trying to help you! * On Mon 11/25, Steve Russell wrote:From: Steve Russell [mailto: [EMAIL PROTECTED]]To: [EMAIL PROTECTED]: Mon, 25 Nov 2002 16:18:37 -0500Subject: Re: Problems running Tomcat from command lineAt 12:41 PM 11/25/2002 -0800, you wrote: Ya, Christopher Balz is right on the money with his solid judgement that all of the various slashes in BOTH the path and the classpath env. variables should definitely point in just one direction only!!! This isn't an issue. As I wrote in my post I had two sets of output. One I got when trying to run tomcat from dos which only gave me bad command or file name. The second set of output is from cygwin, a unix emulator that mixes up/ takes care of slashes of different directions. I included that output because it gave a little bit more information. My apologies if it gave anyone the mistaken impression that I had mixed slash types in my Windows 2000 environmental variables. I could still use some help. Clicking on startup.bat gets tomcat running. typing startup.bat at a dos prompt in C:\TOMCAT\bin does nothing. Here are the enviromental variables for Windows 2000 I set under system: CLASSPATH: ..;C:\W2Kimage_c\cygwin\home\steve\Projects\Classes;C:\TOMCAT\lib\servlet.jar PATH: %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SystemRoot%\system32\nls;%SystemRoot%\system32\nls\English;C:JDK\bin;C:\ProgramFiles\GnuEmacs21.2\bin;C:\ProgramFiles;C:\PROGRA~1\ULTRAE~1;C:\Program Files\Microsoft SQL Server\80\Tools\BINN; JAVA_HOME: C:\JDK TOMCAT_HOME C:\TOMCAT Any ideas? Please? :) Steve Steve Russell Applications Developer 301-251-1161 x 275 [EMAIL PROTECTED] Emmes Corporation 401 N. Washington Street, Suite 700 Rockville, MD 20850 - 1785 -- To unsubscribe, e-mail: For additional commands, e-mail: ___ Join Excite! - http://www.excite.com The most personalized portal on the Web!
Re: Problems running Tomcat from command line
Yes I am literally typing startup.bat ( without quotes ) at the dos prompt in the appropiate directory. It works for other *.bat files. I also tried literally typing just startup ( without quotes ). No difference. Tomcat will still start by clicking on the icon for startup.bat in explorer, but it will not start by typing the name of the bat file at the Windows 2000 command line. Thanks in advance Steve At 04:25 PM 11/25/2002 -0500, you wrote: Steve, are you typing (literally) startup.bat at the DOS command line to start Tomcat?? If so, you should just type in startup--one word--and that should quickly activate it to your satisfaction!! If it still doesn't, get back to me at the speed of light and I will go on with trying to help you! * On Mon 11/25, Steve Russell wrote:From: Steve Russell [mailto: [EMAIL PROTECTED]]To: [EMAIL PROTECTED]: Mon, 25 Nov 2002 16:18:37 -0500Subject: Re: Problems running Tomcat from command lineAt 12:41 PM 11/25/2002 -0800, you wrote: Ya, Christopher Balz is right on the money with his solid judgement that all of the various slashes in BOTH the path and the classpath env. variables should definitely point in just one direction only!!! This isn't an issue. As I wrote in my post I had two sets of output. One I got when trying to run tomcat from dos which only gave me bad command or file name. The second set of output is from cygwin, a unix emulator that mixes up/ takes care of slashes of different directions. I included that output because it gave a little bit more information. My apologies if it gave anyone the mistaken impression that I had mixed slash types in my Windows 2000 environmental variables. I could still use some help. Clicking on startup.bat gets tomcat running. typing startup.bat at a dos prompt in C:\TOMCAT\bin does nothing. Here are the enviromental variables for Windows 2000 I set under system: CLASSPATH: ..;C:\W2Kimage_c\cygwin\home\steve\Projects\Classes;C:\TOMCAT\lib\servlet.jar PATH: %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SystemRoot%\system32\nls;%SystemRoot%\system32\nls\English;C:JDK\bin;C:\ProgramFiles\GnuEmacs21.2\bin;C:\ProgramFiles;C:\PROGRA~1\ULTRAE~1;C:\Program Files\Microsoft SQL Server\80\Tools\BINN; JAVA_HOME: C:\JDK TOMCAT_HOME C:\TOMCAT Any ideas? Please? :) Steve Steve Russell Applications Developer 301-251-1161 x 275 [EMAIL PROTECTED] Emmes Corporation 401 N. Washington Street, Suite 700 Rockville, MD 20850 - 1785 -- To unsubscribe, e-mail: For additional commands, e-mail: ___ Join Excite! - http://www.excite.com The most personalized portal on the Web! Steve Russell Applications Developer 301-251-1161 x 275 [EMAIL PROTECTED] Emmes Corporation 401 N. Washington Street, Suite 700 Rockville, MD 20850 - 1785 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Problems running Tomcat from command line
Hi; I'm reposting this, hoping that this version is more clear. -- I'm on Windows 2000 using Tomcat 3.2.4 ( not my choice ). I can start tomcat by double clicking the startup.bat file in C:\TOMCAT\bin. However, I can't start tomcat programmatically by typing startup.bat or startup ( without quotes ) from a dos prompt that is in C:\TOMCAT\bin I have tried running C:\TOMCAT\bin directly. It complains that it is out of environment space ( how do you set that in win 2000 )AND that it cant find C:\TOMCAT\lib\servlet.jar Its there. Here are the Windows 2000 environmental variables I have set for system: CLASSPATH: ..;C:\W2Kimage_c\cygwin\home\steve\Projects\Classes;C:\TOMCAT\lib\servlet.jar PATH: %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SystemRoot%\system32\nls;%SystemRoot%\system32\nls\English;C:JDK\bin;C:\ProgramFiles\GnuEmacs21.2\bin;C:\ProgramFiles;C:\PROGRA~1\ULTRAE~1;C:\Program Files\Microsoft SQL Server\80\Tools\BINN; JAVA_HOME: C:\JDK TOMCAT_HOME C:\TOMCAT Thanks in advance for any clues Steve -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Why can't put weblogic.jar to classpath when using ant
james writes: Hi, I have a question, when I use ant to compile some files, the following error popped up, after tried a few times, I found if I delete weblogic.jar in the classpath, it is OK! Why is that? Thanks in advance James java.lang.VerifyError: (class: org/apache/tools/ant/taskdefs/optional/Native2Asc ii, method: createMapper signature: ()Lorg/apache/tools/ant/types/Mapper;) Incom patible type for getting or setting field at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:115) at org.apache.tools.ant.Project.init(Project.java:163) at org.apache.tools.ant.Main.runBuild(Main.java:387) at org.apache.tools.ant.Main.main(Main.java:149) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Hello, how r u defining property name=classpath in ur build.xml? david -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Problems running Tomcat from command line
Steve Russell, Perhaps this link will help: http://www.google.com/search?q=out+of+environment+space+tomcat Try to get that out of environment space error to go away, then we'll work on the absentee servlet.jar issue. Julius Davies, Programmer, CUCBC Email: [EMAIL PROTECTED], Ph: 604.730.6385 -Original Message- From: Steve Russell [mailto:[EMAIL PROTECTED]] Sent: Monday, November 25, 2002 1:55 PM To: Tomcat Users List Subject: Re: Problems running Tomcat from command line Hi; I'm reposting this, hoping that this version is more clear. -- I'm on Windows 2000 using Tomcat 3.2.4 ( not my choice ). I can start tomcat by double clicking the startup.bat file in C:\TOMCAT\bin. However, I can't start tomcat programmatically by typing startup.bat or startup ( without quotes ) from a dos prompt that is in C:\TOMCAT\bin I have tried running C:\TOMCAT\bin directly. It complains that it is out of environment space ( how do you set that in win 2000 )AND that it cant find C:\TOMCAT\lib\servlet.jar Its there. Here are the Windows 2000 environmental variables I have set for system: CLASSPATH: ..;C:\W2Kimage_c\cygwin\home\steve\Projects\Classes;C:\TOMCAT\ lib\servlet.jar PATH: %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem; %SystemRoot%\system32\nls;%SystemRoot%\system32\nls\English;C: JDK\bin;C:\ProgramFiles\GnuEmacs21.2\bin;C:\ProgramFiles;C:\PR OGRA~1\ULTRAE~1;C:\Program Files\Microsoft SQL Server\80\Tools\BINN; JAVA_HOME: C:\JDK TOMCAT_HOME C:\TOMCAT Thanks in advance for any clues Steve -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
tomcat sessions and webapp deployment
Hello, Tomcat 4.1.12, running with JBoss 3.0.4 on RedHat 8.0, seems to be holding onto sessions between deployments of a webapp. With the old version (3.something) the sessions would get killed when the app was redeployed. But now I have to shutdown tomcat, redeploy the app, and then restart tomcat. Is there anyway around this? Kind of slows down development. Thanks. Derek -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Problems running Tomcat from command line
As you probably know, the icon shows what command it actually issues in the properties dialogue (right-click on it) along with a directory to start in property. What are these poperties? Julius Davies wrote: Steve Russell, Perhaps this link will help: http://www.google.com/search?q=out+of+environment+space+tomcat Try to get that out of environment space error to go away, then we'll work on the absentee servlet.jar issue. Julius Davies, Programmer, CUCBC Email: [EMAIL PROTECTED], Ph: 604.730.6385 -Original Message- From: Steve Russell [mailto:[EMAIL PROTECTED]] Sent: Monday, November 25, 2002 1:55 PM To: Tomcat Users List Subject: Re: Problems running Tomcat from command line Hi; I'm reposting this, hoping that this version is more clear. -- I'm on Windows 2000 using Tomcat 3.2.4 ( not my choice ). I can start tomcat by double clicking the startup.bat file in C:\TOMCAT\bin. However, I can't start tomcat programmatically by typing startup.bat or startup ( without quotes ) from a dos prompt that is in C:\TOMCAT\bin I have tried running C:\TOMCAT\bin directly. It complains that it is out of environment space ( how do you set that in win 2000 )AND that it cant find C:\TOMCAT\lib\servlet.jar Its there. Here are the Windows 2000 environmental variables I have set for system: CLASSPATH: ..;C:\W2Kimage_c\cygwin\home\steve\Projects\Classes;C:\TOMCAT\ lib\servlet.jar PATH: %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem; %SystemRoot%\system32\nls;%SystemRoot%\system32\nls\English;C: JDK\bin;C:\ProgramFiles\GnuEmacs21.2\bin;C:\ProgramFiles;C:\PR OGRA~1\ULTRAE~1;C:\Program Files\Microsoft SQL Server\80\Tools\BINN; JAVA_HOME: C:\JDK TOMCAT_HOME C:\TOMCAT Thanks in advance for any clues Steve -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- . . . / This Cabinet is formd of Gold / And Pearl Crystal shining bright And within it opens into a World / . . . Another England there I saw / Another London with its Tower Another Thames other Hills / And another pleasant Surrey Bower . . . - from The Crystal Cabinet, a poem by William Blake. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Setting up an environment variable in Tomcat 4.1
As a follow up question, how would I set this up if I'm using Tomcat as a Service? On the command line, I use... set CATALINA_OPTS=-Dindemand.env=C:\Tomcat4.0.6\conf\indemand_env_tomcat.properties Re: Setting up an environment variable in Tomcat 4.1 - From: Craig R. McClanahan Subject: Re: Setting up an environment variable in Tomcat 4.1 Date: Thu, 31 Oct 2002 12:06:13 -0800 - On Thu, 31 Oct 2002, John Mattos wrote: Date: Thu, 31 Oct 2002 12:00:56 -0800 (PST) From: John Mattos [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED], [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: Setting up an environment variable in Tomcat 4.1 So how would I set up indemand.env as a system property? Also, yes, that's how I'm gettng it in code.Same way you set system property values for any other Java application -include them on the command line that starts Tomcat. You can do that bydefining an environment variable named CATALINA_OPTS that contains thecommand line options you want to pass to the JVM.set CATALINA_OPTS=-Dindemand.env=...Note that this is global to all webapps, and you'll need to restart Tomcatin order to change it.Craig--To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe#X0040;jakarta.apache.orgFor additional commands, e-mail: mailto:tomcat-user-help#X0040;jakarta.apache.org - Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now
Re: Problems running Tomcat from command line
Hi, All your problems stem from the lack of environment space. If you run this on '95/98 you'd get the same error. While running tomcat, do you really need to have such a long path (as specified)? You could write a small batch file to keep the path to the bare minimum - this way you'd have more space for initialization of tomcat. this is a temporary solution - since most of the jar files you'd come across force you to include them in the classpath. Manav. - Original Message - From: Steve Russell [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, November 26, 2002 3:25 AM Subject: Re: Problems running Tomcat from command line Hi; I'm reposting this, hoping that this version is more clear. -- I'm on Windows 2000 using Tomcat 3.2.4 ( not my choice ). I can start tomcat by double clicking the startup.bat file in C:\TOMCAT\bin. However, I can't start tomcat programmatically by typing startup.bat or startup ( without quotes ) from a dos prompt that is in C:\TOMCAT\bin I have tried running C:\TOMCAT\bin directly. It complains that it is out of environment space ( how do you set that in win 2000 )AND that it cant find C:\TOMCAT\lib\servlet.jar Its there. Here are the Windows 2000 environmental variables I have set for system: CLASSPATH: ..;C:\W2Kimage_c\cygwin\home\steve\Projects\Classes;C:\TOMCAT\lib\servlet.ja r PATH: %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SystemRoot%\s ystem32\nls;%SystemRoot%\system32\nls\English;C:JDK\bin;C:\ProgramFiles\GnuE macs21.2\bin;C:\ProgramFiles;C:\PROGRA~1\ULTRAE~1;C:\Program Files\Microsoft SQL Server\80\Tools\BINN; JAVA_HOME: C:\JDK TOMCAT_HOME C:\TOMCAT Thanks in advance for any clues Steve -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Problem finding HttpJspBase
I am new to Tomcat and am using Tomcat 4.1. I have installed it and everything seems to be working including the example programs. When I setup and run my application, I am getting the following error when ever I try and run my java application. I looked into why this might occur. Supposedly, this would occur if the jasper-runtime.jar is not in the CLASSPATH. I have checked and jasper-runtime.jar it is in the tomcat/common/lib directory. From reading the documentation all the jars in that directory are automatically added to the Tomcat CLASSPATH. Am I misreading the documentation? Is there something else I need to configure? ERROR HTTP Status 500 - _ type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: org/apache/jasper/runtime/HttpJspBase at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv e.java:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 80) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv e.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 80) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:239 6) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java :180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa lve.java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java :172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 80) 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.i nvokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 80) 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:40 5) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC onnection(Http11Protocol.java:380) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:50 8) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool .java:533) at java.lang.Thread.run(Thread.java:536) root cause java.lang.NoClassDefFoundError: org/apache/jasper/runtime/HttpJspBase at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:509) at java.lang.ClassLoader.defineClass(ClassLoader.java:438) at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:215) at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:131) at org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java: 504) at org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper .java:145) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja va:189) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:247) at
Re: Problems running Tomcat from command line
Right clicking on the startup.bat icon, going to properties I get Target : C:\TOMCAT\bin\startup.bat Start In: C:\TOMCAT\bin Steve At 02:11 PM 11/25/2002 -0800, you wrote: As you probably know, the icon shows what command it actually issues in the properties dialogue (right-click on it) along with a directory to start in property. What are these poperties? Julius Davies wrote: Steve Russell, Perhaps this link will help: http://www.google.com/search?q=out+of+environment+space+tomcat Try to get that out of environment space error to go away, then we'll work on the absentee servlet.jar issue. Julius Davies, Programmer, CUCBC Email: [EMAIL PROTECTED], Ph: 604.730.6385 -Original Message- From: Steve Russell [mailto:[EMAIL PROTECTED]] Sent: Monday, November 25, 2002 1:55 PM To: Tomcat Users List Subject: Re: Problems running Tomcat from command line Hi; I'm reposting this, hoping that this version is more clear. -- I'm on Windows 2000 using Tomcat 3.2.4 ( not my choice ). I can start tomcat by double clicking the startup.bat file in C:\TOMCAT\bin. However, I can't start tomcat programmatically by typing startup.bat or startup ( without quotes ) from a dos prompt that is in C:\TOMCAT\bin I have tried running C:\TOMCAT\bin directly. It complains that it is out of environment space ( how do you set that in win 2000 )AND that it cant find C:\TOMCAT\lib\servlet.jar Its there. Here are the Windows 2000 environmental variables I have set for system: CLASSPATH: ..;C:\W2Kimage_c\cygwin\home\steve\Projects\Classes;C:\TOMCAT\ lib\servlet.jar PATH: %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem; %SystemRoot%\system32\nls;%SystemRoot%\system32\nls\English;C: JDK\bin;C:\ProgramFiles\GnuEmacs21.2\bin;C:\ProgramFiles;C:\PR OGRA~1\ULTRAE~1;C:\Program Files\Microsoft SQL Server\80\Tools\BINN; JAVA_HOME: C:\JDK TOMCAT_HOME C:\TOMCAT Thanks in advance for any clues Steve -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- . . . / This Cabinet is formd of Gold / And Pearl Crystal shining bright And within it opens into a World / . . . Another England there I saw / Another London with its Tower Another Thames other Hills / And another pleasant Surrey Bower . . . - from The Crystal Cabinet, a poem by William Blake. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Steve Russell Applications Developer 301-251-1161 x 275 [EMAIL PROTECTED] Emmes Corporation 401 N. Washington Street, Suite 700 Rockville, MD 20850 - 1785 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Problems running Tomcat from command line
At 02:04 PM 11/25/2002 -0800, you wrote: Steve Russell, Perhaps this link will help: http://www.google.com/search?q=out+of+environment+space+tomcat Try to get that out of environment space error to go away, then we'll work on the absentee servlet.jar issue. Win 2000 does it differently. I went into control panel | system | advanced | environment and set ComSec to C:\WINNT\sysem32\cmd.exe /e:32768 No effect -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]