Re: Re[2]: Context docBase + linux
Geriausia naudoti relative path ../../.. nuo webapps *.xml failiuke, kuris guli webapps dir'e zr webapps pavyzdziu. O dar geriau mestelti *.war i webapps! Server.xml labai labai negera vieta aprasineti savo (ne sisteminius) aplicationus Likejimai Pranas - Original Message - From: Algirdas M. [EMAIL PROTECTED] To: Antony Schuerewegen [EMAIL PROTECTED] Cc: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, December 29, 2003 10:55 PM Subject: Re[2]: Context docBase + linux AS wat was the path name you created /home/webbapptest or user/home/webbapptest or /user/home/webbapptest path was /home/webapptest. That's a user webapptest home directory. I've created user /home/webapptest (with WEB-INF/classes, etc.) for java web applications and added in server.xml line Context docBase=/home/webapptest path=/w...restarted Tomcat. And application with path /w doesn't work. Tomcat logs are showing: StandardContext[/w]: Error initializing resources: Document base /home/webapptest does not exist or is not a readable directory if you are under unix, the chmod will do this read man chmod How to do that directory readable? Thanks. -- Best regards, Algirdas mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Best regards, Algirdasmailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re[2]: Context docBase + linux
Sorry for Out off topic I should be addressed only to: Algirdas :-( - Original Message - From: Pranas [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED]; Algirdas M. [EMAIL PROTECTED] Sent: Tuesday, December 30, 2003 9:14 AM Subject: Re: Re[2]: Context docBase + linux Geriausia naudoti relative path ../../.. nuo webapps *.xml failiuke, kuris guli webapps dir'e zr webapps pavyzdziu. O dar geriau mestelti *.war i webapps! Server.xml labai labai negera vieta aprasineti savo (ne sisteminius) aplicationus Likejimai Pranas - Original Message - From: Algirdas M. [EMAIL PROTECTED] To: Antony Schuerewegen [EMAIL PROTECTED] Cc: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, December 29, 2003 10:55 PM Subject: Re[2]: Context docBase + linux AS wat was the path name you created /home/webbapptest or user/home/webbapptest or /user/home/webbapptest path was /home/webapptest. That's a user webapptest home directory. I've created user /home/webapptest (with WEB-INF/classes, etc.) for java web applications and added in server.xml line Context docBase=/home/webapptest path=/w...restarted Tomcat. And application with path /w doesn't work. Tomcat logs are showing: StandardContext[/w]: Error initializing resources: Document base /home/webapptest does not exist or is not a readable directory if you are under unix, the chmod will do this read man chmod How to do that directory readable? Thanks. -- Best regards, Algirdas mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Best regards, Algirdasmailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] custom tags in a page
Antony Paul [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Thank you for the reply. 'msgtag' don't have attributes. The other tag 'outtag' have attributes and it is invoked in service method itself . No tags are nested. But I cannot understand the logic in creating a separate method call for each tag invocation. In each method it is using same code other than the retrieved tag instance is assigned to a new variable and methods are invoked on this. Is there any particular reason for doing this ?. My reason for asking this question is to know and learn how pooling works. Again, I can't say why Jasper does this without seeing your webapp :). The reason that Jasper does message invocations at all is to (hopefully) get around the Java limitation that no single method can be longer than 64K. This caused all sorts of problems with TC 3.x and TC 4.0.x with JSP files that had a lot of Tags. Pooling is a separate issue: Jasper will still generate methods even if you disable pooling. Pooling involves re-using the same instance of the Tag for multiple invocations. This means that a page that looks like: ... x:msgtag / ... x:msgtag / will likely use the same Object instance for both calls. This generally saves calls to GC, and so allows the page to scale better. However, the current TC implementation synchronizes on both the 'get' and the 'put'. In some cases this may swamp the savings you get from fewer GCs. As always, your mileage may very :) rgds Antony Paul - Original Message - From: Bill Barker [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, December 30, 2003 11:36 AM Subject: Re: [OT] custom tags in a page Easy question first: If you don't need BodyTag, don't use it, since it is a potential memory hog. If you need to process it in a loop, use IterationTag instead. (of course this assumes TC 4.x or higher) Hard question last: Without seeing your JSP page, I can't tell you exactly why Jasper chooses to create two methods. However, popular candidates are: 1) The different calls to 'msgtag' specify different attributes sets. 2) One or more of the 'msgtag' invocations is nested within the body of another Tag. The reason to use method-calls is to (try) and prevent any single method in the resulting .class from exceding 64K (at which point javac pucks :). Antony Paul [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, I wrote two custom tags. One is used only once in the page(msgtag) while the other one is used multiple times(outtag) similar to JSTL c:out. Both classes extends BodyTagSupport. When I looked at the compiled servlet code both tags are called in different ways. Each use of msgtag is made a method call. If I put 2 msgtag(both are exacly same) in JSP it creates 2 methods. outtag is invoked directly in servlet. Why the difference ?. Is this behavior can be controlled through coding ?. Which one is better ?. Why Tomcat is creating one method per each tag invocation.? Why not manage it like an object. Each time it is getting an instance from a pool ? BTW Extending TagSupport or BodyTagSupport is better. I have no need to process the body ? Any performance gain ? rgds Antony Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: manager
As someone answered a similar question of mine yesterday, you can use valves to deny access to these apps. Then you have the safety backup of not removing them, in case you *might* need them later, but you just deny all access to it. See the Tomcat docs (if you haven't deleted it yet!) for details. --- Jonathan Locke [EMAIL PROTECTED] wrote: maybe this is already covered on the tomcat website or in some FAQ, but i can't seem to find the answer i'm looking for... i want to turn off all the tomcat administration tools (manager, admin, etc) and the html documentation that's available through the root context... reason being that the machine is never updated or maintained via these tools and so (even though they have a password) the management apps are just a potential security issue. how exactly should i go about this? thanks, jon _ Scanned on 30 Dec 2003 00:26:36 Scanning by http://erado.com _ Scanned on 30 Dec 2003 00:26:37 Scanning by http://erado.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Find out what made the Top Yahoo! Searches of 2003 http://search.yahoo.com/top2003 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: org.xml.sax.SAXParseException
TC 3.3.1a uses Crimson as its default xml parser (unless you change things, and with a minor cavat if using a 1.4.x JVM :). TC 4.1.x 5.0.x use xerces as the default xml parser. You should check $CATALINA_HOME/common/endorsed to see which version of xerces is installed, and upgrade it if necessary. Since TC 3.3.1a works, it is unlikely that you have a stray xml parser in $JAVA_HOME/jre/lib/ext, but it never hurts to check :). [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I did get tomcat 5.0.14 'out of the box'. I originally tried 5.0.16, but had the same problem, and my instructor suggested trying 5.0.14. I also tried 4.2.something, with the same problem. I did get version 3.1.1a of tomcat to work, however. My instructor thinks I have some xml parser on my computer that is being invoked in place of the appropriate xml parser, but I don't know where to even begin to look for such a thing. any other suggestions? thanks, Brett Dans un e-mail daté du 12/29/2003 3:46:05 PM W. Europe Standard Time, [EMAIL PROTECTED] a écrit : Howdy, You get this out of the box, or have you modified manager.xml in any way? Anyways, don't bother with 5.0.14 (even though it should be fine), use 5.0.16 which is stable. Yoav Shapira Millennium ChemInformatics -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Sunday, December 28, 2003 2:09 PM To: [EMAIL PROTECTED] Subject: org.xml.sax.SAXParseException I'm having trouble getting tomcat 5.0.14 running on win ME. I have not set my classpath. I have set CATALINA_HOME (C:\jakarta-tomcat-5.0.14) and CATALINA_BASE and JAVA_HOME. I get the following error: INFO: Processing Context configuration file URL file:C:\jakarta-tomcat-5.0.14\conf\Catalina\localhost\manager.xml Dec 26, 2003 6:56:35 PM org.apache.commons.digester.Digester fatalError SEVERE: Parse Fatal Error at line 1 column 3: The markup declarations contained or pointed to by the document type declaration must be well-formed. org.xml.sax.SAXParseException: The markup declarations contained or pointed to by the document type declaration must be well-formed. at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unkn own Source) at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source) at org.apache.xerces.impl.XMLDTDScannerImpl.scanDecls(Unknown Source) at org.apache.xerces.impl.XMLDTDScannerImpl.scanDTDExternalSubset(Unknown Source) at org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(Un know n Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkn own Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.commons.digester.Digester.parse(Digester.java:1548) at org.apache.catalina.startup.ContextConfig.defaultConfig(ContextConfig.j ava: 612) at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:744) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig. java :257) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleS uppo rt.java:166) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4116 ) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.j ava: 866) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:850) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633) at org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDepl oyer .java:831) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja va:3 9) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso rImp l.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java: 252) at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:256) at org.apache.commons.digester.Rule.end(Rule.java:276) at org.apache.commons.digester.Digester.endElement(Digester.java:1058) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndEl ement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDi
custom realm - classloader problems
I installed a custom realm on Tomcat 4.1. I copied the realm class into server/classes. My custom realm uses other libraries which I copied to common/lib. These auxillary libraries call JAAS. So I had to copy jaas.jar to common/lib. Even though jaas.jar is included under server/lib but this is not accessible to the classes under common/lib. What is the recommended approach for placing all these packages ? Can I tweak some configuration so these libraries are automatically picked up instead of copying them over to the tomcat install directory ? I added all these jars to the classpath but this led to more compilation errors(class not found errors). Also tried adding the directory to the JAVA_ENDORSED_DIRS in setclasspath.sh but this did not work either. Thanks in advance __ Do you Yahoo!? Free Pop-Up Blocker - Get it now http://companion.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Building 5.1 from Source
Ya you are right. CVS isnt able to download source. Other downloads are Ok. ie. proxy settings are Ok. Antony Paul - Original Message - From: Ramakrishna Rallapalli [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, December 30, 2003 12:13 PM Subject: RE: Building 5.1 from Source Although the CVS is put in path , still I faced problem in getting the files checkout from CVS. Ramakrishna -Original Message- From: Antony Paul [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 30, 2003 12:09 PM To: Tomcat Users List Subject: Re: Building 5.1 from Source When I run ant it is running cvs and it fails and continue processing other tasks. I dont have CVS in path. Antony Apul. - Original Message - From: Ramakrishna Rallapalli [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, December 30, 2003 11:56 AM Subject: RE: Building 5.1 from Source I tried setting up the proxy details, but still it could not get files from CVS. Thanks for your reply. I will try out with 5.0.16. -Original Message- From: Bill Barker [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 30, 2003 11:45 AM To: [EMAIL PROTECTED] Subject: Re: Building 5.1 from Source Yoav is largely correct. If you are using the 5.0.16 source distro, then *nothing* that doesn't ship with requires CVS (which is s nice, for us poor people sitting behind firewalls :). You probably need to modify your 'build.properties' file to point to the correct place for servlet-api-5 et. al. Since I'm guessing that your problem is with the firewall, also make sure to un-comment and set the 'proxy.host' and 'proxy.port' attributes in your 'build.properties' file. Ramakrishna Rallapalli [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] om... Hi, I am trying to build 5.1 from source. But unable to run the build script. It looks for a download target in the build.xml file. And its unable to check out the files from CVS erpository. Can anyone help me out? Regards , Ramakrishna - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 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]
SV: URL-rewriting (regexp)
Hi again, I agree and the url-rewrite module I've installed is acting like a filter and doing the job well. My problem is actually more of a regexp problem. In my filter I must specify a url-pattern that should be true if the filter should be invoked. I do not want it invoked on all url:s but only on those urls which does not have .action in it. Anyone know how to write that regexp? Regards Mattias Bogeblad -Ursprungligt meddelande- Från: news [mailto:[EMAIL PROTECTED] För Bill Barker Skickat: den 30 december 2003 06:53 Till: [EMAIL PROTECTED] Ämne: Re: URL-rewriting With TC 5.x, Servlet-mapping happens very early (long before any non-TC specific code has a chance :). With TC 4.1.x, it still happens before the Filters get called, but it is still possible to use a (Tomcat-specific) Valve to do the rewrite. (N.B. Valves get called after the Mapper in TC 5.x, so this won't help you there :). Overall (regardless of what you use to implement re-writing), I'd go with Yoav's suggestion of using a Filter that calls rd.forward on the re-written URI. IMHO, you will have a lot more hair at the end of it ;-). Mattias Bogeblad [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi and thanx for the suggestion but I want to try the rewrite module first as that offers all flexibility I need. The package I named is a pure java implementation of Apache mod-rewrite so I thought I benefit from it if possible. Anyone else who can contribute? Regards Mattias Bogeblad -Ursprungligt meddelande- Från: Shapira, Yoav [mailto:[EMAIL PROTECTED] Skickat: den 29 december 2003 19:13 Till: Tomcat Users List Ämne: RE: URL-rewriting Howdy, I'm not an expert on Apache's mod-rewrite, so I'll give you one possible pue java solution: a fairly simple filter (a javax.servlet.Filter filter). Map the filter /* and code your redirection rules in java. Actually, you might want to look at the balancer webapp (tomcat 5) which has a StringMatchRule that you can use. Yoav Shapira Millennium ChemInformatics -Original Message- From: Mattias Bogeblad [mailto:[EMAIL PROTECTED] Sent: Monday, December 29, 2003 12:57 PM To: Tomcat Users List Subject: URL-rewriting Hi All, I want to be able to use url-rewriting in an application I have. I want to transform urls like http://localhost:8080/infoglueDeliver/products/productX.html to http://localhost:8080/infoglueDeliverDev/ViewPage.action?navigationTitl e =products/productX.html I have checked out the http://www.tuckey.org/urlrewrite-package but I'm not sure how to write the regexp to accomplish what I want. Anyone good at these things? Regards, Mattias Bogeblad This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
TomCat 4.1.27 SSL suport with jsdk 1.4
Hello, Can somebody inform me if TomCat 4.1.27 supports: user-data-constraint transport-guaranteeINTEGRALtransport-guarantee user-data-constraint in web.xml? I tried pure HTTP with my login page. It is allowed to login. TomCat does not force forsing using SLL. Should I use some later version? Thanks, Pranas
JSP config question from a newbie
I am just trying to get up and running with JSP, and have installed Tomcat 5.0. I am using Sams Teach Yourself JavaServer Pages. The code in the book, and the instructions are all based on Tomcat 4.0.3. (I am running Windows XP Professional). When I try and compile the following: --- import java.io.*; import javax.servlet.*; import javax.servlet.http.*; public class ch01_06 extends HttpServlet { public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { response.setContentType(text/html); PrintWriter out = response.getWriter(); out.println(HTML); out.println(HEAD); out.println(TITLE); out.println(A Web Page); out.println(/TITLE); out.println(/HEAD); out.println(Hello there!); out.println(/BODY); out.println(/HTML); } } --- I get the following errors: -- C:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\ch01javac ch01_06.java ch01_06.java:2: package javax.servlet does not exist import javax.servlet.*; ^ ch01_06.java:3: package javax.servlet.http does not exist import javax.servlet.http.*; ^ ch01_06.java:5: cannot resolve symbol symbol : class HttpServlet location: class ch01_06 public class ch01_06 extends HttpServlet ^ ch01_06.java:7: cannot resolve symbol symbol : class HttpServletRequest location: class ch01_06 public void doGet(HttpServletRequest request, ^ ch01_06.java:8: cannot resolve symbol symbol : class HttpServletResponse location: class ch01_06 HttpServletResponse response) ^ ch01_06.java:9: cannot resolve symbol symbol : class ServletException location: class ch01_06 throws IOException, ServletException ^ 6 errors --- I am guessing it is because my book tells me to set CLASSPATH to the path for 'servlet.jar', but when I look in the 'lib' directory I only see a 'servlet-api.jar' file. So I set the CLASSPATH to servlet-api.jar. (When this didn't work I did try changing the path to 'servlet.jar' just to check but same result). But the code is written with import javax.servlet.* - is this the problem? Because I am totally new to Java I can't figure out what to change. I also can't find a 'what's changed from Tomcat 4.0 to 5.0' file to help me understand. Anyone offer any advice? Thanks Steve Carson Brisbane Australia
RE: JSP config question from a newbie
Steve First off, ensure that you have both the latest J2SE and J2EE packages installed. Then in your CLASSPATH point to both your J2SE as well as J2EE installation directories. ex. C:\j2sdk1.4\lib\tools.jar;c:\j2sdkee\lib You should also set your JAVA_HOME and J2EE_HOME i.e. JAVA_HOME = c:\j2sdk1.4.2\ J2EE_HOME = c:\j2sdkee1.4\ This should solve all of your problems. Kind Regards Schalk Neethling Web Developer.Designer.Programmer.CEO Volume4.Development.Multimedia.Branding emotionalize.conceptualize.visualize.realize Tel: +27125468436 Fax: +27125468436 email:[EMAIL PROTECTED] web: www.volume4.com This message contains information that is considered to be sensitive or confidential and may not be forwarded or disclosed to any other party without the permission of the sender. If you received this message in error, please notify me immediately so that I can correct and delete the original email. Thank you. :: -Original Message- :: From: Steve Carson-Rowland [mailto:[EMAIL PROTECTED] :: Sent: Wednesday, December 31, 2003 5:09 AM :: To: [EMAIL PROTECTED] :: Subject: JSP config question from a newbie :: :: I am just trying to get up and running with JSP, and have installed :: Tomcat 5.0. I am using Sams Teach Yourself JavaServer Pages. The code :: in the book, and the instructions are all based on Tomcat 4.0.3. :: :: (I am running Windows XP Professional). :: :: When I try and compile the following: :: --- :: import java.io.*; :: import javax.servlet.*; :: import javax.servlet.http.*; :: :: public class ch01_06 extends HttpServlet :: { :: public void doGet(HttpServletRequest request, :: HttpServletResponse response) :: throws IOException, ServletException :: { :: response.setContentType(text/html); :: PrintWriter out = response.getWriter(); :: :: out.println(HTML); :: out.println(HEAD); :: out.println(TITLE); :: out.println(A Web Page); :: out.println(/TITLE); :: out.println(/HEAD); :: out.println(Hello there!); :: out.println(/BODY); :: out.println(/HTML); :: } :: } :: :: --- :: I get the following errors: :: :: -- :: C:\Program Files\Apache Software Foundation\Tomcat :: 5.0\webapps\ch01javac ch01_06.java :: ch01_06.java:2: package javax.servlet does not exist :: import javax.servlet.*; :: ^ :: ch01_06.java:3: package javax.servlet.http does not exist :: import javax.servlet.http.*; :: ^ :: ch01_06.java:5: cannot resolve symbol :: symbol : class HttpServlet :: location: class ch01_06 :: public class ch01_06 extends HttpServlet :: ^ :: ch01_06.java:7: cannot resolve symbol :: symbol : class HttpServletRequest :: location: class ch01_06 :: public void doGet(HttpServletRequest request, :: ^ :: ch01_06.java:8: cannot resolve symbol :: symbol : class HttpServletResponse :: location: class ch01_06 :: HttpServletResponse response) :: ^ :: ch01_06.java:9: cannot resolve symbol :: symbol : class ServletException :: location: class ch01_06 :: throws IOException, ServletException :: ^ :: 6 errors :: --- :: :: I am guessing it is because my book tells me to set CLASSPATH to the :: path for 'servlet.jar', but when I look in the 'lib' directory I only :: see a 'servlet-api.jar' file. So I set the CLASSPATH to servlet-api.jar. :: (When this didn't work I did try changing the path to 'servlet.jar' just :: to check but same result). :: :: But the code is written with import javax.servlet.* - is this the :: problem? :: :: Because I am totally new to Java I can't figure out what to change. I :: also can't find a 'what's changed from Tomcat 4.0 to 5.0' file to help :: me understand. :: :: Anyone offer any advice? :: :: Thanks :: :: Steve Carson :: Brisbane :: Australia - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JSP config question from a newbie
You have to compile and include the j2ee.jar in the classpath, eg: javac -classpath c:/java/libs/j2ee.jar ch01_06.java (You can also use Tomcat's servlet.jar and other jars in the /common/lib directory that implement the standard J2EE features. Probably recommended if you are deploying to Tomcat) From the looks of it, I would suggest you also first attempt the standard Java tutorial before ettempting J2EE stuff. You'll be better off if you have a solid Java base first. See the java.sun.com pages for that. --- Steve Carson-Rowland [EMAIL PROTECTED] wrote: I am just trying to get up and running with JSP, and have installed Tomcat 5.0. I am using Sams Teach Yourself JavaServer Pages. The code in the book, and the instructions are all based on Tomcat 4.0.3. (I am running Windows XP Professional). When I try and compile the following: --- import java.io.*; import javax.servlet.*; import javax.servlet.http.*; public class ch01_06 extends HttpServlet { public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { response.setContentType(text/html); PrintWriter out = response.getWriter(); out.println(HTML); out.println(HEAD); out.println(TITLE); out.println(A Web Page); out.println(/TITLE); out.println(/HEAD); out.println(Hello there!); out.println(/BODY); out.println(/HTML); } } --- I get the following errors: -- C:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\ch01javac ch01_06.java ch01_06.java:2: package javax.servlet does not exist import javax.servlet.*; ^ ch01_06.java:3: package javax.servlet.http does not exist import javax.servlet.http.*; ^ ch01_06.java:5: cannot resolve symbol symbol : class HttpServlet location: class ch01_06 public class ch01_06 extends HttpServlet ^ ch01_06.java:7: cannot resolve symbol symbol : class HttpServletRequest location: class ch01_06 public void doGet(HttpServletRequest request, ^ ch01_06.java:8: cannot resolve symbol symbol : class HttpServletResponse location: class ch01_06 HttpServletResponse response) ^ ch01_06.java:9: cannot resolve symbol symbol : class ServletException location: class ch01_06 throws IOException, ServletException ^ 6 errors --- I am guessing it is because my book tells me to set CLASSPATH to the path for 'servlet.jar', but when I look in the 'lib' directory I only see a 'servlet-api.jar' file. So I set the CLASSPATH to servlet-api.jar. (When this didn't work I did try changing the path to 'servlet.jar' just to check but same result). But the code is written with import javax.servlet.* - is this the problem? Because I am totally new to Java I can't figure out what to change. I also can't find a 'what's changed from Tomcat 4.0 to 5.0' file to help me understand. Anyone offer any advice? Thanks Steve Carson Brisbane Australia __ Do you Yahoo!? Find out what made the Top Yahoo! Searches of 2003 http://search.yahoo.com/top2003 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Browser control thru servlet
Hello everyone, Can anyone tell me how the back and forward button of browser be controlled - as disabled for example or specifying the url it should go to - thru the requests made to servlet? Thanks and regards, Tejashri. - Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing
Re: Browser control thru servlet
Hi! Teja Jo wrote: Hello everyone, Can anyone tell me how the back and forward button of browser be controlled - as disabled for example or specifying the url it should go to - thru the requests made to servlet? Thanks and regards, It is (thankfully) not possible to control a user's browser from the server side. All you can do in this case is include javascript code in the page returned in response to the request. With javascript you can do most of what you describe above. HTH Phil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat Tuning Memory leak
Hi All I am working on Tomcat 4.1.24 on Solatis-8, 12 CPU, 24GB RAM Machine. I am using Apache 2.0.43 and the Jdk version is 1.4.1_02. When I start my server then after 5-6 hours my server becomes very slow and then I need to restart my server. I am taking the top stats for the tomcat and have found that normally the thread remains between 100- 140 but when the system crashes it reaches to 372 and the memory gradually increases from 256 to some where around 660. The top stats are as follows PID USERNAME THR PRI NICE SIZE RES STATETIMECPU COMMAND 13082 root 115 00 653M 578M cpu/290 313:31 37.64% java 13082 root 139 70 654M 579M cpu/291 388:08 40.78% java 13082 root 143 00 654M 580M cpu/419 466:39 41.43% java 13082 root 374 10 662M 589M cpu/323 547:47 47.03% java 13082 root 374 100 662M 589M cpu/291 625:42 53.59% java Here the Thread count increases from 143 to 374 in just 10 min. Even though the no of user accessing this site has decreased. I really dont know what the problem is... I have set the Catalina Option as -Xms128M -Xmx512M but even setting the value of -XMx1024 doesn't solved my problem. The connector settings in my server.xml are as follows Connector className=org.apache.coyote.tomcat4.CoyoteConnector acceptCount=5 bufferSize=2048 connectionTimeout=2 debug=0 disableUploadTimeout=false enableLookups=false maxProcessors=350 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 Please tell me what is the problem with my configuration. Please help me Thanks Regards Mohit - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat Tuning Memory leak
Hi, I have the very same problem. I have tried everything possible with no outcome (the fork atribute for the jsp compiler did not help (with this I refer to a previous discussion here)). I suspect the CoyoteConnector being at fault but have no proof yet. I plan to run profiler but doing that with users hanging on our machine it requires a bit of courage. If you manage to solve this problem somehow please let me know (on this mailing list) because there is at least one person _very_ interested in solving this problem. Even if you succeed by trying another connector I would like to hear. Good luck and best regards, David Mohit Gupta wrote: Hi All I am working on Tomcat 4.1.24 on Solatis-8, 12 CPU, 24GB RAM Machine. I am using Apache 2.0.43 and the Jdk version is 1.4.1_02. When I start my server then after 5-6 hours my server becomes very slow and then I need to restart my server. I am taking the top stats for the tomcat and have found that normally the thread remains between 100- 140 but when the system crashes it reaches to 372 and the memory gradually increases from 256 to some where around 660. The top stats are as follows PID USERNAME THR PRI NICE SIZE RES STATETIMECPU COMMAND 13082 root 115 00 653M 578M cpu/290 313:31 37.64% java 13082 root 139 70 654M 579M cpu/291 388:08 40.78% java 13082 root 143 00 654M 580M cpu/419 466:39 41.43% java 13082 root 374 10 662M 589M cpu/323 547:47 47.03% java 13082 root 374 100 662M 589M cpu/291 625:42 53.59% java Here the Thread count increases from 143 to 374 in just 10 min. Even though the no of user accessing this site has decreased. I really dont know what the problem is... I have set the Catalina Option as -Xms128M -Xmx512M but even setting the value of -XMx1024 doesn't solved my problem. The connector settings in my server.xml are as follows Connector className=org.apache.coyote.tomcat4.CoyoteConnector acceptCount=5 bufferSize=2048 connectionTimeout=2 debug=0 disableUploadTimeout=false enableLookups=false maxProcessors=350 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 Please tell me what is the problem with my configuration. Please help me Thanks Regards Mohit - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat Tuning Memory leak
Ooops. I was too fast with my previous post. My config is different form yours: Connector className=org.apache.coyote.tomcat4.CoyoteConnector address=212.47.18.50 acceptCount=100 bufferSize=2048 compression=off connectionLinger=-1 connectionTimeout=2 connectionUploadTimeout=30 debug=0 disableUploadTimeout=true enableLookups=false maxKeepAliveRequests=100 maxProcessors=250 minProcessors=25 port=80 protocolHandlerClassName=org.apache.coyote.http11.Http11Protocol proxyPort=0 redirectPort=8443 scheme=http secure=false serverSocketTimeout=0 tcpNoDelay=true tomcatAuthentication=true useURIValidationHack=false Factory className=org.apache.catalina.net.DefaultServerSocketFactory/ /Connector Also my machine is a bit smaller ;-) (with linux). But the behaviour is very similar. Best, David David Strupl wrote: Hi, I have the very same problem. I have tried everything possible with no outcome (the fork atribute for the jsp compiler did not help (with this I refer to a previous discussion here)). I suspect the CoyoteConnector being at fault but have no proof yet. I plan to run profiler but doing that with users hanging on our machine it requires a bit of courage. If you manage to solve this problem somehow please let me know (on this mailing list) because there is at least one person _very_ interested in solving this problem. Even if you succeed by trying another connector I would like to hear. Good luck and best regards, David Mohit Gupta wrote: Hi All I am working on Tomcat 4.1.24 on Solatis-8, 12 CPU, 24GB RAM Machine. I am using Apache 2.0.43 and the Jdk version is 1.4.1_02. When I start my server then after 5-6 hours my server becomes very slow and then I need to restart my server. I am taking the top stats for the tomcat and have found that normally the thread remains between 100- 140 but when the system crashes it reaches to 372 and the memory gradually increases from 256 to some where around 660. The top stats are as follows PID USERNAME THR PRI NICE SIZE RES STATETIMECPU COMMAND 13082 root 115 00 653M 578M cpu/290 313:31 37.64% java 13082 root 139 70 654M 579M cpu/291 388:08 40.78% java 13082 root 143 00 654M 580M cpu/419 466:39 41.43% java 13082 root 374 10 662M 589M cpu/323 547:47 47.03% java 13082 root 374 100 662M 589M cpu/291 625:42 53.59% java Here the Thread count increases from 143 to 374 in just 10 min. Even though the no of user accessing this site has decreased. I really dont know what the problem is... I have set the Catalina Option as -Xms128M -Xmx512M but even setting the value of -XMx1024 doesn't solved my problem. The connector settings in my server.xml are as follows Connector className=org.apache.coyote.tomcat4.CoyoteConnector acceptCount=5 bufferSize=2048 connectionTimeout=2 debug=0 disableUploadTimeout=false enableLookups=false maxProcessors=350 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 Please tell me what is the problem with my configuration. Please help me Thanks Regards Mohit - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat Tuning Memory leak
Mohit Gupta wrote: I am working on Tomcat 4.1.24 on Solatis-8, 12 CPU, 24GB RAM Machine. I am using Apache 2.0.43 and the Jdk version is 1.4.1_02. When I start my server then after 5-6 hours my server becomes very slow and then I need to restart my server. I am taking the top stats for the tomcat and have found that normally the thread remains between 100- 140 but when the system crashes it reaches to 372 and the memory gradually increases from 256 to some where around 660. The top stats are as follows PID USERNAME THR PRI NICE SIZE RES STATETIMECPU COMMAND 13082 root 115 00 653M 578M cpu/290 313:31 37.64% java 13082 root 139 70 654M 579M cpu/291 388:08 40.78% java 13082 root 143 00 654M 580M cpu/419 466:39 41.43% java 13082 root 374 10 662M 589M cpu/323 547:47 47.03% java 13082 root 374 100 662M 589M cpu/291 625:42 53.59% java Here the Thread count increases from 143 to 374 in just 10 min. Even though the no of user accessing this site has decreased. I really dont know what the problem is... I have set the Catalina Option as -Xms128M -Xmx512M but even setting the value of -XMx1024 doesn't solved my problem. The connector settings in my server.xml are as follows Connector className=org.apache.coyote.tomcat4.CoyoteConnector acceptCount=5 bufferSize=2048 connectionTimeout=2 debug=0 disableUploadTimeout=false enableLookups=false maxProcessors=350 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 Please tell me what is the problem with my configuration. Please help me First thing to find out is to figure out what all the threads are doing. Send the Tomcat process a -QUIT signal (`kill -QUIT 13082`) and capture the output which will be sent to stdout. You will get a stack trace for each thread showing what it is doing. You will probably find that the threads are busy somewhere in your application code. Additionally, upgrading to the latest Tomcat (4.1.27 or 5.0.16) and JDK (1.4.2_03) is a good idea as the latest versions have bug fixes and performance improvements. I doubt it is a Tomcat issue, it is more than likely an issue with your application, but the stack trace will show the cause. -Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat Tuning Memory leak
David Rees wrote: Additionally, upgrading to the latest Tomcat (4.1.27 or 5.0.16) and JDK (1.4.2_03) is a good idea as the latest versions have bug fixes and performance improvements. I doubt it is a Tomcat issue, it is more than likely an issue with your application, but the stack trace will show the cause. I have tomcat 4.1.29, JDK1.4.2. Also my app was completely ok with tomcat 3.x.x. The 100% of processor time occurs in my case only after the OOME. Before the OOME all the threads (both tomcat's and mine) are happy. Thanks for any hints, David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat Tuning Memory leak
Hi! David Strupl wrote: I have tomcat 4.1.29, JDK1.4.2. Also my app was completely ok with tomcat 3.x.x. The 100% of processor time occurs in my case only after the OOME. Before the OOME all the threads (both tomcat's and mine) are happy. The processor usage is not too surprising. When your machine runs out of memory and there are still busy processes, most of the cpu time will go into swapping in and out those processes. Still, since most prople are perfectly happy with the tomcat build you are using, there seems to be a problem with your application code. Perhaps you could elaborate a bit further here? And, as we had that subject a few days ago, are you by chance re-using StringBuffer instances ;-) Regards, Phil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat Tuning Memory leak
Philipp Taprogge wrote: The processor usage is not too surprising. When your machine runs out of memory and there are still busy processes, most of the cpu time will go into swapping in and out those processes. Still, since most prople are perfectly happy with the tomcat build you are using, there seems to be a problem with your application code. Perhaps you could elaborate a bit further here? And, as we had that subject a few days ago, are you by chance re-using StringBuffer instances ;-) Yes - I was also not surprised with the CPU after the OOME. I will try to prepare a heap shapshot and post it here (only a link, don't worry) after I manage to get a usefull one. My application does not do anything special - it is an online gaming server with couple of JSPs and servlets. The profiling has not revealed any memory leak in my code so far. Also the code was running for several years in tomcat 3.x without any problem. After migrating to tomcat 4.x the nightmare began. Thanks for any hints, David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat Tuning Memory leak
Hi again! David Strupl wrote: Also the code was running for several years in tomcat 3.x without any problem. After migrating to tomcat 4.x the nightmare began. Have you changed the JRE as well or are you running the tomcat 4 instance in the same VM as the tomcat 3 before? Just to make sure your problems are not arising from changes made to the JVM in the meantime. Regards, Phil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
web app prob from a newbie
sombody could tell mee were too set the java_home path cant figure the way they explain im french sorry having a hard time understanding english computer term exemple in which file do i have to set the path? [EMAIL PROTECTED] crazy-wilys webmaster _ MSN Search, le moteur de recherche qui pense comme vous ! http://fr.ca.search.msn.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SV: URL-rewriting
mattias.bogeblad Hi All, mattias.bogeblad mattias.bogeblad I want to be able to use url-rewriting in an mattias.bogeblad application I have. I want to transform urls like mattias.bogeblad http://localhost:8080/infoglueDeliver/products/productX.html mattias.bogeblad to mattias.bogeblad http://localhost:8080/infoglueDeliverDev/ViewPage.action?navigationTitle=products/productX.html As far as mod rewrite goes, something like this should work. RewriteEngine One RewriteOptions inherit # RewriteLog logs/mod_rewrite_log # RewriteLogLevel 2 RewriteRule ^/infoglueDeliver/(.+) /infoglueDeliverDev/ViewPage.action?navigationTitle=$1 [PT] The above assumes that /infoglueDeliver/ will always be followed by some other url element. RewriteLog and RewriteLogLevel can be used as needed for debugging. Finally, the apache module that connects to tomcat should appear _before_ mod_rewrite in the LoadModule order. hth. -- Steve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: web app prob from a newbie
Which operating system are you using? -Original Message- From: FRANCOIS Dufour [mailto:[EMAIL PROTECTED] Sent: 30 December 2003 12:13 To: [EMAIL PROTECTED] Subject: web app prob from a newbie sombody could tell mee were too set the java_home path cant figure the way they explain im french sorry having a hard time understanding english computer term exemple in which file do i have to set the path? [EMAIL PROTECTED] crazy-wilys webmaster _ MSN Search, le moteur de recherche qui pense comme vous ! http://fr.ca.search.msn.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Browser control thru servlet
If you want to control where a user goes more strictly you can also pop up a window that has no buttons, the user will only be able to click the links that you supply. But I agress with Philipp, javascript is the answer. -Original Message- From: Philipp Taprogge [mailto:[EMAIL PROTECTED] Sent: 30 December 2003 10:22 To: Tomcat Users List Subject: Re: Browser control thru servlet Hi! Teja Jo wrote: Hello everyone, Can anyone tell me how the back and forward button of browser be controlled - as disabled for example or specifying the url it should go to - thru the requests made to servlet? Thanks and regards, It is (thankfully) not possible to control a user's browser from the server side. All you can do in this case is include javascript code in the page returned in response to the request. With javascript you can do most of what you describe above. HTH Phil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: web app prob from a newbie
Hi, It depends on which Operating system you are using. If you are using Linux, then you place simply place a line export JAVA_HOME=/javaRootDir in /etc/profile. For Windows, I think, you have to use set command. Damar FRANCOIS Dufour wrote: sombody could tell mee were too set the java_home path cant figure the way they explain im french sorry having a hard time understanding english computer term exemple in which file do i have to set the path? [EMAIL PROTECTED] crazy-wilys webmaster _ MSN Search, le moteur de recherche qui pense comme vous ! http://fr.ca.search.msn.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat Tuning Memory leak
Philipp Taprogge wrote: Have you changed the JRE as well or are you running the tomcat 4 instance in the same VM as the tomcat 3 before? Just to make sure your problems are not arising from changes made to the JVM in the meantime. I have upgraged the VM as well as the OS on the machine. In fact the whole machine is different now (being it dual-pentium this time). Right now I am further upgrading SUN JDK 1.4.2 to SUN 1.4.2_03 if that is going to have any impact. David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: web app prob from a newbie
win xp home tomcat 4.0 jdk 1.3 i have video chat aplication running but the forum aplication ask mee too set a java home path and cant figure were [EMAIL PROTECTED] crazy-wilys webmaster From: Dale, Matt [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: RE: web app prob from a newbie Date: Tue, 30 Dec 2003 12:14:19 - Which operating system are you using? -Original Message- From: FRANCOIS Dufour [mailto:[EMAIL PROTECTED] Sent: 30 December 2003 12:13 To: [EMAIL PROTECTED] Subject: web app prob from a newbie sombody could tell mee were too set the java_home path cant figure the way they explain im french sorry having a hard time understanding english computer term exemple in which file do i have to set the path? [EMAIL PROTECTED] crazy-wilys webmaster _ MSN Search, le moteur de recherche qui pense comme vous ! http://fr.ca.search.msn.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] InterScan_Disclaimer.txt - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ MSN Search, le moteur de recherche qui pense comme vous ! http://fr.ca.search.msn.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: web app prob from a newbie re:damar
win xp but in which file do i have to rite done the path way [EMAIL PROTECTED] crazy-wilys webmaster From: Thapa Damar [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: web app prob from a newbie Date: Tue, 30 Dec 2003 19:22:54 +0800 Hi, It depends on which Operating system you are using. If you are using Linux, then you place simply place a line export JAVA_HOME=/javaRootDir in /etc/profile. For Windows, I think, you have to use set command. Damar FRANCOIS Dufour wrote: sombody could tell mee were too set the java_home path cant figure the way they explain im french sorry having a hard time understanding english computer term exemple in which file do i have to set the path? [EMAIL PROTECTED] crazy-wilys webmaster _ MSN Search, le moteur de recherche qui pense comme vous ! http://fr.ca.search.msn.com/ - 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] _ MSN Messenger : discutez en direct avec vos amis ! http://messenger.fr.msn.ca/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: web app prob from a newbie re:damar
I dont know if there is a specific file for environment but I can see 2 ways you can do this. You could set it in the startup.bat and shutdown.bat for your tomcat or right click on My Computer and select properties. On the Advanced tab there is a button called environment variables. You can set it in there. Ta Matt -Original Message- From: FRANCOIS Dufour [mailto:[EMAIL PROTECTED] Sent: 30 December 2003 12:24 To: [EMAIL PROTECTED] Subject: Re: web app prob from a newbie re:damar win xp but in which file do i have to rite done the path way [EMAIL PROTECTED] crazy-wilys webmaster From: Thapa Damar [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: web app prob from a newbie Date: Tue, 30 Dec 2003 19:22:54 +0800 Hi, It depends on which Operating system you are using. If you are using Linux, then you place simply place a line export JAVA_HOME=/javaRootDir in /etc/profile. For Windows, I think, you have to use set command. Damar FRANCOIS Dufour wrote: sombody could tell mee were too set the java_home path cant figure the way they explain im french sorry having a hard time understanding english computer term exemple in which file do i have to set the path? [EMAIL PROTECTED] crazy-wilys webmaster _ MSN Search, le moteur de recherche qui pense comme vous ! http://fr.ca.search.msn.com/ - 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] _ MSN Messenger : discutez en direct avec vos amis ! http://messenger.fr.msn.ca/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: web app prob from a newbie
Hi! FRANCOIS Dufour wrote: win xp home tomcat 4.0 jdk 1.3 i have video chat aplication running but the forum aplication ask mee too set a java home path and cant figure were Perhaps you should ask someone who has a french version of WIN XP available. On an english installation, you go to properties of system, click on advanced and then on the environment button. There you can add and modify environment variables. Just add one named java_home and set it to the path to your java directory. Phil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Cuurent values of -X's...
I have set the Catalina Option as -Xms128M -Xmx512M but even setting the value of -XMx1024 doesn't solved my problem. Hi, how can I get the current values of these -X... parameters? Another question is : for tomcat 4.0.4 should I set JAVA_OPTS or CATALINA_OPTS? And the last one... What're the differences between -server and -client initialization parameters? I need some quick explanation about performance related parameters of tomcat... Any help would be greatly appreciated. Murat http://www.rt.net.tr -- Bu e-posta sadece yukarida isimleri belirtilen kisiler arasinda ozel haberlesme amacini tasimaktadir. Size yanlislikla ulasmissa lutfen mesaji geri gonderiniz ve sisteminizden siliniz. RTNET bu mesajin icerigi ile ilgili olarak hic bir hukuksal sorumlulugu kabul etmez. This e-mail communication is intended for the private use of the persons named above. If you received this message in error, please immediately notify the sender and delete it from your system. RTNET does not accept legal responsibility for the contents of this message. -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Starting At Virtual IP
Hi, I need to start Tomcat at Virtual IP. I have configured workers.properties and server.xml but Tomcat gets started in all IP ( 0.0.0.0) Plz throw your useful inputs on these!! Regards Gavaskar..! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: web app prob from a newbie re:damar
ok in french traducted i got many option there like follow user variable (name of curent user)new,modifie,delete /system variable new, modifie, delete, [EMAIL PROTECTED] crazy-wilys webmaster From: Dale, Matt [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: RE: web app prob from a newbie re:damar Date: Tue, 30 Dec 2003 12:27:38 - I dont know if there is a specific file for environment but I can see 2 ways you can do this. You could set it in the startup.bat and shutdown.bat for your tomcat or right click on My Computer and select properties. On the Advanced tab there is a button called environment variables. You can set it in there. Ta Matt -Original Message- From: FRANCOIS Dufour [mailto:[EMAIL PROTECTED] Sent: 30 December 2003 12:24 To: [EMAIL PROTECTED] Subject: Re: web app prob from a newbie re:damar win xp but in which file do i have to rite done the path way [EMAIL PROTECTED] crazy-wilys webmaster From: Thapa Damar [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: web app prob from a newbie Date: Tue, 30 Dec 2003 19:22:54 +0800 Hi, It depends on which Operating system you are using. If you are using Linux, then you place simply place a line export JAVA_HOME=/javaRootDir in /etc/profile. For Windows, I think, you have to use set command. Damar FRANCOIS Dufour wrote: sombody could tell mee were too set the java_home path cant figure the way they explain im french sorry having a hard time understanding english computer term exemple in which file do i have to set the path? [EMAIL PROTECTED] crazy-wilys webmaster _ MSN Search, le moteur de recherche qui pense comme vous ! http://fr.ca.search.msn.com/ - 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] _ MSN Messenger : discutez en direct avec vos amis ! http://messenger.fr.msn.ca/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] InterScan_Disclaimer.txt - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ MSN Search, le moteur de recherche qui pense comme vous ! http://fr.ca.search.msn.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: web app prob from a newbie re:damar
yes, you need to create a new variable with the name JAVA_HOME and the value is the path to your java installation Ta Matt -Original Message- From: FRANCOIS Dufour [mailto:[EMAIL PROTECTED] Sent: 30 December 2003 12:40 To: [EMAIL PROTECTED] Subject: RE: web app prob from a newbie re:damar ok in french traducted i got many option there like follow user variable (name of curent user)new,modifie,delete /system variable new, modifie, delete, [EMAIL PROTECTED] crazy-wilys webmaster From: Dale, Matt [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: RE: web app prob from a newbie re:damar Date: Tue, 30 Dec 2003 12:27:38 - I dont know if there is a specific file for environment but I can see 2 ways you can do this. You could set it in the startup.bat and shutdown.bat for your tomcat or right click on My Computer and select properties. On the Advanced tab there is a button called environment variables. You can set it in there. Ta Matt -Original Message- From: FRANCOIS Dufour [mailto:[EMAIL PROTECTED] Sent: 30 December 2003 12:24 To: [EMAIL PROTECTED] Subject: Re: web app prob from a newbie re:damar win xp but in which file do i have to rite done the path way [EMAIL PROTECTED] crazy-wilys webmaster From: Thapa Damar [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: web app prob from a newbie Date: Tue, 30 Dec 2003 19:22:54 +0800 Hi, It depends on which Operating system you are using. If you are using Linux, then you place simply place a line export JAVA_HOME=/javaRootDir in /etc/profile. For Windows, I think, you have to use set command. Damar FRANCOIS Dufour wrote: sombody could tell mee were too set the java_home path cant figure the way they explain im french sorry having a hard time understanding english computer term exemple in which file do i have to set the path? [EMAIL PROTECTED] crazy-wilys webmaster _ MSN Search, le moteur de recherche qui pense comme vous ! http://fr.ca.search.msn.com/ - 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] _ MSN Messenger : discutez en direct avec vos amis ! http://messenger.fr.msn.ca/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] InterScan_Disclaimer.txt - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ MSN Search, le moteur de recherche qui pense comme vous ! http://fr.ca.search.msn.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: web app prob from a newbie re:damar
ok wen ive sted up the startup bat it semm too work but i still got that sytem eror on the forum thanks guys ill go to bed brigther now [EMAIL PROTECTED] crazy-wilys webmaster From: Dale, Matt [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: RE: web app prob from a newbie re:damar Date: Tue, 30 Dec 2003 12:41:22 - yes, you need to create a new variable with the name JAVA_HOME and the value is the path to your java installation Ta Matt -Original Message- From: FRANCOIS Dufour [mailto:[EMAIL PROTECTED] Sent: 30 December 2003 12:40 To: [EMAIL PROTECTED] Subject: RE: web app prob from a newbie re:damar ok in french traducted i got many option there like follow user variable (name of curent user)new,modifie,delete /system variable new, modifie, delete, [EMAIL PROTECTED] crazy-wilys webmaster From: Dale, Matt [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: RE: web app prob from a newbie re:damar Date: Tue, 30 Dec 2003 12:27:38 - I dont know if there is a specific file for environment but I can see 2 ways you can do this. You could set it in the startup.bat and shutdown.bat for your tomcat or right click on My Computer and select properties. On the Advanced tab there is a button called environment variables. You can set it in there. Ta Matt -Original Message- From: FRANCOIS Dufour [mailto:[EMAIL PROTECTED] Sent: 30 December 2003 12:24 To: [EMAIL PROTECTED] Subject: Re: web app prob from a newbie re:damar win xp but in which file do i have to rite done the path way [EMAIL PROTECTED] crazy-wilys webmaster From: Thapa Damar [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: web app prob from a newbie Date: Tue, 30 Dec 2003 19:22:54 +0800 Hi, It depends on which Operating system you are using. If you are using Linux, then you place simply place a line export JAVA_HOME=/javaRootDir in /etc/profile. For Windows, I think, you have to use set command. Damar FRANCOIS Dufour wrote: sombody could tell mee were too set the java_home path cant figure the way they explain im french sorry having a hard time understanding english computer term exemple in which file do i have to set the path? [EMAIL PROTECTED] crazy-wilys webmaster _ MSN Search, le moteur de recherche qui pense comme vous ! http://fr.ca.search.msn.com/ - 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] _ MSN Messenger : discutez en direct avec vos amis ! http://messenger.fr.msn.ca/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] InterScan_Disclaimer.txt - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ MSN Search, le moteur de recherche qui pense comme vous ! http://fr.ca.search.msn.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] InterScan_Disclaimer.txt - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ MSN Search, le moteur de recherche qui pense comme vous ! http://fr.ca.search.msn.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: web app prob from a newbie re:damar
Hi! FRANCOIS Dufour wrote: ok in french traducted i got many option there like follow user variable (name of curent user)new,modifie,delete /system variable new, modifie, delete, If you want the java_home to be system wide (for all users) click on new next to system variable, if you want it only to be for the current user (not others), click on new next to the current user. Enter java_home as the name and the path to your java directory as the value. hth Phil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: web app prob from a newbie re:damar
thanks for your time phil looks like the aplication wasent proprely writen the system console open whith an mesage eror but at lease ive learn how too set the java home thanks [EMAIL PROTECTED] crazy-wilys webmaster From: Philipp Taprogge [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: web app prob from a newbie re:damar Date: Tue, 30 Dec 2003 13:51:01 +0100 Hi! FRANCOIS Dufour wrote: ok in french traducted i got many option there like follow user variable (name of curent user)new,modifie,delete /system variable new, modifie, delete, If you want the java_home to be system wide (for all users) click on new next to system variable, if you want it only to be for the current user (not others), click on new next to the current user. Enter java_home as the name and the path to your java directory as the value. hth Phil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ MSN Messenger : discutez en direct avec vos amis ! http://messenger.fr.msn.ca/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat memory usage
Hello, I'm a beginner with java and I've setup tomcat (Apache Tomcat/5.0.16, jvm: 1.4.2_03-b02 Sun Microsystems Inc. on Gentoo Linux, kernel 2.4.20-gentoo-r8). I've created a context for my application and I used the manager to reload the context and now I've configured the context to be reloadable. My problem is that everytime the context is reloaded, top shows a memory usage increase with about 2Mb, until tomcat runs out of memory. What can I do ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Q] context and war file locations
I have an application context file myapp.xml which is currently in the /webapps dir of Tomcat. The war file is some other place, not Tomcat related, but correctly referred to by the context file. Is it possible to place *both* files outside of the Tomcat structures and still get the application to work? It does when I deploy it using the catalina ant tasks, but when Tomcat restarts, my app is not found anymore and I have to redeploy it. I would expect that behaviour, as I don't think Tomcat keeps track of where context files are located... it just checks in the webapps dir (is my guess, hope I'm wrong). I need this feature, as I am going to deploy on a 3rd party machine and they only create a home directory for my stuff and I have to put everything in there. I'm not allowed to add anything to the tomcat dirs. Thanks! __ Do you Yahoo!? Find out what made the Top Yahoo! Searches of 2003 http://search.yahoo.com/top2003 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat memory usage
Andrei Ivanov wrote: I've created a context for my application and I used the manager to reload the context and now I've configured the context to be reloadable. First, start with using a profiler to ensure that your application isn't leaking memory. Look at http://issues.apache.org/bugzilla/ for anything on memory leaks wrt contexts. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat memory usage
I've searched bugzilla, but there doesn't seem to be any bug filled about something like this. About using a profiler... could you recommend one ? Thanks.. On Tue, 30 Dec 2003, James Black wrote: Andrei Ivanov wrote: I've created a context for my application and I used the manager to reload the context and now I've configured the context to be reloadable. First, start with using a profiler to ensure that your application isn't leaking memory. Look at http://issues.apache.org/bugzilla/ for anything on memory leaks wrt contexts. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat memory usage
About using a profiler... could you recommend one ? JProfiler JProbe __ Do you Yahoo!? Find out what made the Top Yahoo! Searches of 2003 http://search.yahoo.com/top2003 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [Q] context and war file locations
Howdy, You can specify a different appBase for your Host in server.xml, and put the myapp.xml file in the appBase directory. Yoav Shapira Millennium ChemInformatics -Original Message- From: Riaan Oberholzer [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 30, 2003 8:09 AM To: [EMAIL PROTECTED] Subject: [Q] context and war file locations I have an application context file myapp.xml which is currently in the /webapps dir of Tomcat. The war file is some other place, not Tomcat related, but correctly referred to by the context file. Is it possible to place *both* files outside of the Tomcat structures and still get the application to work? It does when I deploy it using the catalina ant tasks, but when Tomcat restarts, my app is not found anymore and I have to redeploy it. I would expect that behaviour, as I don't think Tomcat keeps track of where context files are located... it just checks in the webapps dir (is my guess, hope I'm wrong). I need this feature, as I am going to deploy on a 3rd party machine and they only create a home directory for my stuff and I have to put everything in there. I'm not allowed to add anything to the tomcat dirs. Thanks! __ Do you Yahoo!? Find out what made the Top Yahoo! Searches of 2003 http://search.yahoo.com/top2003 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JSP config question from a newbie
Add servlet.jar to your classpath. It can be found in TOMCAT_HOME/common/lib/ On Tuesday 30 December 2003 10:09 pm, Steve Carson-Rowland wrote: I am just trying to get up and running with JSP, and have installed Tomcat 5.0. I am using Sams Teach Yourself JavaServer Pages. The code in the book, and the instructions are all based on Tomcat 4.0.3. (I am running Windows XP Professional). When I try and compile the following: --- import java.io.*; import javax.servlet.*; import javax.servlet.http.*; public class ch01_06 extends HttpServlet { public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { response.setContentType(text/html); PrintWriter out = response.getWriter(); out.println(HTML); out.println(HEAD); out.println(TITLE); out.println(A Web Page); out.println(/TITLE); out.println(/HEAD); out.println(Hello there!); out.println(/BODY); out.println(/HTML); } } --- I get the following errors: -- C:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\ch01javac ch01_06.java ch01_06.java:2: package javax.servlet does not exist import javax.servlet.*; ^ ch01_06.java:3: package javax.servlet.http does not exist import javax.servlet.http.*; ^ ch01_06.java:5: cannot resolve symbol symbol : class HttpServlet location: class ch01_06 public class ch01_06 extends HttpServlet ^ ch01_06.java:7: cannot resolve symbol symbol : class HttpServletRequest location: class ch01_06 public void doGet(HttpServletRequest request, ^ ch01_06.java:8: cannot resolve symbol symbol : class HttpServletResponse location: class ch01_06 HttpServletResponse response) ^ ch01_06.java:9: cannot resolve symbol symbol : class ServletException location: class ch01_06 throws IOException, ServletException ^ 6 errors --- I am guessing it is because my book tells me to set CLASSPATH to the path for 'servlet.jar', but when I look in the 'lib' directory I only see a 'servlet-api.jar' file. So I set the CLASSPATH to servlet-api.jar. (When this didn't work I did try changing the path to 'servlet.jar' just to check but same result). But the code is written with import javax.servlet.* - is this the problem? Because I am totally new to Java I can't figure out what to change. I also can't find a 'what's changed from Tomcat 4.0 to 5.0' file to help me understand. Anyone offer any advice? Thanks Steve Carson Brisbane Australia -- Ben Souther F.W. Davison Company, Inc. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [Q] context and war file locations
Thanks. Do I have to do it directly in the server.xml, or can I also do it via the admin console? I'm not allowed to do anything in the tomcat dirs, but I do have access to the admin app. --- Shapira, Yoav [EMAIL PROTECTED] wrote: Howdy, You can specify a different appBase for your Host in server.xml, and put the myapp.xml file in the appBase directory. Yoav Shapira Millennium ChemInformatics -Original Message- From: Riaan Oberholzer [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 30, 2003 8:09 AM To: [EMAIL PROTECTED] Subject: [Q] context and war file locations I have an application context file myapp.xml which is currently in the /webapps dir of Tomcat. The war file is some other place, not Tomcat related, but correctly referred to by the context file. Is it possible to place *both* files outside of the Tomcat structures and still get the application to work? It does when I deploy it using the catalina ant tasks, but when Tomcat restarts, my app is not found anymore and I have to redeploy it. I would expect that behaviour, as I don't think Tomcat keeps track of where context files are located... it just checks in the webapps dir (is my guess, hope I'm wrong). I need this feature, as I am going to deploy on a 3rd party machine and they only create a home directory for my stuff and I have to put everything in there. I'm not allowed to add anything to the tomcat dirs. Thanks! __ Do you Yahoo!? Find out what made the Top Yahoo! Searches of 2003 http://search.yahoo.com/top2003 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Find out what made the Top Yahoo! Searches of 2003 http://search.yahoo.com/top2003 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat memory usage
Andrei Ivanov wrote: I've searched bugzilla, but there doesn't seem to be any bug filled about something like this. About using a profiler... could you recommend one ? JProfiler I like, mainly because of the cost, but also because it integrates in well with Netbeans. g Look at http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20758 and see if that is your problem. This may also help: http://www.junlu.com/msg/38658.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [Q] context and war file locations
Reading the solution again, I don't think this will help... We are for arguments sake 10 different users each running his own web-app and each getting his own directory for storing applications. Setting the appBase will still leave the other 9 with the same problem, right. I guess I have to do it manually using the console. --- Shapira, Yoav [EMAIL PROTECTED] wrote: Howdy, You can specify a different appBase for your Host in server.xml, and put the myapp.xml file in the appBase directory. Yoav Shapira Millennium ChemInformatics -Original Message- From: Riaan Oberholzer [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 30, 2003 8:09 AM To: [EMAIL PROTECTED] Subject: [Q] context and war file locations I have an application context file myapp.xml which is currently in the /webapps dir of Tomcat. The war file is some other place, not Tomcat related, but correctly referred to by the context file. Is it possible to place *both* files outside of the Tomcat structures and still get the application to work? It does when I deploy it using the catalina ant tasks, but when Tomcat restarts, my app is not found anymore and I have to redeploy it. I would expect that behaviour, as I don't think Tomcat keeps track of where context files are located... it just checks in the webapps dir (is my guess, hope I'm wrong). I need this feature, as I am going to deploy on a 3rd party machine and they only create a home directory for my stuff and I have to put everything in there. I'm not allowed to add anything to the tomcat dirs. Thanks! __ Do you Yahoo!? Find out what made the Top Yahoo! Searches of 2003 http://search.yahoo.com/top2003 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Find out what made the Top Yahoo! Searches of 2003 http://search.yahoo.com/top2003 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [Q] context and war file locations
Howdy, You can do a number of things, including the UserWebApplications configuration (see the Host configuration reference), and/or declaring one host per user each with their own appBase. Yoav Shapira Millennium ChemInformatics -Original Message- From: Riaan Oberholzer [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 30, 2003 9:05 AM To: Tomcat Users List Subject: RE: [Q] context and war file locations Reading the solution again, I don't think this will help... We are for arguments sake 10 different users each running his own web-app and each getting his own directory for storing applications. Setting the appBase will still leave the other 9 with the same problem, right. I guess I have to do it manually using the console. --- Shapira, Yoav [EMAIL PROTECTED] wrote: Howdy, You can specify a different appBase for your Host in server.xml, and put the myapp.xml file in the appBase directory. Yoav Shapira Millennium ChemInformatics -Original Message- From: Riaan Oberholzer [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 30, 2003 8:09 AM To: [EMAIL PROTECTED] Subject: [Q] context and war file locations I have an application context file myapp.xml which is currently in the /webapps dir of Tomcat. The war file is some other place, not Tomcat related, but correctly referred to by the context file. Is it possible to place *both* files outside of the Tomcat structures and still get the application to work? It does when I deploy it using the catalina ant tasks, but when Tomcat restarts, my app is not found anymore and I have to redeploy it. I would expect that behaviour, as I don't think Tomcat keeps track of where context files are located... it just checks in the webapps dir (is my guess, hope I'm wrong). I need this feature, as I am going to deploy on a 3rd party machine and they only create a home directory for my stuff and I have to put everything in there. I'm not allowed to add anything to the tomcat dirs. Thanks! __ Do you Yahoo!? Find out what made the Top Yahoo! Searches of 2003 http://search.yahoo.com/top2003 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Find out what made the Top Yahoo! Searches of 2003 http://search.yahoo.com/top2003 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Cuurent values of -X's...
Howdy, how can I get the current values of these -X... parameters? Another See the Runtime class for a couple of inquiry methods, but you can't get the values of most -X parameters programmatically. question is : for tomcat 4.0.4 should I set JAVA_OPTS or CATALINA_OPTS? And Read your $CATALINA_HOME/bin/catalina.sh file. the last one... What're the differences between -server and -client initialization parameters? Read the Java VM Options documentation. I need some quick explanation about performance related parameters of tomcat... Google. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5 and class importing problems
Howdy, Many of our classes contain state information which we serialize to a database. However, now that all of the class names have changed, we cannot deserialize any of our existing objects because the class names don't match (ClassCastException is what's being thrown, if I remember right). Ooh, that's a toughie. I see you've already done your research and figured out all the problems except this one -- that's good. Unfortunately my only answer to getting jasper to like packageless classes is to hack jasper. This is referenced in the tomcat faq: http://jakarta.apache.org/tomcat/faq/classnotfound.html So, now that I've spoke my novel, here's my question: Is there a way I can simply allow Tomcat to import *.class from Simply, no. It'd be a difficult matter if at all possible (I don't know jasper well enough to conclusively say it's possible). make it work will cost us less time/money than rebuilding all of the serialized objects in our customers' databases (which I haven't thought of a good way to do that yet, either). I would seriously start investigating that reconstruction option. What about the following idea: - Add an XML or text saving functionality to your previous (packageless) classes, run them in tomcat 3 to deserialize your current objects and save them as XML or text temporarily. - Now use your new classes on tomcat 5 to read the XML/text and serialize into the database. It might be a lot of work, but it'll also be nice result that's worth your time. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat memory usage
On Tue, 30 Dec 2003, James Black wrote: Andrei Ivanov wrote: I've searched bugzilla, but there doesn't seem to be any bug filled about something like this. About using a profiler... could you recommend one ? JProfiler I like, mainly because of the cost, but also because it integrates in well with Netbeans. g I have only console access (no xfree installed) on the remote server, and as I can see, jprofiler wants X to be installed. Anyway, I have no experience with profilers, so I don't know how much would that help. Look at http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20758 and see if that is your problem. This may be it, but I just reload the application context... does tomcat undeploy and then deploy the app when I reload it ? If there's more that I can do to discover the cause, using my limited experience, just tell me what... This may also help: http://www.junlu.com/msg/38658.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat memory usage
Howdy, Look at http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20758 and see if that is your problem. This may also help: http://www.junlu.com/msg/38658.html I clicked the above and surprisingly saw my own message ;) Anyways, note that bug 20758 is filed against tomcat 4.1.24. There's no such bug reported against tomcat 5, and work has definitely been done in this area. If you do submit a new one for tomcat 5, make sure to attach your simple test WAR file and the steps so we can reproduce this problem, or your bug will be marked as INVALID/WONTFIX. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat and apache - localhost?
Hello, i'm a new mailing-list member. today, i installed apache, tomcat and the jk connector. i have one problem: when i enter in the web-browser the URL http://localhost/examples - i get the tomcat sample-page. it works also with the tomcat port 8080. but my computer has in the company network a hostname like pcnbsaal.company.de. my apache-webserver is available under localhost and the hostname pcxxx. it is possible, that tomcat also listen to localhost and the hostname pcxxx? sorry for my bad english :-) regards, sascha (from germany) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat and apache - localhost?
Howdy, Yes: read the Host configuration reference in the tomcat documentation, specifically the section on Host Name Aliases. Yoav Shapira Millennium ChemInformatics -Original Message- From: Sascha Alff [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 30, 2003 9:34 AM To: [EMAIL PROTECTED] Subject: Tomcat and apache - localhost? Hello, i'm a new mailing-list member. today, i installed apache, tomcat and the jk connector. i have one problem: when i enter in the web-browser the URL http://localhost/examples - i get the tomcat sample-page. it works also with the tomcat port 8080. but my computer has in the company network a hostname like pcnbsaal.company.de. my apache-webserver is available under localhost and the hostname pcxxx. it is possible, that tomcat also listen to localhost and the hostname pcxxx? sorry for my bad english :-) regards, sascha (from germany) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 5.0 Windows service memory configuration
I didn't receive an answer to this, so I'm re-asking. How do I increase the JVM max heap size for the windows service for Tomcat 5.0? The faqs and documentation only mention Tomcat 4.x, and the registry settings look different than the Tomcat 4 service. Someone mentioned the information I seek is in the code procrun.h, put where is this piece of code? For all the times someone has asked how to increase memory in Tomcat 4, I'd think this information would be in a FAQ, and not in the header of an external C++ project. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat Tuning Memory leak
Howdy, Yes - I was also not surprised with the CPU after the OOME. I will try to prepare a heap shapshot and post it here (only a link, don't worry) after I manage to get a usefull one. Make sure it's one before the OutOfMemoryError ;) server with couple of JSPs and servlets. The profiling has not revealed any memory leak in my code so far. Also the code was running for several years in tomcat 3.x without any problem. After migrating to tomcat 4.x the nightmare began. There's no doubt tomcat 4 (and 5's) memory usage characteristics are significantly different from tomcat 3. Nearly everything in the code is significantly different. Is it possible your app doesn't have any leaks, but simply needs more memory under load than you're allocating it? (BTW, to refresh my memory, is this setup where the JSP pages change hourly?) Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat and apache - localhost?
hi, i have read the manual. i have definied a server alias. but it doesn't work. only localhost work. can you tell me more? it's the first time for me that i use tomcat. - Original Message - From: Shapira, Yoav [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, December 30, 2003 3:37 PM Subject: RE: Tomcat and apache - localhost? Howdy, Yes: read the Host configuration reference in the tomcat documentation, specifically the section on Host Name Aliases. Yoav Shapira Millennium ChemInformatics -Original Message- From: Sascha Alff [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 30, 2003 9:34 AM To: [EMAIL PROTECTED] Subject: Tomcat and apache - localhost? Hello, i'm a new mailing-list member. today, i installed apache, tomcat and the jk connector. i have one problem: when i enter in the web-browser the URL http://localhost/examples - i get the tomcat sample-page. it works also with the tomcat port 8080. but my computer has in the company network a hostname like pcnbsaal.company.de. my apache-webserver is available under localhost and the hostname pcxxx. it is possible, that tomcat also listen to localhost and the hostname pcxxx? sorry for my bad english :-) regards, sascha (from germany) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Vedr.: Tomcat 5.0 Windows service memory configuration
The JVM options for Tomcat 5 go in HKEY_LOCAL_MACHINE/SOFTWARE/Apache Software Foundation/Tomcat Service Manager/Tomcat5/Parameters but they look somewhat tricky to enter yourself. Instead you may specify them by running Configure Tomcat, select the Java VM tab and enter appropriate JVM options in the Java Options section as these are written to the registry. Another way to go is to use procrun, http://jakarta.apache.org/commons/daemon/procrun.html. One thing I cannot alter though is to make Tomcat use server VM as is default to use the public JRE and casts a no server VM error when entering the -server option. /Thomas David Frankson [EMAIL PROTECTED] 30-12-03 15:47 Besvar venligst til Tomcat Users List Til:Tomcat Users List [EMAIL PROTECTED] cc: Vedr.: Tomcat 5.0 Windows service memory configuration I didn't receive an answer to this, so I'm re-asking. How do I increase the JVM max heap size for the windows service for Tomcat 5.0? The faqs and documentation only mention Tomcat 4.x, and the registry settings look different than the Tomcat 4 service. Someone mentioned the information I seek is in the code procrun.h, put where is this piece of code? For all the times someone has asked how to increase memory in Tomcat 4, I'd think this information would be in a FAQ, and not in the header of an external C++ project. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=Arial___ Vi goer opmaerksom paa, at denne e-mail kan indeholde fortrolig information. Hvis du ved en fejltagelse modtager e-mailen, beder vi dig venligst informere afsender om fejlen ved at bruge svar-funktionen. Samtidig beder vi dig slette e-mailen i dit system uden at videresende eller kopiere den. Selv om e-mailen og ethvert vedhaeftet bilag efter vores overbevisning er fri for virus og andre fejl, som kan paavirke computeren eller it-systemet, hvori den modtages og laeses, aabnes den paa modtagerens eget ansvar. Vi paatager os ikke noget ansvar for tab og skade, som er opstaaet i forbindelse med at modtage og bruge e-mailen. ___ Please note that this message may contain confidential information. If you have received this message by mistake, please inform the sender of the mistake by sending a reply, then delete the message from your system without making, distributing or retaining any copies of it. Although we believe that the message and any attachments are free from viruses and other errors that might affect the computer or IT system where it is received and read, the recipient opens the message at his or her own risk. We assume no responsibility for any loss or damage arising from the receipt or use of this message. /FONT
Re: MOD_JK (Apache+Tomcat)
Thanks Jerry, My Apache and Tomcat are working independently.ie when I run http://my.domain.name:8080/kuki or http://my.domain.name:8080/examples ...it works just great problem only occurs when I use connector MOD_JK. Any related informaiton is appreciated.. HARI OM Hello, I am using APache 2.0.47 and Tomcat 4.1.27 on SuSE Linux 8.1 I am working on the Connector MOD_JK.SO which I build from the source and put in /modules directory. When I run my Tomcat first and then Apache and then acceess http://My.domian.name/kuki it does not work... it says Page cannot be found wonder why? I also try to see MOD_JK.LOG file but I cannot find this file anywhere. Can anyone help me out in connecting Apache and Tomncat. Here are my Config Files: --- SERVER.XML --- # added following after Server Port=8005 Listener className=org.apache.ajp.tomcat4.config.ApacheConfig modJk=/usr/local/apache2/modules/mod_jk.so jkDebug=info workersConfig=/usr/local/tomcat4/conf/jk/workers.properties jkLog=/usr/local/tomcat4/logs/mod_jk.log/ Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009 minProcessors=5 maxProcessors=75 acceptCount=10 debug=0/ Host name=my.domain.name debug=0 appBase=webapps unpackWARs=true autoDeploy=true Listener className=org.apache.ajp.tomcat4.config.ApacheConfig append=true / Context path=/kuki docBase=/home/kuki/kuki/webapps/kuki reloadable=true ~~~ --- WORKERS.PROPERTIES --- workers.CATALINA_HOME=/usr/local/tomcat4 workers.java_home=$(JAVA_HOME) ps=/ worker.list=ajp13 worker.ajp13.port=8009 worker.ajp13.host=my.domain.name worker.ajp13.type=ajp13 worker.ajp13.lbfactor=5 ~~~ --- MOD_JK.CONF this file is AUTO GENERATED --- ## Auto generated on Mon Dec 29 14:10:45 MST 2003## IfModule !mod_jk.c LoadModule jk_module /usr/local/apache2/modules/mod_jk.so /IfModule JkWorkersFile /usr/local/tomcat4/conf/jk/workers.properties JkLogFile /usr/local/tomcat4/logs/mod_jk.log JkLogLevel info VirtualHost my.domain.name ServerName my.domain.name JkMount /kuki ajp13 JkMount /kuki/* ajp13 JkMount /examples ajp13 JkMount /examples/* ajp13 /VirtualHost ~~~ HTTPD.CONF Listen My.IP.ADDR.ESS:80 IfModule !mod_jk.c LoadModule jk_module modules/mod_jk.so /IfModule ServerName my.domain.name:80 JkWorkersFile /usr/local/tomcat4/conf/jk/workers.properties JkLogFile /usr/local/apache2/logs/mod_jk.log JkLogLevel debug JkMount /examples ajp13 JkMount /examples/* ajp13 JkMount /kuki ajp13 JkMount /kuki/* ajp13 ~~~ Can anyone please GUIDE me on this Connection Process? THANKS! and HAPPY NEW YEAR! HARI OM _ Make your home warm and cozy this winter with tips from MSN House Home. http://special.msn.com/home/warmhome.armx - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JSP not reloading
1. There were several contexts acting in this manner. 2. Not sure, because This problem has now been solved. Our sysadmin took down our boxes over Christmas to move them all to a new UPS. When they came back up (I did development work from home over the Christmas long weekend), the problem was gone. So what is the difference (to Tomcat? to a java app?) between stopping the app, and restarting the app, and stopping the box, and restarting the box ? What could possibly be 'left over' that is cleared away only by a server restart, rather than just application restart? At this point I'm merely idly curious, since we're back to Tomcat behaving. :) -Original Message- From: Ankur Shah [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 23, 2003 2:06 PM To: Tomcat Users List Subject: Re: JSP not reloading Also, If you're still open to ideas, what happens when you do this with your old/new server: 1. You make changes in a different (examples) context? 2. Do you get a 404 (File not found) error if you move foo.jsp to fooX.jsp? Mike Curwen wrote: -Original Message- From: Ankur Shah [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 23, 2003 12:15 PM To: Tomcat Users List Subject: Re: JSP not reloading A few things to try here: 1. What happens when you access your JSPs directly through tomcat (port 8080?). Do you get the same result? same (bad) result 2. What happens when you do $touch foo.jsp? Does your server pick up the changes, then? no 3. Did you try upgrading to 5.0.16? *duck* no, we're not wanting to use 5.0 until (probably) 5.1. There's nothing we need from the new servlet spec. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
another newbie question
whicht database should i use under tomcat [EMAIL PROTECTED] crazy-wilys webmaster _ MSN Search, le moteur de recherche qui pense comme vous ! http://fr.ca.search.msn.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: another newbie question
Hi! FRANCOIS Dufour wrote: whicht database should i use under tomcat That does not so much depend on tomcat but rather on the needs of your application. Today almost any major RDBMS has a JDBC driver and that's all you need. If you want a database that is simple to administrate but comes with rather limited functionality, you might want to have a look at mysql. If you need more features, postgresql, or sapdb may be what you want. These are all open source. If you want to invest money, there is always M$ SQL or Oracle and the like. hth Phil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-help
unsubscribe _ Expand your wine savvy and get some great new recipes at MSN Wine. http://wine.msn.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Bootstrap: Class loader creation threw exception
Hi All - On starting Tomcat ,I've the followings error Bootstrap: Class loader creation threw exception java.lang.IllegalArgumentException: addRepositoryInternal: java.util.zip.ZipException: error in opening zip file at org.apache.catalina.loader.StandardClassLoader.addRepositoryInternal(Standar dClassLoader.java:1246) at org.apache.catalina.loader.StandardClassLoader.init(StandardClassLoader.ja va:200) at org.apache.catalina.startup.ClassLoaderFactory.createClassLoader(ClassLoader Factory.java:202) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:138) Any clue :jdk1.4.1_01 on Apache 1.3.20 and Tomcat 4 .0.4 Thanks Devinder -- Notice: This e-mail message, together with any attachments, contains information of Merck Co., Inc. (Whitehouse Station, New Jersey, USA), and/or its affiliates (which may be known outside the United States as Merck Frosst, Merck Sharp Dohme or MSD) that may be confidential, proprietary copyrighted and/or legally privileged, and is intended solely for the use of the individual or entity named on this message. If you are not the intended recipient, and have received this message in error, please immediately return this by e-mail and then delete it. -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Bootstrap: Class loader creation threw exception
Howdy, How did you install tomcat? Yoav Shapira Millennium ChemInformatics -Original Message- From: Sachdeva, Devinder [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 30, 2003 11:04 AM To: 'Tomcat Users List' Subject: Bootstrap: Class loader creation threw exception Hi All - On starting Tomcat ,I've the followings error Bootstrap: Class loader creation threw exception java.lang.IllegalArgumentException: addRepositoryInternal: java.util.zip.ZipException: error in opening zip file at org.apache.catalina.loader.StandardClassLoader.addRepositoryInternal(St anda r dClassLoader.java:1246) at org.apache.catalina.loader.StandardClassLoader.init(StandardClassLoad er.j a va:200) at org.apache.catalina.startup.ClassLoaderFactory.createClassLoader(ClassL oade r Factory.java:202) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:138) Any clue :jdk1.4.1_01 on Apache 1.3.20 and Tomcat 4 .0.4 Thanks Devinder --- --- Notice: This e-mail message, together with any attachments, contains information of Merck Co., Inc. (Whitehouse Station, New Jersey, USA), and/or its affiliates (which may be known outside the United States as Merck Frosst, Merck Sharp Dohme or MSD) that may be confidential, proprietary copyrighted and/or legally privileged, and is intended solely for the use of the individual or entity named on this message. If you are not the intended recipient, and have received this message in error, please immediately return this by e-mail and then delete it. --- --- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 5.0 (problems)
Good afternoon, Nowadays, I work with TomCat 4.1.24 and I would like to install TomCat 5.0, however after the installation, when I try to start the service, it closes in the following, not even starts. I am using jdk1.4.2 and Windows Me. Which procedures should I take to install TomCat 5.0 and to maintain the same configuration of the previous version? I am grateful since now, Kleber.
Re: servlet gets smtp relay denied error
Thanks for the ideas, all are welcome :) See answers to your questions inline: Doug Parsons wrote: When I invoke it from a browser on the same network as the server, it works as expected. An email is sent to the specified address, with the attachment. But when I invoke it from a browser outside of my network, the message does not get sent. I don't have first hand experience in this class, but I got a theory. One possible problem is that your mail server is not looking at the connection to determine if it is a relay but at the message. Have the servlet write out the text of the message to a file or console OR look at one of the messages sent from inhouse to see how the message is formed. Good idea. Will try it. Also does/can your mail server send a response to the address attempting the relay? That could help determine why the mail server thinks it's a relay. The mail server is configured to deny relays for anybody not on the LAN, but there is no relay request---the servlet runs on the same box as the smtp server (which is, in fact, on the same box as my Apache, Tomcat and DNS servers). Why does it matter where the browser that sends the request resides? Now for a real stretch, does your server have a public or private IP assigned or both? Both. Server sits behind a router/firewall, with a private IP, router has public IP and forwards mail, and http traffic to the server. If both, then consider that the request is being associated with the public IP when attached from outside and the private when from inside. If TC is using the public IP in the request to the mail server then is the mail server set to allow a relay from it's public IP? Not such a wild idea. You might be on to something here. Not currently configured to relay from the external address. Not sure that's what I want, either---isn't that a security hole? to relay from a public address? Will need to freshen up on sendmail before I take that step, but definitely worth pursuing. Thanks again. Jerry I know this might end up being a bunch of fertilizer, but no one had resonded and every now and then I get lucky. Good Luck Doug Parsons SCJP - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5.0 (problems)
Have a look in the %TOMCAT_HOME%\logs\catalina.out to see if there are any startup errors. I'm not sure how to answer your 2nd question concisely but the main file to look at is the server.xml -Original Message- From: Kleber [mailto:[EMAIL PROTECTED] Sent: 30 December 2003 16:15 To: [EMAIL PROTECTED] Subject: Tomcat 5.0 (problems) Good afternoon, Nowadays, I work with TomCat 4.1.24 and I would like to install TomCat 5.0, however after the installation, when I try to start the service, it closes in the following, not even starts. I am using jdk1.4.2 and Windows Me. Which procedures should I take to install TomCat 5.0 and to maintain the same configuration of the previous version? I am grateful since now, Kleber. Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
To Yoav Shapira : RE: Bootstrap: Class loader creation threw exce ption
Howday- In our company ,we have the standard zip files which include both apache and tomcat servers . On extracting zip files ,these servers get installed.It works well for other applications thanks -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 30, 2003 11:11 AM To: Tomcat Users List Subject: RE: Bootstrap: Class loader creation threw exception Howdy, How did you install tomcat? Yoav Shapira Millennium ChemInformatics -Original Message- From: Sachdeva, Devinder [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 30, 2003 11:04 AM To: 'Tomcat Users List' Subject: Bootstrap: Class loader creation threw exception Hi All - On starting Tomcat ,I've the followings error Bootstrap: Class loader creation threw exception java.lang.IllegalArgumentException: addRepositoryInternal: java.util.zip.ZipException: error in opening zip file at org.apache.catalina.loader.StandardClassLoader.addRepositoryInternal(St anda r dClassLoader.java:1246) at org.apache.catalina.loader.StandardClassLoader.init(StandardClassLoad er.j a va:200) at org.apache.catalina.startup.ClassLoaderFactory.createClassLoader(ClassL oade r Factory.java:202) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:138) Any clue :jdk1.4.1_01 on Apache 1.3.20 and Tomcat 4 .0.4 Thanks Devinder --- --- Notice: This e-mail message, together with any attachments, contains information of Merck Co., Inc. (Whitehouse Station, New Jersey, USA), and/or its affiliates (which may be known outside the United States as Merck Frosst, Merck Sharp Dohme or MSD) that may be confidential, proprietary copyrighted and/or legally privileged, and is intended solely for the use of the individual or entity named on this message. If you are not the intended recipient, and have received this message in error, please immediately return this by e-mail and then delete it. --- --- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Notice: This e-mail message, together with any attachments, contains information of Merck Co., Inc. (Whitehouse Station, New Jersey, USA), and/or its affiliates (which may be known outside the United States as Merck Frosst, Merck Sharp Dohme or MSD) that may be confidential, proprietary copyrighted and/or legally privileged, and is intended solely for the use of the individual or entity named on this message. If you are not the intended recipient, and have received this message in error, please immediately return this by e-mail and then delete it. -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: To Yoav Shapira : RE: Bootstrap: Class loader creation threw exce ption
Howdy, You should've stuck with the original thread and not changed the subject ;( This messes up archives and makes searching more difficult. Anyways, if the zip is intact and you followed standard installation procedures, you shouldn't have this error. Are you modified the bootclasspath? Yoav Shapira Millennium ChemInformatics -Original Message- From: Sachdeva, Devinder [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 30, 2003 11:18 AM To: 'Tomcat Users List' Subject: To Yoav Shapira : RE: Bootstrap: Class loader creation threw exce ption Howday- In our company ,we have the standard zip files which include both apache and tomcat servers . On extracting zip files ,these servers get installed.It works well for other applications thanks -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 30, 2003 11:11 AM To: Tomcat Users List Subject: RE: Bootstrap: Class loader creation threw exception Howdy, How did you install tomcat? Yoav Shapira Millennium ChemInformatics -Original Message- From: Sachdeva, Devinder [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 30, 2003 11:04 AM To: 'Tomcat Users List' Subject: Bootstrap: Class loader creation threw exception Hi All - On starting Tomcat ,I've the followings error Bootstrap: Class loader creation threw exception java.lang.IllegalArgumentException: addRepositoryInternal: java.util.zip.ZipException: error in opening zip file at org.apache.catalina.loader.StandardClassLoader.addRepositoryInternal(S t anda r dClassLoader.java:1246) at org.apache.catalina.loader.StandardClassLoader.init(StandardClassLoa d er.j a va:200) at org.apache.catalina.startup.ClassLoaderFactory.createClassLoader(Class L oade r Factory.java:202) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:138) Any clue :jdk1.4.1_01 on Apache 1.3.20 and Tomcat 4 .0.4 Thanks Devinder -- - --- Notice: This e-mail message, together with any attachments, contains information of Merck Co., Inc. (Whitehouse Station, New Jersey, USA), and/or its affiliates (which may be known outside the United States as Merck Frosst, Merck Sharp Dohme or MSD) that may be confidential, proprietary copyrighted and/or legally privileged, and is intended solely for the use of the individual or entity named on this message. If you are not the intended recipient, and have received this message in error, please immediately return this by e-mail and then delete it. -- - --- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- --- Notice: This e-mail message, together with any attachments, contains information of Merck Co., Inc. (Whitehouse Station, New Jersey, USA), and/or its affiliates (which may be known outside the United States as Merck Frosst, Merck Sharp Dohme or MSD) that may be confidential, proprietary copyrighted and/or legally privileged, and is intended solely for the use of the individual or entity named on this message. If you are not the intended recipient, and have received this message in error, please immediately return this by e-mail and then delete it. --- --- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5.0 (problems)
Thanks for your answer, I look at the folder %TOMCAT_HOME%\logs and it´s empty. There isn´t any file or folder inside of it. Best regards, Kleber - Original Message - From: Dale, Matt [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, December 30, 2003 2:16 PM Subject: RE: Tomcat 5.0 (problems) Have a look in the %TOMCAT_HOME%\logs\catalina.out to see if there are any startup errors. I'm not sure how to answer your 2nd question concisely but the main file to look at is the server.xml -Original Message- From: Kleber [mailto:[EMAIL PROTECTED] Sent: 30 December 2003 16:15 To: [EMAIL PROTECTED] Subject: Tomcat 5.0 (problems) Good afternoon, Nowadays, I work with TomCat 4.1.24 and I would like to install TomCat 5.0, however after the installation, when I try to start the service, it closes in the following, not even starts. I am using jdk1.4.2 and Windows Me. Which procedures should I take to install TomCat 5.0 and to maintain the same configuration of the previous version? I am grateful since now, Kleber. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat Tuning Memory leak
Shapira, Yoav wrote: (BTW, to refresh my memory, is this setup where the JSP pages change hourly?) I have already changed this ;-) Also added the fork attribute to true for jsp compile. It is not caused by the app - after the app starts and first 100 or so users connect the memory jumps up to approx 130 MB. But during the next 24 hours it eats more than 300 megs. From what I have seen from the profiler so far number of my objects is fairly decent. But there are more and more approx 100k (98320 chars) buffers created somewhere. I will post more precise info later after I a. upgrade to the latest and greatest JDK 1.4.2_03 b. create some HTML output of the heap Thanks for any hints so far, best regards, David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Threaded servlets okay in a compliant container?
I recall reading that conformant servlets and such (EJBs?) do not create their own threads, something about being a container issue. Does anybody know the primary objection to launching threads that take on a life of their own? The container doesn't really need to manage it, per se. I suppose a container can drop servlet objects from memory, but as that wouldn't necessarily affect a daemon thread, it seems that doesn't harm launching them at startup, and of course the servlet could even stop the threads when told to destroy itself if that makes sense. Does anybody know if most servlet containers today (Tomcat 4+, WebLogic, WebSphere...) have a real problem with such new threads being created or not? What would be the risk in my using them? I previously posted this by accident on the PostgreSQL JDBC list and I got mixed answers. Some say it's fine, others say there's no spec saying such threads can't be used, and others say that BEA complained about support issues related to apps that created their own threads. Any feedback is much appreciated. Thanks, David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
MOD_JK (Apache+Tomcat)
Hello, I am using APache 2.0.47 and Tomcat 4.1.27 on SuSE Linux 8.1 I am working on the Connector MOD_JK.SO which I build from the source and put in /modules directory. When I run my Tomcat first and then Apache and then acceess http://My.domian.name/kuki it does not work... it says Page cannot be found wonder why? I also try to see MOD_JK.LOG file but I cannot find this file anywhere. Can anyone help me out in connecting Apache and Tomncat. Here are my Config Files: --- SERVER.XML --- # added following after Server Port=8005 Listener className=org.apache.ajp.tomcat4.config.ApacheConfig modJk=/usr/local/apache2/modules/mod_jk.so jkDebug=info workersConfig=/usr/local/tomcat4/conf/jk/workers.properties jkLog=/usr/local/tomcat4/logs/mod_jk.log/ Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009 minProcessors=5 maxProcessors=75 acceptCount=10 debug=0/ Host name=my.domain.name debug=0 appBase=webapps unpackWARs=true autoDeploy=true Listener className=org.apache.ajp.tomcat4.config.ApacheConfig append=true / Context path=/kuki docBase=/home/kuki/kuki/webapps/kuki reloadable=true ~~~ --- WORKERS.PROPERTIES --- workers.CATALINA_HOME=/usr/local/tomcat4 workers.java_home=$(JAVA_HOME) ps=/ worker.list=ajp13 worker.ajp13.port=8009 worker.ajp13.host=my.domain.name worker.ajp13.type=ajp13 worker.ajp13.lbfactor=5 ~~~ --- MOD_JK.CONF this file is AUTO GENERATED --- ## Auto generated on Mon Dec 29 14:10:45 MST 2003## IfModule !mod_jk.c LoadModule jk_module /usr/local/apache2/modules/mod_jk.so /IfModule JkWorkersFile /usr/local/tomcat4/conf/jk/workers.properties JkLogFile /usr/local/tomcat4/logs/mod_jk.log JkLogLevel info VirtualHost my.domain.name ServerName my.domain.name JkMount /kuki ajp13 JkMount /kuki/* ajp13 JkMount /examples ajp13 JkMount /examples/* ajp13 /VirtualHost ~~~ HTTPD.CONF Listen My.IP.ADDR.ESS:80 IfModule !mod_jk.c LoadModule jk_module modules/mod_jk.so /IfModule ServerName my.domain.name:80 JkWorkersFile /usr/local/tomcat4/conf/jk/workers.properties JkLogFile /usr/local/apache2/logs/mod_jk.log JkLogLevel debug JkMount /examples ajp13 JkMount /examples/* ajp13 JkMount /kuki ajp13 JkMount /kuki/* ajp13 ~~~ Can anyone please GUIDE me on this Connection Process? THANKS! and HAPPY NEW YEAR! HARI OM
RE: Tomcat 5.0 (problems)
My first guess would be that JAVA_HOME isnt set. Have you tried starting tomcat from the bin\startup.bat file yet rather than the service? as it will output errors to the console. Ta Matt -Original Message- From: Kleber [mailto:[EMAIL PROTECTED] Sent: 30 December 2003 17:01 To: Tomcat Users List Subject: Re: Tomcat 5.0 (problems) Thanks for your answer, I look at the folder %TOMCAT_HOME%\logs and it´s empty. There isn´t any file or folder inside of it. Best regards, Kleber - Original Message - From: Dale, Matt [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, December 30, 2003 2:16 PM Subject: RE: Tomcat 5.0 (problems) Have a look in the %TOMCAT_HOME%\logs\catalina.out to see if there are any startup errors. I'm not sure how to answer your 2nd question concisely but the main file to look at is the server.xml -Original Message- From: Kleber [mailto:[EMAIL PROTECTED] Sent: 30 December 2003 16:15 To: [EMAIL PROTECTED] Subject: Tomcat 5.0 (problems) Good afternoon, Nowadays, I work with TomCat 4.1.24 and I would like to install TomCat 5.0, however after the installation, when I try to start the service, it closes in the following, not even starts. I am using jdk1.4.2 and Windows Me. Which procedures should I take to install TomCat 5.0 and to maintain the same configuration of the previous version? I am grateful since now, Kleber. - 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] Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Threaded servlets okay in a compliant container?
Howdy, One thing to note is that a servlet container and a J2EE server are not the same. Tomcat is the former but not the latter. Weblogic, websphere, jboss, etc. are the latter. They implement the whole J2EE spec which places more restrictions on thread creation by applications: read the spec if you want the actual text (I don't remember if off-hand). In a servlet containr, you can create your own threads. Just like in other environments, you must be careful with how you manage them, especially making sure they are appropriately terminated by your application or by the JVM itself if they're daemons. Yoav Shapira Millennium ChemInformatics -Original Message- From: David Wall [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 30, 2003 12:15 PM To: [EMAIL PROTECTED] Subject: Threaded servlets okay in a compliant container? I recall reading that conformant servlets and such (EJBs?) do not create their own threads, something about being a container issue. Does anybody know the primary objection to launching threads that take on a life of their own? The container doesn't really need to manage it, per se. I suppose a container can drop servlet objects from memory, but as that wouldn't necessarily affect a daemon thread, it seems that doesn't harm launching them at startup, and of course the servlet could even stop the threads when told to destroy itself if that makes sense. Does anybody know if most servlet containers today (Tomcat 4+, WebLogic, WebSphere...) have a real problem with such new threads being created or not? What would be the risk in my using them? I previously posted this by accident on the PostgreSQL JDBC list and I got mixed answers. Some say it's fine, others say there's no spec saying such threads can't be used, and others say that BEA complained about support issues related to apps that created their own threads. Any feedback is much appreciated. Thanks, David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Threaded servlets okay in a compliant container?
Also ... (From 2.3 spec) In SRV.1.2 What is a Servlet Container? ... For example, high-end application servers may limit the creation of a Thread object, to insure that other components of the container are not negatively impacted. SRV.9.11 Web Application Environment ... Such servlet containers should support this behavior when performed on threads created by the developer, but are not currently required to do so. Such a requirement will be added in the next version of this specification. Developers are cautioned that depending on this capability for application-created threads is nonportable. -Tim Shapira, Yoav wrote: Howdy, One thing to note is that a servlet container and a J2EE server are not the same. Tomcat is the former but not the latter. Weblogic, websphere, jboss, etc. are the latter. They implement the whole J2EE spec which places more restrictions on thread creation by applications: read the spec if you want the actual text (I don't remember if off-hand). In a servlet containr, you can create your own threads. Just like in other environments, you must be careful with how you manage them, especially making sure they are appropriately terminated by your application or by the JVM itself if they're daemons. Yoav Shapira Millennium ChemInformatics -Original Message- From: David Wall [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 30, 2003 12:15 PM To: [EMAIL PROTECTED] Subject: Threaded servlets okay in a compliant container? I recall reading that conformant servlets and such (EJBs?) do not create their own threads, something about being a container issue. Does anybody know the primary objection to launching threads that take on a life of their own? The container doesn't really need to manage it, per se. I suppose a container can drop servlet objects from memory, but as that wouldn't necessarily affect a daemon thread, it seems that doesn't harm launching them at startup, and of course the servlet could even stop the threads when told to destroy itself if that makes sense. Does anybody know if most servlet containers today (Tomcat 4+, WebLogic, WebSphere...) have a real problem with such new threads being created or not? What would be the risk in my using them? I previously posted this by accident on the PostgreSQL JDBC list and I got mixed answers. Some say it's fine, others say there's no spec saying such threads can't be used, and others say that BEA complained about support issues related to apps that created their own threads. Any feedback is much appreciated. Thanks, David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5.0 (problems)
My JAVA_HOME it is set correctly. I have tried starting tomcat from the bin\startup.bat file and the error is this: Without enviroment space Cannot find This file is needed to run this program what could be happened? - Original Message - From: Dale, Matt [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, December 30, 2003 3:17 PM Subject: RE: Tomcat 5.0 (problems) My first guess would be that JAVA_HOME isnt set. Have you tried starting tomcat from the bin\startup.bat file yet rather than the service? as it will output errors to the console. Ta Matt -Original Message- From: Kleber [mailto:[EMAIL PROTECTED] Sent: 30 December 2003 17:01 To: Tomcat Users List Subject: Re: Tomcat 5.0 (problems) Thanks for your answer, I look at the folder %TOMCAT_HOME%\logs and it´s empty. There isn´t any file or folder inside of it. Best regards, Kleber - Original Message - From: Dale, Matt [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, December 30, 2003 2:16 PM Subject: RE: Tomcat 5.0 (problems) Have a look in the %TOMCAT_HOME%\logs\catalina.out to see if there are any startup errors. I'm not sure how to answer your 2nd question concisely but the main file to look at is the server.xml -Original Message- From: Kleber [mailto:[EMAIL PROTECTED] Sent: 30 December 2003 16:15 To: [EMAIL PROTECTED] Subject: Tomcat 5.0 (problems) Good afternoon, Nowadays, I work with TomCat 4.1.24 and I would like to install TomCat 5.0, however after the installation, when I try to start the service, it closes in the following, not even starts. I am using jdk1.4.2 and Windows Me. Which procedures should I take to install TomCat 5.0 and to maintain the same configuration of the previous version? I am grateful since now, Kleber. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Classes cannot be found
Having problems with Tomcat finding classes. This seems simple, maybe someone can see where I'm overlooking something. I have in my /webapps/WEB-INF/classes/ folder this file: --- SitePage.class --- In my /webapps/ folder, I have a file site.jsp that starts like this: --- %@ page import=java.util.* % % SitePage thisPage = new SitePage(request, response); ... % --- However, whenever I hit this page, I get this compilation error: --- org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: 5 in the jsp file: /site.jsp Generated servlet error: [javac] Compiling 1 source file D:\Jakarta5\work\Catalina\166.70.225.99\_\org\apache\jsp\site_jsp.java:4 8: cannot resolve symbol symbol : class SitePage location: class org.apache.jsp.site_jsp SitePage thisPage = new SitePage(request, response); ^ --- My log file for this web application shows: --- SEVERE: Env: Compile: javaFileName=/D:/Jakarta5/work/Catalina/166.70.225.99/_//org/apache/jsp\ site_jsp.java classpath=/D:/Web/VIPDestinations/webapps/WEB-INF/classes/;/D:/Web/VIPDe stinations/webapps/WEB-INF/lib/nfc.jar;D:\Jakarta5\work\Catalina\166.70. 225.99\_;/D:/Web/VIPDestinations/webapps/WEB-INF/classes/;/D:/Web/VIPDes tinations/webapps/WEB-INF/lib/nfc.jar;D:/Jakarta5/shared/classes/; (etc., etc.,) cp=D:\Jakarta5\bin\bootstrap.jar cp=D:\Web\VIPDestinations\webapps\WEB-INF\classes cp=D:\Web\VIPDestinations\webapps\WEB-INF\lib\nfc.jar cp=D:\Jakarta5\work\Catalina\166.70.225.99\_ cp=D:\Web\VIPDestinations\webapps\WEB-INF\classes cp=D:\Web\VIPDestinations\webapps\WEB-INF\lib\nfc.jar cp=D:\Jakarta5\shared\classes (etc., etc.,) --- Why can't this find the SitePage class? The classpath is correct in the logs, the file is in the WEB-INF/classes folder, it's not in a package or anything. Anyone have any ideas? I've spent days on this and still no luck. Is it a bug? What can I try to troubleshoot? I feel like I've exhausted my troubleshooting options thus far. Thanks in advance for everyone's help, Jeff - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Classes cannot be found
Howdy, http://jakarta.apache.org/tomcat/faq/classnotfound.html Yoav Shapira Millennium ChemInformatics -Original Message- From: Jeff Greenland [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 30, 2003 12:59 PM To: Tomcat Users List Subject: Classes cannot be found Having problems with Tomcat finding classes. This seems simple, maybe someone can see where I'm overlooking something. I have in my /webapps/WEB-INF/classes/ folder this file: --- SitePage.class --- In my /webapps/ folder, I have a file site.jsp that starts like this: --- %@ page import=java.util.* % % SitePage thisPage = new SitePage(request, response); ... % --- However, whenever I hit this page, I get this compilation error: --- org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: 5 in the jsp file: /site.jsp Generated servlet error: [javac] Compiling 1 source file D:\Jakarta5\work\Catalina\166.70.225.99\_\org\apache\jsp\site_jsp.java: 4 8: cannot resolve symbol symbol : class SitePage location: class org.apache.jsp.site_jsp SitePage thisPage = new SitePage(request, response); ^ --- My log file for this web application shows: --- SEVERE: Env: Compile: javaFileName=/D:/Jakarta5/work/Catalina/166.70.225.99/_//org/apache/jsp \ site_jsp.java classpath=/D:/Web/VIPDestinations/webapps/WEB-INF/classes/;/D:/Web/VIPD e stinations/webapps/WEB-INF/lib/nfc.jar;D:\Jakarta5\work\Catalina\166.70 . 225.99\_;/D:/Web/VIPDestinations/webapps/WEB-INF/classes/;/D:/Web/VIPDe s tinations/webapps/WEB-INF/lib/nfc.jar;D:/Jakarta5/shared/classes/; (etc., etc.,) cp=D:\Jakarta5\bin\bootstrap.jar cp=D:\Web\VIPDestinations\webapps\WEB-INF\classes cp=D:\Web\VIPDestinations\webapps\WEB-INF\lib\nfc.jar cp=D:\Jakarta5\work\Catalina\166.70.225.99\_ cp=D:\Web\VIPDestinations\webapps\WEB-INF\classes cp=D:\Web\VIPDestinations\webapps\WEB-INF\lib\nfc.jar cp=D:\Jakarta5\shared\classes (etc., etc.,) --- Why can't this find the SitePage class? The classpath is correct in the logs, the file is in the WEB-INF/classes folder, it's not in a package or anything. Anyone have any ideas? I've spent days on this and still no luck. Is it a bug? What can I try to troubleshoot? I feel like I've exhausted my troubleshooting options thus far. Thanks in advance for everyone's help, Jeff - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Classes cannot be found
Thanks, I'll go through and see if anything in here gives me some hints. However, I'm not getting ClassNotFound exceptions -- my files are not even compiling because the compiler Cannot Resolve Symbol. My problem lies in that the compiler (jasper) cannot find my compiled classes, even though the logs seem to show that they are in the classpath. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 30, 2003 11:00 AM To: Tomcat Users List Subject: RE: Classes cannot be found Howdy, http://jakarta.apache.org/tomcat/faq/classnotfound.html Yoav Shapira Millennium ChemInformatics -Original Message- From: Jeff Greenland [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 30, 2003 12:59 PM To: Tomcat Users List Subject: Classes cannot be found Having problems with Tomcat finding classes. This seems simple, maybe someone can see where I'm overlooking something. I have in my /webapps/WEB-INF/classes/ folder this file: --- SitePage.class --- In my /webapps/ folder, I have a file site.jsp that starts like this: --- %@ page import=java.util.* % % SitePage thisPage = new SitePage(request, response); ... % --- However, whenever I hit this page, I get this compilation error: --- org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: 5 in the jsp file: /site.jsp Generated servlet error: [javac] Compiling 1 source file D:\Jakarta5\work\Catalina\166.70.225.99\_\org\apache\jsp\site_jsp.java: 4 8: cannot resolve symbol symbol : class SitePage location: class org.apache.jsp.site_jsp SitePage thisPage = new SitePage(request, response); ^ --- My log file for this web application shows: --- SEVERE: Env: Compile: javaFileName=/D:/Jakarta5/work/Catalina/166.70.225.99/_//org/apache/jsp \ site_jsp.java classpath=/D:/Web/VIPDestinations/webapps/WEB-INF/classes/;/D:/Web/VIPD e stinations/webapps/WEB-INF/lib/nfc.jar;D:\Jakarta5\work\Catalina\166.70 . 225.99\_;/D:/Web/VIPDestinations/webapps/WEB-INF/classes/;/D:/Web/VIPDe s tinations/webapps/WEB-INF/lib/nfc.jar;D:/Jakarta5/shared/classes/; (etc., etc.,) cp=D:\Jakarta5\bin\bootstrap.jar cp=D:\Web\VIPDestinations\webapps\WEB-INF\classes cp=D:\Web\VIPDestinations\webapps\WEB-INF\lib\nfc.jar cp=D:\Jakarta5\work\Catalina\166.70.225.99\_ cp=D:\Web\VIPDestinations\webapps\WEB-INF\classes cp=D:\Web\VIPDestinations\webapps\WEB-INF\lib\nfc.jar cp=D:\Jakarta5\shared\classes (etc., etc.,) --- Why can't this find the SitePage class? The classpath is correct in the logs, the file is in the WEB-INF/classes folder, it's not in a package or anything. Anyone have any ideas? I've spent days on this and still no luck. Is it a bug? What can I try to troubleshoot? I feel like I've exhausted my troubleshooting options thus far. Thanks in advance for everyone's help, Jeff - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5.0 (problems)
Never seen this before so I'm stumped, i'm sure someone else can tell you what it is though -Original Message- From: Kleber [mailto:[EMAIL PROTECTED] Sent: 30 December 2003 17:46 To: Tomcat Users List Subject: Re: Tomcat 5.0 (problems) My JAVA_HOME it is set correctly. I have tried starting tomcat from the bin\startup.bat file and the error is this: Without enviroment space Cannot find This file is needed to run this program what could be happened? - Original Message - From: Dale, Matt [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, December 30, 2003 3:17 PM Subject: RE: Tomcat 5.0 (problems) My first guess would be that JAVA_HOME isnt set. Have you tried starting tomcat from the bin\startup.bat file yet rather than the service? as it will output errors to the console. Ta Matt -Original Message- From: Kleber [mailto:[EMAIL PROTECTED] Sent: 30 December 2003 17:01 To: Tomcat Users List Subject: Re: Tomcat 5.0 (problems) Thanks for your answer, I look at the folder %TOMCAT_HOME%\logs and it´s empty. There isn´t any file or folder inside of it. Best regards, Kleber - Original Message - From: Dale, Matt [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, December 30, 2003 2:16 PM Subject: RE: Tomcat 5.0 (problems) Have a look in the %TOMCAT_HOME%\logs\catalina.out to see if there are any startup errors. I'm not sure how to answer your 2nd question concisely but the main file to look at is the server.xml -Original Message- From: Kleber [mailto:[EMAIL PROTECTED] Sent: 30 December 2003 16:15 To: [EMAIL PROTECTED] Subject: Tomcat 5.0 (problems) Good afternoon, Nowadays, I work with TomCat 4.1.24 and I would like to install TomCat 5.0, however after the installation, when I try to start the service, it closes in the following, not even starts. I am using jdk1.4.2 and Windows Me. Which procedures should I take to install TomCat 5.0 and to maintain the same configuration of the previous version? I am grateful since now, Kleber. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Classes cannot be found
Oh, and I might add that everything worked fine in Tomcat 3 and Tomcat 4. Could it be configuration related in server.xml (or web.xml) in that I'm not specifying the context correctly? The server is able to run JSP files fine it seems, I just can't use any external classes. Thanks again, Jeff -Original Message- From: Jeff Greenland Sent: Tuesday, December 30, 2003 11:05 AM To: Tomcat Users List Subject: RE: Classes cannot be found Thanks, I'll go through and see if anything in here gives me some hints. However, I'm not getting ClassNotFound exceptions -- my files are not even compiling because the compiler Cannot Resolve Symbol. My problem lies in that the compiler (jasper) cannot find my compiled classes, even though the logs seem to show that they are in the classpath. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 30, 2003 11:00 AM To: Tomcat Users List Subject: RE: Classes cannot be found Howdy, http://jakarta.apache.org/tomcat/faq/classnotfound.html Yoav Shapira Millennium ChemInformatics -Original Message- From: Jeff Greenland [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 30, 2003 12:59 PM To: Tomcat Users List Subject: Classes cannot be found Having problems with Tomcat finding classes. This seems simple, maybe someone can see where I'm overlooking something. I have in my /webapps/WEB-INF/classes/ folder this file: --- SitePage.class --- In my /webapps/ folder, I have a file site.jsp that starts like this: --- %@ page import=java.util.* % % SitePage thisPage = new SitePage(request, response); ... % --- However, whenever I hit this page, I get this compilation error: --- org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: 5 in the jsp file: /site.jsp Generated servlet error: [javac] Compiling 1 source file D:\Jakarta5\work\Catalina\166.70.225.99\_\org\apache\jsp\site_jsp.java: 4 8: cannot resolve symbol symbol : class SitePage location: class org.apache.jsp.site_jsp SitePage thisPage = new SitePage(request, response); ^ --- My log file for this web application shows: --- SEVERE: Env: Compile: javaFileName=/D:/Jakarta5/work/Catalina/166.70.225.99/_//org/apache/jsp \ site_jsp.java classpath=/D:/Web/VIPDestinations/webapps/WEB-INF/classes/;/D:/Web/VIPD e stinations/webapps/WEB-INF/lib/nfc.jar;D:\Jakarta5\work\Catalina\166.70 . 225.99\_;/D:/Web/VIPDestinations/webapps/WEB-INF/classes/;/D:/Web/VIPDe s tinations/webapps/WEB-INF/lib/nfc.jar;D:/Jakarta5/shared/classes/; (etc., etc.,) cp=D:\Jakarta5\bin\bootstrap.jar cp=D:\Web\VIPDestinations\webapps\WEB-INF\classes cp=D:\Web\VIPDestinations\webapps\WEB-INF\lib\nfc.jar cp=D:\Jakarta5\work\Catalina\166.70.225.99\_ cp=D:\Web\VIPDestinations\webapps\WEB-INF\classes cp=D:\Web\VIPDestinations\webapps\WEB-INF\lib\nfc.jar cp=D:\Jakarta5\shared\classes (etc., etc.,) --- Why can't this find the SitePage class? The classpath is correct in the logs, the file is in the WEB-INF/classes folder, it's not in a package or anything. Anyone have any ideas? I've spent days on this and still no luck. Is it a bug? What can I try to troubleshoot? I feel like I've exhausted my troubleshooting options thus far. Thanks in advance for everyone's help, Jeff - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Classes cannot be found
Someone else correct me if I'm wrong but I belive that classes are now requried to be packages. On Tuesday 30 December 2003 01:10 pm, Jeff Greenland wrote: Oh, and I might add that everything worked fine in Tomcat 3 and Tomcat 4. Could it be configuration related in server.xml (or web.xml) in that I'm not specifying the context correctly? The server is able to run JSP files fine it seems, I just can't use any external classes. Thanks again, Jeff -Original Message- From: Jeff Greenland Sent: Tuesday, December 30, 2003 11:05 AM To: Tomcat Users List Subject: RE: Classes cannot be found Thanks, I'll go through and see if anything in here gives me some hints. However, I'm not getting ClassNotFound exceptions -- my files are not even compiling because the compiler Cannot Resolve Symbol. My problem lies in that the compiler (jasper) cannot find my compiled classes, even though the logs seem to show that they are in the classpath. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 30, 2003 11:00 AM To: Tomcat Users List Subject: RE: Classes cannot be found Howdy, http://jakarta.apache.org/tomcat/faq/classnotfound.html Yoav Shapira Millennium ChemInformatics -Original Message- From: Jeff Greenland [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 30, 2003 12:59 PM To: Tomcat Users List Subject: Classes cannot be found Having problems with Tomcat finding classes. This seems simple, maybe someone can see where I'm overlooking something. I have in my /webapps/WEB-INF/classes/ folder this file: --- SitePage.class --- In my /webapps/ folder, I have a file site.jsp that starts like this: --- %@ page import=java.util.* % % SitePage thisPage = new SitePage(request, response); ... % --- However, whenever I hit this page, I get this compilation error: --- org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: 5 in the jsp file: /site.jsp Generated servlet error: [javac] Compiling 1 source file D:\Jakarta5\work\Catalina\166.70.225.99\_\org\apache\jsp\site_jsp.java: 4 8: cannot resolve symbol symbol : class SitePage location: class org.apache.jsp.site_jsp SitePage thisPage = new SitePage(request, response); ^ --- My log file for this web application shows: --- SEVERE: Env: Compile: javaFileName=/D:/Jakarta5/work/Catalina/166.70.225.99/_//org/apache/jsp \ site_jsp.java classpath=/D:/Web/VIPDestinations/webapps/WEB-INF/classes/;/D:/Web/VIPD e stinations/webapps/WEB-INF/lib/nfc.jar;D:\Jakarta5\work\Catalina\166.70 . 225.99\_;/D:/Web/VIPDestinations/webapps/WEB-INF/classes/;/D:/Web/VIPDe s tinations/webapps/WEB-INF/lib/nfc.jar;D:/Jakarta5/shared/classes/; (etc., etc.,) cp=D:\Jakarta5\bin\bootstrap.jar cp=D:\Web\VIPDestinations\webapps\WEB-INF\classes cp=D:\Web\VIPDestinations\webapps\WEB-INF\lib\nfc.jar cp=D:\Jakarta5\work\Catalina\166.70.225.99\_ cp=D:\Web\VIPDestinations\webapps\WEB-INF\classes cp=D:\Web\VIPDestinations\webapps\WEB-INF\lib\nfc.jar cp=D:\Jakarta5\shared\classes (etc., etc.,) --- Why can't this find the SitePage class? The classpath is correct in the logs, the file is in the WEB-INF/classes folder, it's not in a package or anything. Anyone have any ideas? I've spent days on this and still no luck. Is it a bug? What can I try to troubleshoot? I feel like I've exhausted my troubleshooting options thus far. Thanks in advance for everyone's help, Jeff - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Classes cannot be found
Hi! Jeff Greenland wrote: Thanks, I'll go through and see if anything in here gives me some hints. However, I'm not getting ClassNotFound exceptions -- my files are not even compiling because the compiler Cannot Resolve Symbol. My problem lies in that the compiler (jasper) cannot find my compiled classes, even though the logs seem to show that they are in the classpath. It seems from the snipplets you posted, that you class is not in a package. As I understand it, a package declaration is required for jasper to reference custom classes correctly. Try putting your class in a package. Phil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Classes cannot be found
I think I've found out the same thing from the stuff I've read. I might have to stick with Tomcat 4 in order to keep our server working (and live with the crashes). I know it sounds simple to move everything into a package, but when I do that, I lose all of my serialized objects. Our original classes never had packages (from several years ago), and they've just not been modified. The problem with packaging them is that I lose all of my customers' data that has been serialized over the past many years. Does anyone know a way around the serialization problem? If there's an easy solution, I would jump on moving all of our classes into a package immediately -- something we've been wanting to do for a few years. Thanks for the help everyone, hopefully someone has a deserialization solution as well! Jeff -Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 30, 2003 11:13 AM To: Tomcat Users List Subject: Re: Classes cannot be found Someone else correct me if I'm wrong but I belive that classes are now requried to be packages. On Tuesday 30 December 2003 01:10 pm, Jeff Greenland wrote: Oh, and I might add that everything worked fine in Tomcat 3 and Tomcat 4. Could it be configuration related in server.xml (or web.xml) in that I'm not specifying the context correctly? The server is able to run JSP files fine it seems, I just can't use any external classes. Thanks again, Jeff -Original Message- From: Jeff Greenland Sent: Tuesday, December 30, 2003 11:05 AM To: Tomcat Users List Subject: RE: Classes cannot be found Thanks, I'll go through and see if anything in here gives me some hints. However, I'm not getting ClassNotFound exceptions -- my files are not even compiling because the compiler Cannot Resolve Symbol. My problem lies in that the compiler (jasper) cannot find my compiled classes, even though the logs seem to show that they are in the classpath. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 30, 2003 11:00 AM To: Tomcat Users List Subject: RE: Classes cannot be found Howdy, http://jakarta.apache.org/tomcat/faq/classnotfound.html Yoav Shapira Millennium ChemInformatics -Original Message- From: Jeff Greenland [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 30, 2003 12:59 PM To: Tomcat Users List Subject: Classes cannot be found Having problems with Tomcat finding classes. This seems simple, maybe someone can see where I'm overlooking something. I have in my /webapps/WEB-INF/classes/ folder this file: --- SitePage.class --- In my /webapps/ folder, I have a file site.jsp that starts like this: --- %@ page import=java.util.* % % SitePage thisPage = new SitePage(request, response); ... % --- However, whenever I hit this page, I get this compilation error: --- org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: 5 in the jsp file: /site.jsp Generated servlet error: [javac] Compiling 1 source file D:\Jakarta5\work\Catalina\166.70.225.99\_\org\apache\jsp\site_jsp.java: 4 8: cannot resolve symbol symbol : class SitePage location: class org.apache.jsp.site_jsp SitePage thisPage = new SitePage(request, response); ^ --- My log file for this web application shows: --- SEVERE: Env: Compile: javaFileName=/D:/Jakarta5/work/Catalina/166.70.225.99/_//org/apache/jsp \ site_jsp.java classpath=/D:/Web/VIPDestinations/webapps/WEB-INF/classes/;/D:/Web/VIPD e stinations/webapps/WEB-INF/lib/nfc.jar;D:\Jakarta5\work\Catalina\166.70 . 225.99\_;/D:/Web/VIPDestinations/webapps/WEB-INF/classes/;/D:/Web/VIPDe s tinations/webapps/WEB-INF/lib/nfc.jar;D:/Jakarta5/shared/classes/; (etc., etc.,) cp=D:\Jakarta5\bin\bootstrap.jar cp=D:\Web\VIPDestinations\webapps\WEB-INF\classes cp=D:\Web\VIPDestinations\webapps\WEB-INF\lib\nfc.jar cp=D:\Jakarta5\work\Catalina\166.70.225.99\_ cp=D:\Web\VIPDestinations\webapps\WEB-INF\classes cp=D:\Web\VIPDestinations\webapps\WEB-INF\lib\nfc.jar cp=D:\Jakarta5\shared\classes (etc., etc.,) --- Why can't this find the SitePage class? The classpath is correct in the logs, the file is in the WEB-INF/classes folder, it's not in a package or anything. Anyone have any ideas? I've spent days on this and still no luck. Is it a bug? What can
Re: Tomcat Tuning Memory leak
David Strupl wrote: I have already changed this ;-) Also added the fork attribute to true for jsp compile. It is not caused by the app - after the app starts and first 100 or so users connect the memory jumps up to approx 130 MB. But during the next 24 hours it eats more than 300 megs. From what I have seen from the profiler so far number of my objects is fairly decent. But there are more and more approx 100k (98320 chars) buffers created somewhere. I will post more precise info later after I a. upgrade to the latest and greatest JDK 1.4.2_03 b. create some HTML output of the heap Your JSP page shouldn't have any business logic in it, that should be in beans that your JSP page uses. You can test the beans in a profiler and see if there is any memory leaks. If you are using JDK1.4.1 then that will probably be your problem as there was a memory leak in the String class that was fixed in JDK1.4.2. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Classes cannot be found
Jeff Greenland wrote: Does anyone know a way around the serialization problem? If there's an easy solution, I would jump on moving all of our classes into a package immediately -- something we've been wanting to do for a few years. Thanks for the help everyone, hopefully someone has a deserialization solution as well! Write a standalone application that will go through the customer records, extract the information using the old classes, then repackage them in the new classes and reserialize them? That should work, then you can just move to the new, better, structure. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat4 and apache2 integration
Hi List, I am trying to build tomcat-apache connectors and it is not working. I have tried some of the tomcat-apache how-to's but no success. Can't create mod_jk2.so. I got the latest tgz from jakarta.apache.org and I run the following commands under native2 directory: sh buildconf.sh ./configure --with-apxs2=/usr/local/apache2/bin/apxs make libtool --finish /usr/local/apache2/modules but the mod_jk2.so does not get created. I did a find / -name mod_jk2.so -print, but mod_jk2.so is nowhere to be found. I am running apache-2.0.44 and tomcat-4.1.27 and latest jsdk on a Redhat 9 machine Enils Bashi Programmer - Chesapeake Bay Program Veridyne Incorporated Annapolis, Maryland: (410) 267-9833 www.chesapeakebay.net - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5.0 (problems)
I managed to start the TomCat by the file startup.bat. I started it by the DOS command prompt. However, I don't manage to start it clicking in it. Does have any way to do this? []'s Kleber - Original Message - From: Dale, Matt [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, December 30, 2003 4:09 PM Subject: RE: Tomcat 5.0 (problems) Never seen this before so I'm stumped, i'm sure someone else can tell you what it is though -Original Message- From: Kleber [mailto:[EMAIL PROTECTED] Sent: 30 December 2003 17:46 To: Tomcat Users List Subject: Re: Tomcat 5.0 (problems) My JAVA_HOME it is set correctly. I have tried starting tomcat from the bin\startup.bat file and the error is this: Without enviroment space Cannot find This file is needed to run this program what could be happened? - Original Message - From: Dale, Matt [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, December 30, 2003 3:17 PM Subject: RE: Tomcat 5.0 (problems) My first guess would be that JAVA_HOME isnt set. Have you tried starting tomcat from the bin\startup.bat file yet rather than the service? as it will output errors to the console. Ta Matt -Original Message- From: Kleber [mailto:[EMAIL PROTECTED] Sent: 30 December 2003 17:01 To: Tomcat Users List Subject: Re: Tomcat 5.0 (problems) Thanks for your answer, I look at the folder %TOMCAT_HOME%\logs and it´s empty. There isn´t any file or folder inside of it. Best regards, Kleber - Original Message - From: Dale, Matt [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, December 30, 2003 2:16 PM Subject: RE: Tomcat 5.0 (problems) Have a look in the %TOMCAT_HOME%\logs\catalina.out to see if there are any startup errors. I'm not sure how to answer your 2nd question concisely but the main file to look at is the server.xml -Original Message- From: Kleber [mailto:[EMAIL PROTECTED] Sent: 30 December 2003 16:15 To: [EMAIL PROTECTED] Subject: Tomcat 5.0 (problems) Good afternoon, Nowadays, I work with TomCat 4.1.24 and I would like to install TomCat 5.0, however after the installation, when I try to start the service, it closes in the following, not even starts. I am using jdk1.4.2 and Windows Me. Which procedures should I take to install TomCat 5.0 and to maintain the same configuration of the previous version? I am grateful since now, Kleber. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Threaded servlets okay in a compliant container?
SRV.9.11 says the same thing in the 2.4 spec so it's still not defined as of Tomcat 5 either. --- Tim Funk [EMAIL PROTECTED] wrote: Also ... (From 2.3 spec) In SRV.1.2 What is a Servlet Container? ... For example, high-end application servers may limit the creation of a Thread object, to insure that other components of the container are not negatively impacted. SRV.9.11 Web Application Environment ... Such servlet containers should support this behavior when performed on threads created by the developer, but are not currently required to do so. Such a requirement will be added in the next version of this specification. Developers are cautioned that depending on this capability for application-created threads is nonportable. -Tim Shapira, Yoav wrote: Howdy, One thing to note is that a servlet container and a J2EE server are not the same. Tomcat is the former but not the latter. Weblogic, websphere, jboss, etc. are the latter. They implement the whole J2EE spec which places more restrictions on thread creation by applications: read the spec if you want the actual text (I don't remember if off-hand). In a servlet containr, you can create your own threads. Just like in other environments, you must be careful with how you manage them, especially making sure they are appropriately terminated by your application or by the JVM itself if they're daemons. Yoav Shapira Millennium ChemInformatics -Original Message- From: David Wall [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 30, 2003 12:15 PM To: [EMAIL PROTECTED] Subject: Threaded servlets okay in a compliant container? I recall reading that conformant servlets and such (EJBs?) do not create their own threads, something about being a container issue. Does anybody know the primary objection to launching threads that take on a life of their own? The container doesn't really need to manage it, per se. I suppose a container can drop servlet objects from memory, but as that wouldn't necessarily affect a daemon thread, it seems that doesn't harm launching them at startup, and of course the servlet could even stop the threads when told to destroy itself if that makes sense. Does anybody know if most servlet containers today (Tomcat 4+, WebLogic, WebSphere...) have a real problem with such new threads being created or not? What would be the risk in my using them? I previously posted this by accident on the PostgreSQL JDBC list and I got mixed answers. Some say it's fine, others say there's no spec saying such threads can't be used, and others say that BEA complained about support issues related to apps that created their own threads. Any feedback is much appreciated. Thanks, David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Find out what made the Top Yahoo! Searches of 2003 http://search.yahoo.com/top2003 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Classes cannot be found
Put your class in a package and see if that changes the results. --- Jeff Greenland [EMAIL PROTECTED] wrote: Thanks, I'll go through and see if anything in here gives me some hints. However, I'm not getting ClassNotFound exceptions -- my files are not even compiling because the compiler Cannot Resolve Symbol. My problem lies in that the compiler (jasper) cannot find my compiled classes, even though the logs seem to show that they are in the classpath. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 30, 2003 11:00 AM To: Tomcat Users List Subject: RE: Classes cannot be found Howdy, http://jakarta.apache.org/tomcat/faq/classnotfound.html Yoav Shapira Millennium ChemInformatics -Original Message- From: Jeff Greenland [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 30, 2003 12:59 PM To: Tomcat Users List Subject: Classes cannot be found Having problems with Tomcat finding classes. This seems simple, maybe someone can see where I'm overlooking something. I have in my /webapps/WEB-INF/classes/ folder this file: --- SitePage.class --- In my /webapps/ folder, I have a file site.jsp that starts like this: --- %@ page import=java.util.* % % SitePage thisPage = new SitePage(request, response); ... % --- However, whenever I hit this page, I get this compilation error: --- org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: 5 in the jsp file: /site.jsp Generated servlet error: [javac] Compiling 1 source file D:\Jakarta5\work\Catalina\166.70.225.99\_\org\apache\jsp\site_jsp.java: 4 8: cannot resolve symbol symbol : class SitePage location: class org.apache.jsp.site_jsp SitePage thisPage = new SitePage(request, response); ^ --- My log file for this web application shows: --- SEVERE: Env: Compile: javaFileName=/D:/Jakarta5/work/Catalina/166.70.225.99/_//org/apache/jsp \ site_jsp.java classpath=/D:/Web/VIPDestinations/webapps/WEB-INF/classes/;/D:/Web/VIPD e stinations/webapps/WEB-INF/lib/nfc.jar;D:\Jakarta5\work\Catalina\166.70 . 225.99\_;/D:/Web/VIPDestinations/webapps/WEB-INF/classes/;/D:/Web/VIPDe s tinations/webapps/WEB-INF/lib/nfc.jar;D:/Jakarta5/shared/classes/; (etc., etc.,) cp=D:\Jakarta5\bin\bootstrap.jar cp=D:\Web\VIPDestinations\webapps\WEB-INF\classes cp=D:\Web\VIPDestinations\webapps\WEB-INF\lib\nfc.jar cp=D:\Jakarta5\work\Catalina\166.70.225.99\_ cp=D:\Web\VIPDestinations\webapps\WEB-INF\classes cp=D:\Web\VIPDestinations\webapps\WEB-INF\lib\nfc.jar cp=D:\Jakarta5\shared\classes (etc., etc.,) --- Why can't this find the SitePage class? The classpath is correct in the logs, the file is in the WEB-INF/classes folder, it's not in a package or anything. Anyone have any ideas? I've spent days on this and still no luck. Is it a bug? What can I try to troubleshoot? I feel like I've exhausted my troubleshooting options thus far. Thanks in advance for everyone's help, Jeff - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Find out what made the Top Yahoo! Searches of 2003 http://search.yahoo.com/top2003 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Where to download Tomcat 4.0.6?
Howdy, I want to use tomcat 4.0.6 ( the old production quality release :) for some reason and googled the web for no result. It seems that there is no 4.0.x versions in the old release archives . I really need some features provided by the 4.0.x version. Some one help me? TIA
RE: Where to download Tomcat 4.0.6?
Try this: http://archive.apache.org/dist/jakarta/tomcat-4/archive/v4.0.6/bin/ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 30, 2003 2:21 PM To: Tomcat Users List Subject: Where to download Tomcat 4.0.6? Howdy, I want to use tomcat 4.0.6 ( the old production quality release :) for some reason and googled the web for no result. It seems that there is no 4.0.x versions in the old release archives . I really need some features provided by the 4.0.x version. Some one help me? TIA - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
workers.properties file - connecting Tomcat to Apache
I'm trying to connect Tomcat and Apache. Initially, I didn't have the workers.properties file and got the following error when I started Tomcat: Can't find workers.properties at C:\jakarta-tomcat\conf\jk\workers.properties Please install it in the default location or set the config location Using ApacheConfig workersConfig=FULL_PATH / Starting service Tomcat-Standalone Apache Tomcat/4.0.2 Starting service Tomcat-Apache Apache Tomcat/4.0.2 So, I created the workers.properties file and saved it as a CONF file. Is that how it should be saved? I placed it in the folder jk but I'm still getting the same error as before. Can anyone please advise? Here is what's written in the server.xml file: Server port=8005 shutdown=SHUTDOWN debug=0 Listener className=org.apache.ajp.tomcat4.config.ApacheConfig modJk=C:\Program Files\Apache Group\Apache\modules\mod_jk.dll workersConfig=C:\jakarta-tomcat\conf\jk\workers.properties / The workers.properties file is as follows: # Define some properties workers.apache_log=C:\Program Files\Apache Group\Apache\logs workers.tomcat_home=C:\jakarta-tomcat workers.java_home=C:\j2sdk1.4.2 ps=/ # Define 4 workers, 3 real workers using ajp12, ajp13, jni, the last one being a loadbalancing worker worker.list=worker1, worker2, worker3, worker4 # Set properties for worker1 (ajp12) worker.worker1.type=ajp12 worker.worker1.host=locahost worker.worker1.port=8007 worker.worker1.lbfactor=5 # Set properties for worker2 (ajp13) worker.worker2.type=ajp13 worker.worker2.host=locahost worker.worker2.port=8009 worker.worker2.lbfactor=50 worker.worker2.cachesize=10 worker.worker2.cache_timeout=600 worker.worker2.socket_keepalive=1 worker.worker2.socket_timeout=300 # Set properties for worker3 (jni) worker.worker3.type=jni # Set worker3 bridge type, here Tomcat 3.3 worker.worker3.bridge=tomcat33 # Set worker3 classpath worker.worker3.class_path=$(workers.tomcat_home)$(ps)classes worker.worker3.class_path=$(workers.tomcat_home)$(ps)lib$(ps)tomcat.jar # Set worker3 tomcat command line worker.worker3.cmd_line=-home worker.worker3.cmd_line=$(workers.tomcat_home) # Set worker3 Tomcat/JVM settings worker.worker3.stdout=$(workers.apache_log)$(ps)inprocess.stdout worker.worker3.stderr=$(workers.apache_log)$(ps)inprocess.stderr worker.worker3.sysprops=tomcat.home=$(workers.tomcat_home) # Set properties for worker4 (lb) which use worker1 and worker2 worker.worker4.balanced_workers=worker1,worker2 worker.worker3.jvm_lib=$(workers.java_home)$(ps)jre$(ps)bin$(ps)classic$(ps )libjvm.so - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: defining multiple tomcat server on one workers2.properties file
i've tried to define a separate channel socket for the second tomcat instance, but now when i try to access the directory specified with the uri, the web page will only come up if i fully type the file name (i.e. test.foo.bar.com/spa/index.jsp). i have the tomcat server set to use index.jsp as the welcome file. here is the workers2.properties i am using: [logger] level=ERROR [config:] file=${serverRoot}/apache/conf/workers2.properties debug=0 debugEnv=0 [shm:] info=Scoreboard. Required fro reconfiguration and status with mulitprocess servers file=/var/log/jk2.shm size=100 debug=0 disabled=0 [lb:lb] [channel.socket:10.1.2.66:8009] port=8009 host=10.1.2.66 [channel.socket:10.1.2.102:8009] port=8009 host=10.1.2.102 [ajp13:10.1.2.66:8009] channel=channel.socket:10.1.2.66:8009 group=lb [ajp13:10.1.2.102:8009] channel=channel.socket:10.1.2.102:8009 group=lb [uri:/examples/*.jsp] worker=ajp13:10.1.2.66:8009 group=lb [uri:/asset/*] worker=ajp13:10.1.2.66:8009 group=lb [uri:/spa/*] worker=ajp13:10.1.2.102:8009 group=lb if i only have one channel socket and worker defined, it works fine. is this a bug in mod_jk2 or am i missing a configuration property some where. this is with tomcat 4.1.29 with apache 2. Peter Asif Chowdhary wrote: In the workers2.properties file specify the second instance of your tomcat and the port number. For example [channel.socket:localhost:8009] info=Ajp13 forwarding over socket debug=0 tomcatId=localhost:8009 [channel.socket:localhost:8010] info=Ajp13 forwarding over socket debug=0 tomcatId=localhost:8010 In the first tomcat server.xml this will be jvmRoute=localhost:8009 in the engine directive. In the server.xml in the specify JVM attribute to jvmRoute=localhost:8010 in the Engine directive. in the connector directive and change the port number to 8010 -Original Message- From: Peter Choe [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 17, 2003 3:30 PM To: Tomcat Users List Subject: defining multiple tomcat server on one workers2.properties file i have an apache webserver that will handle request made to tomcat and hand off the request using jk2. i have the workers2.properties to handle this with one tomcat server. however, i have another tomcat server that i need the request to be sent to. i have done this with jk by defining a separate worker and specifying the other server. how is this done with jk2? does anyone have an example i can use? Peter Choe - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
suggestion for taglib process
Hello folks, i´d like to see all error Tomcat´s messages related with taglib changed to display exactly the taglib that the error cames from, for example, take a look in this message: org.apache.jasper.JasperException: /jsp/cadastro/OS_cadastroProjetoEd.jsp(101,6) Unable to find setter method for attribute: required I think it could be better if this message above would be like: org.apache.jasper.JasperException: /jsp/cadastro/OS_cadastroProjetoEd.jsp(101,6) Unable to find setter method for attribute: required for oslib.tagext.NumberTag Regards, Edson
Re: Tomcat 5.0 (problems)
: Which procedures should I take to install TomCat 5.0 and to maintain the same : configuration of the previous version? Please clarify: what do you mean by same configuration? Do you mean, keep the same server.xml that you used for Tomcat 4.x? I recently went through a TC4 - TC5 upgrade for a fairly vanilla webapp, and that required changes to server.xml. Without them, Tomcat simply started, complained about missing classes (old TC4 connectors) and bailed. I took notes on the whole thing for when I do it in production. I could post those on my website, if anyone's interested... -QM -- software -- http://www.brandxdev.net (C++ / Java / SSL) tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]