Re: Tomcat 6.0.26 with Java 6 update 20 on Sun Solaris 5.8 Sparc - Web application unable to execute properly
On 4 Jul 2010, at 23:02, rahul iamrahu...@yahoo.com wrote: I guess there are jsp:include page / and %@ include file % directives in you webapp. Check them for case sensitivity There are only couple of directives - %@ taglib uri=/taglib.tld prefix=salmon% and %@ page errorPage=ErrorPage.jsp extends=com.salmonllc.jsp.JspServlet% ErrorPage.jsp is perfectly correct case-wise. There is an ErrorPage.jsp in each directory? p --- On Fri, 7/2/10, Mikolaj Rydzewski m...@ceti.pl wrote: From: Mikolaj Rydzewski m...@ceti.pl Subject: Re: Tomcat 6.0.26 with Java 6 update 20 on Sun Solaris 5.8 Sparc - Web application unable to execute properly To: Tomcat Users List users@tomcat.apache.org Date: Friday, July 2, 2010, 1:14 PM On 07/02/2010 01:23 AM, rahul wrote: 1. I tried building the war in Windows and worked fine. I transferred the war to UNIX, it mis-behaves as described earlier. 2. I tried building the war in UNIX, it mis-behaves as described earlier. I transferred the war to Windows and it worked fine. I guess there are jsp:include page / and %@ include file % directives in you webapp. Check them for case sensitivity. -- Mikolaj Rydzewskim...@ceti.pl - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat 6.0.26 with Java 6 update 20 on Sun Solaris 5.8 Sparc - Web application unable to execute properly
Hello Friends A very strange findings for today! Found it only because I skipped the first Launch page that used to launch a new window through Java Script. Now, the finding is - 1. After the Launch, this would open a Home Page with the request URL - http://localhost:5080/URL 2. Clicking on Search Work Order menu, it will request the URL: http://localhost:5080/SearchListURL 3. Now, interesting bit - On providing search crietria and clicking search, the request is sent to - http://localhost:8080/SearchListURL Now, why the third step is posting this to default 8080 port when clearly the server.xml is configured to listen to HTTP requests on 5080 port. I tested this in Windows with 5080 listener port and it failed there too. Any hints? - Regards Rahul --- On Mon, 7/5/10, Pid p...@pidster.com wrote: From: Pid p...@pidster.com Subject: Re: Tomcat 6.0.26 with Java 6 update 20 on Sun Solaris 5.8 Sparc - Web application unable to execute properly To: Tomcat Users List users@tomcat.apache.org Date: Monday, July 5, 2010, 12:05 PM On 4 Jul 2010, at 23:02, rahul iamrahu...@yahoo.com wrote: I guess there are jsp:include page / and %@ include file % directives in you webapp. Check them for case sensitivity There are only couple of directives - %@ taglib uri=/taglib.tld prefix=salmon% and %@ page errorPage=ErrorPage.jsp extends=com.salmonllc.jsp.JspServlet% ErrorPage.jsp is perfectly correct case-wise. There is an ErrorPage.jsp in each directory? p --- On Fri, 7/2/10, Mikolaj Rydzewski m...@ceti.pl wrote: From: Mikolaj Rydzewski m...@ceti.pl Subject: Re: Tomcat 6.0.26 with Java 6 update 20 on Sun Solaris 5.8 Sparc - Web application unable to execute properly To: Tomcat Users List users@tomcat.apache.org Date: Friday, July 2, 2010, 1:14 PM On 07/02/2010 01:23 AM, rahul wrote: 1. I tried building the war in Windows and worked fine. I transferred the war to UNIX, it mis-behaves as described earlier. 2. I tried building the war in UNIX, it mis-behaves as described earlier. I transferred the war to Windows and it worked fine. I guess there are jsp:include page / and %@ include file % directives in you webapp. Check them for case sensitivity. -- Mikolaj Rydzewskim...@ceti.pl - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: JNI error under tomcat: java.lang.UnsatisfiedLinkError
Hi Chris, Thanks for your reply. I recompiled everything and checked method signature, but still got the same error. I felt it's weird why it worked for standalone app but not deployed web service... Thanks. model.java public static void initModel() { modelJNI.initModel(); } modelJNI.java === public final static native void initModel(); native code = #include HEC.h #include vector #include string string path=/tmp/model.xml; HEC *hec_obj; void initModel() { hec_obj = new HEC(path); if (!hec_obj) { cout [ERROR] Cannot instantiate HEC objects.; } } 2010/7/3 Christopher Schultz ch...@christopherschultz.net -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dennis, On 7/2/2010 3:46 AM, dennis ch wrote: However, when I deploy it as a web service (tomcat 6.0.26 + axis2 1.5.1 + eclipse jee helios) to call the native method, I got the following error (the first line means the .so was successfully loaded): Load library successfully [ERROR] com.model.modelJNI.initModel()V java.lang.reflect.InvocationTargetException [...] Caused by: java.lang.UnsatisfiedLinkError: com.model.modelJNI.initModel()V at com.model.modelJNI.initModel(Native Method) at com.model.model.initModel(model.java:13) at com.webservice.run(EvalVita.java:763) ... 25 more Sounds like a Java-class/native-library mismatch. Are you sure your .java file and .c files are sync'd up properly? Try recompiling everything, and double-check your JNI method signatures. What does modelJNI.initModel look like in the Java method declaration? What does the same method signature in your native code look like? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkwv82YACgkQ9CaO5/Lv0PABewCeIC0qjqJdNm80GMByJBJn4VEs KzsAoKDPzdgXUJKMq/S4xruHd0RlNJCv =VA0U -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: JNI error under tomcat: java.lang.UnsatisfiedLinkError
Ralph, I got this error upon first deployment... 2010/7/4 Ralph Carlson racarl...@mediacomcc.com do you get this error upon first deployment or re-deploy? do you restart tomcat after you redeploy your jni app? From: users-return-214329-racarlson=mediacomcc@tomcat.apache.org[users-return-214329-racarlson= mediacomcc@tomcat.apache.org] On Behalf Of Shay Rojansky [ r...@roji.org] Sent: Saturday, July 03, 2010 12:40 AM To: Tomcat Users List Subject: Re: JNI error under tomcat: java.lang.UnsatisfiedLinkError Hi Dennis. So do you see the Load library successful message? Also, if I remember correctly, the code in eval.java is not a safe way to load a native library. It's a very good idea to place the System.loadLibrary in a static { } block, instead of in a method. The way your class is written, it's possible for the run method to be executed more than once, in which case loadLibrary will be called more than once (and so will the native initModels). Not sure what the effects are and if it's related to your problem but it's a good idea to avoid trouble by fixing it. Shay On Fri, Jul 2, 2010 at 3:46 AM, dennis ch dennis.ch2...@gmail.com wrote: Hi, I have a java class (eval.java) that invokes a native method in an so file (libmodel.so, using SWIG 1.3.29 to generate JNI code/wrapper and compiled the library). I can use System.loadLibrary() to load the libmodel.so without any error (-Djava.library.path=/usr/lib), and the native method initModel() works fine as a standalone application. However, when I deploy it as a web service (tomcat 6.0.26 + axis2 1.5.1 + eclipse jee helios) to call the native method, I got the following error (the first line means the .so was successfully loaded): Load library successfully [ERROR] com.model.modelJNI.initModel()V java.lang.reflect.InvocationTargetException 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:597) at org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:194) at org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:102) at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40) at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:114) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:173) at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:167) at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:142) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) at java.lang.Thread.run(Thread.java:619) Caused by: java.lang.UnsatisfiedLinkError: com.model.modelJNI.initModel()V at com.model.modelJNI.initModel(Native Method) at com.model.model.initModel(model.java:13) at com.webservice.run(EvalVita.java:763) ... 25 more Below is the body of Eval.java: import com.model.*; public class Eval { static void loadModel() { try { System.loadLibrary(model); System.out.println(Load library successfully); } catch (UnsatisfiedLinkError e) { System.err.println(Native code library failed to load. + e); } } public void run() { loadModel(); model.initModel(); } } Do I miss anything here? Any input is appreciated! Dennis - To unsubscribe, e-mail:
How to call an external class from a webapp (i.e. - implement a plugin)
I would like my webapp to call an external class, which will be provided (as a name) in an XML file at run time. The external class will be developed by 3rd party, and might include additional JARs. I will refer to the external class and JARs as the plugin. My webapp is provided as a WAR, so it is not possible to add the plugin into the same WAR (unless the customer performs it himself). I do not want to put the plugin's JARs in the common lib of Tomcat, so that it will not affect other webapps (the plugin might include JARs of different versions than the webapps use). I considered putting the plugin in a separate folder, and implement my own class loader that will look at that folder as well. It seems like too much of an effort for a simple task. What is the recommended way to achieve plugin capabilities for a webapp? Thanks G. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: JNI error under tomcat: java.lang.UnsatisfiedLinkError
Hi Shay, Thanks for your input. And yes, I did see the Load library successful message. I've also fixed the code with static { } block. However, I still received the same error message. Any other thoughts? Thanks, Dennis 2010/7/2 Shay Rojansky r...@roji.org Hi Dennis. So do you see the Load library successful message? Also, if I remember correctly, the code in eval.java is not a safe way to load a native library. It's a very good idea to place the System.loadLibrary in a static { } block, instead of in a method. The way your class is written, it's possible for the run method to be executed more than once, in which case loadLibrary will be called more than once (and so will the native initModels). Not sure what the effects are and if it's related to your problem but it's a good idea to avoid trouble by fixing it. Shay On Fri, Jul 2, 2010 at 3:46 AM, dennis ch dennis.ch2...@gmail.com wrote: Hi, I have a java class (eval.java) that invokes a native method in an so file (libmodel.so, using SWIG 1.3.29 to generate JNI code/wrapper and compiled the library). I can use System.loadLibrary() to load the libmodel.so without any error (-Djava.library.path=/usr/lib), and the native method initModel() works fine as a standalone application. However, when I deploy it as a web service (tomcat 6.0.26 + axis2 1.5.1 + eclipse jee helios) to call the native method, I got the following error (the first line means the .so was successfully loaded): Load library successfully [ERROR] com.model.modelJNI.initModel()V java.lang.reflect.InvocationTargetException 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:597) at org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:194) at org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:102) at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40) at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:114) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:173) at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:167) at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:142) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) at java.lang.Thread.run(Thread.java:619) Caused by: java.lang.UnsatisfiedLinkError: com.model.modelJNI.initModel()V at com.model.modelJNI.initModel(Native Method) at com.model.model.initModel(model.java:13) at com.webservice.run(EvalVita.java:763) ... 25 more Below is the body of Eval.java: import com.model.*; public class Eval { static void loadModel() { try { System.loadLibrary(model); System.out.println(Load library successfully); } catch (UnsatisfiedLinkError e) { System.err.println(Native code library failed to load. + e); } } public void run() { loadModel(); model.initModel(); } } Do I miss anything here? Any input is appreciated! Dennis
Re: Tomcat 6.0.26 with Java 6 update 20 on Sun Solaris 5.8 Sparc - Web application unable to execute properly
rahul wrote: Hello Friends A very strange findings for today! Found it only because I skipped the first Launch page that used to launch a new window through Java Script. Now, the finding is - 1. After the Launch, this would open a Home Page with the request URL - http://localhost:5080/URL 2. Clicking on Search Work Order menu, it will request the URL: http://localhost:5080/SearchListURL 3. Now, interesting bit - On providing search crietria and clicking search, the request is sent to - http://localhost:8080/SearchListURL Now, why the third step is posting this to default 8080 port when clearly the server.xml is configured to listen to HTTP requests on 5080 port. I tested this in Windows with 5080 listener port and it failed there too. Any hints? Rahul, I don't know about the rest of your problem, but if you click on a link /in the browser/, and the browser sends a request to localhost:8080 as a result, then it means that /the html page which the browser has/ contains a link that points to port 8080. So in your example above, it is the page returned by http://localhost:5080/SearchListURL which contains a link to port 8080. It has nothing to do with what server.xml says about the ports the server is listening on. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat 5.5 creates 0 byte files
You all right about ESXi issue, df -k shows only the virtual machines storage and that error is occured because of the max number of files allowed by OS. I will try out the things Andre, Pid and Chris suggested and then i'll hopefully write you good news about my problem. Again thanks for all your help. I'll be posting soon about the results. Best, On Fri, Jul 2, 2010 at 5:27 PM, André Warnier a...@ice-sa.com wrote: Murat Birben wrote: Actually i'm not familiar with the interanls of enctype=multipart/form-data thing. I think, i should read about this right? Right. Start here : http://www.w3.org/TR/html401/interact/forms.html 17.13 Form submission Then graduate to this if you really want to know the details : RFC 2045 http://www.ietf.org/rfc/rfc2045.txt But, as a summary : With the form you showed earlier, what the browser will send to the server is a block of text data looking (approximately) like this : (start) POST /ResourceUploadServlet HTTP/1.1 Content-type: multipart/form-data; boundary=-something .. more header lines, followed by one empty line .. -something Content-type: text/plain Content-disposition: form-data; name=FileName Content-length: 18 some-file-name.pdf -something Content-type: text/plain Content-disposition: form-data; name=Path Content-length: 10 /some/path -something Content-type: application/pdf Content-disposition: form-data; name=Content; filename=some/path/and/file-name.pdf Content-length: 132456 Content-transfer-encoding: Base64 pcEAJ2AJBAAA+BK/EAAABgAAHAgAAA4AYmpiauvI68gA AAAHBBYALhAAAImiAACJogAAHAD//w8A AAD//w8AAAD//w8AAKQAAMADwAMAAMAD wAMAAADAAwAAAMADwAMAABQAANQD3AYA AADcBgAAANwG3AYAAAwAAADoBgAADNQDrAwAAP4ABwAA AAAHAAcABwAH2wcAAADbBwAAANsH KwwAAAItDC0MLQwtDC0MLQwAACQA AACqDQAAaAIAABIQAAByUQwAABUAwAMAAADbBwAA AADbBwAAANsH2wcAAADbBwAAAFEM AADAAwAAAMADAAcHAADbZgwAABYAAAD3 .. and many similar lines ... (end) Each input of the form is going to result in one of the form-data blocks above. The input type=file will result in some very large block like the last one, which contains the binary data of the file, encoded in Base64 encoding. Tomcat 5.5 (and 6.0), natively, do not contain any standard code capable of parsing such a POST data format and returning it nicely to your servlet. (And you cannot just do a request.getParameter('Content') either.) (but with Tomcat 7.0 however you should be able to). To handle this kind of POST with Tomcat 5.5 or 6.0, you have either to do the work yourself (not recommended), or use something like FileUpload to do it. But you cannot just read the body of the request, and copy it to a disk file. Or rather, you can, but then you will have the whole block above in your disk file. I do not remember how the FileUpload module really works, but it allows you to retrieve each of the blocks above (=form parameters) independently, and it will do all the decoding for you. For the file part (named Content), it probably gives you already a Stream, from which you can read to retrieve the (decoded) content of the file. THAT is what you should be copying to a disk file. Got the general idea ? And, as pid was saying, the FileUpload documentation should certainly provide some good examples. But, no matter how you do this, read this 3 times /NEVER/ accept the path or the filename that the user is entering in the form, to just write this file to disk. /read this 3 times Remember what the user has entered, and write it somewhere as a text. But create a path and a (unique) filename yourself, in your servlet, to write the file. That will protect you not only against nasty people trying to crash your server, but also against innocent users entering file names with spaces in them, or funny characters that are illegal in a filename on your system, or re-using a filename that already exists. (to name just a few of the things that can happen). All that still does not tell us why your servlet creates 0-size files, but maybe with the above explanation you can figure this out yourself. My scenario : - your first getParameter() call sucks in the whole POST (all the above) - your next getParameter() calls do not have anything else to get, and return null - by the time you try to read the body of the POST, there is nothing left, so you also get null - and then you write this (null) to the output file, and you get a null-size file. Repeat the above cycle once for each POST.
Re: Tomcat current thread count
Hi Charles, Is there any way I can clear the current thread count without restarting tomcat? The programmer is unable to accept the problem so it seems I will have to find a way to clear current thread number. Thank you. Özgür Özdemircili http://www.acikkod.org Code so clean you could eat off it On Mon, Jun 28, 2010 at 3:26 PM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: Ozgur Ozdemircili [mailto:ozgur.ozdemirc...@gmail.com] Subject: Re: Tomcat current thread count Here we go again. Same comments apply as before: You have numerous Timer-x threads going, which makes me suspicious that your webapp is starting up extra threads and not properly managing them. Simply making them daemon (as they are) is not sufficient, since the daemon threads won't terminate until Tomcat is fully shut down. There are also some other threads running that start in your webapp, including some waiting for input on UDP sockets. This still looks like poor resource management by your webapp. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
what is document root in Tomcat
I am not clear with Document Root for Tomcat which is some thing in Apache only I have worked with. I have an application named sakai http://confluence.sakaiproject.org/display/DOC/Install+Guide+-+Binary+Install+(2.7) I downloaded it svn co https://source.sakaiproject.org/svn/sakai/tags/sakai-2.7.0 sakai but in Tomcat 5.5.29 which folder should I keep it so that I can access it -- Tapas - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: what is document root in Tomcat
On 5 July 2010 12:56, Tapas Mishra mightydre...@gmail.com wrote: I am not clear with Document Root for Tomcat which is some thing in Apache only I have worked with. I have an application named sakai http://confluence.sakaiproject.org/display/DOC/Install+Guide+-+Binary+Install+(2.7) I downloaded it svn co https://source.sakaiproject.org/svn/sakai/tags/sakai-2.7.0 sakai but in Tomcat 5.5.29 which folder should I keep it so that I can access it Tomcat is not like Apache HTTPD, it doesn't have a document root. There is an appBase for each Host, and you place applications in that location. What does it say in the installation documents for Sakai? Does it tell you where to install the files? p -- Tapas - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- -- pidster.com - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Question on ClientAbortException
Op vrijdag, 2 juli 2010 21:49 schreef Leo Donahue - PLANDEVX leodona...@mail.maricopa.gov: http://tomcat.apache.org/tomcat-6.0-doc/api/org/apache/catalina/connector/ClientAbortException.html What does this mean exactly? A user makes a request for a resource and closes the browser before they get the response? ... Leo Donahue Or a file download and the user presses cancel in stead of save. Ronald.
Re: what is document root in Tomcat
On Mon, Jul 5, 2010 at 5:35 PM, Pid p...@pidster.com wrote: What does it say in the installation documents for Sakai? Does it tell you where to install the files? That is the problem on this page http://confluence.sakaiproject.org/display/DOC/Install+Guide+-+Binary+Install+(2.7) section 3.0 It says If you wish to configure a binary installation you'll need to manually create a /sakai folder in $CATALINA_HOME to hold your sakai.properties file. Now I created /sakai in $CATALINIA_HOME as the doc says in $CATALINIA_HOME/bin/startup.sh I execute this script and then check echo $CATALINA_HOME I do not get any thing as output. -- Tapas - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: what is document root in Tomcat
On 5 July 2010 13:49, Tapas Mishra mightydre...@gmail.com wrote: On Mon, Jul 5, 2010 at 5:35 PM, Pid p...@pidster.com wrote: What does it say in the installation documents for Sakai? Does it tell you where to install the files? That is the problem on this page http://confluence.sakaiproject.org/display/DOC/Install+Guide+-+Binary+Install+(2.7) section 3.0 It says If you wish to configure a binary installation you'll need to manually create a /sakai folder in $CATALINA_HOME to hold your sakai.properties file. Now I created /sakai in $CATALINIA_HOME as the doc says in $CATALINIA_HOME/bin/startup.sh I execute this script and then check echo $CATALINA_HOME I do not get any thing as output. Why would you expect to see anything as output? Tomcat sets that environment variable as it runs, but it's not exported to the shell. What are you trying to discover? If you're trying to work out what CATALINA_HOME is by echoing the variable, you're ignoring the fact that you've already worked it out by using it when you ran the startup.sh script. CATALINA_HOME is just the Tomcat installation directory. p -- Tapas - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- -- pidster.com - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: what is document root in Tomcat
Tapas Mishra wrote: On Mon, Jul 5, 2010 at 5:35 PM, Pid p...@pidster.com wrote: What does it say in the installation documents for Sakai? Does it tell you where to install the files? That is the problem on this page http://confluence.sakaiproject.org/display/DOC/Install+Guide+-+Binary+Install+(2.7) section 3.0 It says If you wish to configure a binary installation you'll need to manually create a /sakai folder in $CATALINA_HOME to hold your sakai.properties file. Now I created /sakai in $CATALINIA_HOME as the doc says in $CATALINIA_HOME/bin/startup.sh I execute this script and then check echo $CATALINA_HOME I do not get any thing as output. Tapas, I really think that you need first to have a look at the on-line documentation of Tomcat, at http://tomcat.apache.org. This user's help list is not really a substitute for the online documentation, and nobody here really has the time to teach you the basics. And nobody here knows confluence per se, so you should ask them for more help with the deployment of their applications under Tomcat. As pid already mentioned, Tomcat is also a webserver, but it is quite different from Apache httpd, and the way pages and applications are organised under Tomcat is quite different from Apache httpd. Tomcat is primarily a Java servlet engine, so its main function is to run Java servlets. For just a bit more information : go to the same directory where you executed startup.sh, and run version.sh. You can then paste the result here, and someone may be able to help you a bit more. But not much.. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: JNI error under tomcat: java.lang.UnsatisfiedLinkError
2010/7/2 dennis ch dennis.ch2...@gmail.com: Do I miss anything here? Any input is appreciated! IIRC, native libraries can be loaded only once, but webapplication classloader is disposed and recreated each time the web application is stopped/reloaded. Thus the class that loads your library must be in ${catalina.base}/lib folder (and at the same time it must be removed from the webapp, because otherwise the classes in webapp are preferred over the ones in lib). Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Tomcat current thread count
From: Ozgur Ozdemircili [mailto:ozgur.ozdemirc...@gmail.com] Subject: Re: Tomcat current thread count Is there any way I can clear the current thread count without restarting tomcat? Clearing the thread *count* does nothing - you have to actually terminate the excess threads. The programmer is unable to accept the problem Then you need another programmer; refusing to fix a blatant error isn't exactly a sterling recommendation. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat current thread count
Was just a double check. Thanks for all the help Chuck. Özgür Özdemircili http://www.acikkod.org Code so clean you could eat off it On Mon, Jul 5, 2010 at 3:59 PM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: Ozgur Ozdemircili [mailto:ozgur.ozdemirc...@gmail.com] Subject: Re: Tomcat current thread count Is there any way I can clear the current thread count without restarting tomcat? Clearing the thread *count* does nothing - you have to actually terminate the excess threads. The programmer is unable to accept the problem Then you need another programmer; refusing to fix a blatant error isn't exactly a sterling recommendation. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: SSL Not working on tomcat 5.5.29
2010/7/2 kareem_s_m kareemud...@gmail.com: Also nothing is written to the log flies. Nothing at all? The logs are completely empty? Maybe you are still running 5.5.28, or writing to 5.5.28 logs, if the service was installed incorrectly? Under tomcat 5.5.28, the site renders fine with SSL and non SSL. How did you install Tomcat, and how are you running it? Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: EL expressions do not work in tag file (tomcat 6.26)
2010/7/3 赵顺 cnjoy...@gmail.com: my web.xml -- web-app xmlns=http://java.sun.com/xml/ns/j2ee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; version=2.4 (...) jsp-config jsp-property-group url-pattern*.tag/url-pattern el-ignoredfalse/el-ignored page-encodingUTF-8/page-encoding scripting-invalidtrue/scripting-invalid /jsp-property-group /jsp-config I am afraid that the above is not applicable to tag files. Table JSP.8-2 Details of tag directive attributes page 1-179 of jsp-2_1-fr-spec.pdf says about isELIgnored attribute of a @tag directive: However, there is no corresponding global configuration element in web.xml Also chapter JSP.3.3 JSP Property Groups of the same specifications says A JSP property group is a collection of properties that apply to a set of files that represent JSP pages. and several sentences lower, explicitly: JSP Property Groups do not affect tag files. Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: embedded tomcat, work folder wipe out issue
2010/7/2 Federico Fissore fiss...@celi.it: hello all first mail to the list: please forward me to any RTFM you may think useful BUT some times I got a JasperException: Unable to load class for JSP, with the root cause being ClassNotFoundException: org.apache.jsp.WEB_002dINF.jsp.systemCheck_jsp What exact Tomcat version (x.y.z) are you using? Are you sure that you have stopped the old Tomcat instance, and that you are not running several instances in parallel? I checked for that file in the work folder and it's there! both the .java and .class files What are timestamps of those files? Are they recently generated and compiled, as you would expect? Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: JNI error under tomcat: java.lang.UnsatisfiedLinkError
Had You tried to made c header by javah -jni ./your_packages/your_class.class ? It gives header for You with properly named method to be written in c.. On Mon, Jul 5, 2010 at 4:11 PM, Konstantin Kolinko knst.koli...@gmail.comwrote: 2010/7/2 dennis ch dennis.ch2...@gmail.com: Do I miss anything here? Any input is appreciated! IIRC, native libraries can be loaded only once, but webapplication classloader is disposed and recreated each time the web application is stopped/reloaded. Thus the class that loads your library must be in ${catalina.base}/lib folder (and at the same time it must be removed from the webapp, because otherwise the classes in webapp are preferred over the ones in lib). Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- best regards, Igor Chumak
Re: embedded tomcat, work folder wipe out issue
Konstantin Kolinko, il 05/07/2010 16:59, ha scritto: 2010/7/2 Federico Fissorefiss...@celi.it: hello all first mail to the list: please forward me to any RTFM you may think useful BUT some times I got a JasperException: Unable to load class for JSP, with the root cause being ClassNotFoundException: org.apache.jsp.WEB_002dINF.jsp.systemCheck_jsp What exact Tomcat version (x.y.z) are you using? 6.0.26 Are you sure that you have stopped the old Tomcat instance, and that you are not running several instances in parallel? Yes I'm sure: before I start the new one, I check for the PID of the process to disappear. I am running several instances in parallel, each with a separate java process, each listening on a different tcp port. That's my aim I checked for that file in the work folder and it's there! both the .java and .class files What are timestamps of those files? Are they recently generated and compiled, as you would expect? Yes, they are regenerated and recompiled. The funny thing is that you can see the error page (ClassNotFound...), delete those files, refresh the page and seeing the files being re-generated and re-compiled BUT still getting a ClassNotFound... best regards federico - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
jstl 1.1.0 x:forEach recompilation problem - Is it solved in jstl 1.2?
Hi I remember a while ago I had to downgrade the jstl version because of the way that x:forEach tag is implemented, which recompiles the xpath at every iteration, slowing down the xml processing. The bug is open since 2004: https://issues.apache.org/bugzilla/show_bug.cgi?id=27717 Does anyone know if the latest version of jstl (1.2) still have this performance problem? http://download.java.net/maven/glassfish/javax/servlet/jsp/jstl/jstl-api/1.2/jstl-api-1.2.jar Thanks Emerson - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat 6.0.26 with Java 6 update 20 on Sun Solaris 5.8 Sparc - Web application unable to execute properly
Thanks to all of your comments and help!! The problem is resolved. I was very fortunate that I was testing with FireFox otherwise I would never have come to know about the actual problem (That is Redirecting to port 8080). The Internet Explorer was not at all showing that the request is going to the incorrect port, wonder why??. Now, on clicking search button, data gets posted to the correct place and data gets fetched from the database correctlty. As this webapp uses the Salmon SOFIA framework, in order to display the data, it internally uses its own URLGenerator class: URLGenerator and gets the PORT from System.properties file! And this is where the port was specified as 8080. I changed that to the one in Server.xml and VOILA!! --- On Mon, 7/5/10, André Warnier a...@ice-sa.com wrote: From: André Warnier a...@ice-sa.com Subject: Re: Tomcat 6.0.26 with Java 6 update 20 on Sun Solaris 5.8 Sparc - Web application unable to execute properly To: Tomcat Users List users@tomcat.apache.org Date: Monday, July 5, 2010, 1:41 PM rahul wrote: Hello Friends A very strange findings for today! Found it only because I skipped the first Launch page that used to launch a new window through Java Script. Now, the finding is - 1. After the Launch, this would open a Home Page with the request URL - http://localhost:5080/URL 2. Clicking on Search Work Order menu, it will request the URL: http://localhost:5080/SearchListURL 3. Now, interesting bit - On providing search crietria and clicking search, the request is sent to - http://localhost:8080/SearchListURL Now, why the third step is posting this to default 8080 port when clearly the server.xml is configured to listen to HTTP requests on 5080 port. I tested this in Windows with 5080 listener port and it failed there too. Any hints? Rahul, I don't know about the rest of your problem, but if you click on a link /in the browser/, and the browser sends a request to localhost:8080 as a result, then it means that /the html page which the browser has/ contains a link that points to port 8080. So in your example above, it is the page returned by http://localhost:5080/SearchListURL which contains a link to port 8080. It has nothing to do with what server.xml says about the ports the server is listening on. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: EL expressions do not work in tag file (tomcat 6.26)
there must be a default isELIgnored flag for tag files once I used %@ tag import=org.apache.commons.beanutils.BeanUtils pageEncoding=UTF-8 description= isELIgnored=false % in my tag files and tomcat 6.0.26 says org.apache.jasper.JasperException: /WEB-INF/tags/jet/grid.tag(26,1) Tag directive: illegal to have multiple occurrences of isELIgnored with different values (old: true, new: false) org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40) org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407) org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:236) org.apache.jasper.compiler.Validator$DirectiveVisitor.visit(Validator.java:260) org.apache.jasper.compiler.Node$TagDirective.accept(Node.java:694) org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2361) org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2411) org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2417) org.apache.jasper.compiler.Node$Root.accept(Node.java:495) org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2361) org.apache.jasper.compiler.Validator.validateDirectives(Validator.java:1723) org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:182) org.apache.jasper.compiler.Compiler.compile(Compiler.java:347) org.apache.jasper.compiler.Compiler.compile(Compiler.java:327) but I don't know how to override the old value or the change the old value On Mon, Jul 5, 2010 at 10:43 PM, Konstantin Kolinko knst.koli...@gmail.comwrote: 2010/7/3 赵顺 cnjoy...@gmail.com: my web.xml -- web-app xmlns=http://java.sun.com/xml/ns/j2ee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; version=2.4 (...) jsp-config jsp-property-group url-pattern*.tag/url-pattern el-ignoredfalse/el-ignored page-encodingUTF-8/page-encoding scripting-invalidtrue/scripting-invalid /jsp-property-group /jsp-config I am afraid that the above is not applicable to tag files. Table JSP.8-2 Details of tag directive attributes page 1-179 of jsp-2_1-fr-spec.pdf says about isELIgnored attribute of a @tag directive: However, there is no corresponding global configuration element in web.xml Also chapter JSP.3.3 JSP Property Groups of the same specifications says A JSP property group is a collection of properties that apply to a set of files that represent JSP pages. and several sentences lower, explicitly: JSP Property Groups do not affect tag files. Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- 致 礼! 赵顺cnjoy...@gmail.com