RE: NoClassDefFoundError
Try extracting the JAR's contents into the webapp/WEB-INF/classes directory, check the class exists and restart tommy. -Original Message- From: Xavier ANDRE [mailto:[EMAIL PROTECTED] Sent: 15 January 2004 08:32 To: Tomcat Users List Subject: RE: NoClassDefFoundError Hi again, I try to put my jar in $TOMCAT_HOME/lib/common/ but it does not work also... It drives me crazy :-((( Xavier André -Message d'origine- De : news [mailto:[EMAIL PROTECTED] De la part de Bill Barker Envoyé : jeudi 15 janvier 2004 07:39 À : [EMAIL PROTECTED] Objet : Re: NoClassDefFoundError Actually, since he is using TC 3.3, the correct link is: http://jakarta.apache.org/tomcat/tomcat-3.3-doc/tomcat-ug.html#configuring_c lasses. However, it is similar to the TC 4 structure, just with different directory names :). Mike Curwen [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Did you read the document Yoav mentioned? I'll give a tiny push... http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html -Original Message- From: Xavier ANDRE [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 14, 2004 11:27 AM To: Tomcat Users List Subject: RE: NoClassDefFoundError If I put a jar file in classpath, how can I do that ? In which directory do I put my jar file ? Must I modify a file ? Xavier André -Message d'origine- De : Shapira, Yoav [mailto:[EMAIL PROTECTED] Envoyé : mercredi 14 janvier 2004 14:45 À : Tomcat Users List Objet : RE: NoClassDefFoundError Howdy, Read the classloader how-to in the tomcat documentation. Yoav Shapira Millennium ChemInformatics -Original Message- From: Xavier ANDRE [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 14, 2004 8:45 AM To: Tomcat Users List Subject: RE: NoClassDefFoundError Thank you Yaov for your answer. I don't understand why I've got to put a jar file, since the path to acces to my classes is in the classpth of the JVM which launchs Tomcat. Could you help me on that point ? Xavier André -Message d'origine- De : Shapira, Yoav [mailto:[EMAIL PROTECTED] Envoyé : mercredi 14 janvier 2004 14:40 À : Tomcat Users List Objet : RE: NoClassDefFoundError Howdy, We got your email, rest assured ;) I noticed a couple of things: First, the stack trace is for a ClassNotFoundException, which is very different from a NoClassDefFoundError that you mention in your message. It's usually easier to fix: place the jar with the missing class on the classpath. Second, you're using tomcat 3.x, which at this point in time means not many people can help you. Perhaps someone will, but if you can then you should consider upgrading to a more recent tomcat version. Yoav Shapira Millennium ChemInformatics -Original Message- From: Xavier ANDRE [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 14, 2004 5:36 AM To: Tomcat Users List Subject: RE: NoClassDefFoundError Please I really need help !!! Is someone receive my mail ? -Message d'origine- De : Xavier ANDRE Envoyé : mercredi 14 janvier 2004 09:38 À : Tomcat Users List Objet : NoClassDefFoundError Importance : Haute Hi, I've got en NoClassDefFoundError when I'm calling a method of a SOAP service which is deployed on my Tomcat Server. To start TOMCAT, I use these code, which is launched in my JVM : String[] args = new String[]{start}; org.apache.tomcat.startup.Main.main(args); The version of Tomcat is 3.3a. The error is : ?xml version='1.0' encoding='UTF-8'? SOAP-ENV:Envelope xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/; xmlns:xsi=http://www.w3.org/1999/XMLSchema-instance; xmlns:xsd=http://www.w3.org/1999/XMLSchema; SOAP-ENV:Body SOAP-ENV:Fault xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/; faultcodeSOAP-ENV:Server.BadTargetObjectURI/faultcode faultstringUnable to resolve target object: lib123.soap.sms.SmsDriverSOAP/faultstring faultactor/soap/servlet/messagerouter//faultactor detail stackTracejava.lang.ClassNotFoundException: lib123.soap.sms.SmsDriverSOAP I don't understand why the class lib123.soap.sms.SmsDriverSOAP can't be found since is in my JVM's classpath ? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you.
RE: happy 2004
It's still spam, no matter how many times you try. lol -Original Message- From: Puneet Sachar [mailto:[EMAIL PROTECTED] Sent: 31 December 2003 09:50 To: [EMAIL PROTECTED] Subject: happy 2004 Note: forwarded message attached. __ Do you Yahoo!? Find out what made the Top Yahoo! Searches of 2003 http://search.yahoo.com/top2003 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: To the list administrator.
You can do this yourself easily by reading the footer of every email on the list. I quote: - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -Original Message- From: Giuliano Gavazzi [mailto:[EMAIL PROTECTED] Sent: 10 December 2003 15:36 To: Tomcat Users List Subject: To the list administrator. Please remove [EMAIL PROTECTED] from the subscribers. Sorry, but I cannot find the admin address. Thanks Giuliano -- H U M P H || ||| software Java C++ Server/Client/Human Interface applications on MacOS - MacOS X http://www.humph.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]
Illegal Access Error [ URLConnection ]
Hi, When I do URLConnection.guessContentTypeFromName(filename) I get an IllegalAccessError thrown. Yet, I cannot catch this as the method only throws an IOException. Why does this throw an Exception in Tomcat? It doesn't throw it if the method is called from the command prompt in a static class??? Is it a security exception thrown by tomcat? Thanks, Stuart Stephen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Illegal Access Error [ URLConnection ]
This is my code by the way... /** * adds a file parameter to the request * @param name parameter name * @param filename the name of the file * @param is input stream to read the contents of the file from * @throws IOException */ public void setParameter(String name, String filename, InputStream is) throws IOException { boundary(); writeName(name); write(; filename=\); write(filename); write(''); newline(); write(Content-Type: ); String type = null; type = connection.guessContentTypeFromName(filename); if (type == null) type = application/octet-stream; writeln(type); newline(); pipe(is, os); newline(); } -Original Message- From: Stuart Stephen [mailto:[EMAIL PROTECTED] Sent: 05 December 2003 11:05 To: Tomcat Users List Subject: Illegal Access Error [ URLConnection ] Hi, When I do URLConnection.guessContentTypeFromName(filename) I get an IllegalAccessError thrown. Yet, I cannot catch this as the method only throws an IOException. Why does this throw an Exception in Tomcat? It doesn't throw it if the method is called from the command prompt in a static class??? Is it a security exception thrown by tomcat? Thanks, Stuart Stephen - 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: Illegal Access Error [ URLConnection ]
I tried putting a try and catch block around it to catch a the generic Exception. Yet that didn't work. Something is still a-miss? -Original Message- From: SH Solutions [mailto:[EMAIL PROTECTED] Sent: 05 December 2003 11:37 To: 'Tomcat Users List' Subject: AW: Illegal Access Error [ URLConnection ] Hi When I do URLConnection.guessContentTypeFromName(filename) I get an IllegalAccessError thrown. Yet, I cannot catch this as the method only throws an IOException. I dont know where this comes from since I dont have any idea what this method is all about. But I can tell you how to catch the Exception. try { .. } catch ( IllegalAccessError iae ) { } As of you post I guess you thought that you couldn't catch a Exception that is not declared to be thrown by the method in question. But this is only half the truth. You can throw everything that inherits from Throwable. Descendents of Exception are such classes, but there are more. You can catch about everything if you use this; } catch ( Throwable t ) { t.printStackTrace(); // not required but a good start. ... Cu Steffen - 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: Illegal Access Error [ URLConnection ]
Ahh, didn't think of that. That's the badger. Good work! Thanks. -Original Message- From: Jon Wingfield [mailto:[EMAIL PROTECTED] Sent: 05 December 2003 13:21 To: Tomcat Users List Subject: Re: Illegal Access Error [ URLConnection ] Yep. An Error isn't an Exception; it's a Throwable. Inheritance tree: Throwable | -- | | ErrorException HTH, Jon Stuart Stephen wrote: I tried putting a try and catch block around it to catch a the generic Exception. Yet that didn't work. Something is still a-miss? -Original Message- From: SH Solutions [mailto:[EMAIL PROTECTED] Sent: 05 December 2003 11:37 To: 'Tomcat Users List' Subject: AW: Illegal Access Error [ URLConnection ] Hi When I do URLConnection.guessContentTypeFromName(filename) I get an IllegalAccessError thrown. Yet, I cannot catch this as the method only throws an IOException. I dont know where this comes from since I dont have any idea what this method is all about. But I can tell you how to catch the Exception. try { .. } catch ( IllegalAccessError iae ) { } As of you post I guess you thought that you couldn't catch a Exception that is not declared to be thrown by the method in question. But this is only half the truth. You can throw everything that inherits from Throwable. Descendents of Exception are such classes, but there are more. You can catch about everything if you use this; } catch ( Throwable t ) { t.printStackTrace(); // not required but a good start. ... Cu Steffen - 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]
response.sendRedirect() finite loop?!
talk2UtimeHi all, I am getting strange entries in my test_service_log.2003-12-03.txt. In my JSP which gets executed before this I am running a response.sendRedirect(/test/RedirectToMe.jsp); with a return; afterwards. So this should only get executed once. However. According to my logs its being accessed 1333 times in just SIX seconds [line count / 2]. I am the ONLY person on the server and therefore this is strange occurance! I checked the corresponding apache logs and this servlet was not in the logs, the servlet before hand which does the redirect was the only servlet that has been accessed externally. This is true from what the user sees. Is this a bug in Tomcat 4.1.29 or has something changed? I've been using Tomcat for a few years now and I've never seen anything like this? Regards, Stuart Stephen 2003-12-03 09:32:08 StandardContext[/t2ut]: Mapping contextPath='/test' with requestURI='/test/RedirectToMe.jsp' and relativeURI='/RedirectToMe.jsp' 2003-12-03 09:32:08 StandardContext[/t2ut]: Mapped to servlet 'jsp' with servlet path '/RedirectToMe.jsp' and path info 'null' and update=true 2003-12-03 09:32:08 StandardContext[/t2ut]: Mapping contextPath='/test' with requestURI='/test/RedirectToMe.jsp' and relativeURI='/RedirectToMe.jsp' 2003-12-03 09:32:08 StandardContext[/t2ut]: Mapped to servlet 'jsp' with servlet path '/RedirectToMe.jsp' and path info 'null' and update=true ... ... ... 2003-12-03 09:32:14 StandardContext[/t2ut]: Mapping contextPath='/t2ut' with requestURI='/t2ut/RoomTimes.jsp' and relativeURI='/RoomTimes.jsp' 2003-12-03 09:32:14 StandardContext[/t2ut]: Mapped to servlet 'jsp' with servlet path '/RoomTimes.jsp' and path info 'null' and update=true 2003-12-03 09:32:14 StandardContext[/t2ut]: Mapping contextPath='/t2ut' with requestURI='/t2ut/RoomTimes.jsp' and relativeURI='/RoomTimes.jsp' 2003-12-03 09:32:14 StandardContext[/t2ut]: Mapped to servlet 'jsp' with servlet path '/RoomTimes.jsp' and path info 'null' and update=true
RE: response.sendRedirect() finite loop?!
Hi, On further investigation it would appear that this is not a Tomcat issue. It seems to be something to do with mod_jk. When a response.sendRedirect occurs it does not apply it properly. Or at least something is not executing properly. The setup we have is Apache 2.0.48, Tomcat 4.1.29, and mod_jk between them working with mod_ssl. I tested the code without using apache between me and Tomcat and everything worked as expected. Any suggestions or comments?? Regards Stuart -Original Message- From: Stuart Stephen [mailto:[EMAIL PROTECTED] Sent: 03 December 2003 10:06 To: [EMAIL PROTECTED] Subject: response.sendRedirect() finite loop?! talk2UtimeHi all, I am getting strange entries in my test_service_log.2003-12-03.txt. In my JSP which gets executed before this I am running a response.sendRedirect(/test/RedirectToMe.jsp); with a return; afterwards. So this should only get executed once. However. According to my logs its being accessed 1333 times in just SIX seconds [line count / 2]. I am the ONLY person on the server and therefore this is strange occurance! I checked the corresponding apache logs and this servlet was not in the logs, the servlet before hand which does the redirect was the only servlet that has been accessed externally. This is true from what the user sees. Is this a bug in Tomcat 4.1.29 or has something changed? I've been using Tomcat for a few years now and I've never seen anything like this? Regards, Stuart Stephen 2003-12-03 09:32:08 StandardContext[/t2ut]: Mapping contextPath='/test' with requestURI='/test/RedirectToMe.jsp' and relativeURI='/RedirectToMe.jsp' 2003-12-03 09:32:08 StandardContext[/t2ut]: Mapped to servlet 'jsp' with servlet path '/RedirectToMe.jsp' and path info 'null' and update=true 2003-12-03 09:32:08 StandardContext[/t2ut]: Mapping contextPath='/test' with requestURI='/test/RedirectToMe.jsp' and relativeURI='/RedirectToMe.jsp' 2003-12-03 09:32:08 StandardContext[/t2ut]: Mapped to servlet 'jsp' with servlet path '/RedirectToMe.jsp' and path info 'null' and update=true ... ... ... 2003-12-03 09:32:14 StandardContext[/t2ut]: Mapping contextPath='/t2ut' with requestURI='/t2ut/RoomTimes.jsp' and relativeURI='/RoomTimes.jsp' 2003-12-03 09:32:14 StandardContext[/t2ut]: Mapped to servlet 'jsp' with servlet path '/RoomTimes.jsp' and path info 'null' and update=true 2003-12-03 09:32:14 StandardContext[/t2ut]: Mapping contextPath='/t2ut' with requestURI='/t2ut/RoomTimes.jsp' and relativeURI='/RoomTimes.jsp' 2003-12-03 09:32:14 StandardContext[/t2ut]: Mapped to servlet 'jsp' with servlet path '/RoomTimes.jsp' and path info 'null' and update=true - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Forwarding
Why not use apache mod_rewrite ? -Original Message- From: Holger Klawitter [mailto:[EMAIL PROTECTED] Sent: 27 November 2003 07:46 To: [EMAIL PROTECTED] Subject: Re: Forwarding -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am Thursday 27 November 2003 00:16 schrieb Kuba Krlikowski: Dnia 2003-11-26 23:00, Uytkownik Jeff Tulley napisa: I think Kuba wants to redirect all requests that end with /something.jsp/ to /something.jsp This should be possible with a custom Valve. Unfortunately you probably have to write one yourself. Mit freundlichem Gru / With kind regards Holger Klawitter - -- lists at klawitter dot de -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQE/xaul1Xdt0HKSwgYRAlP4AJ9T/hODqoC03LPi+9p7X4ZEIwBnHgCggjJO qknDbukofjBekjqgqeqPwok= =OEbn -END PGP SIGNATURE- - 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]
javax.activation.UnsupportedDataTypeException: no object DCH for MIME type text/html
Hi, I'm getting the following error when sending HTML emails. From looking around the web it appears that my error could be from my mailcap file not being configured correctly, or the include order of mail.jar and activation.jar. How can I find out in which order Tomcat includes jars? Has anyone encountered these errors before and know a fix? Thanks Stuart javax.mail.MessagingException: IOException while sending message; nested exception is: javax.activation.UnsupportedDataTypeException: no object DCH for MIME type text/html (844 chars) at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:353) at com.t2ut.email.Email.sendMessage(Email.java:246) at com.t2ut.email.Email.sendMail(Email.java:50) at org.apache.jsp.tcr_update_list_jsp._jspService(tcr_update_list_jsp.java:157) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2 10) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher. java:684) at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatch er.java:575) at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher .java:498) at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:8 22) at org.apache.jsp.tcr_view_jsp._jspService(tcr_view_jsp.java:76) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2 10) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher. java:684) at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatch er.java:575) at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher .java:498) at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:8 22) at org.apache.jsp.tcr_jsp._jspService(tcr_jsp.java:98) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2 10) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:171) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:509) at
RE: javax.activation.UnsupportedDataTypeException: no object DCH for MIME type text/html
Hi, Ever since trying to attach files to HTML e-mails I have had this problem. I've just checked my mailcap file and this seems fine to me??? Or at least it is according to http://www.jguru.com/faq/view.jsp?EID=237257. The contents of my mailcap file is below. --- # # @(#)mailcap 1.5 00/09/26 # # Default mailcap file for the JavaMail System. # # JavaMail content-handlers: # text/plain;;x-java-content-handler=com.sun.mail.handlers.text_plain text/html;; x-java-content-handler=com.sun.mail.handlers.text_html text/xml;; x-java-content-handler=com.sun.mail.handlers.text_xml multipart/*;; x-java-content-handler=com.sun.mail.handlers.multipart_mixed message/rfc822;;x-java-content-handler=com.sun.mail.handlers.message_rfc822 --- My email sending code is below: private static boolean sendMessage(String[] to, String subject, String message, String from, String[] filelocation) { try { String recievers = StringWizard.arrayToText(to, , ); ContentType ct = new ContentType(text/plain, iso-8859-1, new ParameterList()); StringBuffer msg = new StringBuffer(message); Properties prop = new Properties(); prop.put(mail.smtp.auth, true); prop.put(mail.transport.protocol, smtp); prop.put(mail.smtp.host, MAIL_HOST); Session mail_Session=Session.getInstance(prop, null); InternetAddress fromAddress = new InternetAddress(from); InternetAddress toAddress[] = new InternetAddress[to.length]; for(int i=0;ito.length;i++) toAddress[i] = new InternetAddress(to[i]); InternetAddress[] reply = { fromAddress }; MimeMessage myMessage = new MimeMessage(mail_Session); myMessage.setFrom(fromAddress); myMessage.setReplyTo(reply); for(int i=0;ito.length;i++) myMessage.addRecipient(Message.RecipientType.TO, toAddress[i]); myMessage.setSentDate(new java.util.Date()); myMessage.setSubject(subject); Multipart mp = new MimeMultipart(); // add default stuff (text). // add text. MimeBodyPart textpart = new MimeBodyPart(); textpart.setText(msg.toString()); mp.addBodyPart(textpart); // add html. boolean sendHTML = UserHelper.HTMLEmails(to[0]); if(sendHTML) { MimeBodyPart htmlpart = new MimeBodyPart(); htmlpart.setContent(StringWizard.stripJavascript(StringWizard.toHTML(msg.toS tring())), text/html + ( + msg.length() + chars)); mp.addBodyPart(htmlpart); } // if we are sending any files with this email add them. boolean attached = false; if(filelocation!=null filelocation.length0) { for(int i=0;ifilelocation.length;i++) { File attachment = new File(filelocation[i]); if(attachment.exists() attachment.isFile() attachment.canRead()) { System.err.println(Email.sendMessage() : Attaching file + attachment.getAbsolutePath() + to email bound for + recievers); MimeBodyPart attachfile = new MimeBodyPart(); FileDataSource fds = new FileDataSource(attachment); DataHandler dh = new DataHandler(fds); attachfile.setFileName(attachment.getName()); attachfile.setDisposition(Part.ATTACHMENT); attachfile.setDescription(Attached File: + attachment.getName()); attachfile.setDataHandler(dh); mp.addBodyPart(attachfile); attached = true; } } } if(attached==false !sendHTML)myMessage = addMessageHeaders(myMessage, ct); myMessage.setContent(mp); Transport tr = mail_Session.getTransport(smtp); tr.connect(MAIL_HOST, USERNAME, PASSWORD); myMessage.saveChanges(); tr.sendMessage(myMessage, toAddress); tr.close(); return true; } catch(Exception e){ e.printStackTrace(System.err); return false; } } -Original Message- From: Stuart Stephen [mailto:[EMAIL PROTECTED] Sent: 27 November 2003 16:47 To: [EMAIL PROTECTED] Subject: javax.activation.UnsupportedDataTypeException: no object DCH for MIME type text/html Hi, I'm getting the following error when sending HTML emails. From looking around the web it appears that my error could be from my mailcap file not being configured correctly, or the include order of mail.jar and activation.jar. How can I find out in which order Tomcat includes jars? Has anyone encountered these errors before and know a fix? Thanks Stuart javax.mail.MessagingException: IOException while sending message; nested exception is: javax.activation.UnsupportedDataTypeException: no object DCH for MIME type text/html (844 chars) at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:353) at com.t2ut.email.Email.sendMessage(Email.java:246) at com.t2ut.email.Email.sendMail(Email.java:50) at org.apache.jsp.tcr_update_list_jsp
RE: Hot Reload
It does this already if you have reloadable=true in your context settings in server.xml - it can sometimes take a small amount of time to kick in. Context path=/mycontext docBase=context debug=0 reloadable=true / or DefaultContext reloadable=true/ -Original Message- From: Leonardo Lopez [mailto:[EMAIL PROTECTED] Sent: 23 November 2003 19:35 To: Tomcat Users List Subject: Hot Reload Hi gurus, I`m using tomcat 4.0.6 and I need to know how to configure, a hot reload of an application. I mean if a put a recompiled class, because it suffered any change, on the directory webapps/Aplication/WEB-INF/classes/... , how could I make Tomcat detect that change and reload that application without using the manager tools. (/manager/reload?path=/Application, for instance) Thanks in advance - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Start Tomcat
Does Tomcat 5.0 give you a distinct advantage or are you upgrading just for the sake of it? If the earlier versions ran fine and it's not imperative that you run 5.0 then I would suggest you revert back to the previous configuration. If it's not broke, don't fix it. -Original Message- From: Simon Allen [mailto:[EMAIL PROTECTED] Sent: 13 November 2003 10:03 To: 'Tomcat Users List' Subject: RE: Start Tomcat Still no change I'm afraid. I had already set the Initial memory to a higher level though not 4096. 4096 still no good. I re-iterate that there was no problem running the batch files, only with using the start menu. I am using Tomcat 5.0 and did not have this problem with earlier version. I am running on win98 with a Pentium 200Mhz, 196 RAM. -Original Message- From: Andreas Mohrig [SMTP:[EMAIL PROTECTED] Sent: Thursday, November 13, 2003 9:47 AM To: 'Tomcat Users List' Subject:AW: Start Tomcat Simon, then this can be remedied. From http://jakarta.apache.org/tomcat/tomcat-4.1-doc/RUNNING.txt (5) Troubleshooting: [...] 2) An out of environment space error when running the batch files in Win9X/ME-based operating systems. Right-click on the STARTUP.BAT and SHUTDOWN.BAT files. Click on Properties then on the Memory tab. For the Initial environment field, enter in something like 4096. After you click apply, Windows will create shortcuts in the directory with which you can use to start and stop the container. Greetings Andreas Mohrig -Ursprungliche Nachricht- Von: Simon Allen [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 13. November 2003 10:38 An: 'Tomcat Users List' Betreff: RE: Start Tomcat OK. One thing i forgot about was that when I run startup.bat I get two dos windows open. The first line of the startup window is syntax error. Having run catalina.bat I'm now getting more feedback. After syntax error I am getting out of environment space. After 4 lines providing information on directories being used there are 3 more lines stating out of environment space . Then bad command or file name. Thanks -Original Message- From: Kwok Peng Tuck [SMTP:[EMAIL PROTECTED] Sent: Thursday, November 13, 2003 9:23 AM To: Tomcat Users List Subject:Re: Start Tomcat Hello Simon, Run the catalina batch file, passing in the argument run like this(without the quotes of course): catalina.bat run This will run tomcat in the current window, from there you should be able to see the errors that tomcat throws out. Simon Allen wrote: I have now written pause at the end of startup.bat. This has no effect as the dos window doesn't open anyway. I notice that the target of the Start Tomcat button is Tomcatw.exe. When I try and run this file nothing happens. Bearing in mind that startup.bat works fine if run directly, should I have set an environment variable during set up? ta -Original Message- From: Patrick Willart [SMTP:[EMAIL PROTECTED] Sent: Wednesday, November 12, 2003 11:08 PM To:Tomcat Users List Subject: RE: Start Tomcat Simon, If you add 'pause' as last line in you startup.bat you can see what (error) messages Tomcat outputs. Patrick -Original Message- From: Simon Allen [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 12, 2003 2:31 PM To: '[EMAIL PROTECTED]' Subject: Start Tomcat Hi I am able to start Tomcat from startup.bat but when I try to do so using the Start Tomcat in the Windows Start Menu the banner appears, disappears after a few seconds with no further action. Any advice? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 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: Looking for mod_jk2
Are you on RedHat 9? I had the same problem, I couldn't build mod_jk2.so on that. It seems to be an issue with RedHat 9.0?!? Why, i'm not sure. -Original Message- From: Dave Morrow [mailto:[EMAIL PROTECTED] Sent: 13 November 2003 16:59 To: Dave Morrow; 'Tomcat Users List' Subject: RE: Looking for mod_jk2 It appears that my build is building mod_jk2.so but not jkjni.so Anyone willing to assist? David Morrow Systems Technical Lead, IT Operations P: (519) 951-6079 F: (519) 451-6615 mailto: [EMAIL PROTECTED] ..poor planning on your part does not make an emergency on my part This message has originated from Autodata Solutions. The attached material is the Confidential and Proprietary Information of Autodata Solutions. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please delete this message and notify the Autodata system administrator at [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -Original Message- From: Dave Morrow Sent: Thursday, November 13, 2003 11:45 AM To: 'Tomcat Users List' Subject: RE: Looking for mod_jk2 ib -lcrypt -lapr-0 -Wl,-soname -Wl,jkjni.so -o ../../../build/jk2/apache2/.libs/jkjni.so /usr/bin/ld: cannot find -lapr-0 collect2: ld returned 1 exit status make[1]: *** [../../../build/jk2/apache2/jkjni.la] Error 1 make[1]: Leaving directory `/root/jakarta-tomcat-connectors-jk2-2.0.2-src/jk/native2/server/apache2' David Morrow Systems Technical Lead, IT Operations P: (519) 951-6079 F: (519) 451-6615 mailto: [EMAIL PROTECTED] ..poor planning on your part does not make an emergency on my part This message has originated from Autodata Solutions. The attached material is the Confidential and Proprietary Information of Autodata Solutions. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please delete this message and notify the Autodata system administrator at [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -Original Message- From: Dave Morrow [mailto:[EMAIL PROTECTED] Sent: Thursday, November 13, 2003 11:39 AM To: 'Tomcat Users List' Subject: RE: Looking for mod_jk2 Thanks for the tip. I have been through your procedure, and cannot get it to compile. David Morrow Systems Technical Lead, IT Operations P: (519) 951-6079 F: (519) 451-6615 mailto: [EMAIL PROTECTED] ..poor planning on your part does not make an emergency on my part This message has originated from Autodata Solutions. The attached material is the Confidential and Proprietary Information of Autodata Solutions. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please delete this message and notify the Autodata system administrator at [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -Original Message- From: Chong Yu Meng [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 12, 2003 8:54 PM To: Tomcat Users List Subject: Re: Looking for mod_jk2 Hi Dave, The compile is not really so difficult. I've written a section on this on my website : http://cymulacrum.net/tomcat/jk2_compile.html. Regards, pascal chong Dave Morrow wrote: Hi, I was just on jakarta.apache.org and cannot find a Redhat 9 / Apache 2 RPM binary. Anyone know where I can get one. I really do not want to have to compile etc (requires ant and the likes which I am not familiar with). David Morrow Systems Technical Lead, IT Operations P: (519) 951-6079 F: (519) 451-6615 mailto: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] ..poor planning on your part does not make an emergency on my part This message has originated from Autodata Solutions. The attached material is the Confidential and Proprietary Information of Autodata Solutions. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please delete this message and notify the Autodata system administrator at [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[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:
RE: Looking for mod_jk2
Oh yes... read it incorrectly! Sorry! -Original Message- From: Dave Morrow [mailto:[EMAIL PROTECTED] Sent: 13 November 2003 17:17 To: 'Tomcat Users List' Subject: RE: Looking for mod_jk2 Well, I managed to build mod_jk2.so but not the jkjni.so library. David Morrow Systems Technical Lead, IT Operations P: (519) 951-6079 F: (519) 451-6615 mailto: [EMAIL PROTECTED] ..poor planning on your part does not make an emergency on my part This message has originated from Autodata Solutions. The attached material is the Confidential and Proprietary Information of Autodata Solutions. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please delete this message and notify the Autodata system administrator at [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -Original Message- From: Stuart Stephen [mailto:[EMAIL PROTECTED] Sent: Thursday, November 13, 2003 12:03 PM To: Tomcat Users List Subject: RE: Looking for mod_jk2 Are you on RedHat 9? I had the same problem, I couldn't build mod_jk2.so on that. It seems to be an issue with RedHat 9.0?!? Why, i'm not sure. -Original Message- From: Dave Morrow [mailto:[EMAIL PROTECTED] Sent: 13 November 2003 16:59 To: Dave Morrow; 'Tomcat Users List' Subject: RE: Looking for mod_jk2 It appears that my build is building mod_jk2.so but not jkjni.so Anyone willing to assist? David Morrow Systems Technical Lead, IT Operations P: (519) 951-6079 F: (519) 451-6615 mailto: [EMAIL PROTECTED] ..poor planning on your part does not make an emergency on my part This message has originated from Autodata Solutions. The attached material is the Confidential and Proprietary Information of Autodata Solutions. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please delete this message and notify the Autodata system administrator at [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -Original Message- From: Dave Morrow Sent: Thursday, November 13, 2003 11:45 AM To: 'Tomcat Users List' Subject: RE: Looking for mod_jk2 ib -lcrypt -lapr-0 -Wl,-soname -Wl,jkjni.so -o ../../../build/jk2/apache2/.libs/jkjni.so /usr/bin/ld: cannot find -lapr-0 collect2: ld returned 1 exit status make[1]: *** [../../../build/jk2/apache2/jkjni.la] Error 1 make[1]: Leaving directory `/root/jakarta-tomcat-connectors-jk2-2.0.2-src/jk/native2/server/apache2' David Morrow Systems Technical Lead, IT Operations P: (519) 951-6079 F: (519) 451-6615 mailto: [EMAIL PROTECTED] ..poor planning on your part does not make an emergency on my part This message has originated from Autodata Solutions. The attached material is the Confidential and Proprietary Information of Autodata Solutions. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please delete this message and notify the Autodata system administrator at [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -Original Message- From: Dave Morrow [mailto:[EMAIL PROTECTED] Sent: Thursday, November 13, 2003 11:39 AM To: 'Tomcat Users List' Subject: RE: Looking for mod_jk2 Thanks for the tip. I have been through your procedure, and cannot get it to compile. David Morrow Systems Technical Lead, IT Operations P: (519) 951-6079 F: (519) 451-6615 mailto: [EMAIL PROTECTED] ..poor planning on your part does not make an emergency on my part This message has originated from Autodata Solutions. The attached material is the Confidential and Proprietary Information of Autodata Solutions. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please delete this message and notify the Autodata system administrator at [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -Original Message- From: Chong Yu Meng [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 12, 2003 8:54 PM To: Tomcat Users List Subject: Re: Looking for mod_jk2 Hi Dave, The compile is not really so difficult. I've written a section on this on my website : http://cymulacrum.net/tomcat/jk2_compile.html. Regards, pascal chong Dave Morrow wrote: Hi, I was just on jakarta.apache.org and cannot find a Redhat 9 / Apache 2 RPM binary. Anyone know where I can get one. I really do not want to have to compile etc (requires ant and the likes which I am not familiar with). David Morrow Systems Technical Lead, IT Operations P: (519) 951-6079 F: (519) 451-6615 mailto: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] ..poor planning on your part does not make an emergency on my
Cannot seem to compile mod_jk (Tomcat 4.1.29) statically into apache 2.0.48
Hi, I cannot seem to compile mod_jk statically into apache 2.0.48, I have given the apache src directory to the ./configure script and yet it cannot find the files it needs? Has something changed since apache 2.0.46 and tomcat 4.1.27 to make this not work anymore? Or maybe my notes I made when I compiled it before are incorrect? Please help! Thanks, Stuart Stephen [EMAIL PROTECTED] native2]# ./buildconf.sh libtoolize --force --automake --copy aclocal automake --copy --add-missing autoconf [EMAIL PROTECTED] native2]# ./configure --with-apache2-include=/root/httpd-2.0.48 --with-java-home=/usr/ java/j2sdk1.4.2 loading cache ./config.cache checking for a BSD compatible install... (cached) /usr/bin/install -c checking whether build environment is sane... yes checking whether make sets ${MAKE}... (cached) yes checking for working aclocal... found checking for working autoconf... found checking for working automake... found checking for working autoheader... found checking for working makeinfo... found checking for gcc... (cached) gcc checking whether the C compiler (gcc ) works... yes checking whether the C compiler (gcc ) is a cross-compiler... no checking whether we are using GNU C... (cached) yes checking whether gcc accepts -g... (cached) yes checking host system type... i686-pc-linux-gnu checking build system type... i686-pc-linux-gnu checking for ld used by GCC... (cached) /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... (cached) yes checking for Cygwin environment... (cached) no checking for mingw32 environment... (cached) no checking how to run the C preprocessor... (cached) gcc -E checking for /usr/bin/ld option to reload object files... (cached) -r checking for BSD-compatible nm... (cached) /usr/bin/nm -B checking whether ln -s works... (cached) yes checking how to recognise dependant libraries... (cached) pass_all checking for object suffix... (cached) o checking for executable suffix... (cached) no checking command to parse /usr/bin/nm -B output... (cached) ok checking for dlfcn.h... (cached) yes checking for ranlib... (cached) ranlib checking for strip... (cached) strip checking for objdir... .libs checking for gcc option to produce PIC... (cached)-fPIC checking if gcc PIC flag-fPIC works... (cached) yes checking if gcc static flag -static works... (cached) yes checking if gcc supports -c -o file.o... (cached) yes checking if gcc supports -c -o file.lo... (cached) yes checking if gcc supports -fno-rtti -fno-exceptions... yes checking whether the linker (/usr/bin/ld) supports shared libraries... yes checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking dynamic linker characteristics... GNU/Linux ld.so checking if libtool supports shared libraries... yes checking for dlopen in -ldl... (cached) yes checking whether a program can dlopen itself... (cached) yes checking whether a statically linked program can dlopen itself... (cached) no checking whether -lc should be explicitly linked in... (cached) no creating libtool checking for test... (cached) /usr/bin/test checking for rm... (cached) /bin/rm checking for grep... (cached) /bin/grep checking for echo... (cached) /bin/echo checking for sed... (cached) /bin/sed checking for cp... (cached) /bin/cp checking for mkdir... (cached) /bin/mkdir no apxs given no apxs2 given configure: error: can't locate /root/httpd-2.0.48/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
mod_jk
Hi, I'm running mod_jk and in the mod_jk logs i'm seeing quite a lot of this. If the server is quite busy the occurance of this increases. [Mon Oct 13 08:50:47 2003] [jk_ajp13_worker.c (381)]: Error ajp13_process_callback - write failed Should I be worried? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat on Dual CPU Server
Hi, I've installed tomcat on a dual CPU redhat linux 9.0 machine and have noticed that it only uses 1 cpu. How can I make it use both? Is this a linux thing or a tomcat thing? Regards, Stuart Stephen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat on Dual CPU Server
Well, I'm using Sun 1.4.2 with Tomcat 4.1.28. I assumed that multi-threaded CPU's would be supported in Sun's Java VM. However, if i put tomcat into an infinite loop it seems to go only to just above 50% CPU for the whole system. -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: 17 September 2003 12:49 To: Tomcat Users List Subject: Re: Tomcat on Dual CPU Server The JVM is spec'd to be able to run on multiple processors transparently and an Java application. (Ignoring natvie code issues) Whether the *implementation* of a JVM takes advantage of a multi-cpu system is a job of the JVM vendor. -Tim Stuart Stephen wrote: Hi, I've installed tomcat on a dual CPU redhat linux 9.0 machine and have noticed that it only uses 1 cpu. How can I make it use both? Is this a linux thing or a tomcat thing? - 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 on Dual CPU Server
Ahh, I wondered if that was what you meant. I'll have to experiment further. Thanks. -Original Message- From: Jaco Kroon [mailto:[EMAIL PROTECTED] Sent: 17 September 2003 12:59 To: Tomcat Users List Subject: RE: Tomcat on Dual CPU Server That would be correct, as I mentioned in my other mail, a single thread can only run on one CPU, thus to get to 100% cpu usage, you need at least two threads performing two concurrent infinite loops. A single loop cannot push 2 cpu's to over 50% as the one cpu will run the loop and the other will sit idle, and every now and again do some arb work. On Wed, 17 Sep 2003, Stuart Stephen wrote: Well, I'm using Sun 1.4.2 with Tomcat 4.1.28. I assumed that multi-threaded CPU's would be supported in Sun's Java VM. However, if i put tomcat into an infinite loop it seems to go only to just above 50% CPU for the whole system. -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: 17 September 2003 12:49 To: Tomcat Users List Subject: Re: Tomcat on Dual CPU Server The JVM is spec'd to be able to run on multiple processors transparently and an Java application. (Ignoring natvie code issues) Whether the *implementation* of a JVM takes advantage of a multi-cpu system is a job of the JVM vendor. -Tim Stuart Stephen wrote: Hi, I've installed tomcat on a dual CPU redhat linux 9.0 machine and have noticed that it only uses 1 cpu. How can I make it use both? Is this a linux thing or a tomcat thing? - 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: Tomcat on Dual CPU Server
Whoops. 4.1.27 :oP -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: 17 September 2003 13:53 To: Tomcat Users List Subject: RE: Tomcat on Dual CPU Server Howdy, FYI, Sun JDK 1.4.2 on Solaris 8 and 9 can use many CPUs effectively: I don't know the upper limit but I've maxed it out on 12 and 16 CPU machines that we have around here. We don't have such big linux machines so I can't explore that OS as much... How are you liking tomcat 4.1.28? ;) ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: Stuart Stephen [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 17, 2003 7:55 AM To: Tomcat Users List Subject: RE: Tomcat on Dual CPU Server Well, I'm using Sun 1.4.2 with Tomcat 4.1.28. I assumed that multi-threaded CPU's would be supported in Sun's Java VM. However, if i put tomcat into an infinite loop it seems to go only to just above 50% CPU for the whole system. -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: 17 September 2003 12:49 To: Tomcat Users List Subject: Re: Tomcat on Dual CPU Server The JVM is spec'd to be able to run on multiple processors transparently and an Java application. (Ignoring natvie code issues) Whether the *implementation* of a JVM takes advantage of a multi-cpu system is a job of the JVM vendor. -Tim Stuart Stephen wrote: Hi, I've installed tomcat on a dual CPU redhat linux 9.0 machine and have noticed that it only uses 1 cpu. How can I make it use both? Is this a linux thing or a tomcat thing? - 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] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Unable to obtain a module (.so) for JK2 on Linux (RH9)
I had a similar problem, it wouldn't compile a .so in RH9. I gave up on it and went back to good old trusty mod_jk 1 in the end. -Original Message- From: jerome moliere [mailto:[EMAIL PROTECTED] Sent: 30 August 2003 09:20 To: Tomcat Users List Subject: Re: Unable to obtain a module (.so) for JK2 on Linux (RH9) Eric J. Pinnell wrote: Hi, thanks eric, JK2 should compile with just the following: ./configure --with-apxs2=/path/to/apache/bin/apxs make yes ,it should . but I still can't have this fu... module compiled It should create mod_jk2.so in the build directory tree not in the directory that you ran configure and make from. I forget exactly where it puts it but a find ./ | grep so from the top level of the source should root it out quick fast. yes the location is ../build/jk2/apache2 but allways empty for me (no .so at all) the find keeps returning nothing for my .so can't spent much time for this problem so I'll use mod_proxy instead Jerome - 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: directory outside context root
I personally would use the Apache alias. The codes already written for you and through apache the serving of the files should be pretty fast. You don't need to write any servlets or anything then to allow access to these files. It all depends on your project spec. If these files should have restricted access then that adds more to the equation. -Original Message- From: Erez Efrati [mailto:[EMAIL PROTECTED] Sent: 19 August 2003 17:49 To: 'Tomcat Users List' Subject: RE: directory outside context root Well I did find a way to do that by declaring another context just for that with docBase='c:\www\files' for example. Thing is, all this is not really working under the Tomcat bundled in JBoss. One option of solving this is having a servlet (Struts Action for example) which will serve the files. The other way is using the 'alias' directive under Apache directing to wherever I'd like in the file system. For that I need to put Apache in front of JBoss/Tomcat. Which is better? Thanks, Erez -Original Message- From: John Turner [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 19, 2003 1:57 PM To: Tomcat Users List Subject: Re: directory outside context root If on UNIX or Linux, you could use symbolic links, but this is not recommended for security and portability reasons. So, in general, the answer is no. John Erez Efrati wrote: Is there some way to tell tomcat to serve files from a specific directory outside the context root? Thanks in advance, Erez - 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]
Installing Tomcat as a Service
Hi all, How might I go about installing Tomcat as a service in RedHat 9.0. I've never installed a service under linux manually before and I'm not sure what to do. I can't find the appropriate documentation in the manuals for either Tomcat or RedHat. I must be looking in the wrong places :O( UNRELATED: Also, If I wanted to install a java program as a service, how might I do this? Is this a similar process? Regards, Stuart - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: build mod_jk2 ?
# cd /usr/local/src # wget http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/release/v2.0. 2/src/jakarta-tomcat-connectors-jk2-2.0.2-src.tar.gz # gunzip -dc jakarta-tomcat-connectors-jk2-2.0.2-src.tar.gz | tar xf - # cd jakarta-tomcat-connectors-jk2-2.0.2-src/jk/native2 # ./configure --with-apxs2=/usr/local/apache2/bin/apxs # make # cd ../build/jk2/apache2 # ls -la -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 20 August 2003 11:59 To: [EMAIL PROTECTED] Subject: build mod_jk2 ? Hi, I have Tomacat 4.1.27 , and apache 2.0.35 on HP-UX 11.0 Where can I found the procedure and the source to build mod_jk2 ? Thanks in advance - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Installing Tomcat as a Service
I already have done the hard work of intergrating apache and tomcat together in the desired way. I now need to install the services. Going to the RPM is a backward step for me now. Ideally i'd like to understand how the services are installed under the linux os now. I'll still have to research it to get the Java applications started as services. -Original Message- From: Manolo Ramirez T. [mailto:[EMAIL PROTECTED] Sent: 20 August 2003 15:02 To: Tomcat Users List Subject: Re: Installing Tomcat as a Service Hi, Check this: http://www.jpackage.org They have the rpm version of tomcat, that will make all the hard work for you. Regards. Manolo Ramirez T. Stuart Stephen wrote: Hi all, How might I go about installing Tomcat as a service in RedHat 9.0. I've never installed a service under linux manually before and I'm not sure what to do. I can't find the appropriate documentation in the manuals for either Tomcat or RedHat. I must be looking in the wrong places :O( UNRELATED: Also, If I wanted to install a java program as a service, how might I do this? Is this a similar process? Regards, Stuart - 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: Installing Tomcat as a Service
Thanks for the reply, I've tried creating a script in the /etc/init.d directory and then running the chkconfig --add script-name and this hasn't worked for me. I'm getting an error saying that: service service-name does not support chkconfig I must still be doing something wrong? The script has the same permissions showing in the ls -l list? -Original Message- From: Paul Yunusov [mailto:[EMAIL PROTECTED] Sent: 20 August 2003 13:24 To: Tomcat Users List Subject: Re: Installing Tomcat as a Service On August 20, 2003 04:19 am, Stuart Stephen wrote: Hi all, How might I go about installing Tomcat as a service in RedHat 9.0. I've never installed a service under linux manually before and I'm not sure what to do. I can't find the appropriate documentation in the manuals for either Tomcat or RedHat. I must be looking in the wrong places :O( UNRELATED: Also, If I wanted to install a java program as a service, how might I do this? Is this a similar process? Regards, Stuart man chkconfig man serviceconf man init For a Java program, write a wrapper shell script like Tomcat authors did with catalina.sh. Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: directory outside context root
You could if your using apache and a connector. If you use the mod_alias module in apache then you can map physical paths/drives to certain urls. -Original Message- From: John Turner [mailto:[EMAIL PROTECTED] Sent: 19 August 2003 12:57 To: Tomcat Users List Subject: Re: directory outside context root If on UNIX or Linux, you could use symbolic links, but this is not recommended for security and portability reasons. So, in general, the answer is no. John Erez Efrati wrote: Is there some way to tell tomcat to serve files from a specific directory outside the context root? Thanks in advance, Erez - 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: SSL and tomcat behind apache
Which connector are you using to link tomcat to apache? -Original Message- From: Bradberry, Rick [mailto:[EMAIL PROTECTED] Sent: 18 August 2003 13:47 To: 'Tomcat Users List' Subject: SSL and tomcat behind apache Hi all, Question about running SSL through apache and using tomcat for jsp. In the tomcat documentation it says that tomcat only needs to be configured if it is running stand alone. I'm using apache 2 with openssl for the front end. Here's my problem: when I go to the https server (apache) the lock icon turns on in IE, but as soon as I hit a jsp page the lock icon turns off. With Mozilla it shows a lock with a red line through it. Did I miss something in the setup documentation? Rick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: SSL and tomcat behind apache
In your httpd.conf or ssl.conf in the virtual hosts, this should be where the connectors are mounted. Also, in the server.xml make sure that your using the org.apache.coyote.tomcat4.CoyoteConnector on port 8443, scheme=https and secure=true -Original Message- From: Bradberry, Rick [mailto:[EMAIL PROTECTED] Sent: 18 August 2003 13:56 To: 'Tomcat Users List' Subject: RE: SSL and tomcat behind apache the setup is Apache 2 tomcat 4.1.27 mod_jk2 connectors 4.1.27 Rick -Original Message- From: Stuart Stephen [mailto:[EMAIL PROTECTED] Sent: Monday, August 18, 2003 8:51 AM To: Tomcat Users List Subject: RE: SSL and tomcat behind apache Which connector are you using to link tomcat to apache? -Original Message- From: Bradberry, Rick [mailto:[EMAIL PROTECTED] Sent: 18 August 2003 13:47 To: 'Tomcat Users List' Subject: SSL and tomcat behind apache Hi all, Question about running SSL through apache and using tomcat for jsp. In the tomcat documentation it says that tomcat only needs to be configured if it is running stand alone. I'm using apache 2 with openssl for the front end. Here's my problem: when I go to the https server (apache) the lock icon turns on in IE, but as soon as I hit a jsp page the lock icon turns off. With Mozilla it shows a lock with a red line through it. Did I miss something in the setup documentation? Rick - 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: How To Build mod_jk?????
Bongrip, I had the same problem, the files were supposed to be made in the jk/build/jk2/apache2/.libs/ directory, but I never found them. Eventually I reverted back to mod_jk which i built into apache. Stuart -Original Message- From: Bongrip [mailto:[EMAIL PROTECTED] Sent: 17 August 2003 17:20 To: Tomcat Users List Subject: Re: How To Build mod_jk? Eric J. Pinnell wrote: Hi, I don't use ant. I use make. It appears that you are trying to build JK2. In the native2 directory: ./configure --with-apxs2=/path/to/apache/bin/apxs make Yes, that was exactly what I was trying. configure and make both complete fine, however I never get the 2 resulting .so files anywhere in the filesystem. ??? -CC - 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: Avoiding tomcat crashes or do auto restarts?
http://www.mail-archive.com/[EMAIL PROTECTED]/msg07206.html This maybe of help. Increasing the Memory allocated to the Java VM when it runs Tomcat is probably the solution. -Original Message- From: news [mailto:[EMAIL PROTECTED] Behalf Of Steinar Bang Sent: 18 August 2003 14:33 To: [EMAIL PROTECTED] Subject: Avoiding tomcat crashes or do auto restarts? Platform: Intel PIII, RedHat 8, IBMJava2-SDK-1.3.1-3.0, tomcat4-4.1.18-full.1jpp We have found that if we push the server too hard, the Java VM running tomcat crashes. I'm assuming it's running out of memory, or file descriptors, or somesuch. Does anyone have a solution to this type of problem? Config parameters that can be tuned? A watchdog process that will restart the Java VM if it crashes (ie. something like the apache httpd does)? A temporary problem caused by a restart is acceptable. Flatlining due to a VM crash isn't. - Steinar - 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: Avoiding tomcat crashes or do auto restarts?
If you run java -X you should get a list of memory orientated options. -Original Message- From: news [mailto:[EMAIL PROTECTED] Behalf Of Steinar Bang Sent: 18 August 2003 14:33 To: [EMAIL PROTECTED] Subject: Avoiding tomcat crashes or do auto restarts? Platform: Intel PIII, RedHat 8, IBMJava2-SDK-1.3.1-3.0, tomcat4-4.1.18-full.1jpp We have found that if we push the server too hard, the Java VM running tomcat crashes. I'm assuming it's running out of memory, or file descriptors, or somesuch. Does anyone have a solution to this type of problem? Config parameters that can be tuned? A watchdog process that will restart the Java VM if it crashes (ie. something like the apache httpd does)? A temporary problem caused by a restart is acceptable. Flatlining due to a VM crash isn't. - Steinar - 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: Getting mod_jk2 to run with Tomcat 4.1.27 and Apache 2.0.47
Hi all, For your reference, I have now found out what the problem was. I checked out more information about what the apxs is and found out that its effectively a compiler of some sort. So I went to my $APACHEHOME/bin/ directory and ran it 'apxs'. I got the message: Can't exec /usr/bin/apr-config: No such file or directory at /usr/sbin/apxs line 87. Use of uninitialised value in scalar chomp at /usr/sbin/apxs line 92. .. the rest of the help .. So, I did a 'find / -name apr-config' and located it in my $APACHEHOME/bin/ directory, copied it from there to /usr/bin/ using 'cp /usr/local/apache2/bin/apr-config /usr/bin/' Then I went back to the compile process, ran that. This all went swimmingly as usual. Then I ran 'libtool --finish /usr/local/apache2/modules/' and the files appeared in the correct place. I can only assume that something I installed, did not install properly? Thanks for the help everyone. I hope this comes of use to someone else too. Stuart -Original Message- From: Stuart Stephen [mailto:[EMAIL PROTECTED] Sent: 14 August 2003 13:38 To: Tomcat Users List Subject: RE: Getting mod_jk2 to run with Tomcat 4.1.27 and Apache 2.0.47 I did exactly that, and there's still no .so -Original Message- From: Richard Park [mailto:[EMAIL PROTECTED] Sent: 14 August 2003 13:29 To: Tomcat Users List Subject: Re: Getting mod_jk2 to run with Tomcat 4.1.27 and Apache 2.0.47 Stuart, just to be sure I downloaded the version of jk2 that you have and tried building it myself, and everything went smoothly. If your willing, here's exactly what I did: # cd /usr/local/src # wget http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/release/v2.0. 2/src/jakarta-tomcat-connectors-jk2-2.0.2-src.tar.gz # gunzip -dc jakarta-tomcat-connectors-jk2-2.0.2-src.tar.gz | tar xf - # cd jakarta-tomcat-connectors-jk2-2.0.2-src/jk/native2 # ./configure --with-apxs2=/usr/local/apache2/bin/apxs # make # cd ../build/jk2/apache2 # ls -la and the mod_jk2.so file was there ... if it continues to fail for you I email you my mod_jk2.so - 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: Getting mod_jk2 to run with Tomcat 4.1.27 and Apache 2.0.47
Infact no it didn't :o( That was something I tried yesterday. I've still not got a .so file that I have compiled. What could I be doing wrong? -Original Message- From: Stuart Stephen [mailto:[EMAIL PROTECTED] Sent: 15 August 2003 10:26 To: Tomcat Users List Subject: RE: Getting mod_jk2 to run with Tomcat 4.1.27 and Apache 2.0.47 Hi all, For your reference, I have now found out what the problem was. I checked out more information about what the apxs is and found out that its effectively a compiler of some sort. So I went to my $APACHEHOME/bin/ directory and ran it 'apxs'. I got the message: Can't exec /usr/bin/apr-config: No such file or directory at /usr/sbin/apxs line 87. Use of uninitialised value in scalar chomp at /usr/sbin/apxs line 92. .. the rest of the help .. So, I did a 'find / -name apr-config' and located it in my $APACHEHOME/bin/ directory, copied it from there to /usr/bin/ using 'cp /usr/local/apache2/bin/apr-config /usr/bin/' Then I went back to the compile process, ran that. This all went swimmingly as usual. Then I ran 'libtool --finish /usr/local/apache2/modules/' and the files appeared in the correct place. I can only assume that something I installed, did not install properly? Thanks for the help everyone. I hope this comes of use to someone else too. Stuart -Original Message- From: Stuart Stephen [mailto:[EMAIL PROTECTED] Sent: 14 August 2003 13:38 To: Tomcat Users List Subject: RE: Getting mod_jk2 to run with Tomcat 4.1.27 and Apache 2.0.47 I did exactly that, and there's still no .so -Original Message- From: Richard Park [mailto:[EMAIL PROTECTED] Sent: 14 August 2003 13:29 To: Tomcat Users List Subject: Re: Getting mod_jk2 to run with Tomcat 4.1.27 and Apache 2.0.47 Stuart, just to be sure I downloaded the version of jk2 that you have and tried building it myself, and everything went smoothly. If your willing, here's exactly what I did: # cd /usr/local/src # wget http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/release/v2.0. 2/src/jakarta-tomcat-connectors-jk2-2.0.2-src.tar.gz # gunzip -dc jakarta-tomcat-connectors-jk2-2.0.2-src.tar.gz | tar xf - # cd jakarta-tomcat-connectors-jk2-2.0.2-src/jk/native2 # ./configure --with-apxs2=/usr/local/apache2/bin/apxs # make # cd ../build/jk2/apache2 # ls -la and the mod_jk2.so file was there ... if it continues to fail for you I email you my mod_jk2.so - 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: Getting mod_jk2 to run with Tomcat 4.1.27 and Apache 2.0.47
Yeah, that's what I was hoping.. but a ls -a in that directory just gave me a list of files named jkjni.a jkjni.la jkjni.lai mod_jk2.a mod_jk2.la mod_jk2.lai I tried the compile using 'make jk2-build-apxs' as Jorgen suggested. This did create a .slo in the /jk/native2/server/apache2/ folder, but still no .so on the system. If someone has already compiled the mod_jk2 for apache 2.0.47 it might be easier for me to get a copy i think. I seem to be going nowehere at the moment. :o( -Original Message- From: Richard Park [mailto:[EMAIL PROTECTED] Sent: 14 August 2003 13:10 To: Tomcat Users List Subject: Re: Getting mod_jk2 to run with Tomcat 4.1.27 and Apache 2.0.47 Stuart, from what I can see in your make output, everything should be there. Here's a piece from your make output: --- /build/jk2/apache2/.libs/mod_jk2.* --- so from within your native2 directory you should: --- cd ../build/jk2/apache2/.libs --- and it should be there ... - 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: Getting mod_jk2 to run with Tomcat 4.1.27 and Apache 2.0.47
Ok, one last question.. where might I obtain or find the apxs2's? I'm not sure wether I have them or not. -Original Message- From: Richard Park [mailto:[EMAIL PROTECTED] Sent: 13 August 2003 23:28 To: Tomcat Users List Subject: Re: Getting mod_jk2 to run with Tomcat 4.1.27 and Apache 2.0.47 Stuart, I've currently got: -- Apache 2.0.47 Tomcat 5.0.7 mod_jk2 from here: http://apache.mirror.secondchapter.info/jakarta/tomcat-4/source/jakarta-tomc at-connectors-4.1.27-src.tar.gz -- Instead of installing with Ant (which was giving me problems as well), I built mod_jk2 using './configure' from the jakarta-tomcat-connectors-4.1.27-src/jk/native2 directory: -- ./configure --with-apxs2=/path/to/apxs ./configure --with-apxs2=/usr/local/apache/bin/apxs *note: if there is no configure script in this directory, you must first run ./buildconf.sh -- Once configure has finished creating a makefile, run make. Once make is complete, go to: -- jakarta-tomcat-connectors-4.1.27-src/jk/build/jk2/apache2/.libs -- and you will find the two files that you need: -- mod_jk2.socopy into your apache modules directory jkjni.socopy into your $CATALINA_HOME/server/lib directory -- Now just make sure you have a jk2.properties file in your $CATALINA_HOME/conf directory, and manually create a workers2.properties file in your apache conf directory, with the proper settings/values: http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/doc/jk2/confi gwebex.html Hope that helps! - 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]
Getting mod_jk2 to run with Tomcat 4.1.27 and Apache 2.0.47
Hi, I'm trying to get mod_jk2 to run with apache 2.0.47 and Tomcat 4.1.27 running in Linux. However, I cannot work out how to compile mod_jk2. I can't seem to get hold of everything I need? At http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/release/v2.0. 2/src I can obtain the mod_jk2 v2.0.2 src, I've installed Jakarta Ant, Java 1.4.2, Tomcat temporarily at /root/Tomcat\ 4.1/Tomcat and Apache 2.0.47 at /usr/local/apache2. When I build mod_jk2 with Ant I seem to get an error saying that the ./jakarta-tomcat-connectors-jk2-2.0.2-src/util directory does not exist: file:/root/Tomcat%204.1/jakarta-tomcat-connectors-jk2-2.0.2-src/build.xml:1 1: Basedir /root/Tomcat 4.1/jakarta-tomcat-connectors-jk2-2.0.2-src/util does not exist. This is correct! The directory does not exist, so I researched into it and realised that I needed to install one of the rpm's from the http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/release/v2.0. 2/rpms directory... but this is empty?! Is it currently possible to get Apache 2.0.47, running with Tomcat 4.1.27 and how? Regards, Stuart Stephen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Getting mod_jk2 to run with Tomcat 4.1.27 and Apache 2.0.47
I did exactly that, and there's still no .so -Original Message- From: Richard Park [mailto:[EMAIL PROTECTED] Sent: 14 August 2003 13:29 To: Tomcat Users List Subject: Re: Getting mod_jk2 to run with Tomcat 4.1.27 and Apache 2.0.47 Stuart, just to be sure I downloaded the version of jk2 that you have and tried building it myself, and everything went smoothly. If your willing, here's exactly what I did: # cd /usr/local/src # wget http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/release/v2.0. 2/src/jakarta-tomcat-connectors-jk2-2.0.2-src.tar.gz # gunzip -dc jakarta-tomcat-connectors-jk2-2.0.2-src.tar.gz | tar xf - # cd jakarta-tomcat-connectors-jk2-2.0.2-src/jk/native2 # ./configure --with-apxs2=/usr/local/apache2/bin/apxs # make # cd ../build/jk2/apache2 # ls -la and the mod_jk2.so file was there ... if it continues to fail for you I email you my mod_jk2.so - 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: Getting mod_jk2 to run with Tomcat 4.1.27 and Apache 2.0.47
Well... it compiled. But the files I was expecting to come out didn't. I've got a mod_jk2.la, mod_jk2.a, mod_jk2.lo, mod_jk2.o, mod_jk2.lai, but not a mod_jk2.so ? Do I just need to rename one of the files, or has the compile done something wrong? Thanks, Stuart Stephen -Original Message- From: Stuart Stephen [mailto:[EMAIL PROTECTED] Sent: 14 August 2003 09:46 To: Tomcat Users List Subject: RE: Getting mod_jk2 to run with Tomcat 4.1.27 and Apache 2.0.47 Ok, sorry, my bad. I've found the apxs perl script in the /apache2/bin directory and now have gone onto the make stage. However i'm still got an error :o( Turns out that this was simply because I had a space in a folder name lower down in the directory structure. I removed the space and the compile has worked straight off, excellent! Thanks Richard! Regards, Stuart -Original Message- From: Stuart Stephen [mailto:[EMAIL PROTECTED] Sent: 14 August 2003 09:21 To: Tomcat Users List Subject: RE: Getting mod_jk2 to run with Tomcat 4.1.27 and Apache 2.0.47 Ok, one last question.. where might I obtain or find the apxs2's? I'm not sure wether I have them or not. -Original Message- From: Richard Park [mailto:[EMAIL PROTECTED] Sent: 13 August 2003 23:28 To: Tomcat Users List Subject: Re: Getting mod_jk2 to run with Tomcat 4.1.27 and Apache 2.0.47 Stuart, I've currently got: -- Apache 2.0.47 Tomcat 5.0.7 mod_jk2 from here: http://apache.mirror.secondchapter.info/jakarta/tomcat-4/source/jakarta-tomc at-connectors-4.1.27-src.tar.gz -- Instead of installing with Ant (which was giving me problems as well), I built mod_jk2 using './configure' from the jakarta-tomcat-connectors-4.1.27-src/jk/native2 directory: -- ./configure --with-apxs2=/path/to/apxs ./configure --with-apxs2=/usr/local/apache/bin/apxs *note: if there is no configure script in this directory, you must first run ./buildconf.sh -- Once configure has finished creating a makefile, run make. Once make is complete, go to: -- jakarta-tomcat-connectors-4.1.27-src/jk/build/jk2/apache2/.libs -- and you will find the two files that you need: -- mod_jk2.socopy into your apache modules directory jkjni.socopy into your $CATALINA_HOME/server/lib directory -- Now just make sure you have a jk2.properties file in your $CATALINA_HOME/conf directory, and manually create a workers2.properties file in your apache conf directory, with the proper settings/values: http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/doc/jk2/confi gwebex.html Hope that helps! - 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: Getting mod_jk2 to run with Tomcat 4.1.27 and Apache 2.0.47
I've found a warning in the build logs. This could be the reason behind it: ../../common/jk_vm_default.c:449:77: warning: backslash and newline separated by space Not too sure about editing the c code. -Original Message- From: Jørgen Nørgaard [mailto:[EMAIL PROTECTED] Sent: 14 August 2003 11:48 To: Tomcat Users List Subject: RE: Getting mod_jk2 to run with Tomcat 4.1.27 and Apache 2.0.47 Afraid not, there's no .libs directory under /jk/native2/server/apache2/ (checked with 'ls -a') I think its compiling wrong, not sure why. Tried doing --enabled-shared=max but that didnt work either. Still no .so created. I ran: 'locate -u mod_jk2.so' and that found nothing, and I tried 'find / -name mod_jk2.so' and that found nothing either. On a Linux system I build the connector like: cd jk/native2/ ./configure --with-apxs2=/usr/sbin/apxs2-prefork make jk2-build-apxs that placed the .so file in the .libs directory. The actual apxs depends on your install (this is a SuSE variant). No error messages during the compile? Thanks -Original Message- From: Jørgen Nørgaard [mailto:[EMAIL PROTECTED] Sent: 14 August 2003 11:14 To: Tomcat Users List Subject: RE: Getting mod_jk2 to run with Tomcat 4.1.27 and Apache 2.0.47 Well... it compiled. But the files I was expecting to come out didn't. I've got a mod_jk2.la, mod_jk2.a, mod_jk2.lo, mod_jk2.o, mod_jk2.lai, but not a mod_jk2.so ? Of all places it is (probably) in: jk/native2/server/apache2/.libs/mod_jk2.so Is it something with apxs that puts it there? Do I just need to rename one of the files, or has the compile done something wrong? Thanks, Stuart Stephen -Original Message- From: Stuart Stephen [mailto:[EMAIL PROTECTED] Sent: 14 August 2003 09:46 To: Tomcat Users List Subject: RE: Getting mod_jk2 to run with Tomcat 4.1.27 and Apache 2.0.47 Ok, sorry, my bad. I've found the apxs perl script in the /apache2/bin directory and now have gone onto the make stage. However i'm still got an error :o( Turns out that this was simply because I had a space in a folder name lower down in the directory structure. I removed the space and the compile has worked straight off, excellent! Thanks Richard! Regards, Stuart -Original Message- From: Stuart Stephen [mailto:[EMAIL PROTECTED] Sent: 14 August 2003 09:21 To: Tomcat Users List Subject: RE: Getting mod_jk2 to run with Tomcat 4.1.27 and Apache 2.0.47 Ok, one last question.. where might I obtain or find the apxs2's? I'm not sure wether I have them or not. -Original Message- From: Richard Park [mailto:[EMAIL PROTECTED] Sent: 13 August 2003 23:28 To: Tomcat Users List Subject: Re: Getting mod_jk2 to run with Tomcat 4.1.27 and Apache 2.0.47 Stuart, I've currently got: -- Apache 2.0.47 Tomcat 5.0.7 mod_jk2 from here: http://apache.mirror.secondchapter.info/jakarta/tomcat-4/source/jakarta-to m c at-connectors-4.1.27-src.tar.gz -- Instead of installing with Ant (which was giving me problems as well), I built mod_jk2 using './configure' from the jakarta-tomcat-connectors-4.1.27-src/jk/native2 directory: -- ./configure --with-apxs2=/path/to/apxs ./configure --with-apxs2=/usr/local/apache/bin/apxs *note: if there is no configure script in this directory, you must first run ./buildconf.sh -- Once configure has finished creating a makefile, run make. Once make is complete, go to: -- jakarta-tomcat-connectors-4.1.27-src/jk/build/jk2/apache2/.libs -- and you will find the two files that you need: -- mod_jk2.socopy into your apache modules directory jkjni.socopy into your $CATALINA_HOME/server/lib directory -- Now just make sure you have a jk2.properties file in your $CATALINA_HOME/conf directory, and manually create a workers2.properties file in your apache conf directory, with the proper settings/values: http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/doc/jk2/con f i gwebex.html Hope that helps! -- /jørgen nørgaard SmartTV A/S [EMAIL PROTECTED] Phone: +45 3332 5770 http://smarttv.dk/ - 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: Getting mod_jk2 to run with Tomcat 4.1.27 and Apache 2.0.47
Ok, sorry, my bad. I've found the apxs perl script in the /apache2/bin directory and now have gone onto the make stage. However i'm still got an error :o( Turns out that this was simply because I had a space in a folder name lower down in the directory structure. I removed the space and the compile has worked straight off, excellent! Thanks Richard! Regards, Stuart -Original Message- From: Stuart Stephen [mailto:[EMAIL PROTECTED] Sent: 14 August 2003 09:21 To: Tomcat Users List Subject: RE: Getting mod_jk2 to run with Tomcat 4.1.27 and Apache 2.0.47 Ok, one last question.. where might I obtain or find the apxs2's? I'm not sure wether I have them or not. -Original Message- From: Richard Park [mailto:[EMAIL PROTECTED] Sent: 13 August 2003 23:28 To: Tomcat Users List Subject: Re: Getting mod_jk2 to run with Tomcat 4.1.27 and Apache 2.0.47 Stuart, I've currently got: -- Apache 2.0.47 Tomcat 5.0.7 mod_jk2 from here: http://apache.mirror.secondchapter.info/jakarta/tomcat-4/source/jakarta-tomc at-connectors-4.1.27-src.tar.gz -- Instead of installing with Ant (which was giving me problems as well), I built mod_jk2 using './configure' from the jakarta-tomcat-connectors-4.1.27-src/jk/native2 directory: -- ./configure --with-apxs2=/path/to/apxs ./configure --with-apxs2=/usr/local/apache/bin/apxs *note: if there is no configure script in this directory, you must first run ./buildconf.sh -- Once configure has finished creating a makefile, run make. Once make is complete, go to: -- jakarta-tomcat-connectors-4.1.27-src/jk/build/jk2/apache2/.libs -- and you will find the two files that you need: -- mod_jk2.socopy into your apache modules directory jkjni.socopy into your $CATALINA_HOME/server/lib directory -- Now just make sure you have a jk2.properties file in your $CATALINA_HOME/conf directory, and manually create a workers2.properties file in your apache conf directory, with the proper settings/values: http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/doc/jk2/confi gwebex.html Hope that helps! - 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: Getting mod_jk2 to run with Tomcat 4.1.27 and Apache 2.0.47
I've included my JK2 build logs here. I'm no expert in these things, but should the line in the configure read: checking for suffix of object files... so - instead of checking for suffix of object files... o If these is anything else that sticks out then please let me know. Thanks, Stuart Stephen [EMAIL PROTECTED] native2]# make clean list=' server/apache2'; \ for i in $list; do \ echo Making $target in $i; \ if test $i != .; then \ (cd $i make clean) || exit 1; \ fi; \ done; Making in server/apache2 make[1]: Entering directory `/root/Tomcat4.1/jakarta-tomcat-connectors-4.1.27-src/jk/native2/server/apac he2' rm -rf ../../../build/jk2/apache2/*.lo ../../../build/jk2/apache2/*.la ../../../build/jk2/apache2/*.o ../../../build/jk2/apache2/.libs ../../../build/jk2/apache2/*.so make[1]: Leaving directory `/root/Tomcat4.1/jakarta-tomcat-connectors-4.1.27-src/jk/native2/server/apac he2' [EMAIL PROTECTED] native2]# ./buildconf.sh libtoolize --force --automake --copy aclocal automake --copy --add-missing autoconf [EMAIL PROTECTED] native2]# ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-apache2-lib=/usr /local/apache2/lib/ --with-apache-include=/usr/local/apache2/include/ --with -apache=/root/Apache/ --with-tomcat41=/root/Tomcat4.1/Tomcat/ --with-apr-inc lude=/root/Apache/srclib/apr/include/ checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for gawk... gawk checking whether make sets $(MAKE)... yes checking for gcc... gcc checking for C compiler default output... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking for style of include used by make... GNU checking dependency style of gcc... none checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking for ld used by GCC... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for /usr/bin/ld option to reload object files... -r checking for BSD-compatible nm... /usr/bin/nm -B checking for a sed that does not truncate output... /bin/sed checking whether ln -s works... yes checking how to recognise dependent libraries... pass_all checking command to parse /usr/bin/nm -B output... ok checking how to run the C preprocessor... gcc -E checking for egrep... grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking dlfcn.h usability... yes checking dlfcn.h presence... yes checking for dlfcn.h... yes checking for ranlib... ranlib checking for strip... strip checking for objdir... .libs checking for gcc option to produce PIC... -fPIC checking if gcc PIC flag -fPIC works... yes checking if gcc static flag -static works... yes checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.lo... yes checking if gcc supports -fno-rtti -fno-exceptions... yes checking whether the linker (/usr/bin/ld) supports shared libraries... yes checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking dynamic linker characteristics... GNU/Linux ld.so checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes checking whether -lc should be explicitly linked in... no creating libtool checking for test... /usr/bin/test checking for rm... /bin/rm checking for grep... /bin/grep checking for echo... /bin/echo checking for sed... /bin/sed checking for cp... /bin/cp checking for mkdir... /bin/mkdir no apxs given need to check for Perl first, apxs depends on it... checking for perl... /usr/bin/perl building connector for apache-2.0 apache2_LIB checking for tomcat33 location... not provided checking for tomcat40 location... not provided checking for tomcat41 location... /root/Tomcat4.1/Tomcat/ checking for JDK location (please wait)... /usr/java/j2sdk1.4.2 from environment checking Java platform... checking Java platform... checking os_type directory... linux configure: creating ./config.status config.status: creating Makefile config.status: creating server/apache13/Makefile config.status: creating server/apache13/Makefile.apxs config.status: creating server/apache2/Makefile config.status: creating server/apache2/Makefile.apxs config.status: creating ../build.properties config.status: creating scripts/build/unix/dummy config.status: executing depfiles commands [EMAIL PROTECTED] native2]# make
RE: Getting mod_jk2 to run with Tomcat 4.1.27 and Apache 2.0.47
Afraid not, there's no .libs directory under /jk/native2/server/apache2/ (checked with 'ls -a') I think its compiling wrong, not sure why. Tried doing --enabled-shared=max but that didnt work either. Still no .so created. I ran: 'locate -u mod_jk2.so' and that found nothing, and I tried 'find / -name mod_jk2.so' and that found nothing either. Thanks -Original Message- From: Jørgen Nørgaard [mailto:[EMAIL PROTECTED] Sent: 14 August 2003 11:14 To: Tomcat Users List Subject: RE: Getting mod_jk2 to run with Tomcat 4.1.27 and Apache 2.0.47 Well... it compiled. But the files I was expecting to come out didn't. I've got a mod_jk2.la, mod_jk2.a, mod_jk2.lo, mod_jk2.o, mod_jk2.lai, but not a mod_jk2.so ? Of all places it is (probably) in: jk/native2/server/apache2/.libs/mod_jk2.so Is it something with apxs that puts it there? Do I just need to rename one of the files, or has the compile done something wrong? Thanks, Stuart Stephen -Original Message- From: Stuart Stephen [mailto:[EMAIL PROTECTED] Sent: 14 August 2003 09:46 To: Tomcat Users List Subject: RE: Getting mod_jk2 to run with Tomcat 4.1.27 and Apache 2.0.47 Ok, sorry, my bad. I've found the apxs perl script in the /apache2/bin directory and now have gone onto the make stage. However i'm still got an error :o( Turns out that this was simply because I had a space in a folder name lower down in the directory structure. I removed the space and the compile has worked straight off, excellent! Thanks Richard! Regards, Stuart -Original Message- From: Stuart Stephen [mailto:[EMAIL PROTECTED] Sent: 14 August 2003 09:21 To: Tomcat Users List Subject: RE: Getting mod_jk2 to run with Tomcat 4.1.27 and Apache 2.0.47 Ok, one last question.. where might I obtain or find the apxs2's? I'm not sure wether I have them or not. -Original Message- From: Richard Park [mailto:[EMAIL PROTECTED] Sent: 13 August 2003 23:28 To: Tomcat Users List Subject: Re: Getting mod_jk2 to run with Tomcat 4.1.27 and Apache 2.0.47 Stuart, I've currently got: -- Apache 2.0.47 Tomcat 5.0.7 mod_jk2 from here: http://apache.mirror.secondchapter.info/jakarta/tomcat-4/source/jakarta-tom c at-connectors-4.1.27-src.tar.gz -- Instead of installing with Ant (which was giving me problems as well), I built mod_jk2 using './configure' from the jakarta-tomcat-connectors-4.1.27-src/jk/native2 directory: -- ./configure --with-apxs2=/path/to/apxs ./configure --with-apxs2=/usr/local/apache/bin/apxs *note: if there is no configure script in this directory, you must first run ./buildconf.sh -- Once configure has finished creating a makefile, run make. Once make is complete, go to: -- jakarta-tomcat-connectors-4.1.27-src/jk/build/jk2/apache2/.libs -- and you will find the two files that you need: -- mod_jk2.socopy into your apache modules directory jkjni.socopy into your $CATALINA_HOME/server/lib directory -- Now just make sure you have a jk2.properties file in your $CATALINA_HOME/conf directory, and manually create a workers2.properties file in your apache conf directory, with the proper settings/values: http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/doc/jk2/conf i gwebex.html Hope that helps! - 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] -- /jørgen nørgaard SmartTV A/S [EMAIL PROTECTED] Phone: +45 3332 5770 http://smarttv.dk/ - 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: Apache 2.0.47 + Tomcat 4.1.27 + OpenSSL 0.9.7b on Win2k
Jay, Try going to http://hunter.campbus.com or for an archive of stuff try http://tor.ath.cx/~hunter/apache/. Chris aka 'Hunter' (the person behind it all) has compiled many win32 apache servers with SSL enabled. Hope this gets you where you want to be. Stuart -Original Message- From: Jay Garala [mailto:[EMAIL PROTECTED] Sent: 13 August 2003 23:36 To: Tomcat User (E-mail) Subject: Apache 2.0.47 + Tomcat 4.1.27 + OpenSSL 0.9.7b on Win2k Hello, Has anyone tried/build a working configuration of these components working together using JK (1)? Does JK (1) still work with the newer stuff? If so, how or where could i get the information? Thanks, Jay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Executing Windows Scripts ?
Hi, I doubt that there is a way to do this, but you never know. We are running Tomcat/Apache/Win2K Server and wish to convert a Microsoft .ppt file format into something that could be viewable on the web. The idea is that the user uploads the file and then we do some background processes meaning that the person can view it on the web, even if they don't have powerpoint. The best way we can think of doing this is by using some windows scripting that executes when they upload the file. Can we execute the scripts automatically from tomcat or start other system processes? Thanks, Stuart Stephen -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Executing Windows Scripts ?
How would I go about doing that? I didn't know that you could? -Original Message- From: Steven Sporen [mailto:[EMAIL PROTECTED]] Sent: 04 September 2002 11:24 To: Tomcat Users List Subject: RE: Executing Windows Scripts ? Why don't you call into PowerPoint's COM objects directly from Tomcat? -Original Message- From: Stuart Stephen [mailto:[EMAIL PROTECTED]] Sent: 04 September 2002 12:23 To: [EMAIL PROTECTED] Subject: Executing Windows Scripts ? Hi, I doubt that there is a way to do this, but you never know. We are running Tomcat/Apache/Win2K Server and wish to convert a Microsoft .ppt file format into something that could be viewable on the web. The idea is that the user uploads the file and then we do some background processes meaning that the person can view it on the web, even if they don't have powerpoint. The best way we can think of doing this is by using some windows scripting that executes when they upload the file. Can we execute the scripts automatically from tomcat or start other system processes? Thanks, Stuart Stephen -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: It would be great IF somebody answered me, ONCE, for change :(
Probably quite a lot then. ;o) -Original Message- From: Luminous Heart [mailto:[EMAIL PROTECTED]] Sent: 19 August 2002 16:22 To: Tomcat Users List Subject: RE: It would be great IF somebody answered me, ONCE, for change :( Well, it is a big application. And it was working fine with tc3.x. I have never had such a problem. I noticed that I had to do lots of modifications to my code to get TC4.0.4 work. What is different? --- Campano, Troy [EMAIL PROTECTED] wrote: Have you tried commenting out different parts of your code to see what part is causing this problem? -Original Message- From: Luminous Heart [mailto:[EMAIL PROTECTED]] Sent: Monday, August 19, 2002 11:14 AM To: Tomcat Users List Subject: It would be great IF somebody answered me, ONCE, for change :( I keep on asking this question but noone helps. Is it a bug in TC? Why do I get NullPointerException? If I press refresh a couple of times I would go through. 2002-08-19 00:53:32 StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception java.lang.NullPointerException at org.postgresql.core.QueryExecutor.execute(QueryExecutor.java:61) at org.postgresql.Connection.ExecSQL(Connection.java:398) at org.postgresql.jdbc2.Statement.execute(Statement.java:130) at org.postgresql.jdbc2.Statement.executeQuery(Statement.java:54) at org.postgresql.jdbc2.PreparedStatement.executeQuery(PreparedStatement.java:9 9) at com.codestudio.sql.PoolManPreparedStatement.executeQuery(Unknown Source) at org.apache.jsp.AccountAccess$jsp._jspService(AccountAccess$jsp.java:207) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja va:201) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:190) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase .java:531) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2 46) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:392) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :174) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at
ADMINS: Ban a user?
Hello Admins? Can we please get [EMAIL PROTECTED] banned from this list please? This is the second time I have recieved his 'advertising questionnaire' that I still have absolutely no intention of looking at. It's completely off topic and of no interest to all the parties subscribed to this TOMCAT USERS list. It's just plain and simple SPAM. Thank you, SS. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
HTTPS URL in Tomcat
Hi all, I keep getting a MALFormedURLException in my servlet which is trying to connect to a URL which begins 'https://'. However, I keep getting: java.net.MalformedURLException: unknown protocol: https at java.net.URL.init(Unknown Source) at java.net.URL.init(Unknown Source) at java.net.URL.init(Unknown Source) I've put '-Djava.protocol.handler.pkgs=com.sun.net.ssl.internal.www.protocol' in my tomcat startup. Also I have checked the java.security file and the line 'security.provider.3=com.sun.net.ssl.internal.ssl.Provider' is there. I have included all of the com.sun.net.*.*.*.*.*.* directories as a precaution yet the error is still cropping up? Why am I still getting these errors and how can I fix this? Thanks for any help that is supplied! Stuart Stephen -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Redirecting HTTP - HTTPS? (second attempt)
you could use javascript on your non secure http page? script language=javascript window.location = 'https://www.sitename.com' /script That would do the trick Stevie -Original Message- From: Steve Baker [mailto:[EMAIL PROTECTED]] Sent: 17 July 2002 13:02 To: [EMAIL PROTECTED] Subject: Redirecting HTTP - HTTPS? (second attempt) -- It appears that much of the code from my first post got wiped out. Trying the message again here a second time. Thanks. -SB -- Have any of you experienced Tomcat changing the *domain name* of the request to localhost when you're trying to automatically redirect from HTTP to HTTPS? We know that it's supposed to change the protocol and the port, but the domain as well? Here's the situation: I have a directory (db) on my site (for the sake of this email, www.mysite.com) that I want to protect using SSL. Additionally, I need any wayward HTTP requests to this directory to be automatically redirected to HTTPS to ensure that they are SSL-encrypted. To set this up, I followed the SSL Configuration How-To, created the keystore, and generated a private key. I then edited /conf/server.xml and /WEB-INF/web.xml (details below) to automatically redirect those certain HTTP requests over to HTTPS. Finally, I restarted Tomcat. Now when I reference my HTTPS URL *directly*, SSL kicks in, the browser padlock is locked, and everything works great: https://www.mysite.com:8443/db/index.jsp As I stated, however, I've configured the HTTP request: http://www.mysite.com:8080/db/index.jsp To automatically redirect to that HTTPS URL from above: https://www.mysite.com:8443/db/index.jsp BUT, for some reason, Tomcat is changing the domain to LOCALHOST: https://localhost:8443/db/index.jsp So... basically, Tomcat's got it about 80% right. The protocol and port were succesfully redirected (http 8080 - https 8443), but the domain was changed. This instance of Tomcat is on a remote machine, *NOT* my local machine, so localhost fails. My question -- why would Tomcat be changing the server name in such a way? FYI, here is the relevant code from conf/server.xml: - !-- Non-SSL Connector on Port 8080 -- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8080 minProcessors=5 maxProcessors=75 enableLookups=false redirectPort=8443 acceptCount=10 connectionTimeout=6 debug=0 scheme=http secure=false/ !-- SSL Connector on Port 8443 -- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8443 minProcessors=5 maxProcessors=75 enableLookups=false acceptCount=10 connectionTimeout=6 debug=0 scheme=https secure=true Factory className=org.apache.coyote.tomcat4.CoyoteServerSocketFactory clientAuth=false protocol=TLS / /Connector !-- Standard Engine -- Engine name=Standard Engine defaultHost=www.mysite.com debug=0 Host name=www.mysite.com appBase=/home/baker/jbaker/web debug=0 unpackWARs=false Context path= docBase= debug=0 reloadable=true/ /Host /Engine - Here is the relevant code from web.xml: - security-constraint web-resource-collection web-resource-nameSecure SSL Access/web-resource-name url-pattern/db/*/url-pattern /web-resource-collection user-data-constraint transport-guaranteeCONFIDENTIAL/transport-guarantee /user-data-constraint /security-constraint - Note that I have: * uncommented the SSL connector * properly set the HTTP connector's redirectPort to SSL's 8443 * changed the Engine's defaulthost to www.mysite.com * changed the Host's name to www.mysite.com * set the url-pattern match to /db/* in web.xml * added the CONFIDENTIAL transport-guarantee Nothing really extraordinary here. Moreover, a grep for localhost in both of these files returns zero results. I'm just not sure where it's coming from ... especially when Tomcat seems to be doing everything *else* correctly here. Any ideas? Thanks in advance!! -Steve Baker p.s. Performing a brute force solution such as: if (request.getScheme().equals(http)) { // oops! response.Redirect() to the https URL instead. } ... at the top of every .jsp in my HTTPS-only directory isn't going to be the right choice for this particular project. I will eventually employ that as a backup to ensure security, but I don't wish to go with that as my first line of defense... -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
JDBC Drivers
Hi guys and gals, Could someone give me advice on the best (and free if possible) sql server drivers to use in my tomcat servlets? The sql server I have available is a MySql server or a MS SQL Server should I need it. Thanks, SS -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: SEEKING URGENT ASSISTANCE
yeah right, very funny -Original Message- From: savimbi thomas [mailto:[EMAIL PROTECTED]] Sent: 22 June 2002 11:59 To: [EMAIL PROTECTED] Subject: SEEKING URGENT ASSISTANCE URGENT BUSINESS PROPOSAL Dear sir , My name is Thomas Savimbi, I am the eldest son of Jonas Savimbi, the leader UNITA of Angola. You may know that my father was recently killed in a battle with the federal troops of Angola, led by President Dos Santos, who has been my late father's rival for years. Now the liberation of Angola, for which my father has been fighting for since 1966 has no future. President Dos Santos, remains a colossal failure since he assumed office. He is running a government of greed and gross marginalisation. The United States of America, the United Kingdom and other Western powers, are aware of this glaring fact, and have done nothing about it. It is most unfortunate and disheartening that my father has died. Now UNITA is like a herd of cattle without shepherd. Prominent members are now lobbying to assume office as leader to enrich themselves and some of them who see me as a threat to their ambitions, are even plotting to kill me. However, I am a young man who has ambitions and is not in any way interested in wars. I write to seek for your urgent help in respect to safe keeping of some of my father's money(US$25.4Million) that arose from Diamonds sales. This money(US$25.4Million) was already on its way to my father's Swiss bank account and is in transit with a safe deposit company in Amsterdam, Netherlands. We used major part of our money in prosecuting the war. It is very clear with the way things are now, that President Dos Santos will freeze my father's assests and accounts in this country to ground UNITA. I wish to use this money to safeguard my future. It is paramount that you understand that the kind of trust and confidence being reposed in you is extraordinary, and that this is an act of desperation. ALSO, THIS CONTACT WITH YOU SHUOLD BE TREATED WITH UTMOST SECRECY AND CONFIDENTIALITY. The help I need from you is clearing the money which is deposited with a security company in Amsterdam, after which, a professional banker, who is an attachi of IMF will join you and assist in depositing the money and lodging into an account in your name. The money shall remain in your custody till I decide to leave Angola. In the interim, the money can be invested into riskfree profitable ventures, and there will an agreement by my lawyer to protect my interest. I have all the documents that will enable you claim the consignment from the security company. I will reward you with 20% of the money. I to thank you in advance in anticipation for your assistance in enabling me achieve this goal. Please contact me whether or not you are interested in assisting me. This will enable me scout for another partner in the event of noninterest on your part. With best regards, Mr.Thomas Savimbi. _ Communicate with others using Lycos Mail for FREE! http://mail.lycos.com/ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Concealed
lol, fool -Original Message- From: Nadeem Lee [mailto:[EMAIL PROTECTED]] Sent: 23 June 2002 10:22 To: [EMAIL PROTECTED] Cc: Nadeem Lee Subject: Concealed Subject: Re: SEEKING URGENT ASSISTANCE ** Top Secret ** ** High Priority ** Hi there Thomas. I really do want to help you. If I decide to do so, what are the risks involve and what is expected of me? (Do I have to go to Amsterdam?, etc.) Is this legal? Please outline the details Hope all goes well with you. Nadeem. [EMAIL PROTECTED] 06/22/02 12:58PM URGENT BUSINESS PROPOSAL Dear sir , My name is Thomas Savimbi, I am the eldest son of Jonas Savimbi, the leader UNITA of Angola. You may know that my father was recently killed in a battle with the federal troops of Angola, led by President Dos Santos, who has been my late father's rival for years. Now the liberation of Angola, for which my father has been fighting for since 1966 has no future. President Dos Santos, remains a colossal failure since he assumed office. He is running a government of greed and gross marginalisation. The United States of America, the United Kingdom and other Western powers, are aware of this glaring fact, and have done nothing about it. It is most unfortunate and disheartening that my father has died. Now UNITA is like a herd of cattle without shepherd. Prominent members are now lobbying to assume office as leader to enrich themselves and some of them who see me as a threat to their ambitions, are even plotting to kill me. However, I am a young man who has ambitions and is not in any way interested in wars. I write to seek for your urgent help in respect to safe keeping of some of my father's money(US$25.4Million) that arose from Diamonds sales. This money(US$25.4Million) was already on its way to my father's Swiss bank account and is in transit with a safe deposit company in Amsterdam, Netherlands. We used major part of our money in prosecuting the war. It is very clear with the way things are now, that President Dos Santos will freeze my father's assests and accounts in this country to ground UNITA. I wish to use this money to safeguard my future. It is paramount that you understand that the kind of trust and confidence being reposed in you is extraordinary, and that this is an act of desperation. ALSO, THIS CONTACT WITH YOU SHUOLD BE TREATED WITH UTMOST SECRECY AND CONFIDENTIALITY. The help I need from you is clearing the money which is deposited with a security company in Amsterdam, after which, a professional banker, who is an attaché of IMF will join you and assist in depositing the money and lodging into an account in your name. The money shall remain in your custody till I decide to leave Angola. In the interim, the money can be invested into riskfree profitable ventures, and there will an agreement by my lawyer to protect my interest. I have all the documents that will enable you claim the consignment from the security company. I will reward you with 20% of the money. I to thank you in advance in anticipation for your assistance in enabling me achieve this goal. Please contact me whether or not you are interested in assisting me. This will enable me scout for another partner in the event of noninterest on your part. With best regards, Mr.Thomas Savimbi. _ Communicate with others using Lycos Mail for FREE! http://mail.lycos.com/ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Security - Attack
I think they are code red attacks. These shouldn't be anything to worry about on a Tomcat server if I am correct in my thinking. They only affect IIS. -Original Message- From: Laura [mailto:[EMAIL PROTECTED]] Sent: 13 June 2002 09:35 To: Tomcat Users List Subject: Security - Attack Hi all, well I have, in my opinion, a very interesting question. Last week we went in a production enviroment: we have apache + tomcat with an important web application xxx (http.conf has JkMount /xxx worker). Well, this morning I have discovered that somebody has tried to attack my server: in the Apache error log I have found calls as /scripts/..%5c%5c../winnt/system32/cmd.exe, /scripts/., and so on. My question is: is Tomcat secure? How can I do Tomcat secure? Is all my system secure? ( my machine is a solaris 8). Thanks Laura -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
***Please reply as no one on this list has offered ANY help***
Hello, I'm having touble with my HTTP tunnelling servlet and its driving me crazy. The tunnel works fine for a single user. However when another user connects to the tunnel the servlet does not perform how I would expect it to. The problem is, that when another user sends a message. ALL instances of the variables seem to swap over to the most recent. However the threads still all run. So, if mr x and mr y are in a meeting. Mr x joined first, he says 'hello'. Hello is sent and recieved once how I would expect it to do it. However, now mr y joins and says 'hello'. and he recieves the messages for himself AND for mr x. This is driving me insane and I can't seem to find a way around it, I don't understand why the entire data structure is being overwritten when it is a different request for a different user. The sockets are different, yet when i do the test, they aren't! But the server isnt sending the message out on the wrong socket. I've tested that. It's somehow the right sockets, recieving the right messages, but then sending them to the wrong place. But how can this be? It makes no sense to me. The code for the tunnel is below. Stuart Stephen import javax.servlet.*; import javax.servlet.http.*; import javax.servlet.ServletException.*; import javax.servlet.UnavailableException.*; import java.lang.Exception.*; import java.io.*; import java.util.*; import java.net.*; public class TestTunnel extends HttpServlet { Hashtable connections = null; protected void service(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { try { String method = (String)req.getParameter(method).trim(); if(method!=null !method.equalsIgnoreCase()) { if(method.equalsIgnoreCase(connect)) connectUser(req, res, (String)req.getParameter(mid).trim(), , (String)req.getParameter(email).trim()); else if(method.equalsIgnoreCase(msg)) msgServer((String)req.getParameter(mid).trim(), , (String)req.getParameter(email).trim(), (String)req.getParameter(msg).trim()); else { System.err.println(redirecting user); res.sendRedirect(http://www.disney.com;); } } } catch(Exception e) { e.printStackTrace(); } } protected synchronized void msgServer(String mid, String uid, String email, String msg) { if(connections!=null) { try { System.err.println(msgServer()); Hashtable meet = (Hashtable)connections.get(mid++uid++email); if(meet!=null) { ((ToServer)meet.get(ToServer)).write(msg); } else System.err.println(msgServer(): meet == null); } catch(Exception e) { e.printStackTrace(); } } else System.err.println(msgServer(): No connections to use.); } protected void connectUser(HttpServletRequest req, HttpServletResponse res, String mid, String uid, String email) { try { System.err.println(CONNECTING +mid++uid++email); Socket socket = new Socket(127.0.0.1, 3000); ToApplet app = new ToApplet(socket, res, mid, uid, email); ToServer ser = new ToServer(socket, req, mid, uid, email); app.start(); ser.start(); Hashtable meet = new Hashtable(); meet.put(ToApplet, app); meet.put(ToServer, ser); meet.put(Socket, socket); if(connections==null) connections = new Hashtable(); connections.put(mid++uid++email, meet.clone()); while(meet!=null ((ToServer)meet.get(ToServer)).isAlive() ((ToApplet)meet.get(ToApplet)).isAlive()) { try { System.err.println(Threads alive); Thread.sleep(1000); } catch(Exception ex) { ex.printStackTrace(); } } if(meet!=null) { try { ((ToServer)meet.get(ToServer)).objIn.close(); } catch(Exception ex) { } try { ((ToServer)meet.get(ToServer)).sockObjOut.close(); } catch(Exception ex) { } try { ((ToApplet)meet.get(ToApplet)).objOut.close(); } catch(Exception ex) { } try { ((ToApplet)meet.get(ToApplet)).sockObjIn.close(); } catch(Exception ex) { } try { ((Socket)meet.get(Socket)).close(); } catch(Exception ex) { } } else System.err.println(connectUser(): meet == null); connections.remove(mid++uid++email); } catch(Exception e) { e.printStackTrace(); } System.err.println(DISCONNECTED +mid++uid++email); } } class ToApplet extends Thread implements Runnable { DataInputStream sockObjIn = null; DataOutputStream objOut = null; String mid = null; String uid = null; String email = null; Socket socket = null; HttpServletResponse res = null; boolean isAlive = true; public ToApplet(Socket socket, HttpServletResponse res, String mid, String uid, String email) { try { this.objOut = new DataOutputStream(res.getOutputStream()); this.sockObjIn = new DataInputStream(socket.getInputStream()); this.mid = mid; this.uid = uid; this.email
RE: ***Please reply as no one on this list has offered ANY help***
I've not declared any variables as static -Original Message- From: Ray Letts [mailto:[EMAIL PROTECTED]] Sent: 21 May 2002 22:18 To: Tomcat Users List Subject: Re: ***Please reply as no one on this list has offered ANY help*** A quick question without going over all that code: The problem is, that when another user sends a message. ALL instances of the variables seem to swap over to the most recent. static variables? these get instantiated once per class not per object and thus would act as you have said they are. ray -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: ***Please reply as no one on this list has offered ANY help***
Nah, I put meet.clone() as a test, I just didn't take it off again. I've been told by someone on the list to try using the session to reference things instead. I'll have to give that a go before I continue asking questions. Thank you for a response. -Original Message- From: Denis Haskin [mailto:[EMAIL PROTECTED]] Sent: 21 May 2002 22:38 To: Tomcat Users List Subject: Re: ***Please reply as no one on this list has offered ANY help*** Without digging in too deeply, is it possible your problem is the cloning of the 'meet' Hashtable in connectUser? Remember that cloning a Hashtable (and other Collection/Dictionary objects) is a shallow clone. Only the table itself is cloned, not the objects pointed to by the table. I'm not *sure* that's a problem in this case, but is that what you intend? It's not clear to me why you're cloning it there, anyway... dwh Stuart Stephen wrote: Hello, I'm having touble with my HTTP tunnelling servlet and its driving me crazy. The tunnel works fine for a single user. However when another user connects to the tunnel the servlet does not perform how I would expect it to. [...] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Receipt of 16/05/102 17:27 message
Can you please turn these off. SS. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 17 May 2002 11:19 To: Tomcat Users List Subject: Receipt of 16/05/102 17:27 message Re:Re: I'm getting no responses to my requests for help on t... ** This message has been sent via the Internet. Internet communications are not secure against interception or modification. Severn Trent Systems therefore can not guarantee that this message has not been modified in transit, and this message should not be viewed as contractually binding. This message and any files transmitted with it are confidential and intended solely for the use of the addressee. If you have received this message in error please notify the sender and destroy your copies of the message and any attached files. *** Severn Trent Systems Ltd : a part of Severn Trent plc. Registered in England and Wales Registration No. 2394552 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
HTTP Tunnel problem
Hi all, I have run into another problem. I can recieve messages from the server that I am tunnelling to and send them to the applet fine. However it is proving difficult to do things the other way round, when I want to send a message from the applet to the internal server I am having java.io.EOFException: code expected exceptions appear. The connection from the Applet is just a simple URLConnection. This is not closed unless the applet closes or the user quits. I have some tomcat logs to show you what is going wrong. I hope someone can be of help here. Thanks, Stuart Stephen start of servlet ToApplet() ToServer() ...Reading for Object Streams java.io.EOFException: Expecting code at java.io.ObjectInputStream.peekCode(Unknown Source) at java.io.ObjectInputStream.readObject(Unknown Source) at java.io.ObjectInputStream.readObject(Unknown Source) at TestTunnel$ToApplet.run(TestTunnel.java:94) From ChatServer: some random string object blah blah blah ...Reading for Object Streams java.io.EOFException: Expecting code at java.io.ObjectInputStream.peekCode(Unknown Source) at java.io.ObjectInputStream.readObject(Unknown Source) at java.io.ObjectInputStream.readObject(Unknown Source) at TestTunnel$ToApplet.run(TestTunnel.java:94) java.io.EOFException: Expecting code at java.io.ObjectInputStream.peekCode(Unknown Source) at java.io.ObjectInputStream.readObject(Unknown Source) at java.io.ObjectInputStream.readObject(Unknown Source) at TestTunnel$ToApplet.run(TestTunnel.java:94) etc... My code is as follows. import javax.servlet.*; import javax.servlet.http.*; import javax.servlet.ServletException.*; import javax.servlet.UnavailableException.*; import java.lang.Exception.*; import java.io.*; import java.util.*; import java.net.*; public class TestTunnel extends HttpServlet { // applet connections ObjectOutputStream objOut = null; ObjectInputStream objIn = null; // chatserver connections Socket socket = null; ObjectOutputStream sockObjOut = null; ObjectInputStream sockObjIn = null; ToApplet app = null; ToServer ser = null; protected void service(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { try { // get data stream from applet System.err.println(start of servlet); objOut = new ObjectOutputStream(res.getOutputStream()); objIn = new ObjectInputStream(req.getInputStream()); objOut.useProtocolVersion(objOut.PROTOCOL_VERSION_1); // create socket to chat server and the streams socket = new Socket(127.0.0.1, 3000); sockObjOut = new ObjectOutputStream(socket.getOutputStream()); sockObjIn = new ObjectInputStream(socket.getInputStream()); sockObjOut.useProtocolVersion(sockObjOut.PROTOCOL_VERSION_1); app = new ToApplet(objIn, sockObjOut); ser = new ToServer(sockObjIn, objOut); while(ser.connIsAlive() || app.connIsAlive()) { try { Thread.sleep(500); } catch(Exception ex) { ex.printStackTrace(); } } System.err.println(end of servlet); } catch(Exception e) { e.printStackTrace(); } } public void destroy() { try { objIn.close(); objOut.close(); sockObjIn.close(); sockObjOut.close(); socket.close(); } catch(Exception e) { e.printStackTrace(); } } private class ToApplet extends Thread { ObjectOutputStream objOut = null; ObjectInputStream sockObjIn = null; boolean isAlive = true; public ToApplet(ObjectInputStream sockObjIn, ObjectOutputStream objOut) { try { System.err.println(ToApplet()); this.objOut = objOut; this.sockObjIn = sockObjIn; this.start(); } catch(Exception e) { e.printStackTrace(); } } public void run() { try { Object obj = new Object(); while(obj!=null) { try { System.err.println(...Reading for Object Streams); obj = sockObjIn.readObject(); System.err.println(...Read Object Stream); write(obj); } catch(EOFException eof) { eof.printStackTrace(); } catch(Exception ex) { ex.printStackTrace(); } } } catch(Exception e) { e.printStackTrace(); } } public boolean connIsAlive() { return isAlive; } public void write(Object msg) { try { System.err.println(ChatApplet: +msg.toString()); objOut.writeObject(msg); objOut.flush(); objOut.reset(); } catch(Exception e) { e.printStackTrace(); isAlive = false; } } } private class ToServer extends Thread { ObjectInputStream objIn = null; ObjectOutputStream sockObjOut = null; boolean isAlive = true; public
HTTP Tunnelling problem?? Please help
Hello all, I'm having problems trying to write a HttpTunnel for java objects in Tomcat. For some reason I'm getting a ClassCastException. I don't understand this. I've even tried forcing it as you can see in my code below. The exception that i'm getting is not very clear and i can't put my finger on it. I have attached the exception from Apache/Tomcat and the code for the tunnel at the bottom of this email. If you can help I would be very grateful. Regards, Stuart Stephen Apache Tomcat/4.0.1 - HTTP Status 500 - Internal Server Error type Exception report message Internal Server Error description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request. exception java.lang.ClassCastException: TestTunnel at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:820) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:615) at org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java :396) at org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:180) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:201) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2 46) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :163) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:371) at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:424) at java.lang.Thread.run(Unknown Source) --- import javax.servlet.*; import javax.servlet.http.*; import javax.servlet.ServletException.*; import javax.servlet.UnavailableException.*; import java.lang.Exception.*; import java.io.*; import java.util.*; import java.net.*; public class TestTunnel extends Thread { // applet connections ObjectOutputStream objOut = null; ObjectInputStream objIn = null; // chatserver connections Socket socket = null; ObjectOutputStream sockObjOut = null; ObjectInputStream sockObjIn = null; ToApplet app = null; ToServer ser = null; protected void service(HttpServletRequest req, HttpServletResponse res) throws ServletException,IOException { try { // get data stream from applet System.err.println(start of servlet); objIn = new ObjectInputStream(req.getInputStream()); objOut = new ObjectOutputStream(res.getOutputStream
RE: HTTP Tunnelling problem?? Please help
Solved.. I forgot to extend the Class TunnelTest with the HttpServlet extension. SS -Original Message- From: Stuart Stephen [mailto:[EMAIL PROTECTED]] Sent: 15 May 2002 11:56 To: Tomcat Users List Subject: HTTP Tunnelling problem?? Please help Hello all, I'm having problems trying to write a HttpTunnel for java objects in Tomcat. For some reason I'm getting a ClassCastException. I don't understand this. I've even tried forcing it as you can see in my code below. The exception that i'm getting is not very clear and i can't put my finger on it. I have attached the exception from Apache/Tomcat and the code for the tunnel at the bottom of this email. If you can help I would be very grateful. Regards, Stuart Stephen Apache Tomcat/4.0.1 - HTTP Status 500 - Internal Server Error type Exception report message Internal Server Error description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request. exception java.lang.ClassCastException: TestTunnel at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:820) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:615) at org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java :396) at org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:180) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:201) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2 46) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :163) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:371) at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:424) at java.lang.Thread.run(Unknown Source) --- import javax.servlet.*; import javax.servlet.http.*; import javax.servlet.ServletException.*; import javax.servlet.UnavailableException.*; import java.lang.Exception.*; import java.io.*; import java.util.*; import java.net.*; public class TestTunnel extends Thread { // applet connections ObjectOutputStream objOut = null; ObjectInputStream objIn = null; // chatserver connections Socket socket = null; ObjectOutputStream sockObjOut = null; ObjectInputStream sockObjIn = null; ToApplet app = null; ToServer ser = null; protected void service(HttpServletRequest req, HttpServletResponse res) throws
HTTP Tunnel question
Hi all, Me again :o) I have progressed a bit further and have now run into another problem. I can recieve messages from the server that I am tunnelling to and send them to the applet fine. However it is proving difficult to do things the other way round, when I want to send a message from the applet to the internal server I am having java.io.EOFException: code expected exceptions appear. The connection from the Applet is just a simple URLConnection. This is not closed unless the applet closes or the user quits. I have some tomcat logs to show you what is going wrong. I hope someone can be of help here. Thanks, Stuart Stephen start of servlet ToApplet() ToServer() ...Reading for Object Streams java.io.EOFException: Expecting code at java.io.ObjectInputStream.peekCode(Unknown Source) at java.io.ObjectInputStream.readObject(Unknown Source) at java.io.ObjectInputStream.readObject(Unknown Source) at TestTunnel$ToApplet.run(TestTunnel.java:94) From ChatServer: some random string object blah blah blah ...Reading for Object Streams java.io.EOFException: Expecting code at java.io.ObjectInputStream.peekCode(Unknown Source) at java.io.ObjectInputStream.readObject(Unknown Source) at java.io.ObjectInputStream.readObject(Unknown Source) at TestTunnel$ToApplet.run(TestTunnel.java:94) java.io.EOFException: Expecting code at java.io.ObjectInputStream.peekCode(Unknown Source) at java.io.ObjectInputStream.readObject(Unknown Source) at java.io.ObjectInputStream.readObject(Unknown Source) at TestTunnel$ToApplet.run(TestTunnel.java:94) etc... My code is as follows. import javax.servlet.*; import javax.servlet.http.*; import javax.servlet.ServletException.*; import javax.servlet.UnavailableException.*; import java.lang.Exception.*; import java.io.*; import java.util.*; import java.net.*; public class TestTunnel extends HttpServlet { // applet connections ObjectOutputStream objOut = null; ObjectInputStream objIn = null; // chatserver connections Socket socket = null; ObjectOutputStream sockObjOut = null; ObjectInputStream sockObjIn = null; ToApplet app = null; ToServer ser = null; protected void service(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { try { // get data stream from applet System.err.println(start of servlet); objOut = new ObjectOutputStream(res.getOutputStream()); objIn = new ObjectInputStream(req.getInputStream()); objOut.useProtocolVersion(objOut.PROTOCOL_VERSION_1); // create socket to chat server and the streams socket = new Socket(127.0.0.1, 3000); sockObjOut = new ObjectOutputStream(socket.getOutputStream()); sockObjIn = new ObjectInputStream(socket.getInputStream()); sockObjOut.useProtocolVersion(sockObjOut.PROTOCOL_VERSION_1); app = new ToApplet(objIn, sockObjOut); ser = new ToServer(sockObjIn, objOut); while(ser.connIsAlive() || app.connIsAlive()) { try { Thread.sleep(500); } catch(Exception ex) { ex.printStackTrace(); } } System.err.println(end of servlet); } catch(Exception e) { e.printStackTrace(); } } public void destroy() { try { objIn.close(); objOut.close(); sockObjIn.close(); sockObjOut.close(); socket.close(); } catch(Exception e) { e.printStackTrace(); } } private class ToApplet extends Thread { ObjectOutputStream objOut = null; ObjectInputStream sockObjIn = null; boolean isAlive = true; public ToApplet(ObjectInputStream sockObjIn, ObjectOutputStream objOut) { try { System.err.println(ToApplet()); this.objOut = objOut; this.sockObjIn = sockObjIn; this.start(); } catch(Exception e) { e.printStackTrace(); } } public void run() { try { Object obj = new Object(); while(obj!=null) { try { System.err.println(...Reading for Object Streams); obj = sockObjIn.readObject(); System.err.println(...Read Object Stream); write(obj); } catch(EOFException eof) { eof.printStackTrace(); } catch(Exception ex) { ex.printStackTrace(); } } } catch(Exception e) { e.printStackTrace(); } } public boolean connIsAlive() { return isAlive; } public void write(Object msg) { try { System.err.println(ChatApplet: +msg.toString()); objOut.writeObject(msg); objOut.flush(); objOut.reset(); } catch(Exception e) { e.printStackTrace(); isAlive = false; } } } private class ToServer extends Thread { ObjectInputStream objIn = null; ObjectOutputStream sockObjOut
RE: HTTP Tunnel question
Hi all, I have run into another problem. I can recieve messages from the server that I am tunnelling to and send them to the applet fine. However it is proving difficult to do things the other way round, when I want to send a message from the applet to the internal server I am having java.io.EOFException: code expected exceptions appear. The connection from the Applet is just a simple URLConnection. This is not closed unless the applet closes or the user quits. I have some tomcat logs to show you what is going wrong. I hope someone can be of help here. Thanks, Stuart Stephen start of servlet ToApplet() ToServer() ...Reading for Object Streams java.io.EOFException: Expecting code at java.io.ObjectInputStream.peekCode(Unknown Source) at java.io.ObjectInputStream.readObject(Unknown Source) at java.io.ObjectInputStream.readObject(Unknown Source) at TestTunnel$ToApplet.run(TestTunnel.java:94) From ChatServer: some random string object blah blah blah ...Reading for Object Streams java.io.EOFException: Expecting code at java.io.ObjectInputStream.peekCode(Unknown Source) at java.io.ObjectInputStream.readObject(Unknown Source) at java.io.ObjectInputStream.readObject(Unknown Source) at TestTunnel$ToApplet.run(TestTunnel.java:94) java.io.EOFException: Expecting code at java.io.ObjectInputStream.peekCode(Unknown Source) at java.io.ObjectInputStream.readObject(Unknown Source) at java.io.ObjectInputStream.readObject(Unknown Source) at TestTunnel$ToApplet.run(TestTunnel.java:94) etc... My code is as follows. import javax.servlet.*; import javax.servlet.http.*; import javax.servlet.ServletException.*; import javax.servlet.UnavailableException.*; import java.lang.Exception.*; import java.io.*; import java.util.*; import java.net.*; public class TestTunnel extends HttpServlet { // applet connections ObjectOutputStream objOut = null; ObjectInputStream objIn = null; // chatserver connections Socket socket = null; ObjectOutputStream sockObjOut = null; ObjectInputStream sockObjIn = null; ToApplet app = null; ToServer ser = null; protected void service(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { try { // get data stream from applet System.err.println(start of servlet); objOut = new ObjectOutputStream(res.getOutputStream()); objIn = new ObjectInputStream(req.getInputStream()); objOut.useProtocolVersion(objOut.PROTOCOL_VERSION_1); // create socket to chat server and the streams socket = new Socket(127.0.0.1, 3000); sockObjOut = new ObjectOutputStream(socket.getOutputStream()); sockObjIn = new ObjectInputStream(socket.getInputStream()); sockObjOut.useProtocolVersion(sockObjOut.PROTOCOL_VERSION_1); app = new ToApplet(objIn, sockObjOut); ser = new ToServer(sockObjIn, objOut); while(ser.connIsAlive() || app.connIsAlive()) { try { Thread.sleep(500); } catch(Exception ex) { ex.printStackTrace(); } } System.err.println(end of servlet); } catch(Exception e) { e.printStackTrace(); } } public void destroy() { try { objIn.close(); objOut.close(); sockObjIn.close(); sockObjOut.close(); socket.close(); } catch(Exception e) { e.printStackTrace(); } } private class ToApplet extends Thread { ObjectOutputStream objOut = null; ObjectInputStream sockObjIn = null; boolean isAlive = true; public ToApplet(ObjectInputStream sockObjIn, ObjectOutputStream objOut) { try { System.err.println(ToApplet()); this.objOut = objOut; this.sockObjIn = sockObjIn; this.start(); } catch(Exception e) { e.printStackTrace(); } } public void run() { try { Object obj = new Object(); while(obj!=null) { try { System.err.println(...Reading for Object Streams); obj = sockObjIn.readObject(); System.err.println(...Read Object Stream); write(obj); } catch(EOFException eof) { eof.printStackTrace(); } catch(Exception ex) { ex.printStackTrace(); } } } catch(Exception e) { e.printStackTrace(); } } public boolean connIsAlive() { return isAlive; } public void write(Object msg) { try { System.err.println(ChatApplet: +msg.toString()); objOut.writeObject(msg); objOut.flush(); objOut.reset(); } catch(Exception e) { e.printStackTrace(); isAlive = false; } } } private class ToServer extends Thread { ObjectInputStream objIn = null; ObjectOutputStream sockObjOut = null; boolean isAlive = true; public
RE: Disconnection from Oracle.
We are experiencing the same issue. It all worked fine until we put the firewall in. This appears to be a bug in the firewalls or the way java or oracle handle them. All you can do is make sure it recreates the connection. The way we had to test it was to create a statement as checking to see if the connection is null and using the isClosed() method did not pick it up. Stuart -Original Message- From: Reynir Hübner [mailto:[EMAIL PROTECTED]] Sent: 13 May 2002 11:45 To: Tomcat Users List Subject: RE: Disconnection from Oracle. sounds like a bug in your connection pooling software.. hope it helps -reynir -Original Message- From: Carlos Javier Ramos [mailto:[EMAIL PROTECTED]] Sent: 13. maí 2002 09:27 To: Tomcat Users List Subject: Disconnection from Oracle. We are having a problem with a jdbc connection object between tomcat (linux 2.4.18 - tomcat 3.3.1) and an oracle server (HP-UX 11i Oracle 8.1. The 2 machines are separated by a firewall which was configured to allow access to the oracle server from the tomcat server only. We can see that the conexion pool gets disconnected each 1 hour and 1 minute (+- 3660 s). Once it is disconnected, the application then freezes any attempts to login/manage your account or do activities which need database connection. Tomcat still works fine, any servlets which do not need database connection works. We have developed a Sentry bash script able to check if the connection pool is broken and then restart tomcat createing a new one. We suspect that it is not a problem of linux or hp kernel, neither from Oracle, because if we made: $ telnet databasehost 1528 we did not get disconnected... As we have discovered isClosed is unable to detect this problem. The exception throwed when this problem appears is an IOexception, not an SQL exception. Which is the way to detect when a connection is closed but the isClosed() function does not recognize this? We use db connection pool that keeps the connections alive. ¿has this connection living time anything to do? Thanks in advance -- Carlos J. Ramos -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Disconnection from Oracle.
We use persistant connections. It does it to us even so. It is more likely that the firewall has an idle time or a max timeout for a connection on the udp port 1521 or whatever you have set it to run on. -Original Message- From: Skondras P. [mailto:[EMAIL PROTECTED]] Sent: 13 May 2002 12:10 To: Tomcat Users List Subject: Re: Disconnection from Oracle. Carlos Javier Ramos wrote: We are having a problem with a jdbc connection object between tomcat (linux 2.4.18 - tomcat 3.3.1) and an oracle server (HP-UX 11i Oracle 8.1. The 2 machines are separated by a firewall which was configured to allow access to the oracle server from the tomcat server only. We can see that the conexion pool gets disconnected each 1 hour and 1 minute (+- 3660 s). Once it is disconnected, the application then freezes any attempts to login/manage your account or do activities which need database connection. Tomcat still works fine, any servlets which do not need database connection works. We have developed a Sentry bash script able to check if the connection pool is broken and then restart tomcat createing a new one. We suspect that it is not a problem of linux or hp kernel, neither from Oracle, because if we made: $ telnet databasehost 1528 we did not get disconnected... As we have discovered isClosed is unable to detect this problem. The exception throwed when this problem appears is an IOexception, not an SQL exception. Which is the way to detect when a connection is closed but the isClosed() function does not recognize this? Execute a query that you now it should work e.g select sysdate from dual and if you get an Exception reopen the Connection We use db connection pool that keeps the connections alive. ¿has this connection living time anything to do? Perhaps the Connection pool has an attribute disconnect if idle for more that some time. Thanks in advance -- Carlos J. Ramos -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Disconnection from Oracle.
We don't configure it ourselves, we have a partner company deal with it. They are looking into it for us at the moment. -Original Message- From: Robert Morse [mailto:[EMAIL PROTECTED]] Sent: 13 May 2002 12:17 To: Tomcat Users List Subject: RE: Disconnection from Oracle. Which firewall are you using? It's probably configurable. -Original Message- From: Stuart Stephen [mailto:[EMAIL PROTECTED]] Sent: Monday, May 13, 2002 4:14 AM To: Tomcat Users List Subject: RE: Disconnection from Oracle. We use persistant connections. It does it to us even so. It is more likely that the firewall has an idle time or a max timeout for a connection on the udp port 1521 or whatever you have set it to run on. -Original Message- From: Skondras P. [mailto:[EMAIL PROTECTED]] Sent: 13 May 2002 12:10 To: Tomcat Users List Subject: Re: Disconnection from Oracle. Carlos Javier Ramos wrote: We are having a problem with a jdbc connection object between tomcat (linux 2.4.18 - tomcat 3.3.1) and an oracle server (HP-UX 11i Oracle 8.1. The 2 machines are separated by a firewall which was configured to allow access to the oracle server from the tomcat server only. We can see that the conexion pool gets disconnected each 1 hour and 1 minute (+- 3660 s). Once it is disconnected, the application then freezes any attempts to login/manage your account or do activities which need database connection. Tomcat still works fine, any servlets which do not need database connection works. We have developed a Sentry bash script able to check if the connection pool is broken and then restart tomcat createing a new one. We suspect that it is not a problem of linux or hp kernel, neither from Oracle, because if we made: $ telnet databasehost 1528 we did not get disconnected... As we have discovered isClosed is unable to detect this problem. The exception throwed when this problem appears is an IOexception, not an SQL exception. Which is the way to detect when a connection is closed but the isClosed() function does not recognize this? Execute a query that you now it should work e.g select sysdate from dual and if you get an Exception reopen the Connection We use db connection pool that keeps the connections alive. ¿has this connection living time anything to do? Perhaps the Connection pool has an attribute disconnect if idle for more that some time. Thanks in advance -- Carlos J. Ramos -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: JDBC Drivers
You need to set your classpath up to the file, not just the directory. It is a bit picky. eg, set classpath=%classpath%;c:\javastuff\oracle\classes12.jar That should then work. Stuart Stephen -Original Message- From: Teemu Keiski [mailto:[EMAIL PROTECTED]] Sent: 16 April 2002 10:38 To: Tomcat Users List Subject: RE: JDBC Drivers I suppose you have to change the name of 'classes12.zip' file to 'classes12.jar'. Teemu Keiski -Original Message- From: Richard Johnstone [mailto:[EMAIL PROTECTED]] Sent: 16. huhtikuuta 2002 12:34 To: [EMAIL PROTECTED] Subject: JDBC Drivers I don't know if I should post this here or not but here goes I am trying to connect to an oracle DB using a thin connection. I have downloaded the classes12.zip file and put it in $TOMCAT_HOME/common/lib but I am getting a java.lang.NoClassDefFoundError: oracle/jdbc/driver/OracleDriver Do I need to put the class file elsewhere? -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Applet AWT Question...?
This is a bit off topic, sorry guys I'm writing an applet that needs to have images on some components, to do this though I need to override the paint method and make Button a subclass. When it comes to the ImageObserver bit I don't know what to put there? Does anyone know what should go in here to enable this method to work? The code is below my signature. Thanks, Stuart Stephen public class drawButton extends Button { ... public void paint(Graphics g) { // call super's paint method super.paint(g); g.drawImage(image, 0, 0, SOMETHING); } ... } -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: What does IMHO mean?
IMHO = In My Honest Opinion -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 15 April 2002 12:17 To: 'Tomcat Users List' Subject: RE: What does IMHO mean? -Original Message- From: Darrin [mailto:[EMAIL PROTECTED]] LMAO (laughing my ass off) is what you probably are talking about (a lot of fonts its hard to distinguish between 1 (one) l (lowercase L), and i (lowercase I) Possibly, but imao is also a common acronym... http://www.diveinstruct.org.uk/terms.html Not that any of this has _anything_ to do with TC, imao ;-) - tex -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: How do I unsubscribe to this list???
Read the bottom of every single email sent to this list. It tells you there. -Original Message- From: Valdimar Óskarsson [mailto:[EMAIL PROTECTED]] Sent: 15 April 2002 14:25 To: [EMAIL PROTECTED] Subject: How do I unsubscribe to this list??? Hi, pls. help me to unsubscribe. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: How do I unsubscribe to this list???
Try emailing the bottom one then and see if they will remove you manually. But first you should check this: Have you made sure that you are removing the email address from the same email account that you subscribed to it with. For example if you subscribed with [EMAIL PROTECTED] and you try to remove yourself with [EMAIL PROTECTED] it won't work. It has to be [EMAIL PROTECTED] that sends the message. -Original Message- From: Valdimar Óskarsson [mailto:[EMAIL PROTECTED]] Sent: 15 April 2002 14:34 To: Tomcat Users List Subject: RE: How do I unsubscribe to this list??? It does not work, have been trying that for days :( -Original Message- From: Stuart Stephen [mailto:[EMAIL PROTECTED]] Sent: 15. apríl 2002 13:35 To: Tomcat Users List Subject: RE: How do I unsubscribe to this list??? Read the bottom of every single email sent to this list. It tells you there. -Original Message- From: Valdimar Óskarsson [mailto:[EMAIL PROTECTED]] Sent: 15 April 2002 14:25 To: [EMAIL PROTECTED] Subject: How do I unsubscribe to this list??? Hi, pls. help me to unsubscribe. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
AWT classes
Hey people, Does anybody know of any AWT classes that are available to buy if neccessary that will allow text formatting, images etc.. within an applet? Unfortunately I can't use swing components as applets don't allow it. I can't use Java Webstart either as it requires a download. The client must be as thin as possible. Stuart Stephen -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: AWT classes
It's not quite what i'm after. What i'd like is to try and get as much of the capabilities of an RTF text field into an applet running AWT. So, text and images can be within the same component. I would have thought that there must be something out there by now? If anyone knows of anything that might be of use that would be useful. Cheers, Stuart -Original Message- From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]] Sent: 12 April 2002 12:23 To: Tomcat Users List Subject: AW: AWT classes Have a look at http://www.eteks.com/pja/en/. (Haven't used so don't know if it applies to your needs) -Ursprüngliche Nachricht- Von: Stuart Stephen [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 12. April 2002 13:12 An: Tomcat Users List Betreff: AWT classes Does anybody know of any AWT classes that are available to buy if neccessary that will allow text formatting, images etc.. within an applet? Unfortunately I can't use swing components as applets don't allow it. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: HTTP Tunnel (a response please????)
Excelent, sounds ideal. Thank you very much. Stuart -Original Message- From: Marc Chamberlin [mailto:[EMAIL PROTECTED]] Sent: 10 April 2002 05:42 To: Tomcat Users List Subject: Re: HTTP Tunnel (a response please) Stuart I am using an HTTP Tunneling protocol (for serialized Java objects) to handle communication from my servlets back to my applet front ends and it works great... I designed my applets to maintain state information and send this along with a request for new data, from it's associated servlet, at regular intervals (which is settable by the applet user for periods up to several minutes between requests) and the connection appears to stay open for as long as the applet/browser is running If you want a good source of info on how to set up a applet/servlet pair that uses HTTP tunneling protocols, get a copy of Core Servlets and Java Server Pages by Marty Hall and published by Sun Microsystems He has a very good example of how to set these up Marc Chamberlin - Original Message - From: [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, April 09, 2002 6:24 AM Subject: RE: HTTP Tunnel (a response please) That's the way HTTP works. You browser connects to a web server when it makes a request. And once it gets a response, it disconnects. The connection, it creates, may be persistent (default with HTTP/1.1) though. But servers generally timeout after being idle for sometime. So what you are looking for in terms of consistent or persistent connections may not be guaranteed this way. You should consider using sessions in your servlet or jsp (that is if you just want to persist the user state) or maybe use sockets (may run into firewall/security issues) RS Stuart Stephen [EMAIL PROTECTED] on 04/09/2002 07:41:22 AM Please respond to Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] cc: Subject: RE: HTTP Tunnel (a response please) -Original Message- From: Stuart Stephen [mailto:[EMAIL PROTECTED]] Sent: 08 April 2002 22:16 To: Tomcat Users List Subject: HTTP Tunnel Hi everybody, I'm looking to make an HTTP tunnel servlet or jsp page that will keep the user connected consistently rather than it disconnecting and re-connecting each time a request is sent. Could anyone help me out here? Stuart -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
HTTP Tunnel
Hi everybody, I'm looking to make an HTTP tunnel servlet or jsp page that will keep the user connected consistently rather than it disconnecting and re-connecting each time a request is sent. Could anyone help me out here? Stuart -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: HTTP Tunnel (a response please????)
-Original Message- From: Stuart Stephen [mailto:[EMAIL PROTECTED]] Sent: 08 April 2002 22:16 To: Tomcat Users List Subject: HTTP Tunnel Hi everybody, I'm looking to make an HTTP tunnel servlet or jsp page that will keep the user connected consistently rather than it disconnecting and re-connecting each time a request is sent. Could anyone help me out here? Stuart -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: NIGHTMARE
indeed. -Original Message- From: Martin Mauri [mailto:[EMAIL PROTECTED]] Sent: 08 April 2002 16:02 To: Tomcat Users List Subject: Re: NIGHTMARE Javier, supongo que hablas en castellano. Te cuento que por 1 anio hemos intentado encontrar voluntarios para el libro Tomcat Book el cual iba a ser un completo libro de instalacion, configuracion y uso de Tomcat. Pero todo el que venia duraba 2 semanas y se iba. Entonces no es posible hacer tal cosa. Este software es gratuito y abierto, no se le puede pagar a alguien para que desarrolle. Lamentablemente la documentacion tiene que ser voluntaria y no hay voluntarios que quieran colaborar. saludos, Martin - Original Message - From: Javier A. Leyba [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, April 08, 2002 11:56 AM Subject: Re: NIGHTMARE On 08/04/2002 at 11:48 Martin Mauri wrote: Do what you want. I feel sorry about you. You're losing the best and calling Tomcat a crap tells you're a loser. I've installed Tomcat in 5 minutes. Hi Martin I could say yes and no. I think Tomcat is great, but installatin is not so easy as Apache with PHP and documentation about installing sucks. I guess people need more clear examples to do simple configuration tasks till get the idea. I've installed Tomcat in my XP in 10 minutes but I'm trying to get virtual hosts working from 3 days ago. I'm frustrated and feel myself like a newbie, but I´m not a newbie (damn !) IMHO jl _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
FW: HTTP Tunnel
Hi everybody, I'm looking to make an HTTP tunnel servlet or jsp page that will keep the user connected consistently rather than it disconnecting and re-connecting each time a request is sent. Could anyone help me out here? Stuart -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Please Ignore
alternatively you could email [EMAIL PROTECTED] using the email address that you have registered with -Original Message- From: Paul Brown [mailto:[EMAIL PROTECTED]] Sent: 27 March 2002 16:01 To: Tomcat Users List Subject: RE: Please Ignore i've done that several times + used the traditional (documented) mechanisms ovr the last 6 weeks with no luck. hence this desperate measure. -Original Message- From: todd tredeau [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 27, 2002 3:58 PM To: Tomcat Users List Subject: Re: Please Ignore Maybe you could ask if somebody knows who is in charge of the list and e-mail him/her. isaco wrote: ROTFLMAO Now that's original g -Original Message- From: Paul Brown [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 27, 2002 9:35 AM To: Tomcat Users List Subject: Please Ignore CUNT PISS TWAT FUCK BASTARD KNOB FANNY GIT PRICK WANKER BUGGER cunt piss twat fuck bastard knob fanny git prick wanker bugger I'm trying to get the list server to ban me -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Getting Tomcat 4.0.1 working with IIS
http://members.ozemail.com.au/~lampante/howto/tomcat/iisnt/ try that Stevie -Original Message- From: chris brown [mailto:[EMAIL PROTECTED]] Sent: 14 January 2002 11:51 To: tomcat-user Subject: Getting Tomcat 4.0.1 working with IIS Help! I can only find a HOWTO / reference info for Tomcat 3.3 and IIS... I'm having difficulty applying this in Tomcat 4.0.1, as although I can get an (apparently beta) Ajp13 connector running, I can't get a Ajp12 connector running (which is required, according to the HOWTO). If anyone can help me, please do so ! (maybe point me to a HOWTO, a previous message -- I have tried searching the archives, but this was slow and had difficulty finding relevant posts --, or - even better - post a message to say what I need to do). Thanks, Chris Brown PS: the HOWTO I'm referring to is http://jakarta.apache.org/tomcat/tomcat-3.3-doc/tomcat-iis-howto.html - Original Message - From: Reynir Hübner [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Saturday, January 05, 2002 3:17 AM Subject: RE: Tomcat 4.01, IIS and JSPs we´re using tomcat 4.01 with mod_jk in production with IIS 5.0 with isapi_redirect.dll, with out problems. Does this little program have anything that the usual mod_jk, and isapi_redirect.dll doesn´t have ? bye [EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Tomcat Apache JSP compilation error
Hi all, For some reason i'm getting a class not found exception for a Vector? I can't think why the Vector class isn't found? Where should these classes be found or what am I doing wrong? The details are at the base of the email. Thanks Stuart Stephen An error occurred at line: 51 in the jsp file: /basket_edit_details_content.jsp Generated servlet error: T:\Tomcat\work\www.myonlineshop.com\shop\basket_0005fedit_0005fdetails_0005f content$jsp.java:128: Class org.apache.jsp.Vector not found. Vector points=(Vector)items.get(item_number); -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Tomcat Apache JSP compilation error
Yeah, seemed too obvious though. It works on the other server we are running here and the codes no different. Still, works now. Bargin. Ta -Original Message- From: Justin Rowles [mailto:[EMAIL PROTECTED]] Sent: 14 January 2002 14:36 To: 'Tomcat Users List' Subject: RE: Tomcat Apache JSP compilation error For some reason i'm getting a class not found exception for a Vector Better stfw for where you find Vector then! Generated servlet error: T:\Tomcat\work\www.myonlineshop.com\shop\basket_0005fedit_0005 fdetails_0005f content$jsp.java:128: Class org.apache.jsp.Vector not found. I'll give you a clue: import java.util.* ;-) J. -- You're only jealous cos the little penguins are talking to me. *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: AccessControlException with Applet
Were you trying to connect to the same machine that you were downloading to or to another? Without a certificate you can only connect to a remote machine that the applet was originally downloaded from. The JSP stuff is server side though so you wouldn't encounter the problem. Certificates can be obtained from places such as http://www.thawte.com/, http://www.ignite.com/application-services/products/verisign/ or http://www.verisign.com etc... Stuart Stephen -Original Message- From: Olivier BILLIARD [mailto:[EMAIL PROTECTED]] Sent: 14 November 2001 16:07 To: [EMAIL PROTECTED] Subject: AccessControlException with Applet Hi, I tried to established a communication between an applet and another server by RMI. I also did it with some JSPs and it work fine. But with the applet i have a problem. I can do a lookup to get the interface but when i try to call a method i get a java.security.AccessControlException: access denied (java.net.SocketPermission XXX:2113 connect, resolve) I immediatly thinking about the policy and the catalina.policy file. First i don't think that i use the security of Tomcat (because when i want to put -security it refuses to start) but i modified the file to set all permissions but it still refuse to work. I don't see where is the probleme, i need some help. NB. I already try to remove the spaces of the directory of Tomcat but i didnt solve my probleme Thx in advance Olivier -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]