AW: Configure Tomcat to default to index.jsp
Gesendet: Mittwoch, 7. Juli 2004 02:13 How is Tomcat configured to default to index.jsp? Here is a test app, but it is necessary to give the entire path: http://myhome.com/helloworld/index.jsp instead of: http:// myhome.com/helloworld/ What needs to be configured on Linux and Windows XP? just add --- welcome-file-list welcome-fileindex.jsp/welcome-file /welcome-file-list --- into your WEB-INF/web.xml. --ah - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
newbie error:address already in use
hi i have a problem with starting tomcat. when tomcat starts an error occurs and log is here... how can i solve this best regards. StandardServer.await: create[8005]: java.net.BindException: Address already in use: JVM_Bind java.net.BindException: Address already in use: JVM_Bind at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(Unknown Source) at java.net.ServerSocket.bind(Unknown Source) at java.net.ServerSocket.init(Unknown Source) at org.apache.catalina.core.StandardServer.await(StandardServer.java:487) at org.apache.catalina.startup.Catalina.await(Catalina.java:619) at org.apache.catalina.startup.Catalina.start(Catalina.java:579) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:284) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:422)
AW: newbie error:address already in use
Gesendet: Mittwoch, 7. Juli 2004 08:19 when tomcat starts an error occurs and log is here... StandardServer.await: create[8005]: java.net.BindException: Address already in use: JVM_Bind You have already an instance of tomcat running (perhaps the SHUTDOWN port is in use?). Check your server.xml file for all ports and/or do a netstat -atn | grep 8005. --ah - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: newbie error:address already in use
check your process, seek the process who uses the port and destroy it.. -Message d'origine- De : Mehmet Kutlu INANÇ [mailto:[EMAIL PROTECTED] Envoyé : mercredi 7 juillet 2004 08:19 À : [EMAIL PROTECTED] Objet : newbie error:address already in use hi i have a problem with starting tomcat. when tomcat starts an error occurs and log is here... how can i solve this best regards. StandardServer.await: create[8005]: java.net.BindException: Address already in use: JVM_Bind java.net.BindException: Address already in use: JVM_Bind at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(Unknown Source) at java.net.ServerSocket.bind(Unknown Source) at java.net.ServerSocket.init(Unknown Source) at org.apache.catalina.core.StandardServer.await(StandardServer.java:487) at org.apache.catalina.startup.Catalina.await(Catalina.java:619) at org.apache.catalina.startup.Catalina.start(Catalina.java:579) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:284) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:422)--- Interscan -- (on antivirus) email-body was scanned and no virus found - Traite Par Interscan -- (on antivirus)-- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Best practice setup
Hi all, we currently work on a migration of our systems from Solaris to Linux and I develop the structure/setup of the new mashines. We have 4 different web applications on one of the mashines with at about 1400 users at all (300-400 concurrent). We have to assign one virtual IP per web application (legacy). I plan to setup one Apache with a virtual host per virtual IP. Apache should dispatch all requests via mod_jk to the appropriate tomcat. Is that a good setup? Or is Apache a bottleneck for the web applications in the backend? What value should the Apache parameter MaxChilds should have? Is 256 enough? An alternative setup could be one tomcat with all 4 web applications in it. But we fear to close-couple all web applications to one tomcat process? Does a web application with high load affect other web applications in the same tomcat process? Best regards --ah - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Newbie: Tomcat-Apache Error
Hello List, I don't know if i am on the right address here, but i try to ask you something. I have an Apache 2.0.49 running with jarkarta-tomcat 4.1.27 LE-jdk14 running. In my Apache errorlog i have some error messages caused from tomcat. They ar like this: [Thu Jul 01 14:35:42 2004] [error] ajp13.connect() failed ajp13:localhost:6009 [Thu Jul 01 14:35:42 2004] [error] ajp13.service() failed to connect endpoint errno=61 Unknown error [Thu Jul 01 14:35:42 2004] [error] ajp13.service() Error forwarding ajp13:localhost:6009 1 1 [Thu Jul 01 14:35:42 2004] [error] mod_jk.handler() Error connecting to tomcat 12 [Thu Jul 01 14:35:43 2004] [error] channelSocket.open() connect failed 127.0.0.1:6009 61 Unknown error Can someone tell me the reason for this errors and how to elimitnate them ? Thak you for your response. Regards Radek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: I've officially decided that JSTL is one of the worstthingsto ever happen
Subject: Re: I've officially decided that JSTL is one of the worstthingsto ever happen Oh, man, ... Ok let's settle this argument simple. Tonight, I'll ask my Christian Science friend to talk to Jesus, Why not ask Jesus yourself? Prayer is open to anyone, and is not limited to the night. Ehh not for me. I'm a heathen and I'm going straight to hell, so there's no point in even trying. Night is preferable because usually prayer goes hand in hand with virgin boy sacrifice, and there's less people around at night to hear the screams in the church basement. and ask him the following: Jesus, if EL really DOES decrease performance significantly, and should not be used at all, please give me absolutely NO sign. However, if EL is a great thing and should be used by everyone, please give me a sign. Are you sure you haven't been setting us up just so you could say that? I'll admit, the 2LA for Expression Language causes me pause, but, ... Well, just in case you're serious, I'll mention Matthew 12, ca. 39. Might also mention Gideon and his fleece. Huh? I'll report to you in the morning and let you know what was God's opinion on that. I have an idea what He would say: Use the tools you understand. Work hard. Be happy. But don't insult other people by insulting their tools. And don't tweak people just because they use strange 2LAs for their runtime expression languages. I might be wrong, of course. -- Joel [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.716 / Virus Database: 472 - Release Date: 05.07.2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.716 / Virus Database: 472 - Release Date: 05.07.2004 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Limited Database Pool Connection
Hello, I defined a database connection that uses a pool connection. Everything is working well. Now I had a routing problem that prevented any database connection (with a SQPNestedException fired). The exception fired after a long time is there a way of setting the connection limit, so it does not take so long before firing the exception? Thanks Elisabeth - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Importing Tomcat 5.0 webapp into Eclipse 3.0?
I havent actually imported a project into eclipse I dont think but if you create a new tomcat project from within eclipse and point it at your webapp then it all just falls into place. Ta Matt On 7/7/2004 4:38 AM, Januski, Ken wrote: Thanks Matt, I'm using the Sysdeo plugin and that got me to the point where I could build a simple jsp page in Eclipse. But as soon as I started to try importing an entire web app I got the error about XLM validation disabled. That then prompted my question as to whether or not it's possible to import an entire Tomcat webapp into Eclipse using Sysdeo plugin or anything else. I gave myself 1-2 days to stop working on code for project and see if I could get it running under Eclipse. But the second day is drawing to a close without success so I think I may have to finish this project without Eclipse and give it another try when I have more time. I'd hope to use Eclipse refactoring to make some wholesale changes in the application. But I think I'll have to stick to the old way of just editing files one by one, at least for now. Ken - 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: mod_jk2 ./configure problem/query
Sorry to say but I have gone through the whole process 3 times now (including re-installing Redhat itself) and I still get error 503 Service Temporarily Unavailable. I reckon it must be a permissions problem but where? I have tried the following: chmod 666 jk2.socket I tried changing the path to the file workers2.properties in httpd.conf. Doing this changes the error message to 404, page not found so the file workers2.properties is being read. I have done as instructed on permissions but i wonder if Apache still doesn't have any rights to call the Tomcat engine. I have Tomcat running fine as a standalone. Any further ideas? Cheers Tim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Hi
Important! ** ** WARNING: WinProxy has detected a virus in file attached to this e-mail message! The attachment has been automatically removed to protect your network. WinProxy Administrator: [EMAIL PROTECTED] 07/07/04 13:38:14 WinProxy (Version 5.0 R1a (5.0.0.7)) - http://www.Ositis.com/ Antivirus Vendor: Panda Software Scan Engine Version: 2.10.1.6_3.1.5.211 Pattern File Version: 3.80015 (Timestamp: 2004/07/06 10:41:19) Machine name: SERVER Machine IP address: 217.139.38.67 Client: dark Protocol: SMTP Virus: W32/Netsky.Z.worm found! Attachment: Part-2.zip ** ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how many sessions in use?
The manager app will tell you. -Tim Stephen Charles Huey wrote: Is there any way to find out how many sessions are currently in use? I'm ultimately trying to get at how much memory is being used per session...if there's no way to really get at this without a profiler tool, do any of you use a particular one with Tomcat applications? JFluid, JProbe, etc? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Mysterious Exception while server startup
Hello, I run here a tomcat 5.0.27 server on windows 2000 with jsdk1.4.2-04. The following happens rarely and it seems only to happen when I start Tomcat in Eclipse 3 (Sysdeo 3.0.0 alpha1 plugin). After processing all contextes on startup I get sometimes the following Exception: WARNUNG: Error registering contexts java.util.ConcurrentModificationException at java.util.HashMap$HashIterator.nextEntry(HashMap.java:782) at java.util.HashMap$EntryIterator.next(HashMap.java:824) at java.util.HashMap.putAllForCreate(HashMap.java:424) at java.util.HashMap.clone(HashMap.java:656) at mx4j.server.DefaultMBeanRepository.clone(DefaultMBeanRepository.java:56) at mx4j.server.MBeanServerImpl.findMBeansByPattern(MBeanServerImpl.java:1603) at mx4j.server.MBeanServerImpl.queryObjectNames(MBeanServerImpl.java:1568) at mx4j.server.MBeanServerImpl.queryMBeans(MBeanServerImpl.java:1512) at org.apache.coyote.tomcat5.MapperListener.init(MapperListener.java:126) at org.apache.coyote.tomcat5.CoyoteConnector.start(CoyoteConnector.java:1537) at org.apache.catalina.core.StandardService.start(StandardService.java:489) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2313) at org.apache.catalina.startup.Catalina.start(Catalina.java:556) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:284) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:422) 07.07.2004 15:01:07 org.apache.catalina.startup.Catalina start INFO: Server startup in 30844 ms When it happens all Contextes are not available and when I stop and restart Tomcat with the plugin in Eclipse after this it ALWAYS happens until I restart Eclipse!. Did somebody else encounter this problem? Greetings, Martin Grüneberg Virus checked by G DATA AntiVirusKit Version: AVK 14.0.1353 from 07.07.2004 Virus news: www.antiviruslab.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: some problem in tomcat 5.0.25
Hi Santos, Its 168 KB after compiling , this because its a single in which different JSP are included depending upon the condition . This works fine in 5.0.16 . Regards Archana SANTOS, DANIEL (SBCSI) [EMAIL PROTECTED] wrote: Forgive the simplicity of my question, but how large is the JSP file? -Original Message- From: archana gupta [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 06, 2004 9:39 AM To: [EMAIL PROTECTED] Subject: some problem in tomcat 5.0.25 Hi , I have deployed an application on Tomcat 5.0.16 which works fine , but same war file if i try to put it into 5.0.25 or 5.0.24 i get an error message Code is too large , unable to complie JSP page . Does anyone have an idea. Regards Archana Yahoo! India Careers: Over 50,000 jobsonline. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Yahoo! India Careers: Over 50,000 jobsonline.
RE: howto disable webdav extensions / methods?
You were right. I guess I didn't restart or something, but aftern undeploying the webdav servlet, propfind et al now return 501s... Thanks! -Patrick -Original Message- From: Mark Thomas [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 06, 2004 4:51 PM To: 'Tomcat Users List' Subject: RE: howto disable webdav extensions / methods? Patrick, The only code in tomcat that understands PROPFIND is the webdav servlet. I have justed tried using telnet to PROPFIND a resource that isn't mapped to the webdav servlet and I get the expected 501 response. What do you see if you try: telenet open localhost 8080 PROPFIND http://localhost:8080/index.jsp HTTP/1.1 Mark -Original Message- From: Patrick Glennon [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 06, 2004 5:19 PM To: 'Tomcat Users List' Subject: RE: howto disable webdav extensions / methods? I tried that, and even un-deployed the webdav app, but not only are the methods still available, they still work. PROPFIND http://url/directory will still work, for example. This leads me to believe that the webdav app has very little to do with webdav functionality, but I can't find where else it is set. -Patrick -Original Message- From: PATTUS Jean-Philippe [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 06, 2004 10:35 AM To: Tomcat Users List Subject: RE: howto disable webdav extensions / methods? did you try to stop the application webdav under Tomcat Manager. I think if you stop this application, all the webdav methods will be unavailable. -Message d'origine- De : Tim Funk [mailto:[EMAIL PROTECTED] Envoye : mardi 6 juillet 2004 17:04 A : Tomcat Users List Objet : Re: howto disable webdav extensions / methods? How do you mean disable? The default servlet has an option to allow/disallow DELETE, etc. Oterwise - you can define a security constraint in web.xml on these methods and have them no be accessible by any role. -Tim Patrick Glennon wrote: Anyone have any thoughts on this? Maybe I'll try posting on the developer list, for the life of me, I can't seem to find where to shut this off. _ From: Patrick Glennon Sent: Thursday, July 01, 2004 4:52 PM To: 'Tomcat Users List' Subject: howto disable webdav extensions / methods? How do I disable the webdav extensions? Basically, I don't want to allow any of the webdav methods ( PROPFIND, OPTIONS, COPY, DELETE, etc... ), but I cannot find where to disable or limit them. This is running tomcat direct, I know how to do it with Apache, I just don't know how to do it with tomcat. - 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: I've officially decided that JSTL is one of the worstthingsto ever happen
very constructive!!! please could you don't use this list for yours great ideas We understood that you don't want to use jstl, it's your problem. -Message d'origine- De : Ivan Jouikov [mailto:[EMAIL PROTECTED] Envoy : mercredi 7 juillet 2004 09:56 : 'Tomcat Users List' Objet : RE: I've officially decided that JSTL is one of the worstthingsto ever happen Subject: Re: I've officially decided that JSTL is one of the worstthingsto ever happen Oh, man, ... Ok let's settle this argument simple. Tonight, I'll ask my Christian Science friend to talk to Jesus, Why not ask Jesus yourself? Prayer is open to anyone, and is not limited to the night. Ehh not for me. I'm a heathen and I'm going straight to hell, so there's no point in even trying. Night is preferable because usually prayer goes hand in hand with virgin boy sacrifice, and there's less people around at night to hear the screams in the church basement. and ask him the following: Jesus, if EL really DOES decrease performance significantly, and should not be used at all, please give me absolutely NO sign. However, if EL is a great thing and should be used by everyone, please give me a sign. Are you sure you haven't been setting us up just so you could say that? I'll admit, the 2LA for Expression Language causes me pause, but, ... Well, just in case you're serious, I'll mention Matthew 12, ca. 39. Might also mention Gideon and his fleece. Huh? I'll report to you in the morning and let you know what was God's opinion on that. I have an idea what He would say: Use the tools you understand. Work hard. Be happy. But don't insult other people by insulting their tools. And don't tweak people just because they use strange 2LAs for their runtime expression languages. I might be wrong, of course. -- Joel [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.716 / Virus Database: 472 - Release Date: 05.07.2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.716 / Virus Database: 472 - Release Date: 05.07.2004 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]--- Interscan -- (on antivirus) email-body was scanned and no virus found - Traite Par Interscan -- (on antivirus)-- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 5.0 and JavaMail
I had JavaMail working in Tomcat 4, but in Tomcat 5, I am having trouble. I know it's something simple, perhaps you can see the problem. Mail.jar is in Tomcat 5.0\common\lib. I am getting this error: javax.naming.NamingException: Cannot create resource instance: Using this context in Tomcat 5.0\conf\Catalina\localhost\e_Denton.xml Context displayName=Portal Application debug=5 docBase=e-Denton path=/e-Denton reloadable=true useNaming=true Loader checkInterval=1 / Resource name=mail/Session auth=Container type=javax.mail.Session / ResourceParams name=mail/Session parameter namemail.smtp.host/name valuemars.webappcabaret.net/value /parameter /ResourceParams ... And this web.xml: !-- JavaMail Resource -- resource-ref description Resource reference to a factory for javax.mail.Session preconfigured to connect to the appropriate SMTP server. /description res-ref-namemail/Session/res-ref-name res-typejavax.mail.Session/res-type res-authContainer/res-auth /resource-ref Accessed like this: try { Context initContext = new InitialContext(); Context envContext = (Context) initContext.lookup(java:comp/env); Session session = (Session) envContext.lookup(mail/Session); } catch (javax.naming.NamingException ne) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: some problem in tomcat 5.0.25
On Wed, Jul 07, 2004 at 03:05:26PM +0100, archana gupta wrote: : Its 168 KB after compiling , this because its a single in which different JSP are included depending upon the condition . This works fine in 5.0.16 . Is this the size of the compiled .class file or the generated .java source file? How large is the JSP itself? Are you using runtime JSP includes or compile-time JSP includes? -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Files, paths and permissions
On Wed, Jul 07, 2004 at 09:40:21AM -0400, J?r?me Duval wrote: : Thanks for the pointer! Not running it as a service made it worked. Guess : I'll have to stick to that from now on. ... or you could find out what user owns/runs services and grant that user write-access to the folder. That would be a long-term solution. -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5.0.19 dies unexpectedly
It looks like someone tried to start the same tomcat again. Are you sure that no-one could have done this? -Original Message- From: Pete Stokes [mailto:[EMAIL PROTECTED] Sent: 07 July 2004 14:34 To: Tomcat Users List Subject: Tomcat 5.0.19 dies unexpectedly Hi, We've been using Tomcat 5.0.19 for a long time with no problems, yesterday, whilst the application was up for almost 3 hours, catalina.out suddenly reported that Address already in use:8080 and the server process died. On other server, we do have multiple Tomcats, and this normally happens if we make a mistake and put the same HTTP port on two different Tomcats, and it fails exactly like this, but in this case it failed without prompting after 3 hours. We did have a seperate Tomcat 5.0.25 on port 8081, also Apache 2.0.50 on port 80. Dell Poweredge 2650, RedHat ES3. Any ideas are welcome ! Please see the error below. Thanks, Pete. 9854- WARN MCGOVERNPA/VM9T0OL0 QLF PRD (?:?) - User : HETHERTONS attempted to log on, and failed. 9855- WARN ALLENG/VM9PV2NG QLF PRD (?:?) - Unhandled Exception thrown: class java.lang.NullPointerException 9856-Jul 6, 2004 11:53:01 AM org.apache.coyote.http11.Http11Protocol init 9857-SEVERE: Error initializing endpoint 9858:java.net.BindException: Address already in use:8080 9859- at org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.java:302) 9860- at org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:184) 9861- at org.apache.coyote.tomcat5.CoyoteConnector.initialize(CoyoteConnector.java:1424) 9862- at org.apache.catalina.core.StandardService.initialize(StandardService.java:633) 9863- at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:2415) 9864- at org.apache.catalina.startup.Catalina.load(Catalina.java:549) 9865- at org.apache.catalina.startup.Catalina.load(Catalina.java:570) 9866- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 9867- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 9868- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 9869- at java.lang.reflect.Method.invoke(Method.java:324) 9870- at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260) 9871- at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:397) 9872-Jul 6, 2004 11:53:01 AM org.apache.catalina.startup.Catalina load [EMAIL PROTECTED] wrote: - 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]
see Tomcat deployed applications throw JMX
I want to see deployed applications on Tomcat thwrow JMX. Can anybody help me? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk2 ./configure problem/query
Tim Wills wrote: Sorry to say but I have gone through the whole process 3 times now (including re-installing Redhat itself) and I still get error 503 Service Temporarily Unavailable. I reckon it must be a permissions problem but where? I have tried the following: chmod 666 jk2.socket I tried changing the path to the file workers2.properties in httpd.conf. Doing this changes the error message to 404, page not found so the file workers2.properties is being read. I have done as instructed on permissions but i wonder if Apache still doesn't have any rights to call the Tomcat engine. I have Tomcat running fine as a standalone. Any further ideas? What user did you build Apache as? What group? Also, what user and group is Apache running under? Regards, pascal chong - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: Trouble starting Tomcat4.1.18 on linux.
Hi, The error was Bind error: Address already in use. I solved the problem. The port setting in my server.xml file was set to 80 and not 8080. Apache server is already running on port 80. So I changed the port setting to 8080. Now i get the home page when i hit http://localhost:8080;. But l I have another new problem. I am not able to run the servlets. I think it is because the servlets are handled by apache server on port 80. How do i make tomcat to serve the servlets on port 8080. Can u help me out? Thanks, Kamaleshwaran Sivalingam On Wed, 07 Jul 2004 QM wrote : On Tue, Jul 06, 2004 at 07:21:56PM -, Kamaleshwaran Sivalingam wrote: : But then, I could not get the page when i gave http://localhost:8080; in : mozilla web : browser. Can u guys help me out?. There are innumerable reasons why Tomcat would fail to start. What error messages do you see in the logs? -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Best practice setup
Hello, 1. What is the percentage of pure html requests of your web app? 2. What is the database usage of your web app? 3. Is there any huge queries running during users sessions? 4. What is the hardware profile of your server? Solution; 1. If you have reasonable values for all of 4 items above you should use distributed system. One machine for database backend, one or two machines for http requests and connected to different tomcat instances in the same machine witk mod_JK2 (2 different tomcat instances for 2 web apps in the same machine.) 2. If the less performance is enough for your 4 web apps, then you do the same in one machine with 4 different Tomcat instances. You should divide your applications to different caontainers in any case. Notes; 1. You can balance database requests by using c-jdbc or something equivalent. 2. I recommend that you well tune your JVM because of GC issues. 3. And i strongly recommend that you get a good book about Tomcat before you go to solve configuration problems in suitable way. 4. You should install Jmeter in any case and test the results. Jemeter really helps. If you have some more deep questions just ask by using private mail. Take care, Gokhan Hitzbleck, Andreas (Z-EDV) wrote: Hi all, we currently work on a migration of our systems from Solaris to Linux and I develop the structure/setup of the new mashines. We have 4 different web applications on one of the mashines with at about 1400 users at all (300-400 concurrent). We have to assign one virtual IP per web application (legacy). I plan to setup one Apache with a virtual host per virtual IP. Apache should dispatch all requests via mod_jk to the appropriate tomcat. Is that a good setup? Or is Apache a bottleneck for the web applications in the backend? What value should the Apache parameter MaxChilds should have? Is 256 enough? An alternative setup could be one tomcat with all 4 web applications in it. But we fear to close-couple all web applications to one tomcat process? Does a web application with high load affect other web applications in the same tomcat process? Best regards --ah - 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: Tomcat 5.0.19 dies unexpectedly
Hi, Did you check the port setting in all the server.xml files?. probably the port serting of another tomcat was set to 8080 kamaleshwaran Sivalingam On Wed, 07 Jul 2004 Dale,Matt wrote : It looks like someone tried to start the same tomcat again. Are you sure that no-one could have done this? -Original Message- From: Pete Stokes [mailto:[EMAIL PROTECTED] Sent: 07 July 2004 14:34 To: Tomcat Users List Subject: Tomcat 5.0.19 dies unexpectedly Hi, We've been using Tomcat 5.0.19 for a long time with no problems, yesterday, whilst the application was up for almost 3 hours, catalina.out suddenly reported that Address already in use:8080 and the server process died. On other server, we do have multiple Tomcats, and this normally happens if we make a mistake and put the same HTTP port on two different Tomcats, and it fails exactly like this, but in this case it failed without prompting after 3 hours. We did have a seperate Tomcat 5.0.25 on port 8081, also Apache 2.0.50 on port 80. Dell Poweredge 2650, RedHat ES3. Any ideas are welcome ! Please see the error below. Thanks, Pete. 9854- WARN MCGOVERNPA/VM9T0OL0 QLF PRD (?:?) - User : HETHERTONS attempted to log on, and failed. 9855- WARN ALLENG/VM9PV2NG QLF PRD (?:?) - Unhandled Exception thrown: class java.lang.NullPointerException 9856-Jul 6, 2004 11:53:01 AM org.apache.coyote.http11.Http11Protocol init 9857-SEVERE: Error initializing endpoint 9858:java.net.BindException: Address already in use:8080 9859- at org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.jav a:302) 9860- at org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:184) 9861- at org.apache.coyote.tomcat5.CoyoteConnector.initialize(CoyoteConnector.java: 1424) 9862- at org.apache.catalina.core.StandardService.initialize(StandardService.java:633) 9863- at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:2415) 9864- at org.apache.catalina.startup.Catalina.load(Catalina.java:549) 9865- at org.apache.catalina.startup.Catalina.load(Catalina.java:570) 9866- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 9867- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java :39) 9868- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:25) 9869- at java.lang.reflect.Method.invoke(Method.java:324) 9870- at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260) 9871- at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:397) 9872-Jul 6, 2004 11:53:01 AM org.apache.catalina.startup.Catalina load [EMAIL PROTECTED] wrote: - 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: Files, paths and permissions
Thanks for the pointer! Not running it as a service made it worked. Guess I'll have to stick to that from now on. -Original Message- From: QM [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 06, 2004 5:21 PM To: Tomcat Users List Subject: Re: Files, paths and permissions On Tue, Jul 06, 2004 at 02:11:00PM -0400, J?r?me Duval wrote: : Yet these lines of code in my servlet: : File target = new File(Msi\\nouveau dossier\\,Commande.web); : if(!target.exists()) { : System.out.println(The file doesn't exist!); : } : FileWriter fileOutput = new FileWriter(target,true); : : produce: The file doesn't exist! Does the owner of the Tomcat process have write access to that folder? If you're running Tomcat as a service, I understand it has different perms than if you fire it up directly as the logged-in user. -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 5.0.19 dies unexpectedly
Hi, We've been using Tomcat 5.0.19 for a long time with no problems, yesterday, whilst the application was up for almost 3 hours, catalina.out suddenly reported that Address already in use:8080 and the server process died. On other server, we do have multiple Tomcats, and this normally happens if we make a mistake and put the same HTTP port on two different Tomcats, and it fails exactly like this, but in this case it failed without prompting after 3 hours. We did have a seperate Tomcat 5.0.25 on port 8081, also Apache 2.0.50 on port 80. Dell Poweredge 2650, RedHat ES3. Any ideas are welcome ! Please see the error below. Thanks, Pete. 9854- WARN MCGOVERNPA/VM9T0OL0 QLF PRD (?:?) - User : HETHERTONS attempted to log on, and failed. 9855- WARN ALLENG/VM9PV2NG QLF PRD (?:?) - Unhandled Exception thrown: class java.lang.NullPointerException 9856-Jul 6, 2004 11:53:01 AM org.apache.coyote.http11.Http11Protocol init 9857-SEVERE: Error initializing endpoint 9858:java.net.BindException: Address already in use:8080 9859- at org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.java:302) 9860- at org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:184) 9861- at org.apache.coyote.tomcat5.CoyoteConnector.initialize(CoyoteConnector.java:1424) 9862- at org.apache.catalina.core.StandardService.initialize(StandardService.java:633) 9863- at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:2415) 9864- at org.apache.catalina.startup.Catalina.load(Catalina.java:549) 9865- at org.apache.catalina.startup.Catalina.load(Catalina.java:570) 9866- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 9867- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 9868- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 9869- at java.lang.reflect.Method.invoke(Method.java:324) 9870- at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260) 9871- at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:397) 9872-Jul 6, 2004 11:53:01 AM org.apache.catalina.startup.Catalina load [EMAIL PROTECTED] wrote: - 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]
Tomcat5 - LDAP question.
Hi All, Is there a way of setup a user account in Active Directory that can query other user info and does not have permission to update that information. Background: I am trying to setup LDAP authentication on Tomcat5 connecting to Active Directory. When I bind to active directory as common user account I can query my own account and get the kmemberOf field for role information. I can query and get memberOf field for Administrator accounts. I can NOT get memberOf field for other user accounts that are not administrators ( just regular users ). When I bind to active directory as an admin account I can query all accounts and get the memberOf for role information. But the catch is admin account also has permissions to update this information. I need one of the following: 1. An account on active directry that can query all users and get memberOf field but cannot update. 2. An admin account where the password does not have to be setup in clear text in Server.xml. Thanks Kal CONFIDENTIALITY NOTE: All e-mail sent to or from this address will be received by the Waterfield Group corporate e-mail system and is subject to archival, monitoring, and/or review by someone other than the recipient or the sender. This e-mail and any of its attachments may contain proprietary information, which is privileged and confidential. This e-mail is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient of this e-mail, you are hereby notified that any dissemination, distribution, copying, or action taken in relation to the contents of and attachments to this e-mail is strictly prohibited and may be unlawful. If you have received this e-mail in error, please notify the sender immediately and permanently delete the original and any copy of this e-mail and any printout. Thank you.
Re: I've officially decided that JSTL is one of the worstthingsto ever happen
The problem with that approach, Ivan, is that your Christian Science friend may not spot the sign when presented with it. Some people are like that. They might not see a sign even if it consisted of getting slapped around the face with a wet fish (or two wet fishes and five loaves, for that matter) -- or having it patiently described to them in a multitude of emails from sincere mailing list subscribers. So you've been using JSTL in earnest; and for whatever reason things got confusing; you needed to make a radical decision to calm the confusion; so you had your epiphany and became a Born Again Scripleteer; but there's no need to get obnoxious, thumping your new Bible, and quoting The Scriptlets according to Saint Ivan, forcing them down everyone's throats. Instead, just go about your business, productively, changing the world from your new viewpoint and setting a good example. Peace and religious tolerance, Frank - Original Message - From: Ivan Jouikov [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Wednesday, July 07, 2004 3:28 AM Subject: RE: I've officially decided that JSTL is one of the worstthingsto ever happen Ok let's settle this argument simple. Tonight, I'll ask my Christian Science friend to talk to Jesus, and ask him the following: Jesus, if EL really DOES decrease performance significantly, and should not be used at all, please give me absolutely NO sign. However, if EL is a great thing and should be used by everyone, please give me a sign. I'll report to you in the morning and let you know what was God's opinion on that. -Original Message- From: SANTOS, DANIEL (SBCSI) [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 06, 2004 4:02 PM To: Tomcat Users List Subject: RE: I've officially decided that JSTL is one of the worstthingsto ever happen If this is the case then I ask you why Java has been the number one programming language for 4 years now? Source of this statistic? I assumed that this was fairly common knowledge. I remember when it surpassed C++ in Febuary of 2000 (I thought at the time in development hours). Having been a Java programmer since 1997, this was a pretty big deal for me. I even remembered the month/year it happened (which made it easire for me to find this report). So here is the original report, a Bloor Research study from Febuary of 2000. It even has a cute little graph that plots the various languages-- http://www.bloor- research.com/research_library.php?pid=282 Now that I look back at it I see that this is when the *demand* for java skills surpassed that of C++ skills. It looks like it was just March of last year (http://www.sun.com/aboutsun/media/presskits/edge2003/factsheet.pdf) that that Java actually surpassed C++ in development hours. This was of course the eventual outcome of it's demand surpassing all other skills. The data from this Sun press release is from the Gartner Group BTW. Java is King, there are really no ifs, ands or butts about it. As to your performance issues, I don't have them so I can only sugest that you can examine your environement, your compiler options (are you using hotspot?) and your getters. All of my bottlenecks are in my DB calls. I have done performance analysis and never came up in my EL. As I sugested earlier, maybe you can run hprof and see where the bottleneck really is? Also, I considered myself a fairly hardcode C++ developer (having done it from '95 to 2002). If I am ever in a situation where my memory usage is critical, I'm almost certainly in C or C++. If performance is important, I consider C or C++. But IPC, threading, and networking is so phenominally better on Java not to mention the benefits of garbage collection and all of it's other features that I am hard pressed to leave it or go JNI. I did need JNI recently for some file system stuff that I wanted tweaked (traversing file systems with 100s of thousands of files). Daniel As was recognized long ago, performance is not everything. And in fact, means little when you can't get your product out the door because you are still trying to chase down memory leaks, buffer overruns and corrupted pointers. When performance dependes on whether you use %=hello% or ${hello}, I'll stick with the first one, considering that it boosts performance up by like 5 times. As somebody else said, C++ programmers will understand this. Daniel -Original Message- From: Eric VERGNAUD [mailto:[EMAIL PROTECTED] Sent: Sunday, July 04, 2004 11:33 AM To: Tomcat Users List Subject: Re: I've officially decided that JSTL is one of the worstthingsto ever happen le 4/07/04 14:27, SH Solutions [EMAIL PROTECTED] a crit : Right now, I would say that java applications (if well written) are at least half as fast as c applications (also well written). Which means that when your java app is in
Re: I've officially decided that JSTL is one of the worstthingsto ever happen
Hello I agree that I find taglibs impossible to understand. Tag libraries are not actually that difficult, and offer many advantages. I just thought I would mention that, for the record :-) Harry Mantheakis London, UK - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Upgrading to Tomcat 5.0
I have another problem. webapps contains both an e-Denton.war file and an already expanded .war file (e-Denton directory). My Context (e-Denton.xml) is in Tomcat 5.0\conf\Catalina\localhost. Any idea why I would be getting this message? StandardHost[localhost]: Error deploying application at context path null java.lang.IllegalStateException: Context path /e-Denton is already in use at org.apache.commons.digester.Digester.createSAXException(Digester.java:2540) at org.apache.commons.digester.Digester.createSAXException(Digester.java:2566) at org.apache.commons.digester.Digester.endElement(Digester.java:1061) at org.apache.catalina.util.CatalinaDigester.endElement(CatalinaDigester.java:7 6) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc her.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.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:1567) at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.j ava:488) at org.apache.catalina.core.StandardHost.install(StandardHost.java:863) at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:482 ) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:427) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:964) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:349) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor t.java:119) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091) at org.apache.catalina.core.StandardHost.start(StandardHost.java:789) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478) at org.apache.catalina.core.StandardService.start(StandardService.java:476) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2298) at org.apache.catalina.startup.Catalina.start(Catalina.java:556) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:284) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:422) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Fwd: debug connection pool
Hi, found it, sorry ! I had been searching in all the wrong directions, but the obvious one grtz Hans Date: Wed, 07 Jul 2004 09:59:18 +0200 To: [EMAIL PROTECTED] From: Hans Wichman [EMAIL PROTECTED] Subject: debug connection pool Hi, does anyone know the correct way to debug a database connection pool, eg number of connections left in the pool etc? Or a pointer in the right direction? any help would be appreciated! thanks! Hans - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5.0 and JavaMail
I've found that you also need activation.jar for JavaMail, do you have this in common/lib too? Ta Matt -Original Message- From: e-Denton Subscriber [mailto:[EMAIL PROTECTED] Sent: 07 July 2004 15:49 To: Tomcat Users List Subject: Tomcat 5.0 and JavaMail I had JavaMail working in Tomcat 4, but in Tomcat 5, I am having trouble. I know it's something simple, perhaps you can see the problem. Mail.jar is in Tomcat 5.0\common\lib. I am getting this error: javax.naming.NamingException: Cannot create resource instance: Using this context in Tomcat 5.0\conf\Catalina\localhost\e_Denton.xml Context displayName=Portal Application debug=5 docBase=e-Denton path=/e-Denton reloadable=true useNaming=true Loader checkInterval=1 / Resource name=mail/Session auth=Container type=javax.mail.Session / ResourceParams name=mail/Session parameter namemail.smtp.host/name valuemars.webappcabaret.net/value /parameter /ResourceParams ... And this web.xml: !-- JavaMail Resource -- resource-ref description Resource reference to a factory for javax.mail.Session preconfigured to connect to the appropriate SMTP server. /description res-ref-namemail/Session/res-ref-name res-typejavax.mail.Session/res-type res-authContainer/res-auth /resource-ref Accessed like this: try { Context initContext = new InitialContext(); Context envContext = (Context) initContext.lookup(java:comp/env); Session session = (Session) envContext.lookup(mail/Session); } catch (javax.naming.NamingException ne) - 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: compressableMimeTypes (extra info)
I forgot to mention I'm running Tomcat 5.0.25 on Debian Linux with Sun JDK 1.4.2. Ronald. On Tue Jul 06 15:39:27 CEST 2004 Ronald Klop [EMAIL PROTECTED] wrote: Hello, I have put this in my server.xml. compression=on compressableMimeTypes=text/html,text/xml,text/plain,text/javascript,text/css But it does not compress text/javascript and text/css. (It does compress text/html.) Is this setting ignored? Not implemented yet? I don't have the source at hand, so I can't check it myself. Greetings, Ronald.
debug connection pool
Hi, does anyone know the correct way to debug a database connection pool, eg number of connections left in the pool etc? Or a pointer in the right direction? any help would be appreciated! thanks! Hans - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Files, paths and permissions
The thing is that it doesn't seem to want to run as a different user than the one it is configured to run as (LocalSystem) and I have no idea what user this represents (I am in WinXP if someone wants to shine some light). I have these accounts set up: Administrator ASPNET Default Guest HelpAssistant root-- Not the unix/linux root user account! It's to allow accounts called root to use the printer. SUPPORT_388945a0 Tomcat -- The user I would like to use to start Tomcat. -Original Message- From: QM [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 07, 2004 11:11 AM To: Tomcat Users List Subject: Re: Files, paths and permissions On Wed, Jul 07, 2004 at 09:40:21AM -0400, J?r?me Duval wrote: : Thanks for the pointer! Not running it as a service made it worked. Guess : I'll have to stick to that from now on. ... or you could find out what user owns/runs services and grant that user write-access to the folder. That would be a long-term solution. -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat5 - LDAP question.
This might be better asked in a Microsoft forum. We use a similar method of authentication but am unsure of the permissions of the searching user. Ta Matt -Original Message- From: Kal Govindu [mailto:[EMAIL PROTECTED] Sent: 07 July 2004 17:03 To: Tomcat Users List (E-mail) Subject: Tomcat5 - LDAP question. Hi All, Is there a way of setup a user account in Active Directory that can query other user info and does not have permission to update that information. Background: I am trying to setup LDAP authentication on Tomcat5 connecting to Active Directory. When I bind to active directory as common user account I can query my own account and get the kmemberOf field for role information. I can query and get memberOf field for Administrator accounts. I can NOT get memberOf field for other user accounts that are not administrators ( just regular users ). When I bind to active directory as an admin account I can query all accounts and get the memberOf for role information. But the catch is admin account also has permissions to update this information. I need one of the following: 1. An account on active directry that can query all users and get memberOf field but cannot update. 2. An admin account where the password does not have to be setup in clear text in Server.xml. Thanks Kal CONFIDENTIALITY NOTE: All e-mail sent to or from this address will be received by the Waterfield Group corporate e-mail system and is subject to archival, monitoring, and/or review by someone other than the recipient or the sender. This e-mail and any of its attachments may contain proprietary information, which is privileged and confidential. This e-mail is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient of this e-mail, you are hereby notified that any dissemination, distribution, copying, or action taken in relation to the contents of and attachments to this e-mail is strictly prohibited and may be unlawful. If you have received this e-mail in error, please notify the sender immediately and permanently delete the original and any copy of this e-mail and any printout. Thank you. 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: some problem in tomcat 5.0.25
I remember back in tomcat4 several people discovered that long JSP pages would fail because the file exceeded the limit in javac, or using include directive resulted in a servlet with deeply nested try/catch blocks. what is the exact error you are getting? peter On Wed, 7 Jul 2004 10:09:47 -0500, QM [EMAIL PROTECTED] wrote: On Wed, Jul 07, 2004 at 03:05:26PM +0100, archana gupta wrote: : Its 168 KB after compiling , this because its a single in which different JSP are included depending upon the condition . This works fine in 5.0.16 . Is this the size of the compiled .class file or the generated .java source file? How large is the JSP itself? Are you using runtime JSP includes or compile-time JSP includes? -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
OT? Netbeans v Eclipse v Visual Age for Java
Hi Saw the references to Eclipes, and then Netbeans. I know that this may be a bit off topic, please forgive me... We use Visual Age for Java (VAJ) at work, with Websphere app server and Domino HTTP server (don't ask why;-). I'm planning on using Tomcat/Eclipse at home as an exercise for the student. I'd like the IDE to be similar to VAJ, so my experience is more useful at work. What about Netbeans, is it similar enough to VAJ or Eclipse that what I learn from it will be applicable? As far as programming in Java is concerned, any number of things could be used. I'd like to have project structure, HTML/JSP/Java file storage, packaging, deploying, etc. to be fairly similar. As well as basic debugging techniques. Thank you for your patience Cornell Sternbergh -Original Message- From: Kunthar [mailto:[EMAIL PROTECTED] Sent: Monday, July 05, 2004 05:27 To: Tomcat Users List Subject: Re: Sysdeo, Eclipse, Tomcat A better way to test JSP's at runtime is using Netbeans. To do this, you should have total control over your server as root/admin. 1. Install Netbeans to server. www.netbeans.org 2. Installation of Tomcat + Ant (necessary jars + Apache httpd etc.) should be ready. 3. When you run Netbeans from your Linux client woila, you got Netbeans working on your local comp by strong Xserver abilities. If you sadly use Windoze try VNC Server-Client and do not call me :=) 4. Since Netbeans has its own HTTP Monitor you can see all passing parameters to Tomcat. This is quite good. 5. You can add break points, evaluate values and see whats up really at runtime as you do in other IDEs. 6. Eclipse is good but as far as i compare Netbeans, Eclipse and IntelliJ, Netbeans hits. Final Note: 90% percent of the compilation errors are arising from the ignorance of programmer. Sometimes it is better to spend time for reading then spend time for trying to find a good debugger. I was using holly Homesite before i totally moved to Linux several days ago :=) Take care all, Gokhan Harry Mantheakis wrote: Hello Should I be able to set a breakpoint normally in a servlet? Yes, as long as you have started Tomcat using the Sysdeo plugin (from within Eclipse). How do I set a breakpoint in JSP? AFAIK that is not possible, at least not with the Sysdeo plugin. Something like the 'MyEclipse' plugin might be able to help you there, though that is a commercial plugin which you can test for a month or so. Where is my source (and binaries) supposed to be? Source can be anywhere you like - as long as Eclipse knows where it is, and can compile your project, the (servlet and object) debugging will work. Binaries go in WEB-INF/classes. It is safer to *package* your classes, BTW. I cannot help with the other two miscellaneous questions, though I do not think you need be concerned with the Tomcat 'base' attribute if you have a simple setup, and again, to begin with at least, I do not think you need be concerned with JVM settings. (There are several JVM settings that you have to consider on a production server, but that is another story.) My solution to debugging JSPs is not to put any code in them at all (!) I do everything with custom tags, which of course, are just objects that can debugged in the usual way. Good luck! Harry Mantheakis London, UK I am trying to figure out how to debug servlets and JSPs. I am running Windows ME, Tomcat 5.0, Eclipse 2.1.3, and Sysdeo Tomcat Plugin 3.0.0.alpha1. So, how should Sysdeo be set up? Should I be able to set a breakpoint normally in a servlet? How do I set a breakpoint in JSP? Where is my soruce (and binaries) supposed to be? Miscellaneous questions: 1. What is Tomcat base? (Preferences/Tomcat) 2. Any JVM settings needed? (Preferences/Tomcat/JVM settings) Thanks for your help. I have already tried to find a tutorial on the Web, but nothing has helped. - 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: Fwd: debug connection pool
So share your finding :) Hans Wichman wrote: Hi, found it, sorry ! I had been searching in all the wrong directions, but the obvious one grtz Hans Date: Wed, 07 Jul 2004 09:59:18 +0200 To: [EMAIL PROTECTED] From: Hans Wichman [EMAIL PROTECTED] Subject: debug connection pool Hi, does anyone know the correct way to debug a database connection pool, eg number of connections left in the pool etc? Or a pointer in the right direction? any help would be appreciated! thanks! Hans - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] a -- Emerson Cargnin Analista de Sistemas - Gerente Regional - Tubarão Setor de Desenvolvimento de Sistemas - TRE-SC tel : (048) - 251-3700 - Ramal 3181 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Apache Tomcat JK connector
I hope that people on this list can help me. I have been trying to install Apache and Tomcat on a Solaris 9 machine. I have had success up to the point of apache and tomcat working. I am working on getting the JK connector to work. I was using the documentation provided at: http://johnturner.com/howto/apache2-tomcat4112-sol8-howto.html as a guide. Unfortunately I have run into a problem after running the ./configure --with-apxs=/some/path/to/apache2/bin/apxs This configure seemed to work, but when I tried to run the make i got an error stating: *** Error code 1 make: Fatal error: Command failed for target 'mod_jk.so' Current working directory /usr/local/src/jakarta-tomcat-connectors-jk-1.2.5- src/jk/native/apache-2.0 *** Error code 1 make: Fatal error: Command failed for target 'all-recursive' I am trying to work with the 1.2.5 JK connector apache 2.0.49 and Tomcat 5.0.27 I appreciate any help or suggestions that you can provide. Adam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: I've officially decided that JSTL is one of the worstthingsto ever happen
I have used Java for both client, server, GUI apps, and clients haven't complaint about speed or look and feel. For the tag libs argument that web designers will have easier time with it than java, good luck! They have to learn them anyway to get things to work, and it's no different. Saying tag libs separate model and view is half true. It depends. It's probably good for tools to generate view using tag libs. For programmer, separating or not is their choice. Having a mixed languages in source code is hard to read. I think that people should use Java as much as possible, anywhere (view, model, what not). However, in the view area, you can also use tags if that speeds development time, or simplify thing, or if java is not possible to do so. In all cases, do not put model code in the view. In the view, if you use if or if()..., they're both logics and no architural difference here. Harry Mantheakis wrote: Hello I agree that I find taglibs impossible to understand. Tag libraries are not actually that difficult, and offer many advantages. I just thought I would mention that, for the record :-) Harry Mantheakis London, UK - 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: Integrating Tomcat and IIS
Many, many people have had problems with this and a search of the archives may help. I do know that I read your lengthy message but didn't really see anything that was helpful in terms of pointing out the error. Having gone through this a number of times myself I also understand your frustration. But at the end I didn't learn any particular clues that would be useful to others. I do believe though that you didn't mention whether you had the green arrow in the isapi filter on IIS. If so that tells us something. The one thing that has bitten me many times is setting the isapi filter in more than one place, e.g. the default web app AND under Master Server Properties. I've read people suggest both on this list. For me I know that the default web app has worked but that if I had both it failed. Other than that I'd suggest that you let us know whether or not you get the green arrow, and if so then what errors you're seeing after that. Good luck. Ken -Original Message- From: Tom Burke [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 07, 2004 9:42 AM To: Tomcat Users List Subject: Integrating Tomcat and IIS I sent a long email to the list on Tuesday asking for help with problems I'm having intergating Tomcat with IIS. Sadly, there were no replies. My email was rather long - lots of examples, config file extracts, etc - so maybe recipients found it hard to digest. So I'll recast it as a shorter request: is there anyone on the list who has succeeded in integrating Tomcat (4 or 5) with IIS (5 or 6)? If so, are there any tips you can pass on? Any problems you experienced and overcame? And if anyone else has had problems and *not* been able to overcome them, what were they? Incidentally, I was following this set of instructions: https://www.rit.edu/~ack5504/tomcat-iis6-howto/narantugs-sengee-guide.html Tom Burke - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: OT? Netbeans v Eclipse v Visual Age for Java
I have not used NetBean but my colleagues do. It is very different from Eclipse. Personally, I prefer Eclipse over NetBean. - Original Message - From: Sternbergh, Cornell [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, July 07, 2004 11:49 AM Subject: OT? Netbeans v Eclipse v Visual Age for Java Hi Saw the references to Eclipes, and then Netbeans. I know that this may be a bit off topic, please forgive me... We use Visual Age for Java (VAJ) at work, with Websphere app server and Domino HTTP server (don't ask why;-). I'm planning on using Tomcat/Eclipse at home as an exercise for the student. I'd like the IDE to be similar to VAJ, so my experience is more useful at work. What about Netbeans, is it similar enough to VAJ or Eclipse that what I learn from it will be applicable? As far as programming in Java is concerned, any number of things could be used. I'd like to have project structure, HTML/JSP/Java file storage, packaging, deploying, etc. to be fairly similar. As well as basic debugging techniques. Thank you for your patience Cornell Sternbergh -Original Message- From: Kunthar [mailto:[EMAIL PROTECTED] Sent: Monday, July 05, 2004 05:27 To: Tomcat Users List Subject: Re: Sysdeo, Eclipse, Tomcat A better way to test JSP's at runtime is using Netbeans. To do this, you should have total control over your server as root/admin. 1. Install Netbeans to server. www.netbeans.org 2. Installation of Tomcat + Ant (necessary jars + Apache httpd etc.) should be ready. 3. When you run Netbeans from your Linux client woila, you got Netbeans working on your local comp by strong Xserver abilities. If you sadly use Windoze try VNC Server-Client and do not call me :=) 4. Since Netbeans has its own HTTP Monitor you can see all passing parameters to Tomcat. This is quite good. 5. You can add break points, evaluate values and see whats up really at runtime as you do in other IDEs. 6. Eclipse is good but as far as i compare Netbeans, Eclipse and IntelliJ, Netbeans hits. Final Note: 90% percent of the compilation errors are arising from the ignorance of programmer. Sometimes it is better to spend time for reading then spend time for trying to find a good debugger. I was using holly Homesite before i totally moved to Linux several days ago :=) Take care all, Gokhan Harry Mantheakis wrote: Hello Should I be able to set a breakpoint normally in a servlet? Yes, as long as you have started Tomcat using the Sysdeo plugin (from within Eclipse). How do I set a breakpoint in JSP? AFAIK that is not possible, at least not with the Sysdeo plugin. Something like the 'MyEclipse' plugin might be able to help you there, though that is a commercial plugin which you can test for a month or so. Where is my source (and binaries) supposed to be? Source can be anywhere you like - as long as Eclipse knows where it is, and can compile your project, the (servlet and object) debugging will work. Binaries go in WEB-INF/classes. It is safer to *package* your classes, BTW. I cannot help with the other two miscellaneous questions, though I do not think you need be concerned with the Tomcat 'base' attribute if you have a simple setup, and again, to begin with at least, I do not think you need be concerned with JVM settings. (There are several JVM settings that you have to consider on a production server, but that is another story.) My solution to debugging JSPs is not to put any code in them at all (!) I do everything with custom tags, which of course, are just objects that can debugged in the usual way. Good luck! Harry Mantheakis London, UK I am trying to figure out how to debug servlets and JSPs. I am running Windows ME, Tomcat 5.0, Eclipse 2.1.3, and Sysdeo Tomcat Plugin 3.0.0.alpha1. So, how should Sysdeo be set up? Should I be able to set a breakpoint normally in a servlet? How do I set a breakpoint in JSP? Where is my soruce (and binaries) supposed to be? Miscellaneous questions: 1. What is Tomcat base? (Preferences/Tomcat) 2. Any JVM settings needed? (Preferences/Tomcat/JVM settings) Thanks for your help. I have already tried to find a tutorial on the Web, but nothing has helped. - 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
Tomcat 5 integration question
Hi, I'm planning on doing some integration work with Tomcat 5, in which I would like to perform actions like start (both server and application), stop, deploy, remove programmatically. What is the best approach to achieve this? I know I can send a request to manager application to deploy an application, but how to parse the result coming back? It doesn't seem very straightforward (parsing a page), let alone reliability. Any thoughts? Thanks, John The contents of this e-mail are intended for the named addressee only. It contains information that may be confidential. Unless you are the named addressee or an authorized designee, you may not copy or use it, or disclose it to anyone else. If you received it in error please notify us immediately and then destroy it. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Using javax.servlet.Filter to alter HTTP headers (was RE: How can the Server header in an HTTP response be customised?)
Is it possible to programmatically change the Server header? [...] Surely there is a way to alter the Server header of an HTTP response, if only for security reasons. I can't be the only person who wishes to do this. I would appreciate any suggestions as to how this can be accomplished. Is there another Tomcat mailing list where I can get my question answered, preferably one where Tomcat developers lurk? Nobody here seems to be able to provide answers. thank you, Ian. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using javax.servlet.Filter to alter HTTP headers (was RE: How can the Server header in an HTTP response be customised?)
The Server header is hardcoded into the Connectors. You can't remove/change it without a PATCH/recompile to org.apache.coyote.http11.Constants -Tim Ian Stevens wrote: Is it possible to programmatically change the Server header? [...] Surely there is a way to alter the Server header of an HTTP response, if only for security reasons. I can't be the only person who wishes to do this. I would appreciate any suggestions as to how this can be accomplished. Is there another Tomcat mailing list where I can get my question answered, preferably one where Tomcat developers lurk? Nobody here seems to be able to provide answers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Upgrading to Tomcat 5.0--Fixed
Nevermind--I figured this one out. I had saved a copy of my old web.xml, which Tomcat was also trying to load. - Original Message - From: e-Denton Subscriber [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, July 07, 2004 11:06 AM Subject: Upgrading to Tomcat 5.0 I have another problem. webapps contains both an e-Denton.war file and an already expanded .war file (e-Denton directory). My Context (e-Denton.xml) is in Tomcat 5.0\conf\Catalina\localhost. Any idea why I would be getting this message? StandardHost[localhost]: Error deploying application at context path null java.lang.IllegalStateException: Context path /e-Denton is already in use at org.apache.commons.digester.Digester.createSAXException(Digester.java:2540) at org.apache.commons.digester.Digester.createSAXException(Digester.java:2566) at org.apache.commons.digester.Digester.endElement(Digester.java:1061) at org.apache.catalina.util.CatalinaDigester.endElement(CatalinaDigester.java:7 6) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc her.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.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:1567) at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.j ava:488) at org.apache.catalina.core.StandardHost.install(StandardHost.java:863) at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:482 ) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:427) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:964) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:349) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor t.java:119) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091) at org.apache.catalina.core.StandardHost.start(StandardHost.java:789) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478) at org.apache.catalina.core.StandardService.start(StandardService.java:476) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2298) at org.apache.catalina.startup.Catalina.start(Catalina.java:556) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:284) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:422) - 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: Using javax.servlet.Filter to alter HTTP headers (was RE: How can the Server header in an HTTP response be customised?)
The Server header is hardcoded into the Connectors. You can't remove/change it without a PATCH/recompile to org.apache.coyote.http11.Constants That's certainly what I saw when looking at the source. There's no way alter it using a javax.servlet.Filter and a javax.servlet.HttpServletResponseWrapper? I tried (see previous messages on this topic) but got nowhere fast. Are there plans to allow the Server header to be altered in the near future? It is certainly a feature I would like to see, both for reasons of security and for limiting the size of the HTTP header for small devices on a rate plan. Ian. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using javax.servlet.Filter to alter HTTP headers (was RE: How can the Server header in an HTTP response be customised?)
Unless there is a PATCH in bugzilla, then no. -Tim Ian Stevens wrote: The Server header is hardcoded into the Connectors. You can't remove/change it without a PATCH/recompile to org.apache.coyote.http11.Constants That's certainly what I saw when looking at the source. There's no way alter it using a javax.servlet.Filter and a javax.servlet.HttpServletResponseWrapper? I tried (see previous messages on this topic) but got nowhere fast. Are there plans to allow the Server header to be altered in the near future? It is certainly a feature I would like to see, both for reasons of security and for limiting the size of the HTTP header for small devices on a rate plan. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Using javax.servlet.Filter to alter HTTP headers (was RE: How can the Server header in an HTTP response be customised?)
Unless there is a PATCH in bugzilla, then no. OK. Thanks for your help, Tim. Ian. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
UnsatisfiedLinkError - JNI
Hi! I get an UnsatisfiedLinkError when trying to System.loadLibrary(foo) from a class instantiated within a Servlet. The library libFoo.jnilib is in a folder within java.library.path and the class loading it is inside a JAR in $CATALINA_HOME/shared/lib. Beside the JNI library is a native library libBar.dylib. I'm running Tomcat 5.0.25 on Mac OS X 10.3.4 Here's the exception: UnsatisfiedLinkError: /Users/henryson/Library/Java/Extensions/libFoo.jnilib: java.lang.UnsatisfiedLinkError: /Users/henryson/Library/Java/Extensions/libFoo.jnilib: at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1560) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1485) at java.lang.Runtime.loadLibrary0(Runtime.java:788) at java.lang.System.loadLibrary(System.java:834) I have tried loading the library from a small Java application outside the Tomcat server and it works fine when all classes/libraries are within the same folder. Of course I have searched for a solution on Google and I have also search old entries on this list (in an archive on a website) but there just don't seem to be a solution available out there... =( Anyone that have a clue? I would be VERY thankful =) Regards, Josef Henryson
Re: some problem in tomcat 5.0.25
Hi , Its the size of the compiled .class file and i'm using runtime JSP includes and Java Bean Regards Archana Gupta QM [EMAIL PROTECTED] wrote: On Wed, Jul 07, 2004 at 03:05:26PM +0100, archana gupta wrote: : Its 168 KB after compiling , this because its a single in which different JSP are included depending upon the condition . This works fine in 5.0.16 . Is this the size of the compiled .class file or the generated .java source file? How large is the JSP itself? Are you using runtime JSP includes or compile-time JSP includes? -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Yahoo! India Careers: Over 50,000 jobsonline.
Re: UnsatisfiedLinkError - JNI
Josef Henryson wrote: Hi! I get an UnsatisfiedLinkError when trying to System.loadLibrary(foo) from a class instantiated within a Servlet. The library libFoo.jnilib is in a folder within java.library.path and the class loading it is inside a JAR in $CATALINA_HOME/shared/lib. Beside the JNI library is a native library libBar.dylib. I'm running Tomcat 5.0.25 on Mac OS X 10.3.4 Here's the exception: UnsatisfiedLinkError: /Users/henryson/Library/Java/Extensions/libFoo.jnilib: java.lang.UnsatisfiedLinkError: /Users/henryson/Library/Java/Extensions/libFoo.jnilib: at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1560) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1485) at java.lang.Runtime.loadLibrary0(Runtime.java:788) at java.lang.System.loadLibrary(System.java:834) I have tried loading the library from a small Java application outside the Tomcat server and it works fine when all classes/libraries are within the same folder. Of course I have searched for a solution on Google and I have also search old entries on this list (in an archive on a website) but there just don't seem to be a solution available out there... =( Anyone that have a clue? I would be VERY thankful =) Regards, Josef Henryson Well given the fact that the JNI library works fine when in a stand alone environment, it sounds like a load path problem. I'm not sure what OS X uses, but on unix it is the LD_LIBRARY_PATH, or on Windows the PATH. Try and get the code to output the environment before it does the load library call and make sure that the locations for all the dependant libraries are there. Hope that helps, Tim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat behind an SSL proxy
I'm running tomcat standalone ( no apache ) behind an SSL proxy, and my struts apps issue redirects that come back to http://www.something http://www.something/ rather than https://www.something https://www.something/ Something in response.redirect keeps building a URL with http:// and I can't figure it out. I have played with proxyName and proxyPort, but to no avail: If I put https://www.something https://www.something/ in proxyName it chokes If I put proxyPort=443 then it redirects to http://www.something:443 http://www.something:443/ instead of going to https://www.something https://www.something/ I have also played around with the scheme and secure settings in the connector, but am still stalled. Any help out there for me? Thanks in advance, -P
RE: UnsatisfiedLinkError - JNI
no email please -Mensaje original- De: Tim Penhey [mailto:[EMAIL PROTECTED] Enviado el: Miércoles 7 de Julio de 2004 14:33 Para: Tomcat Users List Asunto: Re: UnsatisfiedLinkError - JNI Josef Henryson wrote: Hi! I get an UnsatisfiedLinkError when trying to System.loadLibrary(foo) from a class instantiated within a Servlet. The library libFoo.jnilib is in a folder within java.library.path and the class loading it is inside a JAR in $CATALINA_HOME/shared/lib. Beside the JNI library is a native library libBar.dylib. I'm running Tomcat 5.0.25 on Mac OS X 10.3.4 Here's the exception: UnsatisfiedLinkError: /Users/henryson/Library/Java/Extensions/libFoo.jnilib: java.lang.UnsatisfiedLinkError: /Users/henryson/Library/Java/Extensions/libFoo.jnilib: at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1560) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1485) at java.lang.Runtime.loadLibrary0(Runtime.java:788) at java.lang.System.loadLibrary(System.java:834) I have tried loading the library from a small Java application outside the Tomcat server and it works fine when all classes/libraries are within the same folder. Of course I have searched for a solution on Google and I have also search old entries on this list (in an archive on a website) but there just don't seem to be a solution available out there... =( Anyone that have a clue? I would be VERY thankful =) Regards, Josef Henryson Well given the fact that the JNI library works fine when in a stand alone environment, it sounds like a load path problem. I'm not sure what OS X uses, but on unix it is the LD_LIBRARY_PATH, or on Windows the PATH. Try and get the code to output the environment before it does the load library call and make sure that the locations for all the dependant libraries are there. Hope that helps, Tim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] AVISO LEGAL: Esta información es privada y confidencial y está dirigida únicamente a su destinatario. Si usted no es el destinatario original de este mensaje y por este medio pudo acceder a dicha información por favor elimine el mensaje. La distribución o copia de este mensaje está estrictamente prohibida. Esta comunicación es sólo para propósitos de información y no debe ser considerada como propuesta, aceptación ni como una declaración de voluntad oficial de REPSOL YPF S.A. y/o subsidiarias y/o afiliadas. La transmisión de e-mails no garantiza que el correo electrónico sea seguro o libre de error. Por consiguiente, no manifestamos que esta información sea completa o precisa. Toda información está sujeta a alterarse sin previo aviso. This information is private and confidential and intended for the recipient only. If you are not the intended recipient of this message you are hereby notified that any review, dissemination, distribution or copying of this message is strictly prohibited. This communication is for information purposes only and shall not be regarded neither as a proposal, acceptance nor as a statement of will or official statement from REPSOL YPF S.A. and/or subsidiaries and/or affiliates. Email transmission cannot be guaranteed to be secure or error-free. Therefore, we do not represent that this information is complete or accurate and it should not be relied upon as such. All information is subject to change without notice. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 5.0.25/Apache 1.3.31 mod_jk windows
Hi I am trying to get the mod_jk.dll to work under Windows (XP) with the current Tomcat and Apache 1.3 releases. I have download mod_jk.ddl version 1.3.27, although the notes on the ftp site reference version 1.2.28, X.27 is all that is there. I have the LoadModule directive in my httpd.conf file, followed by the AddModule. The only message I get are these, in apache's error log... Wed Jul 07 16:00:32 2004] [error] Cannot remove module mod_jk.c: not found in module list [Wed Jul 07 16:00:32 2004] [warn] module mod_jk.c is already added, skipping There is no mod_jk.log file being created at the indicated location (as coded in httpd.conf) There are workers (or something) listening at port 8009, as verified by telnet to that port. Problem is, none of my Jk_Mount directives seem to be in effect, i.e. localhost/jsp-examples gets a 404 and my error.log shows that access was attempted for ${WEBROOT}/jsp-examples All of the doc on the jakarta site is out of date or scanty on Windows references. Does anyone have this working with these versions? I have attached my workers.properties and httpd.conf files Thanls In Advance ---Raymond # # Based upon the NCSA server configuration files originally by Rob McCool. # # This is the main Apache server configuration file. It contains the # configuration directives that give the server its instructions. # See URL:http://httpd.apache.org/docs/ for detailed information about # the directives. # # Do NOT simply read the instructions in here without understanding # what they do. They're here only as hints or reminders. If you are unsure # consult the online docs. You have been warned. # # After this file is processed, the server will look for and process # C:/Program Files/Apache Group/Apache/conf/srm.conf and then C:/Program Files/Apache Group/Apache/conf/access.conf # unless you have overridden these with ResourceConfig and/or # AccessConfig directives here. # # The configuration directives are grouped into three basic sections: # 1. Directives that control the operation of the Apache server process as a # whole (the 'global environment'). # 2. Directives that define the parameters of the 'main' or 'default' server, # which responds to requests that aren't handled by a virtual host. # These directives also provide default values for the settings # of all virtual hosts. # 3. Settings for virtual hosts, which allow Web requests to be sent to # different IP addresses or hostnames and have them handled by the # same Apache server process. # # Configuration and logfile names: If the filenames you specify for many # of the server's control files begin with / (or drive:/ for Win32), the # server will use that explicit path. If the filenames do *not* begin # with /, the value of ServerRoot is prepended -- so logs/foo.log # with ServerRoot set to /usr/local/apache will be interpreted by the # server as /usr/local/apache/logs/foo.log. # # NOTE: Where filenames are specified, you must use forward slashes # instead of backslashes (e.g., c:/apache instead of c:\apache). # If a drive letter is omitted, the drive on which Apache.exe is located # will be used by default. It is recommended that you always supply # an explicit drive letter in absolute paths, however, to avoid # confusion. # ### Section 1: Global Environment # # The directives in this section affect the overall operation of Apache, # such as the number of concurrent requests it can handle or where it # can find its configuration files. # # # ServerType is either inetd, or standalone. Inetd mode is only supported on # Unix platforms. # ServerType standalone # # ServerRoot: The top of the directory tree under which the server's # configuration, error, and log files are kept. # ServerRoot C:/Program Files/Apache Group/Apache # # PidFile: The file in which the server should record its process # identification number when it starts. # PidFile logs/httpd.pid # # ScoreBoardFile: File used to store internal server process information. # Not all architectures require this. But if yours does (you'll know because # this file will be created when you run Apache) then you *must* ensure that # no two invocations of Apache share the same scoreboard file. # ScoreBoardFile logs/apache_runtime_status # # In the standard configuration, the server will process httpd.conf (this # file, specified by the -f command line option), srm.conf, and access.conf # in that order. The latter two files are now distributed empty, as it is # recommended that all directives be kept in a single file for simplicity. # The commented-out values below are the built-in defaults. You can have the # server ignore these files altogether by using /dev/null (for Unix) or # nul (for Win32) for the arguments to the directives. # #ResourceConfig conf/srm.conf #AccessConfig conf/access.conf # # Timeout: The number of seconds before receives and sends time out. # Timeout 300 # # KeepAlive: Whether or not to
Apache2 and Tomcat 5.0.25 Configuration Using Mod_jk2
Hello: I am using window 2000, Apache2, and Tomcat5.0.25. I have downloaded the mod_jk2.so from the tomcat-connectors site. http://jakarta.apache.org/site/binindex.cgi How do I get Apache2 and Tomcat5 to talk to each other using the mod_jk2? If any one know of another solution, please do tell. I have already tried just about every suggestion on different forms, but still no luck. Thanks! Tonté - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Apache2 and Tomcat 5.0.25 Configuration Using Mod_jk2
Return Receipt Your Apache2 and Tomcat 5.0.25 Configuration Using Mod_jk2 document : was Francisco Gil/insa received by: at: 07/07/2004 03:26:02 PM - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AGAIN: How can you deploy an application onto a specific host?
Ive asked this question before but nobody seemed to know the answer. So, Ill ask again So, Tomcat has a maanger application, which allows you to dynamically deploy sutff. Nice. But how can you deploy your stuff onto a SPECIFIC host? Thx. Best Regards, Ivan V. Jouikov (206) 228-6670 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.716 / Virus Database: 472 - Release Date: 05.07.2004
Re: UnsatisfiedLinkError - JNI
See bottom of message... On Jul 7, 2004, at 21:33, Tim Penhey wrote: Josef Henryson wrote: Hi! I get an UnsatisfiedLinkError when trying to System.loadLibrary(foo) from a class instantiated within a Servlet. The library libFoo.jnilib is in a folder within java.library.path and the class loading it is inside a JAR in $CATALINA_HOME/shared/lib. Beside the JNI library is a native library libBar.dylib. I'm running Tomcat 5.0.25 on Mac OS X 10.3.4 Here's the exception: UnsatisfiedLinkError: /Users/henryson/Library/Java/Extensions/libFoo.jnilib: java.lang.UnsatisfiedLinkError: /Users/henryson/Library/Java/Extensions/libFoo.jnilib: at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1560) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1485) at java.lang.Runtime.loadLibrary0(Runtime.java:788) at java.lang.System.loadLibrary(System.java:834) I have tried loading the library from a small Java application outside the Tomcat server and it works fine when all classes/libraries are within the same folder. Of course I have searched for a solution on Google and I have also search old entries on this list (in an archive on a website) but there just don't seem to be a solution available out there... =( Anyone that have a clue? I would be VERY thankful =) Regards, Josef Henryson Well given the fact that the JNI library works fine when in a stand alone environment, it sounds like a load path problem. I'm not sure what OS X uses, but on unix it is the LD_LIBRARY_PATH, or on Windows the PATH. Try and get the code to output the environment before it does the load library call and make sure that the locations for all the dependant libraries are there. Tim, thank you for your advice. I tried setting java.library.path before, but when setting LD_LIBRARY_PATH and DYLD_LIBRARY_PATH (Mac OS X/Darwin) it seems to work!! :-) However, it only works when I'm running Tomcat from the startup script from command line. When I try to start Tomcat from Eclipse plugin, it still doesn't find the library =( Which makes it harder to debug... Anyone familiar with setting library paths to be found from Eclipse/Tomcat plugin?? TIA, Josef - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: AGAIN: How can you deploy an application onto a specific host?
I normally just use ant to deploy my stuff by dropping a .war file into the webapps dir. -Original Message- From: Ivan Jouikov [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 07, 2004 4:30 PM To: 'Tomcat Users List' Subject: AGAIN: How can you deploy an application onto a specific host? Ive asked this question before but nobody seemed to know the answer. So, Ill ask again So, Tomcat has a maanger application, which allows you to dynamically deploy sutff. Nice. But how can you deploy your stuff onto a SPECIFIC host? Thx. _ Best Regards, Ivan V. Jouikov (206) 228-6670 http://www.ablogic.net/ --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.716 / Virus Database: 472 - Release Date: 05.07.2004
RE: AGAIN: How can you deploy an application onto a specific host?
I can only tell you how I do it Gents but I am not sure if its suitable. I have a NFS mount (Samba) which has my war but generall I dont jar it cause I can just use a file system with the same dir structure. web/ web/WEB-INF web/etc then I go to the host I want to deploy it on and type http://hosttodeployon/manager/deploy?path=somewebcontextwar=file://home/myhome/somewebcontext/build somewebcontext being the http://hosttodeployon/somewebcontext also ant can do this for you automatically Now the mount is over a number of machines so I can deploy and test over multiples. But if I want to upgrade a machine some where else I would use scp as the manager is not safe to have on a production enviroment (My paranoia not casting aspiritions (You say similar in your own docs Tomcat developers)) There is a attr in server.xml so that when somewebcontext.war is copied over it deploys over it again. Sorry cant find it now as I am at home. I realise what you may have been looking for was someway to upload the war through the manager but to do that I would just copy over the existing war. From: Ivan Jouikov [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Subject: AGAIN: How can you deploy an application onto a specific host? Date: Wed, 7 Jul 2004 14:30:29 -0700 I’ve asked this question before but nobody seemed to know the answer. So, I’ll ask again… So, Tomcat has a maanger application, which allows you to dynamically deploy sutff. Nice. But how can you deploy your stuff onto a SPECIFIC host? Thx. _ Best Regards, Ivan V. Jouikov (206) 228-6670 HYPERLINK http://www.ablogic.net/; --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.716 / Virus Database: 472 - Release Date: 05.07.2004 _ It's fast, it's easy and it's free. Get MSN Messenger today! http://www.msn.co.uk/messenger - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: AGAIN: How can you deploy an application onto a specific host?
I'm not sure what you see, but my tomcat manager only shows me the applications that exist in the 'current' host. meaning: foo.mysite.com:8080/manager/html/list will show me only those apps deployed under 'foo' bar.mysite.com:8080/manager/html/list will show me only those apps deployed under 'bar'. Are you saying that if you deploy something with the 'foo' manager, that the application gets deployed on another host? (on the default host?) -Original Message- From: Ivan Jouikov [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 07, 2004 4:30 PM To: 'Tomcat Users List' Subject: AGAIN: How can you deploy an application onto a specific host? I've asked this question before but nobody seemed to know the answer. So, I'll ask again. So, Tomcat has a maanger application, which allows you to dynamically deploy sutff. Nice. But how can you deploy your stuff onto a SPECIFIC host? Thx. _ Best Regards, Ivan V. Jouikov (206) 228-6670 http://www.ablogic.net/ --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.716 / Virus Database: 472 - Release Date: 05.07.2004
JMX Tomcat Manager
Is there a way to use JMX to do what the tomcat manager does. What I want to do is to Reload, Stop, Start and Add Contexts with JMX. Raj - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5.0 and JavaMail
you don't need to put activation.jar and mail.jar inside catalina_home\common\lib\ you need to put them inside java_home\jre\lib\ext... regards... aris -Original Message- From: Dale, Matt [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 07, 2004 11:23 PM To: Tomcat Users List; e-Denton Subscriber Subject: RE: Tomcat 5.0 and JavaMail I've found that you also need activation.jar for JavaMail, do you have this in common/lib too? Ta Matt -Original Message- From: e-Denton Subscriber [mailto:[EMAIL PROTECTED] Sent: 07 July 2004 15:49 To: Tomcat Users List Subject: Tomcat 5.0 and JavaMail I had JavaMail working in Tomcat 4, but in Tomcat 5, I am having trouble. I know it's something simple, perhaps you can see the problem. Mail.jar is in Tomcat 5.0\common\lib. I am getting this error: javax.naming.NamingException: Cannot create resource instance: Using this context in Tomcat 5.0\conf\Catalina\localhost\e_Denton.xml Context displayName=Portal Application debug=5 docBase=e-Denton path=/e-Denton reloadable=true useNaming=true Loader checkInterval=1 / Resource name=mail/Session auth=Container type=javax.mail.Session / ResourceParams name=mail/Session parameter namemail.smtp.host/name valuemars.webappcabaret.net/value /parameter /ResourceParams ... And this web.xml: !-- JavaMail Resource -- resource-ref description Resource reference to a factory for javax.mail.Session preconfigured to connect to the appropriate SMTP server. /description res-ref-namemail/Session/res-ref-name res-typejavax.mail.Session/res-type res-authContainer/res-auth /resource-ref Accessed like this: try { Context initContext = new InitialContext(); Context envContext = (Context) initContext.lookup(java:comp/env); Session session = (Session) envContext.lookup(mail/Session); } catch (javax.naming.NamingException ne) - 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: Integrating Tomcat and IIS
I SUCCESSFULLY INTEGRATE TOMCAT 5 WITH IIS... =) SIMPLE AND EASY! aris -Original Message- From: Tom Burke [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 07, 2004 9:42 PM To: Tomcat Users List Subject: Integrating Tomcat and IIS I sent a long email to the list on Tuesday asking for help with problems I'm having intergating Tomcat with IIS. Sadly, there were no replies. My email was rather long - lots of examples, config file extracts, etc - so maybe recipients found it hard to digest. So I'll recast it as a shorter request: is there anyone on the list who has succeeded in integrating Tomcat (4 or 5) with IIS (5 or 6)? If so, are there any tips you can pass on? Any problems you experienced and overcame? And if anyone else has had problems and *not* been able to overcome them, what were they? Incidentally, I was following this set of instructions: https://www.rit.edu/~ack5504/tomcat-iis6-howto/narantugs-sengee-guide.ht ml Tom Burke - 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 and JavaMail
I have never had problems when including mail.jar and activation.jar in my applications WEB-INF/lib/ I believe this makes it more portable to different hosts. Kind Regards Schalk Neethling Web Developer.Designer.Programmer.President Volume4.Development.Multimedia.Branding emotionalize.conceptualize.visualize.realize Tel: +27125468436 Fax: +27125468436 email:[EMAIL PROTECTED] web: www.volume4.co.za This message contains information that is considered to be sensitive or confidential and may not be forwarded or disclosed to any other party without the permission of the sender. If you received this message in error, please notify me immediately so that I can correct and delete the original email. Thank you. :: -Original Message- :: From: Aris Javier [mailto:[EMAIL PROTECTED] :: Sent: Thursday, July 08, 2004 1:54 AM :: To: Tomcat Users List :: Subject: RE: Tomcat 5.0 and JavaMail :: :: you don't need to put activation.jar and mail.jar inside :: catalina_home\common\lib\ you need to put them inside :: java_home\jre\lib\ext... :: :: regards... :: aris :: :: -Original Message- :: From: Dale, Matt [mailto:[EMAIL PROTECTED] :: Sent: Wednesday, July 07, 2004 11:23 PM :: To: Tomcat Users List; e-Denton Subscriber :: Subject: RE: Tomcat 5.0 and JavaMail :: :: :: :: I've found that you also need activation.jar for JavaMail, do you have :: this in common/lib too? :: :: Ta :: Matt :: :: -Original Message- :: From: e-Denton Subscriber [mailto:[EMAIL PROTECTED] :: Sent: 07 July 2004 15:49 :: To: Tomcat Users List :: Subject: Tomcat 5.0 and JavaMail :: :: :: I had JavaMail working in Tomcat 4, but in Tomcat 5, I am having :: trouble. I know it's something simple, perhaps you can see the problem. :: Mail.jar is in Tomcat 5.0\common\lib. :: :: I am getting this error: :: :: javax.naming.NamingException: Cannot create resource instance: :: :: Using this context in Tomcat 5.0\conf\Catalina\localhost\e_Denton.xml :: :: Context displayName=Portal Application :: debug=5 :: docBase=e-Denton :: path=/e-Denton :: reloadable=true :: useNaming=true :: :: Loader checkInterval=1 / :: :: Resource name=mail/Session auth=Container :: type=javax.mail.Session / ResourceParams name=mail/Session :: parameter ::namemail.smtp.host/name ::valuemars.webappcabaret.net/value :: /parameter :: /ResourceParams :: ... :: :: And this web.xml: :: :: !-- JavaMail Resource -- :: resource-ref :: description :: Resource reference to a factory for javax.mail.Session :: preconfigured to connect to the appropriate SMTP server. :: /description :: res-ref-namemail/Session/res-ref-name :: res-typejavax.mail.Session/res-type :: res-authContainer/res-auth :: /resource-ref :: :: Accessed like this: :: :: try ::{ ::Context initContext = new InitialContext(); ::Context envContext = (Context) initContext.lookup(java:comp/env); ::Session session = (Session) envContext.lookup(mail/Session); ::} :: catch (javax.naming.NamingException ne) :: :: :: :: :: :: :: - :: 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: AGAIN: How can you deploy an application onto a specific host?
Ivan, This depends a lot on your environment. I am running 3 virtual hosts on this machine. I have used the following documentation in setting up a manager application for each virtual host. http://localhost:8080/tomcat-docs/manager-howto.html In particular, I use the following solution: Install the manager.xml context configuration file in the $CATALINA_HOME/conf/[enginename]/[hostname] folder. For example, my CATALINA_HOME is /home/tomcat, and the [enginname] is Catalina. I have multiple hosts (localhost lvh1, lvh2), so I have three subdirectories (/home/tomcat/conf/Catalina/localhost, /home/tomcat/conf/Catalina/lvh1, /home/tomcat/conf/Catalina/lvh2). In each of these subdirectories, I have a copy of balancer.xml, manager.xml, and ROOT.xml. In the localhost subdirectory I also have a copy of admin.xml. Right now I authenticate against a single user database, but I suppose that I could change that on a per virtual host basis by editing the manager.xml file. That way each virtual host could have a different manager . . . . That should be enough to get you started. /mde/ just my two cents . . . . - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: OT? Netbeans v Eclipse v Visual Age for Java
i've been using eclipse for a long time.. it's a great IDE... as for Netbeans... i did install it.. but never use it because of HUGE memory allocation... stayed with eclipse... =) -Original Message- From: Sternbergh, Cornell [mailto:[EMAIL PROTECTED] Sent: Thursday, July 08, 2004 12:50 AM To: Tomcat Users List Subject: OT? Netbeans v Eclipse v Visual Age for Java Hi Saw the references to Eclipes, and then Netbeans. I know that this may be a bit off topic, please forgive me... We use Visual Age for Java (VAJ) at work, with Websphere app server and Domino HTTP server (don't ask why;-). I'm planning on using Tomcat/Eclipse at home as an exercise for the student. I'd like the IDE to be similar to VAJ, so my experience is more useful at work. What about Netbeans, is it similar enough to VAJ or Eclipse that what I learn from it will be applicable? As far as programming in Java is concerned, any number of things could be used. I'd like to have project structure, HTML/JSP/Java file storage, packaging, deploying, etc. to be fairly similar. As well as basic debugging techniques. Thank you for your patience Cornell Sternbergh -Original Message- From: Kunthar [mailto:[EMAIL PROTECTED] Sent: Monday, July 05, 2004 05:27 To: Tomcat Users List Subject: Re: Sysdeo, Eclipse, Tomcat A better way to test JSP's at runtime is using Netbeans. To do this, you should have total control over your server as root/admin. 1. Install Netbeans to server. www.netbeans.org 2. Installation of Tomcat + Ant (necessary jars + Apache httpd etc.) should be ready. 3. When you run Netbeans from your Linux client woila, you got Netbeans working on your local comp by strong Xserver abilities. If you sadly use Windoze try VNC Server-Client and do not call me :=) 4. Since Netbeans has its own HTTP Monitor you can see all passing parameters to Tomcat. This is quite good. 5. You can add break points, evaluate values and see whats up really at runtime as you do in other IDEs. 6. Eclipse is good but as far as i compare Netbeans, Eclipse and IntelliJ, Netbeans hits. Final Note: 90% percent of the compilation errors are arising from the ignorance of programmer. Sometimes it is better to spend time for reading then spend time for trying to find a good debugger. I was using holly Homesite before i totally moved to Linux several days ago :=) Take care all, Gokhan Harry Mantheakis wrote: Hello Should I be able to set a breakpoint normally in a servlet? Yes, as long as you have started Tomcat using the Sysdeo plugin (from within Eclipse). How do I set a breakpoint in JSP? AFAIK that is not possible, at least not with the Sysdeo plugin. Something like the 'MyEclipse' plugin might be able to help you there, though that is a commercial plugin which you can test for a month or so. Where is my source (and binaries) supposed to be? Source can be anywhere you like - as long as Eclipse knows where it is, and can compile your project, the (servlet and object) debugging will work. Binaries go in WEB-INF/classes. It is safer to *package* your classes, BTW. I cannot help with the other two miscellaneous questions, though I do not think you need be concerned with the Tomcat 'base' attribute if you have a simple setup, and again, to begin with at least, I do not think you need be concerned with JVM settings. (There are several JVM settings that you have to consider on a production server, but that is another story.) My solution to debugging JSPs is not to put any code in them at all (!) I do everything with custom tags, which of course, are just objects that can debugged in the usual way. Good luck! Harry Mantheakis London, UK I am trying to figure out how to debug servlets and JSPs. I am running Windows ME, Tomcat 5.0, Eclipse 2.1.3, and Sysdeo Tomcat Plugin 3.0.0.alpha1. So, how should Sysdeo be set up? Should I be able to set a breakpoint normally in a servlet? How do I set a breakpoint in JSP? Where is my soruce (and binaries) supposed to be? Miscellaneous questions: 1. What is Tomcat base? (Preferences/Tomcat) 2. Any JVM settings needed? (Preferences/Tomcat/JVM settings) Thanks for your help. I have already tried to find a tutorial on the Web, but nothing has helped. - 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]
Tomcat 5, proxy and SSL accelerators
Hi all, I have a tomcat server running behind an SSL accelerator. I have used the proxyName and proxyPort config settings to make sure the real name of the server is used by the web application, but I can find no way of telling the web app that it is running on a secure server. Our server sends its URL to another server as part of an information exchange, and as this exchange is XML based and not done using a browser using relative links or the base tag is not possible. Our current hack is to reconstruct the URL, replacing http with https, but it's really ugly. Is there an elegant solution to this problem out there? Regards, Graham -- smime.p7s Description: S/MIME Cryptographic Signature
Tomcat 5 Context problem
Hi, it really not a problem because I got everything work. I just curious WHY it will work ... ^^ I am using Esclipse 3.0 + Lomboz 3.0RC2 and I develop a webapp, details as follow: WebApp name: FirstWebApp Servlet name and class : FirstServlet, FirstServlet.class (package-less) web.xml: has a servlet mapping element of /FirstServlet after I depoly the webapp to Tomcat using Lomboz, I can access the servlet at http://localhost:8080/FirstWebApp/FirstServlet However I know Tomcat need a Context element in order to find the path of a webapp, and I can't find this Context element of FirstWebApp throughout Tomcat. Not in server.xml, not in conf/engine/host, not in /webapp/FirstWebApp/WEB-INF/web.xml Tomcat just depoly it automatically and it is great, do this mean i don't need to care about the Context element? If i do care, where should I put this Context element? new in here, greeting to everybody, hope someone can help me out Regards ^^ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem while calling servlet.......
Hai I am trying to compile and .jrxml file created by iReport to create .jasper file by calling compileReport() method of jasperreport package. While trying to compile .jrxml file using jasper report it create a intermediate .java file and by using that it creates the .jasper file. After compilation it deletes that .java file. The .java file intern refers some packages of jasper report. While i tried the thing with standalone example it worked, but when i tried the same thing from a servlet it throws error of classNotFoundException for the all the classes refered by the intermediate .java file created by the jasper report(java file is created at tomcat's root directory). jasperreport.jar is in classpath and i tried to compile the created .java file manually(using textpad) it works, but it is not working when we call the compileReport() method from servlet. I am using Tomcat 5 and jasper report 0.5.3 Pls help me to solve this Thanks T.Gopalakrishnan
RE: Tomcat 5 Context problem
When you simply copy WAR file into $CATALINA_HOME/webapps directory like Lomboz does, you don't need to configure a context to describe a path, Tomcat will automatically make it available as localhost:8080/FolderName Where FolderName is the name of the folder inside /webapps/ where you application is. IF you do want to configure a separate context, you would want to do it inside server.xml. It's described very well at Jakarta.apache.org documentation. You can also toy around with /META-INF/context.xml (located similar to /WEB-INF/web.xml), and there specify the context like you would in server.xml. But I'd be very careful, because Tomcat seems to be very buggy when it comes to the second approach. -Original Message- From: Koon Yue Lam [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 07, 2004 8:12 PM To: [EMAIL PROTECTED] Subject: Tomcat 5 Context problem Hi, it really not a problem because I got everything work. I just curious WHY it will work ... ^^ I am using Esclipse 3.0 + Lomboz 3.0RC2 and I develop a webapp, details as follow: WebApp name: FirstWebApp Servlet name and class : FirstServlet, FirstServlet.class (package-less) web.xml: has a servlet mapping element of /FirstServlet after I depoly the webapp to Tomcat using Lomboz, I can access the servlet at http://localhost:8080/FirstWebApp/FirstServlet However I know Tomcat need a Context element in order to find the path of a webapp, and I can't find this Context element of FirstWebApp throughout Tomcat. Not in server.xml, not in conf/engine/host, not in /webapp/FirstWebApp/WEB-INF/web.xml Tomcat just depoly it automatically and it is great, do this mean i don't need to care about the Context element? If i do care, where should I put this Context element? new in here, greeting to everybody, hope someone can help me out Regards ^^ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.716 / Virus Database: 472 - Release Date: 05.07.2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.716 / Virus Database: 472 - Release Date: 05.07.2004 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5 Context problem
Thx for the help ! But I would also want to know how to undepoly an webapp? I try ro undepoly using Lomboz and it just build an undepoly.xml script. All files relate to that webapp are still under tomcat home/webapp/ folder. How can I depoly an webapp by using lomboz or using Tomcat manager?? If I use Tomcat manager to undepoly, will this affect my lomboz project?? Regards - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Fwd: debug connection pool
Hiya, jolly good plan ;-) If you are using the dcbp commons, there are a couple of methods in the BasicDataSource class for getting this information. So after retrieving the datasource from the context, test if it is a org.apache.commons.dbcp.BasicDataSource and if so cast it. You can then use getNumActive, getMaxActive, getNumIdle, getMaxIdle etc to print this information before or after getting a connection. grtz Hans At 02:12 PM 7/7/2004 -0300, Emerson Cargnin wrote: So share your finding :) Hans Wichman wrote: Hi, found it, sorry ! I had been searching in all the wrong directions, but the obvious one grtz Hans Date: Wed, 07 Jul 2004 09:59:18 +0200 To: [EMAIL PROTECTED] From: Hans Wichman [EMAIL PROTECTED] Subject: debug connection pool Hi, does anyone know the correct way to debug a database connection pool, eg number of connections left in the pool etc? Or a pointer in the right direction? any help would be appreciated! thanks! Hans - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] a -- Emerson Cargnin Analista de Sistemas - Gerente Regional - Tubarão Setor de Desenvolvimento de Sistemas - TRE-SC tel : (048) - 251-3700 - Ramal 3181 - 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 Context problem
If you use tomcat manager to undeploy your lomboz project will be fine. But I don't know how to undeploy using lomboz sorry. -Original Message- From: Koon Yue Lam [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 07, 2004 9:11 PM To: Tomcat Users List Subject: Re: Tomcat 5 Context problem Thx for the help ! But I would also want to know how to undepoly an webapp? I try ro undepoly using Lomboz and it just build an undepoly.xml script. All files relate to that webapp are still under tomcat home/webapp/ folder. How can I depoly an webapp by using lomboz or using Tomcat manager?? If I use Tomcat manager to undepoly, will this affect my lomboz project?? Regards - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.716 / Virus Database: 472 - Release Date: 05.07.2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.716 / Virus Database: 472 - Release Date: 05.07.2004 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
install task problem
I cannot figure out how to get the ant install task to work. I have a WAR file built in the main source directory ./myapp.war. Here is the relevant part of the build.xml: target name=install description=Install application in Tomcat depends=deploywar install url=${tomcat.manager.url} username=${tomcat.manager.username} password=${tomcat.manager.password} path=/websubdir/myapp war=jar:file:./myapp.war!/ / /target Error: java.io.IOException: Server returned HTTP response code: 401 for URL: http://localhost:8080/manager/install?path=%2Fwebsubdir%2Fmyappwar=jar%3Afile%3A. %2Fmyapp.war%21%2F Nothing else shows up in the logs. Any advise? Thanks. -- Michael - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: install task problem
Addendum: The problem isn't specific to the install task. The list task yields this error: java.io.IOException: Server returned HTTP response code: 401 for URL: http://localhost:8080/manager/list If I enter http://localhost:8080; in my browser the main Tomcat page comes up. I can enter the administration page after logging in. But if I try to open the manager I get a directory listing of the $CATALINA_HOME/server/webapps/manager directory. Stopping and restarting Tomcat doesn't help. Please advise. -- Michael - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]