The question of automatic restart Tomcat
Good afternoon. I apologise if this theme described in documentation Tomcat, I badly understand English language. Whether you could not answer me is in tomcat 6.0.X Service which automatically would start Tomcat, at end of its work as a result of an error or failure in software work. If such service I will is it is very grateful if you send me the reference to the documentation on adjustment of this service, or simply tell as it is called. Copy Good afternoon. I apologize if this topic is described in the documentation Tomcat, I do not understand English. Could you answer me is there in tomcat 6.0.X service that would automatically starts Tomcat, at the conclusion of his work as a result of errors or malfunction of the software. If this service is going to be very grateful if you send me a link to the documentation on configuring this service, or just tell it s called. -- С уважением, Mirgorodskiy mailto:eugene.mirgorods...@extreme-idea.com - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
The body of the request is lost when you send the POST method !
Please, help me with bug: https://issues.apache.org/bugzilla/show_bug.cgi?id=47797 and http://www.jboss.org/index.html?module=bb&op=viewtopic&t=161900 -- Best Regards, Eugene Batogov ___ - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Loss of body POST request...
I have stacketrace for xmlrpc versions: org.xml.sax.SAXParseException: Premature end of file. at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) at org.apache.xmlrpc.server.XmlRpcStreamServer.getRequest(XmlRpcStreamServer.java:65) at org.apache.xmlrpc.server.XmlRpcStreamServer.execute(XmlRpcStreamServer.java:199) at org.apache.xmlrpc.webserver.XmlRpcServletServer.execute(XmlRpcServletServer.java:112) at org.apache.xmlrpc.webserver.XmlRpcServlet.doPost(XmlRpcServlet.java:196) at javax.servlet.http.HttpServlet.service(HttpServlet.java:710) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179) at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84) 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:262) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446) at java.lang.Thread.run(Thread.java:619) Just do not say that this is a mistake to xmlrpc. Comes empty stream. -- Best Regards, Eugene Batogov ___
Re: Loss of body POST request...
I use Oracle JRockit JVM -- Best Regards, Eugene Batogov ___ - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Loss of body POST request...
I use POST URI. Headers remain constant. And header receive normal, but body loss?!?!? error trace: at javax.servlet.http.HttpServlet.service(HttpServlet.java:710) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179) at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84) 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:262) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446) at java.lang.Thread.run(Thread.java:619) Аnd see bug: https://issues.apache.org/bugzilla/show_bug.cgi?id=47797 It is a dump of the request and response: https://issues.apache.org/bugzilla/attachment.cgi?id=24223 -- Best Regards, Eugene Batogov ___
Re: Loss of body POST request...
What has FileUpload, if the request body is lost! I want to know why, in principle it may be lost? -- Best Regards, Eugene Batogov ___
Simple Howto
I'm looking for some reasonably simple instructions on gettting Tomcat and Apache working together. Here's whare I'm at now: 1. Ever since I learned how to do LVM, that's what I use. 2. I've always installed the Sun Java at the completion of the standard install, and I've installed it at /usr/java with a 4-GB file system 3. I always have installed Tomcat in /usr/tomcat with a 2-GB file system 4. I always installed Apache HTTPD in /usr/apache 5. I have always let Apache and Tomcat place their docroots on /usr/apache 6. I run Oracle 10g on this machine as the standard DBMS. I want to add Fedora DS, Eclipse, and JBoss to my environment - AFTER I get my original question solved. I'm open to altering where the above mentioned pieces of software are located. I am open to doing a fresh install on this machine of Fedora 8. What are some ideas? TIA, Gene - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Deployment] Tomcat 5.5, Single war into multiple apps
Nevermind, in server.xml -- View this message in context: http://www.nabble.com/-Deployment--Tomcat-5.5%2C-Single-war-into-multiple-apps-tf3431207.html#a9588211 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Deployment] Tomcat 5.5, Single war into multiple apps
> > > >> Take out the path attributes - they're not allowed when a >> element is in the conf/Catalina/localhost directory. Where should I put if not in seperate xml under conf/Catalina/localhost? I ended up replacement foo with request.getContextPath() and working fine. Thanks. -- View this message in context: http://www.nabble.com/-Deployment--Tomcat-5.5%2C-Single-war-into-multiple-apps-tf3431207.html#a9588114 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Deployment] Tomcat 5.5, Single war into multiple apps
Dear experts, I have this foo.war created using netbeans and deployed to 2 apps in Tomcat, namely fooTest and fooProduction. So I made 2 copies and renamed them to fooTest.war and fooProduction.war and made changes to \conf\Catalina\localhost\fooTest.xml and fooProduction.xml So we have 2 apps which can be accessed from http://localhost:8080/fooTest and http://localhost:8080/fooProduction Both apps run fine except for links which we hardcoded in our source, like window.location = '/foo/logout.jsp';. Is there a way to config these apps to redirect to their corresponding subdirectory when Tomcat see path the /foo ? Any help would be great, thanks. -- View this message in context: http://www.nabble.com/-Deployment--Tomcat-5.5%2C-Single-war-into-multiple-apps-tf3431207.html#a9565386 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How To Migrate
I've recently moved from fedora core 4 to fedora core 6 and during that process the tomcat being used is version 5.5.17. I kept a backup of my original tomcat version 5.0.28. I would like to know is there some documentation on migrating from 5.0.x to 5.5.x? Also, I see that what worked for mod_jk no longer works well. Is there some documentation available for migrating apache version 2.0.47 to version 2.2.3? TIA Gene [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Session is lost
Hello, please help me to find the reason of the problem? I have a strange situations with sessions. Server: Jboss(Tomcat 5.5.17) Servlet engine version: 2.4 Java version: 1.4.2-b28 When I submit the Form using method "POST", I get new session instead of my current session. I see it from method doFilter() in LoginFilter. The Form are submitted from JSP (fileUpload.jsp) that was opened by JavaScript command window.showModalDialog(...) Tomcat works by using cookies. The current session is not expired, JSP (fileUpload.jsp) gets right session and right cookies. I have tried to transfer url to Server in format "http://localhost:8080/xxx/xxx/fileUpload.jsp;jsessionid=x"; but Server works by using Cookies only, not URL-rewriting, so it doesn't help me. Why Server creates new session in my situation? When fileUpload.jsp is loaded, I can get next information: from cookies: true from url: false is new: false is valid: true session is not expired There is some code fragments: actions.xml .. screen="properties/common/fileupload/fileUpload.jsp"> efi.base.web.framework.AckAction efi.processDef.web.LoadFileAction .. web.xml contents: LoginFilter *.do Compression Filter *.do LoginFilter *.jsp Compression Filter *.jsp LoginFilter.java contents: public void doFilter( ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { HttpServletRequest hreq = (HttpServletRequest) request; String currentURL = hreq.getRequestURI().substring(hreq.getContextPath().length() + 1); if (! requiresAuthentication(currentURL)) { chain.doFilter(request, response); // proceed to resource return; } String loggedIn = (String) hreq.getSession().getAttribute(WebKeys.LOGGED_IN_STRING); if (loggedIn != null) { chain.doFilter(request, response); return; } else { filterConfig.getServletContext().getRequestDispatcher(this.loginPage).forward( request, response); return; } } } fileUpload.jsp - the jsp page in modal Dialog window: enctype="multipart/form-data" onsubmit="checkData();"> -- Thanks, Eugene Razorenov - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Is There A HowTo?
I'm trying to find a good HowTo or Tutorial on what must be done to configure Apache-2.0 + Tomcat-5.0 + mod_jk all running on my single Fedora Core 4 box. Is there such a document? I'm running the Apache from the original FC4 install. I'm using Sun's Java 1.4.2-10. The Apache runs correctly and the Tomcat runs correctly. I'm just having difficulty tying them together with mod_jk. TIA Gene - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Is There a Howto - Again
Joe Plautz wrote: You can find just about what ever you are looking for on the web, but I've found that there are several well written books on Tomcat. When I was getting started, I had a copy of "Professional Apache Tomcat." It didn't have everything that I needed, but it was most certainly my first stop. Specifically, it was really helpful in setting up DataBase Connection Pools and such. Thanks, I'm heading to Borders and Barnes & Noble in just a few. Gene - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Is There a Howto - Again
Bjørge Solli wrote: 42.. Both httpd(apache) and tomcat can be installed with yum on FC4. How to use them together depends on what you want to do. Oracle I have no clue about. In short: there is no howto covering your question. Your Q is too general. Be more specific on your problem and what you have managed so far and where you get trouble. *Then* you might get some help. Let me give a little background on myself. I'm a DBA by trade - I do Oracle, DB2 UDB, and MS SQL Server. I'm the most comfortable with Oracle (6+ years experience). For something to do, I built these databases to keep my home inventory and video/music collections. But since I process all of the databases using static sql, I am the only person in my home that can keep them up to date. So I thought if I can build a 'simple' web app, anyone could help keep things current... Specifically, here is what I've done so far: 1. I have apache working using the standard sample programs to test (I used the FC4 rpms). 2. I have tomcat working using the standard sample programs to test (I used the standard package). 3. I have oracle working since version 8i and I'm up to 10g R2. Now I want to do the following: 1. Add the correct entries in the httpd.conf so that apache passes what it should to tomcat and it works correctly. 2. Install and test eclipse so that I can write jsp's to duplicate some static sql I use to process the databases - with a gui. 3. Document this environment and applications so that I can give it to anyone who wants it as a freebie. All of this to educate myself (you know idle hands...). I understand that there is not a single source of reference, but where can I start looking? Gene - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Is There a Howto - Again
What I should have asked was: "Where can I find a 'HowTo' or a tutorial on HTTP 2.0.53 + Tomcat 5.0.28 + Oracle 10g R2 + Fedora Core 4?" Gene - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Is There a Howto
Where can I find a 'HowTo' or a tutorial on HTTP 2.0.53 + Tomcat 5.0.28 + Oracle 19g R2 + Fedora Core 4? Gene - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]