Help needed: SocketException killing Tomcat 4.0.1 !?
Hi again, This post must have been lost in the flow... I really need help on that, because a self-destructing Tomcat will not help me deploy my commercial webapp... Here's the setup: - Tomcat 4.0.1, windows 98SE or 2000/Server - Direct servlet access from port 8080 - JDK/JRE 1.3.1 from Sun or JRE 1.3.0 from IBM, tested both - Also compiled with JDK1.4, just to make sure it's not my JDK - Crash test servlet: a image/jpeg content-type servlet, using Sun's JPEG codec. Using a BufferedOutputStream. The servlet works fine when called normally. (you can create a blank image, no need to draw anything - a wait loop would be useful though...) Crash test procedure: - Open a browser and call the servlet. (with a img src=servlet / ) - BEFORE the servlet has finished encoding the JPEG, click on STOP, BACK, or a link going elsewhere. Result: - A SocketException: connection reset by peer shows up, as expected. - The exception is thrown by out.close() ('out' being the BufferedOutputStream given to the JpegEncoder) and is NOT catched by the servlet ! quite unexpected... - Catalina dies, now that is unexpected ! Logs generally do not reflect the fatal exception. - Under windows98SE it dies with a fatal error... My questions: - Is it a *known* bug of Catalina ? - If yes, has it been fixed in a recent build ? - How can i trap this exception ? I want to handle properly client disconnects by closing resources and stopping SQL queries etc... Currently even if i put a catch() at each level up to GenericServlet, it goes through. Regards, Guillaume Mathe Smartinnov -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Possible To Share A Session Across Ports 8080 and 8443?
My finding is that Netscape Navigator browsers (both 4.x and 6.x) don't share cookies accross ports, while Internet Explorer does. I also have an app where user can choose to login over secure connection, and was experiencing session loss when returning to unsecured communication after login. I solved this by forcing the user to stay in secure mode if User-Agent header indicates they're using some flavor of Netscape Navigator. Attila. - Original Message - From: "David White" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: 2001. december 9. 22:22 Subject: Possible To Share A Session Across Ports 8080 and 8443? Due to problems with my cable modem, please respond via email as well as to the list if possible. Thanks... I am running Tomcat 3.2.x in development mode with default http on port 8080 and default https on port 8443. My web application needs to switch in and out of https on occasion while prompting for/passing sensitive info. The rest of the time, it is fine in normal http. I have found (experimentally) that the browser does not seem to be passing the cookie containing the JSESSIONID value back and forth between urls like http://hostname:8080/webapp and httpa://hostname:8443/webapp. I am guessing that this is because the host names are different and the browser maintains cookies on a per-host name basis. So when I do the switch between http and https, I loose my session data. I have tried getting the value of the JSESSIONID cookie and appending its value to the url I go to whilst switching (ex. http://hostname:8443/webapp;jessionid=xxx) hoping that I could get the session info maintained. However, this did not appear to work either. Can anyone please give me a way to do this? If I use the default ports (80 and 443), I do not have to place the port id in with the hostname on the url. In this circumstance, I do get session state preserved. This would appear to be because the hostname portion of the url does not "change". It is just something of a pain to use ports lower than 1024 on Linux for development (have to be root). Thanks in advance for you help. David _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp -- 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]
Jakarta NT SERVICE--- logout USER
Hello to everybody! I have a jakarta-tomcat-3.3m4 on a Win2k system and I have a problem: every times one user of Operating System logout, the service it stoppes. :-( Where do I need to modify the config so that will not be happens any more?? Thanks!! -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Apache + mod_jk (ajp13) + Tomcat: no Expires header in the response
Dear guys, I searched the archive and the Usenet without success. I'm using a box with: - Linux Red Hat 7.2 - Apache 1.3.20 - mod_jk (ajp13) - Tomcat 3.3 I developed a web application that let you browse through some static HTML pages and let you update the content of these HTML page, inserting some data in a form. The update of the static pages is done by a servlet that rewrite the HTML file. The problem is that I can't get the last updated HTML page in my browser. I thought it was a problem realted to caching, so I forced Apache to set the Expires header writing in the httpd.conf: ExpiresActive On ExpiresByType text/html access but this solution didn't help. I turned on a protocol analyzer (Etheral) to try and understand what the problem was and I realized that Apache does not set the Expires header when the HTML page comes from Tomcat. I think my application is not so strange: I want to save the new data inserted by the user so that the next time she requests the page she gets the last version of it. I wrote another very simple application to explain my problem better: you can find it attached, simply decompress it under $TOMCAT_HOME/webapps. Did anyone else experiment such problems? Cheers, Michele test.tar.gz Description: Binary data test.zip Description: Binary data -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Apache + mod_jk (ajp13) + Tomcat: no Expires header in the response
Dear guys, I searched the archive and the Usenet without success. I'm using a box with: - Linux Red Hat 7.2 - Apache 1.3.20 - mod_jk (ajp13) - Tomcat 3.3 I developed a web application that let you browse through some static HTML pages and let you update the content of these HTML page, inserting some data in a form. The update of the static pages is done by a servlet that rewrite the HTML file. The problem is that I can't get the last updated HTML page in my browser. I thought it was a problem realted to caching, so I forced Apache to set the Expires header writing in the httpd.conf: #ExpiresActive On #ExpiresByType text/html access but this solution didn't help. I turned on a protocol analyzer (Etheral) to try and understand what the problem was and I realized that Apache does not set the Expires header when the HTML page comes from Tomcat. I think my application is not so strange: I want to save the new data inserted by the user so that the next time she requests the page she gets the last version of it. I wrote another very simple application to explain my problem better, simply copy the following files under $TOMCAT_HOME/webapps/ and compile the servlet: === test/index.html === html head /head body a href=servlet/DateServletTest/abr /body /html = test/WEB-INF/classes/DateServlet.java = import java.io.*; import java.util.*; import javax.servlet.*; import javax.servlet.http.*; public class DateServlet extends HttpServlet { public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { try { Date now = new Date(); PrintWriter dateWriter = new PrintWriter(new FileWriter(../webapps/test/date.html), true); dateWriter.println(now); dateWriter.println(br); dateWriter.println(a href=\servlet/DateServlet\Update/a); dateWriter.close(); response.setContentType(text/html); PrintWriter out = response.getWriter(); out.println(now); out.println(meta http-equiv='refresh' content='3; url=\/test/date.html\'/meta); } catch(Exception ex) { PrintWriter errorWriter = new PrintWriter(new FileWriter(../webapps/bib/error.txt), true); ex.printStackTrace(errorWriter); errorWriter.close(); } } } Did anyone else experiment such problems? Cheers, Michele -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Null pointer exception in java.awt.Window
We have a JSP application using Tomcat 3.2.1. We are getting a Null Pointer Exception inside the java.awt.Window constructor (stack trace below) in one machine where this application is deployed. The error doesn't seem easily reproducible, though. The line which triggers the error is: JFrame frame = new JFrame(); Does anyone has a suggestion on what to do ??? Thanks, Wesley PS: Machine has W2K and JRE 1.3.1 Error: 500 Location: /RFITPrintFileDownload.jsp Internal Servlet Error: javax.servlet.ServletException at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:459) at _0002fRFITPrintFileDownload_0002ejspRFITPrintFileDownload_jsp_0._jspService(_0002fRFITPrintFileDownload_0002ejspRFITPrintFileDownload_jsp_0.java:210) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:177) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at java.lang.Thread.run(Unknown Source) Root cause: java.lang.NullPointerException at java.awt.Window.(Unknown Source) at java.awt.Frame.(Unknown Source) at java.awt.Frame.(Unknown Source) at javax.swing.JFrame.(Unknown Source) at com.nortel.nsm.rfinterference.PDFGenerator.includeChartInFlow(PDFGenerator.java:425) at com.nortel.nsm.rfinterference.PDFGenerator.locateChartInFlow(PDFGenerator.java:649) at com.nortel.nsm.rfinterference.PDFGenerator.fillBody(PDFGenerator.java:334) at com.nortel.nsm.rfinterference.PDFGenerator.generatePDF(PDFGenerator.java:126) at com.nortel.nsm.rfinterference.RFITPrintBean.generateReport(RFITPrintBean.java:50) at _0002fRFITPrintFileDownload_0002ejspRFITPrintFileDownload_jsp_0._jspService(_0002fRFITPrintFileDownload_0002ejspRFITPrintFileDownload_jsp_0.java:164) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:177) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at java.lang.Thread.run(Unknown Source) __ Do You Yahoo!? Send your FREE holiday greetings online! http://greetings.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Help on Setting Up Application
hi I have tried this option but it gives error --- Jim Urban [EMAIL PROTECTED] wrote: If your package is 1.2.3.4 and your servlet name is Controlservlet and it is in context myapp and you want to be able to access your servlet by simply entering http://host/myapp here is what you need to put in your myapp/WEB-INF/web.xml file. web-app servlet servlet-nameControlservlet/servlet-name servlet-class1.2.3.4.Controlservlet/servlet-class /servlet servlet-mapping servlet-nameControlservlet/servlet-name url-pattern/*/url-pattern /servlet-mapping Hope this helps, Jim -Original Message- From: Guddu Kumar [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 06, 2001 4:23 PM To: Tomcat Users List Subject: Help on Setting Up Application Hi Jim Can u let me know the changes in web.xml --- Guddu Kumar [EMAIL PROTECTED] wrote: Hi, I have to setup tomcat for an my application. Basically i am using MVC2 Design pattern for the application. That means i have a Controlservlet which is to be called on every request. I have defined the context path in server.xml as path=/myapp and docbase=webapps/myapp. I have to put my servlet in certain package structure like web-inf/classes/1/2/3/4. I am not able to run my Controlservlet if i put it in package structure. My question is I want to access that ControlServlet which is in that package structure and it should be called when my url is http://localhost:8080/myapp. Thanks Guddu __ Do You Yahoo!? Send your FREE holiday greetings online! http://greetings.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] __ Do You Yahoo!? Send your FREE holiday greetings online! http://greetings.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] __ Do You Yahoo!? Send your FREE holiday greetings online! http://greetings.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
SESSION Poblems
Hi! In wich file is setted the time witch the session remains valid without any operations made in my web-app. In my case, if I login to my application and I stay logged in without doing nothing for a half an hour (30 min) I lose the session and I have to login again (to initiate a new session for my web application). Thanks very much!! -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Unable to start tomcat 4
Hi! I have also problems to start TC 4.0.1. But I even get a segmetatin fault. Starting service Tomcat-Standalone Apache Tomcat/4.0.1 SIGSEGV 11* segmentation violation stackpointer=0xbfffeb64 This Problem occurs on a machine with the following environment: IBMJava2-1.3-9 Red Hat Linux 6.2 with Kernel 2.2.14 I have no problems to run TC 4.0.1 on an machine with the follwing environment: IBMJava2-1.3-9 Red Hat Linux 7.1 with Kernel 2.4.9 Erwin Brian Adams wrote: I got the same error then I notice I had java 1.2 running. I switched to 1.3.1 and all fixed. :) -Original Message- From: Emil Diego [mailto:[EMAIL PROTECTED]] Sent: Friday, December 07, 2001 2:54 PM To: [EMAIL PROTECTED] Subject: Unable to start tomcat 4 Thanx for all the responses about my problem. I am still getting some errors though. As suggested I update to the Java 1.2.2 SDK. I installed it successfully. I am still receiving a problem when trying to start tomcat 4. I have attached the catalina.out error log. It reports the following problem. Exception during startup processing java.lang.reflect.InvocationTargetException: java.lang.NoClassDefFoundError: javax/naming/directory/DirContext. The rest of the error message is included in the log file. Emil Diego [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: SESSION Poblems
Hi Catalin, You didn't look very well did you? This is part of the servlet 2.2 specs that can be found at www.javesoft.com It's in the web.xml file session-config session-timeoutxx/session-timeout /session-config Regards, Wouter -Original Message- From: Catalin [mailto:[EMAIL PROTECTED]] Sent: Monday, 10 December, 2001 23:29 To: [EMAIL PROTECTED] Subject: SESSION Poblems Hi! In wich file is setted the time witch the session remains valid without any operations made in my web-app. In my case, if I login to my application and I stay logged in without doing nothing for a half an hour (30 min) I lose the session and I have to login again (to initiate a new session for my web application). Thanks very much!! -- 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: SESSION Poblems
In wich file is setted the time witch the session remains valid without any operations made in my web-app. In my case, if I login to my application and I stay logged in without doing nothing for a half an hour (30 min) I lose the session and I have to login again (to initiate a new session for my web application). Look for session-timeout (I think) in web.xml (I think!). However, I find that that doesn't take effect, so I set it in the jsp file with this: request.getSession().setMaxInactiveInterval(TIMEOUT_SECONDS); There is, however, *no* way to set it to never timeout. Well, according to the jsp spec, anyway. 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]
SocketException killing Tomcat 4.0.1 - more
Hi again, I forgot a detail in my first post: When it dies catalina causes exception c026H in module kernel32.dll. Regards, Guillaume Mathe Smartinnov -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: XP/Cygwin/jakarta-tomcat-4.0.1.exe problems
look through the archives. It is looking for the registry key set by the jdk - I don't remember what it is, but it was posted before... try reinstalling the jdk Charlie -Original Message- From: Brian Adams [mailto:[EMAIL PROTECTED]] Sent: Saturday, December 08, 2001 4:45 PM To: Tomcat Users List Subject: RE: XP/Cygwin/jakarta-tomcat-4.0.1.exe problems cool. I don't think it has anything to do with cygwin. If I double click the install.exe I get the error. The install some how is looking/or not looking for some other determining fact that jdk is installed. :( Glad your up and working though I'll keep an eye on the list and see what others say. B -Original Message- From: David McLure [mailto:[EMAIL PROTECTED]] Sent: Saturday, December 08, 2001 1:20 PM To: Tomcat Users List Subject: Re: XP/Cygwin/jakarta-tomcat-4.0.1.exe problems I've confirmed that using the tomcat 4.1.0 zip file seems to work fine (so far anyway) on XP Home with Cygwin. It might be interesting to know whether anyone is able to run the tomcat 4.0.1 exe on XP without Cygwin installed. Brian Adams wrote: I just tried the executable that I did not delete and it gave me the error. so I must have installed that zipped version. THIS MUST BE A BUG WITH THE INSTALL.exe ANYONE ELSE HAVING PROBLEMS?? Brian -Original Message- From: David McLure [mailto:[EMAIL PROTECTED]] Sent: Saturday, December 08, 2001 11:25 AM To: Tomcat Users List Subject: Re: XP/Cygwin/jakarta-tomcat-4.0.1.exe problems Yes, I meant to mention that I also tried setting the JAVA_HOME variable using the NT-style Advanced Control Panel GUI (instead of slamming it into the autoexec.bat). I also downloaded the zip and I assume that will work just fine, but I thought it might be interesting to the developers that the exe is having this problem. Thanks - I'll send an update once I successfully install the zip. Brian Adams wrote: David, I really can not remember how I fixed it. Did you right click on myComputer and select properties and then select advanced and select the environment variables botton? if not add it there under system variables. sorry if you've done this just being specific. I also remember donw loading just the zipped version and I may have installed that instead. sorry it was a long night that night. http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4 .0.1/bin/jakar ta-tomcat-4.0.1.zip here is the 4.0.1 zipped verision just unzip it and you will get everything the install gives you except for the nt service exe but you can build that seperate. good luck -Original Message- From: David McLure [mailto:[EMAIL PROTECTED]] Sent: Saturday, December 08, 2001 11:01 AM To: Tomcat Users List Subject: Re: XP/Cygwin/jakarta-tomcat-4.0.1.exe problems Thanks Brian, I think you are probably right that it is something to do with my java_home environment variable, but I can't seem to find a typo. I am getting the following error in a pop-up window when trying to run the tomcat install executable program (jakarta-tomcat-4.0.1.exe) : Couldn't find a Java Development Kit installed on this computer. Please download one from http://java.sun.com.; Maybe the problem is that I am setting the variable in the wrong place? I am attempting to set it in my autoexec.bat as follows : C:\type autoexec.bat SET windir=C:\WINDOWS SET winbootdir=C:\WINDOWS SET COMSPEC=C:\WINDOWS\COMMAND.COM SET PATH=C:\j2sdk1.4.0-beta3\bin;C:\WINDOWS;C:\WINDOWS\COMMAND SET PROMPT=$p$g SET TEMP=C:\WINDOWS\TEMP SET TMP=C:\WINDOWS\TEMP SET JAVA_HOME=C:\j2sdk1.4.0-beta3 My PATH seems OK, but apparently the JAVA_HOME isn't working for the tomcat install program. I don't suppose Windows environment variables become case sensitive with Cygwin or anything like that do they? Brian Adams wrote: Hi David, I have cygwin and win2000 but I had the same problem the other night. I think mine was just a typo in my Windows java_home env. Which executable are you trying when you get the error? Also what is the exact error? -Original Message- From: David McLure [mailto:[EMAIL PROTECTED]] Sent: Saturday, December 08, 2001 1:15 AM To: [EMAIL PROTECTED] Subject: XP/Cygwin/jakarta-tomcat-4.0.1.exe problems I can't seem to get past square one installing tomcat beta 4.0.1 on a newly built XP Home system with Cygwin. The beta 4.0.1 tomcat executable is apparently having trouble finding my jdk, but it is in my path. I have a feeling this is possibly due to cygwin (http://cygwin.com) or maybe XP Home - not sure which. I have j2sdk1.4.0-beta3 installed on drive C, which cygwin converts to
JSESSIONID and anchors in URL
If my Tomcat-3.2.x hosted webapp is accessed through a browser with cookies disabled, Tomcat will rewrite URLs in responses, which is OK. However, if the URL contained in the response contains an achor, say http://foo.com/bar.html#anchor the rewritten URL will become http://foo.com/bar.html#anchor;JSESSIONID=abcdefgh instead of http://foo.com/bar.html;JSESSIONID=abcdefgh#anchor. Is this the intended behavior? I guess not, since the browser (IE in this case) will treat JSESSIONID as part of the anchor, not part of the URL which has two negative effects: 1. the anchor is not found (less problematic) 2. the JSESSIONID is not sent to the server as part of the URL (problematic as session is lost). I don't know if this is issue with 3.3.x and 4.x line of Tomcats. Anyway, the problem can be easily walked around by only running the part of the URL before the anchor through the HttpServletResponse.encodeRedirectURL(), that is using resp.encodeRedirectURL(bar.html) + #anchor instead of resp.encodeRedirectURL(bar.html#anchor) Cheers, Attila. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Tomcat and JNLP
Does Tomcat support Java Web Start? That is, can Tomcat (4.0) serve JNLP files? The doc on the Sun site calls for adding .jnlp to your web server's mime types, how do you do this with Tomcat? Thanks, Jim Urban Product Manager Netsteps Inc. Suite 505E 1 Pierce Pl. Itasca, IL 60143 Voice: (630) 250-3045 x2164 Fax: (630) 250-3046 winmail.dat Description: application/ms-tnef -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
AW: Tomcat and JNLP
Yes, have a look at the standard web.xml where you can configure the mime types. I did it and it works ! AXA eSolutions GmbH AXA Konzern AG Germany Oliver Lauer Web Architect Wörthstraße 34 D-50668 Köln Germany Tel.: +49 221 148 31277 Fax: +49 221 148 43963 Mobil: +49 179 59 064 59 e-Mail: [EMAIL PROTECTED] _ -Ursprüngliche Nachricht- Von: Jim Urban [mailto:[EMAIL PROTECTED]] Gesendet: Montag, 10. Dezember 2001 14:32 An: Tomcat-User Betreff: Tomcat and JNLP Does Tomcat support Java Web Start? That is, can Tomcat (4.0) serve JNLP files? The doc on the Sun site calls for adding .jnlp to your web server's mime types, how do you do this with Tomcat? Thanks, Jim Urban Product Manager Netsteps Inc. Suite 505E 1 Pierce Pl. Itasca, IL 60143 Voice: (630) 250-3045 x2164 Fax: (630) 250-3046 Datei: ATT222339.txt -- Aus Rechts- und Sicherheitsgruenden ist die in dieser E-Mail gegebene Information nicht rechtsverbindlich. Eine rechtsverbindliche Bestaetigung reichen wir Ihnen gerne auf Anforderung in schriftlicher Form nach. Beachten Sie bitte, dass jede Form der unautorisierten Nutzung, Veroeffentlichung, Vervielfaeltigung oder Weitergabe des Inhalts dieser E-Mail nicht gestattet ist.Diese Nachricht ist ausschliesslich fuer den bezeichneten Adressaten oder dessen Vertreter bestimmt. Sollten Sie nicht der vorgesehene Adressat dieser E-Mail oder dessen Vertreter sein, so bitten wir Sie, sich mit dem Absender der E-Mail in Verbindung zu setzen. For legal and security reasons the information provided in this e-mail is not legally binding. Upon request we would be pleased to provide you with a legally binding confirmation in written form. Any form of unauthorised use, publication, reproduction, copying or disclosure of the content of this e-mail is not permitted. This message is exclusively for the person addressed or their representative. If you are not the intended recipient of this message and its contents, please notify the sender immediately. == -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
AW: Tomcat and JNLP
Do the following in the web.xml in the conf folder: mime-mapping extensionjnlp/extension mime-typeapplication/x-java-jnlp-file/mime-type /mime-mapping Oliver AXA eSolutions GmbH AXA Konzern AG Germany Oliver Lauer Web Architect Wörthstraße 34 D-50668 Köln Germany Tel.: +49 221 148 31277 Fax: +49 221 148 43963 Mobil: +49 179 59 064 59 e-Mail: [EMAIL PROTECTED] _ -Ursprüngliche Nachricht- Von: Jim Urban [mailto:[EMAIL PROTECTED]] Gesendet: Montag, 10. Dezember 2001 14:32 An: Tomcat-User Betreff: Tomcat and JNLP Does Tomcat support Java Web Start? That is, can Tomcat (4.0) serve JNLP files? The doc on the Sun site calls for adding .jnlp to your web server's mime types, how do you do this with Tomcat? Thanks, Jim Urban Product Manager Netsteps Inc. Suite 505E 1 Pierce Pl. Itasca, IL 60143 Voice: (630) 250-3045 x2164 Fax: (630) 250-3046 Datei: ATT222339.txt -- Aus Rechts- und Sicherheitsgruenden ist die in dieser E-Mail gegebene Information nicht rechtsverbindlich. Eine rechtsverbindliche Bestaetigung reichen wir Ihnen gerne auf Anforderung in schriftlicher Form nach. Beachten Sie bitte, dass jede Form der unautorisierten Nutzung, Veroeffentlichung, Vervielfaeltigung oder Weitergabe des Inhalts dieser E-Mail nicht gestattet ist.Diese Nachricht ist ausschliesslich fuer den bezeichneten Adressaten oder dessen Vertreter bestimmt. Sollten Sie nicht der vorgesehene Adressat dieser E-Mail oder dessen Vertreter sein, so bitten wir Sie, sich mit dem Absender der E-Mail in Verbindung zu setzen. For legal and security reasons the information provided in this e-mail is not legally binding. Upon request we would be pleased to provide you with a legally binding confirmation in written form. Any form of unauthorised use, publication, reproduction, copying or disclosure of the content of this e-mail is not permitted. This message is exclusively for the person addressed or their representative. If you are not the intended recipient of this message and its contents, please notify the sender immediately. == -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
FW: Newbie - class loading issue
Title: Newbie - class loading issue Folks, I am facing the same issue. Could not get my classes loaded from WEB-INF/classes folder. Do I have to do anything other than just putting my classes in this folder and restarting tomcat 4.0.1 Can anybody answer this !! Thanks in advance Vinay -Original Message-From: Bill Halpin [mailto:[EMAIL PROTECTED]]Sent: Tuesday, December 04, 2001 9:51 PMTo: '[EMAIL PROTECTED]'Subject: Newbie - class loading issue Hello Folks! I was recently assigned a POC project that includes some web development which I am using Tomcat 4.0.1 to do. I've only been using Tomcat for about 1.5 weeks so I'm extremely wet behind the ears. I've consulted the documentation and searched the list archives looking for an answer to my problem but cant seem to find one. Right now, I am simply trying to use a bean to gather data from a form and return the data to the screen. When I run the jsp to do this, I get one of two different "class not found" errors. I am not deploying the app using a WAR file, right now I just have the jsp file in the root directory and the class files in WEB-INF/classes. The bean class is in the package login. So the full path for the class is WEB-INF/classes/login/UserBean.class. I've also tried the following: 1. Recompiled the class without the package and placed the class in WEB-INF/classes. 2. Created jar file with package. Placed the jar file in WEB-INF/lib. This also did not work, so I tried /lib and /common/lib which also didnt work. I tried all of these locations with and without the package designation. 3. I've added the individual class and the jar file to the classpath. I am sure I am making a simple mistake but cant seem to figure out what that mistake is. According to (my understanding of) the documentation, placing the class files in WEB-INF/classes should be all I need to make them accessible to the jsp, am I mistaken? The text from the errors was rather lengthy, so I have not included it, if necessary I would gladly forward it on. If anyone has a possible solution, or perhaps advice on other sources to peruse to solve the problem, I would greatly appreciate it. Thanks -b Bill Halpin Schwoo, Inc 412-481-3301 [EMAIL PROTECTED] Bill Halpin (E-mail).vcf Description: Binary data -- 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 and character encoding once again
Hi again I develop application using Tomcat 4.0.1 and Sybase Adaptive Server Enterprise. Database encoding is set to Windows Cp 1250 (this is necessary) and pages encoding is iso-8859-2. I tried to use all technics I saw in previous posts to display polish letters insted of ? but nothing works. If I change %@ page contentType=text/html; iso-8859-2 % to cp 1250 and set jdbc connection property CHARSET to cp1250 everything is fine but I need iso encoding in my pages. Any suggestions wnich will help solve this problem ? Thanks Olo -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Some help out a newbie with tomcat and iis
yau- you will need to add the new folder to your uriworkermap.properties file so that it looks something like this: # # Default worker to be used through our mappings # default.worker=ajp13 # # Sites to be redirected to Tomcat # /examples=$(default.worker) /examples/*.jsp=$(default.worker) /jsptest/*.jsp=$(default.worker) also, i couldn't get tomcat to serve jsp's out of my IIS root folder until i changed the tomcat root in my server.xml file. you have this line uncommented: !-- Tomcat Root Context -- Context path= docBase=ROOT debug=0 reloadable=true/ but you might try changing ROOT to C:\InetPub\WWWRoot so that tomcat will look in that folder for the paths listed in uriworkermap. i'm not sure where you've been looking on the net but i found both these sources to be helpful: http://www.vacodi.com/howto/tomcat/iisnt/index.html http://www.verysimple.com/scripts/support_tc_iis.html -katherine -Original Message- From: Yau Chin [mailto:[EMAIL PROTECTED]] Sent: Sunday, December 09, 2001 11:41 PM To: [EMAIL PROTECTED] Subject: Some help out a newbie with tomcat and iis hi, i've recently set up tomcat on my system. i've been trying to set up tomcat with iis so that iis goes to tomcat to render a .jsp page. i've followed instructions i've found on the web, and so far, i have it so that the examples work in the localhost:8080/examples/ directory, as well as the localhost/examples directory. so i know that its successfully redirecting some of it. i made a folder in inetpub/wwwroot named jsptest and put a .jsp file into it, and tried to run it by going to localhost/jsptest/test.jsp. it gives me an HTTP Stats 404 error, with the type being status report, message being jsptest/test.jsp, and the description as the requested resource (jsptest/test.jsp) is not available. since the examples folder works but this one doesn't, i'm thinking i need to add/change something in my server.xml file, but don't know what. can anyone help me? thanks in advance Yau here's my server.xml file !-- Example Server Configuration File -- !-- Note that component elements are nested corresponding to their parent-child relationships with each other -- !-- A Server is a singleton element that represents the entire JVM, which may contain one or more Service instances. The Server listens for a shutdown command on the indicated port. Note: A Server is not itself a Container, so you may not define subcomponents such as Valves or Loggers at this level. -- Server port=8005 shutdown=SHUTDOWN debug=0 !-- A Service is a collection of one or more Connectors that share a single Container (and therefore the web applications visible within that Container). Normally, that Container is an Engine, but this is not required. Note: A Service is not itself a Container, so you may not define subcomponents such as Valves or Loggers at this level. -- !-- Define the Tomcat Stand-Alone Service -- Service name=Tomcat-Standalone !-- A Connector represents an endpoint by which requests are received and responses are returned. Each Connector passes requests on to the associated Container (normally an Engine) for processing. By default, a non-SSL HTTP/1.1 Connector is established on port 8080. You can also enable an SSL HTTP/1.1 Connector on port 8443 by following the instructions below and uncommenting the second Connector entry. SSL support requires the following steps (see the SSL Config HOWTO in the Tomcat 4.0 documentation bundle for more detailed instructions): * Download and install JSSE 1.0.2 or later, and put the JAR files into $JAVA_HOME/jre/lib/ext. * Execute: %JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA (Windows) $JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA (Unix) with a password value of changeit for both the certificate and the keystore itself. By default, DNS lookups are enabled when a web application calls request.getRemoteHost(). This can have an adverse impact on performance, so you can disable it by setting the enableLookups attribute to false. When DNS lookups are disabled, request.getRemoteHost() will return the String version of the IP address of the remote client. -- !-- Define a non-SSL HTTP/1.1 Connector on port 8080 -- Connector className=org.apache.catalina.connector.http.HttpConnector port=8080 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=6/ !-- Note : To disable connection timeouts, set connectionTimeout value to -1 -- !-- Define an SSL HTTP/1.1 Connector on port 8443 -- !-- Connector
error while building mod_jk.so Tomcat 3.3 + Apache 1.3.22 on AIX 4.33
Hello all, I have a problem when building mode_jk.so on AIX. At the beginning, everything works fine but then I get: mod_jk.c, line 1286.6: 1506-026 (S) Number of initializers cannot be greater than the number of aggregate members. apxs:Break: Command failed with rc=1 Can anyone help me please??? Kind regards Jörg Liedtke mailto:[EMAIL PROTECTED] I build the apache with: ./configure --prefix=/usr/local/apache --enable-module=most --enable-shared=max --enable-rule=SHARED_CORE Here my apxs Flags: --- my $CFG_TARGET= q(httpd);# substituted via Makefile.tmpl my $CFG_CC= q(cc);# substituted via Makefile.tmpl my $CFG_CFLAGS= q( -DAIX=43 -DUSE_PTHREAD_SERIALIZED_ACCEPT -U__STR__ -DAIX_BIND_PROCESSOR -qcpluscmt -qnogenpcomp -qnousepcomp -DMOD_SSL=207101 -DMOD_PERL -DUSE_PERL_SSI -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384 -DUSE_HSREGEX -DEAPI -DEAPI_MM -DUSE_EXPAT -I../lib/expat-lite `../apaci`);# substituted via Makefile.tmpl my $CFG_CFLAGS_SHLIB = q(-DSHARED_MODULE); # substituted via Makefile.tmpl my $CFG_LD_SHLIB = q(ld); # substituted via Makefile.tmpl my $CFG_LDFLAGS_SHLIB = q(-H512 -T512 -bhalt:4 -bM:SRE -bnoentry -bexpall -bI:/usr/local/apache2/libexec/httpd.exp -lc -ldl); # substituted via Makefile.tmpl my $CFG_LIBS_SHLIB= q();# substituted via Makefile.tmpl my $CFG_PREFIX= q(/usr/local/apache2);# substituted via APACI install my $CFG_SBINDIR = q(/usr/local/apache2/bin); # substituted via APACI install my $CFG_INCLUDEDIR= q(/usr/local/apache2/include);# substituted via APACI install my $CFG_LIBEXECDIR= q(/usr/local/apache2/libexec);# substituted via APACI install my $CFG_SYSCONFDIR= q(/usr/local/apache2/conf);# substituted via APACI install - cc -DAIX=43 -DUSE_PTHREAD_SERIALIZED_ACCEPT -U__STR__ -DAIX_BIND_PROCESSOR -qcpluscmt -qnogenpcomp -qnousepcomp -DMOD_SSL=207101 -DMOD_PERL -DUSE_PERL_SSI -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384 -DUSE_HSREGEX -DEAPI -DEAPI_MM -DUSE_EXPAT -I../lib/expat-lite -DSHARED_MODULE -I/usr/local/apache2/include -I/usr/java130/include -c jk_ajp12_worker.c cc -DAIX=43 -DUSE_PTHREAD_SERIALIZED_ACCEPT -U__STR__ -DAIX_BIND_PROCESSOR -qcpluscmt -qnogenpcomp -qnousepcomp -DMOD_SSL=207101 -DMOD_PERL -DUSE_PERL_SSI -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384 -DUSE_HSREGEX -DEAPI -DEAPI_MM -DUSE_EXPAT -I../lib/expat-lite -DSHARED_MODULE -I/usr/local/apache2/include -I/usr/java130/include -c jk_ajp13.c cc -DAIX=43 -DUSE_PTHREAD_SERIALIZED_ACCEPT -U__STR__ -DAIX_BIND_PROCESSOR -qcpluscmt -qnogenpcomp -qnousepcomp -DMOD_SSL=207101 -DMOD_PERL -DUSE_PERL_SSI -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384 -DUSE_HSREGEX -DEAPI -DEAPI_MM -DUSE_EXPAT -I../lib/expat-lite -DSHARED_MODULE -I/usr/local/apache2/include -I/usr/java130/include -c jk_ajp13_worker.c cc -DAIX=43 -DUSE_PTHREAD_SERIALIZED_ACCEPT -U__STR__ -DAIX_BIND_PROCESSOR -qcpluscmt -qnogenpcomp -qnousepcomp -DMOD_SSL=207101 -DMOD_PERL -DUSE_PERL_SSI -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384 -DUSE_HSREGEX -DEAPI -DEAPI_MM -DUSE_EXPAT -I../lib/expat-lite -DSHARED_MODULE -I/usr/local/apache2/include -I/usr/java130/include -c jk_connect.c cc -DAIX=43 -DUSE_PTHREAD_SERIALIZED_ACCEPT -U__STR__ -DAIX_BIND_PROCESSOR -qcpluscmt -qnogenpcomp -qnousepcomp -DMOD_SSL=207101 -DMOD_PERL -DUSE_PERL_SSI -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384 -DUSE_HSREGEX -DEAPI -DEAPI_MM -DUSE_EXPAT -I../lib/expat-lite -DSHARED_MODULE -I/usr/local/apache2/include -I/usr/java130/include -c jk_jni_worker.c jk_jni_worker.c, line 739.28: 1506-068 (W) Operation between types long(*)(const struct JNIInvokeInterface_***,const struct JNINativeInterface_***,void*) and void* is not allowed. jk_jni_worker.c, line 740.34: 1506-068 (W) Operation between types long(*)(const struct JNIInvokeInterface_***,int,int*) and void* is not allowed. jk_jni_worker.c, line 741.43: 1506-068 (W) Operation between types long(*)(void*) and void* is not allowed. cc -DAIX=43 -DUSE_PTHREAD_SERIALIZED_ACCEPT -U__STR__ -DAIX_BIND_PROCESSOR -qcpluscmt -qnogenpcomp -qnousepcomp -DMOD_SSL=207101 -DMOD_PERL -DUSE_PERL_SSI -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384 -DUSE_HSREGEX -DEAPI -DEAPI_MM -DUSE_EXPAT -I../lib/expat-lite -DSHARED_MODULE -I/usr/local/apache2/include -I/usr/java130/include -c jk_lb_worker.c cc -DAIX=43 -DUSE_PTHREAD_SERIALIZED_ACCEPT -U__STR__ -DAIX_BIND_PROCESSOR -qcpluscmt -qnogenpcomp -qnousepcomp -DMOD_SSL=207101 -DMOD_PERL -DUSE_PERL_SSI -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384 -DUSE_HSREGEX -DEAPI -DEAPI_MM -DUSE_EXPAT -I../lib/expat-lite -DSHARED_MODULE -I/usr/local/apache2/include -I/usr/java130/include -c jk_map.c cc -DAIX=43
RE: Jakarta NT SERVICE--- logout USER
This isnt a config issue this is a sun JDK (1.3) issue I had heard that 1.4 resolves this, try looking there... -Original Message- From: Catalin [mailto:[EMAIL PROTECTED]] Sent: Monday, December 10, 2001 2:55 PM To: [EMAIL PROTECTED] Subject: Jakarta NT SERVICE--- logout USER Hello to everybody! I have a jakarta-tomcat-3.3m4 on a Win2k system and I have a problem: every times one user of Operating System logout, the service it stoppes. :-( Where do I need to modify the config so that will not be happens any more?? Thanks!! -- 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: Jakarta NT SERVICE--- logout USER
Use the -Xrs option when starting the JVM. Wesley -Original Message- From: Catalin [mailto:[EMAIL PROTECTED]] Sent: Monday, December 10, 2001 2:55 PM To: [EMAIL PROTECTED] Subject: Jakarta NT SERVICE--- logout USER Hello to everybody! I have a jakarta-tomcat-3.3m4 on a Win2k system and I have a problem: every times one user of Operating System logout, the service it stoppes. :-( Where do I need to modify the config so that will not be happens any more?? Thanks!! __ Do You Yahoo!? Send your FREE holiday greetings online! http://greetings.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: error while building mod_jk.so Tomcat 3.3 + Apache 1.3.22 on AIX 4.33
Try to use this flag replacing by your own apache PATH : my $CFG_LDFLAGS_SHLIB = q( -bexpall -bM:SRE -bnoentry -bI:/aladin/stock/gui/apache-1.3.22/libexec/httpd.exp -lc -ldl); # substitute via Makefile.tmpl it worked for me. arno -Message d'origine- De: Liedtke, Joerg [SMTP:[EMAIL PROTECTED]] Date: lundi 10 décembre 2001 15:44 À:Tomcat (E-mail) Objet:error while building mod_jk.so Tomcat 3.3 + Apache 1.3.22 on AIX 4.33 Hello all, I have a problem when building mode_jk.so on AIX. At the beginning, everything works fine but then I get: mod_jk.c, line 1286.6: 1506-026 (S) Number of initializers cannot be greater than the number of aggregate members. apxs:Break: Command failed with rc=1 Can anyone help me please??? Kind regards Jörg Liedtke mailto:[EMAIL PROTECTED] I build the apache with: ./configure --prefix=/usr/local/apache --enable-module=most --enable-shared=max --enable-rule=SHARED_CORE Here my apxs Flags: --- my $CFG_TARGET= q(httpd);# substituted via Makefile.tmpl my $CFG_CC= q(cc);# substituted via Makefile.tmpl my $CFG_CFLAGS= q( -DAIX=43 -DUSE_PTHREAD_SERIALIZED_ACCEPT -U__STR__ -DAIX_BIND_PROCESSOR -qcpluscmt -qnogenpcomp -qnousepcomp -DMOD_SSL=207101 -DMOD_PERL -DUSE_PERL_SSI -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384 -DUSE_HSREGEX -DEAPI -DEAPI_MM -DUSE_EXPAT -I../lib/expat-lite `../apaci`);# substituted via Makefile.tmpl my $CFG_CFLAGS_SHLIB = q(-DSHARED_MODULE); # substituted via Makefile.tmpl my $CFG_LD_SHLIB = q(ld); # substituted via Makefile.tmpl my $CFG_LDFLAGS_SHLIB = q(-H512 -T512 -bhalt:4 -bM:SRE -bnoentry -bexpall -bI:/usr/local/apache2/libexec/httpd.exp -lc -ldl); # substituted via Makefile.tmpl my $CFG_LIBS_SHLIB= q();# substituted via Makefile.tmpl my $CFG_PREFIX= q(/usr/local/apache2);# substituted via APACI install my $CFG_SBINDIR = q(/usr/local/apache2/bin); # substituted via APACI install my $CFG_INCLUDEDIR= q(/usr/local/apache2/include);# substituted via APACI install my $CFG_LIBEXECDIR= q(/usr/local/apache2/libexec);# substituted via APACI install my $CFG_SYSCONFDIR= q(/usr/local/apache2/conf);# substituted via APACI install - cc -DAIX=43 -DUSE_PTHREAD_SERIALIZED_ACCEPT -U__STR__ -DAIX_BIND_PROCESSOR -qcpluscmt -qnogenpcomp -qnousepcomp -DMOD_SSL=207101 -DMOD_PERL -DUSE_PERL_SSI -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384 -DUSE_HSREGEX -DEAPI -DEAPI_MM -DUSE_EXPAT -I../lib/expat-lite -DSHARED_MODULE -I/usr/local/apache2/include -I/usr/java130/include -c jk_ajp12_worker.c cc -DAIX=43 -DUSE_PTHREAD_SERIALIZED_ACCEPT -U__STR__ -DAIX_BIND_PROCESSOR -qcpluscmt -qnogenpcomp -qnousepcomp -DMOD_SSL=207101 -DMOD_PERL -DUSE_PERL_SSI -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384 -DUSE_HSREGEX -DEAPI -DEAPI_MM -DUSE_EXPAT -I../lib/expat-lite -DSHARED_MODULE -I/usr/local/apache2/include -I/usr/java130/include -c jk_ajp13.c cc -DAIX=43 -DUSE_PTHREAD_SERIALIZED_ACCEPT -U__STR__ -DAIX_BIND_PROCESSOR -qcpluscmt -qnogenpcomp -qnousepcomp -DMOD_SSL=207101 -DMOD_PERL -DUSE_PERL_SSI -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384 -DUSE_HSREGEX -DEAPI -DEAPI_MM -DUSE_EXPAT -I../lib/expat-lite -DSHARED_MODULE -I/usr/local/apache2/include -I/usr/java130/include -c jk_ajp13_worker.c cc -DAIX=43 -DUSE_PTHREAD_SERIALIZED_ACCEPT -U__STR__ -DAIX_BIND_PROCESSOR -qcpluscmt -qnogenpcomp -qnousepcomp -DMOD_SSL=207101 -DMOD_PERL -DUSE_PERL_SSI -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384 -DUSE_HSREGEX -DEAPI -DEAPI_MM -DUSE_EXPAT -I../lib/expat-lite -DSHARED_MODULE -I/usr/local/apache2/include -I/usr/java130/include -c jk_connect.c cc -DAIX=43 -DUSE_PTHREAD_SERIALIZED_ACCEPT -U__STR__ -DAIX_BIND_PROCESSOR -qcpluscmt -qnogenpcomp -qnousepcomp -DMOD_SSL=207101 -DMOD_PERL -DUSE_PERL_SSI -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384 -DUSE_HSREGEX -DEAPI -DEAPI_MM -DUSE_EXPAT -I../lib/expat-lite -DSHARED_MODULE -I/usr/local/apache2/include -I/usr/java130/include -c jk_jni_worker.c jk_jni_worker.c, line 739.28: 1506-068 (W) Operation between types long(*)(const struct JNIInvokeInterface_***,const struct JNINativeInterface_***,void*) and void* is not allowed. jk_jni_worker.c, line 740.34: 1506-068 (W) Operation between types long(*)(const struct JNIInvokeInterface_***,int,int*) and void* is not allowed. jk_jni_worker.c, line 741.43: 1506-068 (W) Operation between types long(*)(void*) and void* is not allowed. cc -DAIX=43 -DUSE_PTHREAD_SERIALIZED_ACCEPT -U__STR__ -DAIX_BIND_PROCESSOR -qcpluscmt -qnogenpcomp -qnousepcomp -DMOD_SSL=207101 -DMOD_PERL -DUSE_PERL_SSI -D_ALL_SOURCE -D_ANSI_C_SOURCE
Detecting server name and port
I have a web application which sends out email reminders to members in a database when certian tasks are slipping- This all works great however I would like the application to be smart enough to know which server and port it is installed in so when generating a message it can include a link back to the particular task. What I have currently done is include an init-param tag with this information and it works but then it isnt server independent. I have also explored the possibility of getting the information from HttpServletRequest (which also works) but I'd like the timer function not to depend on someone actually requesting a page. Is there any other methods to get the server name and port ? Thanks Steve -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Help! urgent!
In the apache error.log there is an error message Connection conn cannot connect in which conn is the connection name defined in http.conf to tomcat. Anyone has any idea? I can not get Tomcat running on Appache!! Thanks! Annie -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Jakarta NT SERVICE--- logout USER
Wesley, What the rs option does in the -Xrs option? Pae Use the -Xrs option when starting the JVM. Wesley -Original Message- From: Catalin [mailto:[EMAIL PROTECTED]] Sent: Monday, December 10, 2001 2:55 PM To: [EMAIL PROTECTED] Subject: Jakarta NT SERVICE--- logout USER Hello to everybody! I have a jakarta-tomcat-3.3m4 on a Win2k system and I have a problem: every times one user of Operating System logout, the service it stoppes. :-( Where do I need to modify the config so that will not be happens any more?? Thanks!! __ Do You Yahoo!? Send your FREE holiday greetings online! http://greetings.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]
RE: Jakarta NT SERVICE--- logout USER
$ java -X -Xbootclasspath:directories and zip/jar files separated by ; set search path for bootstrap classes and resources -Xnoclassgc disable class garbage collection -Xmssizeset initial Java heap size -Xmxsizeset maximum Java heap size -Xrs reduce the use of OS signals -Xcheck:jni perform additional checks for JNI functions -Xrunhprof[:help]|[:option=value, ...] perform heap, cpu, or monitor profiling -Xdebug enable remote debugging -Xfuture enable strictest checks, anticipating future default The -X options are non-standard and subject to change without notice. -Original Message- From: Pae Choi [mailto:[EMAIL PROTECTED]] Sent: Monday, December 10, 2001 9:17 AM To: Tomcat Users List Subject: Re: Jakarta NT SERVICE--- logout USER Wesley, What the rs option does in the -Xrs option? Pae Use the -Xrs option when starting the JVM. Wesley -Original Message- From: Catalin [mailto:[EMAIL PROTECTED]] Sent: Monday, December 10, 2001 2:55 PM To: [EMAIL PROTECTED] Subject: Jakarta NT SERVICE--- logout USER Hello to everybody! I have a jakarta-tomcat-3.3m4 on a Win2k system and I have a problem: every times one user of Operating System logout, the service it stoppes. :-( Where do I need to modify the config so that will not be happens any more?? Thanks!! __ Do You Yahoo!? Send your FREE holiday greetings online! http://greetings.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]
RE: Newbie - class loading issue
Newbie - class loading issueHi, Maybe to obvious, but Tomcat is *not* a EJB server, just a servlet/jsp container. Let us know which classes it cannot find if you want to get more repsonse. Putting classes in the WEB-INF/classes are found, the examples prove that. Wouter -Original Message- From: Vinay Singh [mailto:[EMAIL PROTECTED]] Sent: Monday, 10 December, 2001 15:25 To: '[EMAIL PROTECTED]' Subject: FW: Newbie - class loading issue Folks, I am facing the same issue. Could not get my classes loaded from WEB-INF/classes folder. Do I have to do anything other than just putting my classes in this folder and restarting tomcat 4.0.1 Can anybody answer this !! Thanks in advance Vinay -Original Message- From: Bill Halpin [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 04, 2001 9:51 PM To: '[EMAIL PROTECTED]' Subject: Newbie - class loading issue Hello Folks! I was recently assigned a POC project that includes some web development which I am using Tomcat 4.0.1 to do. I've only been using Tomcat for about 1.5 weeks so I'm extremely wet behind the ears. I've consulted the documentation and searched the list archives looking for an answer to my problem but cant seem to find one. Right now, I am simply trying to use a bean to gather data from a form and return the data to the screen. When I run the jsp to do this, I get one of two different class not found errors. I am not deploying the app using a WAR file, right now I just have the jsp file in the root directory and the class files in WEB-INF/classes. The bean class is in the package login. So the full path for the class is WEB-INF/classes/login/UserBean.class. I've also tried the following: 1. Recompiled the class without the package and placed the class in WEB-INF/classes. 2. Created jar file with package. Placed the jar file in WEB-INF/lib. This also did not work, so I tried /lib and /common/lib which also didnt work. I tried all of these locations with and without the package designation. 3. I've added the individual class and the jar file to the classpath. I am sure I am making a simple mistake but cant seem to figure out what that mistake is. According to (my understanding of) the documentation, placing the class files in WEB-INF/classes should be all I need to make them accessible to the jsp, am I mistaken? The text from the errors was rather lengthy, so I have not included it, if necessary I would gladly forward it on. If anyone has a possible solution, or perhaps advice on other sources to peruse to solve the problem, I would greatly appreciate it. Thanks -b Bill Halpin Schwoo, Inc 412-481-3301 [EMAIL PROTECTED]
Re: Jakarta NT SERVICE--- logout USER
Thanks, Brian!!! :-) Pae $ java -X -Xbootclasspath:directories and zip/jar files separated by ; set search path for bootstrap classes and resources -Xnoclassgc disable class garbage collection -Xmssizeset initial Java heap size -Xmxsizeset maximum Java heap size -Xrs reduce the use of OS signals -Xcheck:jni perform additional checks for JNI functions -Xrunhprof[:help]|[:option=value, ...] perform heap, cpu, or monitor profiling -Xdebug enable remote debugging -Xfuture enable strictest checks, anticipating future default The -X options are non-standard and subject to change without notice. -Original Message- From: Pae Choi [mailto:[EMAIL PROTECTED]] Sent: Monday, December 10, 2001 9:17 AM To: Tomcat Users List Subject: Re: Jakarta NT SERVICE--- logout USER Wesley, What the rs option does in the -Xrs option? Pae Use the -Xrs option when starting the JVM. Wesley -Original Message- From: Catalin [mailto:[EMAIL PROTECTED]] Sent: Monday, December 10, 2001 2:55 PM To: [EMAIL PROTECTED] Subject: Jakarta NT SERVICE--- logout USER Hello to everybody! I have a jakarta-tomcat-3.3m4 on a Win2k system and I have a problem: every times one user of Operating System logout, the service it stoppes. :-( Where do I need to modify the config so that will not be happens any more?? Thanks!! __ Do You Yahoo!? Send your FREE holiday greetings online! http://greetings.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] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Apache Tomcat/4.01 - HTTP Status 500 - Internal Server Error
Hi Everyone, We are using Apache 4.0.1, Red Hat Linux 7.1, and Java black sown 1.3.0.02. After the tomcat restarted, the pages callsJava class are all shown this error: Apache Tomcat/4.01 - HTTP Status 500 - Internal Server Error Type: Exception report Message: Internal Server Error Description: The server encounterred an internal error(Internal Server Error) that prevented it from fulfilling this request. exception: org.apache.jasper.JasperException: Unable to compile class for JSPerror: Can't write: /data/domains/ java/search/search.jsp error: Can't write: /data/domains/ java/WEB-INF/classes/search.class 1 error at org.apache.jasper.compiler.Compiler.compile(Compiler.java:284) at org.apache.jasper.servlet.JspServlet.1 oadJSP (JspServlet.java:546) at . . . a lot of other errors After this error occured, refresh the page, then the error is gone. Every page needs to do the refresh. Does anybody know why? Thanks Junying Du -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Apache Tomcat/4.01 - HTTP Status 500 - Internal Server Error
permissions right on the directories and files? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, December 10, 2001 9:40 AM To: [EMAIL PROTECTED] Subject: Apache Tomcat/4.01 - HTTP Status 500 - Internal Server Error Hi Everyone, We are using Apache 4.0.1, Red Hat Linux 7.1, and Java black sown 1.3.0.02. After the tomcat restarted, the pages callsJava class are all shown this error: Apache Tomcat/4.01 - HTTP Status 500 - Internal Server Error Type: Exception report Message: Internal Server Error Description: The server encounterred an internal error(Internal Server Error) that prevented it from fulfilling this request. exception: org.apache.jasper.JasperException: Unable to compile class for JSPerror: Can't write: /data/domains/ java/search/search.jsp error: Can't write: /data/domains/ java/WEB-INF/classes/search.class 1 error at org.apache.jasper.compiler.Compiler.compile(Compiler.java:284) at org.apache.jasper.servlet.JspServlet.1 oadJSP (JspServlet.java:546) at . . . a lot of other errors After this error occured, refresh the page, then the error is gone. Every page needs to do the refresh. Does anybody know why? Thanks Junying Du -- 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: Resources
Thanks a lot! This was very helpful. Especially the 4.0.2 info. Chris -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Craig R. McClanahan Sent: Friday, December 07, 2001 5:12 PM To: Tomcat Users List Subject: Re: Resources On Fri, 7 Dec 2001, Chris Williamson wrote: Date: Fri, 7 Dec 2001 16:19:02 -0600 From: Chris Williamson [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users Group [EMAIL PROTECTED] Subject: Resources Is there a way to load an object into Tomcat, have it initialize automatically, then sit back and process requests. For example you could do this using an MBean in JBoss. I am looking for a similar solution using Tomcat. I can load a resource but it creates a new object everytime I try to look up the object in JNDI. I would rather it just reference an object that is initialized when the system starts. Anyway to do this? Thanks for any help, Chris In a Servlet 2.3 environment (like Tomcat 4), one approach to this would be the new application event listeners functionality. You can register a listener (implements ServletContextListener) that is notified when the web application is started up and shut down. At startup time, simply create the resource you want, and stick it in the servlet context attributes. For Tomcat 4 specifically, you can also create your own object factory for JNDI-accessed resources. The implementation of this factory is totally up to you, so you could have it create an object once and return it every time. (Also, in an update that will show up in 4.0.2 soon, the standard object factories only create an object once.) Craig -- 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: Apache Tomcat/4.01 - HTTP Status 500 - Internal Server Error
The permission for the class Folder is :drwxrwxr-x; For the java class is : -rwxrwxr-x. The permission should be correct. Thanks Junying Du -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
lbfactor again
Hi, As I hadn't gotten any responses, I thought I throw this out there one more time. Is anyone sucessfully using load balancing with mod_jk where the load is properly balance according to the lbfactor set in the workers? I can only get an equal balance, despite what I assign to the lbfactor. Thanks, Wayne Wilson -Original Message- From: Wilson, Wayne [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 06, 2001 2:06 PM To: 'Tomcat Users List' Subject: Load balancing where lbfactors not equal? Hi, I am using Apache 1.3.22, Tomcat Tomcat-3.2.3 and mod_jk on Windows 2000 Professional. I have load balancing working fine with mod_jk across 2 instances of Tomcat except that it seems to ignore the lbfactor I assign to the workers. When the workers' lbfactors are both set to 1, they spread the load evenly across both instances of Tomcat. The problem is that if I set one to 1 and the other to 100 or 1000 ( iwant them to get all the requests), it still seems to send a disproportionate amount of requests to the Tomcat instance with the lbfactor of 1. Here is a snippet from my workers.properties: worker.list=loadbalancer worker.localworker.port=8009 worker.localworker.host=localhost worker.localworker.type=ajp13 worker.localworker.lbfactor=1000 worker.localworker2.port=9009 worker.localworker2.host=localhost worker.localworker2.type=ajp13 worker.localworker2.lbfactor=1 worker.loadbalancer.type=lb worker.loadbalancer.balanced_workers=localworker,localworker2 Is there something I am doing wrong? What I am basically trying to achieve is to send all my requests to one Tomcat instance and only if it fails send it to the other. Basically failover rather than load balancing. I have two Apache servers (which are load balanced through a hardware load balancer) and each one has a primary Tomcat and a failover Tomcat . I have even experimented with setting the lbfactor on the failover Tomcat to 0 with no effect. Has anyone done this before? Is the lbfactor even implemented yet? Thanks in advance, Wayne Wilson -- 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]
More problems with GregorianCalendar object
I hate dealing with dates.:( I want to set my calendarobjects date by using weeknumber (swedish schoo lenvironment equals that everthing is measured in weeks and not in dates) I have this code: String[] ids = TimeZone.getAvailableIDs(1 * 60 * 60 * 1000); SimpleTimeZone pdt = new SimpleTimeZone(1 * 60 * 60 * 1000, ids[0]); pdt.setStartRule(Calendar.APRIL, 1, Calendar.SUNDAY, 1 * 60 * 60 * 1000); pdt.setEndRule(Calendar.OCTOBER, -1, Calendar.SUNDAY, 1 * 60 * 60 * 1000); GregorianCalendar MyDate = new GregorianCalendar(pdt); Boolean IsVego = Boolean.valueOf(request.getParameter(IsVego)); int Week = Integer.valueOf(request.getParameter(Vecka), 10).intValue(); int Year = Integer.valueOf(request.getParameter(Year), 10).intValue(); MyDate.set(GregorianCalendar.YEAR, Year); MyDate.set(GregorianCalendar.WEEK_OF_YEAR, Week); MyDate.set(GregorianCalendar.DAY_OF_WEEK, GregorianCalendar.MONDAY); But It does not change WEEK_OF_YEAR; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Magnus Jansson IT-Manager Väddö folkhögskola 760 40 Väddö Sweden Phone: +46 (0) 176-528 00 Cellular: +46 (0) 70-370 33 16 Fax: +46 (0) 176-528 28 http://www.vaddo.fhsk.se (work) http://www.jason.pp.se (private) ICQ: 52797837 -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Newbie - class loading issue
Title: RE: Newbie - class loading issue It's a normal .class file. If I put the same file in Catalina_home\calsses, it works. Yeah ! You are right. Examples prove that classes are loaded from WEB-INF\classes. Do I need to do something special with the example context that I am creating for my application. I am using a very simple web.xml lying in myapplication\WEB-INF\. Attached here for your reference. Another related question I have is : Can I set class path in some .bat file (such as startup.bat or catalina.bat), which can act as my classpath for Tomcat. Vinay -Original Message- From: Ikke List [mailto:[EMAIL PROTECTED]] Sent: Monday, December 10, 2001 8:53 PM To: Tomcat Users List Subject: RE: Newbie - class loading issue Newbie - class loading issueHi, Maybe to obvious, but Tomcat is *not* a EJB server, just a servlet/jsp container. Let us know which classes it cannot find if you want to get more repsonse. Putting classes in the WEB-INF/classes are found, the examples prove that. Wouter -Original Message- From: Vinay Singh [mailto:[EMAIL PROTECTED]] Sent: Monday, 10 December, 2001 15:25 To: '[EMAIL PROTECTED]' Subject: FW: Newbie - class loading issue Folks, I am facing the same issue. Could not get my classes loaded from WEB-INF/classes folder. Do I have to do anything other than just putting my classes in this folder and restarting tomcat 4.0.1 Can anybody answer this !! Thanks in advance Vinay -Original Message- From: Bill Halpin [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 04, 2001 9:51 PM To: '[EMAIL PROTECTED]' Subject: Newbie - class loading issue Hello Folks! I was recently assigned a POC project that includes some web development which I am using Tomcat 4.0.1 to do. I've only been using Tomcat for about 1.5 weeks so I'm extremely wet behind the ears. I've consulted the documentation and searched the list archives looking for an answer to my problem but cant seem to find one. Right now, I am simply trying to use a bean to gather data from a form and return the data to the screen. When I run the jsp to do this, I get one of two different class not found errors. I am not deploying the app using a WAR file, right now I just have the jsp file in the root directory and the class files in WEB-INF/classes. The bean class is in the package login. So the full path for the class is WEB-INF/classes/login/UserBean.class. I've also tried the following: 1. Recompiled the class without the package and placed the class in WEB-INF/classes. 2. Created jar file with package. Placed the jar file in WEB-INF/lib. This also did not work, so I tried /lib and /common/lib which also didnt work. I tried all of these locations with and without the package designation. 3. I've added the individual class and the jar file to the classpath. I am sure I am making a simple mistake but cant seem to figure out what that mistake is. According to (my understanding of) the documentation, placing the class files in WEB-INF/classes should be all I need to make them accessible to the jsp, am I mistaken? The text from the errors was rather lengthy, so I have not included it, if necessary I would gladly forward it on. If anyone has a possible solution, or perhaps advice on other sources to peruse to solve the problem, I would greatly appreciate it. Thanks -b Bill Halpin Schwoo, Inc 412-481-3301 [EMAIL PROTECTED] web.xml Description: Binary data -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
AW: Apache Tomcat/4.01 - HTTP Status 500 - Internal Server Error
Depens on the owner of the directory, the class file and the owner of the tomcat process. They have to be at least in the same group with this settings. Have also a look at the parent directories of the class folder. The user that runs tomcat must have the right to traverse all parents. -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Gesendet: Montag, 10. Dezember 2001 16:52 An: Tomcat Users List Betreff: RE: Apache Tomcat/4.01 - HTTP Status 500 - Internal Server Error The permission for the class Folder is :drwxrwxr-x; For the java class is : -rwxrwxr-x. The permission should be correct. Thanks Junying Du -- 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]
solved RE: error while building mod_jk.so Tomcat 3.3 + Apache 1.3.22 on AIX 4.33
Hello all, my problem is solved! Thank's Arnaud for your help!! Kind regards Jörg -Original Message- From: Arnaud Héritier [mailto:[EMAIL PROTECTED]] Sent: Montag, 10. Dezember 2001 15:53 To: 'Tomcat Users List' Subject: RE: error while building mod_jk.so Tomcat 3.3 + Apache 1.3.22 on AIX 4.33 Try to use this flag replacing by your own apache PATH : my $CFG_LDFLAGS_SHLIB = q( -bexpall -bM:SRE -bnoentry -bI:/aladin/stock/gui/apache-1.3.22/libexec/httpd.exp -lc -ldl); # substitute via Makefile.tmpl it worked for me. arno -Message d'origine- De: Liedtke, Joerg [SMTP:[EMAIL PROTECTED]] Date: lundi 10 décembre 2001 15:44 À:Tomcat (E-mail) Objet:error while building mod_jk.so Tomcat 3.3 + Apache 1.3.22 on AIX 4.33 Hello all, I have a problem when building mode_jk.so on AIX. At the beginning, everything works fine but then I get: mod_jk.c, line 1286.6: 1506-026 (S) Number of initializers cannot be greater than the number of aggregate members. apxs:Break: Command failed with rc=1 Can anyone help me please??? Kind regards Jörg Liedtke mailto:[EMAIL PROTECTED] I build the apache with: ./configure --prefix=/usr/local/apache --enable-module=most --enable-shared=max --enable-rule=SHARED_CORE Here my apxs Flags: --- my $CFG_TARGET= q(httpd);# substituted via Makefile.tmpl my $CFG_CC= q(cc);# substituted via Makefile.tmpl my $CFG_CFLAGS= q( -DAIX=43 -DUSE_PTHREAD_SERIALIZED_ACCEPT -U__STR__ -DAIX_BIND_PROCESSOR -qcpluscmt -qnogenpcomp -qnousepcomp -DMOD_SSL=207101 -DMOD_PERL -DUSE_PERL_SSI -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384 -DUSE_HSREGEX -DEAPI -DEAPI_MM -DUSE_EXPAT -I../lib/expat-lite `../apaci`);# substituted via Makefile.tmpl my $CFG_CFLAGS_SHLIB = q(-DSHARED_MODULE); # substituted via Makefile.tmpl my $CFG_LD_SHLIB = q(ld); # substituted via Makefile.tmpl my $CFG_LDFLAGS_SHLIB = q(-H512 -T512 -bhalt:4 -bM:SRE -bnoentry -bexpall -bI:/usr/local/apache2/libexec/httpd.exp -lc -ldl); # substituted via Makefile.tmpl my $CFG_LIBS_SHLIB= q();# substituted via Makefile.tmpl my $CFG_PREFIX= q(/usr/local/apache2);# substituted via APACI install my $CFG_SBINDIR = q(/usr/local/apache2/bin); # substituted via APACI install my $CFG_INCLUDEDIR= q(/usr/local/apache2/include);# substituted via APACI install my $CFG_LIBEXECDIR= q(/usr/local/apache2/libexec);# substituted via APACI install my $CFG_SYSCONFDIR= q(/usr/local/apache2/conf);# substituted via APACI install - cc -DAIX=43 -DUSE_PTHREAD_SERIALIZED_ACCEPT -U__STR__ -DAIX_BIND_PROCESSOR -qcpluscmt -qnogenpcomp -qnousepcomp -DMOD_SSL=207101 -DMOD_PERL -DUSE_PERL_SSI -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384 -DUSE_HSREGEX -DEAPI -DEAPI_MM -DUSE_EXPAT -I../lib/expat-lite -DSHARED_MODULE -I/usr/local/apache2/include -I/usr/java130/include -c jk_ajp12_worker.c cc -DAIX=43 -DUSE_PTHREAD_SERIALIZED_ACCEPT -U__STR__ -DAIX_BIND_PROCESSOR -qcpluscmt -qnogenpcomp -qnousepcomp -DMOD_SSL=207101 -DMOD_PERL -DUSE_PERL_SSI -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384 -DUSE_HSREGEX -DEAPI -DEAPI_MM -DUSE_EXPAT -I../lib/expat-lite -DSHARED_MODULE -I/usr/local/apache2/include -I/usr/java130/include -c jk_ajp13.c cc -DAIX=43 -DUSE_PTHREAD_SERIALIZED_ACCEPT -U__STR__ -DAIX_BIND_PROCESSOR -qcpluscmt -qnogenpcomp -qnousepcomp -DMOD_SSL=207101 -DMOD_PERL -DUSE_PERL_SSI -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384 -DUSE_HSREGEX -DEAPI -DEAPI_MM -DUSE_EXPAT -I../lib/expat-lite -DSHARED_MODULE -I/usr/local/apache2/include -I/usr/java130/include -c jk_ajp13_worker.c cc -DAIX=43 -DUSE_PTHREAD_SERIALIZED_ACCEPT -U__STR__ -DAIX_BIND_PROCESSOR -qcpluscmt -qnogenpcomp -qnousepcomp -DMOD_SSL=207101 -DMOD_PERL -DUSE_PERL_SSI -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384 -DUSE_HSREGEX -DEAPI -DEAPI_MM -DUSE_EXPAT -I../lib/expat-lite -DSHARED_MODULE -I/usr/local/apache2/include -I/usr/java130/include -c jk_connect.c cc -DAIX=43 -DUSE_PTHREAD_SERIALIZED_ACCEPT -U__STR__ -DAIX_BIND_PROCESSOR -qcpluscmt -qnogenpcomp -qnousepcomp -DMOD_SSL=207101 -DMOD_PERL -DUSE_PERL_SSI -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384 -DUSE_HSREGEX -DEAPI -DEAPI_MM -DUSE_EXPAT -I../lib/expat-lite -DSHARED_MODULE -I/usr/local/apache2/include -I/usr/java130/include -c jk_jni_worker.c jk_jni_worker.c, line 739.28: 1506-068 (W) Operation between types long(*)(const struct JNIInvokeInterface_***,const struct JNINativeInterface_***,void*) and void* is not allowed. jk_jni_worker.c, line 740.34: 1506-068 (W) Operation between types long(*)(const struct JNIInvokeInterface_***,int,int*) and void* is not allowed.
Re: AW: Apache Tomcat/4.01 - HTTP Status 500 - Internal Server Error
Thanks. But why after refresh the page, it wil work OK? Thanks Junying Du -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Help! urgent!
Did you try starting Tomcat before starting Apache? -Original Message- From: Peng Annie [mailto:[EMAIL PROTECTED]] Sent: Monday, December 10, 2001 9:08 AM To: '[EMAIL PROTECTED]' Subject: Help! urgent! In the apache error.log there is an error message Connection conn cannot connect in which conn is the connection name defined in http.conf to tomcat. Anyone has any idea? I can not get Tomcat running on Appache!! Thanks! Annie -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Help! urgent!
I tried, but apache still can not find my jsp files in tomcat(it can find html files). -Original Message- From: Kemp Randy-W18971 [mailto:[EMAIL PROTECTED]] Sent: 10 December 2001 17:31 To: '[EMAIL PROTECTED]' Subject: RE: Help! urgent! Did you try starting Tomcat before starting Apache? -Original Message- From: Peng Annie [mailto:[EMAIL PROTECTED]] Sent: Monday, December 10, 2001 9:08 AM To: '[EMAIL PROTECTED]' Subject: Help! urgent! In the apache error.log there is an error message Connection conn cannot connect in which conn is the connection name defined in http.conf to tomcat. Anyone has any idea? I can not get Tomcat running on Appache!! Thanks! Annie -- 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]
mod_webapp error
I noticed some people had the same issue in the past, I was unable to find the resolution. Any help would be greatly appreciated. I am currently attempting to Run Apache, Tomcat, JDK 1.3.1 on a Solaris 8 (Sun Installed Netra) and I am getting the following error: Cannot load /usr/apache/libexec/mod_webapp.so into server: ld.so.1: /usr/apache/ bin/httpd: fatal: relocation error: file /usr/apache/libexec/mod_webapp.so: symbol __lshrdi3: referenced symbol not found Thanks, Preston -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
no such method error on ((org.apache.jasper.runtime.JspWriterImpl)out).flushBuffer();
I am getting this error when I hit my first JSP page hosted on a tomcat 3.3 server, Win2k, JDK 1.3.0_1. The examples and admin pages work fine with this installation. The compile error is coming from the wrapper around my jsp, not anything in my jsp. The contents of the page look like: Error: 500 Location: /lighthouse/login.jsp Internal Servlet Error: org.apache.jasper.JasperException: Unable to compile C:\jakarta-tomcat-3.3\work\DEFAULT\lighthouse\login_1.java:2883: No method matching flushBuffer() found in class org.apache.jasper.runtime.JspWriterImpl. ((org.apache.jasper.runtime.JspWriterImpl)out).flushBuffer(); That code fragment in the generated java looks like: // end // HTML // begin [file=C:\\jakarta-tomcat-3.3\\webapps\\bob\\login.jsp;from=(65,42);to=(66, 0)] out.write(\r\n); // end } catch (Exception ex) { if (out != null out.getBufferSize() != 0) out.clearBuffer(); if (pageContext != null) pageContext.handlePageException(ex); } catch (Error error) { throw error; } catch (Throwable throwable) { throw new ServletException(throwable); } } finally { if (out instanceof org.apache.jasper.runtime.JspWriterImpl) { ((org.apache.jasper.runtime.JspWriterImpl)out).flushBuffer(); } if (_jspxFactory != null) _jspxFactory.releasePageContext(pageContext); } My server is setup with a custom context, but I get the same error with a standard entry in the webapps directory. I searched the mailing list and newsgroups and found this post, but not replies, and the author has not heard from anyone. I apologize if this has been covered, I cannot find any mention of it. Any help is appreciated. Patrick http://groups.google.com/groups?q=tomcat+JspWriterImpl+no+method+matching+fl ushBuffer()hl=enrnum=2selm=AW1P7.1958%24_3.8295%40news.iol.ie Hello, I'm running Tomcat3.3 as a service on Win2k with IIS. I can get the example jsp's to run perfectly, however when I request one of my own I get the following error: Error: 500 Location: /knowware/jsp/ScormWizard.jsp Internal Servlet Error: org.apache.jasper.JasperException: Unable to compile C:\tomcat3.3\work\DEFAULT\knowware\jsp\ScormWizard_1.java:182: No method matching flushBuffer() found in class org.apache.jasper.runtime.JspWriterImpl. ((org.apache.jasper.runtime.JspWriterImpl)out).flushBuffer(); ^ Has anybody seen this before and do they know the cause.I'm positive I've got Tomcat set up correctly and have the appropriate xml files configured right. Any help would be appreciated. Thanks. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Help! urgent!
Is your mod_jk.conf configured to handle the jsps? (with JkMount) -Original Message- From: Peng Annie [mailto:[EMAIL PROTECTED]] Sent: Monday, December 10, 2001 11:37 AM To: 'Tomcat Users List' Subject: RE: Help! urgent! I tried, but apache still can not find my jsp files in tomcat(it can find html files). -Original Message- From: Kemp Randy-W18971 [mailto:[EMAIL PROTECTED]] Sent: 10 December 2001 17:31 To: '[EMAIL PROTECTED]' Subject: RE: Help! urgent! Did you try starting Tomcat before starting Apache? -Original Message- From: Peng Annie [mailto:[EMAIL PROTECTED]] Sent: Monday, December 10, 2001 9:08 AM To: '[EMAIL PROTECTED]' Subject: Help! urgent! In the apache error.log there is an error message Connection conn cannot connect in which conn is the connection name defined in http.conf to tomcat. Anyone has any idea? I can not get Tomcat running on Appache!! Thanks! Annie -- 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: Help! urgent!
I am using mod_webapp. my httpd.conf, server.xml are in the attachments. -Original Message- From: Wilson, Wayne [mailto:[EMAIL PROTECTED]] Sent: 10 December 2001 17:41 To: 'Tomcat Users List' Subject: RE: Help! urgent! Is your mod_jk.conf configured to handle the jsps? (with JkMount) -Original Message- From: Peng Annie [mailto:[EMAIL PROTECTED]] Sent: Monday, December 10, 2001 11:37 AM To: 'Tomcat Users List' Subject: RE: Help! urgent! I tried, but apache still can not find my jsp files in tomcat(it can find html files). -Original Message- From: Kemp Randy-W18971 [mailto:[EMAIL PROTECTED]] Sent: 10 December 2001 17:31 To: '[EMAIL PROTECTED]' Subject: RE: Help! urgent! Did you try starting Tomcat before starting Apache? -Original Message- From: Peng Annie [mailto:[EMAIL PROTECTED]] Sent: Monday, December 10, 2001 9:08 AM To: '[EMAIL PROTECTED]' Subject: Help! urgent! In the apache error.log there is an error message Connection conn cannot connect in which conn is the connection name defined in http.conf to tomcat. Anyone has any idea? I can not get Tomcat running on Appache!! Thanks! Annie -- 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] httpd.conf Description: Binary data server.xml Description: Binary data -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
errros in embedded tomcat!
Hi, Im trying to embed the tomcat engine into one of our products. I was using the Embedded.java file in org.apache.cataline.startup package as an example to startup the embedded engine and i have a few questions/problems. Without changing any code in Embedded.java io tried to run it.. I got the following exception (sys.out below): *** StandardContext[]: Configuring default Resources StandardContext[]: Error initializing resources: Document base .\.\webapps\.\web apps\ROOT does not exist or is not a readable directory StandardContext[]: Configuring default Loader StandardContext[]: Configuring default Manager StandardContext[]: Processing standard container startup StandardContext[]: Context startup failed due to previous errors StandardContext[]: Stopping StandardContext[]: Stopping filters StandardContext[]: Sending application stop events StandardContext[]: Processing standard container shutdown StandardContext[]: Exception during cleanup after start failed LifecycleException: Container StandardContext[] has not been started at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1147) at org.apache.catalina.core.StandardContext.stop(StandardContext.java:34 40) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3 397) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123) at org.apache.catalina.core.StandardHost.start(StandardHost.java:612) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:307 ) at org.apache.catalina.startup.Embedded.addEngine(Embedded.java:469) at org.apache.catalina.startup.Embedded.main(Embedded.java:1079) **8 The problem seemed to be this statement in Embedded.main method Context root = embedded.createContext(, home + /webapps/ROOT); It seemed like it was expecting /webapps/webapps/ROOT directory. so i tried to change the source-code to Context root = embedded.createContext(, home + /ROOT); and it ran fine without any exceptions. Now when i try browsing using http://localhost:8080; it gives me a HTTP Error saying resource / not available. Is the example provided in Embedded class really working? Is there is a sample/example somewhere where i can check how to embed tomcat? Also, In the example it says, for ease of deploying web applications use the deploy method as below: ((Deployer) host).deploy(/examples, (new File(./webapps/examples)).toURL()); This doesnot seems to be working as the Deployer class doesnt have the deploy method. Thanks in advance! Arvind CONFIDENTIALITY NOTICE: E-mail may contain confidential information that is legally protected. Do not read this e-mail if you are not the intended recipient. This e-mail transmission, and any documents, files or previous e-mail messages attached to it may contain confidential information that is legally protected. If you are not the intended recipient or a person responsible for delivering it to the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of any of the information contained in or attached to this transmission is STRICTLY PROHIBITED. If you have received this transmission in error, please immediately notify us by reply e-mail, by forwarding this to [EMAIL PROTECTED] or by telephone at (877) PANACYA, and destroy the original transmission and its attachments without reading or saving in any manner. Thank you. For information about PANACYA Inc., please visit our website at http://www.panacya.com.
RE: Help! urgent!
Sorry, I haven't used mod_webapp yet (I needed the load balancing I can get with mod_jk) so I wouldn't be much help. Good luck! --Wayne -Original Message- From: Peng Annie [mailto:[EMAIL PROTECTED]] Sent: Monday, December 10, 2001 11:53 AM To: 'Tomcat Users List' Subject: RE: Help! urgent! I am using mod_webapp. my httpd.conf, server.xml are in the attachments. -Original Message- From: Wilson, Wayne [mailto:[EMAIL PROTECTED]] Sent: 10 December 2001 17:41 To: 'Tomcat Users List' Subject: RE: Help! urgent! Is your mod_jk.conf configured to handle the jsps? (with JkMount) -Original Message- From: Peng Annie [mailto:[EMAIL PROTECTED]] Sent: Monday, December 10, 2001 11:37 AM To: 'Tomcat Users List' Subject: RE: Help! urgent! I tried, but apache still can not find my jsp files in tomcat(it can find html files). -Original Message- From: Kemp Randy-W18971 [mailto:[EMAIL PROTECTED]] Sent: 10 December 2001 17:31 To: '[EMAIL PROTECTED]' Subject: RE: Help! urgent! Did you try starting Tomcat before starting Apache? -Original Message- From: Peng Annie [mailto:[EMAIL PROTECTED]] Sent: Monday, December 10, 2001 9:08 AM To: '[EMAIL PROTECTED]' Subject: Help! urgent! In the apache error.log there is an error message Connection conn cannot connect in which conn is the connection name defined in http.conf to tomcat. Anyone has any idea? I can not get Tomcat running on Appache!! Thanks! Annie -- 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]
RE: Apache + mod_jk (ajp13) + Tomcat: no Expires header in the response
This stuff is getting *really* funny! I run it under Windows and it worked. I compared HTTP headers, the problem is that: - Apache (under Windows or Linux) does not set Expires header for HTML pages restituted by Tomcat - Apache _under Linux_ sets a wrong (i.e. old, not updated) Last-Modified header, so that the browser loads a local cached copy of the page The time set by Apache into the Last-Modified header is not the time of creation/modification of any other file of my webapps/test directory, so I really can't understand how Apache sets it. Any hint? Cheers, Michele -Original Message- From: Michele Milani Sent: lunedì 10 dicembre 2001 12:14 To: '[EMAIL PROTECTED]' Subject: Apache + mod_jk (ajp13) + Tomcat: no Expires header in the response Dear guys, I searched the archive and the Usenet without success. I'm using a box with: - Linux Red Hat 7.2 - Apache 1.3.20 - mod_jk (ajp13) - Tomcat 3.3 I developed a web application that let you browse through some static HTML pages and let you update the content of these HTML page, inserting some data in a form. The update of the static pages is done by a servlet that rewrite the HTML file. The problem is that I can't get the last updated HTML page in my browser. I thought it was a problem realted to caching, so I forced Apache to set the Expires header writing in the httpd.conf: #ExpiresActive On #ExpiresByType text/html access but this solution didn't help. I turned on a protocol analyzer (Etheral) to try and understand what the problem was and I realized that Apache does not set the Expires header when the HTML page comes from Tomcat. I think my application is not so strange: I want to save the new data inserted by the user so that the next time she requests the page she gets the last version of it. I wrote another very simple application to explain my problem better, simply copy the following files under $TOMCAT_HOME/webapps/ and compile the servlet: === test/index.html === html head /head body a href=servlet/DateServletTest/abr /body /html = test/WEB-INF/classes/DateServlet.java = import java.io.*; import java.util.*; import javax.servlet.*; import javax.servlet.http.*; public class DateServlet extends HttpServlet { public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { try { Date now = new Date(); PrintWriter dateWriter = new PrintWriter(new FileWriter(../webapps/test/date.html), true); dateWriter.println(now); dateWriter.println(br); dateWriter.println(a href=\servlet/DateServlet\Update/a); dateWriter.close(); response.setContentType(text/html); PrintWriter out = response.getWriter(); out.println(now); out.println(meta http-equiv='refresh' content='3; url=\/test/date.html\'/meta); } catch(Exception ex) { PrintWriter errorWriter = new PrintWriter(new FileWriter(../webapps/bib/error.txt), true); ex.printStackTrace(errorWriter); errorWriter.close(); } } } Did anyone else experiment such problems? Cheers, Michele -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Help please
Hi, I'm brazilian and we are using tom cat in our university on a project similar webct (www.icunimep.hpg.com.br) and I don't know how to configure tomcat to do the authentification of the users. i know how to do it in linux with .htaccess but tom cat in windows is different. I would like to do the same what .htaccess do in apache on the TomCat, please if somebody have some ideia or documentation or how-to, please send me, thanks all and excuse for the big email eduardo pasquotto orsolini 52422 e-mail: [EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Help! urgent!
LoadModule webapp_module modules/mod_webapp.so AddModule mod_webapp.c WebAppConnection conn warp localhost:8008 WebAppDeploy examples conn /examples WebAppInfo /webapp-info ¿Why don't you try to put the LoadModule and the addModule in the same place than the others?. Or delete the line LoadModule weapp . The else seems nice. Here you are an example working the loadmudule and addmodule are with the others... ## Confituración del conector WARP para Apache #AddModule mod_webapp.c WebAppConnection conn warp gallegos:8008 WebAppDeploy examples conn /examples WebAppDeploy pruebasconn /pruebas WebAppDeploy managerconn /manager Also, ensure that you have this in your server.xml. !-- Define an Apache-Connector Service -- Service name=Tomcat-Apache Connector className=org.apache.catalina.connector.warp.WarpConnector port=8008 minProcessors=5 maxProcessors=75 enableLookups=true acceptCount=10 debug=0/ !-- Replace localhost with what your Apache ServerName is set to -- Engine className=org.apache.catalina.connector.warp.WarpEngine name=Apache debug=0 appBase=webapps !-- Global logger unless overridden at lower levels -- Logger className=org.apache.catalina.logger.FileLogger prefix=apache_log. suffix=.txt timestamp=true/ !-- Because this Realm is here, an instance will be shared globally -- Realm className=org.apache.catalina.realm.MemoryRealm / /Engine /Service Wilson, Wayne wrote: Sorry, I haven't used mod_webapp yet (I needed the load balancing I can get with mod_jk) so I wouldn't be much help. Good luck! --Wayne -Original Message- From: Peng Annie [mailto:[EMAIL PROTECTED]] Sent: Monday, December 10, 2001 11:53 AM To: 'Tomcat Users List' Subject: RE: Help! urgent! I am using mod_webapp. my httpd.conf, server.xml are in the attachments. -Original Message- From: Wilson, Wayne [mailto:[EMAIL PROTECTED]] Sent: 10 December 2001 17:41 To: 'Tomcat Users List' Subject: RE: Help! urgent! Is your mod_jk.conf configured to handle the jsps? (with JkMount) -Original Message- From: Peng Annie [mailto:[EMAIL PROTECTED]] Sent: Monday, December 10, 2001 11:37 AM To: 'Tomcat Users List' Subject: RE: Help! urgent! I tried, but apache still can not find my jsp files in tomcat(it can find html files). -Original Message- From: Kemp Randy-W18971 [mailto:[EMAIL PROTECTED]] Sent: 10 December 2001 17:31 To: '[EMAIL PROTECTED]' Subject: RE: Help! urgent! Did you try starting Tomcat before starting Apache? -Original Message- From: Peng Annie [mailto:[EMAIL PROTECTED]] Sent: Monday, December 10, 2001 9:08 AM To: '[EMAIL PROTECTED]' Subject: Help! urgent! In the apache error.log there is an error message Connection conn cannot connect in which conn is the connection name defined in http.conf to tomcat. Anyone has any idea? I can not get Tomcat running on Appache!! Thanks! Annie -- 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]
RE: no such method error on ((org.apache.jasper.runtime.JspWriterImpl)out).flushBuffer();
This means that within Tomcat 3.3's classloader hierarchy, there is more than one JspWriterImpl and the foreign one (i.e. the one that didn't come with Tomcat 3.3) doesn't have a flushBuffer() method. Most likely, this is due to a jar that has been added to the JAVA_HOME/jre/lib/ext library. Cheers, Larry -Original Message- From: Patrick Dyson [mailto:[EMAIL PROTECTED]] Sent: Monday, December 10, 2001 11:40 AM To: [EMAIL PROTECTED] Subject: no such method error on ((org.apache.jasper.runtime.JspWriterImpl)out).flushBuffer(); I am getting this error when I hit my first JSP page hosted on a tomcat 3.3 server, Win2k, JDK 1.3.0_1. The examples and admin pages work fine with this installation. The compile error is coming from the wrapper around my jsp, not anything in my jsp. The contents of the page look like: Error: 500 Location: /lighthouse/login.jsp Internal Servlet Error: org.apache.jasper.JasperException: Unable to compile C:\jakarta-tomcat-3.3\work\DEFAULT\lighthouse\login_1.java:288 3: No method matching flushBuffer() found in class org.apache.jasper.runtime.JspWriterImpl. ((org.apache.jasper.runtime.JspWriterImpl)out).flushBuffer(); That code fragment in the generated java looks like: // end // HTML // begin [file=C:\\jakarta-tomcat-3.3\\webapps\\bob\\login.jsp;from=( 65,42);to=(66, 0)] out.write(\r\n); // end } catch (Exception ex) { if (out != null out.getBufferSize() != 0) out.clearBuffer(); if (pageContext != null) pageContext.handlePageException(ex); } catch (Error error) { throw error; } catch (Throwable throwable) { throw new ServletException(throwable); } } finally { if (out instanceof org.apache.jasper.runtime.JspWriterImpl) { ((org.apache.jasper.runtime.JspWriterImpl)out).flushBuffer(); } if (_jspxFactory != null) _jspxFactory.releasePageContext(pageContext); } My server is setup with a custom context, but I get the same error with a standard entry in the webapps directory. I searched the mailing list and newsgroups and found this post, but not replies, and the author has not heard from anyone. I apologize if this has been covered, I cannot find any mention of it. Any help is appreciated. Patrick http://groups.google.com/groups?q=tomcat+JspWriterImpl+no+meth od+matching+fl ushBuffer()hl=enrnum=2selm=AW1P7.1958%24_3.8295%40news.iol.ie Hello, I'm running Tomcat3.3 as a service on Win2k with IIS. I can get the example jsp's to run perfectly, however when I request one of my own I get the following error: Error: 500 Location: /knowware/jsp/ScormWizard.jsp Internal Servlet Error: org.apache.jasper.JasperException: Unable to compile C:\tomcat3.3\work\DEFAULT\knowware\jsp\ScormWizard_1.java:182: No method matching flushBuffer() found in class org.apache.jasper.runtime.JspWriterImpl. ((org.apache.jasper.runtime.JspWriterImpl)out).flushBuffer(); ^ Has anybody seen this before and do they know the cause.I'm positive I've got Tomcat set up correctly and have the appropriate xml files configured right. Any help would be appreciated. Thanks. -- 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: Help! urgent!
Try reading http://www.webmasterbase.com/article/305, and reviewing the steps the author followed, to see if you missed something. -Original Message- From: Peng Annie [mailto:[EMAIL PROTECTED]] Sent: Monday, December 10, 2001 10:53 AM To: 'Tomcat Users List' Subject: RE: Help! urgent! I am using mod_webapp. my httpd.conf, server.xml are in the attachments. -Original Message- From: Wilson, Wayne [mailto:[EMAIL PROTECTED]] Sent: 10 December 2001 17:41 To: 'Tomcat Users List' Subject: RE: Help! urgent! Is your mod_jk.conf configured to handle the jsps? (with JkMount) -Original Message- From: Peng Annie [mailto:[EMAIL PROTECTED]] Sent: Monday, December 10, 2001 11:37 AM To: 'Tomcat Users List' Subject: RE: Help! urgent! I tried, but apache still can not find my jsp files in tomcat(it can find html files). -Original Message- From: Kemp Randy-W18971 [mailto:[EMAIL PROTECTED]] Sent: 10 December 2001 17:31 To: '[EMAIL PROTECTED]' Subject: RE: Help! urgent! Did you try starting Tomcat before starting Apache? -Original Message- From: Peng Annie [mailto:[EMAIL PROTECTED]] Sent: Monday, December 10, 2001 9:08 AM To: '[EMAIL PROTECTED]' Subject: Help! urgent! In the apache error.log there is an error message Connection conn cannot connect in which conn is the connection name defined in http.conf to tomcat. Anyone has any idea? I can not get Tomcat running on Appache!! Thanks! Annie -- 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]
RE: Help! urgent!
Could you send me the whole httpd.conf file? Thanks -Original Message- From: Antonio Gallegos García [mailto:[EMAIL PROTECTED]] Sent: 10 December 2001 18:31 To: Tomcat Users List Subject: Re: Help! urgent! LoadModule webapp_module modules/mod_webapp.so AddModule mod_webapp.c WebAppConnection conn warp localhost:8008 WebAppDeploy examples conn /examples WebAppInfo /webapp-info ¿Why don't you try to put the LoadModule and the addModule in the same place than the others?. Or delete the line LoadModule weapp . The else seems nice. Here you are an example working the loadmudule and addmodule are with the others... ## Confituración del conector WARP para Apache #AddModule mod_webapp.c WebAppConnection conn warp gallegos:8008 WebAppDeploy examples conn /examples WebAppDeploy pruebasconn /pruebas WebAppDeploy managerconn /manager Also, ensure that you have this in your server.xml. !-- Define an Apache-Connector Service -- Service name=Tomcat-Apache Connector className=org.apache.catalina.connector.warp.WarpConnector port=8008 minProcessors=5 maxProcessors=75 enableLookups=true acceptCount=10 debug=0/ !-- Replace localhost with what your Apache ServerName is set to -- Engine className=org.apache.catalina.connector.warp.WarpEngine name=Apache debug=0 appBase=webapps !-- Global logger unless overridden at lower levels -- Logger className=org.apache.catalina.logger.FileLogger prefix=apache_log. suffix=.txt timestamp=true/ !-- Because this Realm is here, an instance will be shared globally -- Realm className=org.apache.catalina.realm.MemoryRealm / /Engine /Service Wilson, Wayne wrote: Sorry, I haven't used mod_webapp yet (I needed the load balancing I can get with mod_jk) so I wouldn't be much help. Good luck! --Wayne -Original Message- From: Peng Annie [mailto:[EMAIL PROTECTED]] Sent: Monday, December 10, 2001 11:53 AM To: 'Tomcat Users List' Subject: RE: Help! urgent! I am using mod_webapp. my httpd.conf, server.xml are in the attachments. -Original Message- From: Wilson, Wayne [mailto:[EMAIL PROTECTED]] Sent: 10 December 2001 17:41 To: 'Tomcat Users List' Subject: RE: Help! urgent! Is your mod_jk.conf configured to handle the jsps? (with JkMount) -Original Message- From: Peng Annie [mailto:[EMAIL PROTECTED]] Sent: Monday, December 10, 2001 11:37 AM To: 'Tomcat Users List' Subject: RE: Help! urgent! I tried, but apache still can not find my jsp files in tomcat(it can find html files). -Original Message- From: Kemp Randy-W18971 [mailto:[EMAIL PROTECTED]] Sent: 10 December 2001 17:31 To: '[EMAIL PROTECTED]' Subject: RE: Help! urgent! Did you try starting Tomcat before starting Apache? -Original Message- From: Peng Annie [mailto:[EMAIL PROTECTED]] Sent: Monday, December 10, 2001 9:08 AM To: '[EMAIL PROTECTED]' Subject: Help! urgent! In the apache error.log there is an error message Connection conn cannot connect in which conn is the connection name defined in http.conf to tomcat. Anyone has any idea? I can not get Tomcat running on Appache!! Thanks! Annie -- 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] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Startup.sh error with tomcay 3.2.3
Hi List, I have a problem with tomcat 3.2.3 when I try to running the tomcat with $JAKARTA_TOMCAT/build/bin/startup.sh Exception in main java.lang.NoClassDefFoundError: org/apache/util/xml/PopStack in the org/apache/util/xml there isn't the file PopStack.class. Is the jakarta-tomcat subproject that copy the PopStack.class in the correct directory ? Where Can I find this file ? Thanking in advance and sorry for my english. Vegeta. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Help please
Hi, In Tomcat 4, there's a tomcat-users file, where you can define users. eduardo pasquotto orsolini 52422 wrote: Hi, I'm brazilian and we are using tom cat in our university on a project similar webct (www.icunimep.hpg.com.br) and I don't know how to configure tomcat to do the authentification of the users. i know how to do it in linux with .htaccess but tom cat in windows is different. I would like to do the same what .htaccess do in apache on the TomCat, please if somebody have some ideia or documentation or how-to, please send me, thanks all and excuse for the big email eduardo pasquotto orsolini 52422 e-mail: [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: Unable to include *.sum files (Again)
At 08:14 AM 12/10/01 +0200, you wrote: Hi all, Thanks for all the responses(including the debate) to this question! It made some real interesting reading material after the SHORT weekend! To get back to August's suggestion: we've tried it but our problem is that the file content is generated by a VB program and contains some funny characters e.g. CPI rather than CPI. When we translate these to a string it either comes out as ?CPI? or as illustrated in the attached image(This is also how it displays in JBuilder). Regarding the debate I tend to agree with Jeff. If you want to display the pure contents of a file you should be able to include the file using jsp:include without having to define a mime type. I mean what happens if you want to include a code example, for example a code snippet that illustrates how to code something in C,C++,Java etc. If you define the mime type it will try to translate it, which is not what we want in this case... You could define it as type text but now you need to maintain two mime types for one extension? Just doesn't sound right to me. The other thing that bothers me is the fact that it works for the %@ include...% directive but not for the jsp:include.../ surely they should perform similar actions simply using a different syntax? Thanks again, Jonathan I still don't see, Jonathan, why you don't just use code in your include which catches the mime types and deals with them? Why is the include important to you in the first instance? I think the people in this list might be able to help you, if we knew what the facets of the problem are. This sounds like a problem that can be solved, but I am not sure what the situation is. Micael -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Urgent - class loading issue
Title: RE: Newbie - class loading issue Folks, Did somebody get a chance to look at this problem !! Vinay -Original Message-From: Vinay Singh [mailto:[EMAIL PROTECTED]]Sent: Monday, December 10, 2001 9:32 PMTo: 'Tomcat Users List'Subject: RE: Newbie - class loading issue It's a normal .class file. If I put the same file in Catalina_home\calsses, it works. Yeah ! You are right. Examples prove that classes are loaded from WEB-INF\classes. Do I need to do something special with the example context that I am creating for my application. I am using a very simple web.xml lying in myapplication\WEB-INF\. Attached here for your reference. Another related question I have is : Can I set class path in some .bat file (such as startup.bat or catalina.bat), which can act as my classpath for Tomcat. Vinay -Original Message- From: Ikke List [mailto:[EMAIL PROTECTED]] Sent: Monday, December 10, 2001 8:53 PM To: Tomcat Users List Subject: RE: Newbie - class loading issue Newbie - class loading issueHi, Maybe to obvious, but Tomcat is *not* a EJB server, just a servlet/jsp container. Let us know which classes it cannot find if you want to get more repsonse. Putting classes in the WEB-INF/classes are found, the examples prove that. Wouter -Original Message- From: Vinay Singh [mailto:[EMAIL PROTECTED]] Sent: Monday, 10 December, 2001 15:25 To: '[EMAIL PROTECTED]' Subject: FW: Newbie - class loading issue Folks, I am facing the same issue. Could not get my classes loaded from WEB-INF/classes folder. Do I have to do anything other than just putting my classes in this folder and restarting tomcat 4.0.1 Can anybody answer this !! Thanks in advance Vinay -Original Message- From: Bill Halpin [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 04, 2001 9:51 PM To: '[EMAIL PROTECTED]' Subject: Newbie - class loading issue Hello Folks! I was recently assigned a POC project that includes some web development which I am using Tomcat 4.0.1 to do. I've only been using Tomcat for about 1.5 weeks so I'm extremely wet behind the ears. I've consulted the documentation and searched the list archives looking for an answer to my problem but cant seem to find one. Right now, I am simply trying to use a bean to gather data from a form and return the data to the screen. When I run the jsp to do this, I get one of two different "class not found" errors. I am not deploying the app using a WAR file, right now I just have the jsp file in the root directory and the class files in WEB-INF/classes. The bean class is in the package login. So the full path for the class is WEB-INF/classes/login/UserBean.class. I've also tried the following: 1. Recompiled the class without the package and placed the class in WEB-INF/classes. 2. Created jar file with package. Placed the jar file in WEB-INF/lib. This also did not work, so I tried /lib and /common/lib which also didnt work. I tried all of these locations with and without the package designation. 3. I've added the individual class and the jar file to the classpath. I am sure I am making a simple mistake but cant seem to figure out what that mistake is. According to (my understanding of) the documentation, placing the class files in WEB-INF/classes should be all I need to make them accessible to the jsp, am I mistaken? The text from the errors was rather lengthy, so I have not included it, if necessary I would gladly forward it on. If anyone has a possible solution, or perhaps advice on other sources to peruse to solve the problem, I would greatly appreciate it. Thanks -b Bill Halpin Schwoo, Inc 412-481-3301 [EMAIL PROTECTED] web.xml Description: Binary data -- 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]
Bean Class violates loader constraints
Anyone have any Ideas. My employee class is listed below. Thanks in Advance. 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 javax.servlet.ServletException: Class Employee violates loader constraints /** * Class Name: Employee * Description: Class with Employee specific information such as Employee ID, Name, Department. * Also setters and getters for each of the above. * * Assignment# 1 * @author Bob Timlin * @version 1.0 */ //package hrclient; //import java.lang.*; public class Employee implements java.io.Serializable { private int employeeID; private int deptNo; private String firstName; private String lastName; /** Employee * Default Constructor that will initialize EmployeeID to 0. * @author Bob Timlin */ public Employee() { } public Employee(int ID) { employeeID = ID; } public Employee(int ID, String ln, String fn, int dno) { employeeID = ID; lastName = ln; firstName = fn; deptNo = dno; } /** getEmployeeID * Used to retrieve private data-member EmployeeID. * @author Bob Timlin * * @return int Employee ID. */ public int getEmployeeID () { return employeeID; } /** getDeptNo * Used to retrieve private data-member DeptNo. * @author Bob Timlin * * @return int DeptNo. */ public int getDeptNo () { return deptNo; } /** getFirstName * Used to retrieve private data-member FirstName. * @author Bob Timlin * * @return String FirstName . */ public String getFirstName () { return firstName; } /** getLastName * Used to retrieve private data-member LastName. * @author Bob Timlin * * @return String LastName . */ public String getLastName () { return lastName; } /** setEmployeeID * Used to change private data-member EmployeeID. * @author Bob Timlin * * @arguments int Employee ID. */ public void setEmployeeID (int e) { employeeID = e; } /** setDeptNo * Used to change private data-member DeptNo. * @author Bob Timlin * * @arguments int DeptNo. */ public void setDeptNo (int d) { deptNo = d; } /** setFirstName * Used to change private data-member FirstName. * @author Bob Timlin * * @arguments String FirstName. */ public void setFirstName (String f) { firstName = f; } /** setLastName * Used to change private data-member LastName. * @author Bob Timlin * * @arguments String LastName. */ public void setLastName (String l) { lastName = l; } } -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Urgent - class loading issue
Import all the beans. You can place all your beans in a package and import them. Sreekanth -Original Message- From: Vinay Singh [mailto:[EMAIL PROTECTED]] Sent: Monday, December 10, 2001 1:48 PM To: '[EMAIL PROTECTED]' Subject: Urgent - class loading issue Folks, Did somebody get a chance to look at this problem !! Vinay -Original Message- From: Vinay Singh [mailto:[EMAIL PROTECTED]] Sent: Monday, December 10, 2001 9:32 PM To: 'Tomcat Users List' Subject: RE: Newbie - class loading issue It's a normal .class file. If I put the same file in Catalina_home\calsses, it works. Yeah ! You are right. Examples prove that classes are loaded from WEB-INF\classes. Do I need to do something special with the example context that I am creating for my application. I am using a very simple web.xml lying in myapplication\WEB-INF\. Attached here for your reference. Another related question I have is : Can I set class path in some .bat file (such as startup.bat or catalina.bat), which can act as my classpath for Tomcat. Vinay -Original Message- From: Ikke List [ mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] ] Sent: Monday, December 10, 2001 8:53 PM To: Tomcat Users List Subject: RE: Newbie - class loading issue Newbie - class loading issueHi, Maybe to obvious, but Tomcat is *not* a EJB server, just a servlet/jsp container. Let us know which classes it cannot find if you want to get more repsonse. Putting classes in the WEB-INF/classes are found, the examples prove that. Wouter -Original Message- From: Vinay Singh [ mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] ] Sent: Monday, 10 December, 2001 15:25 To: '[EMAIL PROTECTED]' Subject: FW: Newbie - class loading issue Folks, I am facing the same issue. Could not get my classes loaded from WEB-INF/classes folder. Do I have to do anything other than just putting my classes in this folder and restarting tomcat 4.0.1 Can anybody answer this !! Thanks in advance Vinay -Original Message- From: Bill Halpin [ mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] ] Sent: Tuesday, December 04, 2001 9:51 PM To: '[EMAIL PROTECTED]' Subject: Newbie - class loading issue Hello Folks! I was recently assigned a POC project that includes some web development which I am using Tomcat 4.0.1 to do. I've only been using Tomcat for about 1.5 weeks so I'm extremely wet behind the ears. I've consulted the documentation and searched the list archives looking for an answer to my problem but cant seem to find one. Right now, I am simply trying to use a bean to gather data from a form and return the data to the screen. When I run the jsp to do this, I get one of two different class not found errors. I am not deploying the app using a WAR file, right now I just have the jsp file in the root directory and the class files in WEB-INF/classes. The bean class is in the package login. So the full path for the class is WEB-INF/classes/login/UserBean.class. I've also tried the following: 1. Recompiled the class without the package and placed the class in WEB-INF/classes. 2. Created jar file with package. Placed the jar file in WEB-INF/lib. This also did not work, so I tried /lib and /common/lib which also didnt work. I tried all of these locations with and without the package designation. 3. I've added the individual class and the jar file to the classpath. I am sure I am making a simple mistake but cant seem to figure out what that mistake is. According to (my understanding of) the documentation, placing the class files in WEB-INF/classes should be all I need to make them accessible to the jsp, am I mistaken? The text from the errors was rather lengthy, so I have not included it, if necessary I would gladly forward it on. If anyone has a possible solution, or perhaps advice on other sources to peruse to solve the problem, I would greatly appreciate it. Thanks -b Bill Halpin Schwoo, Inc 412-481-3301 [EMAIL PROTECTED] ** 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 notify the sender immediately. This footnote also confirms that this email message has been swept by MIMEsweeper and Symantec Norton AntiVirus for the presence of computer viruses. **
RE: Urgent - class loading issue
Have you added a servlet context (referencing your application) to the server.xml file? Suzanne
what does this error mean?
Can anyone tell me what this error means, and what I need to fix. Thanks! 2001-12-10 10:59:14 StandardManager[/develweb]: Seeding random number generator class java.security.SecureRandom 2001-12-10 10:59:14 StandardManager[/develweb]: Seeding of random number generator has been completed 2001-12-10 10:59:14 StandardManager[/develweb] IOException while loading persisted sessions: java.io.StreamCorruptedException: Caught EOFException while reading the stream header java.io.StreamCorruptedException: Caught EOFException while reading the stream header at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:845) at java.io.ObjectInputStream.init(ObjectInputStream.java:168) at org.apache.catalina.util.CustomObjectInputStream.init(CustomObjectInputStr eam.java:103) at org.apache.catalina.session.StandardManager.load(StandardManager.java:379) at org.apache.catalina.session.StandardManager.start(StandardManager.java:617) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1104) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3334) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123) at org.apache.catalina.core.StandardHost.start(StandardHost.java:612) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:307) at org.apache.catalina.core.StandardService.start(StandardService.java:388) at org.apache.catalina.core.StandardServer.start(StandardServer.java:505) at org.apache.catalina.startup.Catalina.start(Catalina.java:776) at org.apache.catalina.startup.Catalina.execute(Catalina.java:681) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243) 2001-12-10 10:59:14 StandardManager[/develweb] Exception loading sessions from persistent storage java.io.StreamCorruptedException: Caught EOFException while reading the stream header at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:845) at java.io.ObjectInputStream.init(ObjectInputStream.java:168) at org.apache.catalina.util.CustomObjectInputStream.init(CustomObjectInputStr eam.java:103) at org.apache.catalina.session.StandardManager.load(StandardManager.java:379) at org.apache.catalina.session.StandardManager.start(StandardManager.java:617) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1104) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3334) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123) at org.apache.catalina.core.StandardHost.start(StandardHost.java:612) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:307) at org.apache.catalina.core.StandardService.start(StandardService.java:388) at org.apache.catalina.core.StandardServer.start(StandardServer.java:505) at org.apache.catalina.startup.Catalina.start(Catalina.java:776) at org.apache.catalina.startup.Catalina.execute(Catalina.java:681) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243) 2001-12-10 10:59:24 StandardManager[/devel]: Seeding of random number generator has been completed 2001-12-10 10:59:24 StandardManager[/devel] IOException while loading persisted sessions: java.io.StreamCorruptedException: Caught EOFException while reading the stream header java.io.StreamCorruptedException: Caught EOFException while reading the stream header at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:845) at java.io.ObjectInputStream.init(ObjectInputStream.java:168) at org.apache.catalina.util.CustomObjectInputStream.init(CustomObjectInputStr eam.java:103) at org.apache.catalina.session.StandardManager.load(StandardManager.java:379) at org.apache.catalina.session.StandardManager.start(StandardManager.java:617) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1104) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3334) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:454) at org.apache.catalina.core.StandardHost.install(StandardHost.java:712) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:599) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:777) at
RE: Urgent - class loading issue
No, how do I do this? -Original Message- From: Suzanne Reiner 8423 [SMTP:[EMAIL PROTECTED]] Sent: Monday, December 10, 2001 11:05 AM To: 'Tomcat Users List' Subject: RE: Urgent - class loading issue Have you added a servlet context (referencing your application) to the server.xml file? Suzanne -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: AW: security issue: tomcat on port 80
Have you tried asking your question in the linux mailing lists ? What do those guys got to say about this restriction to bind to ports 1024 in the present day server systems? I asked once on the OpenBSD list. Those guys are very much traditionalists so they did not like the idea. Still, there is no longer any rational reason for this restriction. I challenge anyone to point out a good reason for it. Basically, it used to be the case that sysadmins didn't want ordinary users to be able to run sendmail on port 25. This altruisticly protects other users on other machines from dealing with trojaned services (ie, trojan telnetd, etc). This concern is ridiculous today, because how often do you telnet to some unknown server and enter a password? Never, probably. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Urgent - class loading issue
This response is ASSUMING you are only running one engine and one host (aka: localhost) Open your server.xml file in the conf directory. Locate the following Line: Host name=localhost debug=0 appBase=webapps unpackWARs=true scroll down until you come to the end of the Contexts -Note be careful not to interject an additional context inside an existing one (watch your xml pairs). insert a new Context, similar to: Context path=/yourPath docBase=yourBase debug=0 reloadable=true / Following the completion of your line you should see something like: /Host /Engine /Service Followed by the MOD_WEBAPP instruction set. Save the file and restart tomcat. Test your page Suzanne -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Bean Class violates loader constraints
Are you sure this line works? public class Employee implements java.io.Serializable { I never saw it that way( I am not saying that it's wrong, just that I never saw it this way anywhere). Why don't you try your code like this ... and see if the error persists? import java.io.*; public class Employee implements Serializable { //bla bla bla I don't see any reason for your class to not work. It's a simple java bean (although it does not fire events) with a default constructor and with set and get methods for its attributes, right? Siomara From: Timlin, Bob [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] Subject: Bean Class violates loader constraints Date: Mon, 10 Dec 2001 10:56:25 -0800 Anyone have any Ideas. My employee class is listed below. Thanks in Advance. 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 javax.servlet.ServletException: Class Employee violates loader constraints /** * Class Name: Employee * Description: Class with Employee specific information such as Employee ID, Name, Department. * Also setters and getters for each of the above. * * Assignment# 1 * @author Bob Timlin * @version 1.0 */ //package hrclient; //import java.lang.*; public class Employee implements java.io.Serializable { private int employeeID; private int deptNo; private String firstName; private String lastName; /** Employee * Default Constructor that will initialize EmployeeID to 0. * @author Bob Timlin */ public Employee() { } public Employee(int ID) { employeeID = ID; } public Employee(int ID, String ln, String fn, int dno) { employeeID = ID; lastName = ln; firstName = fn; deptNo = dno; } /** getEmployeeID * Used to retrieve private data-member EmployeeID. * @author Bob Timlin * * @return int Employee ID. */ public int getEmployeeID () { return employeeID; } /** getDeptNo * Used to retrieve private data-member DeptNo. * @author Bob Timlin * * @return int DeptNo. */ public int getDeptNo () { return deptNo; } /** getFirstName * Used to retrieve private data-member FirstName. * @author Bob Timlin * * @return String FirstName . */ public String getFirstName () { return firstName; } /** getLastName * Used to retrieve private data-member LastName. * @author Bob Timlin * * @return String LastName . */ public String getLastName () { return lastName; } /** setEmployeeID * Used to change private data-member EmployeeID. * @author Bob Timlin * * @arguments int Employee ID. */ public void setEmployeeID (int e) { employeeID = e; } /** setDeptNo * Used to change private data-member DeptNo. * @author Bob Timlin * * @arguments int DeptNo. */ public void setDeptNo (int d) { deptNo = d; } /** setFirstName * Used to change private data-member FirstName. * @author Bob Timlin * * @arguments String FirstName. */ public void setFirstName (String f) { firstName = f; } /** setLastName * Used to change private data-member LastName. * @author Bob Timlin * * @arguments String LastName. */ public void setLastName (String l) { lastName = l; } } -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Bean Class violates loader constraints
It works both ways. It has a default constructor and setters/getters. It doesn't fire events. The code is below: /** * Class Name: Employee * Description: Class with Employee specific information such as Employee ID, Name, Department. * Also setters and getters for each of the above. * * Assignment# 1 * @author Bob Timlin * @version 1.0 */ //package hrclient; //import java.lang.*; public class Employee implements java.io.Serializable { private int employeeID; private int deptNo; private String firstName; private String lastName; /** Employee * Default Constructor that will initialize EmployeeID to 0. * @author Bob Timlin */ public Employee() { } public Employee(int ID) { employeeID = ID; } public Employee(int ID, String ln, String fn, int dno) { employeeID = ID; lastName = ln; firstName = fn; deptNo = dno; } /** getEmployeeID * Used to retrieve private data-member EmployeeID. * @author Bob Timlin * * @return int Employee ID. */ public int getEmployeeID () { return employeeID; } /** getDeptNo * Used to retrieve private data-member DeptNo. * @author Bob Timlin * * @return int DeptNo. */ public int getDeptNo () { return deptNo; } /** getFirstName * Used to retrieve private data-member FirstName. * @author Bob Timlin * * @return String FirstName . */ public String getFirstName () { return firstName; } /** getLastName * Used to retrieve private data-member LastName. * @author Bob Timlin * * @return String LastName . */ public String getLastName () { return lastName; } /** setEmployeeID * Used to change private data-member EmployeeID. * @author Bob Timlin * * @arguments int Employee ID. */ public void setEmployeeID (int e) { employeeID = e; } /** setDeptNo * Used to change private data-member DeptNo. * @author Bob Timlin * * @arguments int DeptNo. */ public void setDeptNo (int d) { deptNo = d; } /** setFirstName * Used to change private data-member FirstName. * @author Bob Timlin * * @arguments String FirstName. */ public void setFirstName (String f) { firstName = f; } /** setLastName * Used to change private data-member LastName. * @author Bob Timlin * * @arguments String LastName. */ public void setLastName (String l) { lastName = l; } } -Original Message- From: Siomara Pantarotto [SMTP:[EMAIL PROTECTED]] Sent: Monday, December 10, 2001 11:44 AM To: [EMAIL PROTECTED] Subject: Re: Bean Class violates loader constraints Are you sure this line works? public class Employee implements java.io.Serializable { I never saw it that way( I am not saying that it's wrong, just that I never saw it this way anywhere). Why don't you try your code like this ... and see if the error persists? import java.io.*; public class Employee implements Serializable { //bla bla bla I don't see any reason for your class to not work. It's a simple java bean (although it does not fire events) with a default constructor and with set and get methods for its attributes, right? Siomara From: Timlin, Bob [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] Subject: Bean Class violates loader constraints Date: Mon, 10 Dec 2001 10:56:25 -0800 Anyone have any Ideas. My employee class is listed below. Thanks in Advance. 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 javax.servlet.ServletException: Class Employee violates loader constraints /** * Class Name: Employee * Description: Class with Employee specific information such as Employee ID, Name, Department. * Also setters and getters for each of the above. * * Assignment# 1 * @author Bob Timlin * @version 1.0 */ //package hrclient; //import java.lang.*; public class Employee implements java.io.Serializable { private int employeeID; private int deptNo; private String firstName; private String lastName; /** Employee * Default Constructor that will initialize EmployeeID to 0. * @author Bob Timlin */ public Employee() { } public Employee(int ID) { employeeID = ID; } public Employee(int ID, String ln, String fn, int dno) { employeeID = ID; lastName = ln; firstName = fn; deptNo = dno; } /** getEmployeeID * Used to retrieve private data-member EmployeeID. * @author Bob Timlin * * @return int Employee ID. */ public int getEmployeeID () { return employeeID; } /** getDeptNo * Used to retrieve private data-member DeptNo. * @author Bob Timlin *
RE: Bean Class violates loader constraints
Also here is part of the exception report. root cause java.lang.LinkageError: Class Employee violates loader constraints at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:486) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111) at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLo ader.java:1534) at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.jav a:852) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav a:1273) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav a:1156) -Original Message- From: Siomara Pantarotto [SMTP:[EMAIL PROTECTED]] Sent: Monday, December 10, 2001 11:44 AM To: [EMAIL PROTECTED] Subject: Re: Bean Class violates loader constraints Are you sure this line works? public class Employee implements java.io.Serializable { I never saw it that way( I am not saying that it's wrong, just that I never saw it this way anywhere). Why don't you try your code like this ... and see if the error persists? import java.io.*; public class Employee implements Serializable { //bla bla bla I don't see any reason for your class to not work. It's a simple java bean (although it does not fire events) with a default constructor and with set and get methods for its attributes, right? Siomara From: Timlin, Bob [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] Subject: Bean Class violates loader constraints Date: Mon, 10 Dec 2001 10:56:25 -0800 Anyone have any Ideas. My employee class is listed below. Thanks in Advance. 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 javax.servlet.ServletException: Class Employee violates loader constraints /** * Class Name: Employee * Description: Class with Employee specific information such as Employee ID, Name, Department. * Also setters and getters for each of the above. * * Assignment# 1 * @author Bob Timlin * @version 1.0 */ //package hrclient; //import java.lang.*; public class Employee implements java.io.Serializable { private int employeeID; private int deptNo; private String firstName; private String lastName; /** Employee * Default Constructor that will initialize EmployeeID to 0. * @author Bob Timlin */ public Employee() { } public Employee(int ID) { employeeID = ID; } public Employee(int ID, String ln, String fn, int dno) { employeeID = ID; lastName = ln; firstName = fn; deptNo = dno; } /** getEmployeeID * Used to retrieve private data-member EmployeeID. * @author Bob Timlin * * @return int Employee ID. */ public int getEmployeeID () { return employeeID; } /** getDeptNo * Used to retrieve private data-member DeptNo. * @author Bob Timlin * * @return int DeptNo. */ public int getDeptNo () { return deptNo; } /** getFirstName * Used to retrieve private data-member FirstName. * @author Bob Timlin * * @return String FirstName . */ public String getFirstName () { return firstName; } /** getLastName * Used to retrieve private data-member LastName. * @author Bob Timlin * * @return String LastName . */ public String getLastName () { return lastName; } /** setEmployeeID * Used to change private data-member EmployeeID. * @author Bob Timlin * * @arguments int Employee ID. */ public void setEmployeeID (int e) { employeeID = e; } /** setDeptNo * Used to change private data-member DeptNo. * @author Bob Timlin * * @arguments int DeptNo. */ public void setDeptNo (int d) { deptNo = d; } /** setFirstName * Used to change private data-member FirstName. * @author Bob Timlin * * @arguments String FirstName. */ public void setFirstName (String f) { firstName = f; } /** setLastName * Used to change private data-member LastName. * @author Bob Timlin * * @arguments String LastName. */ public void setLastName (String l) { lastName = l; } } -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL
RE: Bean Class violates loader constraints
Have you tried reinstalling JAVA. It seems that your jdk got messed up or corrupted somehow. Your class is OK, and that I garantee. I have implemented much more complicated javabeans, and there is no reason for this one not work. It just has set/get methods. Sio PS: I had faced problem like that after installing java stuffs (JMS for example). I just reintalled JDK and it worked fine. From: Timlin, Bob [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Subject: RE: Bean Class violates loader constraints Date: Mon, 10 Dec 2001 11:50:56 -0800 Also here is part of the exception report. root cause java.lang.LinkageError: Class Employee violates loader constraints at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:486) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111) at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLo ader.java:1534) at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.jav a:852) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav a:1273) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav a:1156) -Original Message- From: Siomara Pantarotto [SMTP:[EMAIL PROTECTED]] Sent: Monday, December 10, 2001 11:44 AM To: [EMAIL PROTECTED] Subject:Re: Bean Class violates loader constraints Are you sure this line works? public class Employee implements java.io.Serializable { I never saw it that way( I am not saying that it's wrong, just that I never saw it this way anywhere). Why don't you try your code like this ... and see if the error persists? import java.io.*; public class Employee implements Serializable { //bla bla bla I don't see any reason for your class to not work. It's a simple java bean (although it does not fire events) with a default constructor and with set and get methods for its attributes, right? Siomara From: Timlin, Bob [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] Subject: Bean Class violates loader constraints Date: Mon, 10 Dec 2001 10:56:25 -0800 Anyone have any Ideas. My employee class is listed below. Thanks in Advance. 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 javax.servlet.ServletException: Class Employee violates loader constraints /** * Class Name: Employee * Description: Class with Employee specific information such as Employee ID, Name, Department. * Also setters and getters for each of the above. * * Assignment# 1 * @author Bob Timlin * @version 1.0 */ //package hrclient; //import java.lang.*; public class Employee implements java.io.Serializable { private int employeeID; private int deptNo; private String firstName; private String lastName; /** Employee * Default Constructor that will initialize EmployeeID to 0. * @author Bob Timlin */ public Employee() { } public Employee(int ID) { employeeID = ID; } public Employee(int ID, String ln, String fn, int dno) { employeeID = ID; lastName = ln; firstName = fn; deptNo = dno; } /** getEmployeeID * Used to retrieve private data-member EmployeeID. * @author Bob Timlin * * @return int Employee ID. */ public int getEmployeeID () { return employeeID; } /** getDeptNo * Used to retrieve private data-member DeptNo. * @author Bob Timlin * * @return int DeptNo. */ public int getDeptNo () { return deptNo; } /** getFirstName * Used to retrieve private data-member FirstName. * @author Bob Timlin * * @return String FirstName . */ public String getFirstName () { return firstName; } /** getLastName * Used to retrieve private data-member LastName. * @author Bob Timlin * * @return String LastName . */ public String getLastName () { return lastName; } /** setEmployeeID * Used to change private data-member EmployeeID. * @author Bob Timlin * * @arguments int Employee ID. */ public void setEmployeeID (int e) { employeeID = e; } /** setDeptNo * Used to change private data-member DeptNo. * @author Bob Timlin * * @arguments int DeptNo. */ public void setDeptNo (int d) { deptNo = d; } /** setFirstName * Used to change private data-member FirstName. *
RE: Help needed: SocketException killing Tomcat 4.0.1 !?
sounds like the sam problem I had when using mod_webapp I reconfigured it for good old jk_mod and all is well. B -Original Message- From: Guillaume Mathe [mailto:[EMAIL PROTECTED]] Sent: Monday, December 10, 2001 2:32 AM To: [EMAIL PROTECTED] Subject: Help needed: SocketException killing Tomcat 4.0.1 !? Hi again, This post must have been lost in the flow... I really need help on that, because a self-destructing Tomcat will not help me deploy my commercial webapp... Here's the setup: - Tomcat 4.0.1, windows 98SE or 2000/Server - Direct servlet access from port 8080 - JDK/JRE 1.3.1 from Sun or JRE 1.3.0 from IBM, tested both - Also compiled with JDK1.4, just to make sure it's not my JDK - Crash test servlet: a image/jpeg content-type servlet, using Sun's JPEG codec. Using a BufferedOutputStream. The servlet works fine when called normally. (you can create a blank image, no need to draw anything - a wait loop would be useful though...) Crash test procedure: - Open a browser and call the servlet. (with a img src=servlet / ) - BEFORE the servlet has finished encoding the JPEG, click on STOP, BACK, or a link going elsewhere. Result: - A SocketException: connection reset by peer shows up, as expected. - The exception is thrown by out.close() ('out' being the BufferedOutputStream given to the JpegEncoder) and is NOT catched by the servlet ! quite unexpected... - Catalina dies, now that is unexpected ! Logs generally do not reflect the fatal exception. - Under windows98SE it dies with a fatal error... My questions: - Is it a *known* bug of Catalina ? - If yes, has it been fixed in a recent build ? - How can i trap this exception ? I want to handle properly client disconnects by closing resources and stopping SQL queries etc... Currently even if i put a catch() at each level up to GenericServlet, it goes through. Regards, Guillaume Mathe Smartinnov -- 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: Detecting server name and port
try using HttpServletRequest.getServerName(), .getServerPort() [EMAIL PROTECTED] on 12/10/2001 08:54:32 AM Please respond to Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: Subject: Detecting server name and port I have a web application which sends out email reminders to members in a database when certian tasks are slipping- This all works great however I would like the application to be smart enough to know which server and port it is installed in so when generating a message it can include a link back to the particular task. What I have currently done is include an init-param tag with this information and it works but then it isnt server independent. I have also explored the possibility of getting the information from HttpServletRequest (which also works) but I'd like the timer function not to depend on someone actually requesting a page. Is there any other methods to get the server name and port ? Thanks Steve -- 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: Bean Class violates loader constraints
Thanks, I'll try that. -Original Message- From: Siomara Pantarotto [SMTP:[EMAIL PROTECTED]] Sent: Monday, December 10, 2001 12:02 PM To: [EMAIL PROTECTED] Subject: RE: Bean Class violates loader constraints Have you tried reinstalling JAVA. It seems that your jdk got messed up or corrupted somehow. Your class is OK, and that I garantee. I have implemented much more complicated javabeans, and there is no reason for this one not work. It just has set/get methods. Sio PS: I had faced problem like that after installing java stuffs (JMS for example). I just reintalled JDK and it worked fine. From: Timlin, Bob [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Subject: RE: Bean Class violates loader constraints Date: Mon, 10 Dec 2001 11:50:56 -0800 Also here is part of the exception report. root cause java.lang.LinkageError: Class Employee violates loader constraints at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:486) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111) at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClas sLo ader.java:1534) at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader. jav a:852) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader. jav a:1273) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader. jav a:1156) -Original Message- From: Siomara Pantarotto [SMTP:[EMAIL PROTECTED]] Sent: Monday, December 10, 2001 11:44 AM To: [EMAIL PROTECTED] Subject: Re: Bean Class violates loader constraints Are you sure this line works? public class Employee implements java.io.Serializable { I never saw it that way( I am not saying that it's wrong, just that I never saw it this way anywhere). Why don't you try your code like this ... and see if the error persists? import java.io.*; public class Employee implements Serializable { //bla bla bla I don't see any reason for your class to not work. It's a simple java bean (although it does not fire events) with a default constructor and with set and get methods for its attributes, right? Siomara From: Timlin, Bob [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] Subject: Bean Class violates loader constraints Date: Mon, 10 Dec 2001 10:56:25 -0800 Anyone have any Ideas. My employee class is listed below. Thanks in Advance. 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 javax.servlet.ServletException: Class Employee violates loader constraints /** * Class Name: Employee * Description: Class with Employee specific information such as Employee ID, Name, Department. * Also setters and getters for each of the above. * * Assignment# 1 * @author Bob Timlin * @version 1.0 */ //package hrclient; //import java.lang.*; public class Employee implements java.io.Serializable { private int employeeID; private int deptNo; private String firstName; private String lastName; /** Employee * Default Constructor that will initialize EmployeeID to 0. * @author Bob Timlin */ public Employee() { } public Employee(int ID) { employeeID = ID; } public Employee(int ID, String ln, String fn, int dno) { employeeID = ID; lastName = ln; firstName = fn; deptNo = dno; } /** getEmployeeID * Used to retrieve private data-member EmployeeID. * @author Bob Timlin * * @return int Employee ID. */ public int getEmployeeID () { return employeeID; } /** getDeptNo * Used to retrieve private data-member DeptNo. * @author Bob Timlin * * @return int DeptNo. */ public int getDeptNo () { return deptNo; } /** getFirstName * Used to retrieve private data-member FirstName. * @author Bob Timlin * * @return String FirstName . */ public String getFirstName () { return firstName; } /** getLastName * Used to retrieve private data-member LastName. * @author Bob Timlin * * @return String LastName . */ public String getLastName () { return lastName; } /** setEmployeeID * Used to change private data-member EmployeeID. * @author Bob Timlin
invalid packet
Hi, Trying to make Apache 1.3.22 and Tomcat 4.01 working together under Windows 2000 i get the following error messages (and jsp-pages are not processed): [Mon Dec 10 20:02:22 2001] [error] (null) [Mon Dec 10 20:02:22 2001] [error] Invalid packet 82 [Mon Dec 10 20:02:22 2001] [error] (null) [Mon Dec 10 20:02:22 2001] [error] Invalid WARP packet 0 (WELCOME) [Mon Dec 10 20:02:22 2001] [error] Cannot read packet (pr_warp_config.c:139) [Mon Dec 10 20:02:22 2001] [error] Cannot configure connection conn [Mon Dec 10 20:02:22 2001] [error] Cannot configure connection conn Has somebody experienced that? Is there a cure? I've downloaded mod_webapp from http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.1/bin/win32 / and copied libapr.dll and mod_webapp.so to modules folder and configured httpd.conf according to INSTALL.txt: LoadModule webapp_module modules/mod_webapp.so ... AddModule mod_webapp.c ... WebAppConnection conn warp localhost:8008 WebAppDeploy examples conn /examples Any ideas? Thank you. Regards, Ilya
RE: Unable to include *.sum files (Again)
What text format are your .sum files using? Sounds like it may be UTF8. Try this: /** * Returns the String contents of a UTF8 file. * * This method throws any fileIO errors. * * @param sFileName Full file path. * @return String The contents of the file as a String object. * @throws Exception Any fileIO errors */ public static String getUTF8FileAsString(String sFileName) throws Exception { RandomAccessFile inputFile = new RandomAccessFile(sFileName,r); String output = inputFile.readUTF(); inputFile.close(); return output; } This method should work if your files are in ASCII: /** * Returns the String contents of an ASCII file. * * This method throws any fileIO errors. * * @param sFileName Full file path. * @return String The contents of the file as a String object. * @throws Exception Any fileIO errors */ public static String getFileAsString(String sFileName) throws Exception { RandomAccessFile inputFile = new RandomAccessFile(sFileName,r); byte[] inputbytes = new byte[(int)inputFile.length()]; int numread = inputFile.read(inputbytes); inputFile.close(); return new String(inputbytes); } --- Micael Padraig Og mac Grene [EMAIL PROTECTED] wrote: At 08:14 AM 12/10/01 +0200, you wrote: Hi all, Thanks for all the responses(including the debate) to this question! It made some real interesting reading material after the SHORT weekend! To get back to August's suggestion: we've tried it but our problem is that the file content is generated by a VB program and contains some funny characters e.g. CPI rather than CPI. When we translate these to a string it either comes out as ?CPI? or as illustrated in the attached image(This is also how it displays in JBuilder). Regarding the debate I tend to agree with Jeff. If you want to display the pure contents of a file you should be able to include the file using jsp:include without having to define a mime type. I mean what happens if you want to include a code example, for example a code snippet that illustrates how to code something in C,C++,Java etc. If you define the mime type it will try to translate it, which is not what we want in this case... You could define it as type text but now you need to maintain two mime types for one extension? Just doesn't sound right to me. The other thing that bothers me is the fact that it works for the %@ include...% directive but not for the jsp:include.../ surely they should perform similar actions simply using a different syntax? Thanks again, Jonathan I still don't see, Jonathan, why you don't just use code in your include which catches the mime types and deals with them? Why is the include important to you in the first instance? I think the people in this list might be able to help you, if we knew what the facets of the problem are. This sounds like a problem that can be solved, but I am not sure what the situation is. Micael -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] __ Do You Yahoo!? Send your FREE holiday greetings online! http://greetings.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Tomcat 3.3 question
I'm trying to upgrade from Tomcat 3.2 to Tomcat 3.3 and I have some jsp pages that have some caracteres with accents. With tomcat 3.3 it output 'garbage' to the browser. What am I missing ? Thanks. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Configuring Tomcat 4 with Apache
Hi, I was using Tomcat at the standalone mode, and all was performing well. Then I put together Tomcat and Apache, and the problems started to appear. My application works fine, put some libs are not found anymore (precisely the jce1_2_1), and neither does the reloadable function. All the libs are at the correct place (/WEB-INF/lib), everything was working just fine before the Apache. I guess it is some problem with the Apache configuration. I am using mod_webapp and tomcat 4.0.1. All the help will be welcome. Here are some excerpts of the server.xml and httpd.conf: httpd.conf: LoadModule webapp_module modules/mod_webapp.so AddModule mod_webapp.c WebAppConnection warpConnection warp myhost:8008 WebAppDeploy examples warpConnection /examples WebAppDeploy peopledb warpConnection /peopledb server.xml: Service name=Tomcat-Apache Connector className=org.apache.catalina.connector.warp.Warp Connector port=8008 minProcessors=5 maxProcessors=75 enableLookups=true acceptCount=10 debug=0/ Engine className=org.apache.catalina.connector.warp.Warp Engine name=myhost debug=0 appBase=webapps Logger className=org.apache.catalina.logger.FileLogger prefix=apache_log. suffix=.txt timestamp=true/ Realm className=org.apache.catalina.realm.MemoryRealm / /Engine /Service - This mail sent through UK Online webmail -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Tomcat 3.2.2 HTTP 500 Internal Server Error
Our company has a web application created by Java servlets; and this application runs on the Apache/Tomcat server (Sun). Since July 2001, the server was down with the HTTP 500 error message about 12 times. Each time, we have to restart Tomcat; but lately, this problem occurs more frequently. Our version of Tomcat is 3.2.2. We have been told that there might be a bug in that version. We are planning to upgrade to the latest version 4.0.x. Where can we find the information about how to upgrade to the new version? Do we need to recompile the code? Is it the right decision to upgrade to an other version? or is there better solution to avoid this problem? Thanks in advance. Marina -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Unable to include *.sum files (Again)
Hi Jonathon, Well, obviously, I agree with you. I think the most interesting point you bring up is the fact that %@ include...% works with any file extension, whether or not it has a registered MIME type. Why should jsp:include.../ add additional restrictions? I understand the difference between the two -- page translation time vs. request time -- but don't understand why they act differently. I've gone through the JSP spec for both of them and can find nothing that requires the MIME type of the included file to be a registered text/* type. Can anybody give a plausible reason why one requires the MIME type to be registered while the other does not? Thanks, --jeff - Original Message - From: Kusel, Jonathan J [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Sunday, December 09, 2001 10:14 PM Subject: RE: Unable to include *.sum files (Again) Hi all, Thanks for all the responses(including the debate) to this question! It made some real interesting reading material after the SHORT weekend! To get back to August's suggestion: we've tried it but our problem is that the file content is generated by a VB program and contains some funny characters e.g. CPI rather than CPI. When we translate these to a string it either comes out as ?CPI? or as illustrated in the attached image(This is also how it displays in JBuilder). Regarding the debate I tend to agree with Jeff. If you want to display the pure contents of a file you should be able to include the file using jsp:include without having to define a mime type. I mean what happens if you want to include a code example, for example a code snippet that illustrates how to code something in C,C++,Java etc. If you define the mime type it will try to translate it, which is not what we want in this case... You could define it as type text but now you need to maintain two mime types for one extension? Just doesn't sound right to me. The other thing that bothers me is the fact that it works for the %@ include...% directive but not for the jsp:include.../ surely they should perform similar actions simply using a different syntax? Thanks again, Jonathan -Original Message- From: August Detlefsen [mailto:[EMAIL PROTECTED]] Sent: 09 December 2001 01:53 To: Tomcat Users List Subject: Re: Unable to include *.sum files (Again) If it does use PrintWriter to write the output, then it makes sense for it to only output text. See this from the PrintWriter javadoc: Print formatted representations of objects to a text-output stream. This class implements all of the print methods found in PrintStream. It does not contain methods for writing raw bytes, for which a program should use unencoded byte streams. If you want to include files of non-text types (or types that are text, but not included in your MIME types list), why not just write a utility method that opens a file, reads it and returns its contents as a String? -August --- Micael Padraig Og mac Grene [EMAIL PROTECTED] wrote: At 08:22 PM 12/7/01 -0800, you wrote: Yeah, see my last post. Since JSP output is written with a PrintWriter, the Catalina code is restricting it to only being able to output known text/* MIME types. This just doesn't feel right to me. Thanks, --jeff Well, jeff, then it is not a bug. At best it is a difference of opinion. That makes all the sense in the world to me. If you want to bring in something other than the known 'text/* MIME types, just include the proper code in your include? We have differing intuitions here. I think what Catalina is doing is proper and makes sense. But, at worst for you, it is an inconvenience. Right? -- micael -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] __ Do You Yahoo!? Send your FREE holiday greetings online! http://greetings.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] Disclaimer and Confidentiality Note. Everything in this e-mail and attachments relating to the official business of Standard Bank Investment Corporation(Stanbic) is proprietary to the company. It is confidential, legally privileged and protected by law. Stanbic does not own and endorse any other content. Views and opinions are those of the sender unless clearly stated as being that of Stanbic. The person addressed in the e-mail is the sole authorised recipient. Please notify the sender immediately if it has unintentionally reached you and do not read, disclose or use the content in any way. Stanbic can not assure that the integrity of this communication has been maintained nor that it is free of
Re: Tomcat 3.2.2 HTTP 500 Internal Server Error
Unless you are willing to spend a little bit of time reconfiguring Tomcat, and maybe modify your install scripts, you can stick to Tomcat 3.2.x (currently 3.2.4). So you can upgrade from 3.2.2 to 3.2.4 without any worries. Just make sure you keep a copy of your webapps and your server.xml file. If you want to move to Tomcat 4.0.x, this will require a bit of configuration and deployement, so it's up to you. You should not have to change your servlets code however, even not have to recompile it, so it's a smooth transition. I actually spent more time reading Tomcat 4.0 docs than actually installing and migrating my 3.2 webapps. However, I have ran into a slight problem Our include statements @include were a bit messy... althought Tomcat 3.2 was happy with the mess, Tomcat 4.0 is stricter and we had to change our includes (actually clean them) to have our webapps 100% functionalbut this is only because we did things wrong (I think...) and that 3.2 was accepting the wronginess of our code Hope this helps Denis - Original Message - From: Pieters, Marina [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: Pieters, Marina [EMAIL PROTECTED] Sent: Monday, December 10, 2001 04:51 PM Subject: Tomcat 3.2.2 HTTP 500 Internal Server Error Our company has a web application created by Java servlets; and this application runs on the Apache/Tomcat server (Sun). Since July 2001, the server was down with the HTTP 500 error message about 12 times. Each time, we have to restart Tomcat; but lately, this problem occurs more frequently. Our version of Tomcat is 3.2.2. We have been told that there might be a bug in that version. We are planning to upgrade to the latest version 4.0.x. Where can we find the information about how to upgrade to the new version? Do we need to recompile the code? Is it the right decision to upgrade to an other version? or is there better solution to avoid this problem? Thanks in advance. Marina -- 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: Unable to include *.sum files (Again)
We're going an awfully long way here to solve what could be cleanly done with a simple: jsp:include page=relativeURL flush=true / Don't you think? All the container has to do is default the MIME type for unknown extensions to text/html. Remember this is a JSP -- a scripting language which was originally designed to simplify life for web designers and other non-programmers. Having to open every included file manually with java code defeats that purpose. Thanks, --jeff - Original Message - From: August Detlefsen [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, December 10, 2001 1:21 PM Subject: RE: Unable to include *.sum files (Again) What text format are your .sum files using? Sounds like it may be UTF8. Try this: /** * Returns the String contents of a UTF8 file. * * This method throws any fileIO errors. * * @param sFileName Full file path. * @return String The contents of the file as a String object. * @throws Exception Any fileIO errors */ public static String getUTF8FileAsString(String sFileName) throws Exception { RandomAccessFile inputFile = new RandomAccessFile(sFileName,r); String output = inputFile.readUTF(); inputFile.close(); return output; } This method should work if your files are in ASCII: /** * Returns the String contents of an ASCII file. * * This method throws any fileIO errors. * * @param sFileName Full file path. * @return String The contents of the file as a String object. * @throws Exception Any fileIO errors */ public static String getFileAsString(String sFileName) throws Exception { RandomAccessFile inputFile = new RandomAccessFile(sFileName,r); byte[] inputbytes = new byte[(int)inputFile.length()]; int numread = inputFile.read(inputbytes); inputFile.close(); return new String(inputbytes); } --- Micael Padraig Og mac Grene [EMAIL PROTECTED] wrote: At 08:14 AM 12/10/01 +0200, you wrote: Hi all, Thanks for all the responses(including the debate) to this question! It made some real interesting reading material after the SHORT weekend! To get back to August's suggestion: we've tried it but our problem is that the file content is generated by a VB program and contains some funny characters e.g. CPI rather than CPI. When we translate these to a string it either comes out as ?CPI? or as illustrated in the attached image(This is also how it displays in JBuilder). Regarding the debate I tend to agree with Jeff. If you want to display the pure contents of a file you should be able to include the file using jsp:include without having to define a mime type. I mean what happens if you want to include a code example, for example a code snippet that illustrates how to code something in C,C++,Java etc. If you define the mime type it will try to translate it, which is not what we want in this case... You could define it as type text but now you need to maintain two mime types for one extension? Just doesn't sound right to me. The other thing that bothers me is the fact that it works for the %@ include...% directive but not for the jsp:include.../ surely they should perform similar actions simply using a different syntax? Thanks again, Jonathan I still don't see, Jonathan, why you don't just use code in your include which catches the mime types and deals with them? Why is the include important to you in the first instance? I think the people in this list might be able to help you, if we knew what the facets of the problem are. This sounds like a problem that can be solved, but I am not sure what the situation is. Micael -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] __ Do You Yahoo!? Send your FREE holiday greetings online! http://greetings.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]
RE: errros in embedded tomcat!
I think after doing some tracing ive got to a point where i know that the example provided in Embedded class in Tomcat 4.01 version doesnt add to the ServletMapping the value default for key / , which is required. Is there an example provided anywhere to run the tomcat embedded properly, other than the example provided in Embedded.java which doesnt seems to be working??? Arvind -Original Message- From: Arvind Gudipati [mailto:[EMAIL PROTECTED]] Sent: Monday, December 10, 2001 11:53 AM To: [EMAIL PROTECTED] Subject: errros in embedded tomcat! Hi, Im trying to embed the tomcat engine into one of our products. I was using the Embedded.java file in org.apache.cataline.startup package as an example to startup the embedded engine and i have a few questions/problems. Without changing any code in Embedded.java io tried to run it.. I got the following exception (sys.out below): *** StandardContext[]: Configuring default Resources StandardContext[]: Error initializing resources: Document base .\.\webapps\.\web apps\ROOT does not exist or is not a readable directory StandardContext[]: Configuring default Loader StandardContext[]: Configuring default Manager StandardContext[]: Processing standard container startup StandardContext[]: Context startup failed due to previous errors StandardContext[]: Stopping StandardContext[]: Stopping filters StandardContext[]: Sending application stop events StandardContext[]: Processing standard container shutdown StandardContext[]: Exception during cleanup after start failed LifecycleException: Container StandardContext[] has not been started at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1147) at org.apache.catalina.core.StandardContext.stop(StandardContext.java:34 40) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3 397) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123) at org.apache.catalina.core.StandardHost.start(StandardHost.java:612) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:307 ) at org.apache.catalina.startup.Embedded.addEngine(Embedded.java:469) at org.apache.catalina.startup.Embedded.main(Embedded.java:1079) **8 The problem seemed to be this statement in Embedded.main method Context root = embedded.createContext(, home + /webapps/ROOT); It seemed like it was expecting /webapps/webapps/ROOT directory. so i tried to change the source-code to Context root = embedded.createContext(, home + /ROOT); and it ran fine without any exceptions. Now when i try browsing using http://localhost:8080; it gives me a HTTP Error saying resource / not available. Is the example provided in Embedded class really working? Is there is a sample/example somewhere where i can check how to embed tomcat? Also, In the example it says, for ease of deploying web applications use the deploy method as below: ((Deployer) host).deploy(/examples, (new File(./webapps/examples)).toURL()); This doesnot seems to be working as the Deployer class doesnt have the deploy method. Thanks in advance! Arvind CONFIDENTIALITY NOTICE: E-mail may contain confidential information that is legally protected. Do not read this e-mail if you are not the intended recipient. This e-mail transmission, and any documents, files or previous e-mail messages attached to it may contain confidential information that is legally protected. If you are not the intended recipient or a person responsible for delivering it to the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of any of the information contained in or attached to this transmission is STRICTLY PROHIBITED. If you have received this transmission in error, please immediately notify us by reply e-mail, by forwarding this to [EMAIL PROTECTED] or by telephone at (877) PANACYA, and destroy the original transmission and its attachments without reading or saving in any manner. Thank you. For information about PANACYA Inc., please visit our website at http://www.panacya.com. CONFIDENTIALITY NOTICE: E-mail may contain confidential information that is legally protected. Do not read this e-mail if you are not the intended recipient. This e-mail transmission, and any documents, files or previous e-mail messages attached to it may contain confidential information that is legally protected. If you are not the intended recipient or a person responsible for delivering it to the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of any of the information contained in or attached to this transmission is STRICTLY PROHIBITED. If you have received this transmission in error, please immediately notify us by
Me and include directives....
Hi all I already have asked for some directions on how to use the include action and the include directive and had very nice answers... but I might have burned too much neurons on that and I'm still missing some point... ...and...I experience some unexpected behaviour using the %@ include file=blah.jsp % The quick ref on JSP I have (http://java.sun.com/products/jsp/pdf/card12.pdf) tells me that include uses a relative URL as the file parameter. However, using relative URLs does not seem correct and I experience differences while using Resin or Tomcat 3.2.x vs Tomcat 4.0... When using Tomcat 4.0 or Resin, my relative URLs generally don't work the same way as for Tomcat 3.2 : (say I have begin.jsp in my webapp root/common/begin.jsp) In Resin and Tomcat 4.0, %@ include file=../common/begin.jsp %) produces a (404-Not Found) by the JSP engine. However, this works perfectly with Tomcat 3.2 Now, %@ include file=/common/begin.jsp % works like a charm for Resin, Tomcat 3.2 and Tomcat 4.0.. ...and that's where I get confusedwhich version am I suppose to use ? According to my quick ref card, I should be using relative URLs, and I'm experiencing the exact contrary when I'm not using Tomcat 3.2... I'm trying to use absolute URLs (because I want things to work with Tomcat 4.0 !) and make this a rule of thumb, but I'm not sure I've taken the good decision. So, any definitive directions would help me getting out of the darkness... Many thanks for your help ! Denis -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Jakarta NT SERVICE--- logout USER
JDK1.3.1 has a switch (-Xrs) that, at least by its description, looks like it would solve the problem. /Fredrik - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, December 10, 2001 3:43 PM Subject: RE: Jakarta NT SERVICE--- logout USER This isnt a config issue this is a sun JDK (1.3) issue I had heard that 1.4 resolves this, try looking there... -Original Message- From: Catalin [mailto:[EMAIL PROTECTED]] Sent: Monday, December 10, 2001 2:55 PM To: [EMAIL PROTECTED] Subject: Jakarta NT SERVICE--- logout USER Hello to everybody! I have a jakarta-tomcat-3.3m4 on a Win2k system and I have a problem: every times one user of Operating System logout, the service it stoppes.:-( Where do I need to modify the config so that will not be happens any more?? Thanks!! -- 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: Help! urgent!
Please post the following parts of your httpd.conf file: 1) The loadmodule/addmodule statements 2) Virtual host definitions if any. 3) The section defining your connection. Also -- are you running Windows or Linux? -Original Message- From: Peng Annie [mailto:[EMAIL PROTECTED]] Sent: Monday, December 10, 2001 10:08 AM To: '[EMAIL PROTECTED]' Subject: Help! urgent! In the apache error.log there is an error message Connection conn cannot connect in which conn is the connection name defined in http.conf to tomcat. Anyone has any idea? I can not get Tomcat running on Appache!! Thanks! Annie -- 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]
Jikes Config and Tomcat 4.0
Hi all, tried to install Jikes 1.15 and Tomcat 4.0.1 with jdk 1.3.1_01. Problem: When Tomcat starts Jikes to compile a jsp, it did not find the java classes (java.lang, java.util ...). Instead it searches only some Tomcat directories. An external declared classpath variable did not help either. Here a quote of my web.xml file in $CATALINA_HOME$\conf: !-- If you wish to use Jikes to compile JSP pages: -- !-- * Set the classpath initialization parameter appropriately -- !-- for this web application. -- !-- * Set the jspCompilerPlugin initialization parameter to -- !-- org.apache.jasper.compiler.JikesJavaCompiler. -- servlet servlet-namejsp/servlet-name servlet-classorg.apache.jasper.servlet.JspServlet/servlet-class init-param param-namelogVerbosityLevel/param-name param-valueINFORMATION/param-value /init-param init-param param-nameclasspath/param-name param-valuec:\jdk\jre\lib\rt.jar;./param-value /init-param init-param param-namejspCompilerPlugin/param-name param-valueorg.apache.jasper.compiler.JikesJavaCompiler/param-value /init-param load-on-startup3/load-on-startup /servlet What´s wrong? Hope this is not a faq... ;-) Bye and thanks in advance Jakob -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
is $tomcat_home/src/native/apache/jserv really mod_jk?
I am using the source code of tomcat 3.2.4 to build mod_jk. The files are all called mod_jserv.* Do I need to get mod_jk from some other place, or is this in fact mod_jk? Brandon -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Me and include directives....
relative URL=absolute URL - servlet context name (or as you call my webapp root) this is the best way: %@ include file=/common/begin.jsp % Denis Balazuc [EMAIL PROTECTED] on 12/10/2001 04:39:14 PM Please respond to Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] cc: Subject: Me and include directives Hi all I already have asked for some directions on how to use the include action and the include directive and had very nice answers... but I might have burned too much neurons on that and I'm still missing some point... ...and...I experience some unexpected behaviour using the %@ include file=blah.jsp % The quick ref on JSP I have (http://java.sun.com/products/jsp/pdf/card12.pdf) tells me that include uses a relative URL as the file parameter. However, using relative URLs does not seem correct and I experience differences while using Resin or Tomcat 3.2.x vs Tomcat 4.0... When using Tomcat 4.0 or Resin, my relative URLs generally don't work the same way as for Tomcat 3.2 : (say I have begin.jsp in my webapp root/common/begin.jsp) In Resin and Tomcat 4.0, %@ include file=../common/begin.jsp %) produces a (404-Not Found) by the JSP engine. However, this works perfectly with Tomcat 3.2 Now, %@ include file=/common/begin.jsp % works like a charm for Resin, Tomcat 3.2 and Tomcat 4.0.. ...and that's where I get confusedwhich version am I suppose to use ? This is the best way. According to my quick ref card, I should be using relative URLs, and I'm experiencing the exact contrary when I'm not using Tomcat 3.2... I'm trying to use absolute URLs (because I want things to work with Tomcat 4.0 !) and make this a rule of thumb, but I'm not sure I've taken the good decision. So, any definitive directions would help me getting out of the darkness... Many thanks for your help ! Denis -- 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: /usr/local/jdk1.3.1_01/bin/i386/native_threads/java: error
Please help, and sorry if I missed a discussion of this on list previously. Just installed 4.0.1 Tomcat binary with JDK 1.3.1_01 on Redhat 7.0. Tomcat begins to start up than quits with catalina.out log message: /usr/local/jdk1.3.1_01/bin/i386/native_threads/java: error while loading shared libraries: libstdc++-libc6.1-1.so.2: cannot open shared object file: No such fil e or directory Of course not, libraries are more current with Redhat 7 but of course trying to install rpm with libstdc++-libc6.1-1.so.2 I get error: rpm -i libstdc++-2.95.3-0.2323.i386.rpm package libstdc++-2.96-54 (which is newer than libstdc++-2.95.3-0.2323) is already installed... What would be workaround for this... not really a Tomcat error per se. Why does latest non beta jdk from Sun point to old c++ library? Anyway, discovered this on Sun website page re jdk1.3.1: For Linux users - The newer glibc-2.2.x libraries cannot correctly handle initial thread stack sizes larger than 6 MB. This can cause a segmentation fault on some Linux platforms that use the newer libraries. Such platforms include Red Hat 7.0, Mandrake 8.0, SuSe 7.2, and Debian 2.2. The problem will not occur on Linux platforms that are using glibc-2.1.x such as Red Hat 6.1 and 6.2. It will also not affect Red Hat 7.1 because it uses a different thread stack layout. This problem is being tracked as bug 4466587. Workaround - Use ulimit -s 2048 in bash shell or limit stacksize 2048 in tcsh to limit the initial thread stack to 2 MB. I tried this and experienced same failure repoted above: /usr/local/jdk1.3.1_01/bin/i386/native_threads/java: error while loading shared libraries: libstdc++-libc6.1-1.so.2: cannot open shared object file: No such fil e or directory Any suggestions re workaround other than upgrading Linux to 7.1 or 2? Don - -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Jikes Config and Tomcat 4.0
I asked the same question about 2 weeks ago and never got a response. The docs in web.xml are pretty vague, maybe a commented out example could be added the distributions web.xml to reduce the confusion. Regards, Jack Jakob Lemler wrote: Hi all, tried to install Jikes 1.15 and Tomcat 4.0.1 with jdk 1.3.1_01. Problem: When Tomcat starts Jikes to compile a jsp, it did not find the java classes (java.lang, java.util ...). Instead it searches only some Tomcat directories. An external declared classpath variable did not help either. Here a quote of my web.xml file in $CATALINA_HOME$\conf: !-- If you wish to use Jikes to compile JSP pages: -- !-- * Set the classpath initialization parameter appropriately -- !-- for this web application. -- !-- * Set the jspCompilerPlugin initialization parameter to -- !-- org.apache.jasper.compiler.JikesJavaCompiler. -- servlet servlet-namejsp/servlet-name servlet-classorg.apache.jasper.servlet.JspServlet/servlet-class init-param param-namelogVerbosityLevel/param-name param-valueINFORMATION/param-value /init-param init-param param-nameclasspath/param-name param-valuec:\jdk\jre\lib\rt.jar;./param-value /init-param init-param param-namejspCompilerPlugin/param-name param-valueorg.apache.jasper.compiler.JikesJavaCompiler/param-value /init-param load-on-startup3/load-on-startup /servlet What´s wrong? Hope this is not a faq... ;-) Bye and thanks in advance Jakob -- 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]
Webapp multiple connections
I also have the same problem as Alex. Here is a section from my httpd.conf. WebAppConnection appserv1Connection warp trav:6008 WebAppDeploy appserv1 appserv1Connection /appserv1 WebAppConnection appserv2Connection warp trav:7008 WebAppDeploy appserv2 appserv2Connection /appserv2 WebAppConnection appserv3Connection warp trav:9008 WebAppDeploy appserv3 appserv3Connection /appserv3 Does anyone have a solution Travis Powell [EMAIL PROTECTED] From: Alex Sanderson Subject: Webapp multiple connections Date: Thu, 4 Oct 2001 11:34:21 +0200 Hello, Has anyone sucessfully run mod_webapp with multiple connections to different tomcat's? I can define three connectors connA connB and connC and apache is happy. If I deploy something with connA it works perfectly. If I comment out the connA deploy and deploy something with connB, connB works perfectly. If I try to run the two at once, one of them fails with an [error] Cannot deploy application that loops forever in apache hanging apache. I have searched all the docs I can find on webapp. In the webapp cvs docs it says that no connections can have the same name which suggests that webapp can handle more than one connection. I cannot find any examples using two or more connectors though. Alex -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
mod_webapp/tomcat forcing redirect to insecure? (stuck!)
Hi all, I recently setup Apache+SSL (Ben SSL) 1.3.22 and Tomcat 4.01. I want to be running SSL-only, so I've configured httpd.conf to include RequireSSL and EnableSSL. My server.xml has the following Server setup: Service name=Tomcat-Apache Connector className=org.apache.catalina.connector.warp.WarpConnector port=8008 minProcessors=5 maxProcessors=75 enableLookups=true acceptCount=10 scheme=https secure=true redirectPort=443 debug=0/ !-- Replace localhost with what your Apache ServerName is set to -- Engine className=org.apache.catalina.connector.warp.WarpEngine name=Apache defaultHost=hidden to protect the innfocent debug=0 appBase=webapps Here is my problem, though. If I reference a file directly (eg: https://x.com/index.jsp), everything works perfectly. But if I induce a redirect by the server (eg: https://x.com/, or by going to a Realm FORM-restricted page), I end up with a warning from Netscape to the effect that I am being redirected from a secure document to an insecure document, and then I get an error message about a zero-length (empty) page. Anyone have any idea why on earth its forcing a redirect to http instead of https? The fully qualified server names are setup correctly in both the httpd.conf and server.xml. Thanks, Lucas. __ Do You Yahoo!? Send your FREE holiday greetings online! http://greetings.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Unable to include *.sum files (Again)
Yes, it is absolutely going too far, but from my experience the include directive has been quirky from the start (no matter what platform). Hence, I have utility methods to do just such a thing, and I have encountered a myriad of other include methods and taglibs as well -seems everyone is trying to reinvent the (slightly off-round) wheel in this case. --- Jeff Kilbride [EMAIL PROTECTED] wrote: We're going an awfully long way here to solve what could be cleanly done with a simple: jsp:include page=relativeURL flush=true / Don't you think? All the container has to do is default the MIME type for unknown extensions to text/html. Remember this is a JSP -- a scripting language which was originally designed to simplify life for web designers and other non-programmers. Having to open every included file manually with java code defeats that purpose. Thanks, --jeff - Original Message - From: August Detlefsen [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, December 10, 2001 1:21 PM Subject: RE: Unable to include *.sum files (Again) What text format are your .sum files using? Sounds like it may be UTF8. Try this: /** * Returns the String contents of a UTF8 file. * * This method throws any fileIO errors. * * @param sFileName Full file path. * @return String The contents of the file as a String object. * @throws Exception Any fileIO errors */ public static String getUTF8FileAsString(String sFileName) throws Exception { RandomAccessFile inputFile = new RandomAccessFile(sFileName,r); String output = inputFile.readUTF(); inputFile.close(); return output; } This method should work if your files are in ASCII: /** * Returns the String contents of an ASCII file. * * This method throws any fileIO errors. * * @param sFileName Full file path. * @return String The contents of the file as a String object. * @throws Exception Any fileIO errors */ public static String getFileAsString(String sFileName) throws Exception { RandomAccessFile inputFile = new RandomAccessFile(sFileName,r); byte[] inputbytes = new byte[(int)inputFile.length()]; int numread = inputFile.read(inputbytes); inputFile.close(); return new String(inputbytes); } --- Micael Padraig Og mac Grene [EMAIL PROTECTED] wrote: At 08:14 AM 12/10/01 +0200, you wrote: Hi all, Thanks for all the responses(including the debate) to this question! It made some real interesting reading material after the SHORT weekend! To get back to August's suggestion: we've tried it but our problem is that the file content is generated by a VB program and contains some funny characters e.g. CPI rather than CPI. When we translate these to a string it either comes out as ?CPI? or as illustrated in the attached image(This is also how it displays in JBuilder). Regarding the debate I tend to agree with Jeff. If you want to display the pure contents of a file you should be able to include the file using jsp:include without having to define a mime type. I mean what happens if you want to include a code example, for example a code snippet that illustrates how to code something in C,C++,Java etc. If you define the mime type it will try to translate it, which is not what we want in this case... You could define it as type text but now you need to maintain two mime types for one extension? Just doesn't sound right to me. The other thing that bothers me is the fact that it works for the %@ include...% directive but not for the jsp:include.../ surely they should perform similar actions simply using a different syntax? Thanks again, Jonathan I still don't see, Jonathan, why you don't just use code in your include which catches the mime types and deals with them? Why is the include important to you in the first instance? I think the people in this list might be able to help you, if we knew what the facets of the problem are. This sounds like a problem that can be solved, but I am not sure what the situation is. Micael -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] __ Do You Yahoo!? Send your FREE holiday greetings online! http://greetings.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:
DOES ANYONE HAVE MOD_JK COMPILED FOR TOMCAT3.2.4, LINUX REDHAT 7.1, APACHE 1.3???
I keep getting these errors when trying to compile with apxs... gcc -DHARD_SERVER_LIMIT=2048 -DDEFAULT_PATH=/usr/local/psa/apache/bin:/bin :/usr/bin -DLINUX=22 -I/usr/include/db1 -DMOD_SSL=208103 -DMOD_PERL -DUSE_P ERL_SSI -fno-strict-aliasing -DUSE_HSREGEX -DEAPI -DEAPI_MM -DUSE_EXPAT -I.. /lib/expat-lite -O2 -march=i386 -mcpu=i586 -fPIC -I/home/kan/work/PSA_PLUS_1 _3_1/apache/../release/openssl/include -I/usr/include/db1 -fpic -DSHARED_MOD ULE -I/usr/local/psa/apache/include -c mod_jk.c mod_jk.c:89:23: jk_global.h: No such file or directory mod_jk.c:90:21: jk_util.h: No such file or directory mod_jk.c:91:20: jk_map.h: No such file or directory mod_jk.c:92:21: jk_pool.h: No such file or directory mod_jk.c:93:24: jk_service.h: No such file or directory mod_jk.c:94:23: jk_worker.h: No such file or directory mod_jk.c:95:31: jk_uri_worker_map.h: No such file or directory apxs:Break: Command failed with rc=1 Can someone please give me a hint on what I am missing, or just send me your good copy of mod_jk.so? Thank you for any help! Brandon Cruz -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: How long can the session ID get in 4.0?
Session IDs in Tomcat 4 are currently always 32 characters in length, and this is not configurable (without changing the Tomcat source code). However, a portable application can make *no* assumptions about the length of the session ID on any server, because it is not defined in the spec and could be changed at any time. Craig McClanahan -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
help :(
hello * I installed tomcat on my linux server yesterday, and i have a few problems I think i've read all availables docs i have found, but it didn't really help me :( My server is now using apache 1.3.22 + Tomcat 4.0.1 and i have updated my httpd.conf as explained in the webapp INSTALL file. I don't want to have to store my servlets in the tomcat /webapps directory, i want to be able to store them as i store other files inside my public_html directory in my home dir. my home dir is /home/smurfie my webpage dir is /home/smurfie/public_html/_epsi the url used to access this webpage is http://epsi.bz i use in my httpd.conf: VirtualHost epsi.bz ServerAdmin [EMAIL PROTECTED] DocumentRoot /home/smurfie/public_html/_epsi ServerAlias *.epsi.bz ServerName epsi.bz ErrorLog /home/smurfie/public_html/_epsi/apache_error_log TransferLog /home/smurfie/public_html/_epsi/apache_access_log WebAppConnectionconnwarplocalhost:8008 WebAppDeploy/home/smurfie/public_html/_epsi/servletsconn /servlets/ #WebAppInfo /webapp-info /VirtualHost if i uncomment the /webAppInfo line, i can use http://epsi.bz/webapp-info so i assume tomcat is working fine. the problem is whan i want to sue servlets in /home/smurfie/public_html/_epsi/servlets : in /home/smurfie/public_html/_epsi/servlets i've put a WEB-INF directory and inside the WEB-INF i got a basic web.xml file, and also a classes dir in wich i've put a basic servlet found on the SUN servlet tutorial. I called the .class SimpleServlet.class and so i compiled it in SimpleServlet.java, inside the same dir smurfie@mushroom:~/public_html/_epsi/servlets/WEB-INF$ more web.xml ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app servlet servlet-nameSimpleServlet/servlet-name servlet-classSimpleServlet/servlet-class /servlet /web-app PROBLEM: http://epsi.bz --- work http://epsi.bz/servlets -- 404 not found my apache log says: [Mon Dec 10 00:59:49 2001] [error] Web-application not yet deployed could anyone help me please ? thanks Arnauld Dravet
RE: errros in embedded tomcat!
On Mon, 10 Dec 2001, Arvind Gudipati wrote: Date: Mon, 10 Dec 2001 17:14:08 -0500 From: Arvind Gudipati [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: RE: errros in embedded tomcat! I think after doing some tracing ive got to a point where i know that the example provided in Embedded class in Tomcat 4.01 version doesnt add to the ServletMapping the value default for key / , which is required. If it were just an issue of adding this mapping, you could easily do so yourself: context.addServletMapping(/, default); But there are undoubtedly other issues going on, because the conf/web.xml file will be processed correctly *if* you set the catalina.base and catalina.home properties correctly. See comments below about this: Is there an example provided anywhere to run the tomcat embedded properly, other than the example provided in Embedded.java which doesnt seems to be working??? Arvind -Original Message- From: Arvind Gudipati [mailto:[EMAIL PROTECTED]] Sent: Monday, December 10, 2001 11:53 AM To: [EMAIL PROTECTED] Subject: errros in embedded tomcat! Hi, Im trying to embed the tomcat engine into one of our products. I was using the Embedded.java file in org.apache.cataline.startup package as an example to startup the embedded engine and i have a few questions/problems. Without changing any code in Embedded.java io tried to run it.. I got the following exception (sys.out below): *** StandardContext[]: Configuring default Resources StandardContext[]: Error initializing resources: Document base .\.\webapps\.\web apps\ROOT does not exist or is not a readable directory This will happen if you do not set the catalina.base and catalina.home system properties correctly -- baseically, it's not finding your web applications, so nothing is going to work right. If you look at how the bin/catalina.sh shell script handles the embedded option on the command line, you'll see that it passes values for catalina.home and catalina.base based on the CATALINA_HOME and CATALINA_BASE environment variables. You need to do something similar to tell the Embedded class where you have installed Tomcat. Craig McClanahan -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Regarding tomca and servelt
hi! i am using tomcat 4 and Apache1.3.12 my application structure is my application dir. name is myapp and under my app all my .jsp and .htm files are under my app directly, my classes are under myapp/WEB-INF/classes/myapp in myapp/WEB-INF/classes/myapp, i had one Manager servlet from which i had to transfer my path. for ex:Manager?action=here i will give classpage=here i will give jsp page. i had done changes in web.xml as below: servlet servlet-nameManager/servlet-name init-param param-nameinitParam1/param-name param-valuevalue1/param-value /init-param init-param param-nameinitParam2/param-name param-valuevalue2/param-value /init-param servlet-class ectu.Manager /servlet-class display-name/display-name description/description /servlet servlet-mapping servlet-name Manager /servlet-name url-pattern /Manager /url-pattern /servlet-mapping when i had done thos changes and i will run my application, i am getting below error: Apache Tomcat/4.0.1 - HTTP Status 404 - /ectu/ type Status report message /ectu/ description The requested resource (/ectu/) is not available if i am not changing anything in my web.xml the application is successfully running for .jsp .htm but wen i am accessing through Manager means my URL is:/Manager?action='myclass'page='myjsppage' i am getting below error: Apache Tomcat/4.0.1 - HTTP Status 404 - /Manager type Status report message /Manager description The requested resource (/Manager) is not available can anybody help me? Thanks and Best Regards. Jagan Mohan Project Consultant Unidux Technologies Pte Ltd (subsidiary of the public-listed Unidux Electronics Ltd) TEL: (65) 293 4797 FAX: (65) 293 4920 -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Regarding tomca and servelt
Jegan, You haven't said a thing about httpd.conf... what is in it? what did you add to it? do you tell apache where to find /ectu/? if you are going to appaches port (assuming 80) then httpd.conf must be configured to call tomcat. maybe send some information about httpd.conf file. thanks, B -Original Message- From: Jagan [mailto:[EMAIL PROTECTED]] Sent: Monday, December 10, 2001 10:20 PM To: Tomcat Users List Subject: Regarding tomca and servelt hi! i am using tomcat 4 and Apache1.3.12 my application structure is my application dir. name is myapp and under my app all my .jsp and .htm files are under my app directly, my classes are under myapp/WEB-INF/classes/myapp in myapp/WEB-INF/classes/myapp, i had one Manager servlet from which i had to transfer my path. for ex:Manager?action=here i will give classpage=here i will give jsp page. i had done changes in web.xml as below: servlet servlet-nameManager/servlet-name init-param param-nameinitParam1/param-name param-valuevalue1/param-value /init-param init-param param-nameinitParam2/param-name param-valuevalue2/param-value /init-param servlet-class ectu.Manager /servlet-class display-name/display-name description/description /servlet servlet-mapping servlet-name Manager /servlet-name url-pattern /Manager /url-pattern /servlet-mapping when i had done thos changes and i will run my application, i am getting below error: Apache Tomcat/4.0.1 - HTTP Status 404 - /ectu/ type Status report message /ectu/ description The requested resource (/ectu/) is not available if i am not changing anything in my web.xml the application is successfully running for .jsp .htm but wen i am accessing through Manager means my URL is:/Manager?action='myclass'page='myjsppage' i am getting below error: Apache Tomcat/4.0.1 - HTTP Status 404 - /Manager type Status report message /Manager description The requested resource (/Manager) is not available can anybody help me? Thanks and Best Regards. Jagan Mohan Project Consultant Unidux Technologies Pte Ltd (subsidiary of the public-listed Unidux Electronics Ltd) TEL: (65) 293 4797 FAX: (65) 293 4920 -- 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: error while building mod_jk.so Tomcat 3.3 + Apache 1.3.22 on AIX 4.33
I think there was someone else having problems this morning with an AIX build as well. have you checked the archive of this mail list? http://www.mail-archive.com/tomcat-user@jakarta.apache.org/ B -Original Message- From: Liedtke, Joerg [mailto:[EMAIL PROTECTED]] Sent: Monday, December 10, 2001 8:44 AM To: Tomcat (E-mail) Subject: error while building mod_jk.so Tomcat 3.3 + Apache 1.3.22 on AIX 4.33 Hello all, I have a problem when building mode_jk.so on AIX. At the beginning, everything works fine but then I get: mod_jk.c, line 1286.6: 1506-026 (S) Number of initializers cannot be greater than the number of aggregate members. apxs:Break: Command failed with rc=1 Can anyone help me please??? Kind regards Jörg Liedtke mailto:[EMAIL PROTECTED] I build the apache with: ./configure --prefix=/usr/local/apache --enable-module=most --enable-shared=max --enable-rule=SHARED_CORE Here my apxs Flags: --- my $CFG_TARGET= q(httpd);# substituted via Makefile.tmpl my $CFG_CC= q(cc);# substituted via Makefile.tmpl my $CFG_CFLAGS= q( -DAIX=43 -DUSE_PTHREAD_SERIALIZED_ACCEPT -U__STR__ -DAIX_BIND_PROCESSOR -qcpluscmt -qnogenpcomp -qnousepcomp -DMOD_SSL=207101 -DMOD_PERL -DUSE_PERL_SSI -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384 -DUSE_HSREGEX -DEAPI -DEAPI_MM -DUSE_EXPAT -I../lib/expat-lite `../apaci`);# substituted via Makefile.tmpl my $CFG_CFLAGS_SHLIB = q(-DSHARED_MODULE); # substituted via Makefile.tmpl my $CFG_LD_SHLIB = q(ld); # substituted via Makefile.tmpl my $CFG_LDFLAGS_SHLIB = q(-H512 -T512 -bhalt:4 -bM:SRE -bnoentry -bexpall -bI:/usr/local/apache2/libexec/httpd.exp -lc -ldl); # substituted via Makefile.tmpl my $CFG_LIBS_SHLIB= q();# substituted via Makefile.tmpl my $CFG_PREFIX= q(/usr/local/apache2);# substituted via APACI install my $CFG_SBINDIR = q(/usr/local/apache2/bin); # substituted via APACI install my $CFG_INCLUDEDIR= q(/usr/local/apache2/include);# substituted via APACI install my $CFG_LIBEXECDIR= q(/usr/local/apache2/libexec);# substituted via APACI install my $CFG_SYSCONFDIR= q(/usr/local/apache2/conf);# substituted via APACI install - cc -DAIX=43 -DUSE_PTHREAD_SERIALIZED_ACCEPT -U__STR__ -DAIX_BIND_PROCESSOR -qcpluscmt -qnogenpcomp -qnousepcomp -DMOD_SSL=207101 -DMOD_PERL -DUSE_PERL_SSI -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384 -DUSE_HSREGEX -DEAPI -DEAPI_MM -DUSE_EXPAT -I../lib/expat-lite -DSHARED_MODULE -I/usr/local/apache2/include -I/usr/java130/include -c jk_ajp12_worker.c cc -DAIX=43 -DUSE_PTHREAD_SERIALIZED_ACCEPT -U__STR__ -DAIX_BIND_PROCESSOR -qcpluscmt -qnogenpcomp -qnousepcomp -DMOD_SSL=207101 -DMOD_PERL -DUSE_PERL_SSI -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384 -DUSE_HSREGEX -DEAPI -DEAPI_MM -DUSE_EXPAT -I../lib/expat-lite -DSHARED_MODULE -I/usr/local/apache2/include -I/usr/java130/include -c jk_ajp13.c cc -DAIX=43 -DUSE_PTHREAD_SERIALIZED_ACCEPT -U__STR__ -DAIX_BIND_PROCESSOR -qcpluscmt -qnogenpcomp -qnousepcomp -DMOD_SSL=207101 -DMOD_PERL -DUSE_PERL_SSI -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384 -DUSE_HSREGEX -DEAPI -DEAPI_MM -DUSE_EXPAT -I../lib/expat-lite -DSHARED_MODULE -I/usr/local/apache2/include -I/usr/java130/include -c jk_ajp13_worker.c cc -DAIX=43 -DUSE_PTHREAD_SERIALIZED_ACCEPT -U__STR__ -DAIX_BIND_PROCESSOR -qcpluscmt -qnogenpcomp -qnousepcomp -DMOD_SSL=207101 -DMOD_PERL -DUSE_PERL_SSI -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384 -DUSE_HSREGEX -DEAPI -DEAPI_MM -DUSE_EXPAT -I../lib/expat-lite -DSHARED_MODULE -I/usr/local/apache2/include -I/usr/java130/include -c jk_connect.c cc -DAIX=43 -DUSE_PTHREAD_SERIALIZED_ACCEPT -U__STR__ -DAIX_BIND_PROCESSOR -qcpluscmt -qnogenpcomp -qnousepcomp -DMOD_SSL=207101 -DMOD_PERL -DUSE_PERL_SSI -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384 -DUSE_HSREGEX -DEAPI -DEAPI_MM -DUSE_EXPAT -I../lib/expat-lite -DSHARED_MODULE -I/usr/local/apache2/include -I/usr/java130/include -c jk_jni_worker.c jk_jni_worker.c, line 739.28: 1506-068 (W) Operation between types long(*)(const struct JNIInvokeInterface_***,const struct JNINativeInterface_***,void*) and void* is not allowed. jk_jni_worker.c, line 740.34: 1506-068 (W) Operation between types long(*)(const struct JNIInvokeInterface_***,int,int*) and void* is not allowed. jk_jni_worker.c, line 741.43: 1506-068 (W) Operation between types long(*)(void*) and void* is not allowed. cc -DAIX=43 -DUSE_PTHREAD_SERIALIZED_ACCEPT -U__STR__ -DAIX_BIND_PROCESSOR -qcpluscmt -qnogenpcomp -qnousepcomp -DMOD_SSL=207101 -DMOD_PERL -DUSE_PERL_SSI -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384 -DUSE_HSREGEX -DEAPI -DEAPI_MM -DUSE_EXPAT -I../lib/expat-lite -DSHARED_MODULE -I/usr/local/apache2/include -I/usr/java130/include -c jk_lb_worker.c cc -DAIX=43
RE: Regarding tomca and servelt
hi! my changes in httpd.conf is below: IfDefine SSL Listen 203.126.49.181:80 Listen 203.126.49.181:443 /IfDefine User www Group www ServerAdmin [EMAIL PROTECTED] ServerName java.ectu.com DocumentRoot /home/httpd ### Section 3: Virtual Hosts # NameVirtualHost 203.126.49.181:80 VirtualHost 203.126.49.181:80 ServerAdmin [EMAIL PROTECTED] ServerName java.ectu.com DocumentRoot /home/httpd/ectu #DocumentRoot /usr/local/jakarta-tomcat-4.0.1/webapps/ectu/jsp #RedirectMatch temp .* http://java.ectu.com/ectu/jsp/index.html Redirect permanent / http://java.ectu.com/ectu/ ErrorLog /var/log/httpd/error_ectu_log TransferLog /var/log/httpd/access_ectu_log WebAppConnection warpConnection warp localhost:8008 WebAppDeploy examples warpConnection /examples/ WebAppDeploy ectu warpConnection /ectu/ /VirtualHost is is ok? jagan -Original Message- From: Brian Adams [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 11, 2001 12:41 PM To: Tomcat Users List Subject: RE: Regarding tomca and servelt Jegan, You haven't said a thing about httpd.conf... what is in it? what did you add to it? do you tell apache where to find /ectu/? if you are going to appaches port (assuming 80) then httpd.conf must be configured to call tomcat. maybe send some information about httpd.conf file. thanks, B -Original Message- From: Jagan [mailto:[EMAIL PROTECTED]] Sent: Monday, December 10, 2001 10:20 PM To: Tomcat Users List Subject: Regarding tomca and servelt hi! i am using tomcat 4 and Apache1.3.12 my application structure is my application dir. name is myapp and under my app all my .jsp and .htm files are under my app directly, my classes are under myapp/WEB-INF/classes/myapp in myapp/WEB-INF/classes/myapp, i had one Manager servlet from which i had to transfer my path. for ex:Manager?action=here i will give classpage=here i will give jsp page. i had done changes in web.xml as below: servlet servlet-nameManager/servlet-name init-param param-nameinitParam1/param-name param-valuevalue1/param-value /init-param init-param param-nameinitParam2/param-name param-valuevalue2/param-value /init-param servlet-class ectu.Manager /servlet-class display-name/display-name description/description /servlet servlet-mapping servlet-name Manager /servlet-name url-pattern /Manager /url-pattern /servlet-mapping when i had done thos changes and i will run my application, i am getting below error: Apache Tomcat/4.0.1 - HTTP Status 404 - /ectu/ type Status report message /ectu/ description The requested resource (/ectu/) is not available if i am not changing anything in my web.xml the application is successfully running for .jsp .htm but wen i am accessing through Manager means my URL is:/Manager?action='myclass'page='myjsppage' i am getting below error: Apache Tomcat/4.0.1 - HTTP Status 404 - /Manager type Status report message /Manager description The requested resource (/Manager) is not available can anybody help me? Thanks and Best Regards. Jagan Mohan Project Consultant Unidux Technologies Pte Ltd (subsidiary of the public-listed Unidux Electronics Ltd) TEL: (65) 293 4797 FAX: (65) 293 4920 -- 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]