Re: OutOfMemory errors compiling JSPs on 5.0.16 and 5.5.4
On Fri, 12 Nov 2004 17:17:28 -0800, Kevin A. Burton [EMAIL PROTECTED] wrote: - For all my JSPs I fetch them with the URL foo.jsp?jsp_precompile=true to trigger precompilation How many JSPs must be compiled to cause problems ? Note that the VM still shows plenty of memory so I'm not sure what the heck is going on here. I also looked at our file handles and they seem fine too. In that kind of situation, a profiler will have to be used. All I can tell right now is that it has nothing to do with the Java compilation, which is not very surprising. For really large web applications, I think you should precompile as many JSPs as possible anyway, as a JSP compiled dynamically will always use more resources (even if there is no bug in Jasper). -- x Rémy Maucherat Developer Consultant JBoss Group (Europe) SàRL x - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat auth error?
Looks like an error in your code. This isn't a tomact problem. -Original Message- From: Sunitha Kumar [mailto:[EMAIL PROTECTED] Sent: Thursday, November 11, 2004 9:53 PM To: [EMAIL PROTECTED] Subject: Tomcat auth error? ERROR [http8443-Processor20] authentication.Credentials (Credentials.java:89) - getCredential: CREDENTIAL_VALUE_NOT_DEFINED for AuthLoginPin Any pointers on where / why this error occurs? Is this internal tomcat error, or JSP error? thanks, -sunitha - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Newbie: problem with WebDav Tomcat servlet
This works for me. Did you restart the app after changing web.xml? What version of tomcat are you using? Mark -Original Message- From: Alessandro Ronchi [mailto:[EMAIL PROTECTED] Sent: Friday, November 12, 2004 11:40 AM To: [EMAIL PROTECTED] Subject: Newbie: problem with WebDav Tomcat servlet I want to use tomcat to develop an application. I've got the tomcat server correcly running, and I managed correctly basic users permissions. I have a problem: i want to use webdav to upload my app contents (jsp pages), but I get two errors: - Webdav runs correctly and ask me the correct password. After that, it shows me only the webdav/ contents (index.html tomcat.gif tomcat-power.gif WEB-INF), and I can't write anything. The WEB-INF/web.xml contains the uncommented init-param: !-- Uncomment this to enable read and write access -- init-param param-namereadonly/param-name param-valuefalse/param-value /init-param !--load-on-startup1/load-on-startup-- - I want to read and write with webdav (i'm using dreamweaver) my app dir: /usr/share/tomcat/server/webapps/dwers but I simply can't. I need some help, also a correct rtfm, because I've searched a lot but with no results. Thanks in advance. -- Alessandro Ronchi [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: CGI Servlet environmental variables
A couple of options: 1. Any query parameter or POSTed parameter should be passed to the CGI script on the command line in the form perl arg1=value1 arg2=value2 etc 2. The latest CGI script from CVS (the one in 4.1.31 contains a JDK 1.4 dependency) supports passing enviroment parameters to the CGI script. -Original Message- From: Lisa Soto [mailto:[EMAIL PROTECTED] Sent: Friday, November 12, 2004 11:42 PM To: [EMAIL PROTECTED] Subject: CGI Servlet environmental variables Hi, I've read through the documentation, and searched the archives and can't find a solution to my problem. We have apache2 with tomcat 4.1.27. When I was using mod_jk, we could uses aliases under apache with no problems, even with the ROOT of tomcat mounted on the / of apache. With JK2, this is not the case, so we're moving content into the tomcat containers. The hardest problem is the cgi-bin. I got the CGI Servlet working after some work, and the scripts execute. But I need for Tomcat to pass a variable for DOCUMENT_ROOT to the perl scripts in the cgi-bin that use it. Dumping the variables, I can see that it's not doing this. Is there some way to make this variable available to the perl scripts, even if I have to set it manually in the environment? This spans several scripts, so we'd want to set it globally for the server. Thanks, Lisa -- Lisa Soto [EMAIL PROTECTED] (631) 344-2009 Systems Administrator ITD Unix Services - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Newbie: problem with WebDav Tomcat servlet
Il giorno sab, 13-11-2004 alle 12:18 +, Mark Thomas ha scritto: This works for me. Did you restart the app after changing web.xml? Yes, I did. What version of tomcat are you using? Apache Tomcat/4.1.27-13 Another question: is it possible to access to a webapp dir contents with this webdav url: http://host:8080/webapp/webdav/ ? Must I add any configuration directive to get this working? -- Alessandro Ronchi [EMAIL PROTECTED] http://www.aronchi.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Newbie: problem with WebDav Tomcat servlet
Another question: is it possible to access to a webapp dir contents with this webdav url: http://host:8080/webapp/webdav/? No. The url is http://host[:port]/context/pathtofile/file Must I add any configuration directive to get this working? You shouldn't need to. You might want to try /* as the servlet mapping rather than /. This sometimes helps, particularly when the client is IE (but this tends to be more of an issue with TC5 than TC4) What webdav client are you using? -- Alessandro Ronchi [EMAIL PROTECTED] http://www.aronchi.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with classpaths
On Sat, Nov 13, 2004 at 10:33:24AM +0530, [EMAIL PROTECTED] wrote: : I've placed all my classes in : CATALINA_HOME/webapps/myapp/WEB-INF/classes : I've placed all my jars including the jgl3.1.0.jar(that contains : com.objectspace.jgl.Sequence) in CATALINA_HOME/webapps/myapp/WEB-INF/lib : : and all the other commonly used jars including the servlet.jar (contains : javax.servlet.HttpServlet) in CATALINA_HOME/common/lib/ Do you have two copies of servlet.jar (or another JAR file that contains servlet classes) elsewhere? That would cause all sorts of classloader problems. : If I don't include the servlet.jar in my CLASSPATH, I get a no class def : found error for HttpServlet and once I include servlet.jar, I get a : noclassdef found error for Sequence. Be careful how you use the term CLASSPATH -- you don't set this variable explicitly when you use Tomcat. Follow the guidelines and place JAR files or classes under certain directories (e.g. {context}/WEB-INF/lib, {tomcat}/common/lib, etc). : Can anybody please tell me as to how : the CLASSPATH works for tomcat and what all should I include in : classpath... I would be grateful for the info u provide... This problem is : bugging me since the past 2 days :-( There's a classloader doc on the Tomcat website. -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
a problem with a first app
I didn't managed to get webdav working, and I have some other troubles. If i follow the simple instructions written here http://sxs.thexdershome.com/internet_serving/c292.html to deploy a jsp page, I get the error at the bottom of the page. Another question: is there any tomcat 5.5.* rpm file for Red Hat / Fedora? Thanks in advance. HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: verification failed at PC 45 in org.apache.jsp.index_jsp:_jspService((Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V): incompatible type on stack at org.apache.jasper.servlet.JspServlet.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse) (/usr/lib/lib-org-apache-jasper-4.1.27.so) at javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse) (/usr/lib/lib-javax-servlet-2.3.so) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(javax.servlet.ServletRequest, javax.servlet.ServletResponse) (/usr/lib/lib-org-apache-catalina-4.1.27.so) at org.apache.catalina.core.ApplicationFilterChain.doFilter(javax.servlet.ServletRequest, javax.servlet.ServletResponse) (/usr/lib/lib-org-apache-catalina-4.1.27.so) at org.apache.catalina.core.StandardWrapperValve.invoke(org.apache.catalina.Request, org.apache.catalina.Response, org.apache.catalina.ValveContext) (/usr/lib/lib-org-apache-catalina-4.1.27.so) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(org.apache.catalina.Request, org.apache.catalina.Response) (/usr/lib/lib-org-apache-catalina-4.1.27.so) at org.apache.catalina.core.StandardPipeline.invoke(org.apache.catalina.Request, org.apache.catalina.Response) (/usr/lib/lib-org-apache-catalina-4.1.27.so) at org.apache.catalina.core.ContainerBase.invoke(org.apache.catalina.Request, org.apache.catalina.Response) (/usr/lib/lib-org-apache-catalina-4.1.27.so) at org.apache.catalina.core.StandardContextValve.invoke(org.apache.catalina.Request, org.apache.catalina.Response, org.apache.catalina.ValveContext) (/usr/lib/lib-org-apache-catalina-4.1.27.so) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(org.apache.catalina.Request, org.apache.catalina.Response) (/usr/lib/lib-org-apache-catalina-4.1.27.so) at org.apache.catalina.core.StandardPipeline.invoke(org.apache.catalina.Request, org.apache.catalina.Response) (/usr/lib/lib-org-apache-catalina-4.1.27.so) at org.apache.catalina.core.ContainerBase.invoke(org.apache.catalina.Request, org.apache.catalina.Response) (/usr/lib/lib-org-apache-catalina-4.1.27.so) at org.apache.catalina.core.StandardContext.invoke(org.apache.catalina.Request, org.apache.catalina.Response) (/usr/lib/lib-org-apache-catalina-4.1.27.so) at org.apache.catalina.core.StandardHostValve.invoke(org.apache.catalina.Request, org.apache.catalina.Response, org.apache.catalina.ValveContext) (/usr/lib/lib-org-apache-catalina-4.1.27.so) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(org.apache.catalina.Request, org.apache.catalina.Response) (/usr/lib/lib-org-apache-catalina-4.1.27.so) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(org.apache.catalina.Request, org.apache.catalina.Response, org.apache.catalina.ValveContext) (/usr/lib/lib-org-apache-catalina-4.1.27.so) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(org.apache.catalina.Request, org.apache.catalina.Response) (/usr/lib/lib-org-apache-catalina-4.1.27.so) at org.apache.catalina.valves.ErrorReportValve.invoke(org.apache.catalina.Request, org.apache.catalina.Response, org.apache.catalina.ValveContext) (/usr/lib/lib-org-apache-catalina-4.1.27.so) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(org.apache.catalina.Request, org.apache.catalina.Response) (/usr/lib/lib-org-apache-catalina-4.1.27.so) at org.apache.catalina.core.StandardPipeline.invoke(org.apache.catalina.Request, org.apache.catalina.Response) (/usr/lib/lib-org-apache-catalina-4.1.27.so) at org.apache.catalina.core.ContainerBase.invoke(org.apache.catalina.Request, org.apache.catalina.Response) (/usr/lib/lib-org-apache-catalina-4.1.27.so) at org.apache.catalina.core.StandardEngineValve.invoke(org.apache.catalina.Request, org.apache.catalina.Response, org.apache.catalina.ValveContext) (/usr/lib/lib-org-apache-catalina-4.1.27.so) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(org.apache.catalina.Request, org.apache.catalina.Response) (/usr/lib/lib-org-apache-catalina-4.1.27.so) at
Good tutorial on embedded Tomcat
I try to find good information on programming with embedded Tomcat, but did not find much. I managed to get it running. However, if there's more indepth information, it would be much easier. I didn't see much information on Tomcat website. Did I miss something? There's the API, which is good, but it would be nice to have tutorial on it. Also, do you have a suggestion on a good book on this (if it's on latest version 5.5 would be nice)? Thanks, vh. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Good tutorial on embedded Tomcat
On Sat, 13 Nov 2004 11:05:49 -0500, V D [EMAIL PROTECTED] wrote: I try to find good information on programming with embedded Tomcat, but did not find much. I managed to get it running. However, if there's more indepth information, it would be much easier. I didn't see much information on Tomcat website. Did I miss something? There's the API, which is good, but it would be nice to have tutorial on it. Also, do you have a suggestion on a good book on this (if it's on latest version 5.5 would be nice)? Too bad you're not at Apachecon ;) http://apachecon.com/html/session-popup.html?id=1070 Maybe Jean-Francois will post some of the content eventually. -- x Rémy Maucherat Developer Consultant JBoss Group (Europe) SàRL x - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: a problem with a first app
Il giorno sab, 13-11-2004 alle 17:00 +0100, Alessandro Ronchi ha scritto: I didn't managed to get webdav working, and I have some other troubles. If i follow the simple instructions written here http://sxs.thexdershome.com/internet_serving/c292.html to deploy a jsp page, I get the error at the bottom of the page. Another question: is there any tomcat 5.5.* rpm file for Red Hat / Fedora? Sorry: I didn't made a correct classpath, so the jsp compilation didn't work. The question regarding the 5.5* rpm version is still without an answer, because i did searched on web but with no results. -- Alessandro Ronchi [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Newbie: problem with WebDav Tomcat servlet
Il giorno sab, 13-11-2004 alle 13:57 +, Mark Thomas ha scritto: Another question: is it possible to access to a webapp dir contents with this webdav url: http://host:8080/webapp/webdav/? No. The url is http://host[:port]/context/pathtofile/file Here is my example: I have a context named dwers, and I correctly execute this jsp page: http://localhost:8080/dwers/index.jsp located on /usr/share/tomcat/webapps/dwers/index.jsp what's the correct webdav url? -- Alessandro Ronchi [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Good tutorial on embedded Tomcat
The new book on Tomcat5 Unleashed by Moczar covers embedded tomcat, but for only a chapter. The wrox book professional tomcat 5 also has chapter, but you know, a chapter can't possibly cover it in-depth. The book which probably covers Tomcat in-depth programmaticallywise is the How Tomcat Works book by Budi Kurniawan, which I have not browsed yet. --- V D [EMAIL PROTECTED] wrote: I try to find good information on programming with embedded Tomcat, but did not find much. I managed to get it running. However, if there's more indepth information, it would be much easier. I didn't see much information on Tomcat website. Did I miss something? There's the API, which is good, but it would be nice to have tutorial on it. Also, do you have a suggestion on a good book on this (if it's on latest version 5.5 would be nice)? Thanks, vh. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SocketException
Hollerman Geralyn M [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Peter Crowther wrote: SEVERE: Remote Host /xxx.xxx.xxx.xxx SocketException: Invalid argument Hmm. An EINVAL from the socket layer. Are you running UNIX or Windows? Depending on which, I'd get hold of a system call tracer (Unix) or TDImon (Windows), monitor until you got the error, and then look through the logfile to see which system call was giving you the error back. That might give you some insight into what your system is doing when this occurs... I'm on a Solaris system. So I take it you mean something like truss or truss itself? I think I tried that once and gave up for some reason - I'll have to go back to my notes to see why, I could've just run out of time. You could probably find more details in the archives, but the message is due to a problem with the Socket implementation on Solaris (soTimeout I think, but I'm not sure, and too lazy to search myself :). The short answer is that the message is pretty harmless, since TC catches it and continues processing. Do you know why this error might occur? I think the thing I'm really looking for is to see if there's something I need to do on the server end, or if it's a client problem. And I never see the error on my test server, just on the production one that has a greater load - the error doesn't SEEM to hurt anything, but then again catalina.out classifies it as SEVERE, so maybe there's something to it that I'm missing! Thanks for your help! -- Lynn Hollerman. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Newbie: problem with WebDav Tomcat servlet
From: Alessandro Ronchi [mailto:[EMAIL PROTECTED] Here is my example: I have a context named dwers, and I correctly execute this jsp page: http://localhost:8080/dwers/index.jsp located on /usr/share/tomcat/webapps/dwers/index.jsp what's the correct webdav url? All tomcat responses are provided by servlets. Each request is handled by one, and only one servlet. The servlet that is used is controlled by the servlet mappings. There are some default ones in conf/web.xml and you can specify applciatio specific ones in WEB-INF/web.xml. The rules that control the mapping are defined in the servlet spec. The JSP and sevrlet specs are a must read for any web developer. How does all of this affect you? Well, to view a JSP .jsp files must be mapped to the JSP servlet but to edit them they must be mapped to the webdav servlet. A resource will only ever be mapped to a single servlet. Webdav isn't intended to provide inplace editing of web application files. So, how can you get around this? - Use an IDE that lets you edit the JSP locally and deploys it automatically. I use Eclipse and the MyEclipse plugin but there are plenty of other options out there. - Edit you JSPs locally and use ant to deploy. - If you have access to the machine running tomcat (either directly or via putty etc) just edit the JSPs directly in the tomcat directory - Create a second context with the web.xml setup for webdav (use a /* mapping) and a symbolic link to the files in the 'normal' app - I don't know unix very well so can't really explain how to set something like this up HTH Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to fix: Tomcat responce time gets to 10-200 seconds once a day
Thank you very much for all the hints. I'll try checking the points you mentioned later. However, for test purposes I've moved the database to another PC within the same network and the problem seems to have gone away! Other PC (Database server) runs SuSE 9.0 (with MySQL 3.23.55), 2 Pentium 4 processors, 1 GB RAM. Can this help to pin-point the problem. I can leave this setup (web server on one PC and that database on another), but I'm getting the following error once in the while (normally when there are many hits one after the other). What can be the problem? I've tried using the current database driver (com.mysql.jdbc.Driver), but it didn't solve the problem. Any ideas? Thanks a lot, Roman Zhovtulya P.S. Here is an exception: javax.servlet.ServletException: Communication link failure: java.io.IOException at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContex tImpl.java:471) at org.apache.jsp.go$jsp._jspService(go$jsp.java:352) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServle t.java:201) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv e.java:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja va:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 72) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv e.java:190) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja va:566) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.ja va:246) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja va:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 72) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:234 7) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java :180) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja va:566) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa lve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja va:564) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java :170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja va:564) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja va:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 72) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve. java:174) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja va:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 72) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:458) at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551) at java.lang.Thread.run(Thread.java:536) root cause java.sql.SQLException: Communication link failure: java.io.IOException at org.gjt.mm.mysql.MysqlIO.clearAllReceive(Unknown Source) at org.gjt.mm.mysql.MysqlIO.sqlQueryDirect(Unknown Source) at org.gjt.mm.mysql.MysqlIO.sqlQuery(Unknown Source) at org.gjt.mm.mysql.Connection.execSQL(Unknown Source) at org.gjt.mm.mysql.Connection.execSQL(Unknown Source) at org.gjt.mm.mysql.Statement.executeQuery(Unknown Source) at org.gjt.mm.mysql.jdbc2.Statement.executeQuery(Unknown Source) at graduate_school.SQLconnectionBean.sqlQuery(SQLconnectionBean.java:66) at org.apache.jsp.go$jsp._jspService(go$jsp.java:289) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
Soap under Tomcat
Hallo all, I am a beginner with programming web-service with soap protocol under Tomcat web server. I find a link http://www.onjava.com/pub/a/onjava/2002/02/27/tomcat.html?page=1 which introduce how to use soap in Tomcat and deploy web services and a simple client to call this web service I have followed each step what is showed in this article. All run succesfully. only the last step java onjava.CalcClient 96 95. I get the following exceptions, but unfortunately I can not understand such exceptions, I hope someone can indicate the reason for me --- Exception in thread main [SOAPException: faultCode=SOAP-ENV:Protocol; msg=Unsu pported response content type quot;text/html; charset=ISO-8859-1quot;, must be : quot;text/xmlquot;. Response was: lt;htmlgt;lt;headgt;lt;titlegt;Apache Tomcat/4.1.30 - Error reportlt;/tit legt;lt;STYLEgt;lt;!--H1{font-family : sans-serif,Arial,Tahoma;color : white ;background-color : #0086b2;} H3{font-family : sans-serif,Arial,Tahoma;color : w hite;background-color : #0086b2;} BODY{font-family : sans-serif,Arial,Tahoma;col or : black;background-color : white;} B{color : white;background-color : #0086b2 ;} HR{color : #0086b2;} --gt;lt;/STYLEgt; lt;/headgt;lt;bodygt;lt;h1gt; HTTP Status 404 - /soap/rpcrouterlt;/h1gt;lt;HR size=quot;1quot; noshadegt ;lt;pgt;lt;bgt;typelt;/bgt; Status reportlt;/pgt;lt;pgt;lt;bgt;messa gelt;/bgt; lt;ugt;/soap/rpcrouterlt;/ugt;lt;/pgt;lt;pgt;lt;bgt;descr iptionlt;/bgt; lt;ugt;The requested resource (/soap/rpcrouter) is not availa ble.lt;/ugt;lt;/pgt;lt;HR size=quot;1quot; noshadegt;lt;h3gt;Apache To mcat/4.1.30lt;/h3gt;lt;/bodygt;lt;/htmlgt; ] at org.apache.soap.rpc.Call.getEnvelopeString(Call.java:208) at org.apache.soap.rpc.Call.invoke(Call.java:255) at onjava.CalcClient.main(CalcClient.java:35) -- I put my java servlet classes and source code in D:\Programs\jakarta-tomcat-4.1.30\webapps\soap\WEB-INF\classes\onjava I can deploy the CalcService servlet in Tomcat Server. But when I run the CalcClient, get the error messages above. I guess since I didn't add anything in \jakarta-tomcat-4.1.30\webapps\soap\WEB-INF\web.xml descriptor file. This web.xml is automatic generated by soap.war while I run the Tomcat Server first time. I don't know how can I edit the original web.xml(Deployment Descriptor)if I add new servlet class with package onjava in webapps\soap\WEB-INF\classes\onjava\. Another DeploymentDescriptor.xml identifying soap-service under webapps\soap\WEB-INF\classes\onjava\ runs correctly since I can deploy this webservice. The soap\WEB-INF\web.xml looks like following ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN http://java.sun.com/j2ee/dtds/web-app_2_2.dtd; web-app display-nameApache-SOAP/display-name descriptionno description/description servlet servlet-namerpcrouter/servlet-name display-nameApache-SOAP RPC Router/display-name descriptionno description/description servlet-classorg.apache.soap.server.http.RPCRouterServlet/servlet-class init-param param-namefaultListener/param-name param-valueorg.apache.soap.server.DOMFaultListener/param-value /init-param /servlet servlet servlet-namemessagerouter/servlet-name display-nameApache-SOAP Message Router/display-name servlet-classorg.apache.soap.server.http.MessageRouterServlet/servlet-class init-param param-namefaultListener/param-name param-valueorg.apache.soap.server.DOMFaultListener/param-value /init-param /servlet servlet-mapping servlet-namerpcrouter/servlet-name url-pattern/servlet/rpcrouter/url-pattern /servlet-mapping servlet-mapping servlet-namemessagerouter/servlet-name url-pattern/servlet/messagerouter/url-pattern /servlet-mapping /web-app Another reason I guess is that I didn't edit anything in D:\Programs\jakarta-tomcat-4.1.30\conf\server.xml while new webapplicatin soap comes. I can't edit such configuration files. How can I learn to write and edit such Deployment Descriptor file and server configuration files. The server.xml looks like: --- !-- Example Server Configuration File -- !-- Note that component elements are nested corresponding to their parent-child relationships with each other -- !-- A Server is a singleton element that represents the entire JVM, which may contain one or more Service instances. The Server listens for a shutdown command on the indicated port. Note: A Server is not itself a Container, so you may not define subcomponents such as Valves or Loggers at this level. -- Server port=8005 shutdown=SHUTDOWN debug=0 !--
Webgui framework
Is there a jsp framework that helps developing of web applications, helping developers handling tabs, buttons, choices and other similar application needs, avoiding them to write the presentation layer specific classes, such as tables, images for buttons and so on? -- Alessandro Ronchi [EMAIL PROTECTED] http://www.aronchi.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: OutOfMemory errors compiling JSPs on 5.0.16 and 5.5.4
Remy Maucherat wrote: On Fri, 12 Nov 2004 17:17:28 -0800, Kevin A. Burton [EMAIL PROTECTED] wrote: - For all my JSPs I fetch them with the URL foo.jsp?jsp_precompile=true to trigger precompilation How many JSPs must be compiled to cause problems ? About 50 or so... it changes every time. Sometimes I have to trigger a precompile twice. Note that the VM still shows plenty of memory so I'm not sure what the heck is going on here. I also looked at our file handles and they seem fine too. In that kind of situation, a profiler will have to be used. All I can tell right now is that it has nothing to do with the Java compilation, which is not very surprising. Why is it then that doing a ?jsp_precompile=true for all my JSPs and NO other action causes this? For really large web applications, I think you should precompile as many JSPs as possible anyway, as a JSP compiled dynamically will always use more resources (even if there is no bug in Jasper). Well thats probably an approach we will take but its unfortunate. If i had a profiler I would connect it to figure out whats going on but I'm really not happy with any of them. Kevin -- Use Rojo (RSS/Atom aggregator). Visit http://rojo.com. Ask me for an invite! Also see irc.freenode.net #rojo if you want to chat. Rojo is Hiring! - http://www.rojonetworks.com/JobsAtRojo.html If you're interested in RSS, Weblogs, Social Networking, etc... then you should work for Rojo! If you recommend someone and we hire them you'll get a free iPod! Kevin A. Burton, Location - San Francisco, CA AIM/YIM - sfburtonator, Web - http://peerfear.org/ GPG fingerprint: 5FB2 F3E2 760E 70A8 6174 D393 E84D 8D04 99F1 4412
Re: OT: hosting recommendations?
Ben Souther wrote: I use assortedinternet.com. Tomcat/postgres for 30.00 to 35.00 they might have other plans too On Fri, 2004-11-12 at 14:34, Woodchuck wrote: hihi all, can anyone recommend hosters that are Tomcat/Java friendly and offer private JVMs for cheap monthly cost? (cheap to me is $0 - $20/month range) i went to servlets.com and visited many of the hosters on their list but most of them seem to still have the legacy offerings that are stingy on space and transfer allowances. it was either that or they charge a lot ($50+/month) for private JVMs. thanks in advance, woodchuck __ Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] We use KGBInternet located in Canada. Phil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: OT: hosting recommendations?
http://order.1and1.co.uk/xml/order/Server They also have US hosting. .V phil campaigne wrote: Ben Souther wrote: I use assortedinternet.com. Tomcat/postgres for 30.00 to 35.00 they might have other plans too On Fri, 2004-11-12 at 14:34, Woodchuck wrote: hihi all, can anyone recommend hosters that are Tomcat/Java friendly and offer private JVMs for cheap monthly cost? (cheap to me is $0 - $20/month range) i went to servlets.com and visited many of the hosters on their list but most of them seem to still have the legacy offerings that are stingy on space and transfer allowances. it was either that or they charge a lot ($50+/month) for private JVMs. thanks in advance, woodchuck __ Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] We use KGBInternet located in Canada. Phil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]