How to speed up development wie AppServer
Hello, when I develop my web applications I use JIdea an have Tomcat integrated in the IDE so I start it every time when I have made changes and wish to test them. This process takes on my Pentium 4 1.6 GHz quite some time. Tomcat starts up in 8-10 sec and then I takes some time for the JSP's to be compiled. I was wondering if I can speed up this process when I make use of a Application Server with Hot Deploy. Does that make sense for an application which is only based on a Servlet Container? Can I make up some time or will it take the same time in the end? Best Regards, Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat rookie needs help building application
I need help building my 1st Tomcat application. My system is a Windows XP PC. My version of Tomcat is 5.5.8. I have tomcat installed under the directory C:\Tomcat5.5 I have verified that the installation of Tomcat was successfull by visiting http://localhost:8080. Once at the test page, I also ran some of the JSP examples to verify that everything was working correctly. My problem is that I can't build an application successfully. I have searched the Tomcat documentation and several mailing list archives, but I have not found any documentation that states, "This is how to build a Tomcat application". I have organized my source code as described/recommended in the Tomcat documentation. I did have some success with Tomcat 5.0.16 under Linux Redhat9 a year ago, and as I recall, you compiled your application from the command line using the "Ant" utility. So I changed my current directory to the toplevel of my project and issued the command "ant compile". I received the following error message : BUILD FAILED C:\barry\myproject\build.xml:146: taskdef class org.apache.cataline.ant.DeployTask cannot be found Line 146 of my build.xml file is as follows : taskdef name="deploy" classname="org.apache.catalina.ant.DeployTask"/ I searched the JAR files under my Tomcat installation and found that the JAR file located at C:\Tomcat5.5\server\lib\catalina-ant.jar conatins the "missing" class. According to the Tomcat documentation that I read, JAR files placed under $CATALINA_HOME/common/lib are available both to web applications and internal Tomcat code. So I copied the JAR file under that directory and once again attempted to build my project/application. However, I received the same error message What do I need to do in order to build/compile my Tomcat5 project ? Is there a "How to build a Tomcat5 Project" document ? Please help a confused rookie. * Barry KimelmanToronto, Ontario, Canadaemail :[EMAIL PROTECTED] , [EMAIL PROTECTED]
Howto MBean
Hi there, I have written a bunch of MBeans for JBoss, but I can't figure out how to do it for Tomcat5 :(. I have google'd a lot of pages containing the MBean keyword, but have yet to find a tutorial for MBeans deployed on Tomcat5. My scenario: I need a persistent object in Tomcat (trigger mechanism) that will be triggered when a certain time of day (like midnight) is up. Furthermore I need some kind of cache for some of my beans. This cache should be callable from any jsp page if so desired. I'm not sure if MBean would be the right approach, but anyway this is what I normally use with JBoss. What I need is an MBean example written for Tomcat5 including example descriptors for same. I have tried to do this myself, but it looks like my Mbean doesn't get deployed on startup of Tomcat. I can't see it in the Tomcat log. In the test example below, the Mbean is just suppose to show the current datetime when the getShowTime (attribute showTime) gets activated. Also the System.outs should be printed out during init/start/stop/destroy of this MBean, but nothing happens. I have tried the following: In server.xml I added the following: Listener className=org.apache.catalina.mbeans.ServerLifecycleListener debug=0 descriptors=/mbean/test/mbean-descriptors.xml/ Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener debug=0/ In mbean/test/mbean-descriptors.xml: mbean name=mbean.test.ShowTimeMBean className=org.apache.catalina.mbeans.ClassNameMBean description=Shows the current time domain=Catalina group=ShowTime type=mbean.test.ShowTime attribute name=timeNow description=Shows the current time type=java.lang.String writeable=false/ operation name=start description=Start impact=ACTION returnType=void / operation name=stop description=Stop impact=ACTION returnType=void / operation name=init description=Init impact=ACTION returnType=void / operation name=destroy description=Destroy impact=ACTION returnType=void / operation name=showDateTimeNow description=showDateTimeNow impact=ACTION returnType=java.lang.String / /mbean In package test.mbean: public class ShowTime { private String showTime; public String getShowTime() { SimpleDateFormat sdf = new SimpleDateFormat(-MM-dd tt:mm:ss); showTime = sdf.format(new Date()); return showTime; } public void start() { System.out.println(start called..); } public void stop() { System.out.println(stop called..); } public void init() { System.out.println(init called..); } public void destroy() { System.out.println(destroy called..); } } public class ShowTimeMBean extends BaseModelMBean{ String timeNow = null; protected MBeanServer mserver; protected ManagedBean managed; public ShowTimeMBean() throws MBeanException, RuntimeOperationsException { initialize(); } public ShowTimeMBean(ModelMBeanInfo modelMBeanInfo) throws MBeanException, RuntimeOperationsException { super(modelMBeanInfo); initialize(); } public ShowTimeMBean(String s) throws MBeanException, RuntimeOperationsException { super(s); initialize(); } public ShowTimeMBean(String s, ModelerSource modelerSource) throws MBeanException, RuntimeOperationsException { super(s, modelerSource); initialize(); } private void initialize() { registry = MBeanUtils.createRegistry(); mserver = MBeanUtils.createServer(); managed = registry.findManagedBean(ShowTime); } public void start() { System.out.println(ShowTimeMBean::start called..); } public void stop() { System.out.println(ShowTimeMBean::stop called..); } public void init() { System.out.println(ShowTimeMBean::init called..); } public void destroy() { System.out.println(ShowTimeMBean::destroy called..); } public String showDateTimeNow() { ShowTime st = (ShowTime)resource; timeNow = st.getShowTime(); return timeNow; } public String getTimeNow() { return timeNow; } } Everything gets deployed using a .war file. Can any of you point me in the right direction? Regards. Kris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using RealmBase.Digest(...)
Mark Leone wrote: snip If you want to know what your default charset is, invoke getDigestEncoding(). Whatever value is returned is the charset you need all your users to use when they authenticate (or a charset that is compatible within the ranges of characters that the users will be entering). If they will be using other charsets, you should be able to determine what they're using from the Content-Type entity header field in the HTTP request message, and then set that charset value for your realm using setDigestEncoding(). The charset will be specified as a parameter value in the Content-Type field. For example, Content-Type: text/html; charset=ISO-8859-4 See section 14.17 of the HTTP spec; here's the link: http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.17 Be aware that I did some testing of digest authentication and passwords that contained UTF-8 characters (random Arabic and Japanese as far as I recall) and I noticed that the browsers mangled the UTF-8 passwords during the generation of the digest and did so in an inconsistent manner. Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat rookie needs help building application
Barry Kimelman wrote: So I changed my current directory to the toplevel of my project and issued the command ant compile. I received the following error message : BUILD FAILED C:\barry\myproject\build.xml:146: taskdef class org.apache.cataline.ant.DeployTask cannot be found Line 146 of my build.xml file is as follows : taskdef name=deploy classname=org.apache.catalina.ant.DeployTask/ I searched the JAR files under my Tomcat installation and found that the JAR file located at C:\Tomcat5.5\server\lib\catalina-ant.jar conatins the missing class. According to the Tomcat documentation that I read, JAR files placed under $CATALINA_HOME/common/lib are available both to web applications and internal Tomcat code. But you're neither of those :-) so it's *your* CLASSPATH that needs to include C:\Tomcat5.5\server\lib\catalina-ant.jar when you run ant from the command line. -- Hassan Schroeder - [EMAIL PROTECTED] Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com dream. code. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat rookie needs help building application
First of all, welcome to the wonderful, wacky world of Java web programming. Second, Tomcat is the server that serves up your application. You are so new it is hard to tell what you know and don't know. Do you know the basic structure a web application must have in Tomcat including where web.xml is, whre the WEB-INF is, etc.? Third, you seem to be focusing on compiling classes, right? Tomcat does not build or compile web applications for you. Tomcat serves up the applications that are already running. Many times you have a development Tomcat server on which you run your applications so that you can easily test the applications. Different people have different levels of experience doing different things regarding compiling. The best thing you can do to learn about class compiling and loading is to learn all about CLASSPATH and ClassLoaders in Java. Then you can choose what to do, such as use Ant for compiling your classes, etc. Fourth, you might want to think about using a standard web framework at the start to assist your building a web application. A web framework, like Struts, codes some things you would have to do for yourself anyway. You can take the time it would take you to write all that framework code to pick out a good one that is pre-built for you. So, don't worry if it takes a little time. Jack On Sun, 20 Mar 2005 10:11:08 -0500 (Eastern Standard Time), Barry Kimelman [EMAIL PROTECTED] wrote: I need help building my 1st Tomcat application. My system is a Windows XP PC. My version of Tomcat is 5.5.8. I have tomcat installed under the directoryC:\Tomcat5.5 I have verified that the installation of Tomcat was successfull by visiting http://localhost:8080. Once at the test page, I also ran some of the JSP examples to verify that everything was working correctly. My problem is that I can't build an application successfully. I have searched the Tomcat documentation and several mailing list archives, but I have not found any documentation that states, This is how to build a Tomcat application. I have organized my source code as described/recommended in the Tomcat documentation. I did have some success with Tomcat 5.0.16 under Linux Redhat9 a year ago, and as I recall, you compiled your application from the command line using the Ant utility. So I changed my current directory to the toplevel of my project and issued the command ant compile. I received the following error message : BUILD FAILED C:\barry\myproject\build.xml:146: taskdef class org.apache.cataline.ant.DeployTask cannot be found Line 146 of my build.xml file is as follows : taskdef name=deploy classname=org.apache.catalina.ant.DeployTask/ I searched the JAR files under my Tomcat installation and found that the JAR file located at C:\Tomcat5.5\server\lib\catalina-ant.jar conatins the missing class. According to the Tomcat documentation that I read, JAR files placed under $CATALINA_HOME/common/lib are available both to web applications and internal Tomcat code. So I copied the JAR file under that directory and once again attempted to build my project/application. However, I received the same error message What do I need to do in order to build/compile my Tomcat5 project ? Is there a How to build a Tomcat5 Project document ? Please help a confused rookie. * Barry Kimelman Toronto, Ontario, Canada email : [EMAIL PROTECTED] , [EMAIL PROTECTED] -- You can lead a horse to water but you cannot make it float on its back. ~Dakota Jack~ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Rookie needs help resolving HTTP Status 500 error message
My system is a Windows XP PC running Tomcat 5.5.8 I have been able to compile and install my Tomcat project. When I visit the URL corresponding to my Tomcat project I see the "starting" page I expected to see. When I click on the "SUBMIT" button on the form on the main page, I receive the following error message from Tomcat : HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: 8 in the jsp file: /logon.jsp Generated servlet error: DatabaseBean cannot be resolved or is not a type An error occurred at line: 8 in the jsp file: /logon.jsp Generated servlet error: DatabaseBean cannot be resolved or is not a type An error occurred at line: 8 in the jsp file: /logon.jsp Generated servlet error: DatabaseBean cannot be resolved or is not a type == The contents of the named JSP file is as follows : %@ page language="java" contentType="text/html" %%-- This JSP is to test my own personal Bean/class. --%htmlheadtitleLogon/title/headbodyjsp:useBean id="foobar" scope="session" class="DatabaseBean" /jsp:setProperty name="foobar" property="*" / %-- First call the method that generates the data --%%foobar.user_logon();% %-- Now call the method that retrieves the generated data --%%= foobar.getHtmldata() % /body/html I checked the directory structure where my Tomcat project was deployed and I found that my class file DatabaseBean.class file was located under the WEB-INF\classes sub-directory as expected. So why am I receiving the error message from Tomcat ? Is there something I need to do to set the value for CLASSPATH ? * Barry KimelmanToronto, Ontario, Canadaemail :[EMAIL PROTECTED] , [EMAIL PROTECTED]
Re: Rookie needs help resolving HTTP Status 500 error message
On Sun, Mar 20, 2005 at 03:45:23PM -0500, Barry Kimelman wrote: : An error occurred at line: 8 in the jsp file: /logon.jsp : Generated servlet error: : DatabaseBean cannot be resolved or is not a type : [snip] : jsp:useBean id=foobar scope=session class=DatabaseBean / : [more snip] The error message indicates that the class DatabaseBean is not in a package, such as com.someproject.DatabaseBean Packageless classes are discouraged, and will not load under Tomcat 5.x and later (aka servlet spec 2.3 and later). Put your DatabaseBean class in a package and this error should fade away. -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Howto MBean
Tomcat doesn't have an automatic MBean deployment option for a Context. You'll need a ServletContextListener (or otherwise) to register your application MBeans. Note that with commons-modeler 1.1 (which ships with Tomcat 5), it is no longer necessary to include your mbeans-descriptor.xml in the ServerLifecycleListener. commons-modeler will automagically load it when your MBeans are registered. Kris Balle Kristensen [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi there, I have written a bunch of MBeans for JBoss, but I can't figure out how to do it for Tomcat5 :(. I have google'd a lot of pages containing the MBean keyword, but have yet to find a tutorial for MBeans deployed on Tomcat5. My scenario: I need a persistent object in Tomcat (trigger mechanism) that will be triggered when a certain time of day (like midnight) is up. Furthermore I need some kind of cache for some of my beans. This cache should be callable from any jsp page if so desired. I'm not sure if MBean would be the right approach, but anyway this is what I normally use with JBoss. What I need is an MBean example written for Tomcat5 including example descriptors for same. I have tried to do this myself, but it looks like my Mbean doesn't get deployed on startup of Tomcat. I can't see it in the Tomcat log. In the test example below, the Mbean is just suppose to show the current datetime when the getShowTime (attribute showTime) gets activated. Also the System.outs should be printed out during init/start/stop/destroy of this MBean, but nothing happens. I have tried the following: In server.xml I added the following: Listener className=org.apache.catalina.mbeans.ServerLifecycleListener debug=0 descriptors=/mbean/test/mbean-descriptors.xml/ Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener debug=0/ In mbean/test/mbean-descriptors.xml: mbean name=mbean.test.ShowTimeMBean className=org.apache.catalina.mbeans.ClassNameMBean description=Shows the current time domain=Catalina group=ShowTime type=mbean.test.ShowTime attribute name=timeNow description=Shows the current time type=java.lang.String writeable=false/ operation name=start description=Start impact=ACTION returnType=void / operation name=stop description=Stop impact=ACTION returnType=void / operation name=init description=Init impact=ACTION returnType=void / operation name=destroy description=Destroy impact=ACTION returnType=void / operation name=showDateTimeNow description=showDateTimeNow impact=ACTION returnType=java.lang.String / /mbean In package test.mbean: public class ShowTime { private String showTime; public String getShowTime() { SimpleDateFormat sdf = new SimpleDateFormat(-MM-dd tt:mm:ss); showTime = sdf.format(new Date()); return showTime; } public void start() { System.out.println(start called..); } public void stop() { System.out.println(stop called..); } public void init() { System.out.println(init called..); } public void destroy() { System.out.println(destroy called..); } } public class ShowTimeMBean extends BaseModelMBean{ String timeNow = null; protected MBeanServer mserver; protected ManagedBean managed; public ShowTimeMBean() throws MBeanException, RuntimeOperationsException { initialize(); } public ShowTimeMBean(ModelMBeanInfo modelMBeanInfo) throws MBeanException, RuntimeOperationsException { super(modelMBeanInfo); initialize(); } public ShowTimeMBean(String s) throws MBeanException, RuntimeOperationsException { super(s); initialize(); } public ShowTimeMBean(String s, ModelerSource modelerSource) throws MBeanException, RuntimeOperationsException { super(s, modelerSource); initialize(); } private void initialize() { registry = MBeanUtils.createRegistry(); mserver = MBeanUtils.createServer(); managed = registry.findManagedBean(ShowTime); } public void start() { System.out.println(ShowTimeMBean::start called..); } public void stop() { System.out.println(ShowTimeMBean::stop called..); } public void init() { System.out.println(ShowTimeMBean::init called..); } public void destroy() { System.out.println(ShowTimeMBean::destroy called..); } public String showDateTimeNow() { ShowTime st = (ShowTime)resource; timeNow = st.getShowTime(); return timeNow; } public String getTimeNow() { return timeNow; } } Everything gets deployed using a .war file. Can any of you point me in the right direction? Regards. Kris - To unsubscribe,
php and apache tomcat
I have an apache tomcat server 4.1 running on my PC, I tried to install PHP using hte installer adn it came up with the option to allow it to run with an apache server. but when I choose it, there was an error message saying that a config file was missing..the file it was requesting wasnt on my system at all. Anyone else get this problem? Pete - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: php and apache tomcat
Apache isn't the same thing as 'Apache Software Foundation / Jakarta Tomcat'. The usual PHP requires plain old Apache, not Tomcat. -Original Message- From: peter smith [mailto:[EMAIL PROTECTED] Sent: Sunday, March 20, 2005 5:59 PM To: tomcat-user@jakarta.apache.org Subject: php and apache tomcat I have an apache tomcat server 4.1 running on my PC, I tried to install PHP using hte installer adn it came up with the option to allow it to run with an apache server. but when I choose it, there was an error message saying that a config file was missing..the file it was requesting wasnt on my system at all. Anyone else get this problem? Pete - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Yahoo! Auto Response
I no longer use this email address, to find out my new email address send me an instant message to [EMAIL PROTECTED] using MSN messenger, do not send an email to that address as I don't use that one either Original Message: X-YahooFilteredBulk: 211.162.74.177 Authentication-Results: mta149.mail.mud.yahoo.com from=jakarta.apache.org; domainkeys=neutral (no sig) X-Originating-IP: [211.162.74.177] Return-Path: tomcat-user@jakarta.apache.org Received: from 211.162.74.177 (EHLO yahoo.com) (211.162.74.177) by mta149.mail.mud.yahoo.com with SMTP; Sun, 20 Mar 2005 16:08:38 -0800 From: tomcat-user@jakarta.apache.org To: [EMAIL PROTECTED] Subject: Mail Delivery (failure [EMAIL PROTECTED]) Date: Mon, 21 Mar 2005 08:08:35 +0800 MIME-Version: 1.0 Content-Type: multipart/related; type=multipart/alternative; boundary==_NextPart_000_001B_01C0CA80.6B015D10 X-Priority: 3 X-MSMail-Priority: Normal This is a multi-part message in MIME format. --=_NextPart_000_001B_01C0CA80.6B015D10 Content-Type: multipart/alternative; boundary==_NextPart_001_001C_01C0CA - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: php and apache tomcat
Benson Margulies wrote: Apache isn't the same thing as 'Apache Software Foundation / Jakarta Tomcat'. The usual PHP requires plain old Apache, not Tomcat. Well -- yes to the first, not exactly to the second. The chances are good that the original poster is confused about the difference between Apache httpd and Tomcat, but PHP 4 has an option in the `configure` script to build a PHP servlet. I've built it, run it, used it for lightweight PHP stuff. Works OK, more or less, but any significant glitch takes the whole JVM down. In other words, not suitable for serious production use, but fine for running one calendar app, or some such trivia :-) The servlet build function seems to be missing in PHP5, though. FWIW, -- Hassan Schroeder - [EMAIL PROTECTED] Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com dream. code. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: php and apache tomcat
I haven't tried this, but I suppose you can also compile php as CGI and use it via CGI servlet. And you can configure apache + tomcat using mod_jk, and serve php pages with the Apache server. Regards, Pablo E. Siciliano. - Original Message - From: Hassan Schroeder [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Sunday, March 20, 2005 9:22 PM Subject: Re: php and apache tomcat Benson Margulies wrote: Apache isn't the same thing as 'Apache Software Foundation / Jakarta Tomcat'. The usual PHP requires plain old Apache, not Tomcat. Well -- yes to the first, not exactly to the second. The chances are good that the original poster is confused about the difference between Apache httpd and Tomcat, but PHP 4 has an option in the `configure` script to build a PHP servlet. I've built it, run it, used it for lightweight PHP stuff. Works OK, more or less, but any significant glitch takes the whole JVM down. In other words, not suitable for serious production use, but fine for running one calendar app, or some such trivia :-) The servlet build function seems to be missing in PHP5, though. FWIW, -- Hassan Schroeder - [EMAIL PROTECTED] Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com dream. code. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.7.3 - Release Date: 15/03/05 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat Deploy
Quick question on deploying to Tomcat and Eclipse integration. If it's too far off topic I apologize in advance. The IDS is stellar for deploying to a single server. I personally have it deploying to Tomcat running on my workstation. What approach should I take for deploying to the production server? Do I need to get into a CVS of some sort? Or is there a way to set up an alternate installation to allow deployment from the IDE to the Production server? Geoff [EMAIL PROTECTED] www.orcastech.com
Re: php and apache tomcat
But is stable? Pablo E. Siciliano wrote: I haven't tried this, but I suppose you can also compile php as CGI and use it via CGI servlet. And you can configure apache + tomcat using mod_jk, and serve php pages with the Apache server. Regards, Pablo E. Siciliano. - Original Message - From: Hassan Schroeder [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Sunday, March 20, 2005 9:22 PM Subject: Re: php and apache tomcat Benson Margulies wrote: Apache isn't the same thing as 'Apache Software Foundation / Jakarta Tomcat'. The usual PHP requires plain old Apache, not Tomcat. Well -- yes to the first, not exactly to the second. The chances are good that the original poster is confused about the difference between Apache httpd and Tomcat, but PHP 4 has an option in the `configure` script to build a PHP servlet. I've built it, run it, used it for lightweight PHP stuff. Works OK, more or less, but any significant glitch takes the whole JVM down. In other words, not suitable for serious production use, but fine for running one calendar app, or some such trivia :-) The servlet build function seems to be missing in PHP5, though. FWIW, -- Hassan Schroeder - [EMAIL PROTECTED] Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com dream. code. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.7.3 - Release Date: 15/03/05 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
5.5.7 Build Failed -- Missing RedirectorElement class
I've been running Tomcat from a binary distribution for a couple years (4.1.24 for most of the time, 5.5.7 for a month or so) on a Windows XP platform. Today I decided to download the source distribution of 5.5.7 and do a build. I downloaded the .zip file, unzipped it, and typed ant on the command line in the jakarta-tomcat-5.5.7-src directory. The ant script executed, but the build failed, with the last part of the ant output provided below. Looks like the problem is the missing RedirectorElement class. I didn't see anything about this in the release notes- anyone know how I can get it to build? I noticed that a usr/ directory with lots of subdirectories got created by the ant script. Is that normal for a Windows build? Looks like unix. Also, anyone know why the ant script downloads a zip file with mx4j every time I execute it? It doesn't seem to get saved, since it downloads it again the next time I run the script. Kind of annoying, cause it takes a long time to download, even though I have 4 Mbps bandwidth. -Mark build-catalina-core: [javac] Compiling 305 source files to C:\Apache Tomcat\jakarta-tomcat-5.5.7- src\jakarta-tomcat-5\build\classes [javac] C:\Apache Tomcat\jakarta-tomcat-5.5.7-src\jakarta-tomcat-catalina\ca talina\src\share\org\apache\catalina\ant\BaseRedirectorHelperTask.java:29: canno t find symbol [javac] symbol : class RedirectorElement [javac] location: package org.apache.tools.ant.types [javac] import org.apache.tools.ant.types.RedirectorElement; [javac] ^ [javac] C:\Apache Tomcat\jakarta-tomcat-5.5.7-src\jakarta-tomcat-catalina\ca talina\src\share\org\apache\catalina\ant\BaseRedirectorHelperTask.java:60: canno t find symbol [javac] symbol : class RedirectorElement [javac] location: class org.apache.catalina.ant.BaseRedirectorHelperTask [javac] protected RedirectorElement redirectorElement = null; [javac] ^ [javac] C:\Apache Tomcat\jakarta-tomcat-5.5.7-src\jakarta-tomcat-catalina\ca talina\src\share\org\apache\catalina\ant\BaseRedirectorHelperTask.java:216: cann ot find symbol [javac] symbol : class RedirectorElement [javac] location: class org.apache.catalina.ant.BaseRedirectorHelperTask [javac] public void addConfiguredRedirector(RedirectorElement redirector Element) { [javac] ^ [javac] C:\Apache Tomcat\jakarta-tomcat-5.5.7-src\jakarta-tomcat-catalina\ca talina\src\share\org\apache\catalina\ant\BaseRedirectorHelperTask.java:208: cann ot find symbol [javac] symbol : method setCreateEmptyFiles(boolean) [javac] location: class org.apache.tools.ant.taskdefs.Redirector [javac] redirector.setCreateEmptyFiles(createEmptyFiles); [javac] ^ [javac] Note: * uses or overrides a deprecated API. [javac] Note: Recompile with -Xlint:deprecation for details. [javac] 4 errors BUILD FAILED C:\Apache Tomcat\jakarta-tomcat-5.5.7-src\build.xml:50: Following error occured while executing this line C:\Apache Tomcat\jakarta-tomcat-5.5.7-src\jakarta-tomcat-5\build.xml:510: Follow ing error occured while executing this line C:\Apache Tomcat\jakarta-tomcat-5.5.7-src\jakarta-tomcat-5\build.xml:475: Follow ing error occured while executing this line C:\Apache Tomcat\jakarta-tomcat-5.5.7-src\jakarta-tomcat-catalina\catalina\build .xml:604: Compile failed; see the compiler error output for details. Total time: 4 minutes 16 seconds C:\Apache Tomcat\jakarta-tomcat-5.5.7-src - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat hangs up from time to time
Well, I have tried to kill tomcat process with SIGQUIT in order to take thread dump. No any reaction. Only SIGKILL works. On Thu, 17 Mar 2005 11:28:58 - Peter Crowther [EMAIL PROTECTED] wrote: From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] But about two-five times per day, Tomcat hangs up, java (version is 1.5.0_01-b08) eats much cpu (up to 90%), and no any response from Tomcat, no warnings/errors in logs. I even can't stop it with shutdown.sh! Have anyone the same problem? Any solutions, advices, thoughts? Check your JVM documentation, and then kill the main Tomcat process with the signal that causes a thread dump. Read/grep through the thread dump - who's doing what? - Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[ANN] JK-1.2.9 BETA Released
The Apache Jakarta Tomcat team is proud to announce the immediate availability of Jakarta Tomcat Connectors 1.2.9-beta. The release contains a significant number of bug fixes and new features. We expect it to be ratified as a Stable release when the vote takes place in the next two weeks. Please see the http://jakarta.apache.org/tomcat/connectors-doc/changelog.html for a full list of changes. Since release 1.2.9 the JkShmFile property has been added for Apache 1.3.x and Apache 2.x web servers on UNIX and LINUX platforms. Load balancer will not work properly if this directive is not present. Beta version does not contain binary builds. Sources can be found at: http://www.apache.org/dist/jakarta/tomcat-connectors/jk/source/jk-1.2.9/ If you find any bugs during testing this release, please fill in the http://issues.apache.org/bugzilla/enter_bug.cgi?product=Tomcat%205 Bug Report. When entering bug select Native:JK Component. Note: You may have experience problems while downloading sources, because Apache infrastructure is doing major hardware upgrade this weekend. The Jakarta Tomcat Connectors Team. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Unable to load classes from commons-lang-2.0.jar
Hi, I need to use classes from commons-lang-2.0.jar in Tomcat 5.0.29 on Red Hat Linux (More specifically the class StringUtils). The jar is included in the web app and put in the /common/endorsed but still I am unable to load the classes. Does anyone help me solve the problem ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]