help me with IIS+tomcat
hi, me too I us Windows Prof 2000 and Tomcat 321 same problem, any help ? regards Albert Oscarina System Specialist Solution Made Pocketable http://www.SMPdirect.com Phone : (65) 276 7624 Fax : (65) 274 4770 mail : [EMAIL PROTECTED] "If we have a strong reason, we will find the way" (Bits & Pieces, The Economics Press) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 11, 2001 3:17 PM To: [EMAIL PROTECTED] Subject: RE: help me with IIS+tomcat Hi, I have the same problem and i'm stuckany idea ? Thanks, Hervé. -Message d'origine- De: Ðì±ó [SMTP:[EMAIL PROTECTED]] Date: mercredi 11 juillet 2001 07:32 À: [EMAIL PROTECTED] Objet: help me with IIS+tomcat Hi, I have tried everything writen in "Tomcat IIS HowTo" but when I entered "http://bsd.com/examples/jsp/index.html"; (My win 2000 server's IIS web server's name is bsd.com), the browser always says a error of HTTP 404. I think the url is right because if I entered "http://bsd.com:8080/examples/jsp/index.html";, the browser can correctly display tomcat jsp examples page. The isapi filter is also loaded, the workers is setting right. I use Jbuilder4 and download tomcat 3.2.2 and install it under c:\JBuilder4\tomcat. I have changed workers.properties's java_home and tomcat_home properties. It still NOT works. can you give me some information?
Re: help me with IIS+tomcat
Hi guys, I hate to say this - bt this is not because of poor docs. By reading the docs I managed to get tomcat 3.2.2 installed and runing within an hour on win2k+IIS5. I suggest you re-read the IIS-How-to, especially the section after installing the isapi redirect dll. It mentions a green tick somewhere, make sure you have one! Then make sure tomcat is actually running as an NT service (if it ain't running, it isn't gonna find the document!) Hope that helps guys. Adam. Adam Fowler TomcatBook project - http://tomcatbook.sourceforge.net Help Desk Live Project Information Services University of Wales, Aberystwyth e-mail: [EMAIL PROTECTED] On Wednesday 11 July 2001 07:17, you wrote: > Hi, > > I have the same problem and i'm stuckany idea ? > > Thanks, > > Hervé. > > -Message d'origine- > De: Ðì±ó [SMTP:[EMAIL PROTECTED]] > Date: mercredi 11 juillet 2001 07:32 > À: [EMAIL PROTECTED] > Objet: help me with IIS+tomcat > > Hi, > I have tried everything writen in "Tomcat IIS HowTo" but when I > entered "http://bsd.com/examples/jsp/index.html"; (My win 2000 server's IIS > web server's name is bsd.com), the browser always says a error of HTTP 404. > I think the url is right because if I entered > "http://bsd.com:8080/examples/jsp/index.html";, the browser can correctly > display tomcat jsp examples page. The isapi filter is also loaded, the > workers is setting right. I use Jbuilder4 and download tomcat 3.2.2 and > install it under c:\JBuilder4\tomcat. I have changed workers.properties's > java_home and tomcat_home properties. It still NOT works. can you give me > some information?
RE: help me with IIS+tomcat
Morning all, another little pointer which does not appear in the documents is the fact that the config files for Tomcat are formatted by a UNIX text editor. We installed everything, added the redirector and got a red arrow until we re-formatted the config files for Windows. We opened each file in WinBatch and Notepad then copied the WinBatch copy over the Notepad copy and saved (WinBatch recognises UNIX formatting). There is a way of doing this with vi if you have access but recall the exact command for this. Hope this helps Chris -Original Message- From: albert [mailto:[EMAIL PROTECTED]] Sent: 11 July 2001 08:22 To: [EMAIL PROTECTED] Subject: help me with IIS+tomcat hi, me too I us Windows Prof 2000 and Tomcat 321 same problem, any help ? regards Albert Oscarina System Specialist Solution Made Pocketable http://www.SMPdirect.com Phone : (65) 276 7624 Fax : (65) 274 4770 mail : [EMAIL PROTECTED] "If we have a strong reason, we will find the way" (Bits & Pieces, The Economics Press) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 11, 2001 3:17 PM To: [EMAIL PROTECTED] Subject: RE: help me with IIS+tomcat Hi, I have the same problem and i'm stuckany idea ? Thanks, Hervé. -Message d'origine- De: Ðì±ó [SMTP:[EMAIL PROTECTED]] Date: mercredi 11 juillet 2001 07:32 À: [EMAIL PROTECTED] Objet: help me with IIS+tomcat Hi, I have tried everything writen in "Tomcat IIS HowTo" but when I entered "http://bsd.com/examples/jsp/index.html"; (My win 2000 server's IIS web server's name is bsd.com), the browser always says a error of HTTP 404. I think the url is right because if I entered "http://bsd.com:8080/examples/jsp/index.html";, the browser can correctly display tomcat jsp examples page. The isapi filter is also loaded, the workers is setting right. I use Jbuilder4 and download tomcat 3.2.2 and install it under c:\JBuilder4\tomcat. I have changed workers.properties's java_home and tomcat_home properties. It still NOT works. can you give me some information?
Tomcat Shutdown-help pls
Title: Tomcat Shutdown-help pls Hi O/S: Win'NT Even after shutting down the tomcat by clicking on "bin/shutdown.bat", the instance remains eventhough the tomcat3.2 window closes. What can be done? i dont want this to happen thanx in adv Lax
Question regarding tomcat behavoiur
Hi, I am making a simple servlet based solution in tomcat. I just have one servlet which internaly starts a thread. Now my requirement is that the second request to this thread doesn't starts a new thread util the earlier thread has done it's job. Everything is working fine besides that immediate second request to that servlet produces a "The page cannot be displayed" error. I tried debuging the service method of my servlet and in case of second respponse also the service method seems to be completed without any error but obviliouly there is something wrong somewhere. My environment is iis and tomcart. System.err.println("c1"); //Input and Output streams is = req.getInputStream(); HTMLout = res.getOutputStream(); System.err.println("c2"); String htmlResponseOpen; String htmlResponseClose; // Used to send response in the correct html format. HtmlResponse listMainCss = new HtmlResponse(); System.err.println("c3"); HTMLout.println(""); // Create the desired format. htmlResponseOpen = listMainCss.openMainCssStyle("List", "Fixed Income Sales Database - Send Fax ", 12, 4, 180, 128); HTMLout.println(htmlResponseOpen); System.err.println("c4"); // Check whether any other process is already sending fax. // If yes then ask the user to wait. if (processFax.isAlive()) { System.err.println("c5"); //HTMLout.println("Another Process For Sending Fax Is Already Active"); HTMLout.println("Try Later"); System.err.println("c6"); } else { // This method call will Upload the file from the // user end to the web server. System.err.println("c7"); fileLoadedByUser = uploadFile(req, res); System.err.println("c8"); /** * Hopefully at this point of time whole file uploaded by the user * is in a String. */ if ((fileLoadedByUser != null) || (!fileLoadedByUser.equals(""))) { if ((fileLoadedByUser.indexOf("change1") != -1) && (fileLoadedByUser.indexOf("change2") != -1)) { processFax = null; System.err.println("c9"); processFax = new ProcessFax(fileLoadedByUser, fileName); processFax.start(); // Till now everything is fine and ProcessFax has been // started. Obviously at this point of time it cannot be // ensured that all the Faxes have been sent correctly. HTMLout.println("Started sending Faxes"); } else { System.err.println("c10"); HTMLout.println("RTF file is not in correct format."); } } } System.err.println("c11"); htmlResponseClose = listMainCss.closeMainCssStyle(); HTMLout.println(htmlResponseClose + ""); System.err.println("c12"); HTMLout.flush(); // Close the output stream. is.close(); HTMLout.close(); htmlResponseOpen = null; htmlResponseClose = null; is = null; HTMLout = null;
RE: help me with IIS+tomcat
Hi, try following, http://www.verysimple.com/scripts/support_tc_iis.html I followed it its working fine with me Good Luck Manjunath >From: Chris Thompson <[EMAIL PROTECTED]> >Reply-To: [EMAIL PROTECTED] >To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]> >Subject: RE: help me with IIS+tomcat >Date: Wed, 11 Jul 2001 08:44:27 +0100 > >Morning all, > >another little pointer which does not appear in the documents is the fact >that the config files for Tomcat are formatted by a UNIX text editor. We >installed everything, added the redirector and got a red arrow until we >re-formatted the config files for Windows. > >We opened each file in WinBatch and Notepad then copied the WinBatch copy >over the Notepad copy and saved (WinBatch recognises UNIX formatting). >There >is a way of doing this with vi if you have access but recall the exact >command for this. > >Hope this helps >Chris > >-Original Message- >From: albert [mailto:[EMAIL PROTECTED]] >Sent: 11 July 2001 08:22 >To: [EMAIL PROTECTED] >Subject: help me with IIS+tomcat > > >hi, me too >I us Windows Prof 2000 >and Tomcat 321 >same problem, any help ? > >regards >Albert Oscarina >System Specialist >Solution Made Pocketable >http://www.SMPdirect.com >Phone : (65) 276 7624 >Fax : (65) 274 4770 >mail : [EMAIL PROTECTED] > >"If we have a strong reason, we will find the way" >(Bits & Pieces, The Economics Press) > > >-Original Message- >From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] >Sent: Wednesday, July 11, 2001 3:17 PM >To: [EMAIL PROTECTED] >Subject: RE: help me with IIS+tomcat > > > >Hi, > >I have the same problem and i'm stuckany idea ? > >Thanks, > >Hervé. > > -Message d'origine- > De: Ðì±ó [SMTP:[EMAIL PROTECTED]] > Date: mercredi 11 juillet 2001 07:32 > À: [EMAIL PROTECTED] > Objet: help me with IIS+tomcat > > Hi, > I have tried everything writen in "Tomcat IIS HowTo" but when I >entered "http://bsd.com/examples/jsp/index.html"; (My win 2000 server's IIS >web server's name is bsd.com), the browser always says a error of HTTP 404. >I think the url is right because if I entered >"http://bsd.com:8080/examples/jsp/index.html";, the browser can correctly >display tomcat jsp examples page. The isapi filter is also loaded, the >workers is setting right. I use Jbuilder4 and download tomcat 3.2.2 and >install it under c:\JBuilder4\tomcat. I have changed workers.properties's >java_home and tomcat_home properties. It still NOT works. can you give me >some information? _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
URL socket connection to servlet
Hi, I have replaced my apache-jserv server with apache-tomcat. In this case my applet cannot open URL socket connection to my servlet that loads the applet. The code in the applet is as follows: // Get the server URL String urlString = "http://" + getDocumentBase().getHost() + "/servlet/LoginServlet"; java.net.URL url = new java.net.URL(urlString); System.out.println("- url: " + url.toString()); // Attempt to connect to the host java.net.URLConnection con = url.openConnection(); System.out.println("connection opened..."); And the error message from Java Console of Internet Explorer is as follows: ( www.yfas.com.tr:80//servlet/LoginServlet this address is shown in netscape as it is in the address bar, that is: www.yfas.com.tr/servlet/LoginServlet ) - url: http://www.yfas.com.tr/servlet/LoginServletconnection opened...java.io.FileNotFoundException: www.yfas.com.tr:80//servlet/LoginServlet at com/ms/net/wininet/http/HttpInputStream.connect at com/ms/net/wininet/http/HttpInputStream. at com/ms/net/wininet/http/HttpURLConnection.createInputStream at com/ms/net/wininet/WininetURLConnection.getInputStream at com/ms/net/wininet/http/HttpPostBufferStream.close at java/io/FilterOutputStream.close at LoginApplet.validateUser at LoginApplet.handleEvent at java/awt/Component.postEvent at java/awt/Component.postEvent at java/awt/Component.dispatchEventImpl at java/awt/Component.dispatchEvent at java/awt/EventDispatchThread.run is there any solution for this problem? Deniz...
RE: can run tomcat on linux & servlets but not jsp's
This is certainly the problem. Servlets are pre-compiled, thus require only the JRE, but JSP's are compiled every time they are run thus require a full JDK. - James Radvan Websphere Analyst/Architect London, UK [EMAIL PROTECTED] +44 7990 624899 -Original Message- From: Artigas, Ricardo Y. [mailto:[EMAIL PROTECTED]] Sent: 11 July 2001 01:53 To: [EMAIL PROTECTED] Subject: RE: can run tomcat on linux & servlets but not jsp's If I'm not mistaken, I believe you need the jdk installed not just the jre. HTH. Click here to visit the Argos home page http://www.argos.co.uk The information contained in this message or any of its attachments may be privileged and confidential, and is intended exclusively for the addressee. The views expressed may not be official policy, but the personal views of the originator. If you are not the addressee, any disclosure, reproduction, distribution, dissemination or use of this communication is not authorised. If you have received this message in error, please advise the sender by using the reply facility in your e-mail software. All messages sent and received by Argos Ltd are monitored for virus, high risk file extensions, and inappropriate content. As a result users should be aware that mail may be accessed.
Application to Servlet communication
Hi all! I'm trying to do some application/applet to servlet communication where I want to send an object to servlet. My application code: URL testServlet = new URL("http://localhost:83/testApp/servlet/TestServlet";); URLConnection servletConnection = testServlet.openConnection(); // inform the connection that we will send output and accept input servletConnection.setDoInput(true); servletConnection.setDoOutput(true); // Don't use a cached version of URL connection. servletConnection.setUseCaches(false); servletConnection.setDefaultUseCaches(false); // Specify the content type that we will send binary data //servletConnection.setRequestProperty("Content-Type", "application/octet-stream"); servletConnection.setRequestProperty("Content-Type", "application/x-www-form-urlencoded"); // send the student object to the servlet using serialization ObjectOutputStream outputToServlet = new ObjectOutputStream(servletConnection.getOutputStream()); // serialize the object outputToServlet.writeObject(new HelloObject(message)); outputToServlet.flush(); outputToServlet.close(); results in Http10Interceptor: SocketException reading request, ignored message on tomcat 3.3m4. Any idea what I'm doing wrong ? Any help will be appreciated. Best regards, Kovi
RE: [NEWBIE] Static html pages do not show image files
Try, http://127.0.0.1:8080/Request/ This will show the list of files in the directory, check if you can see Tuev.gif. Click on it, if the file is ok, it should be displayed -Original Message- From: Algarve, Leila [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 11, 2001 8:41 AM To: '[EMAIL PROTECTED]' Subject: AW: [NEWBIE] Static html pages do not show image files This is the scr of the img tag: This url works: http://127.0.0.1:8080/Request/index.htm This url does not work (Error 404 - File not found): http://127.0.0.1:8080/Request/Tuev.gif Both files exists and they are in the same directory. Leila > > > What is the src of the img tag in your html file? Some > tools will > put fully qualified file names in there instead of relative paths. > > Randy > > > > I am running Tomcat 4.0b5 standalone in Windows NT 4.0. > > I've created a new web-application in $tomcathome$\webapps > > without creating > > a war file (I am at the early stage of development), with one > > html static > > page and one servlet. I can access the html page and the > > servlet without > > problem but I cannot see any image (gif). The html and the > > images are in the > > same directory ($tomcathome$\webapps\MyWebApp), if I open the > > html file > > (without using Tomcat) the images just show fine. > >
Tomcat memory-leak problem
Hi! I'm using apache, tomcat jakarta 3.2.1, jdk1.2.2 on a linux 6.2 and a MS SQL server on a Nt4 with sp 6a. Having some trouble with memory-leak. After the server has been running for a couple of days, it has eaten up all 512MB of RAM. It is a server with some customers on and it handles about 1000 visitors a day. We use JSP pages and servlets to show webpages. Servlets primary for showing images from database or generating menues... So... what shall i do? It doesnt help to restart tomcat. I need to reboot the server and start tomcat all over before we can get in contact with the sites again. Thanks in adv. /)-._ Y. ' _] Greetings ,.._ |`--"= Bjarne Jørgensen / Bigf00t / "-/ `.\ /) | |_ `\|___ Email : [EMAIL PROTECTED] \:::\___/_\__\___\
Re: Question regarding tomcat behavoiur
Hi, I'm not exactly sure what your problem is but may I suggest a different architecture? Why dont you have the "fileLoadedByUser" put in a queue - and in the init() start a worker thread that just processes the files one by one. You could then accept someone's fax all the time. Get an email address and confirm it was sent, or inform them of any error... hope this helps. cheers dim On Wed, 11 Jul 2001 18:43, Singh, Kamal Deep wrote: > Hi, > > I am making a simple servlet based solution in tomcat. I just have one > servlet which internaly starts a thread. Now my requirement is that the > second request to this thread doesn't starts a new thread util the earlier > thread has done it's job. Everything is working fine besides that immediate > second request to that servlet produces a "The page cannot be displayed" > error. I tried debuging the service method of my servlet and in case of > second respponse also the service method seems to be completed without any > error but obviliouly there is something wrong somewhere. My environment is > iis and tomcart. > > System.err.println("c1"); > //Input and Output streams > is = req.getInputStream(); > HTMLout = res.getOutputStream(); > System.err.println("c2"); > String htmlResponseOpen; > String htmlResponseClose; > > // Used to send response in the correct html format. > HtmlResponse listMainCss = new HtmlResponse(); > System.err.println("c3"); > HTMLout.println(""); > > // Create the desired format. > htmlResponseOpen = listMainCss.openMainCssStyle("List", "Fixed > Income Sales Database - Send Fax ", 12, 4, 180, 128); > HTMLout.println(htmlResponseOpen); > System.err.println("c4"); > // Check whether any other process is already sending fax. > // If yes then ask the user to wait. > if (processFax.isAlive()) > { > System.err.println("c5"); > //HTMLout.println("Another Process For > Sending Fax Is Already Active"); > HTMLout.println("Try Later"); > System.err.println("c6"); > } > else > { > // This method call will Upload the file from the > // user end to the web server. > System.err.println("c7"); > fileLoadedByUser = uploadFile(req, res); > System.err.println("c8"); > /** > * Hopefully at this point of time whole file uploaded by the > user > * is in a String. > */ > > if ((fileLoadedByUser != null) || > (!fileLoadedByUser.equals(""))) > { > if ((fileLoadedByUser.indexOf("change1") != -1) && > (fileLoadedByUser.indexOf("change2") != -1)) > { > processFax = null; > System.err.println("c9"); > processFax = new ProcessFax(fileLoadedByUser, > fileName); processFax.start(); > // Till now everything is fine and ProcessFax has been > // started. Obviously at this point of time it cannot > be // ensured that all the Faxes have been sent correctly. > HTMLout.println("Started sending Faxes"); > > } > else > { > System.err.println("c10"); > HTMLout.println("RTF file is not in > correct format."); > } > } > } > > System.err.println("c11"); > htmlResponseClose = listMainCss.closeMainCssStyle(); > HTMLout.println(htmlResponseClose + ""); > System.err.println("c12"); > HTMLout.flush(); > // Close the output stream. > is.close(); > HTMLout.close(); > htmlResponseOpen = null; > htmlResponseClose = null; > is = null; > HTMLout = null;
Re: Tomcat memory-leak problem
I too have been having some problems with Tomcat + memory. I put it down to me running win98 and win98 not properly being able to address memory over 128MB. I normally have dreamweaver, netbeans and tomcat running, and reguarly run out of memory (I have 384MB Ram). I haven't noticed any similar problems running tomcat on linux (with a lower spec machine). Windows does have memory management issues however, and it might be the way tomcat threads means it causes problems with memory on win32 platforms. I downloaded Tweakall in the end, as this comes with a niffty utility which can free leaked memory. sam - Original Message - From: BJ To: [EMAIL PROTECTED] Sent: Wednesday, July 11, 2001 9:50 AM Subject: Tomcat memory-leak problem Hi! I'm using apache, tomcat jakarta 3.2.1, jdk1.2.2 on a linux 6.2 and a MS SQL server on a Nt4 with sp 6a. Having some trouble with memory-leak. After the server has been running for a couple of days, it has eaten up all 512MB of RAM. It is a server with some customers on and it handles about 1000 visitors a day. We use JSP pages and servlets to show webpages. Servlets primary for showing images from database or generating menues... So... what shall i do? It doesnt help to restart tomcat. I need to reboot the server and start tomcat all over before we can get in contact with the sites again. Thanks in adv. /)-._ Y. ' _] Greetings ,.._ |`--"= Bjarne Jørgensen / Bigf00t / "-/ `.\ /) | |_ `\|___ Email : [EMAIL PROTECTED] \:::\___/_\__\___\
Re: help me with IIS+tomcat
Hello, I tried to follow that link to do exactly what they instruct to do, yet I keep getting these errors every time I access the examples application. Note that I see the requested pages and it operates just fine, but I get the following errors anyway. I would like to add that I cannot see other applications besides the examples one. The errors: 10:19:58 192.114.206.189 GET /jakarta/isapi_redirect.dll 200 10:19:58 192.114.206.189 GET /jakarta/isapi_redirect.dll 200 10:19:58 192.114.206.189 GET /jakarta/isapi_redirect.dll 200 10:19:58 192.114.206.189 GET /jakarta/isapi_redirect.dll 200 I work on win2000 with 3.2.2 version of Tomcat. Can anyone link me to a relevant resource or advice me about it? Thanks! David. - Original Message - From: "Manjunath BHat" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, July 11, 2001 10:54 AM Subject: RE: help me with IIS+tomcat > Hi, > > try following, > http://www.verysimple.com/scripts/support_tc_iis.html > I followed it its working fine with me > > Good Luck > > Manjunath > > > > >From: Chris Thompson <[EMAIL PROTECTED]> > >Reply-To: [EMAIL PROTECTED] > >To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]> > >Subject: RE: help me with IIS+tomcat > >Date: Wed, 11 Jul 2001 08:44:27 +0100 > > > >Morning all, > > > >another little pointer which does not appear in the documents is the fact > >that the config files for Tomcat are formatted by a UNIX text editor. We > >installed everything, added the redirector and got a red arrow until we > >re-formatted the config files for Windows. > > > >We opened each file in WinBatch and Notepad then copied the WinBatch copy > >over the Notepad copy and saved (WinBatch recognises UNIX formatting). > >There > >is a way of doing this with vi if you have access but recall the exact > >command for this. > > > >Hope this helps > >Chris > > > >-Original Message- > >From: albert [mailto:[EMAIL PROTECTED]] > >Sent: 11 July 2001 08:22 > >To: [EMAIL PROTECTED] > >Subject: help me with IIS+tomcat > > > > > >hi, me too > >I us Windows Prof 2000 > >and Tomcat 321 > >same problem, any help ? > > > >regards > >Albert Oscarina > >System Specialist > >Solution Made Pocketable > >http://www.SMPdirect.com > >Phone : (65) 276 7624 > >Fax : (65) 274 4770 > >mail : [EMAIL PROTECTED] > > > >"If we have a strong reason, we will find the way" > >(Bits & Pieces, The Economics Press) > > > > > >-Original Message- > >From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > >Sent: Wednesday, July 11, 2001 3:17 PM > >To: [EMAIL PROTECTED] > >Subject: RE: help me with IIS+tomcat > > > > > > > >Hi, > > > >I have the same problem and i'm stuckany idea ? > > > >Thanks, > > > >Hervé. > > > > -Message d'origine- > > De: Ðì±ó [SMTP:[EMAIL PROTECTED]] > > Date: mercredi 11 juillet 2001 07:32 > > À: [EMAIL PROTECTED] > > Objet: help me with IIS+tomcat > > > > Hi, > > I have tried everything writen in "Tomcat IIS HowTo" but when I > >entered "http://bsd.com/examples/jsp/index.html"; (My win 2000 server's IIS > >web server's name is bsd.com), the browser always says a error of HTTP 404. > >I think the url is right because if I entered > >"http://bsd.com:8080/examples/jsp/index.html";, the browser can correctly > >display tomcat jsp examples page. The isapi filter is also loaded, the > >workers is setting right. I use Jbuilder4 and download tomcat 3.2.2 and > >install it under c:\JBuilder4\tomcat. I have changed workers.properties's > >java_home and tomcat_home properties. It still NOT works. can you give me > >some information? > > _ > Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
AW: [NEWBIE] Static html pages do not show image files
Thank everyone for the help and tips. I found the problem and I am posting the solution for the archive. I had to change the html page from: width=198> to: width=198> The name of the file is "Tuev.gif" but I have to write the src of the img tag with capital letters I guess the cause of the problem is that Windows is case insenstiv. Is that a bug from Tomcat? Leila > > Try, > http://127.0.0.1:8080/Request/ > > This will show the list of files in the directory, check if > you can see > Tuev.gif. > Click on it, if the file is ok, it should be displayed > > -Original Message- > > This is the scr of the img tag: > > width=198> > > This url works: > > http://127.0.0.1:8080/Request/index.htm > > This url does not work (Error 404 - File not found): > > http://127.0.0.1:8080/Request/Tuev.gif > > > Both files exists and they are in the same directory. > > Leila > > > > > > > > What is the src of the img tag in your html file? Some > > tools will > > put fully qualified file names in there instead of relative paths. > > > > Randy > > > > > > I am running Tomcat 4.0b5 standalone in Windows NT 4.0. > > > I've created a new web-application in $tomcathome$\webapps > > > without creating > > > a war file (I am at the early stage of development), with one > > > html static > > > page and one servlet. I can access the html page and the > > > servlet without > > > problem but I cannot see any image (gif). The html and the > > > images are in the > > > same directory ($tomcathome$\webapps\MyWebApp), if I open the > > > html file > > > (without using Tomcat) the images just show fine. > > > >
Re: are there servlet aliases
Hi Anand, thx for your help. I tried this and it works. Chauhan, Anand wrote at Tuesday 10 July 2001 20:29: > Andreas: > > Definitely yes. Check the following snippet of my example web.xml file for > details.. and we could call the servlet "ServletExample" using each of the > following mappings: > > http://localhost:8080/ContextName/servlet/hi > http://localhost:8080/ContextName/hello.html > > > > hi > > > ServletExample > > > > > hi > > > /hello.html > > Now I run into the next problem. First some history: I have old servlets running on JavaWebServer 2.0 on a solaris box. Because the JavaWebServer is end-of-lifetime and Sun announced, that we have to take an web server from iplanet for approx. 1500 US$. Now I try to get the servlet running with tomcat. The problem: On the init Method of the servlet I get a NullpointerException. Log follows: --- snip --- Error: 500 Location: /beusen/servlet/WebETB_Login Internal Servlet Error: java.lang.NullPointerException at java.lang.Throwable.fillInStackTrace(Native Method) at java.lang.Throwable.fillInStackTrace(Compiled Code) at java.lang.Throwable.(Compiled Code) at java.lang.Exception.(Compiled Code) at java.lang.RuntimeException.(Compiled Code) at java.lang.NullPointerException.(Compiled Code) at java.util.Hashtable.put(Compiled Code) at org.apache.tomcat.core.Context.setAttribute(Context.java:411) at org.apache.tomcat.facade.ServletContextFacade.setAttribute(ServletContextFacade.java:116) at beusen.etb.LoginServlet.init(LoginServlet.java:41) at org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317) at org.apache.tomcat.core.Handler.init(Handler.java:215) at org.apache.tomcat.core.ServletWrapper.init(Compiled Code) at org.apache.tomcat.core.Handler.service(Compiled Code) at org.apache.tomcat.core.ServletWrapper.service(Compiled Code) at org.apache.tomcat.core.ContextManager.internalService(Compiled Code) at org.apache.tomcat.core.ContextManager.service(Compiled Code) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(Compiled Code) at org.apache.tomcat.service.TcpWorkerThread.runIt(Compiled Code) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(Compiled Code) at java.lang.Thread.run(Thread.java:485) --- snap --- In the servlet line 41 there is an access to the ServletConfig object, which should be passed to ther servlets init method automatically. It seems that this won't work - the object is null (nil, not loaded, invalid ?). This is the part of the source code: --- snip --- package beusen.etb; import beusen.etb.variable.*; import java.io.*; import javax.servlet.*; import javax.servlet.http.*; import java.util.Enumeration; public class LoginServlet extends HttpServlet { private DefaultValuesInterface etbDefaultValue; private DefaultTextsInterface etbDefaultText; private DefaultKeysInterface etbDefaultKey; public void init(ServletConfig conf) throws ServletException { super.init(conf); String errorMessage; ServletContext currServletContext = conf.getServletContext(); = This line throws the exception :-( } } --- snap --- Are there any options/methods in tomcat to pass this objects? Must I recompile my own packages? Any other ideas? thx andy -- --- mailto:[EMAIL PROTECTED] fon: +49 30 549932-37 fax: +49 30 549932-21
Tomcat problems on Solaris
Hi, I am having problems getting tomcat 3.2.2 to work on a Solaris server with apache 1.3.20. There is a couple of issues that I am not sure if they are related. Any help would be appreciated. The first problem is that tomcat logs the stdout and stderr to the user who starts the service. I have set the wrapper.properties to wrapper.stdout=$(wrapper.tomcat_home)/logs/jvm.stdout wrapper.stderr=$(wrapper.tomcat_home)/logs/jvm.stderr Tomcat terminates when the user who starts tomcat logs off the server. I start tomcat as the www user eg su - www -c "/usr/local/jakarta-tomcat-3.2.2/bin/tomcat.sh start" Despite this tomcat logs to the users consol who runs this command. I am also getting errors coming out in the mod_jk.log which are as follows. [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 146 [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1 [jk_uri_worker_map.c (335)]: jk_uri_worker_map_t::uri_worker_map_close, NULL parameter [jk_uri_worker_map.c (185)]: In jk_uri_worker_map_t::uri_worker_map_free, NULL parameters Are these errors related. Any help in resolving these issues would be appreciated. Regards Neil
Sealing violation with Catalina
I have a servlet that needs to invoke the class loader. This, of course, causes a SecurityException due to a sealing violation (trying to invoke arbitrary classes). Well, I've tried changing the Catalina security policy file, catalina.policy, so that it grants the appropriate permissions to the servlet. I've also tried granting all permissions to all code. Neither seems to work. Has anyone successfully overcome this problem with Catalina? I'm using yesterday's nightly build of Catalina, FWIW. Thanks. -dan -- Dan Kirkpatrick, Software Architect Blue Lotus Software+44 (0) 1224 575 985 [EMAIL PROTECTED] http://www.bluelotussoftware.com
Precompile JSP with Tomcat
Hi All, I'm sure this has been ask before but can some one help me. I am working on a webapp which will have many JSP page, when the server is rebooted I don't want the first visitor to each page to have to wait for them to be compiled. Is there any way round this? Many thanks James Bailey School of DEC Bournemouth University
Switch off HTTP Server
Dear Tomcat Users I'm using tomcat together with apache. At the moment I can access via Port 80 (Apache) and Port 8080 (Tomcat). Now I just want to answer http-request with apache. How can I switch off the HTTP Server of tomcat? Many thanks Dave
Re: Precompile JSP with Tomcat
Use the jspc utiltity. It's in tomcat's bin directory. Cheers, Matt - Original Message - From: James Bailey <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, July 11, 2001 12:16 PM Subject: Precompile JSP with Tomcat > Hi All, > > I'm sure this has been ask before but can some one help me. > I am working on a webapp which will have many JSP page, when the server is > rebooted I don't want the first visitor to each page to have to wait for them > to be compiled. Is there any way round this? > > Many thanks > > James Bailey > School of DEC > Bournemouth University >
Re: SSL Redirect To Port 80
Dear Jim, I'm Sugata. I do not have any clue regarding yr query and so am sorry that I cannot be of any help.But I'm having a problem since a month and am writing to u since I'm using the same system ( Tomcat 3.2.1 standalone on Windiws 98 ). Here goes : java error in database access > > > > i have been facing a problem in tomcat which i could not > solve may be due to being a "first time user" . i will be > pleased if u could tell me the source of this problem. > i have a login page where the user enters username and > password in 2 text fields(user & pwd).the form action leads > to login.jsp file.if both are found in the table "login" > located in Oracle8.0.4(personal edition), then the user is > greeted by his username. else error msg is shown.when i used > JdbcOdbcDriver the output was as expected.but immediately > after the output page was displayed,an illegal operation > msgbox was shown by java.this error does not occur > sometimes.but whenever i stop tomcat and restart it,and acces > my login page the error appears again.the error looks like > the following: > > [ > JAVA caused an invalid page fault in > module at :08412f90. > Registers: > EAX=083105d8 CS=0177 EIP=08412f90 EFLGS=00010297 > EBX=08310908 SS=017f ESP=050dfd2c EBP=050dfd4c > ECX= DS=017f ESI=08310140 FS=3ca7 > EDX=08310140 ES=017f EDI= GS= > Bytes at CS:EIP: > > Stack dump: > 1f7025d1 004151d0 0195 007b1ec0 00679470 > 050dfda4 1f702505 08310140 > 0010 019512e8 007b1ec0 50472958 > ] > my classpath has tomcat_home,java_home,and > c:\jdk1.2.2\lib\tools.jar set appropriately > i am using Windows98 machine with 64mb ram,433mhz and with > initial memory set to 3072(thru dos window properties--memory tab). > > i have tried in debugging by putting System.out.println() > statements but to no avail. > > i am enclosing the login.jsp file i used. > eagerly awaiting ur comments. > > login.jsp: > > <%@ page session="true" > import="java.sql.*,sun.jdbc.odbc.*,java.io.*" %> > > > <% > String s1=request.getParameter("user"); > String s2=request.getParameter("pwd"); > String upwd=null; > try{ > > if(s1.length()==8 && s2.length()==6) > { >System.out.println("loading driver"); > Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); >System.out.println("creating connection"); > Connection > con=DriverManager.getConnection("jdbc:odbc:login","scott","tiger"); >System.out.println("creating statement"); > Statement stmt=con.createStatement(); > >System.out.println("executing query"); > ResultSet rs=stmt.executeQuery("select > password from login where username='"+ s1+"'"); >System.out.println("checking if rs is null"); > if(rs!=null) >{ >System.out.println("while rs exists"); >while(rs.next()) >{ > > System.out.println("retrieving password"); >upwd=rs.getString("password"); >} >} >System.out.println("closing connection"); >con.close(); >System.out.println("checking if upwd is null"); >if(upwd!=null) >{ >System.out.println("checking if > upwd=s2"); >if(s2.equals(upwd)) >{ >System.out.println("if > upwd=s2"); > > out.println("Welcome Back to this site "+s1); >} > > >else >{ >System.out.println("if > upwd not equal to s2"); >out.println("Incorrect > password"); >} > >} > else >{ >System.out.println("if upwd is > null"); >out.println("Incorrect > username "); >} > > > > > > > } > else > { >System.out.println("if entered > username/password are not valid"); >out.println("Invalid no. of characters in username/password"); > } > } > catch(Exception ex){System.out.println("inside catch"+ex);} > System.out.println("end of jsp"); > > %> - Original Message - From: Jim Prior <[EMAIL PROTECTED]> To: Tomcat <[EMAIL PROTECTED]> Sent: Wednesday, July 11, 2001 10:26 AM Subject: SSL Redirect To Port 80 > Hi, > > I'm running Tomcat 3.2.1 standalone on Windows 98. > > Using a "normal" HTTP connector, I can enter http://server/ on my browser > and be successfully redirected to http://server/index.html > > However, if I use SSL, https://server/ will be redirected to port 80 rather > than 443. If I use https://server/index.html I connect (via SSL at port > 443) no problem. > > The best clue I've found on the archive is: > > http://w4.metronet.com/~wjm/tomcat/2000/Sep/msg00576.html > > But, the "secure" parameter doesn't have any effect. > > Any suggestions as to where I should look next? > > IATY. > > >
RE: help me with IIS+tomcat
What makes you think that these are errors? The isapi_redirect.dll is the resource that IIS will request, its in the right directory, and I believe that 200 is the SUCCESS status code. You indicate that the pages are showing up correctly, so what's the problem? You can't see other applications because you haven't told the redirector that you want to see them - you need to edit the uriworkermap.properties file, just like the HOWTO says. Randy > -Original Message- > From: David Treves [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, July 11, 2001 7:09 AM > To: [EMAIL PROTECTED] > Subject: Re: help me with IIS+tomcat > > > Hello, > > I tried to follow that link to do exactly what they instruct > to do, yet I > keep getting these errors every time I access the examples > application. Note > that I see the requested pages and it operates just fine, but > I get the > following errors anyway. I would like to add that I cannot see other > applications besides the examples one. > > The errors: > 10:19:58 192.114.206.189 GET /jakarta/isapi_redirect.dll 200 > 10:19:58 192.114.206.189 GET /jakarta/isapi_redirect.dll 200 > 10:19:58 192.114.206.189 GET /jakarta/isapi_redirect.dll 200 > 10:19:58 192.114.206.189 GET /jakarta/isapi_redirect.dll 200 > > I work on win2000 with 3.2.2 version of Tomcat. > > Can anyone link me to a relevant resource or advice me about it? > > Thanks! > David. > > - Original Message - > From: "Manjunath BHat" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Wednesday, July 11, 2001 10:54 AM > Subject: RE: help me with IIS+tomcat > > > > Hi, > > > > try following, > > http://www.verysimple.com/scripts/support_tc_iis.html > > I followed it its working fine with me > > > > Good Luck > > > > Manjunath > > > > > > > > >From: Chris Thompson <[EMAIL PROTECTED]> > > >Reply-To: [EMAIL PROTECTED] > > >To: "'[EMAIL PROTECTED]'" > <[EMAIL PROTECTED]> > > >Subject: RE: help me with IIS+tomcat > > >Date: Wed, 11 Jul 2001 08:44:27 +0100 > > > > > >Morning all, > > > > > >another little pointer which does not appear in the > documents is the fact > > >that the config files for Tomcat are formatted by a UNIX > text editor. We > > >installed everything, added the redirector and got a red > arrow until we > > >re-formatted the config files for Windows. > > > > > >We opened each file in WinBatch and Notepad then copied > the WinBatch copy > > >over the Notepad copy and saved (WinBatch recognises UNIX > formatting). > > >There > > >is a way of doing this with vi if you have access but > recall the exact > > >command for this. > > > > > >Hope this helps > > >Chris > > > > > >-Original Message- > > >From: albert [mailto:[EMAIL PROTECTED]] > > >Sent: 11 July 2001 08:22 > > >To: [EMAIL PROTECTED] > > >Subject: help me with IIS+tomcat > > > > > > > > >hi, me too > > >I us Windows Prof 2000 > > >and Tomcat 321 > > >same problem, any help ? > > > > > >regards > > >Albert Oscarina > > >System Specialist > > >Solution Made Pocketable > > >http://www.SMPdirect.com > > >Phone : (65) 276 7624 > > >Fax : (65) 274 4770 > > >mail : [EMAIL PROTECTED] > > > > > >"If we have a strong reason, we will find the way" > > >(Bits & Pieces, The Economics Press) > > > > > > > > >-Original Message- > > >From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > > >Sent: Wednesday, July 11, 2001 3:17 PM > > >To: [EMAIL PROTECTED] > > >Subject: RE: help me with IIS+tomcat > > > > > > > > > > > >Hi, > > > > > >I have the same problem and i'm stuckany idea ? > > > > > >Thanks, > > > > > >Hervé. > > > > > > -Message d'origine- > > > De: Ðì±ó [SMTP:[EMAIL PROTECTED]] > > > Date: mercredi 11 juillet 2001 07:32 > > > À: [EMAIL PROTECTED] > > > Objet: help me with IIS+tomcat > > > > > > Hi, > > > I have tried everything writen in "Tomcat IIS HowTo" > but when I > > >entered "http://bsd.com/examples/jsp/index.html"; (My win > 2000 server's > IIS > > >web server's name is bsd.com), the browser always says a > error of HTTP > 404. > > >I think the url is right because if I entered > > >"http://bsd.com:8080/examples/jsp/index.html";, the browser > can correctly > > >display tomcat jsp examples page. The isapi filter is also > loaded, the > > >workers is setting right. I use Jbuilder4 and download > tomcat 3.2.2 and > > >install it under c:\JBuilder4\tomcat. I have changed > workers.properties's > > >java_home and tomcat_home properties. It still NOT works. > can you give me > > >some information? > > > > > __ > ___ > > Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
RE: [NEWBIE] Static html pages do not show image files
Its not a bug, the Servlet spec requires case sensitivity, so its a feature. Windows NT Explorer thinks its smarter than your files and therefore displays all files with the first letter capitalized and the rest lower case, regardless of their actual names (this is in 2000 definitely, I believe NT and unsure about 9x). I believe that the DOS prompt doesn't do this. In any case, Tomcat is looking at what the file name actually is in order to make the determination. Randy > -Original Message- > From: Algarve, Leila [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, July 11, 2001 6:17 AM > To: '[EMAIL PROTECTED]' > Subject: AW: [NEWBIE] Static html pages do not show image files > > > Thank everyone for the help and tips. I found the problem and > I am posting > the solution for the archive. > > I had to change the html page from: > > width=198> > > to: > > width=198> > > The name of the file is "Tuev.gif" but I have to write the > src of the img > tag with capital letters I guess the cause of the problem is that > Windows is case insenstiv. Is that a bug from Tomcat? > > Leila > > > > > Try, > > http://127.0.0.1:8080/Request/ > > > > This will show the list of files in the directory, check if > > you can see > > Tuev.gif. > > Click on it, if the file is ok, it should be displayed > > > > -Original Message- > > > > This is the scr of the img tag: > > > > > width=198> > > > > This url works: > > > > http://127.0.0.1:8080/Request/index.htm > > > > This url does not work (Error 404 - File not found): > > > > http://127.0.0.1:8080/Request/Tuev.gif > > > > > > Both files exists and they are in the same directory. > > > > Leila > > > > > > > > > > > > > What is the src of the img tag in your html file? Some > > > tools will > > > put fully qualified file names in there instead of relative paths. > > > > > > Randy > > > > > > > > I am running Tomcat 4.0b5 standalone in Windows NT 4.0. > > > > I've created a new web-application in $tomcathome$\webapps > > > > without creating > > > > a war file (I am at the early stage of development), with one > > > > html static > > > > page and one servlet. I can access the html page and the > > > > servlet without > > > > problem but I cannot see any image (gif). The html and the > > > > images are in the > > > > same directory ($tomcathome$\webapps\MyWebApp), if I open the > > > > html file > > > > (without using Tomcat) the images just show fine. > > > > > > >
RE: Tomcat memory-leak problem
It isn't Tomcat, and it isn't Tomcat on windows that is causing your problem. I have a server, running NT 4 and has been running it for close to 2 months under moderate load, and haven't had any memory leaks. I would look at your web applications and find the place where you are holding on to memory. I guarantee that it is your application and not Tomcat. Randy -Original Message- From: Sam Newman [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 11, 2001 5:32 AM To: [EMAIL PROTECTED] Subject: Re: Tomcat memory-leak problem I too have been having some problems with Tomcat + memory. I put it down to me running win98 and win98 not properly being able to address memory over 128MB. I normally have dreamweaver, netbeans and tomcat running, and reguarly run out of memory (I have 384MB Ram). I haven't noticed any similar problems running tomcat on linux (with a lower spec machine). Windows does have memory management issues however, and it might be the way tomcat threads means it causes problems with memory on win32 platforms. I downloaded Tweakall in the end, as this comes with a niffty utility which can free leaked memory. sam - Original Message - From: BJ To: [EMAIL PROTECTED] Sent: Wednesday, July 11, 2001 9:50 AM Subject: Tomcat memory-leak problem Hi! I'm using apache, tomcat jakarta 3.2.1, jdk1.2.2 on a linux 6.2 and a MS SQL server on a Nt4 with sp 6a. Having some trouble with memory-leak. After the server has been running for a couple of days, it has eaten up all 512MB of RAM. It is a server with some customers on and it handles about 1000 visitors a day. We use JSP pages and servlets to show webpages. Servlets primary for showing images from database or generating menues... So... what shall i do? It doesnt help to restart tomcat. I need to reboot the server and start tomcat all over before we can get in contact with the sites again. Thanks in adv. /)-._ Y. ' _] Greetings ,.._ |`--"= Bjarne Jørgensen / Bigf00t /"-/ `.\ /) | |_ `\|___ Email : [EMAIL PROTECTED] \:::\___/_\__\___\
Re: Switch off HTTP Server
Hi David, Comment out the HTTP Connector in Server.xml. regd Prakash On Wednesday 11 July 2001 16:57, you wrote: > Dear Tomcat Users > > I'm using tomcat together with apache. At the moment I can access via Port > 80 (Apache) and Port 8080 (Tomcat). Now I just want to answer http-request > with apache. How can I switch off the HTTP Server of tomcat? > > Many thanks > > Dave
Re: Application to Servlet communication
A number of folks recently posted similar questions ... I think things work better when you specify "application/x-java-serialized-object" as the content type of the data you are writing. In the code below, you're using "application/x-www-form-urlencoded", which definitely would not help. - Fernando Hi all! I'm trying to do some application/applet to servlet communication where I want to send an object to servlet. My application code: URL testServlet = new URL("http://localhost:83/testApp/servlet/TestServlet";); URLConnection servletConnection = testServlet.openConnection (); // inform the connection that we will send output and accept input servletConnection.setDoInput(true); servletConnection.setDoOutput(true); // Don't use a cached version of URL connection. servletConnection.setUseCaches(false); servletConnection.setDefaultUseCaches(false); // Specify the content type that we will send binary data //servletConnection.setRequestProperty("Content-Type", "application/octet-stream"); servletConnection.setRequestProperty("Content-Type", "application/x-www-form-urlencoded"); // send the student object to the servlet using serialization ObjectOutputStream outputToServlet = new ObjectOutputStream(servletConnection.getOutputStream()); // serialize the object outputToServlet.writeObject(new HelloObject(message)); outputToServlet.flush(); outputToServlet.close(); results in Http10Interceptor: SocketException reading request, ignored message on tomcat 3.3m4. Any idea what I'm doing wrong ? Any help will be appreciated. Best regards, Kovi
Apache & Tomcat
Dear Tomcat users I have the two following problems -I have configured apache to use tomcat as servlet/jsp engine. when I access the shop pages through apache (port 80) sometimes the url (either the one displayed in location field of browser or only one of the frames) gets changed from the ip to localhost. example: if i request http://192.168.1.11/eshop , then the url switches to localhost/eshop and since on localhost no server is running, we get an error message. -and for the tomcat-apache.conf created by tomcat: if the webapps resides outside the normal tomcat webapp dir (eg. tomcat in app\tomcat and the shop in \data\shop) the tomcat-apache.conf is not created correct (local path of eshop context is a concatenation of the tomcat webapp dir and the eshop webapp dir). Can anybody help me? Many thanks DAVE
RE: Application to Servlet communication
Please add InputStream in = servletConnection.getInputStream(); after you have closed your output stream. It will work. HTH, Shuklix -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 11, 2001 5:26 PM To: [EMAIL PROTECTED] Subject: Re: Application to Servlet communication A number of folks recently posted similar questions ... I think things work better when you specify "application/x-java-serialized-object" as the content type of the data you are writing. In the code below, you're using "application/x-www-form-urlencoded", which definitely would not help. - Fernando Hi all! I'm trying to do some application/applet to servlet communication where I want to send an object to servlet. My application code: URL testServlet = new URL("http://localhost:83/testApp/servlet/TestServlet";); URLConnection servletConnection = testServlet.openConnection (); // inform the connection that we will send output and accept input servletConnection.setDoInput(true); servletConnection.setDoOutput(true); // Don't use a cached version of URL connection. servletConnection.setUseCaches(false); servletConnection.setDefaultUseCaches(false); // Specify the content type that we will send binary data //servletConnection.setRequestProperty("Content-Type", "application/octet-stream"); servletConnection.setRequestProperty("Content-Type", "application/x-www-form-urlencoded"); // send the student object to the servlet using serialization ObjectOutputStream outputToServlet = new ObjectOutputStream(servletConnection.getOutputStream()); // serialize the object outputToServlet.writeObject(new HelloObject(message)); outputToServlet.flush(); outputToServlet.close(); results in Http10Interceptor: SocketException reading request, ignored message on tomcat 3.3m4. Any idea what I'm doing wrong ? Any help will be appreciated. Best regards, Kovi
Re: help me with IIS+tomcat
I guess everything was just fine, only that I was not aware to the fact that updating the uriworkermap.properties requires to restart the whole www service so that changes will take place... Thanks for your help! David. - Original Message - From: "Randy Layman" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, July 11, 2001 1:06 PM Subject: RE: help me with IIS+tomcat > > What makes you think that these are errors? The isapi_redirect.dll > is the resource that IIS will request, its in the right directory, and I > believe that 200 is the SUCCESS status code. You indicate that the pages > are showing up correctly, so what's the problem? > > You can't see other applications because you haven't told the > redirector that you want to see them - you need to edit the > uriworkermap.properties file, just like the HOWTO says. > > Randy > > > -Original Message- > > From: David Treves [mailto:[EMAIL PROTECTED]] > > Sent: Wednesday, July 11, 2001 7:09 AM > > To: [EMAIL PROTECTED] > > Subject: Re: help me with IIS+tomcat > > > > > > Hello, > > > > I tried to follow that link to do exactly what they instruct > > to do, yet I > > keep getting these errors every time I access the examples > > application. Note > > that I see the requested pages and it operates just fine, but > > I get the > > following errors anyway. I would like to add that I cannot see other > > applications besides the examples one. > > > > The errors: > > 10:19:58 192.114.206.189 GET /jakarta/isapi_redirect.dll 200 > > 10:19:58 192.114.206.189 GET /jakarta/isapi_redirect.dll 200 > > 10:19:58 192.114.206.189 GET /jakarta/isapi_redirect.dll 200 > > 10:19:58 192.114.206.189 GET /jakarta/isapi_redirect.dll 200 > > > > I work on win2000 with 3.2.2 version of Tomcat. > > > > Can anyone link me to a relevant resource or advice me about it? > > > > Thanks! > > David. > > > > - Original Message - > > From: "Manjunath BHat" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Wednesday, July 11, 2001 10:54 AM > > Subject: RE: help me with IIS+tomcat > > > > > > > Hi, > > > > > > try following, > > > http://www.verysimple.com/scripts/support_tc_iis.html > > > I followed it its working fine with me > > > > > > Good Luck > > > > > > Manjunath > > > > > > > > > > > > >From: Chris Thompson <[EMAIL PROTECTED]> > > > >Reply-To: [EMAIL PROTECTED] > > > >To: "'[EMAIL PROTECTED]'" > > <[EMAIL PROTECTED]> > > > >Subject: RE: help me with IIS+tomcat > > > >Date: Wed, 11 Jul 2001 08:44:27 +0100 > > > > > > > >Morning all, > > > > > > > >another little pointer which does not appear in the > > documents is the fact > > > >that the config files for Tomcat are formatted by a UNIX > > text editor. We > > > >installed everything, added the redirector and got a red > > arrow until we > > > >re-formatted the config files for Windows. > > > > > > > >We opened each file in WinBatch and Notepad then copied > > the WinBatch copy > > > >over the Notepad copy and saved (WinBatch recognises UNIX > > formatting). > > > >There > > > >is a way of doing this with vi if you have access but > > recall the exact > > > >command for this. > > > > > > > >Hope this helps > > > >Chris > > > > > > > >-Original Message- > > > >From: albert [mailto:[EMAIL PROTECTED]] > > > >Sent: 11 July 2001 08:22 > > > >To: [EMAIL PROTECTED] > > > >Subject: help me with IIS+tomcat > > > > > > > > > > > >hi, me too > > > >I us Windows Prof 2000 > > > >and Tomcat 321 > > > >same problem, any help ? > > > > > > > >regards > > > >Albert Oscarina > > > >System Specialist > > > >Solution Made Pocketable > > > >http://www.SMPdirect.com > > > >Phone : (65) 276 7624 > > > >Fax : (65) 274 4770 > > > >mail : [EMAIL PROTECTED] > > > > > > > >"If we have a strong reason, we will find the way" > > > >(Bits & Pieces, The Economics Press) > > > > > > > > > > > >-Original Message- > > > >From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > > > >Sent: Wednesday, July 11, 2001 3:17 PM > > > >To: [EMAIL PROTECTED] > > > >Subject: RE: help me with IIS+tomcat > > > > > > > > > > > > > > > >Hi, > > > > > > > >I have the same problem and i'm stuckany idea ? > > > > > > > >Thanks, > > > > > > > >Hervé. > > > > > > > > -Message d'origine- > > > > De: Ðì±ó [SMTP:[EMAIL PROTECTED]] > > > > Date: mercredi 11 juillet 2001 07:32 > > > > À: [EMAIL PROTECTED] > > > > Objet: help me with IIS+tomcat > > > > > > > > Hi, > > > > I have tried everything writen in "Tomcat IIS HowTo" > > but when I > > > >entered "http://bsd.com/examples/jsp/index.html"; (My win > > 2000 server's > > IIS > > > >web server's name is bsd.com), the browser always says a > > error of HTTP > > 404. > > > >I think the url is right because if I entered > > > >"http://bsd.com:8080/examples/jsp/index.html";, the browser > > can correctly > > > >display tomcat jsp examples page. The isapi filter is also > > loaded, the > > > >workers is setting right. I use Jbuilder4 and download > > tomcat 3.2.2 and >
RE: Configuring apache/tomcat with mod_jk on different hosts
This probably is a BUG with tomcat. It should not return 404, coz' the servlet is there. You will get the same message even if u call the servlet from normal java code and not applet. URL url = new URL("http://whatever.com/servlet/SomeServlet";) URLConnection huc = url.openConnection(); huc.setUseCaches(false); huc.setDoInput(true); // huc.setDoOutput(true); //OutputStream os = huc.getOutputStream(); InputStream is = huc.getInputStream(); This will work but if u uncomment the 2 lines above , it returns 404 Error. Perhaps it has something to do with the post method in the servlet, do u have a doPost method in the servlet ? Shuklix -Original Message- From: Deniz Demir [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 11, 2001 2:26 PM To: [EMAIL PROTECTED] Subject: URL socket connection to servlet Hi, I have replaced my apache-jserv server with apache-tomcat. In this case my applet cannot open URL socket connection to my servlet that loads the applet. The code in the applet is as follows: // Get the server URL String urlString = "http://"; + getDocumentBase().getHost() + "/servlet/LoginServlet"; java.net.URL url = new java.net.URL(urlString); System.out.println("- url: " + url.toString()); // Attempt to connect to the host java.net.URLConnection con = url.openConnection(); System.out.println("connection opened..."); And the error message from Java Console of Internet Explorer is as follows: ( www.yfas.com.tr:80//servlet/LoginServlet this address is shown in netscape as it is in the address bar, that is: www.yfas.com.tr/servlet/LoginServlet ) - url: http://www.yfas.com.tr/servlet/LoginServlet connection opened... java.io.FileNotFoundException: www.yfas.com.tr:80//servlet/LoginServlet at com/ms/net/wininet/http/HttpInputStream.connect at com/ms/net/wininet/http/HttpInputStream. at com/ms/net/wininet/http/HttpURLConnection.createInputStream at com/ms/net/wininet/WininetURLConnection.getInputStream at com/ms/net/wininet/http/HttpPostBufferStream.close at java/io/FilterOutputStream.close at LoginApplet.validateUser at LoginApplet.handleEvent at java/awt/Component.postEvent at java/awt/Component.postEvent at java/awt/Component.dispatchEventImpl at java/awt/Component.dispatchEvent at java/awt/EventDispatchThread.run is there any solution for this problem? Deniz...
. Help needed.
I am using tomcat 4.0 beta 5 on win NT and the problem is that when i make a change to a jsp page tomcat doesnt pick it up, i have tried to refresh the browser, shut down the start up again and nothing happens. The only thing i can do is resave the JSP as another name, which is really annoying. Any ideas on the situation?? Glen -- The Information contained in this E-Mail and any subsequent correspondence is private and is intended solely for the intended recipient(s). For those other than the recipient any disclosure, copying, distribution, or any action taken or omitted to be taken in reliance on such information is prohibited and may be unlawful.
Problems when importing a SSL certificate
Hi, I´ve got the Tomcat/SSL Howto from the jakarta Project webpage. In the last step of "Importing SSL certificates", i´ve got some trouble. The output of the command "keytool -import -v -trustcacerts -alias tomcat -file CERT.pem" was this: Enter keystore password: changeit keytool error: java.lang.Exception: Public keys in reply and keystore don't match What happened? How can I fix it? I hope you can help me... Thanks beforehands -- Antonio Terceiro <[EMAIL PROTECTED]> -- Bolsista do projeto SIDOC CPD/UFBA - Divisão de Projetos
RE: Application to Servlet communication
THANK YOU ! You are the best!! At 17:46 11.7.01 +0530, you wrote: >Please add > >InputStream in = servletConnection.getInputStream(); > >after you have closed your output stream. > >It will work. > >HTH, > >Shuklix > > >-Original Message- >From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] >Sent: Wednesday, July 11, 2001 5:26 PM >To: [EMAIL PROTECTED] >Subject: Re: Application to Servlet communication > > > >A number of folks recently posted similar questions ... >I think things work better when you specify >"application/x-java-serialized-object" as >the content type of the data you are writing. In the code below, you're >using >"application/x-www-form-urlencoded", which definitely would not help. > >- Fernando > > > >Hi all! > >I'm trying to do some application/applet to servlet communication where I >want to send an object to servlet. >My application code: > URL testServlet = new >URL("http://localhost:83/testApp/servlet/TestServlet";); > URLConnection servletConnection = testServlet.openConnection >(); > > // inform the connection that we will send output and accept >input > servletConnection.setDoInput(true); > servletConnection.setDoOutput(true); > > // Don't use a cached version of URL connection. > servletConnection.setUseCaches(false); > servletConnection.setDefaultUseCaches(false); > > // Specify the content type that we will send binary data > //servletConnection.setRequestProperty("Content-Type", >"application/octet-stream"); > servletConnection.setRequestProperty("Content-Type", >"application/x-www-form-urlencoded"); > > // send the student object to the servlet using serialization > ObjectOutputStream outputToServlet = new >ObjectOutputStream(servletConnection.getOutputStream()); > > // serialize the object > outputToServlet.writeObject(new HelloObject(message)); > > outputToServlet.flush(); > outputToServlet.close(); > >results in >Http10Interceptor: SocketException reading request, ignored >message on tomcat 3.3m4. > >Any idea what I'm doing wrong ? > >Any help will be appreciated. > >Best regards, >Kovi
. Reloading JSP's
I am using tomcat 4.0 beta 5 on win NT and the problem is that when i make a change to a jsp page tomcat doesnt pick it up, i have tried to refresh the browser, shut down the start up again and nothing happens. The only thing i can do is resave the JSP as another name, which is really annoying. Any ideas on the situation?? Glen -- The Information contained in this E-Mail and any subsequent correspondence is private and is intended solely for the intended recipient(s). For those other than the recipient any disclosure, copying, distribution, or any action taken or omitted to be taken in reliance on such information is prohibited and may be unlawful.
NT Service Problem for startup-servlet
Hi all, I make tomcat as NT service. Its working. but i created a startup servlet and also made changes in web.xml according to that. but when i started thru net service the startup servlet is not loaded, at the same i start Tomcat thru "startup" the startup-servlet is working and i am getting results. In startup servlet i instanciated Singleton objects, using Database tables of Oracle 8i and i am using jdbcOdbcDriver. whats the problem when i start thru service-applet? plese help me. thanks in advance Raheem _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
RE: pre-compilation of JSP
This is fragment from a message posted by Sopie several weeks ago that I've kept because it answers this very question: > > I am using the options: > > -uriroot /$TOMCAT_HOME/webapps/AppName > > -d /$TOMCAT_HOME/webapps/AppName/WEB-INF/classes > > to set the directory where the results of > > jspc should be placed > > -webxml/OWN_DIR/webAppName.xml > > -webapp/$TOMCAT_HOME/webapps/AppName > > to specify the directory that contains the jsp's > > > > I remove the jsp's after running jspc from > > /$TOMCAT_HOME/webapps/AppName. > > > > After running jspc, you should run javac to compile the > > generated java-files to > > class files. Looking at the differences, I would say that your webapp argument isn't correct. Randy > -Original Message- > From: Saritha Pula [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, July 10, 2001 3:37 PM > To: [EMAIL PROTECTED] > Subject: pre-compilation of JSP > > > hi all, > I am working on pre-compilation of JSP > But problem for me is when I type the following command > jspc -webxml c:\web.xml -uriroot c:\cosmo\jsp -webapp example.jsp > the above command automatically generates "web.xml" but with "no > contents in it" > Java file is "not generated" for the specified JSP > > it would be greatful if I can get some inputs on this > Pula > > -Original Message- > From: Randy Layman [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, July 10, 2001 9:50 AM > To: [EMAIL PROTECTED] > Subject: RE: using pre-compiled JSPs > > > > I like it for two reasons: > 1. Performance > 2. Don't need to distribute JavaC with the application > > The drawbacks as I see it: > 1. Recompiling the JSPs generally works better than updating > servlets for getting an update out while the server is running > 2. There isn't currently any good way of merging the generated > web.xml file with your web.xml file. (Making automated > builds relies on > inserting some special token to your web.xml file in order to do the > merge, > or requires building a process that reads your web.xml file, > knows where > the > other xml file goes, and performs the merge for you). > 3. It can be confusing for new developers who don't quite > understand that file.jsp is really being handled by a servlet > and that's > why > their changes to the file.jsp file are not seeming to take affect. > > Randy > > > > -Original Message- > > From: Eitan Ben-Noach [mailto:[EMAIL PROTECTED]] > > Sent: Tuesday, July 10, 2001 12:19 PM > > To: [EMAIL PROTECTED] > > Subject: using pre-compiled JSPs > > > > > > Hello, > > > > I would like to know whether pre-compiled JSPs is a > > conventional way for > > deploying JSPs at the customers sites? Are there any > > disadvantages with > > this approach? > > > > Thanks, > > > > Eitan Ben-Noach > > >
RE: . Reloading JSP's
> I am using tomcat 4.0 beta 5 on win NT and the problem is that when i > make a change to a jsp page tomcat doesnt pick it up, i have tried to > refresh the browser, shut down the start up again and nothing happens. > The only thing i can do is resave the JSP as another name, which is > really annoying. Any ideas on the situation?? Is your context set to be reloadable? --- Michael Wentzel Software Developer Software As We Think - http://www.aswethink.com
RE: Tomcat memory-leak problem
> Then i would like to know if there is a program to "clean up" > objects. Like a garbage collection on the system. Of course there is: it's Java. The JDK will garbage-collect released objects. The problem is, you aren't releasing them. You need to figure out _why_ you're caching them: is it on behalf of a specific user, or is it for all users of a servlet? If it's a specific user, you should save them as a session attribute, which will get released when the session times out; if it's for all users, save it on the servlet context, or in static memory. You might also want to look at the reference package in java.lang.ref for garbage-collectable object references. And, you should really figure out if you even _want_ to cache it: is it really worth a half a Gbyte of memory to just avoid reloading or recalculating whatever these objects are? -- Bill K. > -Original Message- > From: Bjarne Jørgensen [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, July 11, 2001 6:18 AM > To: [EMAIL PROTECTED] > Subject: Re: Tomcat memory-leak problem > > > Hi! > > Okay. Sounds okay. Because we have some "caching" servlets, > but the object > should be terminated after it has been used. > > Our server hosts 3 heavy-trafic sites, and you may be right > about the source > of the memory leak is from the servlet pages. > > Then i would like to know if there is a program to "clean up" > objects. Like > a garbage collection on the system. > > Thanks. > > > > - Original Message - > From: "Randy Layman" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Wednesday, July 11, 2001 1:13 PM > Subject: RE: Tomcat memory-leak problem > > > > It isn't Tomcat, and it isn't Tomcat on windows that is causing your > problem. I have a server, running NT 4 and has been running > it for close to > 2 months under moderate load, and haven't had any memory > leaks. I would look > at your web applications and find the place where you are > holding on to > memory. I guarantee that it is your application and not Tomcat. > > Randy > > -Original Message- > From: Sam Newman [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, July 11, 2001 5:32 AM > To: [EMAIL PROTECTED] > Subject: Re: Tomcat memory-leak problem > > > I too have been having some problems with Tomcat + memory. I > put it down to > me running win98 and win98 not properly being able to address > memory over > 128MB. I normally have dreamweaver, netbeans and tomcat running, and > reguarly run out of memory (I have 384MB Ram). I haven't noticed any > similar problems running tomcat on linux (with a lower spec machine). > Windows does have memory management issues however, and it > might be the way > tomcat threads means it causes problems with memory on win32 > platforms. I > downloaded Tweakall in the end, as this comes with a niffty > utility which > can free leaked memory. > > sam > - Original Message - > From: BJ > To: [EMAIL PROTECTED] > Sent: Wednesday, July 11, 2001 9:50 AM > Subject: Tomcat memory-leak problem > > > Hi! > > I'm using apache, tomcat jakarta 3.2.1, jdk1.2.2 on a linux > 6.2 and a MS SQL > server on a Nt4 with sp 6a. > > Having some trouble with memory-leak. After the server has > been running for > a couple of days, it has eaten up all 512MB of RAM. It is a > server with some > customers on and it handles about 1000 visitors a day. We use > JSP pages and > servlets to show webpages. Servlets primary for showing > images from database > or generating menues... > > So... what shall i do? It doesnt help to restart tomcat. I > need to reboot > the server and start tomcat all over before we can get in > contact with the > sites again. > > > Thanks in adv. > /)-._ >Y. ' _] Greetings > ,.._ |`--"= Bjarne Jørgensen / Bigf00t >/"-/ `.\ > /) | |_ `\|___ Email : [EMAIL PROTECTED] > \:::\___/_\__\___\ >
System.out is getting me nuts
Hi, just switched over from jserv to jomcat. tomcat (3.2.2) is running and by using mod_jk.so (build from source) integrated into apache. So far so good. We have alot of own classes that are perfoming some "debugging" output to stderr and stdout. The documentation is talking about worker.properties to set the logfile names for the specified worker (ajp12 in this case). But this is not working. I have copied workers.properties to worker.properties and modified the following : worker.list=ajp12 worker.ajp12.port=8007 worker.ajp12.host=localhost worker.ajp12.type=ajp12 worker.ajp12.stdout=$(workers.tomcat_home)$(ps)ajp12.stdout worker.ajp12.stderr=$(workers.tomcat_home)$(ps)ajp12.stderr *gr* Am I working in the correct file or do I have to specify it somewhere else _help_ please this is really making me mad Regards Michael
Re: . Reloading JSP's
I think this is a known bug on win32 only. I can't remember where I read about it though, probably this mailing list. Try a nightly build instead. Cheers, Matt - Original Message - From: Michael Wentzel <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, July 11, 2001 2:25 PM Subject: RE: . Reloading JSP's > > I am using tomcat 4.0 beta 5 on win NT and the problem is that when i > > make a change to a jsp page tomcat doesnt pick it up, i have tried to > > refresh the browser, shut down the start up again and nothing happens. > > The only thing i can do is resave the JSP as another name, which is > > really annoying. Any ideas on the situation?? > > Is your context set to be reloadable? > > > --- > Michael Wentzel > Software Developer > Software As We Think - http://www.aswethink.com >
RE: Tomcat problems on Solaris
> Tomcat terminates when the user who starts tomcat logs off > the server. man nohup. -- Bill K. > -Original Message- > From: Neil Anderson [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, July 11, 2001 3:57 AM > To: [EMAIL PROTECTED] > Subject: Tomcat problems on Solaris > > > Hi, > > I am having problems getting tomcat 3.2.2 to work on a > Solaris server with > apache 1.3.20. There is a couple of issues that I am not sure > if they are > related. Any help would be appreciated. > > The first problem is that tomcat logs the stdout and stderr > to the user who > starts the service. I have set the wrapper.properties to > > wrapper.stdout=$(wrapper.tomcat_home)/logs/jvm.stdout > wrapper.stderr=$(wrapper.tomcat_home)/logs/jvm.stderr > > Tomcat terminates when the user who starts tomcat logs off > the server. I > start tomcat as the www user eg > > su - www -c "/usr/local/jakarta-tomcat-3.2.2/bin/tomcat.sh start" > > Despite this tomcat logs to the users consol who runs this command. > > I am also getting errors coming out in the mod_jk.log which > are as follows. > > [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 146 > [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1 > [jk_uri_worker_map.c (335)]: > jk_uri_worker_map_t::uri_worker_map_close, NULL > parameter > [jk_uri_worker_map.c (185)]: In > jk_uri_worker_map_t::uri_worker_map_free, > NULL parameters > > Are these errors related. > > Any help in resolving these issues would be appreciated. > > Regards > Neil > >
Tomcat 4.0b5 keeps shutting down
I am running Tomcat 4.0b5 in standalone mode on a Sun Solaris 8 system, running the latest patches and the currest Sun Java 1.3.1. Tomcat starts up ok, and will run for the better part of a day of testing, however the next morning, when I get up, the system is down again. Not sure if it's because I log out of the system or what it is. I have the following error I believe assuming the catalina.out file is written to the top instead of the end of the file: Starting service Tomcat-Standalone Apache Tomcat/4.0-b5 SIGSEGV 11* segmentation violation si_signo [11]: SIGSEGV 11* segmentation violation si_errno [0]: Error 0 si_code [1]: SEGV_MAPERR [addr: 0x28] stackpointer=FFBED230 Exiting Thread (sys_thread_t:0xff363df0) : no stack Exiting Thread (sys_thread_t:0x4191a0) : no stack "Finalizer" (TID:0x13b604, sys_thread_t:0x13b548, state:CW, thread_t: t@6, threadID:0xfecb1d78, stack_bottom:0xfecb2000, stack_size:0x2) prio=8 [1] java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:106) [2] java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:128) [3] java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:175) --- "Reference Handler" (TID:0x149a94, sys_thread_t:0x1499d8, state:CW, thread_t: t@5, threadID:0xfece1d78, stack_bottom:0xfece2000, stack_size:0x2) prio=10 [1] java.lang.Object.wait(Object.java:424) [2] java.lang.ref.Reference$ReferenceHandler.run(Reference.java:107) --- "Signal dispatcher" (TID:0x139284, sys_thread_t:0x1391c8, state:MW, thread_t: t@4, threadID:0xfed41d78, stack_bottom:0xfed42000, stack_size:0x2) prio=10 --- "main" (TID:0x385c4, sys_thread_t:0x38508, state:R, thread_t: t@1, threadID:0x25118, stack_bottom:0xffbf, stack_size:0x2) prio=5 *current thread* [1] org.apache.catalina.loader.StandardLoader.start(StandardLoader.java:586) [2] org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1092) [3] org.apache.catalina.core.StandardContext.start(StandardContext.java:3155) [4] org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1092) [5] org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1092) [6] org.apache.catalina.core.StandardEngine.start(StandardEngine.java:278) [7] org.apache.catalina.core.StandardService.start(StandardService.java:341) [8] org.apache.catalina.core.StandardServer.start(StandardServer.java:447) [9] org.apache.catalina.startup.Catalina.start(Catalina.java:725) [10] org.apache.catalina.startup.Catalina.execute(Catalina.java:647) [11] org.apache.catalina.startup.Catalina.process(Catalina.java:177) [12] java.lang.reflect.Method.invoke(Native Method) [13] org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:114) --- Any help would be appreciated as I need this working full time. Thanks. JR __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/
mapping question
Hi there, I am trying to make servlet mapping working for my apache+tomcat on Solaris 8. I need to map some time /myfile.html to a servlet com.corp.servlet.LightWeightUiServlet. I add the following tags to $TOMCAT_HOME/conf/web.xml. myservlet com.corp.servlet.LightWeightUiServlet 5 myservlet /myfile.html All my class files are installed under $TOMCAT_HOME/classes and $TOMCAT_HOME/lib It did not for me. I got the 404 error. The request is logged as an error in apache and is never dispatched to servlet. Then I addes a line in mod_jk.conf-auto JkMount /myfile.html ajp12 and restart apache. This time the request was send to servlet but got a error "Ctx( ): 404 R( + /myfile.html + null) null" I have no clue what to do next. Would somebody give me some advice? Thanks, Feng
RE: . Reloading JSP's
Hi, Check if it's really Tomcat's fault. By default html send to browser is cacheable, so when you reload you get the old one from local cache. Try response.setHeader("pragma","no-cache") and response.setHeader("cache-control","no-store") at the top of your .jsps, that will/should prevent browsers and proxies from caching. Afaik Tomcat automatically reloads .jsp, reloadable is only for servlets. Greetings, deacon Marcus > -Original Message- > From: Drinkwater Glen [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, July 11, 2001 2:33 PM > To: '[EMAIL PROTECTED]' > Subject: . Reloading JSP's > > > I am using tomcat 4.0 beta 5 on win NT and the problem is that when i > make a change to a jsp page tomcat doesnt pick it up, i have tried to > refresh the browser, shut down the start up again and nothing happens. > The only thing i can do is resave the JSP as another name, which is > really annoying. Any ideas on the situation?? > > Glen > > > > -- > The Information contained in this E-Mail and any subsequent correspondence > is private and is intended solely for the intended recipient(s). > For those other than the recipient any disclosure, copying, distribution, > or any action taken or omitted to be taken in reliance on such > information is > prohibited and may be unlawful.
java/linux/tomcat configuration problem
I installed jdk 1.3.1 on my linux box to support tomcat, and set the PATH variable accordingly. However, now the instances of my server don't start up and java hangs. (The TOP command shows that java is consuming 97% of my CPU!!!). Has anybody seen this behaviour before? If so, what is the remedy? Thanks! Dan _ Get your FREE download of MSN Explorer at http://explorer.msn.com
Re: mapping question
My apache is 1.3.14. My tomcat is 3.2.2. Feng Xia wrote: > Hi there, > > I am trying to make servlet mapping working for my apache+tomcat on > Solaris 8. I need to map some time /myfile.html to a servlet > com.corp.servlet.LightWeightUiServlet. I add the following tags to > $TOMCAT_HOME/conf/web.xml. > > > myservlet > > > > > com.corp.servlet.LightWeightUiServlet > > > 5 > > > > myservlet > > > /myfile.html > > > > All my class files are installed under $TOMCAT_HOME/classes and > $TOMCAT_HOME/lib > > It did not for me. I got the 404 error. The request is logged as an > error in apache and is never dispatched to servlet. Then I addes a line > in mod_jk.conf-auto > > JkMount /myfile.html ajp12 > > and restart apache. This time the request was send to servlet but got a > error "Ctx( ): 404 R( + /myfile.html + null) null" > > I have no clue what to do next. Would somebody give me some advice? > > Thanks, > Feng
Killing endless loop servlet - howto ? killing JVM or unload class ?
Hi all, I'm rolling out a successful Tomcat instalation in a shared environment ( it's a great software ! ). But I have a concern. I created a servlet that loops forever ( a very stupid one, by the way ). When I executed it, it allocates a Tomcat thread and it just runs forever. If I try to kill it after it consumed, let's say, 30 seconds of processing, it ended up killing the whole JVM. First, I don't know if it's killing a thread is the right approach. Should I do that, without shutdown Tomcat ? Is there a way to set a 'time-out' for a Servlet ? What I can do in this situation ? Is there an Interceptor that can unload this class somehow ? Thanks in advance Renato - Brazil P.S. I'm running Linux, kernel 2.4.3, Tomcat 3.2.2Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year!http://personal.mail.yahoo.com/
"Last-Modified" header set in servlet responds as installation date of Apache.
Hi all, When calling a servlet in Tomcat via Apache, the "Last-Modified" header is always set to the same time. The time set is EXACTLY the same as the installation date of Apache (coincident?). While calling the servlet directly in Tomcat, the "Last-Modified" header is set as done in the MyServlet.doGet() method with for example: 1 - response.setDateHeader( "Last-Modified", 0L ); 2 - response.setHeader( "Last-Modified", "Thu Jan 01 01:00:00 GMT 1970" ); 3 - overriding MyServlet.getLastModified() with: return 0L; Above methods tried, al worked fine in a direct call to Tomcat. While using none off the above, Apache/Tomcat or Tomcat both didn't return a "Last-Modified" header ( as they should be :) ). Below this page I've included an example of my request-response outcomes. This is really annoying. Needless to say, I can't use the "If-Modified-Since" Request header to determine if I've to recreate the response content or send a 304 (Not Modified) status. Anybody any ideas? Regards Manolito. . . . . . . . / RESPONSE/REQUEST EXAMPLE ***/ For the Apache/Tomcat I used http://localhost:80 and for direct Tomcat is used http://localhost:8080 Using the following Request header: GET /servlet/getImage?id={715EF564-2B45-11D5-9AF4-080009EEFA50} HTTP/1.1 Accept: */* Accept-Language: nl,en-us;q=0.5 Accept-Encoding: gzip, deflate User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0) Host: localhost:80 Connection: Keep-Alive The Response header from calling directly at Tomcat is: HTTP/1.0 200 OK Content-Type: image/gif Content-Disposition: inline; filename="ic_map_description_40.gif";creation-date="Wed, 7 Feb 2001 16:29:51 GMT"; Last-Modified: Thu, 01 Jan 1970 00:00:00 GMT Servlet-Engine: Tomcat Web Server/3.2.2 (JSP 1.1; Servlet 2.2; Java 1.2.2; Windows NT 5.0 x86; java.vendor=Sun Microsystems Inc.) ** Notice the Last-Modified field, it's OK The Response header from Apache/Tomcat is: HTTP/1.1 200 OK Date: Wed, 11 Jul 2001 14:27:37 GMT Server: Apache/1.3.20 (Win32) mod_jk Content-Disposition: inline; filename="ic_map_description_40.gif";creation-date="Wed, 7 Feb 2001 16:29:51 GMT"; Last-Modified: Tue, 10 Jul 2001 08:29:49 GMT Servlet-Engine: Tomcat Web Server/3.2.2 (JSP 1.1; Servlet 2.2; Java 1.2.2; Windows NT 5.0 x86; java.vendor=Sun Microsystems Inc.) Keep-Alive: timeout=15, max=100 Connection: Keep-Alive Transfer-Encoding: chunked Content-Type: image/gif ** Notice the Last-Modified field, it's my installation date of Apache
java-linux-tomcat configuration problem
I installed jdk 1.3.1 on my linux box to support tomcat, and set the PATH variable accordingly. However, now the instances of my server don't start up and java hangs. (The TOP command shows that java is consuming 97% of my CPU!!!). Has anybody seen this behaviour before? If so, what is the remedy? Thanks! Dan _ Get your FREE download of MSN Explorer at http://explorer.msn.com
Re: Application to Servlet communication
What is the significance of adding the line ? >>>InputStream in = servletConnection.getInputStream(); What difference does it makes? Venky Gregor Kovaè wrote: > THANK YOU ! > > You are the best!! > > At 17:46 11.7.01 +0530, you wrote: > > >Please add > > > >InputStream in = servletConnection.getInputStream(); > > > >after you have closed your output stream. > > > >It will work. > > > >HTH, > > > >Shuklix > > > > > >-Original Message- > >From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > >Sent: Wednesday, July 11, 2001 5:26 PM > >To: [EMAIL PROTECTED] > >Subject: Re: Application to Servlet communication > > > > > > > >A number of folks recently posted similar questions ... > >I think things work better when you specify > >"application/x-java-serialized-object" as > >the content type of the data you are writing. In the code below, you're > >using > >"application/x-www-form-urlencoded", which definitely would not help. > > > >- Fernando > > > > > > > >Hi all! > > > >I'm trying to do some application/applet to servlet communication where I > >want to send an object to servlet. > >My application code: > > URL testServlet = new > >URL("http://localhost:83/testApp/servlet/TestServlet";); > > URLConnection servletConnection = testServlet.openConnection > >(); > > > > // inform the connection that we will send output and accept > >input > > servletConnection.setDoInput(true); > > servletConnection.setDoOutput(true); > > > > // Don't use a cached version of URL connection. > > servletConnection.setUseCaches(false); > > servletConnection.setDefaultUseCaches(false); > > > > // Specify the content type that we will send binary data > > //servletConnection.setRequestProperty("Content-Type", > >"application/octet-stream"); > > servletConnection.setRequestProperty("Content-Type", > >"application/x-www-form-urlencoded"); > > > > // send the student object to the servlet using serialization > > ObjectOutputStream outputToServlet = new > >ObjectOutputStream(servletConnection.getOutputStream()); > > > > // serialize the object > > outputToServlet.writeObject(new HelloObject(message)); > > > > outputToServlet.flush(); > > outputToServlet.close(); > > > >results in > >Http10Interceptor: SocketException reading request, ignored > >message on tomcat 3.3m4. > > > >Any idea what I'm doing wrong ? > > > >Any help will be appreciated. > > > >Best regards, > >Kovi
There is no disk in the drive!
When I run my web application using Tomcat as a service under windows 2000 (Tomcat 3.1.1) I'm running into a strange message. My app runs an eternal .cmd file to populate some directories. One of the lines in the cmd file is xcopy InitialProject\*.* Projects\%1 /E This works fine when Tomcat is not a service, but when it is a service, the server machine twice puts up a message box with: "There is no disk in the drive. Please insert a disk in the drive \Device\Harddisk\DR1." If I hit "Continue" it goes on to work just fine. If I put in two xcopy statements the message comes up four times, so it seems to be a result of the two xcopy arguments. Changing the argument paths to explicit paths doesn't help. E.g., xcopy C:\Tomcat\XXX\InitialProject\*.* C:\Tomcat\XXX\Projects\%1 /E Other commands (e.g., mkdir) don't seem to have any problem. Any idea how to fix this? Thanks, Frank Lawlor Athens Group, Inc. (512) 345-0600 x151 Athens Group, an employee-owned consulting firm integrating technology strategy and software solutions.
Re: Problems when importing a SSL certificate
Assuming your using Tomcat standalone, make sure your key store pass word and your key pass word are the same. Yes, which means you can store one key in your keystore. I ran into this little hitch myself. I wasn't able to get tomcat standalone to work ssl any way though. If you do let me know how you did it. At 05:25 AM 7/11/2001, you wrote: >Hi, > > I´ve got the Tomcat/SSL Howto from the jakarta Project webpage. In the >last step of "Importing SSL certificates", i´ve got some trouble. The >output of the command "keytool -import -v -trustcacerts -alias tomcat >-file CERT.pem" was this: > >Enter keystore password: changeit >keytool error: java.lang.Exception: Public keys in reply and keystore >don't match > > >What happened? How can I fix it? > >I hope you can help me... > >Thanks beforehands >-- >Antonio Terceiro ><[EMAIL PROTECTED]> >-- >Bolsista do projeto SIDOC >CPD/UFBA - Divisão de Projetos
recursive JkMount
I have some users that I'm adding mount points for, and have made the following additions: to server.xml: and to tomcat.apache: Alias /bcameron/ "/home/bcameron/public_html" Options Indexes FollowSymLinks JkMount /bcameron/servlet/* ajp12 JkMount /bcameron/*.jsp ajp12 Now, tomcat will serve any files in /home/bcameron/public_html, but not any directory below that (i.e., when trying to goto myserver.com/bcameron/foo/, apache returns a 404, even though I clicked in the link in the directory listing of /bcameron/. I assume it is because the JkMount only actually mounts the public_html directory, and not all the dirs beneath it. Is that the case, and if so, how do I tell it to respond to eveything, because there are a lot of subdirectories, and I'm not going to JkMount every one of them :-) Any help is appreciated, and I'm probably missing something stupid, but my brain is fried after days of fighting to get tomcat up and working in the first place :-( TIA, D.A.Bishop
mod_jk.log messages
I asked this last week and did not receive a reply, but I am unable to find documentation on these errors. Can anyone help? [jk_ajp13_worker.c (325)]: Error ajp13_process_callback - write failed [jk_ajp13_worker.c (325)]: Error ajp13_process_callback - write failed [jk_ajp13_worker.c (325)]: Error ajp13_process_callback - write failed [jk_ajp13_worker.c (325)]: Error ajp13_process_callback - write failed [jk_ajp13_worker.c (325)]: Error ajp13_process_callback - write failed [jk_ajp13_worker.c (325)]: Error ajp13_process_callback - write failed [jk_ajp13_worker.c (325)]: Error ajp13_process_callback - write failed without timestamps in this log, I can't really tell you how often it happens, but we're noticing slowdowns and weird behavior on our sites and we're wondering if this is the culprit. What causes this message and what does it mean? Thank you very much. Thanks, Fran
RE: Tomcat 4.0b5 keeps shutting down
doesn't look like a tomcat problem. VM bug? -Original Message- From: Jakarta Jakarta [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 11, 2001 7:32 AM To: [EMAIL PROTECTED] Subject: Tomcat 4.0b5 keeps shutting down I am running Tomcat 4.0b5 in standalone mode on a Sun Solaris 8 system, running the latest patches and the currest Sun Java 1.3.1. Tomcat starts up ok, and will run for the better part of a day of testing, however the next morning, when I get up, the system is down again. Not sure if it's because I log out of the system or what it is. I have the following error I believe assuming the catalina.out file is written to the top instead of the end of the file: Starting service Tomcat-Standalone Apache Tomcat/4.0-b5 SIGSEGV 11* segmentation violation si_signo [11]: SIGSEGV 11* segmentation violation si_errno [0]: Error 0 si_code [1]: SEGV_MAPERR [addr: 0x28] stackpointer=FFBED230 Exiting Thread (sys_thread_t:0xff363df0) : no stack Exiting Thread (sys_thread_t:0x4191a0) : no stack "Finalizer" (TID:0x13b604, sys_thread_t:0x13b548, state:CW, thread_t: t@6, threadID:0xfecb1d78, stack_bottom:0xfecb2000, stack_size:0x2) prio=8 [1] java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:106) [2] java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:128) [3] java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:175) --- "Reference Handler" (TID:0x149a94, sys_thread_t:0x1499d8, state:CW, thread_t: t@5, threadID:0xfece1d78, stack_bottom:0xfece2000, stack_size:0x2) prio=10 [1] java.lang.Object.wait(Object.java:424) [2] java.lang.ref.Reference$ReferenceHandler.run(Reference.java:107) --- "Signal dispatcher" (TID:0x139284, sys_thread_t:0x1391c8, state:MW, thread_t: t@4, threadID:0xfed41d78, stack_bottom:0xfed42000, stack_size:0x2) prio=10 --- "main" (TID:0x385c4, sys_thread_t:0x38508, state:R, thread_t: t@1, threadID:0x25118, stack_bottom:0xffbf, stack_size:0x2) prio=5 *current thread* [1] org.apache.catalina.loader.StandardLoader.start(StandardLoader.java:586) [2] org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1092) [3] org.apache.catalina.core.StandardContext.start(StandardContext.java:3155) [4] org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1092) [5] org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1092) [6] org.apache.catalina.core.StandardEngine.start(StandardEngine.java:278) [7] org.apache.catalina.core.StandardService.start(StandardService.java:341) [8] org.apache.catalina.core.StandardServer.start(StandardServer.java:447) [9] org.apache.catalina.startup.Catalina.start(Catalina.java:725) [10] org.apache.catalina.startup.Catalina.execute(Catalina.java:647) [11] org.apache.catalina.startup.Catalina.process(Catalina.java:177) [12] java.lang.reflect.Method.invoke(Native Method) [13] org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:114) --- Any help would be appreciated as I need this working full time. Thanks. JR __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/ *** 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. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. ***
Error in Tomcat/Apache, help!
Hi, Kind of a repost, I never heard anything back from the original post... I cannot get Apache and Tomcat to work together with servlets... static pages are fine, but I get an internal server error when I try to access one of the examples/servlets/ servlets. The error message from mod_jk.log is this: [jk_ajp12_worker.c (503)]: ajp12_handle_response, error reading header line What the heck is this? What did I do wrong? How do I fix it? If more info is needed, let me know what and Ill post it. Thanks! Bryan Summary installation log: On a Redhat 6.2 box: Apache 1.3.20 compiled with OpenSSL 0.9.6b and MM 1.1.3. Tomcat 3.2.2 Compiled and installed compiled and installed mod_jk.so added "include /mod_jk.conf-auto" to httpd.conf (did not change it) http & https check out fine tomcat checks out fine apache can serve static pages fine from tomcat no servlets work...
RE: . Reloading JSP's
> Try response.setHeader("pragma","no-cache") and > response.setHeader("cache-control","no-store") at the top of > your .jsps, > that will/should prevent browsers and proxies from caching. This would not be a preferred production solution to the problem unless it is absolutely necessary since this is going to remove caching of static objects, such as images, and would reduce performance on the client-side, but it is a option for debugging purposes. --- Michael Wentzel Software Developer Software As We Think - http://www.aswethink.com
Re: java-linux-tomcat configuration problem
Hi, Can you include a copy of ps x command output and top please? Also, who's jdk ru using? Sun's or blackdown? This sounds very strange as I upgraded on mandrake fine. You might wanna recheck the path variable and make sure that the new java is at the beginning of the path var, else if u also point across an older version it will use that. Adam. On Wednesday 11 July 2001 15:03, you wrote: > I installed jdk 1.3.1 on my linux box to support tomcat, and set the PATH > variable accordingly. However, now the instances of my server don't start > up and java hangs. (The TOP command shows that java is consuming 97% of my > CPU!!!). Has anybody seen this behaviour before? If so, what is the > remedy? > > Thanks! > Dan > _ > Get your FREE download of MSN Explorer at http://explorer.msn.com
Re: Tomcat problems on Solaris
Hi, Doesn't look like mod_jk is built / configured correctly. Try re-building it (check http://willow.cc.edu/adminguide for builds) Adam. On Wednesday 11 July 2001 10:56, you wrote: > Hi, > > I am having problems getting tomcat 3.2.2 to work on a Solaris server with > apache 1.3.20. There is a couple of issues that I am not sure if they are > related. Any help would be appreciated. > > The first problem is that tomcat logs the stdout and stderr to the user who > starts the service. I have set the wrapper.properties to > > wrapper.stdout=$(wrapper.tomcat_home)/logs/jvm.stdout > wrapper.stderr=$(wrapper.tomcat_home)/logs/jvm.stderr > > Tomcat terminates when the user who starts tomcat logs off the server. I > start tomcat as the www user eg > > su - www -c "/usr/local/jakarta-tomcat-3.2.2/bin/tomcat.sh start" > > Despite this tomcat logs to the users consol who runs this command. > > I am also getting errors coming out in the mod_jk.log which are as follows. > > [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 146 > [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1 > [jk_uri_worker_map.c (335)]: jk_uri_worker_map_t::uri_worker_map_close, > NULL parameter > [jk_uri_worker_map.c (185)]: In jk_uri_worker_map_t::uri_worker_map_free, > NULL parameters > > Are these errors related. > > Any help in resolving these issues would be appreciated. > > Regards > Neil
Re: java-linux-tomcat configuration problem
What linux distribution do you have? Redhat 7.1? andrew On Wed, 11 Jul 2001, you wrote: > I installed jdk 1.3.1 on my linux box to support tomcat, and set the PATH > variable accordingly. However, now the instances of my server don't start > up and java hangs. (The TOP command shows that java is consuming 97% of my > CPU!!!). Has anybody seen this behaviour before? If so, what is the > remedy? > > Thanks! > Dan > _ > Get your FREE download of MSN Explorer at http://explorer.msn.com -- === Andrew Robson 2/1 723 Pollokshaws Road Glasgow G41 2AA Tel: (0141) 424 0607 Mobile: 07759 430234
Re: There is no disk in the drive!
Hi, It could be trying to get a lock on a used file. No idea how to fix it though 8o) Adam. On Wednesday 11 July 2001 15:16, you wrote: > When I run my web application using Tomcat as a service > under windows 2000 (Tomcat 3.1.1) I'm running into a strange > message. > > My app runs an eternal .cmd file to populate some > directories. One of the lines in the cmd file is > xcopy InitialProject\*.* Projects\%1 /E > > This works fine when Tomcat is not a service, but when it > is a service, the server machine twice puts up a message > box with: > > "There is no disk in the drive. Please insert a disk in the > drive \Device\Harddisk\DR1." > > If I hit "Continue" it goes on to work just fine. > > If I put in two xcopy statements the message comes up > four times, so it seems to be a result of the two xcopy > arguments. > > Changing the argument paths to explicit paths doesn't > help. E.g., > xcopy C:\Tomcat\XXX\InitialProject\*.* C:\Tomcat\XXX\Projects\%1 /E > > Other commands (e.g., mkdir) don't seem to have any > problem. > > Any idea how to fix this? > > Thanks, > > Frank Lawlor > Athens Group, Inc. > (512) 345-0600 x151 > Athens Group, an employee-owned consulting firm integrating technology > strategy and software solutions.
Embedding Tomcat3.2.1 in my application : Repeat message! : pl help!!!
Hi All, Has anybody embedded tomcat 3.2.1 in their application successfully? The code EmbededTomcat.java that ships with 3.2.1 doesnt seem to be working correctly (and there doesnt seem to be a stop method as well). I tried using their other class org.apache.tomcat.startup.Tomcat. I have 2 problems with that! 1. The class is not instantiable and their main method masks all exceptions 2. Stop calls system.exit which knocks off my application as well. Are there work arounds? If anybody has done it , let me know. Thanx Ganesh
Unable to open http://localhost/examples/
Setup NT 4.0 SP5, IIS. I've checked everything several times, following the iss how-to directions, but I'm unable to find my problem. Web server running, yes Regedit entries made and checked for spelling errors, yes Virtual directory jakarta set to allow execute, pointing to e:\sub...\isapi_redirect.dll, yes Green arrow after restart of services, yes Tomcat running, yes URL: http://localhost/examples/jsp/index.html HTTP Error 404 If I run http://localhost:8080/examples/jsp/index.html gets me to the page. I've looked in the Troubleshooting in the docs without any luck. Any ideas would be great. Thanks, Greg
Re: Problem running 3.2
This is not the ideal, but try this: ln -s /usr/lib/libstdc++-3-libc6.2-2-2.10.0.so /usr/lib/libstdc++-libc6.1-1.so.2 It worked for me. Renato. William Dunning <[EMAIL PROTECTED]> wrote: I've installed Jakarta Tomcat 3.2.2 and the Sun JDK 1.3.1 on an Intel box running Debian Linux (latest version). When I try to run ./bin/Startup.sh it reports that it can't find jdk1.3.1/bin/i386/native_threads/java libstdc++-libc6.1-1.so.2What gives? Apparently it can't find a library it's looking for in the file 'java'. The file exists.Help? Anyone?-- William DunningEnvision, Inc.30600 Telegraph Road, Suite 1160Bingham Farms, MI 48025800-841-4044 voice888-301-4044 FAX[EMAIL PROTECTED]http://www.envision-inc.comDo You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year!http://personal.mail.yahoo.com/
Help with using getRequestURL()
Is anyone familiar with the method getRequestURL() of the HttpServeltRequest interface? I am trying to use it, but the compiler object to the method. By the way, this method is previously of javax.servlet.http.HttpUtils, which has been deprecated. Thanks in advance, Tia
RE: . Reloading JSP's
Hi, > -Original Message- > From: Michael Wentzel [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, July 11, 2001 5:31 PM > To: '[EMAIL PROTECTED]' > Subject: RE: . Reloading JSP's > > > > Try response.setHeader("pragma","no-cache") and > > response.setHeader("cache-control","no-store") at the top of > > your .jsps, > > that will/should prevent browsers and proxies from caching. > > This would not be a preferred production solution to the problem > unless it is absolutely necessary since this is going to remove > caching of static objects, such as images, and would reduce > performance on the client-side, but it is a option for debugging > purposes. > > --- > Michael Wentzel > Software Developer > Software As We Think - http://www.aswethink.com It's file-specific. If you use it with a .jsp, ed gifs are still cached for example. And yes, it is necessary since you wouldn't want your scripts getting called once a week for a specified client, would you ? ;> Greetings, deacon Marcus
Problem: Servlet Mappings & RequestDispatcher
Re problem B. I found that after some re-directions Tomat ContextManager seemed to be messing up the context path (see "Please explain this Context"). You can tell if this is happening by having the ContextManager log its mappings: in Server.xml. It is either a bug or some strange semantics I don't understand. I worked around it by doing a sendRedirect with an explicit path rather than forward. Frank Lawlor Athens Group, Inc. (512) 345-0600 x151 Athens Group, an employee-owned consulting firm integrating technology strategy and software solutions.
Help with using getRequestURL()
Is anyone familiar with the method getRequestURL() of the HttpServeltRequest interface? I am trying to use it, but the compiler object to the method. By the way, this method is previously of javax.servlet.http.HttpUtils, which has been deprecated. Thanks in advance, Tia
RE: Tomcat problems on Solaris
I'm looking for some builds for the mod_jk for HP-UX. The link below is not bringing up the page. Do we have another location to look at? thanks -Original Message- From: Adam Fowler [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 11, 2001 12:41 PM To: [EMAIL PROTECTED] Subject: Re: Tomcat problems on Solaris Hi, Doesn't look like mod_jk is built / configured correctly. Try re-building it (check http://willow.cc.edu/adminguide for builds) Adam. On Wednesday 11 July 2001 10:56, you wrote: > Hi, > > I am having problems getting tomcat 3.2.2 to work on a Solaris server with > apache 1.3.20. There is a couple of issues that I am not sure if they are > related. Any help would be appreciated. > > The first problem is that tomcat logs the stdout and stderr to the user who > starts the service. I have set the wrapper.properties to > > wrapper.stdout=$(wrapper.tomcat_home)/logs/jvm.stdout > wrapper.stderr=$(wrapper.tomcat_home)/logs/jvm.stderr > > Tomcat terminates when the user who starts tomcat logs off the server. I > start tomcat as the www user eg > > su - www -c "/usr/local/jakarta-tomcat-3.2.2/bin/tomcat.sh start" > > Despite this tomcat logs to the users consol who runs this command. > > I am also getting errors coming out in the mod_jk.log which are as follows. > > [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 146 > [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1 > [jk_uri_worker_map.c (335)]: jk_uri_worker_map_t::uri_worker_map_close, > NULL parameter > [jk_uri_worker_map.c (185)]: In jk_uri_worker_map_t::uri_worker_map_free, > NULL parameters > > Are these errors related. > > Any help in resolving these issues would be appreciated. > > Regards > Neil
Re: There is no disk in the drive!
At 10:48 AM 7/11/2001, you wrote: >Hi, > >It could be trying to get a lock on a used file. > >No idea how to fix it though 8o) Whatever it is it's a pretty poor design flaw. Sometimes these programs get over it if you simply put a disk in the drive. Or if you know what file its looking for create an empty file of the same name on a floppy and stick that in the drive.
Mail Delivery Status Notification
MAIL ESSENTIALS SENDER NOTIFICATION The following message: TO: [EMAIL PROTECTED] FROM:[EMAIL PROTECTED] DATE: Wed, 11 Jul 2001 09:56:25 -0700 Subject: Embedding Tomcat3.2.1 in my application : Repeat message! : pl help!!! has been quarantined by Mail Essentials for the following reason(s): Subject contains word(s)/phrase(s) '!!!' Mail essentials Hi All, Has anybody embedded tomcat 3.2.1 in their application successfully? The code EmbededTomcat.java that ships with 3.2.1 doesnt seem to be working correctly (and there doesnt seem to be a stop method as well). I tried using their other class org.apache.tomcat.startup.Tomcat. I have 2 problems with that! 1. The class is not instantiable and their main method masks all exceptions 2. Stop calls system.exit which knocks off my application as well. Are there work arounds? If anybody has done it , let me know. Thanx Ganesh
RE: There is no disk in the drive!
See below for article Q102418 from the Microsoft Knowledge Base (http://search.support.microsoft.com/kb/). Maybe you've got a drive in your PATH that XCOPY is having trouble with? One guess is that it's using the System Account when running from Tomcat as a service, but your account when running from the Command Prompt. This might explain the difference in behavior that you're seeing. Either fix the PATH and/or take a look at the "Log On As" option of the "Startup" dialog for the service. You might be able to start the service as a different user and fix the problem as well. Jay CAUSE This problem occurs when the PATH statement in the AUTOEXEC.BAT file, Windows NT System Environment Variables, or User Environment Variables for references a floppy disk drive or CD-ROM drive. If you reference a floppy disk or CD-ROM drive in the AUTOEXEC.BAT, Windows NT 4.0 does not display the error when you log on but will display the error when you run applications such as EDIT.COM, WRITE.EXE or NOTEPAD.EXE. RESOLUTION To work around this problem, either have a disk in the drive or remove the entry from the PATH statement. The drive letter may not be entered in the PATH statement, but will be found in the following registry location: HKEY_LOCAL_MACHINE\SYSTEM\SETUP\WinntPath Delete it here and log back in. MORE INFORMATION When a user logs into his or her account, Windows NT searches for an AUTOEXEC.BAT file in the root directory of drive C. If the file is found, NTVDM.EXE appends its PATH environment variable to the system PATH environment variable. Only the VDM PATH variable is affected. NTVDM tests the PATH statement for validity. If the drive physically exits, NTVDM tests or the drive type (removable media or fixed). If the drive is a floppy disk or CD-ROM, it tests for the presence of valid media. If none is found, the error message is displayed. If invalid drives are used in the AUTOEXEC.BAT PATH statement, no error message is displayed, but the PATH variable in any VDMs that are opened will be invalid. The same message may also be displayed if you try to start an application such as NOTEPAD.EXE in Program Manager by choosing Run from the File menu. -Original Message- From: Adam Fowler [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 11, 2001 12:48 PM To: [EMAIL PROTECTED] Subject: Re: There is no disk in the drive! Hi, It could be trying to get a lock on a used file. No idea how to fix it though 8o) Adam. On Wednesday 11 July 2001 15:16, you wrote: > When I run my web application using Tomcat as a service > under windows 2000 (Tomcat 3.1.1) I'm running into a strange > message. > > My app runs an eternal .cmd file to populate some > directories. One of the lines in the cmd file is > xcopy InitialProject\*.* Projects\%1 /E > > This works fine when Tomcat is not a service, but when it > is a service, the server machine twice puts up a message > box with: > > "There is no disk in the drive. Please insert a disk in the > drive \Device\Harddisk\DR1." > > If I hit "Continue" it goes on to work just fine. > > If I put in two xcopy statements the message comes up > four times, so it seems to be a result of the two xcopy > arguments. > > Changing the argument paths to explicit paths doesn't > help. E.g., > xcopy C:\Tomcat\XXX\InitialProject\*.* C:\Tomcat\XXX\Projects\%1 /E > > Other commands (e.g., mkdir) don't seem to have any > problem. > > Any idea how to fix this? > > Thanks, > > Frank Lawlor > Athens Group, Inc. > (512) 345-0600 x151 > Athens Group, an employee-owned consulting firm integrating technology > strategy and software solutions. -- Jay Burgess Delano Technology Corporation mailto:[EMAIL PROTECTED] (913) 438-9444 x154
JVM coredump when accessing admin page
I had an unrelated networking issue that caused me to have to reboot my (RH6.2 Linux) server this AM - but that's the only thing that's changed since yesterday. Yesterday, I couldn't get the admin page to accept my "admin" username and password. Today, it took them (no change to the tomcat-user file), but gave me a 500 with a friendly "Must make the admin context trusted" msg on the page. So, I edited server.xml, changed trusted=false to true in the admin context. Tried the page again, same result, so I shutdown tomcat and then started it again. Then I refreshed the page and got a huge core dump of the JVM. I put it at http://jeromio.com/tomcat/coredumponadmin.txt if anyone is interested in the details. I started tomcat again (waited a few minutes to make sure everything was up) and then hit the admin page again and got the exact same results. I am running java 1.2.2 installed from an RPM.
pageContext.forward()
Hi all, recently, I changed serveral pages of my site and removed all the response.sendRedirect() with pageContext.forward()the problem is that now some of the pages are not working anymore, even if the pages themselves have no pageContext.forward(), somehow the pageContext.forward() on some of the pages affect other jsp pages as well. before, page1 has some FORM values, and then sumbit to page2 and page2 use request.getParameter() to get the corresponding form values.before it was fine..but now, some pages constantly getting null values...if i change pageContext.forward() on other pages back to sendRedirect()...it will work again... I'm using Tomcat3.2, so I'm not sure if it's because it's a bug of tomcat3.2 or what? anybody have met this problem before? thanks..
Embeded Tomcat help
Can anyone help me with EmbededTomcat. I have tried to implement it according to the comments in the source code to no avail. I have scoured the archives, but I di not find any solutions. Your assistance would be appreciated. Thanks, Thomas Dunnigan Leveraged Technology Inc. Solutions Architect [EMAIL PROTECTED] (732)855-1955 Ext. 1513
Re: Unable to open http://localhost/examples/
Hi, There's one (at least) of the config files - think I may be workers.properties - that needs to be changed for a windoze machine - it has / instead of \. Have a look through them and make sure. Also make sure you have a default context set up. Adam.
RE: There is no disk in the drive!
1.) Open the folder on your hard drive (InitialProject). 2.) Right click your mouse in the folder. 3.) Select "New" Text Document 4.) Name the Document "swa" (no extension) 5.) If prompted to change the filename extension click "YES" If this works, let me know. thanks Darrell Porter Operations Manager WiseConnect, Inc www.wiseconnect.com -Original Message- From: Frank Lawlor [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 11, 2001 8:17 AM To: Tomcat (E-mail) Subject: There is no disk in the drive! When I run my web application using Tomcat as a service under windows 2000 (Tomcat 3.1.1) I'm running into a strange message. My app runs an eternal .cmd file to populate some directories. One of the lines in the cmd file is xcopy InitialProject\*.* Projects\%1 /E This works fine when Tomcat is not a service, but when it is a service, the server machine twice puts up a message box with: "There is no disk in the drive. Please insert a disk in the drive \Device\Harddisk\DR1." If I hit "Continue" it goes on to work just fine. If I put in two xcopy statements the message comes up four times, so it seems to be a result of the two xcopy arguments. Changing the argument paths to explicit paths doesn't help. E.g., xcopy C:\Tomcat\XXX\InitialProject\*.* C:\Tomcat\XXX\Projects\%1 /E Other commands (e.g., mkdir) don't seem to have any problem. Any idea how to fix this? Thanks, Frank Lawlor Athens Group, Inc. (512) 345-0600 x151 Athens Group, an employee-owned consulting firm integrating technology strategy and software solutions.
Simple startup question.
All: Linux 7.1 Redhat, tomcat 3.2.2. Question: With the ajp13 working correctly tomcat should start from within the S85httpd start script and shutdown accordingly ? D.
Images don't display
Hi all, The site loads with at browser but the images don't show. The images are stored off Marketing in Images. When I load this from localhost:8080/Marketing/index.jsp it works, but not from localhost/Marketing/index.jsp. Any ideas? Thanks for the look. Greg
Re: . Reloading JSP's
Just confirming that this is a known bug with the win32 version. I believe using a recent nightly build fixes this problem. Bill Pfeiffer - Original Message - From: "Drinkwater Glen" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, July 11, 2001 8:32 AM Subject: . Reloading JSP's > I am using tomcat 4.0 beta 5 on win NT and the problem is that when i > make a change to a jsp page tomcat doesnt pick it up, i have tried to > refresh the browser, shut down the start up again and nothing happens. > The only thing i can do is resave the JSP as another name, which is > really annoying. Any ideas on the situation?? > > Glen > > > > -- > The Information contained in this E-Mail and any subsequent correspondence > is private and is intended solely for the intended recipient(s). > For those other than the recipient any disclosure, copying, distribution, > or any action taken or omitted to be taken in reliance on such information is > prohibited and may be unlawful.
RE: pre-compilation of JSP
hi Thanks for ur input .. Command should be the following jspc -webxml c:\web.xml -webapp %tomcat_home%\webapps\AppName test.jsp I shouls give file name following webapp directory ,should not include in path like -webapp %tomcat_home%\webapps\AppName\test.jsp Now I am able to compile my jsp and mapping is done in webxml appropriately ..,it's not necessary to delete jsp files as mapping is available in web.xml thanks for your reply Pula -Original Message- From: Randy Layman [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 11, 2001 3:54 AM To: [EMAIL PROTECTED] Subject: RE: pre-compilation of JSP This is fragment from a message posted by Sopie several weeks ago that I've kept because it answers this very question: > > I am using the options: > > -uriroot /$TOMCAT_HOME/webapps/AppName > > -d /$TOMCAT_HOME/webapps/AppName/WEB-INF/classes > > to set the directory where the results of > > jspc should be placed > > -webxml/OWN_DIR/webAppName.xml > > -webapp/$TOMCAT_HOME/webapps/AppName > > to specify the directory that contains the jsp's > > > > I remove the jsp's after running jspc from > > /$TOMCAT_HOME/webapps/AppName. > > > > After running jspc, you should run javac to compile the > > generated java-files to > > class files. Looking at the differences, I would say that your webapp argument isn't correct. Randy > -Original Message- > From: Saritha Pula [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, July 10, 2001 3:37 PM > To: [EMAIL PROTECTED] > Subject: pre-compilation of JSP > > > hi all, > I am working on pre-compilation of JSP > But problem for me is when I type the following command > jspc -webxml c:\web.xml -uriroot c:\cosmo\jsp -webapp example.jsp > the above command automatically generates "web.xml" but with "no > contents in it" > Java file is "not generated" for the specified JSP > > it would be greatful if I can get some inputs on this > Pula > > -Original Message- > From: Randy Layman [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, July 10, 2001 9:50 AM > To: [EMAIL PROTECTED] > Subject: RE: using pre-compiled JSPs > > > > I like it for two reasons: > 1. Performance > 2. Don't need to distribute JavaC with the application > > The drawbacks as I see it: > 1. Recompiling the JSPs generally works better than updating > servlets for getting an update out while the server is running > 2. There isn't currently any good way of merging the generated > web.xml file with your web.xml file. (Making automated > builds relies on > inserting some special token to your web.xml file in order to do the > merge, > or requires building a process that reads your web.xml file, > knows where > the > other xml file goes, and performs the merge for you). > 3. It can be confusing for new developers who don't quite > understand that file.jsp is really being handled by a servlet > and that's > why > their changes to the file.jsp file are not seeming to take affect. > > Randy > > > > -Original Message- > > From: Eitan Ben-Noach [mailto:[EMAIL PROTECTED]] > > Sent: Tuesday, July 10, 2001 12:19 PM > > To: [EMAIL PROTECTED] > > Subject: using pre-compiled JSPs > > > > > > Hello, > > > > I would like to know whether pre-compiled JSPs is a > > conventional way for > > deploying JSPs at the customers sites? Are there any > > disadvantages with > > this approach? > > > > Thanks, > > > > Eitan Ben-Noach > > >
foriegn characters turn to ? in database
Hey All, We are accepting form submissions from users all over the world. The foriegn characters end up in Sybase looking like a ?. Does someone know how to deal with this? Regards, Bryan Original Message Follows From: Stefanos Karasavvidis <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: getServletContext() throws NullPoinetException Date: Tue, 10 Jul 2001 17:46:04 +0300 I've just installed tomcat 3.2.2 and have the following problem. I want to call getServletContext() from a servlets service method but get the folowing exception *Internal Servlet Error:* java.lang.NullPointerException at javax.servlet.GenericServlet.getServletContext(GenericServlet.java:205) at TestServlet.service(TestServlet.java:32) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405) at org.apache.tomcat.core.Handler.service(Handler.java:287) 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.connector.Ajp12ConnectionHandler.processConnection(Ajp12ConnectionHandler.java:166) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501) at java.lang.Thread.run(Thread.java:484) Moreover the getServletConfig() returns null which is probably the main reason for this problem Any ideas?? Stefanos _ Get your FREE download of MSN Explorer at http://explorer.msn.com
RE: Problem: Servlet Mappings & RequestDispatcher
workDir is directory created in tomcat_home where all intermediate files will be place for example like java files generated from JSP .. context tag in server.xml is to create our own web application directories.. Hope this info. helps u Pula -Original Message- From: Frank Lawlor [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 11, 2001 10:47 AM To: Tomcat (E-mail) Subject: Problem: Servlet Mappings & RequestDispatcher Re problem B. I found that after some re-directions Tomat ContextManager seemed to be messing up the context path (see "Please explain this Context"). You can tell if this is happening by having the ContextManager log its mappings: in Server.xml. It is either a bug or some strange semantics I don't understand. I worked around it by doing a sendRedirect with an explicit path rather than forward. Frank Lawlor Athens Group, Inc. (512) 345-0600 x151 Athens Group, an employee-owned consulting firm integrating technology strategy and software solutions.
compilation
Does anyone know of the configuration file that I will have to edit to allow for the compilation of jsp's automatically when sent to Tomcat I know there is one setting that is defaulted to "false" but I can't remember which config file that it's in. I had changed this setting so that someone couldn't automatically drop files into my root directory from "outside" and execute them as webapps. Anyway, I am getting the following error and I believe that the change that I made to the above setting is involved. org.apache.jasper.JasperException: Unable to compile class for JSP C:\Tomcat\work\localhost_8080%2Fedocket\_0002fTMP_00034dbapzhtjx_0002ejspTMP 4dbapzhtjx_jsp_0.java:62: ')' expected. if (session.getValue(MM_AddressID !=null) {Address__svAddress = (String)session.getValue(MM_AddressID;} ^ C:\Tomcat\work\localhost_8080%2Fedocket\_0002fTMP_00034dbapzhtjx_0002ejspTMP 4dbapzhtjx_jsp_0.java:62: ')' expected. if (session.getValue(MM_AddressID !=null) {Address__svAddress = (String)session.getValue(MM_AddressID;} Regards, dave
Re: can run tomcat on linux & servlets but not jsp's
You should not put your webapps classes in the system classpath. Tomcat startup script builds classpath dynamically based on content of $TOMCAT_HOME/lib, etc. Unset you CLASSPATH and try to start tomcat. Should help. - Boris > >Hi: > >I am trying to run Tomcat on Linux 2.2. I have been able to run Tomcat with >JRE1.2, but not been able to run any of the example jsp's (i have been able >to run the servlets). > > >I think i've set the CLASSPATH properly >(TOMCAT_HOME/webapps/example/WEB-INF/classes, TOMCAT_HOME/src). Again, no >good. > >Do I need to upgrade my java? If so, which? I believe that TOMCAT_HOME and >JAVA_HOME have been set properly. > >Thanks >Dan >_ >Get your FREE download of MSN Explorer at http://explorer.msn.com >
RE: Help with using getRequestURL()
Assuming you mean the "getRequestURI()" (not "URL") method of "HttpServletRequest" (not "Servelt"),... What exactly is the compiler complaining about? What's the error it's producing? -- Bill K. > -Original Message- > From: Tia Haenni [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, July 11, 2001 11:21 AM > To: Tomcat Mailing List > Subject: Help with using getRequestURL() > > > Is anyone familiar with the method getRequestURL() of the > HttpServeltRequest > interface? I am trying to use it, but the compiler object to > the method. By > the way, this method is previously of > javax.servlet.http.HttpUtils, which > has been deprecated. Thanks in advance, > > Tia >
Re: Tomcat memory-leak problem
You should probably look at your code for possible memoey leaks: not closed db objects (statements, result sets, connections) not closed file descriptors, etc. - Boris > >Hi! > >I'm using apache, tomcat jakarta 3.2.1, jdk1.2.2 on a linux 6.2 and a MS SQL server on a Nt4 with sp 6a. > >Having some trouble with memory-leak. After the server has been running for a couple of days, it has eaten up all 512MB of RAM. It is a server with some customers on and it handles about 1000 visitors a day. We use JSP pages and servlets to show webpages. Servlets primary for showing images from database or generating menues... > >So... what shall i do? It doesnt help to restart tomcat. I need to reboot the server and start tomcat all over before we can get in contact with the sites again. > > >Thanks in adv. >/)-._ > Y. ' _] Greetings >,.._ |`--"= Bjarne Jørgensen / Bigf00t > /"-/ `.\ > /) | |_ `\|___ Email : [EMAIL PROTECTED] > \:::\___/_\__\___\
Re: Tomcat problems on Solaris
Hi, Well the page seems to be working. You can try http://users.aber.ac.uk/tomcat/tomcat-3.2/ though 8o) Haven't got any for HP-UX. The build instructions are all pretty standard though. I'll check to see if they are up, if not then I'll e-mail you when they are. OK? If in the meantime you get hold of a copy for HP-UX then I'd love to mirror it! Adam. On Wednesday 11 July 2001 18:27, you wrote: > I'm looking for some builds for the mod_jk for HP-UX. The link below is > not bringing up the page. Do we have another location to look at? > > thanks > > -Original Message- > From: Adam Fowler [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, July 11, 2001 12:41 PM > To: [EMAIL PROTECTED] > Subject: Re: Tomcat problems on Solaris > > > Hi, > > Doesn't look like mod_jk is built / configured correctly. Try re-building > it > > (check http://willow.cc.edu/adminguide for builds) > > Adam. > > On Wednesday 11 July 2001 10:56, you wrote: > > Hi, > > > > I am having problems getting tomcat 3.2.2 to work on a Solaris server > > with apache 1.3.20. There is a couple of issues that I am not sure if > > they are related. Any help would be appreciated. > > > > The first problem is that tomcat logs the stdout and stderr to the user > > who > > > starts the service. I have set the wrapper.properties to > > > > wrapper.stdout=$(wrapper.tomcat_home)/logs/jvm.stdout > > wrapper.stderr=$(wrapper.tomcat_home)/logs/jvm.stderr > > > > Tomcat terminates when the user who starts tomcat logs off the server. I > > start tomcat as the www user eg > > > > su - www -c "/usr/local/jakarta-tomcat-3.2.2/bin/tomcat.sh start" > > > > Despite this tomcat logs to the users consol who runs this command. > > > > I am also getting errors coming out in the mod_jk.log which are as > > follows. > > > [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 146 > > [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1 > > [jk_uri_worker_map.c (335)]: jk_uri_worker_map_t::uri_worker_map_close, > > NULL parameter > > [jk_uri_worker_map.c (185)]: In jk_uri_worker_map_t::uri_worker_map_free, > > NULL parameters > > > > Are these errors related. > > > > Any help in resolving these issues would be appreciated. > > > > Regards > > Neil
RE: . Help needed.
There was a bug in one of the Tomcat 4 betas that caused this problem. It MAY have been the same beta 5 you're using. Check if there's a more recent version. -Original Message- From: Drinkwater Glen [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 11, 2001 5:25 AM To: '[EMAIL PROTECTED]' Subject: . Help needed. I am using tomcat 4.0 beta 5 on win NT and the problem is that when i make a change to a jsp page tomcat doesnt pick it up, i have tried to refresh the browser, shut down the start up again and nothing happens. The only thing i can do is resave the JSP as another name, which is really annoying. Any ideas on the situation?? Glen -- The Information contained in this E-Mail and any subsequent correspondence is private and is intended solely for the intended recipient(s). For those other than the recipient any disclosure, copying, distribution, or any action taken or omitted to be taken in reliance on such information is prohibited and may be unlawful.
Re: Problem
Ensure Tomcat can run from a command prompt IE tomcat start. Ensure all variables and classpaths are the same in your tomcat environment (tomcat env) will show the classpaths for that instance of tomcat. Those classpaths must be in wrapper.properties >From: "molu molu" <[EMAIL PROTECTED]> >Reply-To: [EMAIL PROTECTED] >To: [EMAIL PROTECTED] >Subject: Problem >Date: Sat, 07 Jul 2001 12:51:15 - > >Hi Dear > >My Problem about Tomcat for NT service, i make all the changes >needed , >and when i type this command (net start Tomcat) , where tomcat is >the >service name >this message appear >( The tomcat service could not be started > The service did not report an error ). > >So any help will be appreciated, and please i need it As soon As >possible. > >Best Regards >Mohammad Jamous > >_ >Get Your Private, Free E-mail from MSN Hotmail at >http://www.hotmail.com. > Get your FREE download of MSN Explorer at http://explorer.msn.com
ad!!!
__ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/
Re: NT Service Problem for startup-servlet
Compare the classpaths. Use Tomcat -env to view the complete classpath in that instance. Then modify the wrapper.properties and ensure all classpaths are correct. >From: "abdur raheem" <[EMAIL PROTECTED]> >Reply-To: [EMAIL PROTECTED] >To: [EMAIL PROTECTED] >Subject: NT Service Problem for startup-servlet >Date: Wed, 11 Jul 2001 13:02:36 - > >Hi all, >I make tomcat as NT service. Its working. >but i created a startup servlet and also made changes in web.xml >according to that. >but when i started thru net service the startup servlet is not >loaded, >at the same i start Tomcat thru "startup" the startup-servlet >is working and i am getting results. In startup servlet i >instanciated >Singleton objects, using Database tables of Oracle 8i and i am using >jdbcOdbcDriver. > >whats the problem when i start thru service-applet? >plese help me. >thanks in advance > >Raheem > > >_ >Get Your Private, Free E-mail from MSN Hotmail at >http://www.hotmail.com. > Get your FREE download of MSN Explorer at http://explorer.msn.com
Re: foriegn characters turn to ? in database
Bryan, does your database use foreign character sets? >From: "Bryan Murtha" <[EMAIL PROTECTED]> >Reply-To: [EMAIL PROTECTED] >To: [EMAIL PROTECTED] >Subject: foriegn characters turn to ? in database >Date: Wed, 11 Jul 2001 20:58:53 > >Hey All, > > > We are accepting form submissions from users all over the world. >The foriegn characters end up in Sybase looking like a ?. Does >someone >know how to deal with this? > >Regards, >Bryan > > >Original Message Follows >From: Stefanos Karasavvidis <[EMAIL PROTECTED]> >Reply-To: [EMAIL PROTECTED] >To: [EMAIL PROTECTED] >Subject: getServletContext() throws NullPoinetException >Date: Tue, 10 Jul 2001 17:46:04 +0300 > >I've just installed tomcat 3.2.2 and have the following problem. > >I want to call getServletContext() from a servlets service method >but >get the folowing exception >*Internal Servlet Error:* > >java.lang.NullPointerException > at >javax.servlet.GenericServlet.getServletContext(GenericServlet.java:205) > at TestServlet.service(TestServlet.java:32) > at >org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405) > at org.apache.tomcat.core.Handler.service(Handler.java:287) > 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.connector.Ajp12ConnectionHandler.processConnection(Ajp12ConnectionHandler.java:166) > at >org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) > at >org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501) > at java.lang.Thread.run(Thread.java:484) > > >Moreover the getServletConfig() returns null which is probably the >main >reason for this problem > >Any ideas?? > >Stefanos > > > >_ >Get your FREE download of MSN Explorer at http://explorer.msn.com > Get your FREE download of MSN Explorer at http://explorer.msn.com
Re: Hi Pete, help regarding running Tomcat with SSL
You might have a problem with NT. Verisign, for instance, does not support Mod_SSL. It only supports Apache-SSL. Apache-SSL only has a Unix implementaiton. SSL, by the way, is only supported by tomcat if you integrate it with Apache. >From: "Manjunath BHat" <[EMAIL PROTECTED]> >Reply-To: [EMAIL PROTECTED] >To: [EMAIL PROTECTED] >Subject: Hi Pete, help regarding running Tomcat with SSL >Date: Tue, 10 Jul 2001 16:17:32 +0530 > >Hi Pete, > >U've said that u r running Tomcat with SSL. R u using CA cert or >Self >signed cert. > >Please help me. My environment is NT+IIS+Tomcat > >Thanks in advance > >Manjunath >_ >Get Your Private, Free E-mail from MSN Hotmail at >http://www.hotmail.com. > Get your FREE download of MSN Explorer at http://explorer.msn.com
Re: Hi Pete, help regarding running Tomcat with SSL
Please excuse the error Manjunath & Pete, I see you're running IIS and not Apache. >From: "Manjunath BHat" <[EMAIL PROTECTED]> >Reply-To: [EMAIL PROTECTED] >To: [EMAIL PROTECTED] >Subject: Hi Pete, help regarding running Tomcat with SSL >Date: Tue, 10 Jul 2001 16:17:32 +0530 > >Hi Pete, > >U've said that u r running Tomcat with SSL. R u using CA cert or >Self >signed cert. > >Please help me. My environment is NT+IIS+Tomcat > >Thanks in advance > >Manjunath >_ >Get Your Private, Free E-mail from MSN Hotmail at >http://www.hotmail.com. > Get your FREE download of MSN Explorer at http://explorer.msn.com
RE: Installation of mod_jk.so at AIX 433
Are you using gcc or C for AIX / VisualAge? I'm using visualage 5.0, and needed to hack apxs thus: 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_LDFLAGS_SHLIB = q(-H512 -T512 -bhalt:4 -bM:SRE -bnoentry -bexpall -bI:/usr/local/apache/libexec/httpd.exp -lc); # substituted via Makefile.tmpl note: I'm not an apxs expert so most of these options probably depend on the options you built apache with. I've not tried gcc. Hope this helps, -- John > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, 11 July 2001 13:48 > To: [EMAIL PROTECTED] > Subject: Installation of mod_jk.so at AIX 433 > > > Hi! Greetings! > I really am having problems in installing mod_jk.so over my RS machine. I > always get errors in compilation.. And i need to install it at once.. Is > there anyone who could possible give me the exact procedure or > needed files > just to compile this into my machine? Please i need help on this.. It done > a couple of mixtures in the command at apxs. and i come up to error > such as rc=255, sometimes; rc=1 or 0... i guess , i have > ecncountered every > error.. and even the dlopen.c comlilation error... > There were some issues at the web that i have to place dlfcn.h > and dlopen.c > also.. so i did it... but i still cant compile the mod_so.c, can somebody > help me please.. > > Email me at once .. THANKS a lot in advance... > > Edmon Mendoza > RS6000 Systems Engineer > ISP Services Pte Ltd > Tel. no. 7888-681 > [EMAIL PROTECTED] > >
IIS and Tomcat 3.3
I have setup Tomcat to work with Apache and it is fine. I try to use IIS and it does not work. Does anyone have any suggestion? (The Registry entriesare 100% correct!) I have read the How-To many times trying to figure out where I am wrong. I have looked at the logs for any meaning. As far as I can see the ISAPI redircetor starts and picks up all the uri_worker_maps but then when I try to bwoser a Tomcat page through IIS it gives me a 404 error. Again I have looked at the ISAPI Redirector logs and it seems to pick up that it is a Servlet directory and sends the request to ajp12. But the ajp12 does not find the file. Here is an example for this request: http://localhost/examples/jsp/index.html -Ruairi ISAPI.log for the above request: [jk_isapi_plugin.c (408)]: HttpFilterProc started [jk_isapi_plugin.c (429)]: In HttpFilterProc test redirection of /examples/jsp/index.html [jk_uri_worker_map.c (345)]: Into jk_uri_worker_map_t::map_uri_to_worker [jk_uri_worker_map.c (407)]: jk_uri_worker_map_t::map_uri_to_worker, Found a match ajp12 [jk_isapi_plugin.c (439)]: HttpFilterProc [/examples/jsp/index.html] is a servlet url - should redirect to ajp12 [jk_isapi_plugin.c (461)]: HttpFilterProc check if [/examples/jsp/index.html] is points to the web-inf directory [jk_isapi_plugin.c (408)]: HttpFilterProc started [jk_isapi_plugin.c (429)]: In HttpFilterProc test redirection of /jakarta/isapi_redirect.dll [jk_uri_worker_map.c (345)]: Into jk_uri_worker_map_t::map_uri_to_worker [jk_uri_worker_map.c (435)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match [jk_isapi_plugin.c (452)]: HttpFilterProc [/jakarta/isapi_redirect.dll] is not a servlet url [jk_isapi_plugin.c (461)]: HttpFilterProc check if [/jakarta/isapi_redirect.dll] is points to the web-inf directory [jk_isapi_plugin.c (517)]: HttpExtensionProc started [jk_worker.c (123)]: Into wc_get_worker_for_name ajp12 [jk_worker.c (127)]: wc_get_worker_for_name, done found a worker [jk_isapi_plugin.c (539)]: HttpExtensionProc got a worker for name ajp12 [jk_ajp12_worker.c (223)]: Into jk_worker_t::get_endpoint [jk_ajp12_worker.c (121)]: Into jk_endpoint_t::service [jk_connect.c (108)]: Into jk_open_socket [jk_connect.c (115)]: jk_open_socket, try to connect socket = 2680 [jk_connect.c (124)]: jk_open_socket, after connect ret = 0 [jk_connect.c (132)]: jk_open_socket, set TCP_NODELAY to on [jk_connect.c (140)]: jk_open_socket, return, sd = 2680 [jk_ajp12_worker.c (134)]: In jk_endpoint_t::service, sd = 2680 [jk_ajp12_worker.c (357)]: Into ajpv12_handle_request [jk_ajp12_worker.c (361)]: ajpv12_handle_request, sending the ajp12 start sequence [jk_ajp12_worker.c (413)]: ajpv12_handle_request, sending the headers [jk_ajp12_worker.c (432)]: ajpv12_handle_request, sending the terminating mark [jk_ajp12_worker.c (477)]: ajpv12_handle_request done [jk_ajp12_worker.c (148)]: In jk_endpoint_t::service, sent request [jk_ajp12_worker.c (493)]: Into ajpv12_handle_response [jk_ajp12_worker.c (507)]: ajpv12_handle_response, read Status: 404 Not Found [jk_ajp12_worker.c (535)]: ajpv12_handle_response, read Status=404 Not Found [jk_ajp12_worker.c (507)]: ajpv12_handle_response, read Content-Type: text/html [jk_ajp12_worker.c (535)]: ajpv12_handle_response, read Content-Type=text/html [jk_ajp12_worker.c (547)]: ajpv12_handle_response, allocating header arrays [jk_ajp12_worker.c (507)]: ajpv12_handle_response, read Content-Length: 198 [jk_ajp12_worker.c (535)]: ajpv12_handle_response, read Content-Length=198 [jk_ajp12_worker.c (507)]: ajpv12_handle_response, read Servlet-Engine: Tomcat Web Server/3.3 Milestone 4 ( JSP 1.1; Servlet 2.2 ) [jk_ajp12_worker.c (535)]: ajpv12_handle_response, read Servlet-Engine=Tomcat Web Server/3.3 Milestone 4 ( JSP 1.1; Servlet 2.2 ) [jk_ajp12_worker.c (507)]: ajpv12_handle_response, read [jk_ajp12_worker.c (509)]: ajpv12_handle_response, headers are done [jk_ajp12_worker.c (568)]: ajpv12_handle_response, starting response [jk_isapi_plugin.c (201)]: Into jk_ws_service_t::start_response [jk_ajp12_worker.c (579)]: ajpv12_handle_response, reading response body [jk_isapi_plugin.c (335)]: Into jk_ws_service_t::write [jk_ajp12_worker.c (595)]: ajpv12_handle_response, response body is done [jk_ajp12_worker.c (607)]: ajpv12_handle_response done [jk_isapi_plugin.c (551)]: HttpExtensionProc service() returned OK [jk_ajp12_worker.c (163)]: Into jk_endpoint_t::done[jk_ajp12_worker.c (163)]: Into jk_endpoint_t::done _ ISAPI.log entry at start: [jk_uri_worker_map.c (156)]: Into jk_uri_worker_map_t::uri_worker_map_alloc [jk_uri_worker_map.c (196)]: Into jk_uri_worker_map_t::uri_worker_map_open [jk_uri_worker_map.c (211)]: jk_uri_worker_map_t::uri_worker_map_open, rule map size is 4 [jk_uri_worker_map.c (267)]: Into jk_uri_worker_map_t::uri_worker_map_open, match rule /servlet/=ajp12 was added [jk_uri_worker_map.c (267)]: Into jk_uri_worker_map_t::uri_worker_map_op
Changing the Page Executor Extension
Have any of you had success *changing* the '*.jsp' servlet mapping to something else? I have tried to change it to a different extension using or I've tried adding a second mapping. Nothing that I try will allow Tomcat to compile the file with an extension other than '.jsp' Is there a way to tell Tomcat which file extensions ought to be compiled/treated like actual JSP pages without having to recompile Tomcat? My hosting provider probably won't let me do that. Please advise if you have it in you, Philip Background: I want to have an entry servlet that intercepts every request to the web application and then routes that request to a JSP page. When I do this, I want to prevent the web user from guessing the file names on the server. .jsp is a pretty easy guess. Besides, I want to have .jsp mapped to my Entry servlet anyway. If all of the actual jsp pages on my server have the extension 'page.ghfpi832', that would be pretty hard to guess.
Re: Simple startup question.
No. Best to edit the script and add hooks to a tomcat script in /etc/rc.d/init.d I have one somewhere on http://willow.cc.edu/adminguide Its in the mod_jk files section, called a "mandrake startup script" but should work ok with redhat - just make sure the directories are correct. Hope that helps. Adam. On Wednesday 11 July 2001 20:24, you wrote: > All: > > Linux 7.1 Redhat, tomcat 3.2.2. > > Question: > > With the ajp13 working correctly tomcat should start from within the > S85httpd start script and shutdown accordingly ? > > D.