How to avoid load af a context at startup of Tomcat
Is there a way to tell Tomcat (Tomcat 4.1.18, RedHat Linux 7.0) not to load a context when it starts up? I would like to start only some of the applications that I have under my webapps directory, and to start the others manually with the manager application only if I really need them. Unfortunately I can not configure two different servers to manage separately those applications. All the webapps have an entry as a context in my server.xml file. I could not find anything in the documentation. Thanks, Marco.
Re:Reloading an application non-interactively
I agree ... On 13 Jan 2003 at 17:35, Q. Werty wrote: Try this : http://admin:password@localhost/manager/reload?path=/myapp Be aware : username and password can be catched on the wire and in log files ... It doesn't make a difference, whether the name and password are put into the URL or into the dialog box. The browser translates it into a proper HTTP authentication header. At least that's what I tested. And it makes sense that way. The only difference: third persons could get to know the name and password watching over the shoulder O O | --- Andreas All, I would like to reload an application non- interactively. I do not want to use Ant to do this because it will not be installed on my target system. Instead I'd rather use a URL. That is, I would like to be able to enter the username and password as parameters to the URL, not in the login dialog. It should look something like: http://localhost/manager/reload?path=/myapp;? username=admin?password= passwd Does anyone know how to do this? Or is there another way to reload something non-interactively (and not using Ant)? Thanks. Mary -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] Accédez au courrier électronique de La Poste : www.laposte.net ; 3615 LAPOSTENET (0,13 /mn) ; tél : 08 92 68 13 50 (0,34/mn) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Starting an .exe though out of a servlet
Hi, I will never use absolute Paths. This is a rule of myseilf because that makes my program dependent from the user... Is it possible that the current Path in the servlet is the Path where the servlet is placed in? Patrick [EMAIL PROTECTED] wrote: try using an absolute path. Also not that there is an output and error stream which you are not aquireing that may have more detailed information. -rickb -Original Message- From: Patrick Kosiol [mailto:[EMAIL PROTECTED]] Sent: Monday, January 13, 2003 10:58 AM To: Tomcat Users List Subject: Starting an .exe though out of a servlet Hi, I'm runnung TomCat 4.0.4 and I want to start an external .exe-File. My Code: String[] runString = {relativeDataPath + data.exe, parameter0, parameter1, parameter2, parameter3}; Process p = Runtime.getRuntime().exec(runString); System.out.println(runString); if(p.waitFor() == 0){ The 'data.exe'-File is placed in $CATALINA_HOME/webapps/ROOT/relativeDataPath so it should be no problem to access this File. The Number of Parameters etc. is OK. But I get the following Error-Message: java.io.IOException: CreateProcess: 'relativeDataPath'/bfpldata.exe parameter0 parameter1 parameter2 parameter3 error=3 Does someone know what 'error=3' mean? And how can I access this 'data.exe' and execute this File with the Parameters? The starting-routine seems to be correct. Thx Patrick -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: jsp versus xml syntax
The first snippet works if and only if your jsp file is entirely XML-formatted. That was not true in earlier versions of the JSP specification, and is explicitly changed in JSP v2.0. XML syntax in user author pages is only broken in the current JSP specification. --- Noel -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: jsp versus xml syntax
Do yourself a favor and skip learning the XML syntax. It's for tools, not people. Oh, I would argue that considerably. In fact I did. That is no longer true in JSP v2.0. It is absolutely an absurdity to treat jsp:action|custom-tag differently from jsp:expression|declaration|scriptlet|directive. It is also also ridiculous to require users to remember which obscure character (@%!=) means what behavior. That is the short version. The argument presented to Sun a year or so back was considerably longer. --- Noel -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: how do I reference a bean that's inside my jsp page?
I cannot imagine how that would work in any app server. A Java bean is it's own class that can be used by ... It works just fine in other JSP engines, e.g., GNUJSP. The example was just a self-contained example for introducing bean tags, and the specific use is limited to form handling where the bean is intended to have a 1:1 relationship with the HTML form. The documentation mentions that it is a limited application (you *must* use page scope because the bean cannot be used outside of that page, and any other scope would lead to classloader problems). --- Noel -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Work Around Ideas
I upgraded to Tomcat 3.x, but I seem to be experiencing a problem with one piece of application. I was wondering if anyone could help me brainstorm some ideas. In our application we had a requirement for a custom back button they way we have implemented it in the past was by stacking HttpServletRequest objects onto a java.util.Stack during a service() method of the servlet. When a back command came in we just poped the old HttpServletRequest out and ran that through instead. Now that HttpServletRequest implementation has changed the code no longer works since the request is no longer a stateful, stand-alone object. Any suggestions? try { Application code // Check for requests to traverse backwards on stack // StackItem si = null; StackItem sii = null; if (goBack.equals(request.getParameter(op)) { Stack stack = (Stack)m_storeService.get(requestContext, SESSION_SCOPE,Keys.BACK_STACK); if (stack != null) { try { // Phantom pop discards current page. If second // pop overruns stack, si is still set to current page! si = (StackItem)stack.pop(); sii = (StackItem)stack.pop(); si = sii; } catch (EmptyStackException esex) { // This changes flow, but need not be acted upon (see last note) } request = si.getRequest(); } } Use the resulting request instead... ... App Code ... } Thanks, Michael Shmays
RE: how do I reference a bean that's inside my jsp page?
Jeff, Thanks for reminding me. This is not the cleanest thing to do from a purist's perspective (which I mention in the tutorial), but it was a simple demonstration, and it works for form generation tools. More importantly, there is nothing in the JSP Specification that prohibits this behavior. Tomcat's current lack of support for it therefore appears to be a defect. Either they should fix it, or Sun should amend the specification. Tomcat is the Reference Implementation, so one or the other needs to be fixed. I keep forgetting to stick this in bugzilla. --- Noel -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: [OT] Question regarding payment processing
Denise, I haven't done Chase's gateway specifically, but I've done some others. What's problems are you having? One issue I encountered in the past is that some of the gateway mechanisms will do a callback to one of your pages. The catch is that you want to be able to re-associate the session, but you won't get a session cookie. In the past, I was able to do that by explicit URL rewriting. I haven't tried it with recent versions of tomcat, but I should still have an example of that technique around here somewhere. --- Noel -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
How to configure mod_ssl on rh 7.1 running tomcat
HI, Last weekend I was able to make apache 1.3.19 and tomcat 4.1.18 communicate over ajp 13. Now I was wondering if I can use mod_ssl to access apache. FYI: when I type https://192.168.132.34/examples/servlets I get page not found. Can anyone help me on this? Can I know which file do I need to edit httpd.conf, mod_jk.conf or server.xml. I can access https:// for other one of the web service but not tomcat application server/ Can sometell me what ssl version is running on rh 7.x by default apache ssl, mod_ssl and if apache ssl is running how to disable it and run mod_ssl only. Thanks in advance. Vivek Singh Wipro Technologies Survey No 64, Madhapur, Serilingampally Mandal, Hyderabad- 500 033. India Tel:+91-40-6565000 Extn:5513, 5467 Direct : 6565467, 6565513 **Disclaimer Information contained in this E-MAIL being proprietary to Wipro Limited is 'privileged' and 'confidential' and intended for use only by the individual or entity to which it is addressed. You are notified that any use, copying or dissemination of the information contained in the E-MAIL in any manner whatsoever is strictly prohibited. *** -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
TOMCAT - MEMORY PROBLEM
Hi all, I have installed tomcat4.1.12 / Apache 1.3.27 with JDK 1.3.04 in Linux I have 1GB RAM...when I start the server and check the memory usage it shows 100MB use so balance 900MB is there but day by day the memory consumption is increasing and after 5 days I saw 550MB used when I checked the processes using ps -aux command I found lot of jdk1.3 processes and it keeps on increasingMy assumption is jdk processes are not getting released.how this can be solved ... is there any explicit way to release unwanted processes...why this happens details below 5:25pm up 5 days, 3:41, 3 users, load average: 0.00, 0.00, 0.00 123 processes: 122 sleeping, 1 running, 0 zombie, 0 stopped CPU states: 0.3% user, 0.1% system, 0.0% nice, 3.0% idle Mem: 1028864K av, 434108K used, 594756K free, 48K shrd, 91604K buff Swap: 2096472K av, 0K used, 2096472K free 163456K cached USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 9651 0.0 10.2 278088 105460? SJan10 0:01/usr/local/jdk1.3 THANKS IN ADVANCE FOR HELP Laxmikanth * Disclaimer: The information in this e-mail and any attachments is confidential / privileged. It is intended solely for the addressee or addressees. If you are not the addressee indicated in this message, you may not copy or deliver this message to anyone. In such case, you should destroy this message and kindly notify the sender by reply email. Please advise immediately if you or your employer does not consent to Internet email for messages of this kind. * -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
TOMCAT Crashing down
Dear All, My tomcat is getting shutdown after giving following problem... An EXCEPTION_ACCESS_VIOLATION exception has been detected in native code outside the VM Any clue? We are running some JSP pages that require connection to DB2 in backend. And one Java multithreaded application is also running (separate to tomcat) and this application also require access to DB2. Regards, Dheeraj -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: TOMCAT Crashing down
Hi. From your posting is not resulting what combination of platform / tomcat / jdk you are using. Provide more technical details, maybe someone would help you... Dheeraj Anand wrote: Dear All, My tomcat is getting shutdown after giving following problem... An EXCEPTION_ACCESS_VIOLATION exception has been detected in native code outside the VM Any clue? We are running some JSP pages that require connection to DB2 in backend. And one Java multithreaded application is also running (separate to tomcat) and this application also require access to DB2. Regards, Dheeraj -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: TOMCAT Crashing down
Hi, we are using Windows 2000 professional edition and we are using JDK 1.3 along with Tomcat 3.2.4. We are using DB2 Enterprise edition version 7.1 and JDBC driver is db2java.zip that resides in c:\program files\SQLLIB\java Regards, Dheeraj -Original Message- From: Mr. Cristian Romanescu [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 15, 2003 1:16 AM To: Tomcat Users List Subject: Re: TOMCAT Crashing down Hi. From your posting is not resulting what combination of platform / tomcat / jdk you are using. Provide more technical details, maybe someone would help you... Dheeraj Anand wrote: Dear All, My tomcat is getting shutdown after giving following problem... An EXCEPTION_ACCESS_VIOLATION exception has been detected in native code outside the VM Any clue? We are running some JSP pages that require connection to DB2 in backend. And one Java multithreaded application is also running (separate to tomcat) and this application also require access to DB2. Regards, Dheeraj -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
AW: saving and opening files
I *think* a file with a relative path is usually put into the directory from which the JVM is started. (that's what I've found so far - don't know if it's *always* true) Well, anyway: File has a method getAbsolutePath() (or something like that). Just let the file tell you where it is :-) File file2 = new java.io.File(states.gip); System.out.println(I'm file2 and I am at + file2.getAbsolutePath()); HTH - Good luck! -Ursprüngliche Nachricht- Von: Clive De Silva [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 14. Januar 2003 01:17 An: Tomcat Users List Cc: Julius Davies Betreff: Re: saving and opening files Hi, I did that and the path was: C:\Program Files\Apache Group\Tomcat 4.1 but the file is not there! Ideas? - Original Message - From: Julius Davies [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, January 14, 2003 12:08 AM Subject: RE: saving and opening files Clive De Silva, I may be wrong, but I think your file would be here: System.getProperty( user.dir ); That should output a string showing the directory where your files will be put by default. This is because you specified a relative path -- new java.io.File(states.gip) -- not an absolute path. You can call 'System.getProperty( user.dir )' at anytime from anywhere in your application, even a jsp. yours, Julius Davies, Programmer, CUCBC Email: [EMAIL PROTECTED], Ph: 604.730.6385 -Original Message- From: Clive De Silva [mailto:[EMAIL PROTECTED]] Sent: Monday, January 13, 2003 3:48 PM To: [EMAIL PROTECTED] Subject: saving and opening files Hi, I have placed my package in the \Apache Group\Tomcat 4.1\common\classes\ folder and they are all standard Java classes [no servlets or jsps]. One of the methods invoked in my main class serializes an object and saves it to a persistent file at runtime : -Start Snip 1--- public boolean saveUser(){ File file2 = new java.io.File(states.gip); try{ myUser.allocateUser(user); FileOutputStream out2 = new FileOutputStream(file2); ObjectOutputStream s2 = new ObjectOutputStream(out2); s2.writeObject(myUser); s2.flush(); System.out.println(You have save successfully); return true; } catch(Exception e){ e.printStackTrace(); System.out.println(You have save UN-Successfully); return false; } } -End Snip 1--- When the class is initialised/created, it first checks to see if there is a file called states.gip and if there is, then it reads in the object, if there isnt, then it creates an object and at a latter stage saves it: -Start Snip 2--- public boolean createUser(String name){ try{//see if a user had been created and try to load it back File file2 = new java.io.File(states.gip); FileInputStream in = new FileInputStream(file2); ObjectInputStream s1 = new ObjectInputStream(in); myUser = (MainUser)s1.readObject(); user = recommenderEPG.addUser(name); user = myUser.unallocate(user); System.out.println(There was an old user!); return true; } catch(Exception e){//user has not been created so an exception is thrown -going to create a new user try{ myUser = new MainUser(name); user = recommenderEPG.addUser(name); myUser.allocateUser(user); System.out.println(there is definitely no old user); return true; } catch (DataNotFoundException ef){ return false; } } -End Snip 2--- When the class does get created for the first time, it does not see the 'states.gip' file, which is correct, because it has not been created yet. If it is instantiated for a second or nth time, it always sees the file and loads it correctly. My Question is: where is this file stored? I can not find a physical trace of this file - i have done search after search and it is not there - yet the Java class opens it correcly! Help! Regards, Clive --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.435 / Virus Database: 244 - Release Date: 30/12/2002 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.435 / Virus Database: 244 - Release Date: 31/12/2002 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail:
file name
I have a servlet that generates pdf files on the fly but when the browser opens the save as... dialog, the suggested default filename is my servlet's URL... I would like it to suggest another file name, how can i do that? -- Felipe Schnack Analista de Sistemas [EMAIL PROTECTED] Cel.: (51)91287530 Linux Counter #281893 Centro Universitário Ritter dos Reis http://www.ritterdosreis.br [EMAIL PROTECTED] Fone/Fax.: (51)32303341 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
FW: Losing requests during web application redeloyment with Manager app
Hi, When I redeploy web application using the Manager application what happens with: 1. requests that are currently being processed by the web-server? Are they lost? 2. incoming requests for this web application? Are they refused? Thanks Asaf Birenzvieg Amdocs Israel, RD TEL: 09-7764542 [EMAIL PROTECTED] - The information contained in this message is proprietary of Amdocs, protected from disclosure, and may be privileged. The information is intended to be conveyed only to the designated recipient(s) of the message. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, use, distribution or copying of this communication is strictly prohibited and may be unlawful. If you have received this communication in error, please notify us immediately by replying to the message and deleting it from your computer. Thank you. - -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
AW: file name
Try something like this (response.setHeader): [snip] String savepath=DLBean.getSavePath(); savepath+=exp+_+sub+/; if(DLBean.getDownloadByKey(dow)) { if(DLBean.getNextDownload()) { String file = DLBean.getColumn(file); String saveasfile = DLBean.getColumn(saveasname); String origfile = DLBean.getColumn(origfilename); String mimetype = DLBean.getColumn(mimetype); //read the file name. savepath+=file; File f = new File (savepath); //set the content type(can be excel/word/powerpoint etc..) response.setContentType (mimetype); //set the header and also the Name by which user will be prompted to save if(!saveasfile.equals()) response.setHeader (Content-Disposition, attachment; filename=\+saveasfile+\); else response.setHeader (Content-Disposition, attachment; filename=\+origfile+\); response.setHeader(Content-Length,(new Long(f.length())).toString() ); InputStream in = new FileInputStream(f); ServletOutputStream outs = response.getOutputStream(); int bit = 256; int i = 0; try { while ((bit) = 0) { bit = in.read(); outs.write(bit); } } catch (IOException ioe) { ioe.printStackTrace(System.out); } outs.flush(); outs.close(); in.close(); } } [snip] Hope this helps. -Ursprüngliche Nachricht- Von: Felipe Schnack [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 14. Januar 2003 11:38 An: Tomcat Users List Betreff: file name I have a servlet that generates pdf files on the fly but when the browser opens the save as... dialog, the suggested default filename is my servlet's URL... I would like it to suggest another file name, how can i do that? -- Felipe Schnack Analista de Sistemas [EMAIL PROTECTED] Cel.: (51)91287530 Linux Counter #281893 Centro Universitário Ritter dos Reis http://www.ritterdosreis.br [EMAIL PROTECTED] Fone/Fax.: (51)32303341 -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Webdav new directory refresh problem with tc-4.1.18
Hi, when I create a new directory from a webdav client (MS explorer), the new directory will be created but the client shows the new directory only after a refresh. This error does NOT occur with tc-4.1.12 but with tc.4.1.18. Any ideas why? -- Zsolt -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: TOMCAT Crashing down
Hello, again. :-\ IMHO you should try using diferent distribution of JDK / Tomcat (I think Tomcat 4.x is better). Also check if driver it's ok (i.e. works in other contexts / applications). If Tomcat is shutting down right after it starts, then there is a problem loading one of the webapps libraries (jars classes etc), try disabling and see what happens. This is what I would do... c. Dheeraj Anand wrote: Hi, we are using Windows 2000 professional edition and we are using JDK 1.3 along with Tomcat 3.2.4. We are using DB2 Enterprise edition version 7.1 and JDBC driver is db2java.zip that resides in c:\program files\SQLLIB\java Regards, Dheeraj -Original Message- From: Mr. Cristian Romanescu [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 15, 2003 1:16 AM To: Tomcat Users List Subject: Re: TOMCAT Crashing down Hi. From your posting is not resulting what combination of platform / tomcat / jdk you are using. Provide more technical details, maybe someone would help you... Dheeraj Anand wrote: Dear All, My tomcat is getting shutdown after giving following problem... An EXCEPTION_ACCESS_VIOLATION exception has been detected in native code outside the VM Any clue? We are running some JSP pages that require connection to DB2 in backend. And one Java multithreaded application is also running (separate to tomcat) and this application also require access to DB2. Regards, Dheeraj -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: HTTP Status 500: Cannot find any information on property myProperty in a bean of type 'myPackage.MyBean'
I wish it were that simple. Remember that the application works if the components are shoved into the appropriate directories under the 'examples' directory. However, here is the bean (which I should have included previously): ** FormBean.java * package coreBeans; public class FormBean { private String passwd; private String uName; private String incomingPassword; public FormBean() { uName=; incomingPassword=; passwd=28max; } public String getUName() { return uName; } public String getIncomingPassword() { return incomingPassword; } public void setUName(String in) { uName = in; } public void setIncomingPassword(String in) { incomingPassword = in; } public boolean isOKPassword() { return (incomingPassword.compareTo(passwd) == 0); } } - Original Message - From: Ralph Einfeldt [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, January 14, 2003 7:55 AM Subject: RE: HTTP Status 500: Cannot find any information on property myProperty in a bean of type 'myPackage.MyBean' AFAIK that means that there isn't setUName() and/or getUName() in coreBeans.FormBean. -Original Message- From: Wilson Snook [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 14, 2003 8:24 AM To: [EMAIL PROTECTED] Subject: HTTP Status 500: Cannot find any information on property myProperty in a bean of type 'myPackage.MyBean' snip/ org.apache.jasper.JasperException: Cannot find any information on property 'uName' in a bean of type 'coreBeans.FormBean' snip/ jsp:useBean id=formHandler class=coreBeans.FormBean / jsp:setProperty name=formHandler property=* / /jsp:useBean % if (formHandler.isOKPassword()) { % hr span Welcome, jsp:getProperty name=formHandler property=uName /. You are now logged into the site. /span % } else { % hr span style=color:red ERROR: login failed, jsp:getProperty name=formHandler property=uName /! snip/ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: file name
response.setHeader(Content-Disposition, attachment; filename=SuggestedFileName.pdf); - Original Message - From: Felipe Schnack [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, January 14, 2003 10:37 AM Subject: file name I have a servlet that generates pdf files on the fly but when the browser opens the save as... dialog, the suggested default filename is my servlet's URL... I would like it to suggest another file name, how can i do that? -- Felipe Schnack Analista de Sistemas [EMAIL PROTECTED] Cel.: (51)91287530 Linux Counter #281893 Centro Universitário Ritter dos Reis http://www.ritterdosreis.br [EMAIL PROTECTED] Fone/Fax.: (51)32303341 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Multiple serlvet contexts being created instead of 1
Hi, I still have the problem of not getting a singleton class to in fact be a singleton (its configured as a context listener inside web.xml). Some people suggested that perhaps i was getting more than 1 instance of the web app being created and that seems to be the case. My context si configured in my server.xml and the location of the webapp is not in tomcat's standard webapp directory. The follwoing 3 stack traces are basically a time line from when the server starts. I threw some dummy, caught exceptions in my code so I could see the stack trace. -- -- Server starts here -- -- 1st instance of the task scheduler listener (on server start as expected) Context Initialized The Servlet Context is org.apache.catalina.core.ApplicationContext@238a47 New Scheduler Created java.lang.Exception: Testing at com.lawonline.Scheduler.getScheduler(Scheduler.java:43) at com.lawonline.StartServlet.contextInitialized(StartServlet.java:37) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3269) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3598) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardHost.start(StandardHost.java:738) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347) at org.apache.catalina.core.StandardService.start(StandardService.java:497) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2189) at org.apache.catalina.startup.Catalina.start(Catalina.java:512) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) -- -- First request of a jsp (to any page in the webapp) -- -- 2nd instance (created from the warp connector) Context Initialized The Servlet Context is org.apache.catalina.core.ApplicationContext@11db6bb New Scheduler Created java.lang.Exception: Testing at com.lawonline.Scheduler.getScheduler(Scheduler.java:43) at com.lawonline.StartServlet.contextInitialized(StartServlet.java:37) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3269) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3598) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:821) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579) at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:257) at org.apache.catalina.core.StandardHost.install(StandardHost.java:772) at org.apache.catalina.connector.warp.WarpConfigurationHandler.deploy(Unknown Source) at org.apache.catalina.connector.warp.WarpConfigurationHandler.handle(Unknown Source) at org.apache.catalina.connector.warp.WarpConnection.run(Unknown Source) at java.lang.Thread.run(Thread.java:536) The listener is: com.lawonline.StartServlet@157ea4a 3rd (also created from the warp connector) Context Initialized The Servlet Context is org.apache.catalina.core.ApplicationContext@1568fb5 New Scheduler Created java.lang.Exception: Testing at com.lawonline.Scheduler.getScheduler(Scheduler.java:43) at com.lawonline.StartServlet.contextInitialized(StartServlet.java:37) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3269) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3598) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:821) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579) at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:257) at org.apache.catalina.core.StandardHost.install(StandardHost.java:772) at org.apache.catalina.connector.warp.WarpConfigurationHandler.deploy(Unknown Source) at org.apache.catalina.connector.warp.WarpConfigurationHandler.handle(Unknown Source) at
DataSourceRealm does not exists?
Hi list! I've faces the strange problem that I don't understand. I need to configure some authentication at some part of our site, so I chose FORM based authentication through DataSourceRealm described in Realm Configuration HOW-TO. First, I've mentioned that explanation about DataSourceRealm and attribute list are strangely similar to JDBCRealm one (is it just a copypaste?) -- that is, in some places there is JDBCRealm where DataSourceRealm should be. Second, attribute list for DSR has no differences with JDBCR -- how should I declare jndi name for a data source? But it the Example subsection below there is dataSourceName attribute, and className is org.apache.catalina.realm.DataSourceRealm instead of org.apache.catalina.realm.JDBCRealm listed in attrubute list above. Is it documentation error or not? Third, and most strangest, is that there is _no_ org.apache.catalina.realm.DataSourceRealm class in my Tomcat distribution! I looked in $TOMCAT_HOME/server/catalina.jar and didn't find this class. My Tomcat is 4.1.16, OS is Win2k. I've searched marc.theaimsgroup.com and Google, and didn't find any message related to my question. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Multiple serlvet contexts being created instead of 1
Hi again, I also forgot to mention that I am using Apache 1.3.27 and Tomcat 4.1.18 on RedHat 7.3. Thanks regards, Dave
No data from Oracle
Hello, i have some problem with Tomcat. If i run Tomcat on myhost-Server, everything functioned correctly, but if i run Tomcat on any other server, become no data transferred from DB, but user autorization works. Other programs, like TOAD, works however correctly on each server. Can you tell me, what is wrong in configuration and may be i must configure something else? I use Tomcat 4.0.6, Oracle 8.1.7. Realm configuration in file $TOMCAT/conf/server.xml: Realm className=org.apache.catalina.realm.JDBCRealm debug=99 driverName=oracle.jdbc.driver.OracleDriver connectionURL=jdbc:oracle:thin:@myhost:1521:mydb202 connectionName=mydb connectionPassword=mydb userTable=users userNameCol=user_name userCredCol=user_pass userRoleTable=user_roles roleNameCol=role_name digest=MD5/ Configuration in $TOMCAT/webapps/oms/WEB-INF/web.xml datasources jdbc name=mydb auto-commitfalse/auto-commit pool-controller min=5 max=10/ dburljdbc:oracle:thin:@myhost:1521:mydb202/dburl usermydb/user passwordmydb/password /jdbc /datasources Thank you for answer. Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet. This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.
Re: DataSourceRealm does not exists?
Sorry for the stupid post, found my fault... DataSourceRealm is in 4.1.18, shame on me... I have another question now. Servlet 2.3 spec, subsection J2EE12.5.3.1 Login Form Notes, says that for FORM based authentication action form attribute should always be j_security_check. I think I set constraints right, because I see login page when I request any page in closed area. But after submitting the form my URL becomes /context/j_security_check, and nothing happens. Should I provide any servlet mapping to make it work? --= [ cut ] =-- form action=j_security_check method=POST input type=text name=j_username value=br input type=text name=j_password value=br input type=submit /form --= [ / cut ] =-- Veniamin Fichin wrote: Hi list! I've faces the strange problem that I don't understand. --= [ cut ] =-- -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
JDBCRealm problem with MySQL after adding password and changing user account
Hi, I have a problem with my Tomcat 4.1.18 JDBCRealm setup on Solaris in server.xml Previously I had this in my context definition in server.xml and it works fine: Realm className=org.apache.catalina.realm.JDBCRealm debug=99 driverName=com.mysql.jdbc.Driver connectionURL=jdbc:mysql://localhost:3307/praksis?user=root userTable=benutzer userNameCol=email userCredCol=passwort userRoleTable=rollen roleNameCol=rollenname digest=SHA-1/ Then I added a new user in MySQL named praksis to replace the root access and tried to change to this setup: Realm className=org.apache.catalina.realm.JDBCRealm debug=99 driverName=com.mysql.jdbc.Driver connectionURL=jdbc:mysql://localhost:3307/praksis?user=praksispassword =siskarp userTable=benutzer userNameCol=email userCredCol=passwort userRoleTable=rollen roleNameCol=rollenname digest=SHA-1/ Now I only get weird error messages from the xml parser: org.xml.sax.SAXParseException: The reference to entity password must end with the ';' delimiter. Thus I tried jdbc:mysql://localhost:3307/praksis?user=praksispassword=siskarp; but this didn't do the trick... Does it mean anything else? I use mysql-connector-java-2.0.14.jar in common/lib (for tomcat) and webapps/praksis/WEB-INF/libs (for struts) But I believe the connectionURL is correct because I looked it up in the tomcat doc under jdbc realms. The MySQL setup/user setup should be okay aswell, because my Struts connection pool works with: data-sources data-source set-property property=driverClass value=com.mysql.jdbc.Driver/ set-property property=url value=jdbc:mysql://localhost:3307/praksis/ set-property property=maxCount value=25/ set-property property=minCount value=5/ set-property property=user value=praksis/ set-property property=password value=siskarp/ /data-source /data-sources So right now, I'm using a root access without password for my JDBC Realm, because the different JDBC Realm prohibits Tomcat from starting up. But my webapp itself can utilize the struts connection pool with above user account setup without any problems. Actually I don't know what I did wrong and was hoping for help that I can use the praksis user for both purposes. Thanks! Michael -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
ServletException: Servlet.init()
I've installed the Tomcat 4.1.18 on my server: - Pentium II (333 Mhz) - SCO OpenServer 5.0.5 - Java J2SE 1.3.0_02 When I execute the startup.sh, it seems to work fine, but when I open the URL with 8080, it sends me the error: The server encountered an internal error () that prevented it from fulfilling this request. javax.servlet.ServletException: Servlet.init() for servlet jsp threw exception at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java, Compiled Code) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java, Compiled Code) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java, Compiled Code) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java, Compiled Code) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java, Compiled Code) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java, Compiled Code) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java, Compiled Code) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java, Compiled Code) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java, Compiled Code) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java, Compiled Code) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java, Compiled Code) at java.lang.Thread.run(Thread.java:484) root cause java.lang.NoClassDefFoundError: org/apache/jasper/compiler/JspRuntimeContext at org.apache.jasper.servlet.JspServlet.init(JspServlet.java, Compiled Code) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java, Compiled Code) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java, Compiled Code) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java, Compiled Code) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java, Compiled Code) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java, Compiled Code) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at
Jndi.properties file
Hi, I have an war file with one jsp page which get some information from a entity bean. Hashtable env = new Hashtable(); env.put(java.naming.factory.initial, org.jnp.interfaces.NamingContextFactory); env.put(java.naming.factory.url.pkgs, org.jboss.naming:org.jnp.interfaces); env.put(java.naming.provider.url, jnp://localhost:1099); Context ctx = new InitialContext(env); In my jsp i have inserted the above code for finding the entity bean, and it works ok. I want this information not to be in a jsp but in a jndi.properties file(so i can change it later), so i have created one, and this file is at the same level with my jsp. when i deploy the war to Tomcat, and want to get my entity bean I can't find the Contex where my entity bean is. Where can i put my jndi.properties file. Any ideas??? Vangos. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: JDBCRealm problem with MySQL after adding password and changing user account (bug, unclear tomcat documentation or my stupidity?)
Sorry, for the post... Solved it myself. The trick was that you should NOT put your password into the connectionURL instead one can use: Realm className=org.apache.catalina.realm.JDBCRealm debug=99 driverName=com.mysql.jdbc.Driver connectionURL=jdbc:mysql://localhost:3307/praksis connectionName=praksis connectionPassword=siskarp userTable=benutzer userNameCol=email userCredCol=passwort userRoleTable=rollen roleNameCol=rollenname digest=SHA-1/ Although I have no idea why the tomcat documentation offers an example for exactly the case where you put username and password into the connectionURL. For some reason it works unless you only specify a user in the URL, but for more one has to split the data into connectionURL, connectionName and connectionPassword Did anybody have similar experiences? Is this a bug while parsing the server.xml? At least it doesn't seem to be very consistent, if connectionURL works with jdbc:mysql://localhost:3307/praksis?user=root but not with jdbc:mysql://localhost:3307/praksis?user=rootpassword=test So I start using ONLY connectionName and connectionPassword as I might get gray hairs soon enough anyway... ;-) Michael -Original Message- From: mech [mailto:[EMAIL PROTECTED]] Sent: Dienstag, 14. Januar 2003 14:06 To: [EMAIL PROTECTED] Subject: JDBCRealm problem with MySQL after adding password and changing user account Hi, I have a problem with my Tomcat 4.1.18 JDBCRealm setup on Solaris in server.xml Previously I had this in my context definition in server.xml and it works fine: Realm className=org.apache.catalina.realm.JDBCRealm debug=99 driverName=com.mysql.jdbc.Driver connectionURL=jdbc:mysql://localhost:3307/praksis?user=root userTable=benutzer userNameCol=email userCredCol=passwort userRoleTable=rollen roleNameCol=rollenname digest=SHA-1/ Then I added a new user in MySQL named praksis to replace the root access and tried to change to this setup: Realm className=org.apache.catalina.realm.JDBCRealm debug=99 driverName=com.mysql.jdbc.Driver connectionURL=jdbc:mysql://localhost:3307/praksis?user=praksi spassword =siskarp userTable=benutzer userNameCol=email userCredCol=passwort userRoleTable=rollen roleNameCol=rollenname digest=SHA-1/ Now I only get weird error messages from the xml parser: org.xml.sax.SAXParseException: The reference to entity password must end with the ';' delimiter. Thus I tried jdbc:mysql://localhost:3307/praksis?user=praksispassword=sis karp; but this didn't do the trick... Does it mean anything else? I use mysql-connector-java-2.0.14.jar in common/lib (for tomcat) and webapps/praksis/WEB-INF/libs (for struts) But I believe the connectionURL is correct because I looked it up in the tomcat doc under jdbc realms. The MySQL setup/user setup should be okay aswell, because my Struts connection pool works with: data-sources data-source set-property property=driverClass value=com.mysql.jdbc.Driver/ set-property property=url value=jdbc:mysql://localhost:3307/praksis/ set-property property=maxCount value=25/ set-property property=minCount value=5/ set-property property=user value=praksis/ set-property property=password value=siskarp/ /data-source /data-sources So right now, I'm using a root access without password for my JDBC Realm, because the different JDBC Realm prohibits Tomcat from starting up. But my webapp itself can utilize the struts connection pool with above user account setup without any problems. Actually I don't know what I did wrong and was hoping for help that I can use the praksis user for both purposes. Thanks! Michael -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: JDBCRealm problem with MySQL after adding password and changing user account
If you want to use inside xml you have to encode it. ?user=praksispassword=foo should be changed to ?user=praksisamp;password=foo BTW: In the JDBCRealm-howto they use ; to seperate the password from the user. ?user=praksis;password=foo As I'm not using mysql I'm not shure if that is correct. -Original Message- From: mech [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 14, 2003 2:06 PM To: [EMAIL PROTECTED] Subject: JDBCRealm problem with MySQL after adding password and changing user account connectionURL=jdbc:mysql://localhost:3307/praksis?user=praksi spassword =siskarp userTable=benutzer userNameCol=email userCredCol=passwort userRoleTable=rollen roleNameCol=rollenname digest=SHA-1/ Now I only get weird error messages from the xml parser: org.xml.sax.SAXParseException: The reference to entity password must end with the ';' delimiter. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: No data from Oracle
This could be an Oracle 8.1.7 naming configuration. What machine types are you using? If TOAD is running on the same machine that Tomcat is running, then you must be doing WinTel. I would recommend, 1. Check the /etc/hosts (*nix) or c:\winnt\system32\drivers\etc\hosts (wintel) on myhost-Server. 2. Then check the /etc/hosts (or wintel location) on the other server. For simplicitiy, if you can ping the FQDN of the Oracle server from both servers, then you can rule out the Oracle configuration issues. With 8.1.7, you need to either have a DNS entry for the FQDN of the Oracle server (not servicename or SID), or run Oracle Names, or manually enter it in the local server's or workstation's hosts file. - Greg -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 14, 2003 7:54 AM To: [EMAIL PROTECTED] Subject: No data from Oracle Hello, i have some problem with Tomcat. If i run Tomcat on myhost-Server, everything functioned correctly, but if i run Tomcat on any other server, become no data transferred from DB, but user autorization works. Other programs, like TOAD, works however correctly on each server. Can you tell me, what is wrong in configuration and may be i must configure something else? I use Tomcat 4.0.6, Oracle 8.1.7. Realm configuration in file $TOMCAT/conf/server.xml: Realm className=org.apache.catalina.realm.JDBCRealm debug=99 driverName=oracle.jdbc.driver.OracleDriver connectionURL=jdbc:oracle:thin:@myhost:1521:mydb202 connectionName=mydb connectionPassword=mydb userTable=users userNameCol=user_name userCredCol=user_pass userRoleTable=user_roles roleNameCol=role_name digest=MD5/ Configuration in $TOMCAT/webapps/oms/WEB-INF/web.xml datasources jdbc name=mydb auto-commitfalse/auto-commit pool-controller min=5 max=10/ dburljdbc:oracle:thin:@myhost:1521:mydb202/dburl usermydb/user passwordmydb/password /jdbc /datasources Thank you for answer. Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet. This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: How to configure mod_ssl on rh 7.1 running tomcat
You'd be better off asking your question on an Apache list. Also: http://www.modssl.org/ To see what version of OpenSSL is running on your machine, type: openssl version John -Original Message- From: Vivek Singh [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 14, 2003 4:21 AM To: 'Tomcat Users List' Subject: How to configure mod_ssl on rh 7.1 running tomcat HI, Last weekend I was able to make apache 1.3.19 and tomcat 4.1.18 communicate over ajp 13. Now I was wondering if I can use mod_ssl to access apache. FYI: when I type https://192.168.132.34/examples/servlets I get page not found. Can anyone help me on this? Can I know which file do I need to edit httpd.conf, mod_jk.conf or server.xml. I can access https:// for other one of the web service but not tomcat application server/ Can sometell me what ssl version is running on rh 7.x by default apache ssl, mod_ssl and if apache ssl is running how to disable it and run mod_ssl only. Thanks in advance. Vivek Singh Wipro Technologies Survey No 64, Madhapur, Serilingampally Mandal, Hyderabad- 500 033. India Tel:+91-40-6565000 Extn:5513, 5467 Direct : 6565467, 6565513 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: JDBCRealm problem with MySQL after adding password and changing user account
Strange, I found this non-;-separated example in: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/realm-howto.html#JDBCRea lm Realm className=org.apache.catalina.realm.JDBCRealm debug=99 driverName=org.gjt.mm.mysql.Driver connectionURL=jdbc:mysql://localhost/authority?user=dbuserpassword=dbp ass userTable=users userNameCol=user_name userCredCol=user_pass userRoleTable=user_roles roleNameCol=role_name/ Your note for the in xml is true, but shouldn't matter in a quoted string, or do I mix something up now? Anyway... Using the connectionName, connectionPassword attributes and you are on the safe side... Michael -Original Message- From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]] Sent: Dienstag, 14. Januar 2003 14:25 To: Tomcat Users List; [EMAIL PROTECTED] Subject: RE: JDBCRealm problem with MySQL after adding password and changing user account If you want to use inside xml you have to encode it. ?user=praksispassword=foo should be changed to ?user=praksisamp;password=foo BTW: In the JDBCRealm-howto they use ; to seperate the password from the user. ?user=praksis;password=foo As I'm not using mysql I'm not shure if that is correct. -Original Message- From: mech [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 14, 2003 2:06 PM To: [EMAIL PROTECTED] Subject: JDBCRealm problem with MySQL after adding password and changing user account connectionURL=jdbc:mysql://localhost:3307/praksis?user=praksi spassword =siskarp userTable=benutzer userNameCol=email userCredCol=passwort userRoleTable=rollen roleNameCol=rollenname digest=SHA-1/ Now I only get weird error messages from the xml parser: org.xml.sax.SAXParseException: The reference to entity password must end with the ';' delimiter. -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: cannot connect
-Original Message- From: Brzezinski, Paul J [mailto:[EMAIL PROTECTED]] Sent: Monday, January 13, 2003 7:21 PM To: Tomcat Users List Subject: Re: cannot connect Faine, Mark wrote: Apache 2.0.43 mod_jk2 2.0.0 Tomcat 4.0.6 Can't get socket to work, I get this error message: Is this the log from apache or tomcat? It is my Apache log file [Mon Jan 13 14:43:21 2003] [notice] Apache/2.0.43 (Unix) mod_ssl/2.0.43 OpenSSL/0.9.6g DAV/2 mod_jk2/2.0.0 configured -- resuming normal operations [Mon Jan 13 14:43:39 2003] [error] channelUn.connect() connect failed 2 No such file or directory [Mon Jan 13 14:43:39 2003] [error] ajp13.connect() failed ajp13:/usr/local/tomcat/logs/jk2.socket [Mon Jan 13 14:43:39 2003] [error] ajp13.service() failed to connect endpoint errno=2 No such file or directory [Mon Jan 13 14:43:39 2003] [error] ajp13.service() Error forwarding ajp13:/usr/local/tomcat/logs/jk2.socket 1 1 [Mon Jan 13 14:43:39 2003] [error] mod_jk.handler() Error connecting to tomcat 12 Is the socket supposed to be created automatically on the fly? (upon starting of server) I believe so. When run tomcat does tomcat create/use the socket? I've had trouble in the past getting the channelUnix socket to work -- was related to the ClassLoaders not functioning properly on Solaris 8 (Apache 2.0.40, Tomcat 4.1.15, mod_jk2 2.0.1). Because Tomcat couldn't create the socket, Apache couldn't find it, so it couldn't use it. Do you have any more information on this. I need to either fix it or work-around it, I also need to determine if this is indeed the problem. Thanks, -Mark -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Start tomcat before apache on RedHat7.3
what runs when, and stick the delay in there. Another solution is to not use ApacheConfig (i.e. and the dynamically generated mod_jk.conf file) at all, just use some static version that you created. In fact, this makes a lot more sense to me, for a number of reasons, including that I don't believe ApacheConfig can capture everything that needs to go into that file, and that once you have things set, it's not going to change that frequently (so you shouldn't have to regenerate it every time you start Tomcat). Thanks for the reply... Just let me point out that I have not used neither mod_jk.conf nor ApacheConfig I have written all the loadModule . and JkMount etc directly into httpd.conf Regrads Arcadius. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Starting an .exe though out of a servlet
Hi, I will never use absolute Paths. This is a rule of myseilf because that makes my program dependent from the user... Is it possible that the current Path in the servlet is the Path where the servlet is placed in? Patrick [EMAIL PROTECTED] wrote: try using an absolute path. Also not that there is an output and error stream which you are not aquireing that may have more detailed information. -rickb -Original Message- From: Patrick Kosiol [mailto:[EMAIL PROTECTED]] Sent: Monday, January 13, 2003 10:58 AM To: Tomcat Users List Subject: Starting an .exe though out of a servlet Hi, I'm runnung TomCat 4.0.4 and I want to start an external .exe-File. My Code: String[] runString = {relativeDataPath + data.exe, parameter0, parameter1, parameter2, parameter3}; Process p = Runtime.getRuntime().exec(runString); System.out.println(runString); if(p.waitFor() == 0){ The 'data.exe'-File is placed in $CATALINA_HOME/webapps/ROOT/relativeDataPath so it should be no problem to access this File. The Number of Parameters etc. is OK. But I get the following Error-Message: java.io.IOException: CreateProcess: 'relativeDataPath'/bfpldata.exe parameter0 parameter1 parameter2 parameter3 error=3 Does someone know what 'error=3' mean? And how can I access this 'data.exe' and execute this File with the Parameters? The starting-routine seems to be correct. Thx Patrick -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Start tomcat before apache on RedHat7.3
Turner, John [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Nope, where startup (and shutdown) scripts are located has no bearing whatsoever on when they are started. Where != when. The init directories are known as rcN.d, where N = a number. That number defines runlevel, not startup order. A UNIX/Linux machine has different runlevels. Single user, multi-user, single-user with network, maintenance, multi-user with X windows, whatever. Each one of those runlevels has a number. Which run level the computer is booting to defines which init directory is used to startup services. The default runlevel is typically 3 (multi-user with network) or 5 (multi-user with network with X-Windows), in the case of Red Hat. Other variants are similar. Now, within a particular rcN.d directory, you will typically see files that have names like S55sshd and S85tomcat or SNNservice or whatever. Some will be named KNNservice. NN in this case is also a number, and THAT number defines startup order. That is, S55service will startup before S85service. S means start at boot and K means do not start at boot. So, if you have a S file that you want to stop from running at boot, you can cp -p SNNservice KNNservice and that will stop it the next time you boot. Utilities like Red Hat's chkconfig, etc. can manage this for you, or you can get in and hack it around manually, whichever makes you comfortable. The point here is NOT startup order, but startup TIME. That is, elapsed time, not sequence time. Tomcat needs time to startup, but your init scripts don't know that, so they will be good little scripts and try to execute as fast as possible, in the milliseconds, meaning that Apache's startup script or command will execute right after Tomcat's, while Tomcat is still trying to complete, especially in the case of using ApacheConfig for mod_jk. You want to slow all of that down. The solution is to 1) delay the point when Tomcat's startup script reports to init that things are OK and init can continue with the next service in the list, which will eventually be Apache, 2) delay the point when Apache's startup command/script is executed, 3) start Tomcat at boot and Apache manually, or 4) start both manually, Tomcat first, and Apache second after a self-imposed delay that gives Tomcat a chance to complete. Word of advice: STAY OUT of /etc/rc.d/init.d unless you know exactly what you are doing, or have a good backup and a rescue disk...messing around in there can cause trouble, like an infinite loop when trying to boot or whatever. You want to do things in the appropriate runlevel directory, like rc3.d or whatever, and use a tool like chkconfig to manage your runlevel dirs and their links to the actual start/stop scripts. Thanks John for clearing things up... :-) ARcadius. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Start tomcat before apache on RedHat7.3
Then the delay shouldn't need to be more than 5 or 10 seconds. John -Original Message- From: Arcadius A. [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 14, 2003 8:38 AM To: [EMAIL PROTECTED] Subject: Re: Start tomcat before apache on RedHat7.3 what runs when, and stick the delay in there. Another solution is to not use ApacheConfig (i.e. and the dynamically generated mod_jk.conf file) at all, just use some static version that you created. In fact, this makes a lot more sense to me, for a number of reasons, including that I don't believe ApacheConfig can capture everything that needs to go into that file, and that once you have things set, it's not going to change that frequently (so you shouldn't have to regenerate it every time you start Tomcat). Thanks for the reply... Just let me point out that I have not used neither mod_jk.conf nor ApacheConfig I have written all the loadModule . and JkMount etc directly into httpd.conf Regrads Arcadius. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: cannot connect
: -Original Message- : From: Faine, Mark [mailto:[EMAIL PROTECTED]] : Sent: Tuesday, January 14, 2003 8:34 AM : To: 'Tomcat Users List' : Subject: RE: cannot connect : : : : : -Original Message- : From: Brzezinski, Paul J [mailto:[EMAIL PROTECTED]] : Sent: Monday, January 13, 2003 7:21 PM : To: Tomcat Users List : Subject: Re: cannot connect : : : Faine, Mark wrote: : : Apache 2.0.43 : mod_jk2 2.0.0 : Tomcat 4.0.6 : : Can't get socket to work, I get this error message: : : : Is this the log from apache or tomcat? : : : It is my Apache log file : : [Mon Jan 13 14:43:21 2003] [notice] Apache/2.0.43 (Unix) : mod_ssl/2.0.43 : OpenSSL/0.9.6g DAV/2 mod_jk2/2.0.0 configured -- resuming normal : operations [Mon Jan 13 14:43:39 2003] [error] channelUn.connect() : connect failed 2 No such file or directory [Mon Jan 13 : 14:43:39 2003] : [error] ajp13.connect() failed : ajp13:/usr/local/tomcat/logs/jk2.socket : [Mon Jan 13 14:43:39 2003] [error] ajp13.service() failed to connect : endpoint errno=2 No such file or directory : [Mon Jan 13 14:43:39 2003] [error] ajp13.service() Error forwarding : ajp13:/usr/local/tomcat/logs/jk2.socket 1 1 : [Mon Jan 13 14:43:39 2003] [error] mod_jk.handler() Error : connecting to : tomcat 12 : : Is the socket supposed to be created automatically on the fly? (upon : starting of server) : : : I believe so. When run tomcat does tomcat create/use the : socket? I've : had trouble in the past getting the channelUnix socket to work -- was : related to the ClassLoaders not functioning properly on Solaris 8 : (Apache 2.0.40, Tomcat 4.1.15, mod_jk2 2.0.1). Because : Tomcat couldn't : create the socket, Apache couldn't find it, so it couldn't use it. : : Do you have any more information on this. I need to either : fix it or work-around it, I also need to determine if this is : indeed the problem. Do you get any complaints from tomcat when you start it up manually (as opposed to configuring apache to start up or connect to an already running instance of tomcat)? Check $catalina_home/logs/catalina.out for messages about can't create apr... Unfortunately, I don't have copies of the messages available -- it's back from mid-November or late November time-frame if you want to search the archives... http:[EMAIL PROTECTED]/ If you search the archive, you may find that searching for my last name may bring up the messages, I posted a few to the developer list and got some responses from one or two of the developers re: this problem. One of the things I do remember, one of the developers told me that I could work-around this problem until the ClassLoader problem is permanently resolved by moving all the jar files in $catalina_home/server/lib to $catalina_home/common/lib. I was told that this totally defeats the purpose of the ClassLoader hierarchy. Your mileage may vary. These are the files I moved from $catalina_home/server/lib to $catalina_home/common/lib, once I did this, I no longer received error messages in $catalina_home/logs/catalina.out regarding the apr/channelUnix file problem: catalina-ant.jar catalina.jar commons-beanutils.jar commons-digester.jar commons-logging.jar commons-modeler.jar jakarta-regexp-1.2.jar mx4j-jmx.jar servlets-cgi.jar servlets-common.jar servlets-default.jar servlets-invoker.jar servlets-manager.jar servlets-ssi.jar servlets-webdav.jar tomcat-coyote.jar tomcat-http11.jar tomcat-jk.jar tomcat-jk2.jar tomcat-util.jar tomcat-warp.jar : Thanks, : -Mark : : -- : To unsubscribe, e-mail: : mailto:tomcat-user-: [EMAIL PROTECTED] : For : additional commands, : e-mail: mailto:[EMAIL PROTECTED] : -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: How to specify a name for a content beeing served by s servlet
Ok, it now work fine. I just make a little modification to the code with : response.setHeader(Content-Disposition,inline; filename=+archive); If i put attachment and not inline i can't manage to have the native contents embemded in my page for data such as images. Thanks everybody for the help. Cédric - Original Message - From: Craig R. McClanahan [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, January 09, 2003 7:23 PM Subject: Re: How to specify a name for a content beeing served by s servlet On Thu, 9 Jan 2003, Cédric Viaud wrote: Date: Thu, 9 Jan 2003 17:24:24 +0100 From: Cédric Viaud [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat users [EMAIL PROTECTED] Subject: How to specify a name for a content beeing served by s servlet Hi, i would like to know if it is possible to indicate in the HTTP header of a response a name for a ressource. Let be a little clearer. I got a controler servlet wich map all request with *.do. I check the URL use the name before the .do to know the command. For exemple, if the request is getRequest.do, my servlet look for what to do with getRequest. My problem is that i use this servlet to serve native contents (such as images, video, etc ...). On request like getNativeContent.do?id=42135125, my servlet look for the native content of id=42135125, and send it back to the client. I set the correct content-type and use a ServletOutputStream to send binary content. It works fine, but i've got a light problem. It seem's that the content type is not always used by the client to know wich application must be run, but the file name is used (the extension of this filename). Or, the filename that the client see is getNativeContent.do and so the extension is do. In this case, the user is prompted for which application must be associated with the .do extension. More that this, if the user want to save it to disk, the defaut name is getNativeContent.do. Is there a way to indicate a name for the ressource beeing served to the client ? I've spent much time on the HTTP RFC, be i can't manage to find what i'm looking for. Sorry for my awfull English. Various versions of Internet Explorer are particularly awful about ignoring the Content-Type header. However, you might want to look at the Content-Disposition header in addition, so you can suggest a filename (and let IE do it's assumptions based on the filename extension): Content-Type: image/gif Content-Disposition: attachment; filename=foo.gif There are some security issues surrounding the use of Content-Disposition -- for more info, see the HTTP/1.1 specification: http://www.rfc-editor.org/rfc/rfc2616.txt Regards, Cédric Craig -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: TOMCAT Crashing down
Howdy, Ensure you have the proper OS patches required to run whatever JDK version you're using. Your tomcat isn't shutting down by itself: the JVM is crashing, bringing tomcat down with it. Yoav Shapira Millennium ChemInformatics -Original Message- From: Dheeraj Anand [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 14, 2003 4:43 AM To: Tomcat Users List Subject: TOMCAT Crashing down Dear All, My tomcat is getting shutdown after giving following problem... An EXCEPTION_ACCESS_VIOLATION exception has been detected in native code outside the VM Any clue? We are running some JSP pages that require connection to DB2 in backend. And one Java multithreaded application is also running (separate to tomcat) and this application also require access to DB2. Regards, Dheeraj -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: file name
You have to generate a specific HTTP header for this. Do something like : response.setHeader(Content-Disposition,attachment; filename=+nameOfTheFile); I got this tip few days ago on this list. Regards, Cédric - Original Message - From: Felipe Schnack [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, January 14, 2003 11:37 AM Subject: file name I have a servlet that generates pdf files on the fly but when the browser opens the save as... dialog, the suggested default filename is my servlet's URL... I would like it to suggest another file name, how can i do that? -- Felipe Schnack Analista de Sistemas [EMAIL PROTECTED] Cel.: (51)91287530 Linux Counter #281893 Centro Universitário Ritter dos Reis http://www.ritterdosreis.br [EMAIL PROTECTED] Fone/Fax.: (51)32303341 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: [OT] Question regarding payment processing
Noel, The problems that I am having have to do with specifically Chase's values that are being returned to me and the possible scenarios each value can cause. My frustration is that I ask a simple question such as will a decline always have SomeValue is 5 - and what I get back is a bunch of business logic explaining that I am only concerned with approvals, anything else is a non-transaction. While this is true in the business sense, my program is concerned with every scenario, and everything that completes the process (including declines) is considered a transaction. What do you mean by the gateway mechanism doing a callback to one of my pages? The way I have it set up is my JSP instantiates transactionBean with all the necessary values. The methods in this bean do the actual formatting of the input document, make the API call to the gateway to submit the input document, and receive the result document. The bean will also determine if the transaction is a success, and if it is a decline or approval. Then my JSP will access this information to relay it to the browser ( as well as include a script that writes it back to my back end app). We are not storing any user information, so a database is not coming into play for me. The backend app is a UNIX program that I pass a value to via a URL and the program on the UNIX box parses that URL and records the appropriate values. Is this a feasible scenario? If so, then wouldn't the session be persistent throughout the process? Thanks, Denise Mangano Help Desk Analyst Complus Data Innovations, Inc. -Original Message- From: Noel J. Bergman [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 14, 2003 4:11 AM To: Tomcat Users List Subject: RE: [OT] Question regarding payment processing Denise, I haven't done Chase's gateway specifically, but I've done some others. What's problems are you having? One issue I encountered in the past is that some of the gateway mechanisms will do a callback to one of your pages. The catch is that you want to be able to re-associate the session, but you won't get a session cookie. In the past, I was able to do that by explicit URL rewriting. I haven't tried it with recent versions of tomcat, but I should still have an example of that technique around here somewhere. --- Noel -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Start tomcat before apache on RedHat7.3
Turner, John [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Then the delay shouldn't need to be more than 5 or 10 seconds. Ok John, I'm not asking you to do the whole thing for me but could you give me an example of a script that could do what you're talking about? This problem is realy strange I have TomCat 3.2 running on FreeBSD with apache3.27 and mod_jk (automatic config) when I reboot, tomcat and apache start quite fine without the need of any special script but I cannot see why I'm having troubles on RedHat. regards. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: tomcat 4.1.18 can't start on W2K - java.endorsed.dirs is empty ?
Thanks, It is running fine now !! Nice to know that we need the JDK, no the JRE - Original Message - From: Jeanfrancois Arcand [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, January 13, 2003 9:33 PM Subject: Re: tomcat 4.1.18 can't start on W2K - java.endorsed.dirs is empty ? The endorsed dir is used when you want to use another parser that the one included by default with JDK 1.4 (Crimson). The error you have is produced because Tomcat requires the full JDK, not only the JRE (the jsp compiler uses classes from tools.jar, which is only included with the JDK). - Jeanfrancois Pierre Yves Monnet wrote: Hello, Here my problem : I install on a W2000 professional a J2re1.4.1, then a Tomcat 4.1.18-LE-JDK14 Tomcat don't want to start correctly. After a start, I receive on the URL the following error via a web browser : ETAT HTTP 500 Message : Description : the server meet an internal error Exception: org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: [javac] Compiling 1 source file at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandl e r.java:130) at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java: 2 93) at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:340) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:352) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java: 4 74) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java: 1 84) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicatio n FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterC h ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.j a va:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo k eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.j a va:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo k eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:18 0 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo k eNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve . java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo k eNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:17 2 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo k eNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.jav a :174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo k eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConn e ction(Http11Protocol.java:386) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.ja v a:530) at java.lang.Thread.run(Unknown Source) I tried to start the service manualy to see what's happen, and an error arrive in the catalina.bat script : D:\Tomcat 4.1.18start Tomcat -Djava.endorsed.dirs= -classpath ;.\bin\b ootstrap.jar -Dcatalina.base=. -Dcatalina.home=. -Djava.io.tmpdir=.\t e mp org.apache.catalina.startup.Bootstrap start The system cannot find the file -Djava.endorsed.dirs=. I tried to install oon a second machine : same problem. Tomcat 3.1 is run
RE: Start tomcat before apache on RedHat7.3
If you have 2 files in /etc/rc3.d, one called S80httpd and one called S85tomcat (the SNN is going to be different), they are sym links to start/stop scripts in /etc/init.d. First thing, check to make sure the SNNtomcat file has a smaller number than the SNNhttpd file so that it starts first. Second, if that is still causing problems, then edit the script in init.d, your choice which one, and stick sleep NN in there, where NN equals number of seconds. If you put it at the bottom of the Tomcat start script, the script will pause that number of seconds before exiting and notifying init that it can continue with other scripts. This delay will probably be enough time to allow Tomcat to finish it's startup process. John -Original Message- From: Arcadius A. [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 14, 2003 9:13 AM To: [EMAIL PROTECTED] Subject: Re: Start tomcat before apache on RedHat7.3 Turner, John [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Then the delay shouldn't need to be more than 5 or 10 seconds. Ok John, I'm not asking you to do the whole thing for me but could you give me an example of a script that could do what you're talking about? This problem is realy strange I have TomCat 3.2 running on FreeBSD with apache3.27 and mod_jk (automatic config) when I reboot, tomcat and apache start quite fine without the need of any special script but I cannot see why I'm having troubles on RedHat. regards. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Is there any way to set request headers?
Is there any way to set request headers, i.e., an existing mod between Apache and Tomcat, which can set request headers to be decoded by a servlet? Thanks, Joel This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of J.P. Morgan Chase Co., its subsidiaries and affiliates. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: ServletException: Servlet.init()
I had run into a similar error message some time back... I use Tomcat 4.1.17, but I had to add jasper-compiler.jar and jasper-runtime.jar to my classpath... HTH Denise Mangano Help Desk Analyst Complus Data Innovations, Inc. -Original Message- From: Al Cam [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 14, 2003 8:21 AM To: [EMAIL PROTECTED] Subject: ServletException: Servlet.init() I've installed the Tomcat 4.1.18 on my server: - Pentium II (333 Mhz) - SCO OpenServer 5.0.5 - Java J2SE 1.3.0_02 When I execute the startup.sh, it seems to work fine, but when I open the URL with 8080, it sends me the error: The server encountered an internal error () that prevented it from fulfilling this request. javax.servlet.ServletException: Servlet.init() for servlet jsp threw exception at org.apache.catalina.core.StandardWrapper.loadServlet(StandardW rapper.java, Compiled Code) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrap per.java, Compiled Code) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardW rapperValve.java, Compiled Code) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipel ine.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardC ontextValve.java, Compiled Code) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipel ine.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContex t.java:2415) at org.apache.catalina.core.StandardHostValve.invoke(StandardHost Valve.java, Compiled Code) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDi spatcherValve.java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport Valve.java:172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipel ine.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEn gineValve.java, Compiled Code) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipel ine.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java, Compiled Code) at org.apache.coyote.http11.Http11Processor.process(Http11Process or.java, Compiled Code) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandle r.processConnection(Http11Protocol.java, Compiled Code) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoi nt.java, Compiled Code) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run( ThreadPool.java, Compiled Code) at java.lang.Thread.run(Thread.java:484) root cause java.lang.NoClassDefFoundError: org/apache/jasper/compiler/JspRuntimeContext at org.apache.jasper.servlet.JspServlet.init(JspServlet.java, Compiled Code) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardW rapper.java, Compiled Code) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrap per.java, Compiled Code) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardW rapperValve.java, Compiled Code) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipel ine.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardC ontextValve.java, Compiled Code) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipel ine.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at
RE: TOMCAT - MEMORY PROBLEM
I have a very similar problem: sleeping processes (threads) increasing, free memory decreasing... And still couldn't get a solution from the list... Currently I have to restart tomcat every night! Joao Filipe Placido -Original Message- From: Laxmikanth M.S. [mailto:[EMAIL PROTECTED]] Sent: terça-feira, 14 de Janeiro de 2003 9:23 To: [EMAIL PROTECTED] Subject: TOMCAT - MEMORY PROBLEM Hi all, I have installed tomcat4.1.12 / Apache 1.3.27 with JDK 1.3.04 in Linux I have 1GB RAM...when I start the server and check the memory usage it shows 100MB use so balance 900MB is there but day by day the memory consumption is increasing and after 5 days I saw 550MB used when I checked the processes using ps -aux command I found lot of jdk1.3 processes and it keeps on increasingMy assumption is jdk processes are not getting released.how this can be solved ... is there any explicit way to release unwanted processes...why this happens details below ** ** ** ** 5:25pm up 5 days, 3:41, 3 users, load average: 0.00, 0.00, 0.00 123 processes: 122 sleeping, 1 running, 0 zombie, 0 stopped CPU states: 0.3% user, 0.1% system, 0.0% nice, 3.0% idle Mem: 1028864K av, 434108K used, 594756K free, 48K shrd, 91604K buff Swap: 2096472K av, 0K used, 2096472K free 163456K cached USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 9651 0.0 10.2 278088 105460? S Jan10 0:01/usr/local/jdk1.3 ** ** ** ** THANKS IN ADVANCE FOR HELP Laxmikanth * Disclaimer: The information in this e-mail and any attachments is confidential / privileged. It is intended solely for the addressee or addressees. If you are not the addressee indicated in this message, you may not copy or deliver this message to anyone. In such case, you should destroy this message and kindly notify the sender by reply email. Please advise immediately if you or your employer does not consent to Internet email for messages of this kind. * -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: ServletException: Servlet.init()
It looks like it cannot find the following: root cause java.lang.NoClassDefFoundError: org/apache/jasper/compiler/JspRuntimeContext at org.apache.jasper.servlet.JspServlet.init(JspServlet.java, Compiled Code) Which tell me it cannot find a certain class I think Denise is right, I got a directory listing and the file you need is in the $CATALINA_HOME/lib/jasper-compiler.jar I would try adding that jar to your classpath (2000 right click my computer, go to properties, tab advanced and add to classpath) good luck Scott -Original Message- From: Al Cam [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 14, 2003 7:21 AM To: [EMAIL PROTECTED] Subject: ServletException: Servlet.init() I've installed the Tomcat 4.1.18 on my server: - Pentium II (333 Mhz) - SCO OpenServer 5.0.5 - Java J2SE 1.3.0_02 When I execute the startup.sh, it seems to work fine, but when I open the URL with 8080, it sends me the error: The server encountered an internal error () that prevented it from fulfilling this request. javax.servlet.ServletException: Servlet.init() for servlet jsp threw exception at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java, Compiled Code) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java, Compiled Code) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java, Compiled Code) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java, Compiled Code) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java, Compiled Code) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java, Compiled Code) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java, Compiled Code) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java, Compiled Code) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java, Compiled Code) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java, Compiled Code) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java, Compiled Code) at java.lang.Thread.run(Thread.java:484) root cause java.lang.NoClassDefFoundError: org/apache/jasper/compiler/JspRuntimeContext at org.apache.jasper.servlet.JspServlet.init(JspServlet.java, Compiled Code) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java, Compiled Code) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java, Compiled Code) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java, Compiled Code) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java, Compiled Code) at
How to use commons-daemon.jar
Hi, I'm in a project where we need a java server program to run as a service/daemon. After some searching I found that Tomcat 4.1.18 includes a commons-daemon.jar file. How can I use this from my own server? Is Tomcat using it? I really couldn't find any documentation on how to use it. commons-daemon homepage: http://jakarta.apache.org/commons/sandbox/daemon/index.html Thanks -- Per Thomas Jahr -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Is there any way to set request headers?
See this thread: http://marc.theaimsgroup.com/?l=tomcat-userm=104225249305524w=2 -Tim [EMAIL PROTECTED] wrote: Is there any way to set request headers, i.e., an existing mod between Apache and Tomcat, which can set request headers to be decoded by a servlet? Thanks, Joel -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: TOMCAT - MEMORY PROBLEM
If your jsp pages are uncompiled I have found a bug with the jasper-compiler stuff, but it should be fixed in 4.1.19 -Original Message- From: Joao Filipe Placido [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 14, 2003 9:36 AM To: 'Laxmikanth M.S.'; '[EMAIL PROTECTED]' Subject: RE: TOMCAT - MEMORY PROBLEM I have a very similar problem: sleeping processes (threads) increasing, free memory decreasing... And still couldn't get a solution from the list... Currently I have to restart tomcat every night! Joao Filipe Placido -Original Message- From: Laxmikanth M.S. [mailto:[EMAIL PROTECTED]] Sent: terça-feira, 14 de Janeiro de 2003 9:23 To: [EMAIL PROTECTED] Subject: TOMCAT - MEMORY PROBLEM Hi all, I have installed tomcat4.1.12 / Apache 1.3.27 with JDK 1.3.04 in Linux I have 1GB RAM...when I start the server and check the memory usage it shows 100MB use so balance 900MB is there but day by day the memory consumption is increasing and after 5 days I saw 550MB used when I checked the processes using ps -aux command I found lot of jdk1.3 processes and it keeps on increasingMy assumption is jdk processes are not getting released.how this can be solved ... is there any explicit way to release unwanted processes...why this happens details below ** ** ** ** 5:25pm up 5 days, 3:41, 3 users, load average: 0.00, 0.00, 0.00 123 processes: 122 sleeping, 1 running, 0 zombie, 0 stopped CPU states: 0.3% user, 0.1% system, 0.0% nice, 3.0% idle Mem: 1028864K av, 434108K used, 594756K free, 48K shrd, 91604K buff Swap: 2096472K av, 0K used, 2096472K free 163456K cached USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 9651 0.0 10.2 278088 105460? S Jan10 0:01/usr/local/jdk1.3 ** ** ** ** THANKS IN ADVANCE FOR HELP Laxmikanth * Disclaimer: The information in this e-mail and any attachments is confidential / privileged. It is intended solely for the addressee or addressees. If you are not the addressee indicated in this message, you may not copy or deliver this message to anyone. In such case, you should destroy this message and kindly notify the sender by reply email. Please advise immediately if you or your employer does not consent to Internet email for messages of this kind. * -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Perl And Tomcat
Good question, I read the docs under Tomcat and it says it supports CGI's (and Perl CGI). I really don't have anything to run, I just wanted to get it to work. I guess (and funny you mentioned that, because at bedtime I figured I would just run Apache), but I did get it to run on the latest nightly build.) It actually works pretty well, I was able to get a lot of old CGI.pm code to run, and it is pretty fast. After googling it for a while I found a thread that said the older Tomcats had trouble getting the system path from 2000. So I got the latest release and it works. I like to hack on things to get them to work. It is like a mission. Thanks, Scott -Original Message- From: Charles Baker [mailto:[EMAIL PROTECTED]] Sent: Monday, January 13, 2003 5:52 PM To: Tomcat Users List Subject: Re: Perl And Tomcat --- Scott Purcell [EMAIL PROTECTED] wrote: Hello, I have been beating my head on a wall all afternoon, trying to get Perl to work with Tomcat. I can call up the CGIServlet, and it shows that the tomcat side is working. The problem is in the fact that I cannot seem to get a perl cgi to run. Has anyone out there ever ran perl on Tomcat? If so does one need to call the script as param input? Any ideas, help would be appreciated. Thanks, Scott I'm curious as to why you want to do it? Why use a Java app server to call a PERL script even if it can? Why not just use Apache httpd? These questions are just for my personal edification, and aren't meant to be disparaging. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] = [EMAIL PROTECTED] http://www.charleshbaker.com/~chb/ If you cannot in the long run tell everyone what you have been doing, your doing was worthless. -- Edwim Schrodinger __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Perl And Tomcat
If you are so inclined, write a HOWTO. I'm sure there are people out there who would appreciate it. This topic has come up several times in the past, as has running PHP via a servlet. John -Original Message- From: Scott Purcell [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 14, 2003 9:48 AM To: Tomcat Users List Subject: RE: Perl And Tomcat Good question, I read the docs under Tomcat and it says it supports CGI's (and Perl CGI). I really don't have anything to run, I just wanted to get it to work. I guess (and funny you mentioned that, because at bedtime I figured I would just run Apache), but I did get it to run on the latest nightly build.) It actually works pretty well, I was able to get a lot of old CGI.pm code to run, and it is pretty fast. After googling it for a while I found a thread that said the older Tomcats had trouble getting the system path from 2000. So I got the latest release and it works. I like to hack on things to get them to work. It is like a mission. Thanks, Scott -Original Message- From: Charles Baker [mailto:[EMAIL PROTECTED]] Sent: Monday, January 13, 2003 5:52 PM To: Tomcat Users List Subject: Re: Perl And Tomcat --- Scott Purcell [EMAIL PROTECTED] wrote: Hello, I have been beating my head on a wall all afternoon, trying to get Perl to work with Tomcat. I can call up the CGIServlet, and it shows that the tomcat side is working. The problem is in the fact that I cannot seem to get a perl cgi to run. Has anyone out there ever ran perl on Tomcat? If so does one need to call the script as param input? Any ideas, help would be appreciated. Thanks, Scott I'm curious as to why you want to do it? Why use a Java app server to call a PERL script even if it can? Why not just use Apache httpd? These questions are just for my personal edification, and aren't meant to be disparaging. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] = [EMAIL PROTECTED] http://www.charleshbaker.com/~chb/ If you cannot in the long run tell everyone what you have been doing, your doing was worthless. -- Edwim Schrodinger __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: file name
Thank you all for the quick response, I got it working :-) On Tue, 2003-01-14 at 12:04, Cédric Viaud wrote: You have to generate a specific HTTP header for this. Do something like : response.setHeader(Content-Disposition,attachment; filename=+nameOfTheFile); I got this tip few days ago on this list. Regards, Cédric - Original Message - From: Felipe Schnack [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, January 14, 2003 11:37 AM Subject: file name I have a servlet that generates pdf files on the fly but when the browser opens the save as... dialog, the suggested default filename is my servlet's URL... I would like it to suggest another file name, how can i do that? -- Felipe Schnack Analista de Sistemas [EMAIL PROTECTED] Cel.: (51)91287530 Linux Counter #281893 Centro Universitário Ritter dos Reis http://www.ritterdosreis.br [EMAIL PROTECTED] Fone/Fax.: (51)32303341 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Felipe Schnack Analista de Sistemas [EMAIL PROTECTED] Cel.: (51)91287530 Linux Counter #281893 Centro Universitário Ritter dos Reis http://www.ritterdosreis.br [EMAIL PROTECTED] Fone/Fax.: (51)32303341 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: How to use commons-daemon.jar
If you mean a Windows NT/2000/XP service, the installer for Tomcat uses Alexandria Software Consulting's (free) JavaService package, which you can get at http://www.alexandriasc.com/software/JavaService/index.html I've used it for running other Java programs as NT services, and it works well, and is reasonably well-documented. A little fiddly to set up, but that's Windows complexity more than the JavaService package. If you mean *nix, try 'man inittab' and/or 'ls /etc/rc*'. Cheers, Greg Trasuk, President StratusCom Manufacturing Systems Inc. - We use information technology to solve business problems on your plant floor. http://stratuscom.ca -Original Message- From: Per Thomas Jahr [mailto:[EMAIL PROTECTED]] Sent: January 14, 2003 09:46 To: [EMAIL PROTECTED] Subject: How to use commons-daemon.jar Hi, I'm in a project where we need a java server program to run as a service/daemon. After some searching I found that Tomcat 4.1.18 includes a commons-daemon.jar file. How can I use this from my own server? Is Tomcat using it? I really couldn't find any documentation on how to use it. commons-daemon homepage: http://jakarta.apache.org/commons/sandbox/daemon/index.html Thanks -- Per Thomas Jahr -- To unsubscribe, e-mail: mailto:tomcat-user-[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Question: Tomcat4.1.18/SOAP-Session Timeout Not working
Hi Everybody, We have set session-timeout 30 /session-timeout in web.xml of soap context under tomcat 4.1.18. The problem is sessions are timing out exactly after 30 minutes even if we send transactions after initial SOAP session was established. Scope of Web service deployed is session. Basically lasttimeAccessed is not changing even if we access our webservice class using StandardSessionManager... Any ideas on how we can call access() method every time a new request is received so that SOAP session will not timeout on 30 minutes but it will time-out based on last accessed time+30 minutes. We put a listner-class in web.xml but it gets notified exactly after 30 minutes since session was created... Is it necessary to write our own SessionManager that will set lastAccessedtime every time we access the webservice class? Environment: Linux 7.3/Tomcat 4.1.8/soap.war ... Thanking you in advance. Any help would be appreciated.. This e-mail message is for the sole use of the intended recipient(s) and may contain confidential and privileged information of Transaction Network Services. 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. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Start tomcat before apache on RedHat7.3
I have a howto document in pdf and sxw (Open Office) format that may be of help. http://www.atsga.com/docs/ Mike -Original Message- From: news [mailto:[EMAIL PROTECTED]]On Behalf Of Arcadius A. Sent: Tuesday, January 14, 2003 9:13 AM To: [EMAIL PROTECTED] Subject: Re: Start tomcat before apache on RedHat7.3 Turner, John [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Then the delay shouldn't need to be more than 5 or 10 seconds. Ok John, I'm not asking you to do the whole thing for me but could you give me an example of a script that could do what you're talking about? This problem is realy strange I have TomCat 3.2 running on FreeBSD with apache3.27 and mod_jk (automatic config) when I reboot, tomcat and apache start quite fine without the need of any special script but I cannot see why I'm having troubles on RedHat. regards. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: jsp versus xml syntax
Noel J. Bergman wrote: Do yourself a favor and skip learning the XML syntax. It's for tools, not people. Oh, I would argue that considerably. In fact I did. That is no longer true in JSP v2.0. It is absolutely an absurdity to treat jsp:action|custom-tag differently from jsp:expression|declaration|scriptlet|directive. It is also also ridiculous to require users to remember which obscure character (@%!=) means what behavior. That is the short version. The argument presented to Sun a year or so back was considerably longer. So then what is the deal? A former post had me finally nodding my head in understanding that in JSPs, use only JSP syntax, because you can't mix the two but then this one raises the good point that aren't jsp:useBean tags and custom tags XML syntax? and they are allowed. So for the record, what is allowed and what isn't? Sorry that I am so confused about this. Thanks Erik -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: ServletException: Servlet.init()
Ok, thanks, I added the $CATALINA_HOME/common/lib to the CLASSPATH, but now I have the next error: org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: [javac] Compiling 1 source file [javac] Modern compiler not found - looking for classic compiler at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:130) at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:293) at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java, Compiled Code) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:352) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:474) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java, Compiled Code) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java, Compiled Code) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java, Compiled Code) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java, Compiled Code) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java, Compiled Code) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java, Compiled Code) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java, Compiled Code) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java, Compiled Code) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java, Compiled Code) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java, Compiled Code) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java, Compiled Code) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java, Compiled Code) at java.lang.Thread.run(Thread.java:484) _ Charla con tus amigos en línea mediante MSN Messenger: http://messenger.microsoft.com/es -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Jndi.properties file
when i deploy the war to Tomcat, and want to get my entity bean I can't find the Contex where my entity bean is. I ran into the same problem with JBoss and Tomcat running in separate JVM's. Where can i put my jndi.properties file. Any ideas??? Yup.try something like this: Properties props = new Properties(); props.load( servlet.getServletContext().getResourceAsStream( /WEB-INF/classes/jndi.properties ) ); InitialContext ctx = new InitialContext( props ); Put your jndi.properties file in the specified subdirectory and then use the ctx as normal for an Entity Bean. However, I must comment on your using an Entity bean as a remotely accessible component being accessed by a servlet or JSP. For scalable systems, this is a poor design practice. Best to hide the entity beans behind a service-oriented session bean facade. Andrzej Jan Taramina Chaeron Corporation: Enterprise System Solutions http://www.chaeron.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
general question - Tomcat/Linux deployment
Hi, I have a question to people who have an experience with production level deployments of Tomcat based apps on Linux (preferrably RedHat). What are the best recommended combinations of Tomcat version - OS version (maybe with patches) - JVM version for deployment? Also, please share your related experience with WinNT/Win2000/WinXP. Thank you. Igor TN -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
servlet with Tomcat
I will expose you a problem I found with Tomcat 4.1.18 but first is better if I describe to you what's happened. System administrators of my department installed J2SDK 1.4.1 and Tomcat 4.1.18 in a local machine. After that I have setted the enviroment variables CATALINA_HOME to the install_dir of Tomcat and JAVA_HOME to the install_dir of J2SDK1.4.1 classes. Then I can start Tomcat using the script $CATALINA_HOME/bin/startup.sh (it is a Linux machine) and I can see the local home page $CATALINA_HOME/webapp/ROOT/index.html browsing http://localhost:8080/ . I can see aslo the example servlets situated at $CATALINA_HOME/webapp/examples/WEB-INF/classes/ browsing http://localhost:8080/examples/servlet/ServletName but I cannot see servlets situated in the usual work directory $CATALINA_HOME/webapp/ROOT/WEB-INF/classes browsing http://localhost:8080/servlet/ServletName (I'm just a beginner of JSP technology and this is what I found in a JSP manual that I should do). I mean that if I create any my servlet file called MyServlet.class and I put it in the directory $CATALINA_HOME/webapp/examples/WEB-INF/classes/ I can see it, but I canno see it If I put it in the directory $CATALINA_HOME/webapp/ROOT/WEB-INF/classes. I can also tell you that I can see any html page situated at $CATALINA_HOME/webapp/ROOT/MyPage.html browsing http://localhost:8080/MyPage.html Do you think this is a problem of configuration of Tomcat? How can I have a dedicated directory for my servlet classes? I send to you this mail because I'm just a beginner of servlets and Tomcat, and system administrators of my department told me that they never used Tonmcat before now, so they cannot (or they don't want to) help me. I would be very please to you if someone of you could help me. Thanks Nicola -- --- Nicola Galante Universita' degli studi di Siena -- ITALY Tel. (PD) (+39) 049 827 7214 e-mail: [EMAIL PROTECTED] --- -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: general question - Tomcat/Linux deployment
Personally, RH 7.2 + JDK 1.3.1 has never given me any problems. On windows, 2000 XP are equally stable with the same JVM version. Lajos Igor I. Tovstopyat-Nelip wrote: Hi, I have a question to people who have an experience with production level deployments of Tomcat based apps on Linux (preferrably RedHat). What are the best recommended combinations of Tomcat version - OS version (maybe with patches) - JVM version for deployment? Also, please share your related experience with WinNT/Win2000/WinXP. Thank you. Igor TN -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- galatea.com Cocoon training, consulting support -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: servlet with Tomcat
Nicola - Read the thread from yesterday with the titles Can't find servlet - I had the exact same problem, it has to do with the invoker servlet - you need to add specific mappings in your web.xml file for each servlet, and disable the mappings for the invoker servlet under /conf/web.xml, it is a security fix from 4.1 and up I believe... (with thanks to John turner again) Geoff -Original Message- From: Nicola Galante [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 14, 2003 11:29 AM To: Tomcat User List Subject: servlet with Tomcat I will expose you a problem I found with Tomcat 4.1.18 but first is better if I describe to you what's happened. System administrators of my department installed J2SDK 1.4.1 and Tomcat 4.1.18 in a local machine. After that I have setted the enviroment variables CATALINA_HOME to the install_dir of Tomcat and JAVA_HOME to the install_dir of J2SDK1.4.1 classes. Then I can start Tomcat using the script $CATALINA_HOME/bin/startup.sh (it is a Linux machine) and I can see the local home page $CATALINA_HOME/webapp/ROOT/index.html browsing http://localhost:8080/ . I can see aslo the example servlets situated at $CATALINA_HOME/webapp/examples/WEB-INF/classes/ browsing http://localhost:8080/examples/servlet/ServletName but I cannot see servlets situated in the usual work directory $CATALINA_HOME/webapp/ROOT/WEB-INF/classes browsing http://localhost:8080/servlet/ServletName (I'm just a beginner of JSP technology and this is what I found in a JSP manual that I should do). I mean that if I create any my servlet file called MyServlet.class and I put it in the directory $CATALINA_HOME/webapp/examples/WEB-INF/classes/ I can see it, but I canno see it If I put it in the directory $CATALINA_HOME/webapp/ROOT/WEB-INF/classes. I can also tell you that I can see any html page situated at $CATALINA_HOME/webapp/ROOT/MyPage.html browsing http://localhost:8080/MyPage.html Do you think this is a problem of configuration of Tomcat? How can I have a dedicated directory for my servlet classes? I send to you this mail because I'm just a beginner of servlets and Tomcat, and system administrators of my department told me that they never used Tonmcat before now, so they cannot (or they don't want to) help me. I would be very please to you if someone of you could help me. Thanks Nicola -- --- Nicola Galante Universita' degli studi di Siena -- ITALY Tel. (PD) (+39) 049 827 7214 e-mail: [EMAIL PROTECTED] --- -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Tomcat 4.1.18 Configuration with UNIX
Dear All I am trying to Install tomcat 4.1.18 on Unix Platform. When i try accessing the jsp examples JSP-Servlet-JSP,I get the following error. The same type of error is displayed accessing any JSP Examples from the examples/jsp/index.html. Could any one help me in sorting it out. Any help would be appreciated. Thanks. Regards. Neginder Error Page: org.apache.jasper.JasperException: Unable to compile class for JSP at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:479) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:184) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:493) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:386) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:530) at java.lang.Thread.run(Thread.java:536) root cause java.io.FileNotFoundException: /opt/jakarta-tomcat-4.1.18/work/Standalone/localhost/examples/jsp/jsptoserv/jsptoservlet_jsp.java (No such file or directory) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.(FileOutputStream.java:176) at java.io.FileOutputStream.(FileOutputStream.java:70) at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:212) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:351) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:474) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:184) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at
Re: file name
From: Andoni [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: file name Date: Tue, 14 Jan 2003 10:56:54 - response.setHeader(Content-Disposition, attachment; filename=SuggestedFileName.pdf); - Original Message - From: Felipe Schnack [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, January 14, 2003 10:37 AM Subject: file name I have a servlet that generates pdf files on the fly but when the browser opens the save as... dialog, the suggested default filename is my servlet's URL... I would like it to suggest another file name, how can i do that? -- Felipe Schnack Analista de Sistemas [EMAIL PROTECTED] Cel.: (51)91287530 Linux Counter #281893 Centro Universitário Ritter dos Reis http://www.ritterdosreis.br [EMAIL PROTECTED] Fone/Fax.: (51)32303341 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: ServletException: Servlet.init()
I don't get it. I had trouble installing 4.1.18 on my Win 2000 box also. I dropped down to 4.0.6 and it went right up. You may want to try removing that tomcat, and trying another ... Wish I could be of better help. I know on the 4.0.6, I just defined the JAVA_HOME variable and it just worked. Let us know Scott -Original Message- From: Al Cam [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 14, 2003 9:13 AM To: [EMAIL PROTECTED] Subject: RE: ServletException: Servlet.init() Ok, thanks, I added the $CATALINA_HOME/common/lib to the CLASSPATH, but now I have the next error: org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: [javac] Compiling 1 source file [javac] Modern compiler not found - looking for classic compiler at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:130) at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:293) at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java, Compiled Code) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:352) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:474) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java, Compiled Code) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java, Compiled Code) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java, Compiled Code) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java, Compiled Code) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java, Compiled Code) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java, Compiled Code) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java, Compiled Code) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java, Compiled Code) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java, Compiled Code) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java, Compiled Code) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java, Compiled Code) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java, Compiled Code) at java.lang.Thread.run(Thread.java:484) _ Charla con tus amigos en línea mediante MSN Messenger: http://messenger.microsoft.com/es -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: ServletException: Servlet.init()
Do you have JDK installed on your machine? Also, do you have $JAVA_HOME defined and exported in your classpath? Denise Mangano Help Desk Analyst Complus Data Innovations, Inc. -Original Message- From: Al Cam [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 14, 2003 10:13 AM To: [EMAIL PROTECTED] Subject: RE: ServletException: Servlet.init() Ok, thanks, I added the $CATALINA_HOME/common/lib to the CLASSPATH, but now I have the next error: org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: [javac] Compiling 1 source file [javac] Modern compiler not found - looking for classic compiler at org.apache.jasper.compiler.DefaultErrorHandler.javacError(Defa ultErrorHandler.java:130) at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDis patcher.java:293) at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java, Compiled Code) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:352) at org.apache.jasper.JspCompilationContext.compile(JspCompilation Context.java:474) at org.apache.jasper.servlet.JspServletWrapper.service(JspServlet Wrapper.java, Compiled Code) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet .java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java, Compiled Code) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilt er(ApplicationFilterChain.java, Compiled Code) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli cationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardW rapperValve.java, Compiled Code) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipel ine.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardC ontextValve.java, Compiled Code) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipel ine.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContex t.java:2415) at org.apache.catalina.core.StandardHostValve.invoke(StandardHost Valve.java, Compiled Code) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDi spatcherValve.java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport Valve.java:172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipel ine.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEn gineValve.java, Compiled Code) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipel ine.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java, Compiled Code) at org.apache.coyote.http11.Http11Processor.process(Http11Process or.java, Compiled Code) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandle r.processConnection(Http11Protocol.java, Compiled Code) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoi nt.java, Compiled Code) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run( ThreadPool.java, Compiled Code) at java.lang.Thread.run(Thread.java:484) _ Charla con tus amigos en línea mediante MSN Messenger: http://messenger.microsoft.com/es -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: ServletException: Servlet.init()
Sorry missed that you have J2SE installed... Can you compile any simple test java program at all?? Denise Mangano Help Desk Analyst Complus Data Innovations, Inc. -Original Message- From: Denise Mangano [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 14, 2003 10:49 AM To: 'Tomcat Users List' Subject: RE: ServletException: Servlet.init() Do you have JDK installed on your machine? Also, do you have $JAVA_HOME defined and exported in your classpath? Denise Mangano Help Desk Analyst Complus Data Innovations, Inc. -Original Message- From: Al Cam [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 14, 2003 10:13 AM To: [EMAIL PROTECTED] Subject: RE: ServletException: Servlet.init() Ok, thanks, I added the $CATALINA_HOME/common/lib to the CLASSPATH, but now I have the next error: org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: [javac] Compiling 1 source file [javac] Modern compiler not found - looking for classic compiler at org.apache.jasper.compiler.DefaultErrorHandler.javacError(Defa ultErrorHandler.java:130) at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDis patcher.java:293) at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java, Compiled Code) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:352) at org.apache.jasper.JspCompilationContext.compile(JspCompilation Context.java:474) at org.apache.jasper.servlet.JspServletWrapper.service(JspServlet Wrapper.java, Compiled Code) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet .java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java, Compiled Code) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilt er(ApplicationFilterChain.java, Compiled Code) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli cationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardW rapperValve.java, Compiled Code) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipel ine.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardC ontextValve.java, Compiled Code) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipel ine.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContex t.java:2415) at org.apache.catalina.core.StandardHostValve.invoke(StandardHost Valve.java, Compiled Code) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDi spatcherValve.java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport Valve.java:172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipel ine.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEn gineValve.java, Compiled Code) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipel ine.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java, Compiled Code) at org.apache.coyote.http11.Http11Processor.process(Http11Process or.java, Compiled Code) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandle r.processConnection(Http11Protocol.java, Compiled Code) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoi nt.java, Compiled Code) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run( ThreadPool.java, Compiled Code) at java.lang.Thread.run(Thread.java:484) _ Charla con tus
RE: Tomcat 4.1.18 Configuration with UNIX
Did you install the JDK or did you install the JRE? John -Original Message- From: Neginder Singh [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 14, 2003 10:26 AM To: [EMAIL PROTECTED] Subject: Tomcat 4.1.18 Configuration with UNIX Dear All I am trying to Install tomcat 4.1.18 on Unix Platform. When i try accessing the jsp examples JSP-Servlet-JSP,I get the following error. The same type of error is displayed accessing any JSP Examples from the examples/jsp/index.html. Could any one help me in sorting it out. Any help would be appreciated. Thanks. Regards. Neginder Error Page: org.apache.jasper.JasperException: Unable to compile class for JSP at org.apache.jasper.JspCompilationContext.compile(JspCompilation Context.java:479) at org.apache.jasper.servlet.JspServletWrapper.service(JspServlet Wrapper.java:184) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet .java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilt er(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli cationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardW rapperValve.java:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipel ine.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardC ontextValve.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Aut henticatorBase.java:493) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipel ine.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContex t.java:2415) at org.apache.catalina.core.StandardHostValve.invoke(StandardHost Valve.java:180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDi spatcherValve.java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport Valve.java:172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipel ine.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEn gineValve.java:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipel ine.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter. java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Process or.java:432) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandle r.processConnection(Http11Protocol.java:386) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoi nt.java:534) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run( ThreadPool.java:530) at java.lang.Thread.run(Thread.java:536) root cause java.io.FileNotFoundException: /opt/jakarta-tomcat-4.1.18/work/Standalone/localhost/examples/ jsp/jsptoserv/jsptoservlet_jsp.java (No such file or directory) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.(FileOutputStream.java:176) at java.io.FileOutputStream.(FileOutputStream.java:70) at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:212) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:351) at org.apache.jasper.JspCompilationContext.compile(JspCompilation Context.java:474) at org.apache.jasper.servlet.JspServletWrapper.service(JspServlet Wrapper.java:184) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet .java:295) at
Open Source - Top 10 Security Vulnerabilities
Hello everyone, Just thought some people would like to see this, if they had not heard of it already. You can read the report on their site, as well as get the PDF form: http://www.owasp.org/ Lior - Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now
How can I clear response headers?
I have created a servlet that serves both html and images, I set the ContentType and everything is okay. However I have noticed whenever I use BASIC authentication on this servlet Tomcat automatically adds these to the response header: Pragma: No-cache Cache-Control: no-cache Expires: Thu, 01 Jan 1970 00:00:00 GMT I understand that this should be used when you are serving html so that its not cached, however I would like to remove these headers when I am serving images since they should be cached. But alas there is no clearHeader() only setHeader() in HttpServletResponse. How can I do this? - Kristján
RE: Tomcat 4.1.18 Configuration with UNIX
John, Dumb question, but JDK is required in order to compile java files right?? ( I always assumed this was the case but never knew for sure - and I always used JDK). There is another post (Topic: ServletException Servlet.init()) and he has J2RE installed and can't compile... Denise Mangano Help Desk Analyst Complus Data Innovations, Inc. -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 14, 2003 10:49 AM To: 'Tomcat Users List' Subject: RE: Tomcat 4.1.18 Configuration with UNIX Did you install the JDK or did you install the JRE? John -Original Message- From: Neginder Singh [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 14, 2003 10:26 AM To: [EMAIL PROTECTED] Subject: Tomcat 4.1.18 Configuration with UNIX Dear All I am trying to Install tomcat 4.1.18 on Unix Platform. When i try accessing the jsp examples JSP-Servlet-JSP,I get the following error. The same type of error is displayed accessing any JSP Examples from the examples/jsp/index.html. Could any one help me in sorting it out. Any help would be appreciated. Thanks. Regards. Neginder Error Page: org.apache.jasper.JasperException: Unable to compile class for JSP at org.apache.jasper.JspCompilationContext.compile(JspCompilation Context.java:479) at org.apache.jasper.servlet.JspServletWrapper.service(JspServlet Wrapper.java:184) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet .java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilt er(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli cationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardW rapperValve.java:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipel ine.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardC ontextValve.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Aut henticatorBase.java:493) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipel ine.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContex t.java:2415) at org.apache.catalina.core.StandardHostValve.invoke(StandardHost Valve.java:180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDi spatcherValve.java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport Valve.java:172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipel ine.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEn gineValve.java:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipel ine.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter. java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Process or.java:432) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandle r.processConnection(Http11Protocol.java:386) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoi nt.java:534) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run( ThreadPool.java:530) at java.lang.Thread.run(Thread.java:536) root cause java.io.FileNotFoundException: /opt/jakarta-tomcat-4.1.18/work/Standalone/localhost/examples/ jsp/jsptoserv/jsptoservlet_jsp.java (No such file or directory)
RE: Tomcat 4.1.18 Configuration with UNIX
I always install the JDK as well. As far as I know, the Jasper compiler (the thing that compiles JSPs into servlets) only comes with the JDK. So, Tomcat can run with just the JRE, but you have to make some adjustments. Also, which Tomcat is used can have an effect (full vs. LE) as well. Hopefully someone will correct me if I am wrong. John -Original Message- From: Denise Mangano [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 14, 2003 10:59 AM To: 'Tomcat Users List' Subject: RE: Tomcat 4.1.18 Configuration with UNIX John, Dumb question, but JDK is required in order to compile java files right?? ( I always assumed this was the case but never knew for sure - and I always used JDK). There is another post (Topic: ServletException Servlet.init()) and he has J2RE installed and can't compile... Denise Mangano Help Desk Analyst Complus Data Innovations, Inc. -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 14, 2003 10:49 AM To: 'Tomcat Users List' Subject: RE: Tomcat 4.1.18 Configuration with UNIX Did you install the JDK or did you install the JRE? John -Original Message- From: Neginder Singh [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 14, 2003 10:26 AM To: [EMAIL PROTECTED] Subject: Tomcat 4.1.18 Configuration with UNIX Dear All I am trying to Install tomcat 4.1.18 on Unix Platform. When i try accessing the jsp examples JSP-Servlet-JSP,I get the following error. The same type of error is displayed accessing any JSP Examples from the examples/jsp/index.html. Could any one help me in sorting it out. Any help would be appreciated. Thanks. Regards. Neginder Error Page: org.apache.jasper.JasperException: Unable to compile class for JSP at org.apache.jasper.JspCompilationContext.compile(JspCompilation Context.java:479) at org.apache.jasper.servlet.JspServletWrapper.service(JspServlet Wrapper.java:184) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet .java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilt er(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli cationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardW rapperValve.java:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipel ine.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardC ontextValve.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Aut henticatorBase.java:493) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipel ine.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContex t.java:2415) at org.apache.catalina.core.StandardHostValve.invoke(StandardHost Valve.java:180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDi spatcherValve.java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport Valve.java:172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipel ine.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEn gineValve.java:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValv eContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipel ine.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter. java:223)
RE: ServletException: Servlet.init()
Ok, I installed Tomcat 4.0.6 instead of 4.1.18 and worked fine. Thanks again for your time. From: Scott Purcell [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: RE: ServletException: Servlet.init() Date: Tue, 14 Jan 2003 09:43:27 -0600 I don't get it. I had trouble installing 4.1.18 on my Win 2000 box also. I dropped down to 4.0.6 and it went right up. You may want to try removing that tomcat, and trying another ... Wish I could be of better help. I know on the 4.0.6, I just defined the JAVA_HOME variable and it just worked. Let us know Scott -Original Message- From: Al Cam [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 14, 2003 9:13 AM To: [EMAIL PROTECTED] Subject: RE: ServletException: Servlet.init() _ Únete al mayor servicio mundial de correo electrónico: http://www.hotmail.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Precompiling JSP - setup
Is there any documentation that explains how to setup parameters for precompiling JSP's when Tomcat Server starts up or can somebody please explain how to do this? Hari
RE: [OT] Question regarding payment processing
Denise, I will be able to read the docs after lunch today. What Noel was talking about is the asynchronous web gateways, like authorize.net. That is one of the most common situations. Keep in mind, I have not read your docs yet, but I will write anyway. From your descriptions it sounds like Chase has provided you with a VPN like client. You pass in via command line args or STDIN and it pumps out results on STDOUT or to a file. Typically gateways provide such an app to guarantee bug free operation, but they fail to document it as a software API. In these situations one can dumb down your application, find competent tier2 support (like I said, we might be able to help), or write your own VPN app (as a class file). I don't know what your time frame is like, but there is a chance that there is a synchronous protocol, over SSL you might be able to use. If that is the case, for security/simplicity reasons, you might want to do that. But it would be a rewrite of the comm routines. -Jason Pyeron On Tue, 14 Jan 2003, Denise Mangano wrote: Noel, The problems that I am having have to do with specifically Chase's values that are being returned to me and the possible scenarios each value can cause. My frustration is that I ask a simple question such as will a decline always have SomeValue is 5 - and what I get back is a bunch of business logic explaining that I am only concerned with approvals, anything else is a non-transaction. While this is true in the business sense, my program is concerned with every scenario, and everything that completes the process (including declines) is considered a transaction. What do you mean by the gateway mechanism doing a callback to one of my pages? The way I have it set up is my JSP instantiates transactionBean with all the necessary values. The methods in this bean do the actual formatting of the input document, make the API call to the gateway to submit the input document, and receive the result document. The bean will also determine if the transaction is a success, and if it is a decline or approval. Then my JSP will access this information to relay it to the browser ( as well as include a script that writes it back to my back end app). We are not storing any user information, so a database is not coming into play for me. The backend app is a UNIX program that I pass a value to via a URL and the program on the UNIX box parses that URL and records the appropriate values. Is this a feasible scenario? If so, then wouldn't the session be persistent throughout the process? Thanks, Denise Mangano Help Desk Analyst Complus Data Innovations, Inc. -Original Message- From: Noel J. Bergman [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 14, 2003 4:11 AM To: Tomcat Users List Subject: RE: [OT] Question regarding payment processing Denise, I haven't done Chase's gateway specifically, but I've done some others. What's problems are you having? One issue I encountered in the past is that some of the gateway mechanisms will do a callback to one of your pages. The catch is that you want to be able to re-associate the session, but you won't get a session cookie. In the past, I was able to do that by explicit URL rewriting. I haven't tried it with recent versions of tomcat, but I should still have an example of that technique around here somewhere. --- Noel -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- - - - Jason Pyeron http://www.pyerotechnics.com - - Owner Lead Pyerotechnics Development, Inc. - - +1 410 808 6646 (c) 500 West University Parkway #1S - - +1 410 467 2266 (f) Baltimore, Maryland 21210-3253 - - - -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, purge the message from your system and notify the sender immediately. Any other use of the email by you is prohibited. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Apache 2.0 + Tomcat 4.1.12 + Realms + Java WebStart don't work
I have a little problem with Apache 2.0 + Tomcat 4.1.2 using JDBC Realms and Java WebStart. If i configure the web application a call the JNLP file, all works, but when I include a REALM, the system is unable to load de JNLP file. I made several test and I am sure that the problem is when you use realm logins. Any idea? Thanks Antonio Vázquez [EMAIL PROTECTED] www.winsoftsystems.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
JAAS and Catalina
Hi, Does anyone remember How the JAASRealm is configured? I did a search on the list archive and I gather its been some time since there has been talk of JAAS. I have modified server.xml to Realm className=org.apache.catalina.realm.JAASRealm debug=99 loginContext=MasterJMSLogin/ . I have also modified the catalina.sh (under start and -security) to use the following VM parameters; -Djava.security.auth.policy=$CATALINA_BASE/conf/jaas.policy -Djava.security.auth.login.config=$CATALINA_BASE/conf/jaas.conf. When i run the http://localhost:8080/examples/jsp/security/protected/login.jsp , the page works as expected in that authentication fails but with the following error in the log file : javax.security.auth.login.LoginException: No LoginModule configured for Tomcat The config I pass into the VM contains the following MasterJMSLogin{ nl.dnd.security.auth.MasterLoginModule required; }; I tried to change the loginContext to Tomcat (both in server.xml and in the jaas.conf but the problem persists. Any help would be deeply appreciated in elucidating the problem. regards Suhail -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: TOMCAT - MEMORY PROBLEM
Same problem here, no solution yet. I have checked and checked for leaks in our application using all kinds of tools, but can't find anything when running on a windowns development server. Haven't had the resources to try profiling the application running on the production linux server because we have too many hosts and the system runs out of native threads when using a profiler. Brandon -Original Message- From: John Trollinger [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 14, 2003 8:45 AM To: 'Tomcat Users List' Subject: RE: TOMCAT - MEMORY PROBLEM If your jsp pages are uncompiled I have found a bug with the jasper-compiler stuff, but it should be fixed in 4.1.19 -Original Message- From: Joao Filipe Placido [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 14, 2003 9:36 AM To: 'Laxmikanth M.S.'; '[EMAIL PROTECTED]' Subject: RE: TOMCAT - MEMORY PROBLEM I have a very similar problem: sleeping processes (threads) increasing, free memory decreasing... And still couldn't get a solution from the list... Currently I have to restart tomcat every night! Joao Filipe Placido -Original Message- From: Laxmikanth M.S. [mailto:[EMAIL PROTECTED]] Sent: terça-feira, 14 de Janeiro de 2003 9:23 To: [EMAIL PROTECTED] Subject: TOMCAT - MEMORY PROBLEM Hi all, I have installed tomcat4.1.12 / Apache 1.3.27 with JDK 1.3.04 in Linux I have 1GB RAM...when I start the server and check the memory usage it shows 100MB use so balance 900MB is there but day by day the memory consumption is increasing and after 5 days I saw 550MB used when I checked the processes using ps -aux command I found lot of jdk1.3 processes and it keeps on increasingMy assumption is jdk processes are not getting released.how this can be solved ... is there any explicit way to release unwanted processes...why this happens details below ** ** ** ** 5:25pm up 5 days, 3:41, 3 users, load average: 0.00, 0.00, 0.00 123 processes: 122 sleeping, 1 running, 0 zombie, 0 stopped CPU states: 0.3% user, 0.1% system, 0.0% nice, 3.0% idle Mem: 1028864K av, 434108K used, 594756K free, 48K shrd, 91604K buff Swap: 2096472K av, 0K used, 2096472K free 163456K cached USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 9651 0.0 10.2 278088 105460? S Jan10 0:01/usr/local/jdk1.3 ** ** ** ** THANKS IN ADVANCE FOR HELP Laxmikanth * Disclaimer: The information in this e-mail and any attachments is confidential / privileged. It is intended solely for the addressee or addressees. If you are not the addressee indicated in this message, you may not copy or deliver this message to anyone. In such case, you should destroy this message and kindly notify the sender by reply email. Please advise immediately if you or your employer does not consent to Internet email for messages of this kind. * -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
AW: Apache 2.0 + Tomcat 4.1.12 + Realms + Java WebStart don't work
I was using Tomcat 4.1 with JavaWebStart (JWS) and it worked fine! Does your realm work ok? IOW: Can you call html/jsp-pages which are access protected? Try calling a page that is in the same directory as the JNLP. Also: Which version of JavaWebStart are you using? If you say: the system is unable to load the JNLP file, do you mean the browser or do you mean JavaWebStart? Do you use BASIC or form-based authentication? I use BASIC and I'm not sure if (and how!) form-based could work... (I was happy to see that JavaWebStart supported BASIC :-) Let us know... Holger Btw: As a hint for everybody who's using authentication w/ JavaWebStart: I found it quite annoying to enter username/password every time I launch the application (!!), just because JWS wants to check for updates. When you press Cancel (No, I don't want to check for updates...), JWS does not launch the application. Then I found out that JWS uses the HEAD-method to check if files were modified. GREAT!! You can use access-protection for everything but HEAD and you're prompted for the password only if an update is available on the server (which is usually a cool method...) -Ursprüngliche Nachricht- Von: Antonio Vázquez [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 14. Januar 2003 17:46 An: Tomcat Betreff: Apache 2.0 + Tomcat 4.1.12 + Realms + Java WebStart don't work I have a little problem with Apache 2.0 + Tomcat 4.1.2 using JDBC Realms and Java WebStart. If i configure the web application a call the JNLP file, all works, but when I include a REALM, the system is unable to load de JNLP file. I made several test and I am sure that the problem is when you use realm logins. Any idea? Thanks Antonio Vázquez [EMAIL PROTECTED] www.winsoftsystems.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
REPOST 4.1.18 installation problems
After installing tomcat 4.1.18 on windows 2000, I get the following exception trying to access my web application. This app worked fine with 4.0.6. I have also included my web.xml file for this application. Thanks in advance. org.apache.jasper.JasperException: org/apache/xerces/framework/XMLParser at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2 48) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase .java:550) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2 46) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne ction(Http11Protocol.java:386) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:530) at java.lang.Thread.run(Thread.java:536) ?xml version=1.0 encoding=ISO-8859-1?!DOCTYPE web-appPUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd;web-appmime-mapping extensionjs/extension mime-typetext/javascript/mime-type /mime-mapping welcome-file-list welcome-fileLogin.jsp/welcome-file /welcome-file-list security-constraint display-nameWWEX Security Constraint/display-name web-resource-collection web-resource-nameWorldwide Express/web-resource-name !-- Define the context-relative URL(s) to be protected -- url-pattern/*/url-pattern /web-resource-collection auth-constraint !-- Anyone with one of the listed roles may access this area -- role-nameuser/role-name /auth-constraint user-data-constraint transport-guaranteeCONFIDENTIAL/transport-guarantee /user-data-constraint/security-constraintlogin-config auth-methodBASIC/auth-method realm-nameWorldwide Express/realm-name/login-config/web-app -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL
Fw: REPOST 4.1.18 installation problems
After some experimenting, I have discovered that it is a bean that is behind this problem. If I remove the bean reference, the error goes away (but then of course, other things in the application do not work). Does anybody have any idea what could be behind this? - Original Message - From: Nathan McMinn [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, January 14, 2003 11:10 AM Subject: REPOST 4.1.18 installation problems After installing tomcat 4.1.18 on windows 2000, I get the following exception trying to access my web application. This app worked fine with 4.0.6. I have also included my web.xml file for this application. Thanks in advance. org.apache.jasper.JasperException: org/apache/xerces/framework/XMLParser at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2 48) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase .java:550) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2 46) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne ction(Http11Protocol.java:386) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:530) at java.lang.Thread.run(Thread.java:536) ?xml version=1.0 encoding=ISO-8859-1?!DOCTYPE web-appPUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd;web-appmime-mapping extensionjs/extension mime-typetext/javascript/mime-type /mime-mapping welcome-file-list welcome-fileLogin.jsp/welcome-file /welcome-file-list security-constraint display-nameWWEX Security Constraint/display-name web-resource-collection web-resource-nameWorldwide Express/web-resource-name !-- Define the context-relative URL(s) to be protected -- url-pattern/*/url-pattern
[getRequestURI() encoding]
Hi, I have an encoding problem using Tomcat 4.1.18 and coyote. The problem occurs when URIs contain encoded characters (like french language). original URI = http://server:8080/potalux/get/files/caf%E9.jpg Tomcat 4.1.18/Apache 2.0.43 with jk2 HttpServletRequest.getRequestURI() = http://server:8080/potalux/get/files/café.jpg Tomcat 4.1.18 HttpServletRequest.getRequestURI() = http://server:8080/potalux/get/files/caf%E9.jpg Results are differents ! -- TOMCAT SERVER.XML Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8080 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=100 debug=0 connectionTimeout=2 useURIValidationHack=false disableUploadTimeout=true / Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8009 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=0 useURIValidationHack=false protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/ -- -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: jsp versus xml syntax
On Tue, 14 Jan 2003, Erik Price wrote: Date: Tue, 14 Jan 2003 10:11:32 -0500 From: Erik Price [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: jsp versus xml syntax Noel J. Bergman wrote: Do yourself a favor and skip learning the XML syntax. It's for tools, not people. Oh, I would argue that considerably. In fact I did. That is no longer true in JSP v2.0. It is absolutely an absurdity to treat jsp:action|custom-tag differently from jsp:expression|declaration|scriptlet|directive. It is also also ridiculous to require users to remember which obscure character (@%!=) means what behavior. That is the short version. The argument presented to Sun a year or so back was considerably longer. So then what is the deal? A former post had me finally nodding my head in understanding that in JSPs, use only JSP syntax, because you can't mix the two but then this one raises the good point that aren't jsp:useBean tags and custom tags XML syntax? and they are allowed. So for the record, what is allowed and what isn't? Sorry that I am so confused about this. To get the whole answer, you need to download and read the JSP spec. http://java.sun.com/products/jsp/download.html The short answer: In JSP 1.x you cannot mix the two syntaxes -- period. Custom tags are expressed in sort of XML syntax (but without the standard namespace declarations. If you use the XML syntax, you also need to be prepared to put CDATA blocks around all your code inside things like jsp:expression. I haven't reviewed what JSP 2.0 came up with as their final answer, but my recollection is that they were focused primarily on improving the usability of the XML syntax, but not on allowing mixing. Need to review the Proposed Final Draft. I stand by my statement that it's a waste of effort for a user (especially a newbie) to take the time to learn both syntaxes. Thanks Erik Craig -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Load balancing Tomcat 3.3 from Apache with mod_jk or mod_jser ve-- SOLVED
I already looked at the ubeans site but it does not detail how to load balance Tomcat 3.3. Abraham -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Monday, January 13, 2003 7:41 PM To: 'Tomcat Users List' Subject: RE: Load balancing Tomcat 3.3 from Apache with mod_jk or mod_jser ve -- SOLVED A good HOWTO: http://www.ubeans.com/tomcat John -Original Message- From: Abraham Kang [mailto:[EMAIL PROTECTED]] Sent: Monday, January 13, 2003 10:19 PM To: [EMAIL PROTECTED] Subject: Load balancing Tomcat 3.3 from Apache with mod_jk or mod_jserve -- SOLVED Ok, Here is my setup: Redhat 8 Apache 2.0.43 Tomcat 3.3.1 (two instances on same box for testing) Apache Config: //httpd.conf added the following at end of file Include /path/to/your/mod_jk.conf User userThatOwnsStaticFileDirectories Group groupThatOwnsStaticFileDirectories # //mod_jk.conf LoadModule jk_module modules/mod_jk.so #AddModule mod_jk.c JkWorkersFile /path/to/your/workers.properties JkLogFile /path/to/your/mod_jk.log JkLogLevel emerg ### Static files are served by Apache from alternate directory Alias /webapp/html/ /home/user/webapp/html/ Directory /home/user/webapp/html/ Options Indexes FollowSymLinks AllowOverride None Order allow,deny Allow from all /Directory ### Protect the WEB-INF directory Location /*/WEB-INF/* AllowOverride None deny from all /Location ### Define what Tomcat is responsible for and point it to the loadbalancer worker JkMount /admin loadbalancer JkMount /admin/* loadbalancer JkMount /examples loadbalancer JkMount /examples/* loadbalancer JkMount /abc/servlet loadbalancer JkMount /abc/servlet/* loadbalancer JkMount /*.jsp loadbalancer # //workers.properties ### set you workers.tomcat_home, workers.java_home, adn ps ### Make sure to list all of the workers this is the key worker.list=ajp13_1,ajp13_2,loadbalancer worker.ajp13_1.port=8008 worker.ajp13_1.host=54.2.1.55 worker.ajp13_1.type=ajp13 worker.ajp13_1.lbfactor=1 ### Because I am using Apache 2 worker.ajp13_1.cachesize=10 worker.ajp13_2.port=8009 worker.ajp13_2.host=54.2.1.56 worker.ajp13_2.type=ajp13 worker.ajp13_2.lbfactor=1 ### Because I am using Apache 2 worker.ajp13_2.cachesize=10 worker.loadbalancer.type=lb worker.loadbalancer.balanced_workers=ajp13_1,ajp13_2 # //server.xml -- NO CHANGES //There workers.list does everything for you. I don't know what replaced the Engine element Special Thanks to Patrick Lin for helping me solve this. Hope This Helps Someone, Abraham Kang -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.434 / Virus Database: 243 - Release Date: 12/25/2002 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.434 / Virus Database: 243 - Release Date: 12/25/2002 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Load balancing Tomcat 3.3 from Apache with mod_jk or mod_jser ve -- SOLVED
My point was that the load balancing is done with mod_jk and workers.properties, not Tomcat. For example, there's nothing in your post having to do with server.xml. If you uncovered something different that needed to be done to server.xml for 3.3 over 4.x, please let us know so that others can benefit in addition to the info already posted pertaining to httpd.conf and workers.properties. John -Original Message- From: Abraham Kang [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 14, 2003 12:54 PM To: Tomcat Users List Subject: RE: Load balancing Tomcat 3.3 from Apache with mod_jk or mod_jser ve -- SOLVED I already looked at the ubeans site but it does not detail how to load balance Tomcat 3.3. Abraham -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Monday, January 13, 2003 7:41 PM To: 'Tomcat Users List' Subject: RE: Load balancing Tomcat 3.3 from Apache with mod_jk or mod_jser ve -- SOLVED A good HOWTO: http://www.ubeans.com/tomcat John -Original Message- From: Abraham Kang [mailto:[EMAIL PROTECTED]] Sent: Monday, January 13, 2003 10:19 PM To: [EMAIL PROTECTED] Subject: Load balancing Tomcat 3.3 from Apache with mod_jk or mod_jserve -- SOLVED Ok, Here is my setup: Redhat 8 Apache 2.0.43 Tomcat 3.3.1 (two instances on same box for testing) Apache Config: //httpd.conf added the following at end of file Include /path/to/your/mod_jk.conf User userThatOwnsStaticFileDirectories Group groupThatOwnsStaticFileDirectories # //mod_jk.conf LoadModule jk_module modules/mod_jk.so #AddModule mod_jk.c JkWorkersFile /path/to/your/workers.properties JkLogFile /path/to/your/mod_jk.log JkLogLevel emerg ### Static files are served by Apache from alternate directory Alias /webapp/html/ /home/user/webapp/html/ Directory /home/user/webapp/html/ Options Indexes FollowSymLinks AllowOverride None Order allow,deny Allow from all /Directory ### Protect the WEB-INF directory Location /*/WEB-INF/* AllowOverride None deny from all /Location ### Define what Tomcat is responsible for and point it to the loadbalancer worker JkMount /admin loadbalancer JkMount /admin/* loadbalancer JkMount /examples loadbalancer JkMount /examples/* loadbalancer JkMount /abc/servlet loadbalancer JkMount /abc/servlet/* loadbalancer JkMount /*.jsp loadbalancer ## ### //workers.properties ### set you workers.tomcat_home, workers.java_home, adn ps ### Make sure to list all of the workers this is the key worker.list=ajp13_1,ajp13_2,loadbalancer worker.ajp13_1.port=8008 worker.ajp13_1.host=54.2.1.55 worker.ajp13_1.type=ajp13 worker.ajp13_1.lbfactor=1 ### Because I am using Apache 2 worker.ajp13_1.cachesize=10 worker.ajp13_2.port=8009 worker.ajp13_2.host=54.2.1.56 worker.ajp13_2.type=ajp13 worker.ajp13_2.lbfactor=1 ### Because I am using Apache 2 worker.ajp13_2.cachesize=10 worker.loadbalancer.type=lb worker.loadbalancer.balanced_workers=ajp13_1,ajp13_2 ## ## # //server.xml -- NO CHANGES //There workers.list does everything for you. I don't know what replaced the Engine element Special Thanks to Patrick Lin for helping me solve this. Hope This Helps Someone, Abraham Kang -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.434 / Virus Database: 243 - Release Date: 12/25/2002 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.434 / Virus Database: 243 - Release Date: 12/25/2002 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
[Bonehead mistake of the week] web.xml issue?
So I was about to put together a very big posting with conf files and then I realized after a week of debuging, Tomcat did not have read permission on the tld file. -jp I am trying to use the JSTL, but some where I have an error in my web.xml or tld file. When starting the context I get this: 2003-01-14 12:58:12 ContextConfig[] Exception processing TLD at resource path /WEB-INF/tld/c-rt.tld javax.servlet.ServletException: Exception processing TLD at resource path /WEB-INF/tld/c-rt.tld at ... - Root Cause - java.lang.IllegalArgumentException: Invalid TLD resource path /WEB-INF/tld/c-rt.tld at ... -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- - - - Jason Pyeron http://www.pyerotechnics.com - - Owner Lead Pyerotechnics Development, Inc. - - +1 410 808 6646 (c) 500 West University Parkway #1S - - +1 410 467 2266 (f) Baltimore, Maryland 21210-3253 - - - -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, purge the message from your system and notify the sender immediately. Any other use of the email by you is prohibited. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Embedded Tomcat hangs
Hi, We developped a GIS server, in which a embedded Tomcat serves JSP / Servlet requests. Since we upgraded Tomcat 3.x with 4.1.x (currently 4.1.12), Tomcat hangs without any error. Our demo server (Linux, 1.4.1), which in not under heavy loads ( 100 requests / day), hangs about every week. It also happened on 3 development PC (Win XP, 1.4.1) after a couple of hours of tests. - It is not related to SSL problems reported early - It doesn't seem to be related to database access: - it happened on simple JSP pages displaying live memory data (no DB access) - the same setup was working using Tomcat 3.x (not sure about 4.0.x) Any ideas / suggestions would be appreciated, thank you, Sylvain -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: default DataSource for mySQL?
Hello Petter, web-app !-- JSTL database -- context-param param-name javax.servlet.jsp.jstl.sql.dataSource /param-name param-value jdbc:mysql://localhost/testDB,com.mysql.jdbc.Driver,USERNAME,PASSWORD /param-value /context-param /web-app replacing USERNAME and PASSWORD with appropriate values. Then, in your JSP code, There will be no need to specifiy the data source. Normand McGuire From: Petter Karlström Subject: default DataSource for mySQL? Date: Mon, 13 Jan 2003 00:33:50 -0800 Hi all, I'm accessing a mySQL database via JSTL: %@ taglib prefix=c uri=http://java.sun.com/jstl/core;; % %@ taglib prefix=sql uri=http://java.sun.com/jstl/sql;; % sql:setDataSource var=example scope=application driver=com.mysql.jdbc.Driver url=jdbc:mysql://localhost/testDB user= password= / ... This works fine. However, I fail to find correct info on how to set this DataSource to be the default one in server.xml (or by Tomcat's web interface). I'm running Tomcat 4.1.12 and mySQL 3.23.51 How to set the database in web.xml would be helpful as well. thanks Petter Karlström -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Load balancing Tomcat 3.3 from Apache with mod_jk or mod_jser ve-- SOLVED
Hi John, My point in putting nothing in the server.xml was that you didn't have to. That is what I was trying to explain to everyone. Tomcat 3.3.1 doesn't require you to set the jvmroute in the server.xml it load balances for you. I was hoping to get some insight from one of the developers about this. Thanks, Abraham -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 14, 2003 10:05 AM To: 'Tomcat Users List' Subject: RE: Load balancing Tomcat 3.3 from Apache with mod_jk or mod_jser ve -- SOLVED My point was that the load balancing is done with mod_jk and workers.properties, not Tomcat. For example, there's nothing in your post having to do with server.xml. If you uncovered something different that needed to be done to server.xml for 3.3 over 4.x, please let us know so that others can benefit in addition to the info already posted pertaining to httpd.conf and workers.properties. John -Original Message- From: Abraham Kang [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 14, 2003 12:54 PM To: Tomcat Users List Subject: RE: Load balancing Tomcat 3.3 from Apache with mod_jk or mod_jser ve -- SOLVED I already looked at the ubeans site but it does not detail how to load balance Tomcat 3.3. Abraham -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Monday, January 13, 2003 7:41 PM To: 'Tomcat Users List' Subject: RE: Load balancing Tomcat 3.3 from Apache with mod_jk or mod_jser ve -- SOLVED A good HOWTO: http://www.ubeans.com/tomcat John -Original Message- From: Abraham Kang [mailto:[EMAIL PROTECTED]] Sent: Monday, January 13, 2003 10:19 PM To: [EMAIL PROTECTED] Subject: Load balancing Tomcat 3.3 from Apache with mod_jk or mod_jserve -- SOLVED Ok, Here is my setup: Redhat 8 Apache 2.0.43 Tomcat 3.3.1 (two instances on same box for testing) Apache Config: //httpd.conf added the following at end of file Include /path/to/your/mod_jk.conf User userThatOwnsStaticFileDirectories Group groupThatOwnsStaticFileDirectories # //mod_jk.conf LoadModule jk_module modules/mod_jk.so #AddModule mod_jk.c JkWorkersFile /path/to/your/workers.properties JkLogFile /path/to/your/mod_jk.log JkLogLevel emerg ### Static files are served by Apache from alternate directory Alias /webapp/html/ /home/user/webapp/html/ Directory /home/user/webapp/html/ Options Indexes FollowSymLinks AllowOverride None Order allow,deny Allow from all /Directory ### Protect the WEB-INF directory Location /*/WEB-INF/* AllowOverride None deny from all /Location ### Define what Tomcat is responsible for and point it to the loadbalancer worker JkMount /admin loadbalancer JkMount /admin/* loadbalancer JkMount /examples loadbalancer JkMount /examples/* loadbalancer JkMount /abc/servlet loadbalancer JkMount /abc/servlet/* loadbalancer JkMount /*.jsp loadbalancer ## ### //workers.properties ### set you workers.tomcat_home, workers.java_home, adn ps ### Make sure to list all of the workers this is the key worker.list=ajp13_1,ajp13_2,loadbalancer worker.ajp13_1.port=8008 worker.ajp13_1.host=54.2.1.55 worker.ajp13_1.type=ajp13 worker.ajp13_1.lbfactor=1 ### Because I am using Apache 2 worker.ajp13_1.cachesize=10 worker.ajp13_2.port=8009 worker.ajp13_2.host=54.2.1.56 worker.ajp13_2.type=ajp13 worker.ajp13_2.lbfactor=1 ### Because I am using Apache 2 worker.ajp13_2.cachesize=10 worker.loadbalancer.type=lb worker.loadbalancer.balanced_workers=ajp13_1,ajp13_2 ## ## # //server.xml -- NO CHANGES //There workers.list does everything for you. I don't know what replaced the Engine element Special Thanks to Patrick Lin for helping me solve this. Hope This Helps Someone, Abraham Kang -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.434 / Virus Database: 243 - Release Date: 12/25/2002 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.434 / Virus Database: 243 - Release Date: 12/25/2002 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional
Re: jsp versus xml syntax
Craig R. McClanahan wrote: To get the whole answer, you need to download and read the JSP spec. http://java.sun.com/products/jsp/download.html That's on my to-read list, after the HTTP spec and the servlet spec. I don't think it's going to happen overnight ;) . The short answer: In JSP 1.x you cannot mix the two syntaxes -- period. Custom tags are expressed in sort of XML syntax (but without the standard namespace declarations. If you use the XML syntax, you also need to be prepared to put CDATA blocks around all your code inside things like jsp:expression. I haven't reviewed what JSP 2.0 came up with as their final answer, but my recollection is that they were focused primarily on improving the usability of the XML syntax, but not on allowing mixing. Need to review the Proposed Final Draft. I stand by my statement that it's a waste of effort for a user (especially a newbie) to take the time to learn both syntaxes. I'll take you up on this. I have enough on my plate, and that makes sense that it's really designed for tools and not people. I was just curious. So in the end, I'm going to stick with JSP syntax except for custom tags and jsp:useBean. Thanks again. Erik -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
forcing a jsp page to reload/refresh when backend data changes
Hello! Forgive this very newbie-ish question. If someone could point me in the right direction I would appreciate it. Is it possible/feasible to have .jsp page refresh the data it's displaying when the data on the backend changes? For example if I have a .jsp page that queries and displays data from a database, can the page be coded to monitor the data and when it changes, refresh what is displayed in the user's browser? I hope the question makes sense. thanks! -jeff __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: jsp versus xml syntax
So for the record, what is allowed and what isn't? Sorry that I am so confused about this. JSP 1.0 and 1.1 were somewhat loose on the XML representation of JSP pages. JSP 1.2 introduced a fully formal representation known as a JSP Document, complete with jsp:root element, and explicitly says: It is not valid, however, to intermix standard JSP syntax and XML syntax inside the same source file. This resulted my arguing that: With JSP 1.2, [the page] must be either in % syntax, or it must be a completely proper [XML page.] Since few people are going to code that by hand, it means that people cannot use the clear, easy to remember, self-describing, XML equivalent syntax. This seems uncessarily restrictive since JSP 1.2 otherwise mixes both XML and % syntax. I am not saying that people should be able to mix and match XML and % on the same page; the JSP specification says THAT for me. Every JSP container must support what I am asking for, except that JSP 1.2 ONLY supports it for the standard actions and tag libraries, and removes support for jsp:scriptlet, jsp:directive, jsp:declaration and jsp:expression. Those, and specifically those, are what I am discussing. All I am asking for is that the use of the jsp:xxx equivalents be put on a syntactic peer with the other jsp:xxx tags that are allowed in JSP 1.2 pages. If I can enter jsp:useBean, %!, %@, and % on the same page, I ought to be able to enter jsp:useBean, jsp:declaration, jsp:directive, and jsp:scriptlet without penalty. The JSP 2.0 draft specification says: Some of the syntactic elements described in Chapter 1 are not legal XML; this chapter describes alternative syntaxes that are aligned with the XML syntax. The alternative syntaxes are valid in *all* JSP pages The emphasis on *all* JSP pages, and not just JSP Documents, is present as bold face in the specification. It is my understanding that it explicitly addresses the issue raised above. I certainly invite Craig to review that section, and we can request clarification from Eduardo and Mark if necessary. I happen to agree with Craig that it is a waste of time for a newbie to learn both syntaxes. But it should be clear from my argument which syntax I consider appropriate for teaching. --- Noel -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Name jdbc:comp is not bound in this context
I resolved my own problem, and should have caught it along time ago. I needed to install the standard 4.1.18 to access JNDI resources. Hope that this might help someone else in the future. -Original Message- From: Nicole Hibbard [mailto:[EMAIL PROTECTED]] Sent: Monday, January 13, 2003 4:45 PM To: Tomcat Users List Subject: RE: Name jdbc:comp is not bound in this context Is this an issue encountered by users of tomcat 4.1.18.Le? Should i try reinstalling and configuring an earlier version? I've see serveral discussion regarding this topic and I've tried everything suggested... what should I do now? -Original Message- From: Nicole Hibbard [mailto:[EMAIL PROTECTED]] Sent: Monday, January 13, 2003 3:45 PM To: Tomcat Users List; [EMAIL PROTECTED] Subject: RE: Name jdbc:comp is not bound in this context Thanks for the reply :). Unfoutunately I added the useNaming=true and I still have the same results. I'm really stuck here... do you have any other suggestions. -Original Message- From: Justin L. Spies [mailto:[EMAIL PROTECTED]] Sent: Monday, January 13, 2003 3:31 PM To: 'Tomcat Users List' Subject: RE: Name jdbc:comp is not bound in this context Nicole, Not sure if this was answered, but I'll give it a try. When I had this problem, I found that I needed to add useNaming=true to both the Host ... entry and to the Context ... entry. Sincerely, Pantek Incorporated Justin L. Spies URL: http://www.pantek.com Ph 440.519.1802 Fax 440.248.5274 Cell 440.336.3317 -Original Message- From: Nicole Hibbard [mailto:[EMAIL PROTECTED]] Sent: Monday, January 13, 2003 3:11 PM To: [EMAIL PROTECTED] Subject: Name jdbc:comp is not bound in this context I've gone through every resource I have in trying to test a connection to MySql database. I am using Tomcat 4.1.18-LE and MySql 3.23.53 and java 1.4.1_01. I set priveleges on MySql, put the mm.sql driver's jar in common/lib. I set my Classpath Variable .;C:\ServletDev;C:\jakarta-tomcat-4.1.18-LE-jdk14\common\lib\servlet.jar ;C:\ mysql-connector-java-2.0.14\mysql-connector-java-2.0.14-bin.jar I added the following to my server.xml !--1/07/2002 Nicole Hibbard The following block of code add the datasource for connecting mysql database using Connector J Driver -- Context path=/DBTest docBase=DBTest debug=5 reloadable=true crossContext=true Logger className = org.apache.catalina.logger.FileLogger prefix=localhost_DBTest_log. suffix=.txt timestamp=true/ Resource name=jdbc/TestDB auth=Container type=javax.sql.DataSource/ ResourceParams name = jdbc/TestDB parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter !--Maximum number of dBconnections in pool. Make sure you configure your mysqld max_connection large enough to handle all you connections-- parameter namemaxActive/name value100/value /parameter parameter namepassword/name valuejavadude/value /parameter !-- Class name for JDBC driver -- parameter namedriverClassName/name valuecom.mysql.jdbc.Driver/value /parameter !-- The JDBC connection url for connecting to your mysql db if the connection closes then auto connect -- parameter nameurl/name valuejdbc:mysql://localhost/javatest?user=javauser/value /parameter /ResourceParams /Context !--End of code from 1/7/2003 for Nicole Hibbard-- I created a web.xml in DBTest/WEB-INF ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//DN http://java.sun.com/dtd/web-app_2_3.dtd; web-app descriptionMySQL Test App /description resource-ref descriptionDB Connection/description res-ref-namejdbc/TestDB/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref /web-app I have a jsp in web-apps/DBTest html head titleDB Test/title /head body % foo.DBTest tst = new foo.DBTest(); tst.init(); % h2Results/h2 Foo %= tst.getFoo() %br/ Bar %= tst.getBar() % /body /html I have a DBTest.class in Webapps/DBtest/foo package foo; import javax.naming.*; import javax.sql.*; import java.sql.*; public class DBTest { String foo = Not Connected; int bar = -1; public void init() { try{ Context ctx = new InitialContext(); if(ctx == null ) throw new Exception(Boom - No Context); DataSource ds = (DataSource)ctx.lookup(
Re: Precompiling JSP - setup
you could start an ant build script before starting tomcat check out http://jakarta.apache.org/ant/manual/OptionalTasks/jspc.html --- Hari Venkatesan [EMAIL PROTECTED] wrote: Is there any documentation that explains how to setup parameters for precompiling JSP's when Tomcat Server starts up or can somebody please explain how to do this? Hari __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]