Re: shared/lib again...
Julio César Aguilar wrote: I've done several tests in Windows and this is what I found. To remember my settings No CATALINA_BASE defined. Tests done with CATALINA_HOME/shared/lib. 1. As being told, I can find jars put in CATALINA_HOME/common/lib. 2. What exactly the moment when CNFE is thrown? You said that the applications is not even start due to CNFE, so that classes are needed during deployment or while normal application functioning? The original problem was with a Filter, which was started at deployment. Then to my opinion this is due to Filter initialization (not run-time usage) as implemented in Tomcat: it uses a classloader that sees private webapp libraries (WEB-INF/lib/*) and libraries common to both webapp and Tomcat itself (CATALINA_HOME/common/lib/*), but not CATALINA_HOME/shared/lib/* . Hey, anybody with internals knowlegde can clarify this? If I place the jar that contains the Filter class in WEB-INF/lib then the application starts, but looking for classes needed after deployment (during a normal run) I can't find them if the corresponding jars are in shared/lib. 3. Something I had not mentioned about my application (I did not thought it was relevant) is that it lives outside the CATALINA_HOME directory, is referred to by a context.xml file in CATALINA_HOME/conf/Catalina/localhost. I don't think this is relevant eithter... Using a test application in CATALINA_HOME/webapps and compiling the IsThereThisClass servlet provided by Veniamin I can finally find the classes within shared/lib. Stop, now I've messed up. :-) Your code can not find some jars in question, but mine does?? That code simply get servlet's classloader and searches a class by given name. So while it gets an ordinary this.getClass().getClassLoader(), it legally uses a classloader mentioned in Tomcat's docs as "WebappX classloader", which surely should find all classes in its classpath. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Does setBufferSize() work?
Graham Lea wrote: Summary: Tomcat appears to be committing the response buffer when it is much less full (~200K) than the buffer size I have set (4MB). I think I've made some headway... I conjecture that the buffer size of the ServletResponse is irrelevant to a JSP - that perhaps a JSP is only concerned with the JspWriter's buffer size: that set in it's page directive. Does anyone know if, when a JspWriter flushes, it also flushes the underlying ServletOutputStream? It is clear that the buffer size of a JSP's Writer is not inherited by any included JSPs. I've set a buffer size in my main JSP of 4MB, and then debugged the size of its JspWriter's buffer - 4MB: all good. Then, I include another JSP and debug the size there - 8KB. Not good. If, when this page gets to 8K, it commits itself, which commits the JspWriter including it, which in turn commits the ServletOutputStream, this would explain what I'm seeing. Could someone in the know please comment on whether this seems likely? (We're talking implementation details now, I think.) If this is the case, I can't see any solution but to set a large buffer size in all my JSPs. Is there another solution? In addition, if the server's going to start creating a huge buffer per JSP (rather than per request), I'm going to be in big trouble. Is this the way the server will behave? Any response welcome. : ) Thanks, Graham. -- Graham Lea Software Engineer Forge Research Pty Ltd Suite G11, Bay 9, Locomotive Workshop Australian Technology Park, Cornwallis Street Eveleigh NSW 1430 Australia Phone: +61 2 9209 4152 Fax: +61 2 9209 4172 www.forge.com.au -- This message contains privileged and confidential information intended only for the use of the addressee named above. If you are not the intended recipient of this message you must not disseminate, copy or take any action in reliance on it. If you have received this message in error please notify the sender immediately. Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of another (including a Body Corporate). -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
contextInitialized called twice during webapp deployment
Can anyone advise - what would cause a listener's contextInitialized() to be called exactly twice during the deployment of a webapp? I am using Tomcat included in the Java Web Services Developer Pack v1.3. The double call of contextInitialized() happens for both my servlets, and the example servlets that have listeners defined. The only hint I have at the moment is that when incrementing one static and one instance counter within the listener, on both calls both variables are 1 (from 0), so could two different classloaders or VMs be instantiating the ContextListener, and what would cause that? I don't have any virtual hosts defined. Thanks Brett Randall _ Protect your inbox from harmful viruses with new ninemsn Premium. Go to http://ninemsn.com.au/premium/landing.asp?banner=emailtag&referrer=hotmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: pageEncoing and contentType
Hello Seiji. What it means "character is not encoded correctly"? If PDF content is unreadable, then that's PDF file problem, not Tomcat. Is this PDF opens correctly by itself, i.e. when you open it through Adobe Reader? Anyway, just do response.setContentType("application/pdf") and let browser open it accordingly. seiji takegata wrote: I'm trying to generate PDF document directory from JSP using itext library. I have an encoding problem. I put pageEncoding and contentType attributes in page directive as: <%@ page contentType="application/pdf"%> <%@ page pageEncoding="Shift_JIS"%> Then tomcat (or jasper) translates them like: response.setContentType("application/pdf;charset=Shift_JIS"); IE will not open AdobeReader, show download dialog instead. If I do not specify pageEncoding, then the line above will be: response.setContentType("application/pdf"); AdobeReader opens as I expect. But character is not encoded correctory. I wonder why "charset=Shift_JIS" is added to contentType string. I want remove it from the contentType string, or remove whole the line. I think I can specify contentType by response.setCotentType("application/pdf"); - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat is frozen
Hello All, I am using Tomcat 4.1.24 and JDK 1.4.1_02. If there is no request submitted to Tomcat to handle for some time after Tomcat is started up, then the Tomcat is frozen, it could not handle requst any more. If there is request submitted to Tomcat immediately after it is started up, then tomcat can work normally. Do you have any idea about the case? Thanks. Regards, Xiaojing - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JK connector -- isapi2 -- file upload
I use a workaround - my upload form uploads to port 8080 directly and then Tomcat redirects the user back to port IIS port 80 after the upload. ADC. -Original Message- From: JoAnn Lemm [mailto:[EMAIL PROTECTED] Sent: 16 April 2004 18:17 To: 'Tomcat Users List' Subject: RE: JK connector -- isapi2 -- file upload Importance: High While we're discussing this ... has anyone developed a work-around for this problem? I have beta product clients calling me, so this is extremely critical. Leaving debug running seems to only fix the problem intermittently. Is there another ISAPI that will work? --JoAnn -Original Message- From: E Cunningham [mailto:[EMAIL PROTECTED] Sent: Friday, April 16, 2004 9:59 AM To: Tomcat Users List Subject: Re: JK connector -- isapi2 -- file upload We verified this using Tomcat 4.1.30 not 5.x. Therein may be the problem. The connector code in Tomcat. Let's ask this then. Is there a dependency between JK2 and Tomcat? When they started to release separately one would think that any JK2 would work with any Tomcat? Does JK2 need to include a jk2.jar? JoAnn, thanks for provoking more thought on this. e --- JoAnn Lemm <[EMAIL PROTECTED]> wrote: > Hi All, > > I've search the archives and I've seen several posts > indicating that there > is a bug in the isapi connector in regards to large > file uploads (or not > that large, since the error seems to occur at or > around 50Kb.) The problem > being that "the stream ended unexpectedly. > > The strange thing is, I don't see this problem when > I upload a large file > (3M) within our intranet (I'm using IIS6, Tomcat 5 & > jk2.0.4), only when I > try to access from the internet. > > This leads me to believe there is some sort of > timing problem (the connector > trying to grab data that hasn't yet arrived?) > Interestingly, I solved the > problem by turning debug on - forcing the isapi > connector to log debug > messages and making is slow down a bit. That 3M file > uploaded with no > problem. > > So, here's the question ... is there a properties > file, ini file ... > anything ... where I can set the size of the buffer > in the connector? It > looks like it's grabbing about 8Kb each time. > > --JoAnn > > > > - > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > __ Do you Yahoo!? Yahoo! Tax Center - File online by April 15th http://taxes.yahoo.com/filing.html - 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] --- QAS Ltd. Developers of QuickAddress Software http://www.qas.com";>www.qas.com Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: pageEncoing and contentType
Hi Veniamin, Thank you for your reply. > What it means "character is not encoded correctly"? If PDF content > is unreadable, then that's PDF file problem, not Tomcat. Is this PDF > opens correctly by itself, i.e. when you open it through Adobe Reader? > Anyway, just do response.setContentType("application/pdf") and let > browser open it accordingly. > I tried. Then Japanese characters are all dimed (converted to randome characters like noise). Because itext asumes Japanese character as Shift_JIS encoded, but Tomcat default is UTF-8, so I have to specify pageEncoding attribute in page directive. I can see PDF content is correct when I save it as a file and open with Adobe Reader. My point is why tomcat put charset option to contentType when I specify pageEncoding attribute. I might write code to generate image from String, then the content should not be attributed like "charset=Shift_JIS". but still I need to specify pageEncoding attribute for correct character encoding. I just want tomcat to stop adding charset option when pageEncoding attribute is specified. Am I wrong? > seiji takegata wrote: > > > I'm trying to generate PDF document directory from JSP using > > itext library. I have an encoding problem. > > > > I put pageEncoding and contentType attributes in page directive > > as: > > > > <%@ page contentType="application/pdf"%> > > <%@ page pageEncoding="Shift_JIS"%> > > > > Then tomcat (or jasper) translates them like: > > > > response.setContentType("application/pdf;charset=Shift_JIS"); > > > > IE will not open AdobeReader, show download dialog instead. > > > > If I do not specify pageEncoding, then the line above will be: > > > > response.setContentType("application/pdf"); > > > > AdobeReader opens as I expect. But character is not encoded > > correctory. > > > > I wonder why "charset=Shift_JIS" is added to contentType string. > > I want remove it from the contentType string, or remove whole > > the line. I think I can specify contentType by > > > > response.setCotentType("application/pdf"); > > > -- seiji takegata [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Content-disposition with non-us filename problem: Tomcat 4.1.24 + JK2 2.0.2 + Apache 2
Hi, I'm trying to http download a file whose name has latin characteres via servlet. The servlet composes a http request with the header: Content-disposition: attachment; filename="fileNameWithLatinCharacters" If the request is dispatched to the browser directly by tomcat, fileNameWithLatinCharacters (header and open save box dialog) is correctly formed and displayed. When the request is dispatched through apache + JK2 2.0.2 , fileNameWithLatinCharacters gets malformed. ISO-8859-1 and es language are configured in apache configuration file, and it doesn't have any problems to serve static pages with latin characteres. Could it be a JK2 module matter? Is there any compilation/configuration option in JK2 module that addresses this problem? Or any other idea? That's the log: - Request: GET /webmail/attachment?¤twindow=1&instance=foo&session_id=017F2165E2CF9F6EDC2F80F023EE709C&msgId=<[EMAIL PROTECTED]>&msgNum=1&webmail_folder=INBOX&filename=IPP_0012ñññáá.GIF&contentType=image/gif HTTP/1.1 Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, application/x-shockwave-flash, */* Accept-Language: es Accept-Encoding: gzip, deflate User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0) Host: des.correonotarial.org Connection: Keep-Alive Cookie: JSESSIONID=017F2165E2CF9F6EDC2F80F023EE709C Apache + JK2 + Tomcat response: HTTP/1.1 200 Date: Fri, 16 Apr 2004 09:56:34 GMT Server: Apache/2.0.47 (Unix) PHP/4.3.4 mod_jk2/2.0.2 DAV/2 Content-disposition: attachment; filename="IPP_0012ñññáá.GIF" -> *** WRONG filename *** Content-Type: application/x-download; charset=iso-8859-1 Content-Language: es-ES Transfer-Encoding: chunked Standalone Tomcat response: - --- HTTP/1.1 200 OK Content-disposition: attachment; filename="IPP_0012ñññáá.GIF" -> *** RIGHT filename *** Content-Type: application/x-download; charset=iso-8859-1 Transfer-Encoding: chunked Date: Fri, 16 Apr 2004 10:16:19 GMT Server: Apache Coyote/1.0 Thanks a lot, best regards Carlos - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Mysterious Null Pointer Exception in Login script
Hi, I hope this is the right list for this, it's been driving me up the wall! First things first, I'm using tomcat servlet container 4.1 with Suns J2SE 1.4.1 The problem is I have a simple login procedure whereby a user enters their id and password into a JSP which passes the information to a Java Method. This method in turn checks the Database to see if the user is valid. If the user is valid a new session is created and the information stored in a bean. So far so good, I've used this method on several occassions with no trouble. However when I attempt to login (with any set of data) I get a NullPointerException at line 30 of the class file. Always the same exception and always at line 30 no matter what I do. I can't find any useful info from the logs or the exception that's thrown. Has anyone any thoughts on what may be causing this or pointers on how to solve it? The offending page is at www.golduk.net/selfcare/index.jsp Thanks, Adam Buglass - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 4.1 + apache 1.3.28 + mod_rewrite
Hi, does somebody knows if mod_rewrite works with tomcat integrated with apache via mod_jk ? I was searching old mails in archive to find out, but didn't see any good answer. In some documents I've read that the mod_rewrite will not work since it'll broke the servlet specification, but what is with .jsp files (they're servelts too, I know, but...) ? And, finally, is it possible to use rewrite rules that were working with apache+ JServ+GNUJsp in this new environment (tomcat + apache + mod_jk) ? or there will be needed some modifications in rewrite rules ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
jakarta-tomcat-connectors 2.0.4 binary file for windows is not available on the apache site
The Windows Binary JK2 zip file contains the binary Unix file, mod_jk2.so, and not mod_jk2.dll. (http://apache.mirror.positive-internet.com/jakarta/tomcat-conn ectors/jk2/binaries/win32/jakarta-tomcat-connectors-jk2.0.4-win32-apache2.0.49.zip). Where can I get the correct binary files for the jk2 connector for windows, that contains mod_jk2.dll? Any help you can give would be great!! Thanks. Regards, Doris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Mysterious Null Pointer Exception in Login script
try looking for this file in your work directory login_jsp._jspService(login_jsp.java:74) "Adam Buglass" <[EMAIL PROTECTED]> 04/19/2004 05:41 PM Please respond to "Tomcat Users List" To: "Tomcat Users List" <[EMAIL PROTECTED]> cc: Subject:Mysterious Null Pointer Exception in Login script Hi, I hope this is the right list for this, it's been driving me up the wall! First things first, I'm using tomcat servlet container 4.1 with Suns J2SE 1.4.1 The problem is I have a simple login procedure whereby a user enters their id and password into a JSP which passes the information to a Java Method. This method in turn checks the Database to see if the user is valid. If the user is valid a new session is created and the information stored in a bean. So far so good, I've used this method on several occassions with no trouble. However when I attempt to login (with any set of data) I get a NullPointerException at line 30 of the class file. Always the same exception and always at line 30 no matter what I do. I can't find any useful info from the logs or the exception that's thrown. Has anyone any thoughts on what may be causing this or pointers on how to solve it? The offending page is at www.golduk.net/selfcare/index.jsp Thanks, Adam Buglass - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: pageEncoing and contentType
seiji takegata wrote: Hi Veniamin, Thank you for your reply. What it means "character is not encoded correctly"? If PDF content is unreadable, then that's PDF file problem, not Tomcat. Is this PDF opens correctly by itself, i.e. when you open it through Adobe Reader? Anyway, just do response.setContentType("application/pdf") and let browser open it accordingly. I tried. Then Japanese characters are all dimed (converted to randome characters like noise). Because itext asumes Japanese character as Shift_JIS encoded, but Tomcat default is UTF-8, so I have to specify pageEncoding attribute in page directive. Sorry, I don't know what is itext for, text->pdf translator? Try this: <%@ page contentType="application/pdf; charset=ISO-8859-1" pageEncoding="Shift_JIS" %> Is this what you want to archive -- set response type to look like PDF without any particular encoding, and to tell Jasper that your source encoded with "Shift_JIS"? By the way, it's Jasper who thinks that JSPs are in UTF-8, but Tomcat assumes ISO-8859-1 (HTTP standard AFAIK) when processing request/response. I can see PDF content is correct when I save it as a file and open with Adobe Reader. My point is why tomcat put charset option to contentType when I specify pageEncoding attribute. I might write code to generate image from String, then the content should not be attributed like "charset=Shift_JIS". but still I need to specify pageEncoding attribute for correct character encoding. I just want tomcat to stop adding charset option when pageEncoding attribute is specified. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Mysterious Null Pointer Exception in Login script
Thanks, but I already had a look. The line causing the error in that file is the line that calls the method: thisUser.login( userid, passwd ); Which itself appears to be causing the error, or am I missing something? The login_jsp.java file looks like this of you're interested: package org.apache.jsp; import javax.servlet.*; import javax.servlet.http.*; import javax.servlet.jsp.*; import org.apache.jasper.runtime.*; public class login_jsp extends HttpJspBase { private static java.util.Vector _jspx_includes; public java.util.List getIncludes() { return _jspx_includes; } public void _jspService(HttpServletRequest request, HttpServletResponse response) throws java.io.IOException, ServletException { JspFactory _jspxFactory = null; javax.servlet.jsp.PageContext pageContext = null; HttpSession session = null; ServletContext application = null; ServletConfig config = null; JspWriter out = null; Object page = this; JspWriter _jspx_out = null; try { _jspxFactory = JspFactory.getDefaultFactory(); response.setContentType("text/html;charset=ISO-8859-1"); pageContext = _jspxFactory.getPageContext(this, request, response, null, true, 8192, true); application = pageContext.getServletContext(); config = pageContext.getServletConfig(); session = pageContext.getSession(); out = pageContext.getOut(); _jspx_out = out; ISPSelfCare.Login thisUser = null; synchronized (session) { thisUser = (ISPSelfCare.Login) pageContext.getAttribute("thisUser", PageContext.SESSION_SCOPE); if (thisUser == null){ try { thisUser = (ISPSelfCare.Login) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "ISPSelfCare.Login"); } catch (ClassNotFoundException exc) { throw new InstantiationException(exc.getMessage()); } catch (Exception exc) { throw new ServletException("Cannot create bean of class " + "ISPSelfCare.Login", exc); } pageContext.setAttribute("thisUser", thisUser, PageContext.SESSION_SCOPE); } } out.write("\n\n"); String userid = request.getParameter( "userid" ); String passwd = request.getParameter( "passwd" ); // if( userid == null || passwd == null ) // throw new RuntimeException( "Invalid arguments" ); // if( userid.length() == 0 ) // throw new RuntimeException( "Please provide your dial-up user id." ); // if( passwd.length() == 0 ) // throw new RuntimeException( "Please provide your dial-up password." ); // // // // thisUser.login( userid, passwd ); // thisUser.something(); // thisUser.setUserID( userid ); response.sendRedirect( "index.jsp" ); out.write("\n"); } catch (Throwable t) { out = _jspx_out; if (out != null && out.getBufferSize() != 0) out.clearBuffer(); if (pageContext != null) pageContext.handlePageException(t); } finally { if (_jspxFactory != null) _jspxFactory.releasePageContext(pageContext); } } } On Mon, 2004-04-19 at 10:58,
Re: Mysterious Null Pointer Exception in Login script
could the userid or passwd be null??? "Adam Buglass" <[EMAIL PROTECTED]> 04/19/2004 06:05 PM Please respond to "Tomcat Users List" To: "Tomcat Users List" <[EMAIL PROTECTED]> cc: Subject:Re: Mysterious Null Pointer Exception in Login script Thanks, but I already had a look. The line causing the error in that file is the line that calls the method: thisUser.login( userid, passwd ); Which itself appears to be causing the error, or am I missing something? The login_jsp.java file looks like this of you're interested: package org.apache.jsp; import javax.servlet.*; import javax.servlet.http.*; import javax.servlet.jsp.*; import org.apache.jasper.runtime.*; public class login_jsp extends HttpJspBase { private static java.util.Vector _jspx_includes; public java.util.List getIncludes() { return _jspx_includes; } public void _jspService(HttpServletRequest request, HttpServletResponse response) throws java.io.IOException, ServletException { JspFactory _jspxFactory = null; javax.servlet.jsp.PageContext pageContext = null; HttpSession session = null; ServletContext application = null; ServletConfig config = null; JspWriter out = null; Object page = this; JspWriter _jspx_out = null; try { _jspxFactory = JspFactory.getDefaultFactory(); response.setContentType("text/html;charset=ISO-8859-1"); pageContext = _jspxFactory.getPageContext(this, request, response, null, true, 8192, true); application = pageContext.getServletContext(); config = pageContext.getServletConfig(); session = pageContext.getSession(); out = pageContext.getOut(); _jspx_out = out; ISPSelfCare.Login thisUser = null; synchronized (session) { thisUser = (ISPSelfCare.Login) pageContext.getAttribute("thisUser", PageContext.SESSION_SCOPE); if (thisUser == null){ try { thisUser = (ISPSelfCare.Login) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "ISPSelfCare.Login"); } catch (ClassNotFoundException exc) { throw new InstantiationException(exc.getMessage()); } catch (Exception exc) { throw new ServletException("Cannot create bean of class " + "ISPSelfCare.Login", exc); } pageContext.setAttribute("thisUser", thisUser, PageContext.SESSION_SCOPE); } } out.write("\n\n"); String userid = request.getParameter( "userid" ); String passwd = request.getParameter( "passwd" ); // if( userid == null || passwd == null ) // throw new RuntimeException( "Invalid arguments" ); // if( userid.length() == 0 ) // throw new RuntimeException( "Please provide your dial-up user id." ); // if( passwd.length() == 0 ) // throw new RuntimeException( "Please provide your dial-up password." ); // // // // thisUser.login( userid, passwd ); // thisUser.something(); // thisUser.setUserID( userid ); response.sendRedirect( "index.jsp" ); out.write("\n"); } catch (Throwable t) { out = _jspx_out; if (out != null && out.getBufferSize() != 0) out.clearBuffer(); if (pageContext != null) pageContext.handlePageException(t); } finally { if (_jspxFactory != null) _jspxFactory.releasePageContext(pageContext); } } } On Mon, 2004-04-19 at 10:58, Thomas Chua wrote: > try looking for this file in your work directory > login_jsp._jspService(login_jsp.java:74) > > > > > > "Adam Buglass" <[EMAIL PROTECTED]> > 04/19/2004 05:41 PM > Please respond to "Tomcat Users List" > > > To: "Tomcat Users List" <[EMAIL PROTECTED]> > cc: > > Subject:Mysterious Null Pointer Exception in Login script > > > > Hi, I hope this is the right list for this, it's been driving me up the > wall! > > First things first, I'm using tomcat servlet container 4.1 with Suns > J2SE 1.4.1 > > The problem is I have a simple login procedure whereby a user enters > their id and password into a JSP which passes the information to a Java > Method. This method in turn checks the Database to see if the user is > valid. If the user is valid a new session is created and the information > stored in a bean. > > So far so good, I've used this method on several occassions with no > trouble. > > However when I attempt to login (with any set of data) I get a > NullPointerException at line 30 of the class file. Always the same > exception and always at line 30 no matter what I do. I can't find any > useful info from the logs or the exception that's thrown. > > Has anyone any thoughts on what may be causing this or pointers on how > to solve it? > > The offending page is at www.golduk.net/selfcare/index.jsp > > Thanks, > Adam Buglass > > >
Re: Mysterious Null Pointer Exception in Login script
I've commented out those particular error-checks for testing but with them in or out whatever I put in the same message *always* comes up. Even if I've changed the source file the error is always reported at Line 30. On Mon, 2004-04-19 at 11:27, Thomas Chua wrote: > could the userid or passwd be null??? > > > > > "Adam Buglass" <[EMAIL PROTECTED]> > 04/19/2004 06:05 PM > Please respond to "Tomcat Users List" > > > To: "Tomcat Users List" <[EMAIL PROTECTED]> > cc: > > Subject:Re: Mysterious Null Pointer Exception in Login script > > > > Thanks, but I already had a look. > The line causing the error in that file is the line that calls the > method: thisUser.login( userid, passwd ); > > Which itself appears to be causing the error, or am I missing something? > > The login_jsp.java file looks like this of you're interested: > > package org.apache.jsp; > > import javax.servlet.*; > import javax.servlet.http.*; > import javax.servlet.jsp.*; > import org.apache.jasper.runtime.*; > > public class login_jsp extends HttpJspBase { > > > private static java.util.Vector _jspx_includes; > > public java.util.List getIncludes() { > return _jspx_includes; > } > > > public void _jspService(HttpServletRequest request, > HttpServletResponse response) > throws java.io.IOException, ServletException { > > JspFactory _jspxFactory = null; > javax.servlet.jsp.PageContext pageContext = null; > HttpSession session = null; > ServletContext application = null; > ServletConfig config = null; > JspWriter out = null; > Object page = this; > JspWriter _jspx_out = null; > > try { > _jspxFactory = JspFactory.getDefaultFactory(); > response.setContentType("text/html;charset=ISO-8859-1"); > pageContext = _jspxFactory.getPageContext(this, request, response, > null, true, 8192, true); > application = pageContext.getServletContext(); > config = pageContext.getServletConfig(); > session = pageContext.getSession(); > out = pageContext.getOut(); > _jspx_out = out; > > ISPSelfCare.Login thisUser = null; > synchronized (session) { > thisUser = (ISPSelfCare.Login) > pageContext.getAttribute("thisUser", PageContext.SESSION_SCOPE); > if (thisUser == null){ > try { > thisUser = (ISPSelfCare.Login) > java.beans.Beans.instantiate(this.getClass().getClassLoader(), > "ISPSelfCare.Login"); > } catch (ClassNotFoundException exc) { > throw new InstantiationException(exc.getMessage()); > } catch (Exception exc) { > throw new ServletException("Cannot create bean of class " + > "ISPSelfCare.Login", exc); > } > pageContext.setAttribute("thisUser", thisUser, > PageContext.SESSION_SCOPE); > } > } > out.write("\n\n"); > > String userid = request.getParameter( "userid" ); > String passwd = request.getParameter( "passwd" ); > > // if( userid == null || passwd == null ) > // throw new RuntimeException( "Invalid arguments" ); > > > // if( userid.length() == 0 ) > // throw new RuntimeException( "Please provide your dial-up > user id." ); > > // if( passwd.length() == 0 ) > // throw new RuntimeException( "Please provide your dial-up > password." ); > > // scope="session" /> > // > // > // > > thisUser.login( userid, passwd ); > // thisUser.something(); > > // thisUser.setUserID( userid ); > response.sendRedirect( "index.jsp" ); > out.write("\n"); > } catch (Throwable t) { > out = _jspx_out; > if (out != null && out.getBufferSize() != 0) > out.clearBuffer(); > if (pageContext != null) pageContext.handlePageException(t); > } finally { > if (_jspxFactory != null) > _jspxFactory.releasePageContext(pageContext); > } > } > } > > > > > > > On Mon, 2004-04-19 at 10:58, Thomas Chua wrote: > > try looking for this file in your work directory > > login_jsp._jspService(login_jsp.java:74) > > > > > > > > > > > > "Adam Buglass" <[EMAIL PROTECTED]> > > 04/19/2004 05:41 PM > > Please respond to "Tomcat Users List" > > > > > > To: "Tomcat Users List" <[EMAIL PROTECTED]> > > cc: > > > > Subject:Mysterious Null Pointer Exception in Login > script > > > > > > > > Hi, I hope this is the right list for this, it's been driving me up the > > wall! > > > > First things first, I'm using tomcat servlet container 4.1 with Suns > > J2SE 1.4.1 > > > > The problem is I have a simple login procedure whereby a user enters > > their id and password into a JSP which passes the information to a Java > > Method. This method in turn checks the Database to see if the user is > > valid. If the user is valid a new session is crea
Re: Mysterious Null Pointer Exception in Login script
Interestingly - I edited out the source file in question so that it only had about 15-20 lines. It *still* claims that the exception is being thrown is at Line 30, although line 30 doesn't exist anymore. I'm stumped! :-( Adam On Mon, 2004-04-19 at 11:29, Adam Buglass wrote: > I've commented out those particular error-checks for testing but with > them in or out whatever I put in the same message *always* comes up. > > Even if I've changed the source file the error is always reported at > Line 30. > > On Mon, 2004-04-19 at 11:27, Thomas Chua wrote: > > could the userid or passwd be null??? > > > > > > > > > > "Adam Buglass" <[EMAIL PROTECTED]> > > 04/19/2004 06:05 PM > > Please respond to "Tomcat Users List" > > > > > > To: "Tomcat Users List" <[EMAIL PROTECTED]> > > cc: > > > > Subject:Re: Mysterious Null Pointer Exception in Login script > > > > > > > > Thanks, but I already had a look. > > The line causing the error in that file is the line that calls the > > method: thisUser.login( userid, passwd ); > > > > Which itself appears to be causing the error, or am I missing something? > > > > The login_jsp.java file looks like this of you're interested: > > > > package org.apache.jsp; > > > > import javax.servlet.*; > > import javax.servlet.http.*; > > import javax.servlet.jsp.*; > > import org.apache.jasper.runtime.*; > > > > public class login_jsp extends HttpJspBase { > > > > > > private static java.util.Vector _jspx_includes; > > > > public java.util.List getIncludes() { > > return _jspx_includes; > > } > > > > > > public void _jspService(HttpServletRequest request, > > HttpServletResponse response) > > throws java.io.IOException, ServletException { > > > > JspFactory _jspxFactory = null; > > javax.servlet.jsp.PageContext pageContext = null; > > HttpSession session = null; > > ServletContext application = null; > > ServletConfig config = null; > > JspWriter out = null; > > Object page = this; > > JspWriter _jspx_out = null; > > > > try { > > _jspxFactory = JspFactory.getDefaultFactory(); > > response.setContentType("text/html;charset=ISO-8859-1"); > > pageContext = _jspxFactory.getPageContext(this, request, response, > > null, true, 8192, true); > > application = pageContext.getServletContext(); > > config = pageContext.getServletConfig(); > > session = pageContext.getSession(); > > out = pageContext.getOut(); > > _jspx_out = out; > > > > ISPSelfCare.Login thisUser = null; > > synchronized (session) { > > thisUser = (ISPSelfCare.Login) > > pageContext.getAttribute("thisUser", PageContext.SESSION_SCOPE); > > if (thisUser == null){ > > try { > > thisUser = (ISPSelfCare.Login) > > java.beans.Beans.instantiate(this.getClass().getClassLoader(), > > "ISPSelfCare.Login"); > > } catch (ClassNotFoundException exc) { > > throw new InstantiationException(exc.getMessage()); > > } catch (Exception exc) { > > throw new ServletException("Cannot create bean of class " + > > "ISPSelfCare.Login", exc); > > } > > pageContext.setAttribute("thisUser", thisUser, > > PageContext.SESSION_SCOPE); > > } > > } > > out.write("\n\n"); > > > > String userid = request.getParameter( "userid" ); > > String passwd = request.getParameter( "passwd" ); > > > > // if( userid == null || passwd == null ) > > // throw new RuntimeException( "Invalid arguments" ); > > > > > > // if( userid.length() == 0 ) > > // throw new RuntimeException( "Please provide your dial-up > > user id." ); > > > > // if( passwd.length() == 0 ) > > // throw new RuntimeException( "Please provide your dial-up > > password." ); > > > > // > scope="session" /> > > // > > // > > // > > > > thisUser.login( userid, passwd ); > > // thisUser.something(); > > > > // thisUser.setUserID( userid ); > > response.sendRedirect( "index.jsp" ); > > out.write("\n"); > > } catch (Throwable t) { > > out = _jspx_out; > > if (out != null && out.getBufferSize() != 0) > > out.clearBuffer(); > > if (pageContext != null) pageContext.handlePageException(t); > > } finally { > > if (_jspxFactory != null) > > _jspxFactory.releasePageContext(pageContext); > > } > > } > > } > > > > > > > > > > > > > > On Mon, 2004-04-19 at 10:58, Thomas Chua wrote: > > > try looking for this file in your work directory > > > login_jsp._jspService(login_jsp.java:74) > > > > > > > > > > > > > > > > > > "Adam Buglass" <[EMAIL PROTECTED]> > > > 04/19/2004 05:41 PM > > > Please respond to "Tomcat Users List" > > > > > > > > > To: "Tomcat Users List" <[EMAIL PROTECT
Re: Mysterious Null Pointer Exception in Login script
maybe ur new file is not compiled try deleting ur work directory... the line 30 is base on the java file not the jsp file "Adam Buglass" <[EMAIL PROTECTED]> 04/19/2004 06:33 PM Please respond to "Tomcat Users List" To: "Tomcat Users List" <[EMAIL PROTECTED]> cc: Subject:Re: Mysterious Null Pointer Exception in Login script Interestingly - I edited out the source file in question so that it only had about 15-20 lines. It *still* claims that the exception is being thrown is at Line 30, although line 30 doesn't exist anymore. I'm stumped! :-( Adam On Mon, 2004-04-19 at 11:29, Adam Buglass wrote: > I've commented out those particular error-checks for testing but with > them in or out whatever I put in the same message *always* comes up. > > Even if I've changed the source file the error is always reported at > Line 30. > > On Mon, 2004-04-19 at 11:27, Thomas Chua wrote: > > could the userid or passwd be null??? > > > > > > > > > > "Adam Buglass" <[EMAIL PROTECTED]> > > 04/19/2004 06:05 PM > > Please respond to "Tomcat Users List" > > > > > > To: "Tomcat Users List" <[EMAIL PROTECTED]> > > cc: > > > > Subject:Re: Mysterious Null Pointer Exception in Login script > > > > > > > > Thanks, but I already had a look. > > The line causing the error in that file is the line that calls the > > method: thisUser.login( userid, passwd ); > > > > Which itself appears to be causing the error, or am I missing something? > > > > The login_jsp.java file looks like this of you're interested: > > > > package org.apache.jsp; > > > > import javax.servlet.*; > > import javax.servlet.http.*; > > import javax.servlet.jsp.*; > > import org.apache.jasper.runtime.*; > > > > public class login_jsp extends HttpJspBase { > > > > > > private static java.util.Vector _jspx_includes; > > > > public java.util.List getIncludes() { > > return _jspx_includes; > > } > > > > > > public void _jspService(HttpServletRequest request, > > HttpServletResponse response) > > throws java.io.IOException, ServletException { > > > > JspFactory _jspxFactory = null; > > javax.servlet.jsp.PageContext pageContext = null; > > HttpSession session = null; > > ServletContext application = null; > > ServletConfig config = null; > > JspWriter out = null; > > Object page = this; > > JspWriter _jspx_out = null; > > > > try { > > _jspxFactory = JspFactory.getDefaultFactory(); > > response.setContentType("text/html;charset=ISO-8859-1"); > > pageContext = _jspxFactory.getPageContext(this, request, response, > > null, true, 8192, true); > > application = pageContext.getServletContext(); > > config = pageContext.getServletConfig(); > > session = pageContext.getSession(); > > out = pageContext.getOut(); > > _jspx_out = out; > > > > ISPSelfCare.Login thisUser = null; > > synchronized (session) { > > thisUser = (ISPSelfCare.Login) > > pageContext.getAttribute("thisUser", PageContext.SESSION_SCOPE); > > if (thisUser == null){ > > try { > > thisUser = (ISPSelfCare.Login) > > java.beans.Beans.instantiate(this.getClass().getClassLoader(), > > "ISPSelfCare.Login"); > > } catch (ClassNotFoundException exc) { > > throw new InstantiationException(exc.getMessage()); > > } catch (Exception exc) { > > throw new ServletException("Cannot create bean of class " + > > "ISPSelfCare.Login", exc); > > } > > pageContext.setAttribute("thisUser", thisUser, > > PageContext.SESSION_SCOPE); > > } > > } > > out.write("\n\n"); > > > > String userid = request.getParameter( "userid" ); > > String passwd = request.getParameter( "passwd" ); > > > > // if( userid == null || passwd == null ) > > // throw new RuntimeException( "Invalid arguments" ); > > > > > > // if( userid.length() == 0 ) > > // throw new RuntimeException( "Please provide your dial-up > > user id." ); > > > > // if( passwd.length() == 0 ) > > // throw new RuntimeException( "Please provide your dial-up > > password." ); > > > > // > scope="session" /> > > // > > // > > // > > > > thisUser.login( userid, passwd ); > > // thisUser.something(); > > > > // thisUser.setUserID( userid ); > > response.sendRedirect( "index.jsp" ); > > out.write("\n"); > > } catch (Throwable t) { > > out = _jspx_out; > > if (out != null && out.getBufferSize() != 0) > > out.clearBuffer(); > > if (pageContext != null) pageContext.handlePageException(t); > > } finally { > > if (_jspxFactory != null) > > _jspxFactory.releasePageContext(pageContext); > > } > > } > > } > > > > > > > > > > > > > > On Mon, 2004-04-19
Re: Mysterious Null Pointer Exception in Login script
No, everything seems to be compiling correctly. It's the java file that I'm editing. The errors in the JSP seem to stem from a problem in the Java file. On Mon, 2004-04-19 at 11:47, Thomas Chua wrote: > maybe ur new file is not compiled > try deleting ur work directory... > the line 30 is base on the java file not the jsp file > > > > > "Adam Buglass" <[EMAIL PROTECTED]> > 04/19/2004 06:33 PM > Please respond to "Tomcat Users List" > > > To: "Tomcat Users List" <[EMAIL PROTECTED]> > cc: > > Subject:Re: Mysterious Null Pointer Exception in Login script > > > > Interestingly - I edited out the source file in question so that it only > had about 15-20 lines. > > It *still* claims that the exception is being thrown is at Line 30, > although line 30 doesn't exist anymore. I'm stumped! :-( > > Adam > > On Mon, 2004-04-19 at 11:29, Adam Buglass wrote: > > I've commented out those particular error-checks for testing but with > > them in or out whatever I put in the same message *always* comes up. > > > > Even if I've changed the source file the error is always reported at > > Line 30. > > > > On Mon, 2004-04-19 at 11:27, Thomas Chua wrote: > > > could the userid or passwd be null??? > > > > > > > > > > > > > > > "Adam Buglass" <[EMAIL PROTECTED]> > > > 04/19/2004 06:05 PM > > > Please respond to "Tomcat Users List" > > > > > > > > > To: "Tomcat Users List" <[EMAIL PROTECTED]> > > > cc: > > > > > > Subject:Re: Mysterious Null Pointer Exception in Login > script > > > > > > > > > > > > Thanks, but I already had a look. > > > The line causing the error in that file is the line that calls the > > > method: thisUser.login( userid, passwd ); > > > > > > Which itself appears to be causing the error, or am I missing > something? > > > > > > The login_jsp.java file looks like this of you're interested: > > > > > > package org.apache.jsp; > > > > > > import javax.servlet.*; > > > import javax.servlet.http.*; > > > import javax.servlet.jsp.*; > > > import org.apache.jasper.runtime.*; > > > > > > public class login_jsp extends HttpJspBase { > > > > > > > > > private static java.util.Vector _jspx_includes; > > > > > > public java.util.List getIncludes() { > > > return _jspx_includes; > > > } > > > > > > > > > public void _jspService(HttpServletRequest request, > > > HttpServletResponse response) > > > throws java.io.IOException, ServletException { > > > > > > JspFactory _jspxFactory = null; > > > javax.servlet.jsp.PageContext pageContext = null; > > > HttpSession session = null; > > > ServletContext application = null; > > > ServletConfig config = null; > > > JspWriter out = null; > > > Object page = this; > > > JspWriter _jspx_out = null; > > > > > > try { > > > _jspxFactory = JspFactory.getDefaultFactory(); > > > response.setContentType("text/html;charset=ISO-8859-1"); > > > pageContext = _jspxFactory.getPageContext(this, request, > response, > > > null, true, 8192, true); > > > application = pageContext.getServletContext(); > > > config = pageContext.getServletConfig(); > > > session = pageContext.getSession(); > > > out = pageContext.getOut(); > > > _jspx_out = out; > > > > > > ISPSelfCare.Login thisUser = null; > > > synchronized (session) { > > > thisUser = (ISPSelfCare.Login) > > > pageContext.getAttribute("thisUser", PageContext.SESSION_SCOPE); > > > if (thisUser == null){ > > > try { > > > thisUser = (ISPSelfCare.Login) > > > java.beans.Beans.instantiate(this.getClass().getClassLoader(), > > > "ISPSelfCare.Login"); > > > } catch (ClassNotFoundException exc) { > > > throw new InstantiationException(exc.getMessage()); > > > } catch (Exception exc) { > > > throw new ServletException("Cannot create bean of class " > + > > > "ISPSelfCare.Login", exc); > > > } > > > pageContext.setAttribute("thisUser", thisUser, > > > PageContext.SESSION_SCOPE); > > > } > > > } > > > out.write("\n\n"); > > > > > > String userid = request.getParameter( "userid" ); > > > String passwd = request.getParameter( "passwd" ); > > > > > > // if( userid == null || passwd == null ) > > > // throw new RuntimeException( "Invalid arguments" ); > > > > > > > > > // if( userid.length() == 0 ) > > > // throw new RuntimeException( "Please provide your > dial-up > > > user id." ); > > > > > > // if( passwd.length() == 0 ) > > > // throw new RuntimeException( "Please provide your > dial-up > > > password." ); > > > > > > // > > scope="session" /> > > > // > > > // > > > // > > > > > > thisUser.login( userid, passwd ); > > > // thisUser.something(); > > > > > > //
Tomcat , APache , Jserv
Hi , can anyone tell me that 1. Is Tomcat a separate servlet engine and webserver ? 2. Is Apache a webserver only ? 3. Can we integrate Tomcat and Apache ?? What i understood was Tomcat is a separate webser & servlet engine , Apache is a better webserver , we can have use Tomcat servlet engine and Apache Web server , And waht is Jserve??? It will help me in making my basic strong thanks in advance . Birendar Singh Waldiya DISCLAIMER: The information contained in this message is intended only and solely for the addressed individual or entity indicated in this message and for the exclusive use of the said addressed individual or entity indicated in this message (or responsible for delivery of the message to such person) and may contain legally privileged and confidential information belonging to Tata Consultancy Services. It must not be printed, read, copied, disclosed, forwarded, distributed or used (in whatsoever manner) by any person other than the addressee. Unauthorized use, disclosure or copying is strictly prohibited and may constitute unlawful act and can possibly attract legal action, civil and/or criminal. The contents of this message need not necessarily reflect or endorse the views of Tata Consultancy Services on any subject matter. Any action taken or omitted to be taken based on this message is entirely at your risk and neither the originator of this message nor Tata Consultancy Services takes any responsibility or liability towards the same. Opinions, conclusions and any other information contained in this message that do not relate to the official business of Tata Consultancy Services shall be understood as neither given nor endorsed by Tata Consultancy Services or any affiliate of Tata Consultancy Services. If you have received this message in error, you should destroy this message and may please notify the sender by e-mail. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat , APache , Jserv
- Tomcat is a servlet and jsp engine. - Tomcat can be used as a stand alone webserver - Apache is a webserver (with different features than tomcat, if it is better depends on the requirements) - Apache can be integrated with tomcat by mod_jk[2] (So Apache replaces tomcats own http stack) - jserv is a predessor of tomcat (historical, only in parts technical) and had no own http stack. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, April 19, 2004 2:03 PM To: Tomcat Users List Subject: Tomcat , APache , Jserv 1. Is Tomcat a separate servlet engine and webserver ? 2. Is Apache a webserver only ? 3. Can we integrate Tomcat and Apache ?? What i understood was Tomcat is a separate webser & servlet engine , Apache is a better webserver , we can have use Tomcat servlet engine and Apache Web server , And waht is Jserve??? It will help me in making my basic strong - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat , APache , Jserv
Thanks a lot. Birendar Singh Waldiya Tata Consultancy Services Mailto: [EMAIL PROTECTED] Website: http://www.tcs.com "Ralph Einfeldt" <[EMAIL PROTECTED]> 19-04-04 05:44 PM Please respond to "Tomcat Users List" <[EMAIL PROTECTED]> To "Tomcat Users List" <[EMAIL PROTECTED]> cc Subject RE: Tomcat , APache , Jserv - Tomcat is a servlet and jsp engine. - Tomcat can be used as a stand alone webserver - Apache is a webserver (with different features than tomcat, if it is better depends on the requirements) - Apache can be integrated with tomcat by mod_jk[2] (So Apache replaces tomcats own http stack) - jserv is a predessor of tomcat (historical, only in parts technical) and had no own http stack. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, April 19, 2004 2:03 PM To: Tomcat Users List Subject: Tomcat , APache , Jserv 1. Is Tomcat a separate servlet engine and webserver ? 2. Is Apache a webserver only ? 3. Can we integrate Tomcat and Apache ?? What i understood was Tomcat is a separate webser & servlet engine , Apache is a better webserver , we can have use Tomcat servlet engine and Apache Web server , And waht is Jserve??? It will help me in making my basic strong - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ForwardSourceID:NT4506 DISCLAIMER: The information contained in this message is intended only and solely for the addressed individual or entity indicated in this message and for the exclusive use of the said addressed individual or entity indicated in this message (or responsible for delivery of the message to such person) and may contain legally privileged and confidential information belonging to Tata Consultancy Services. It must not be printed, read, copied, disclosed, forwarded, distributed or used (in whatsoever manner) by any person other than the addressee. Unauthorized use, disclosure or copying is strictly prohibited and may constitute unlawful act and can possibly attract legal action, civil and/or criminal. The contents of this message need not necessarily reflect or endorse the views of Tata Consultancy Services on any subject matter. Any action taken or omitted to be taken based on this message is entirely at your risk and neither the originator of this message nor Tata Consultancy Services takes any responsibility or liability towards the same. Opinions, conclusions and any other information contained in this message that do not relate to the official business of Tata Consultancy Services shall be understood as neither given nor endorsed by Tata Consultancy Services or any affiliate of Tata Consultancy Services. If you have received this message in error, you should destroy this message and may please notify the sender by e-mail. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 4 session replication in a production environment
hey there, several people are using it in production, however, it is not a supported implementation. I can upgrade the 4 version for a consulting fee, but time constraints limits me to work on T5 only at the moment. Filip -Original Message- From: Ryan Lissack [mailto:[EMAIL PROTECTED] Sent: Thursday, April 15, 2004 11:04 AM To: '[EMAIL PROTECTED]' Subject: Tomcat 4 session replication in a production environment Hi, Is anyone using Tomcat 4 session replication in a production environment, if so, could you please share your experiences ? Unfortunately we are unable to upgrade to TC 5 for now but I need to setup session replication for some of our TC 4 servers for fail-over purposes (we have HW load balancers for load balancing). I have successfully set it up in our stage environment to prove it is viable but I am interested in others experiences. Also, is it possible for me to create a new replication jar for TC 4 which incorporates the bug fixes done on the TC 5 branch ? Thanks, Ryan. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.654 / Virus Database: 419 - Release Date: 4/6/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.654 / Virus Database: 419 - Release Date: 4/6/2004 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: pageEncoing and contentType
Hi, > seiji takegata wrote: > > > Hi Veniamin, > > Thank you for your reply. > > > >>What it means "character is not encoded correctly"? If PDF content > >>is unreadable, then that's PDF file problem, not Tomcat. Is this PDF > >>opens correctly by itself, i.e. when you open it through Adobe Reader? > >>Anyway, just do response.setContentType("application/pdf") and let > >>browser open it accordingly. > >>-- > > I tried. Then Japanese characters are all dimed (converted to > > randome characters like noise). > > > > Because itext asumes Japanese character as Shift_JIS encoded, > > but Tomcat default is UTF-8, so I have to specify pageEncoding > > attribute in page directive. > > Sorry, I don't know what is itext for, text->pdf translator? > Try this: > > <%@ page contentType="application/pdf; charset=ISO-8859-1" > pageEncoding="Shift_JIS" %> > I tried. This time jasper generates: response.setContentType("application/pdf; charset=ISO-8859-1"); > Is this what you want to archive -- set response type to look like > PDF without any particular encoding, and to tell Jasper that your source > encoded with "Shift_JIS"? Yes that is exactly what I want. > By the way, it's Jasper who thinks that JSPs are in UTF-8, but > Tomcat assumes ISO-8859-1 (HTTP standard AFAIK) when processing > request/response. > OK, I'll study more. Thank you again. Seiji > > I can see PDF content is correct when I save it as a file and > > open with Adobe Reader. > > > > My point is why tomcat put charset option to contentType when I > > specify pageEncoding attribute. I might write code to generate > > image from String, then the content should not be attributed > > like "charset=Shift_JIS". but still I need to specify > > pageEncoding attribute for correct character encoding. > > > > I just want tomcat to stop adding charset option when > > pageEncoding attribute is specified. > > -- seiji takegata [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: jboss tomcat integration
it's just that i have a lot of things configured on tomcat and i am not too familiar with jboss yet. my preference is to have things very modular for easier upgrade and switching. i guess after some time when i get use to jboss, i'll just so the integrated package. thanks for the help. peter Nikola Milutinovic wrote: Peter Choe wrote: thanks for the reply. so, once the initialcontext is set up in the environment, i just need to put everything (jsp, servlets, ejbs) under the webapps directory? No, I believe the idea is to let JBoss handle everything except JSP/Servlet. So EJBs will be on JBoss. and i would start jboss without starting the embedded tomcat? how can i disable the embedded tomcat that comes with jboss not to start? JBoss' Tomcat is just another service in JBoss' current deployment. Locate the dir of your currently deployed server and just (re)move Tomcat's deployment SAR from that dir. If the docs are true, you don't even need to restart JBoss, it will automatically remove the service from the loaded services. What's the big enchantment with running your own standalone Tomcat and not the one included (and integrated) with JBoss? Other than being able to run the lates Tomcat available. With JBoss you have it all neatly packet and integrated. And if you're warried about not using the latest and greatest, well, what about bugs in JBoss (IOW, not running the latest and greatest of JBoss)? Nix. - 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]
Tomcat does not start !
Hi, I have installed Tomcat on my windows machine and set the CATALINA_HOME and JAVA_HOME as per installation instruction when i try to start my tomcat ser ver i get following output in the dos prompt and a new window get initiate d and that get exited instantly. can anyone tell me what can be the problem i cant see anthing when i access http://locaslhost:8080 the output on the dos prompt is :-- C:\Tomcat\catalina\src\bin>startup Using CATALINA_BASE: C:\Tomcat\catalina\src Using CATALINA_HOME: C:\Tomcat\catalina\src Using CATALINA_TMPDIR: C:\Tomcat\catalina\src\temp Using JAVA_HOME: C:\jsdk1.4.2 C:\Tomcat\catalina\src\bin> what can be the problem thanks rgds Birendar Singh Waldiya "Ralph Einfeldt" <[EMAIL PROTECTED]> 19-04-04 05:44 PM Please respond to "Tomcat Users List" <[EMAIL PROTECTED]> To "Tomcat Users List" <[EMAIL PROTECTED]> cc Subject RE: Tomcat , APache , Jserv - Tomcat is a servlet and jsp engine. - Tomcat can be used as a stand alone webserver - Apache is a webserver (with different features than tomcat, if it is better depends on the requirements) - Apache can be integrated with tomcat by mod_jk[2] (So Apache replaces tomcats own http stack) - jserv is a predessor of tomcat (historical, only in parts technical) and had no own http stack. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, April 19, 2004 2:03 PM To: Tomcat Users List Subject: Tomcat , APache , Jserv 1. Is Tomcat a separate servlet engine and webserver ? 2. Is Apache a webserver only ? 3. Can we integrate Tomcat and Apache ?? What i understood was Tomcat is a separate webser & servlet engine , Apache is a better webserver , we can have use Tomcat servlet engine and Apache Web server , And waht is Jserve??? It will help me in making my basic strong - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ForwardSourceID:NT4506 DISCLAIMER: The information contained in this message is intended only and solely for the addressed individual or entity indicated in this message and for the exclusive use of the said addressed individual or entity indicated in this message (or responsible for delivery of the message to such person) and may contain legally privileged and confidential information belonging to Tata Consultancy Services. It must not be printed, read, copied, disclosed, forwarded, distributed or used (in whatsoever manner) by any person other than the addressee. Unauthorized use, disclosure or copying is strictly prohibited and may constitute unlawful act and can possibly attract legal action, civil and/or criminal. The contents of this message need not necessarily reflect or endorse the views of Tata Consultancy Services on any subject matter. Any action taken or omitted to be taken based on this message is entirely at your risk and neither the originator of this message nor Tata Consultancy Services takes any responsibility or liability towards the same. Opinions, conclusions and any other information contained in this message that do not relate to the official business of Tata Consultancy Services shall be understood as neither given nor endorsed by Tata Consultancy Services or any affiliate of Tata Consultancy Services. If you have received this message in error, you should destroy this message and may please notify the sender by e-mail. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
First posting + 5.0.19 problem
HI all, this is my first post to this list... I've been using Tomcat for quite some time but only lurked in the archives... However.. I am experiencing a strange problem since upgrading to 5.0.19 and wondered if a resolution has been found. In my log, I see the following error message with no obvious regularity or cause - I'm assuming that it's memory related. I have noticed similar issues mentioned in the archive but have seen no conclusive solution as yet. I believe the problem is related to the JK connector. I am a little unsure which version of JK to use because the website suggests that 1.2.5 is the version to use with Apache1.3 where others strongly recommend JK2... - log extract --- 19-Apr-2004 13:07:11 org.apache.jk.common.HandlerRequest invoke INFO: Unknown message 0 - log extract --- This only happens with one of my web apps although its context is identical to any of the other 10 we have running. I can submit an identical request ten times and at least one of the requests will abort with the entry above entered in the log. We're running Sun JDK V1.4.2_03 on RedHat Linux 9, Apache 1.3.28, JK 1.2.5, Tomcat 5.0.19 Is the CVS 5.0.21 version stable? perhaps this issue is fixed in the latest version? I scanned the change log but found no obvious mention.. We don't see this error in any version prior to 5.0.19 - I've tested 4.0.3, 4.1.x and 5.0.18 Regards, Matthew.
jk2 connectivity options
Hi. I'm assuming that JK2 over AF_UNIX socket is meant for apache / tomcat on the same box? Thx. Pete. *** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. *** For any information on the Quinn Group of Companies please visit :- http://www.quinn-group.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat does not start !
locaslhost should be "localhost". if that's an email typo, look in the tomcat logs and see what it says. Pete. [EMAIL PROTECTED] wrote: Hi, I have installed Tomcat on my windows machine and set the CATALINA_HOME and JAVA_HOME as per installation instruction when i try to start my tomcat ser ver i get following output in the dos prompt and a new window get initiate d and that get exited instantly. can anyone tell me what can be the problem i cant see anthing when i access http://locaslhost:8080 the output on the dos prompt is :-- *C:\Tomcat\catalina\src\bin>startup* *Using CATALINA_BASE: C:\Tomcat\catalina\src* *Using CATALINA_HOME: C:\Tomcat\catalina\src* *Using CATALINA_TMPDIR: C:\Tomcat\catalina\src\temp* *Using JAVA_HOME: C:\jsdk1.4.2* *C:\Tomcat\catalina\src\bin>* *what can be the problem * *thanks * */rgds /* Birendar Singh Waldiya *"Ralph Einfeldt" <[EMAIL PROTECTED]>* 19-04-04 05:44 PM Please respond to "Tomcat Users List" <[EMAIL PROTECTED]> To "Tomcat Users List" <[EMAIL PROTECTED]> cc Subject RE: Tomcat , APache , Jserv - Tomcat is a servlet and jsp engine. - Tomcat can be used as a stand alone webserver - Apache is a webserver (with different features than tomcat, if it is better depends on the requirements) - Apache can be integrated with tomcat by mod_jk[2] (So Apache replaces tomcats own http stack) - jserv is a predessor of tomcat (historical, only in parts technical) and had no own http stack. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, April 19, 2004 2:03 PM To: Tomcat Users List Subject: Tomcat , APache , Jserv 1. Is Tomcat a separate servlet engine and webserver ? 2. Is Apache a webserver only ? 3. Can we integrate Tomcat and Apache ?? What i understood was Tomcat is a separate webser & servlet engine , Apache is a better webserver , we can have use Tomcat servlet engine and Apache Web server , And waht is Jserve??? It will help me in making my basic strong - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ForwardSourceID:NT4506 DISCLAIMER: The information contained in this message is intended only and solely for the addressed individual or entity indicated in this message and for the exclusive use of the said addressed individual or entity indicated in this message (or responsible for delivery of the message to such person) and may contain legally privileged and confidential information belonging to Tata Consultancy Services. It must not be printed, read, copied, disclosed, forwarded, distributed or used (in whatsoever manner) by any person other than the addressee. Unauthorized use, disclosure or copying is strictly prohibited and may constitute unlawful act and can possibly attract legal action, civil and/or criminal. The contents of this message need not necessarily reflect or endorse the views of Tata Consultancy Services on any subject matter. Any action taken or omitted to be taken based on this message is entirely at your risk and neither the originator of this message nor Tata Consultancy Services takes any responsibility or liability towards the same. Opinions, conclusions and any other information contained in this message that do not relate to the official business of Tata Consultancy Services shall be understood as neither given nor endorsed by Tata Consultancy Services or any affiliate of Tata Consultancy Services. If you have received this message in error, you should destroy this message and may please notify the sender by e-mail. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] *** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. *** For any information on the Quinn Group of Companies please visit :- http://www.quinn-group.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: pageEncoing and contentType
seiji takegata wrote: Try this: <%@ page contentType="application/pdf; charset=ISO-8859-1" pageEncoding="Shift_JIS" %> I tried. This time jasper generates: response.setContentType("application/pdf; charset=ISO-8859-1"); OK, and with that you still can't get PDF right? Maybe you should query tomcat-dev list about how (and if you really need) to override Jasper's behaviour on inserting "pageEncoding" value into Content-Type header. All I found is: org.apache.jasper.compiler.Validator public static void validate(Compiler, Node.Nodes) throws JasperException; In that method there is some logic that determines "...; charset=..." value in case this substring is absent in "contentType" page directive. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat does not start !
Can it be a problem with my installation , I cant find any log file in my Tomcat folder ??? Birendar Singh Waldiya Tata Consultancy Services Mailto: [EMAIL PROTECTED] Website: http://www.tcs.com Pete Stokes <[EMAIL PROTECTED]> 19-04-04 06:28 PM Please respond to "Tomcat Users List" <[EMAIL PROTECTED]> To Tomcat Users List <[EMAIL PROTECTED]> cc Subject Re: Tomcat does not start ! locaslhost should be "localhost". if that's an email typo, look in the tomcat logs and see what it says. Pete. [EMAIL PROTECTED] wrote: > > Hi, > I have installed Tomcat on my windows machine and set the CATALINA_HOME > and JAVA_HOME as per installation instruction > when i try to start my tomcat ser ver i get following output in the > dos prompt and a new window get initiate d and that get exited > instantly. > can anyone tell me what can be the problem > i cant see anthing when i access http://locaslhost:8080 > > the output on the dos prompt is :-- > > *C:\Tomcat\catalina\src\bin>startup* > *Using CATALINA_BASE: C:\Tomcat\catalina\src* > *Using CATALINA_HOME: C:\Tomcat\catalina\src* > *Using CATALINA_TMPDIR: C:\Tomcat\catalina\src\temp* > *Using JAVA_HOME: C:\jsdk1.4.2* > *C:\Tomcat\catalina\src\bin>* > > *what can be the problem * > *thanks * > */rgds /* > > Birendar Singh Waldiya > > > > *"Ralph Einfeldt" <[EMAIL PROTECTED]>* > > 19-04-04 05:44 PM > Please respond to > "Tomcat Users List" <[EMAIL PROTECTED]> > > > > To > "Tomcat Users List" <[EMAIL PROTECTED]> > cc > > Subject > RE: Tomcat , APache , Jserv > > > > > > > > > > - Tomcat is a servlet and jsp engine. > > - Tomcat can be used as a stand alone webserver > > - Apache is a webserver (with different features than tomcat, > if it is better depends on the requirements) > > - Apache can be integrated with tomcat by mod_jk[2] > (So Apache replaces tomcats own http stack) > > - jserv is a predessor of tomcat (historical, > only in parts technical) and had no own http stack. > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Monday, April 19, 2004 2:03 PM > To: Tomcat Users List > Subject: Tomcat , APache , Jserv > > 1. Is Tomcat a separate servlet engine and webserver ? > 2. Is Apache a webserver only ? > 3. Can we integrate Tomcat and Apache ?? > > What i understood was Tomcat is a separate webser & servlet engine , > Apache is a better webserver , we can have use Tomcat servlet engine > and Apache Web server , > And waht is Jserve??? > > It will help me in making my basic strong > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > ForwardSourceID:NT4506 > > > > > DISCLAIMER: The information contained in this message is intended only and solely for the addressed individual or entity indicated in this message and for the exclusive use of the said addressed individual or entity indicated in this message (or responsible for delivery > of the message to such person) and may contain legally privileged and confidential information belonging to Tata Consultancy Services. It must not be printed, read, copied, disclosed, forwarded, distributed or used (in whatsoever manner) by any person other than the addressee. > Unauthorized use, disclosure or copying is strictly prohibited and may constitute unlawful act and can possibly attract legal action, civil and/or criminal. The contents of this message need not necessarily reflect or endorse the views of Tata Consultancy Services on any subject matter. > Any action taken or omitted to be taken based on this message is entirely at your risk and neither the originator of this message nor Tata Consultancy Services takes any responsibility or liability towards the same. Opinions, conclusions and any other information contained in this message > that do not relate to the official business of Tata Consultancy Services shall be understood as neither given nor endorsed by Tata Consultancy Services or any affiliate of Tata Consultancy Services. If you have received this message in error, you should destroy this message and may please notify the sender by e-mail. Thank you. > > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] *** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify
RE:Mail Delivery (failure p00507@aah-point.com)
This Mail has a Virus and has been blocked! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Help with handling exceptions
Hi, Please help. What I would like to do is redirect, or forward, to another page when an exception occurs in certain JSP pages. I call some JSPs that utilize beans (via JSTL) that have getter methods which perform database access. These getter methods can generate exceptions. When they do, the JSP simply incorporates some text, indicating the exception, into the rest of the JSP's template text. I have included elements in the web.xml file, like this: javax.servlet.ServletException /common/exception.jsp And other less general exception types. But these are all just ignored. Why? I've also tried other methods, using JSTL. For example, I catch the exception, using ,and try to forward using . But I get the following response incorprated into the original called JSP: [Exception in:../foo.jsp] Cannot forward after response has been committed Also, when I catch the exception and try to redirect using I get the original called JSP with nothing incorprated into it. I deduce form this, that the problem is that some of the JSP page's content has already been committed, and so the forward or redirect is prohibited. Is this correct? SO MY QUESTION IS: How can I achieve my objective of displaying an error page when an exception occurs? Thanks, Frank. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: jboss tomcat integration
Peter Choe wrote: it's just that i have a lot of things configured on tomcat and i am not too familiar with jboss yet. Most of those things can be configured on JBoss, too. Note that things tied to JNDI (DataSources, etc.) are not configured from Tomcat, but from JBoss. my preference is to have things very modular for easier upgrade and switching. That will be difficult with JBoss. Tomcat is not an add-on package in JBoss, it is rather tightly integrated. I mean, yes, it is a service and you can deploy/undeploy it at will, but upgrading to a new version is not something that is documented. And sources of Tomcat do require hacking, in order to fit it into JBoss. i guess after some time when i get use to jboss, i'll just so the integrated package. Sooner, rather than later, I hope :-) Nix. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: jk2 connectivity options
Pete Stokes wrote: Hi. I'm assuming that JK2 over AF_UNIX socket is meant for apache / tomcat on the same box? Yes. And you'll need JK JNI module, too. (libjkjni.so or jkjni.so). Nix. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: jboss tomcat integration
do you know where the corresponding configuration files for tomcat is in jboss (i.e. server.xml, tomcat-user.xml)? i have apache and jk2 set up on a different server to pass request to tomcat for web applications. i would think that this doesn't need to be changed if tomcat is running embedded in jboss, right? peter Nikola Milutinovic wrote: Peter Choe wrote: it's just that i have a lot of things configured on tomcat and i am not too familiar with jboss yet. Most of those things can be configured on JBoss, too. Note that things tied to JNDI (DataSources, etc.) are not configured from Tomcat, but from JBoss. my preference is to have things very modular for easier upgrade and switching. That will be difficult with JBoss. Tomcat is not an add-on package in JBoss, it is rather tightly integrated. I mean, yes, it is a service and you can deploy/undeploy it at will, but upgrading to a new version is not something that is documented. And sources of Tomcat do require hacking, in order to fit it into JBoss. i guess after some time when i get use to jboss, i'll just so the integrated package. Sooner, rather than later, I hope :-) Nix. - 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]
JK/JK2 startup explanation
I'm trying to better understand what options my tomcat setup has that it may not need. Here is pertinent starting information from catalina.out Can someone explain what each of these lines mean? Apr 19, 2004 5:59:13 AM org.apache.struts.util.PropertyMessageResources INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true Apr 19, 2004 5:59:13 AM org.apache.struts.util.PropertyMessageResources INFO: Initializing, config='org.apache.struts.action.ActionResources', returnNull=true Apr 19, 2004 5:59:15 AM org.apache.struts.util.PropertyMessageResources INFO: Initializing, config='org.apache.webapp.admin.ApplicationResources', returnNull=true [Mon Apr 19 05:59:23 2004] ( info ) [jk_config_file.c (320)] cfg.update() Updating config /etc/httpd/conf/workers2.properties 0 1079026848 [Mon Apr 19 05:59:23 2004] ( info ) [jk_config_file.c (331)] config.setConfig(): Reading properties /etc/httpd/conf/workers2.properties 31 Apr 19, 2004 5:59:23 AM org.apache.jk.apr.AprImpl init INFO: JK2: Initialized apr Apr 19, 2004 5:59:23 AM org.apache.jk.common.ChannelUn init INFO: JK: listening on unix socket: /usr/local/jakarta-tomcat/work/jk2.socket Apr 19, 2004 5:59:23 AM org.apache.jk.common.ChannelSocket init INFO: JK2: ajp13 listening on /0.0.0.0:8009 Apr 19, 2004 5:59:23 AM org.apache.jk.common.ChannelJni init INFO: JK2: listening on channel.jni:jni Apr 19, 2004 5:59:23 AM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=1/307 config=/usr/local/jakarta-tomcat/conf/jk2.properties Starting service Tomcat-Apache I'm especially wondering if I need to jave apr, JK and JK2 running. I was trying to only use JK2 with unixSockets... maybe that isn't what is actually happening, eh? Can I disable JNI? How do I use just JK or JK2? The examples for setting up jk / jk2 are not very clear as to what does what and what the options are... I know that most of the time the examples are trying to be inclusive for everything on all platforms, but what that ends up meaning is that it is hard to see what someone wants specifically for a specific platform. In my case, I just want the fastest and least buggy connection between apache 2 and tomcat 4 on RedHat Linux 9. I'm sure that enough people have that configuration that it would seem that you could find a specific example of how to set that up without including everyone else's possible configurations in the same doc. Anyway here is my jk2.properties: channelUnix.file=/usr/local/jakarta-tomcat/work/jk2.socket shm.file=/usr/local/jakarta-tomcat/work/jk2.shm handler.list=apr,channelUnix,request channelJni.disabled = 0 apr.NativeSo=/usr/local/jakarta-tomcat/server/lib/jkjni.so What defaults are set besides those that I've got here? Thanks for your help! Daniel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: jboss tomcat integration
Peter Choe wrote: do you know where the corresponding configuration files for tomcat is in jboss (i.e. server.xml, tomcat-user.xml)? Huh. somewehre in the JBoss config dir. And JNDI stuff is in some other file. i have apache and jk2 set up on a different server to pass request to tomcat for web applications. i would think that this doesn't need to be changed if tomcat is running embedded in jboss, right? Correct. Nix. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat and IIS Web Server
Hi I have Tomcat running behind Microsofts IIS Web server. All requests go first to IIS and IIS forwards any URL specified in workers.properties to Tomcat. All standard stuff and it works well. I now need to use HTTPS to send a request to IIS which is going to be forwarded to Tomcat. My question is where does the authentication take place? Does IIS handle the authentication and certificates *before* it passes the request to Tomcat or does IIS pass control to Tomcat expecting it to handle the authentication and certificates? Or do I need to configure both IIS and Tomcat to handle HTTPS? Regards Roger __ This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos Origin group liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted. __ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: contextInitialized called twice during webapp deployment
On Mon, 19 Apr 2004, Brett Randall wrote: > Can anyone advise - what would cause a listener's > contextInitialized() to be called exactly twice during the > deployment of a webapp? > > I am using Tomcat included in the Java Web Services Developer Pack > v1.3. The double call of contextInitialized() happens for both my > servlets, and the example servlets that have listeners defined. > > The only hint I have at the moment is that when incrementing one > static and one instance counter within the listener, on both calls > both variables are 1 (from 0), so could two different classloaders > or VMs be instantiating the ContextListener, and what would cause > that? > > I don't have any virtual hosts defined. Sounds like you have two *instances* of your servlet being loaded (so it's two separate instances of contextInitialized() being invoked). This can happen if you have two different definitions of the servlet in your web.xml, and/or perhaps if you have your webapp/context being loaded twice, like one automatically (because of an attribute setting like autoDeploy/deployOnStartup) and once because of a Context element in your server.xml and/or a seperate context configuration file. Milt Epstein Research Programmer Integration and Software Engineering (ISE) Campus Information Technologies and Educational Services (CITES) University of Illinois at Urbana-Champaign (UIUC) [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: pageEncoing and contentType
On 2004.4.19, at 10:02 PM, Veniamin Fichin wrote: seiji takegata wrote: Try this: <%@ page contentType="application/pdf; charset=ISO-8859-1" pageEncoding="Shift_JIS" %> I tried. This time jasper generates: response.setContentType("application/pdf; charset=ISO-8859-1"); OK, and with that you still can't get PDF right? Yes, I can get right PDF by specifying just pageEncoding. But IE displays download dialog (with some warning message) that I don't want to see. Maybe you should query tomcat-dev list about how (and if you really need) to override Jasper's behaviour on inserting "pageEncoding" value into Content-Type header. All I found is: org.apache.jasper.compiler.Validator public static void validate(Compiler, Node.Nodes) throws JasperException; In that method there is some logic that determines "...; charset=..." value in case this substring is absent in "contentType" page directive. I see. Your suggestion helps me a lot, thanks. Seiji - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat and IIS Web Server
IIS will handle the https. That means that actually the connection between IIS and tomcat is not secure, so take that into consideration as you make your decision. Varley, Roger wrote: Hi I have Tomcat running behind Microsofts IIS Web server. All requests go first to IIS and IIS forwards any URL specified in workers.properties to Tomcat. All standard stuff and it works well. I now need to use HTTPS to send a request to IIS which is going to be forwarded to Tomcat. My question is where does the authentication take place? Does IIS handle the authentication and certificates *before* it passes the request to Tomcat or does IIS pass control to Tomcat expecting it to handle the authentication and certificates? Or do I need to configure both IIS and Tomcat to handle HTTPS? Regards Roger __ This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos Origin group liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted. __ - 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: Handling SOAP faults
I started looking at SOAP a few months ago, that's why I said it. Anyways, what gets put in sendError(code, msg) should be available in your _custom_ error handler by calling req.getAttribute(javax.servlet.error.message). -Yan -Original Message- From: Bill Harrelson [mailto:[EMAIL PROTECTED] Sent: April 16, 2004 18:38 To: Tomcat Users List Subject: RE: Handling SOAP faults Thanks for the interest and reply Yan, but you make assumptions that are incorrect: > Ok, I think what happened here is: the response message is *overwritten* > since you already defined a custom error-page in your deployment descriptor. No, the response message is sent back as the error response message, _not_ as the errorStream. I checked this (as this being the simplest approach) _before_ implementing the custom error- page in the deployment descriptor. Putting an error message into the sendError(error-code, message) call does not return an errorStream. What gets returned in the errorStream in that case is the default html error page. I'm still looking for a way to write to the errorStream directly. Bill > PS. SOAP is a really good idea. I'm not sure why you say this, but ok. SOAP has been a reality in the world I work in for a couple of years now, but it's only recently that people have actually started generating and expecting SOAPfaults. > > -Original Message- > From: Bill Harrelson [mailto:[EMAIL PROTECTED] > Sent: April 16, 2004 11:59 > To: Tomcat Users List > Subject: RE: Handling SOAP faults > > > What the SOAP spec says is that a SOAPfault XML document > needs to be returned in the errorStream and a response code of > 500 returned. > > Sending a response 500 is easy, including a response message is > also easy. But, what is included in the response message is not > written to the errorStream. Tomcat seems to write whatever is > generated by the error-page directive in the deployment descriptor > to the error-stream, so I have currently solved the problem by > passing the SOAPfault document through the session variable to > the designated jsp listed in the error-page directive. > > It just seems that this is a hackery way to do it, and my servlet > should be able to write directly to the errorStream of the response, I > just can't see how. > > Any assistance is appreciated. > > Thanks, > > Bill > > > Send reply to: "Tomcat Users List" <[EMAIL PROTECTED]> > From: "Yansheng Lin" <[EMAIL PROTECTED]> > To: "'Tomcat Users List'" <[EMAIL PROTECTED]> > Subject:RE: Handling SOAP faults > Date sent: Fri, 16 Apr 2004 11:21:06 -0600 > > > How about setting the fault on the response? With 500 as status. Or is > > that what you asked for? > > > > -Yan > > > > -Original Message- > > From: Bill Harrelson [mailto:[EMAIL PROTECTED] > > Sent: April 15, 2004 19:04 > > To: Tomcat Users List > > Subject: Handling SOAP faults > > > > > > Hello, > > > > I'm using Tomcat 4.2.14, JDK 1.4.1, and I need to be able to return > > a SOAP fault document with a response code of 500. The only > > way I've found to do this seems a bit of a hack, and I was > > wondering if there was a better way. > > > > Currently I'm passing the SOAP fault document in the session > > variable which gets picked up by the error-page handler (a jsp) > > when I issue the sendError(500). This results in the SOAPfault > > message appearing in the error-stream on the client as it should, it > > just seems as though I ought to be able to write to the error-stream > > directly, but I can't find how in the doc, or googling. > > > > Can anyone assist? > > > > Thanks, > > > > Bill > > > > > > - > > 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] > > > > > > - > 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] > - 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: Tomcat and IIS Web Server
> > IIS will handle the https. That means that actually the connection > between IIS and tomcat is not secure, so take that into > consideration as > you make your decision. > Thanks Daniel. Both the IIS server and Tomcat are located on the same server behind a firewall - so that really shouldn't be an issue should it? Even if they were on different servers behind a firewall given that I'm not worried about internal snooping it's still not an issue - or am I missing something important here? Regards Roger > Varley, Roger wrote: > > >Hi > > > >I have Tomcat running behind Microsofts IIS Web server. All > requests go first to IIS and IIS forwards any URL specified > in workers.properties to Tomcat. All standard stuff and it > works well. I now need to use HTTPS to send a request to IIS > which is going to be forwarded to Tomcat. My question is > where does the authentication take place? Does IIS handle the > authentication and certificates *before* it passes the > request to Tomcat or does IIS pass control to Tomcat > expecting it to handle the authentication and certificates? > Or do I need to configure both IIS and Tomcat to handle HTTPS? > > > >Regards > >Roger > > > > > >_ > _ > >This e-mail and the documents attached are confidential and intended > >solely for the addressee; it may also be privileged. If you > receive this > >e-mail in error, please notify the sender immediately and destroy it. > >As its integrity cannot be secured on the Internet, the Atos > Origin group > >liability cannot be triggered for the message content. Although the > >sender endeavours to maintain a computer virus-free network, > the sender > >does not warrant that this transmission is virus-free and > will not be > >liable for any damages resulting from any virus transmitted. > >_ > _ > > > >- > >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] > > __ This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos Origin group liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted. __ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat and IIS Web Server
You're right. If you can trust your machine(s) and the users on them, then you should be secure enough. Varley, Roger wrote: IIS will handle the https. That means that actually the connection between IIS and tomcat is not secure, so take that into consideration as you make your decision. Thanks Daniel. Both the IIS server and Tomcat are located on the same server behind a firewall - so that really shouldn't be an issue should it? Even if they were on different servers behind a firewall given that I'm not worried about internal snooping it's still not an issue - or am I missing something important here? Regards Roger Varley, Roger wrote: Hi I have Tomcat running behind Microsofts IIS Web server. All requests go first to IIS and IIS forwards any URL specified in workers.properties to Tomcat. All standard stuff and it works well. I now need to use HTTPS to send a request to IIS which is going to be forwarded to Tomcat. My question is where does the authentication take place? Does IIS handle the authentication and certificates *before* it passes the request to Tomcat or does IIS pass control to Tomcat expecting it to handle the authentication and certificates? Or do I need to configure both IIS and Tomcat to handle HTTPS? Regards Roger _ _ This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos Origin group liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted. _ _ - 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] __ This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos Origin group liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted. __ - 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]
AW: Tomcat 5, cross context problem
Hi, I posted the same question, and didn't get an answer, so I just did some research on my own: First of all the session is ALWAYS on application scope, this is not an Tomcat specific behaviour but a requirement of the Specification: "SRV.7.3 Session Scope HttpSession objects must be scoped at the application (or servlet context) level. The underlying mechanism, such as the cookie used to establish the session, can be the same for different contexts, but the object referenced, including the attributes in that object, must never be shared between contexts by the container." So there is no way around this, if the sessions were relicated across the applications it would violate the specification. When you enable crossConext for your application: you can get the context for another application: ServletContext context2 = context.getContext("/testapp"); and set attributes: context2.setAttribute("test","JSP is great!"); But you cannot get to the session in the other application. So what you can do is implement the session swapping on your own (Cookies, via the Database) or merge your applications into one. Some links from the Sun Forums: http://forum.java.sun.com/thread.jsp?forum=33&thread=259394 http://forum.java.sun.com/thread.jsp?forum=45&thread=492484 http://forum.java.sun.com/thread.jsp?forum=33&thread=318569 Please correct me, when I was wrong! Cheers Bernhard -Ursprüngliche Nachricht- Von: Rainald Suchan [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 16. April 2004 11:50 An: [EMAIL PROTECTED] Betreff: Tomcat 5, cross context problem Hi, I have 2 web applications, a JSP and a Servlet, that are in differed contexts. For both I have set cross context to true. In the JSP I put some attributes in the session and use a RequestDispatcher and call the include() function to pass the request to the servlet. In the servlet I get these attributes out of the session and put some other attributes in the session. After returning to the JSP I get these new attributes again out of the session. This all works ok with Tomcat 4. But now I tried this with Tomcat 5.0.16 and the session passed between the two webapps don't have the attributes in it any more in the other context. That means If I put an attribute in the JSP in the session and get this session back in the Servlet then this session doesn't contain my attribute any more. Is that a known issue with Tomcat 5? Does anybody have a solution for this problem? Regards Rainald - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
ajp13.service() ajpGetReply recoverable error 3
I'm using Apache 2.0.49, Tomcat 4.1.29, and mod_jk2 2.04 on Windows 2000 Server. I'm getting errors in my Apache & Tomcat logs (shown below), BUT I do not get any errors shown in the browser and my servlet appears to be functioning correctly. I guess the fact that it says "recoverable error" means that it recovers which is why users do not see any errors. However I suspect it does mean that the system is working sub-optimally. I'd be grateful if someone could give me a clue as to the meaning of the errors & any pointers on fixing the problem. Many thanks, Michael Sanders Apache 2.0.49 error log === [Mon Apr 19 15:48:53 2004] [error] ajp13.service() ajpGetReply recoverable error 3 [Mon Apr 19 15:48:53 2004] [error] ajp13.service() ajpGetReply recoverable error 3 [Mon Apr 19 15:48:53 2004] [error] ajp13.service() Error forwarding ajp13:localhost:8009 1 0 [Mon Apr 19 15:48:53 2004] [error] mod_jk2.handler() Error connecting to tomcat 3, status 200 Tomcat 4.1.29 stderr [ERROR] JkCoyoteHandler - -Error in action code java.net.SocketException: Connection aborted by peer: socket write error at java.net.SocketOutputStream.socketWrite(Native Method) at java.net.SocketOutputStream.write(SocketOutputStream.java:91) at org.apache.jk.common.ChannelSocket.send(ChannelSocket.java:457) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:654) at org.apache.jk.server.JkCoyoteHandler.action(JkCoyoteHandler.java:435) at org.apache.coyote.Response.action(Response.java:222) at org.apache.coyote.Response.finish(Response.java:343) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:314) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:387) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:673) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:615) at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:786) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:666) at java.lang.Thread.run(Thread.java:479) workers2.properties === #define the shared memory file [shm] file=C:/Program Files/Apache Group/Apache2/jk2.shm # Define the communication channel [channel.socket:localhost:8009] tomcatId=localhost:8009 [ajp13:localhost:8009] channel=channel.socket:localhost:8009 [uri:/servlet/*] worker=ajp13:localhost:8009 server.xml == factory org.apache.catalina.users.MemoryUserDatabaseFactory pathname conf/tomcat-users.xml directory.--> jk2.properties == ## THIS FILE MAY BE OVERRIDEN AT RUNTIME. MAKE SURE TOMCAT IS STOPED ## WHEN YOU EDIT THE FILE. ## COMMENTS WILL BE _LOST_ ## DOCUMENTATION OF THE FORMAT IN JkMain javadoc. # Set the desired handler list # handler.list=apr,request,channelJni # # Override the default port for the socketChannel # channelSocket.port=8019 # Default: # channelUnix.file=${jkHome}/work/jk2.socket # Just to check if the the config is working # shm.file=${jkHome}/work/jk2.shm # In order to enable jni use any channelJni directive # channelJni.disabled = 0 # And one of the following directives: # apr.jniModeSo=/opt/apache2/modules/mod_jk2.so # If set to inprocess the mod_jk2 will Register natives itself # This will enable the starting of the Tomcat from mod_jk2 # apr.jniModeSo=inprocess Chat instantly with your online friends? Get the FREE Yahoo! Messenger http://uk.messenger.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Closed war class loading.
Hi, I've raised a bug online http://issues.apache.org/bugzilla/show_bug.cgi?id=28470 but though I would ask the question here as well. -- The problem i'm experiencing is this. org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource '/index.vm' org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource '/index.vm' at org.apache.velocity.runtime.resource.ResourceManagerImpl. loadResource(ResourceManagerImpl.java:501) --- I've deployed a war through the manager interface. It deploys fine, picks up the xml file with my context in it, datasource etc. First time i go to a page i get the above error. I have unpackWARs set to false because i want to be able to reload my war without undeploying (I believe this possible). This is the Host tag in the server.xml Questions. - Am i doing something wrong - Is there another way i can get my war to redeploy (without having to undeploy redeploy)? Any replies or advice would be great. Thanks, Owen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Closed war class loading.
You've got unpackWars="false". I don't use Velocity, but does it use File IO to load .vm files? If so, you will have to unpack wars to use Velocity. Pretty stupid on Velocity's part if they use File IO in Webapps. Jake Quoting Owen Fellows <[EMAIL PROTECTED]>: > Hi, > > I've raised a bug online >http://issues.apache.org/bugzilla/show_bug.cgi?id=28470 > but though I would ask the question here as well. > > -- > The problem i'm experiencing is this. > > org.apache.velocity.exception.ResourceNotFoundException: Unable to find > resource > '/index.vm' > > org.apache.velocity.exception.ResourceNotFoundException: Unable to find > resource > '/index.vm' > at org.apache.velocity.runtime.resource.ResourceManagerImpl. > loadResource(ResourceManagerImpl.java:501) > > > --- > > I've deployed a war through the manager interface. It deploys fine, picks up > the xml file with my context in it, datasource etc. > First time i go to a page i get the above error. > > I have unpackWARs set to false because i want to be able to reload my war > without undeploying (I believe this possible). > This is the Host tag in the server.xml > unpackWARs="false" autoDeploy="false" > xmlValidation="false" xmlNamespaceAware="false"> > > Questions. > - Am i doing something wrong > - Is there another way i can get my war to redeploy (without having to > undeploy > redeploy)? > > > Any replies or advice would be great. > > Thanks, > Owen > > > - > 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: ajp13.service() ajpGetReply recoverable error 3
hi I get the exact same thing with the same configuration and I have been trawling the news groups and web for answers but to no avail, so I am with you on getting a definitive answer on this log file output. Matt - Original Message - From: "Michael Sanders" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, April 19, 2004 10:09 AM Subject: ajp13.service() ajpGetReply recoverable error 3 > I'm using Apache 2.0.49, Tomcat 4.1.29, and mod_jk2 2.04 on Windows > 2000 Server. I'm getting errors in my Apache & Tomcat logs (shown > below), BUT I do not get any errors shown in the browser and my servlet > appears to be functioning correctly. I guess the fact that it says > "recoverable error" means that it recovers which is why users do not > see any errors. However I suspect it does mean that the system is > working sub-optimally. I'd be grateful if someone could give me a clue > as to the meaning of the errors & any pointers on fixing the problem. > > Many thanks, > Michael Sanders > > Apache 2.0.49 error log > === > [Mon Apr 19 15:48:53 2004] [error] ajp13.service() ajpGetReply > recoverable error 3 > [Mon Apr 19 15:48:53 2004] [error] ajp13.service() ajpGetReply > recoverable error 3 > [Mon Apr 19 15:48:53 2004] [error] ajp13.service() Error forwarding > ajp13:localhost:8009 1 0 > [Mon Apr 19 15:48:53 2004] [error] mod_jk2.handler() Error connecting > to tomcat 3, status 200 > > > Tomcat 4.1.29 stderr > > [ERROR] JkCoyoteHandler - -Error in action code > error>java.net.SocketException: Connection aborted by peer: socket > write error > at java.net.SocketOutputStream.socketWrite(Native Method) > at java.net.SocketOutputStream.write(SocketOutputStream.java:91) > at org.apache.jk.common.ChannelSocket.send(ChannelSocket.java:457) > at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:654) > at > org.apache.jk.server.JkCoyoteHandler.action(JkCoyoteHandler.java:435) > at org.apache.coyote.Response.action(Response.java:222) > at org.apache.coyote.Response.finish(Response.java:343) > at > org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:314) > at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:387) > at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:673) > at > org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:615) > at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:786) > at > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:666) > at java.lang.Thread.run(Thread.java:479) > > workers2.properties > === > #define the shared memory file > [shm] > file=C:/Program Files/Apache Group/Apache2/jk2.shm > > # Define the communication channel > [channel.socket:localhost:8009] > tomcatId=localhost:8009 > > [ajp13:localhost:8009] > channel=channel.socket:localhost:8009 > > [uri:/servlet/*] > worker=ajp13:localhost:8009 > > server.xml > == > > > > >className="org.apache.catalina.mbeans.ServerLifecycleListener" > debug="0"/> >className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" > debug="0"/> > > > > > > value="30"/> > > >type="org.apache.catalina.UserDatabase" >description="User database that can be updated and saved"> > > > > factory > > org.apache.catalina.users.MemoryUserDatabaseFactory > > > pathname > conf/tomcat-users.xml > > > > > > > > > > > port="8080" minProcessors="5" maxProcessors="75" >enableLookups="true" redirectPort="8443" >acceptCount="100" debug="0" connectionTimeout="2" >useURIValidationHack="false" disableUploadTimeout="true" > /> > > > port="8009" minProcessors="5" maxProcessors="100" >enableLookups="true" redirectPort="8443" >acceptCount="100" debug="0" connectionTimeout="30" >useURIValidationHack="false" > > protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"/> > > > > > directory="D:/logfiles/Tomcat" prefix="tomcat_." > suffix=".log" > timestamp="true"/> > > debug="0" resourceName="UserDatabase"/> > > > > unpackWARs="true" autoDeploy="true"> > > directory.--> > directory="D:/logfiles/Tomcat" prefix="tomcat_" > suffix=".log" > timestamp="true"/> > > >swallowOutput="true"/> > > > > > > > > > > > jk2.properties > == > ## THIS FILE MAY BE OVERRIDEN AT RUNTIME. MAKE SURE TOMCAT IS STOPED > ## WHEN YOU EDIT THE FILE. > > ## COMMENTS WILL BE _LOST_ > > ## DOCUMENTATION OF THE FORMAT IN JkMain javadoc. > > # Set the desired handler list > # handler.list=apr,request,channelJni > # > # Over
setting cookies in servlet and read inside the JSP
How do I read a cookie (inside a JSP) that I created inside a servlet. It looks that it has different path properties and so when I'm inside the JSP it can't read the cookie... -- Emerson Cargnin Analista de Sistemas Setor de Desenvolvimento de Sistemas - TRE-SC tel : (048) - 251-3700 - Ramal 3181 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JK/JK2 startup explanation
Daniel Gibby wrote: I'm especially wondering if I need to jave apr, JK and JK2 running. I was trying to only use JK2 with unixSockets... maybe that isn't what is actually happening, eh? Can I disable JNI? How do I use just JK or JK2? JNI is used mainly in two situations: starting Tomcat from within Apache's process (in-process JNI) and UNIX socket communication. If you're planning to use "channelSocket" and start Apache and Tomcat separately, you can skip JNI. JK is production grade, while JK2 is said to be "not for production". As far as I'm concerned, JK2 is the choice. I've had it in production for several months, no problem. The examples for setting up jk / jk2 are not very clear as to what does what and what the options are... True. I wish one of the developers would take time to just LIST the handlers and options, so we can know what to experiment with. I know that most of the time the examples are trying to be inclusive for everything on all platforms, but what that ends up meaning is that it is hard to see what someone wants specifically for a specific platform. In my case, I just want the fastest and least buggy connection between apache 2 and tomcat 4 on RedHat Linux 9. I'm sure that enough people have that configuration that it would seem that you could find a specific example of how to set that up without including everyone else's possible configurations in the same doc. Anyway here is my jk2.properties: channelUnix.file=/usr/local/jakarta-tomcat/work/jk2.socket shm.file=/usr/local/jakarta-tomcat/work/jk2.shm handler.list=apr,channelUnix,request channelJni.disabled = 0 apr.NativeSo=/usr/local/jakarta-tomcat/server/lib/jkjni.so What defaults are set besides those that I've got here? This looks good. Here is mine: jk2.config -- # Set the desired handler list # handler.list=apr,request,channelJni handler.list=apr,request,channelUnix,shm # shm.file=${jkHome}/work/jk2.shm apr.NativeSo=/usr/lib/apache2-extramodules/jkjni.so request.tomcatAuthentication=false channelUnix.file=${jkHome}/work/tomcat.sock -- workers2.properties - [logger] level=DEBUG # [config:] debug=0 debugEnv=0 # [uriMap:] info=Maps the requests. Options: debug debug=0 # Alternate file logger [logger.file:0] level=DEBUG file=/var/log/httpd/mod_jk2.log # [shm:] info=Scoreboard. Required for reconfiguration and status with multiprocess servers file=/var/run/jk2.shm size=100 debug=0 disabled=0 # [workerEnv:] info=Global server options timing=1 debug=0 # [channel.un:unixsock] info=Main socket to Tomcat engine file=/var/tomcat4/work/tomcat.sock # [status:] info=Status worker, displays runtime informations # [ajp13:unixsock] info=Default AJP 1.3 worker channel=channel.un:unixsock # [uri:/jkstatus/*] info=Display status information and checks the config file for changes. group=status: # [uri:www.elektrovojvodina.co.yu/racun] info=Consumers electrical bill group=ajp13:unixsock - Nix. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
hey you
Norton AntiVirus gelöscht1.txt Description: plain/text - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Closed war class loading.
Hi, Cheers for that, I've unpacked the war now and it works fine. Is there any way to redeploy an unpacked war with undeploying and then redeploying. It doesn't take that long to redeploy but it is a bit ennoying. Cheers, Owen On Mon, 19 Apr 2004 15:15:57 +, Jacob Kjome <[EMAIL PROTECTED]> wrote: You've got unpackWars="false". I don't use Velocity, but does it use File IO to load .vm files? If so, you will have to unpack wars to use Velocity. Pretty stupid on Velocity's part if they use File IO in Webapps. Jake Quoting Owen Fellows <[EMAIL PROTECTED]>: Hi, I've raised a bug online http://issues.apache.org/bugzilla/show_bug.cgi?id=28470 but though I would ask the question here as well. -- The problem i'm experiencing is this. org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource '/index.vm' org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource '/index.vm' at org.apache.velocity.runtime.resource.ResourceManagerImpl. loadResource(ResourceManagerImpl.java:501) --- I've deployed a war through the manager interface. It deploys fine, picks up the xml file with my context in it, datasource etc. First time i go to a page i get the above error. I have unpackWARs set to false because i want to be able to reload my war without undeploying (I believe this possible). This is the Host tag in the server.xml Questions. - Am i doing something wrong - Is there another way i can get my war to redeploy (without having to undeploy redeploy)? Any replies or advice would be great. Thanks, Owen - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Closed war class loading.
Quoting Owen Fellows <[EMAIL PROTECTED]>: > Hi, > > Cheers for that, I've unpacked the war now and it works fine. > > Is there any way to redeploy an unpacked war with undeploying and then > redeploying. > It doesn't take that long to redeploy but it is a bit ennoying. > Upgrade to Tomcat-5. It explodes war files by default...even on a Tomcat manager deploy. I would still rethink using a technology that violates the J2EE by requriing access to the file sytem in order to work properly. Jake > Cheers, > Owen > > On Mon, 19 Apr 2004 15:15:57 +, Jacob Kjome <[EMAIL PROTECTED]> wrote: > > > You've got unpackWars="false". I don't use Velocity, but does it use File > IO to > > load .vm files? If so, you will have to unpack wars to use Velocity. > Pretty > > stupid on Velocity's part if they use File IO in Webapps. > > > > Jake > > > > Quoting Owen Fellows <[EMAIL PROTECTED]>: > > > >> Hi, > >> > >> I've raised a bug online > >>http://issues.apache.org/bugzilla/show_bug.cgi?id=28470 > >> but though I would ask the question here as well. > >> > >> -- > >> The problem i'm experiencing is this. > >> > >> org.apache.velocity.exception.ResourceNotFoundException: Unable to find > >> resource > >> '/index.vm' > >> > >> org.apache.velocity.exception.ResourceNotFoundException: Unable to find > >> resource > >> '/index.vm' > >> at org.apache.velocity.runtime.resource.ResourceManagerImpl. > >> loadResource(ResourceManagerImpl.java:501) > >> > >> > >> --- > >> > >> I've deployed a war through the manager interface. It deploys fine, picks > up > >> the xml file with my context in it, datasource etc. > >> First time i go to a page i get the above error. > >> > >> I have unpackWARs set to false because i want to be able to reload my war > >> without undeploying (I believe this possible). > >> This is the Host tag in the server.xml > >> >> unpackWARs="false" autoDeploy="false" > >> xmlValidation="false" xmlNamespaceAware="false"> > >> > >> Questions. > >> - Am i doing something wrong > >> - Is there another way i can get my war to redeploy (without having to > >> undeploy > >> redeploy)? > >> > >> > >> Any replies or advice would be great. > >> > >> Thanks, > >> Owen > >> > >> > >> - > >> 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] > > > > > > > > > - > 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]
Need help building JK/JK2 for Netscape (Sun ONE) on Solaris
I'm having trouble building JK/JK2 for Netscape on Solaris. Has anyone had any luck with this? I got the sources via CVS (using JK_1_2_5 tag), made build.properties file, then ran 'ant native'. Ant fails on the 'so' task because it tried to call libtool, which wants to invoke 'cc'. I have gcc on my system, not cc, and I don't know how to tell and to tell libtool that. I've tried all sorts of properties, but without any luck. Any help would be greatly appreciated. Cheers, Rob - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Need help building JK/JK2 for Netscape (Sun ONE) on Solaris
AFAIK, you won't be able to get an NSAPI connector for JK2. We're using JK 1.2.5 and Netscape, but I built it with good ol' make. What were the actual error messages you got? Benjamin J. Armintor Systems Analyst ITS-Systems: Mainframe Group University of Texas - Austin tele: (512) 232-6562 email: [EMAIL PROTECTED] -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Rob Cash Sent: Monday, April 19, 2004 11:10 AM To: [EMAIL PROTECTED] Subject: Need help building JK/JK2 for Netscape (Sun ONE) on Solaris I'm having trouble building JK/JK2 for Netscape on Solaris. Has anyone had any luck with this? I got the sources via CVS (using JK_1_2_5 tag), made build.properties file, then ran 'ant native'. Ant fails on the 'so' task because it tried to call libtool, which wants to invoke 'cc'. I have gcc on my system, not cc, and I don't know how to tell and to tell libtool that. I've tried all sorts of properties, but without any luck. Any help would be greatly appreciated. Cheers, Rob - 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]
Offtopic: Re: Closed war class loading.
Jacob Kjome wrote: Upgrade to Tomcat-5. It explodes war files by default...even on a Tomcat manager deploy. I would still rethink using a technology that violates the J2EE by requriing access to the file sytem in order to work properly. Just a claryfing note: Velocity is not intended to be exclusively used within a ServletContainer, it can be used in any java application. So, it comes with a FileResourceLoader, a JarResourceLoader and a ClasspathResourceLoader (recommended to be used with Tomcat). Owen: Why don't you try your hand at changing your velocity configuration in velocity.properties to use one of the other loaders with a packed war? http://jakarta.apache.org/velocity/developer-guide.html --- Julio César Aguilar Cabrera [EMAIL PROTECTED] Proyecto SIGC3, LANIA - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Closed war class loading.
Velocity does not violate J2EE by *requiring* access to the file system, so everyone calm down. ;) ClasspathResourceLoader : "To use this loader effectively, all you must do is jar your templates, and put that jar into the WEB-INF/lib directory of your webapp" From: http://jakarta.apache.org/velocity/developer-guide.html#Configuring%20Re source%20Loaders > -Original Message- > From: Jacob Kjome [mailto:[EMAIL PROTECTED] > Sent: Monday, April 19, 2004 11:14 AM > To: Tomcat Users List > Subject: Re: Closed war class loading. > > > Quoting Owen Fellows <[EMAIL PROTECTED]>: > > > Hi, > > > > Cheers for that, I've unpacked the war now and it works fine. > > > > Is there any way to redeploy an unpacked war with > undeploying and then > > redeploying. It doesn't take that long to redeploy but it is a bit > > ennoying. > > > > Upgrade to Tomcat-5. It explodes war files by default...even > on a Tomcat manager deploy. I would still rethink using a > technology that violates the J2EE by requriing access to the > file sytem in order to work properly. > > Jake > > > Cheers, > > Owen > > > > On Mon, 19 Apr 2004 15:15:57 +, Jacob Kjome > <[EMAIL PROTECTED]> wrote: > > > > > You've got unpackWars="false". I don't use Velocity, but does it > > > use File > > IO to > > > load .vm files? If so, you will have to unpack wars to use > > > Velocity. > > Pretty > > > stupid on Velocity's part if they use File IO in Webapps. > > > > > > Jake > > > > > > Quoting Owen Fellows <[EMAIL PROTECTED]>: > > > > > >> Hi, > > >> > > >> I've raised a bug online > > >>http://issues.apache.org/bugzilla/show_bug.cgi?id=28470 > > >> but though I would ask the question here as well. > > >> > > >> -- > > >> The problem i'm experiencing is this. > > >> > > >> org.apache.velocity.exception.ResourceNotFoundException: > Unable to > > >> find resource '/index.vm' > > >> > > >> org.apache.velocity.exception.ResourceNotFoundException: > Unable to > > >> find resource '/index.vm' > > >> at org.apache.velocity.runtime.resource.ResourceManagerImpl. > > >> loadResource(ResourceManagerImpl.java:501) > > >> > > >> > > >> --- > > >> > > >> I've deployed a war through the manager interface. It deploys > > >> fine, picks > > up > > >> the xml file with my context in it, datasource etc. > > >> First time i go to a page i get the above error. > > >> > > >> I have unpackWARs set to false because i want to be able > to reload > > >> my war without undeploying (I believe this possible). > This is the > > >> Host tag in the server.xml > > >> > >> unpackWARs="false" autoDeploy="false" > > >> xmlValidation="false" xmlNamespaceAware="false"> > > >> > > >> Questions. > > >> - Am i doing something wrong > > >> - Is there another way i can get my war to redeploy > (without having > > >> to undeploy redeploy)? > > >> > > >> > > >> Any replies or advice would be great. > > >> > > >> Thanks, > > >> Owen > > >> > > >> > > >> > --- > > >> -- > > >> 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] > > > > > > > > > > > > > > > > > - > > 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] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Closed war class loading.
Hi, I should have read my email before sending it as i doesn't make much sense. :-) I'm using Tomcat-5. I've set unpackwars to True. I've deployed my war through the manager interface. But as far as i can see the only way to redeploy the war is to undeploy it and the redeploy it again. (I believe this has the effect of deleting the unpacked war, and the unzipping it again when you deploy it). Is there a better way to set up Tomcat so that i can achieve this. Owen P.S. Thanks for the pointer to ClasspathResourceLoader I will have a look at that. On Mon, 19 Apr 2004 16:13:43 +, Jacob Kjome <[EMAIL PROTECTED]> wrote: Quoting Owen Fellows <[EMAIL PROTECTED]>: Hi, Cheers for that, I've unpacked the war now and it works fine. Is there any way to redeploy an unpacked war with undeploying and then redeploying. It doesn't take that long to redeploy but it is a bit ennoying. Upgrade to Tomcat-5. It explodes war files by default...even on a Tomcat manager deploy. I would still rethink using a technology that violates the J2EE by requriing access to the file sytem in order to work properly. Jake Cheers, Owen On Mon, 19 Apr 2004 15:15:57 +, Jacob Kjome <[EMAIL PROTECTED]> wrote: > You've got unpackWars="false". I don't use Velocity, but does it use File IO to > load .vm files? If so, you will have to unpack wars to use Velocity. Pretty > stupid on Velocity's part if they use File IO in Webapps. > > Jake > > Quoting Owen Fellows <[EMAIL PROTECTED]>: > >> Hi, >> >> I've raised a bug online >>http://issues.apache.org/bugzilla/show_bug.cgi?id=28470 >> but though I would ask the question here as well. >> >> -- >> The problem i'm experiencing is this. >> >> org.apache.velocity.exception.ResourceNotFoundException: Unable to find >> resource >> '/index.vm' >> >> org.apache.velocity.exception.ResourceNotFoundException: Unable to find >> resource >> '/index.vm' >> at org.apache.velocity.runtime.resource.ResourceManagerImpl. >> loadResource(ResourceManagerImpl.java:501) >> >> >> --- >> >> I've deployed a war through the manager interface. It deploys fine, picks up >> the xml file with my context in it, datasource etc. >> First time i go to a page i get the above error. >> >> I have unpackWARs set to false because i want to be able to reload my war >> without undeploying (I believe this possible). >> This is the Host tag in the server.xml >> > unpackWARs="false" autoDeploy="false" >> xmlValidation="false" xmlNamespaceAware="false"> >> >> Questions. >> - Am i doing something wrong >> - Is there another way i can get my war to redeploy (without having to >> undeploy >> redeploy)? >> >> >> Any replies or advice would be great. >> >> Thanks, >> Owen >> >> >> - >> 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] > > - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Help with handling exceptions
Hi, First of all, you only defined a custom error page for one type of exception, i.e., ServletException. So if you only want to display the exception message, you would want to wrap whatever the exception was in a ServletException and rethrow it. Secondly, by calling , you basically told the JSP engine that there is an exception/error on the page, forwarding to another page at this point will give you an IllegalStateException. You might want to take a look at the following two directives: <%@ page errorPage="exception.jsp" %> <%@ page isErrorPage="true" %> Cheers:) -Yan -Original Message- From: Frank Burns [mailto:[EMAIL PROTECTED] Sent: April 19, 2004 07:08 To: Tomcat Users List Subject: Help with handling exceptions Hi, Please help. What I would like to do is redirect, or forward, to another page when an exception occurs in certain JSP pages. I call some JSPs that utilize beans (via JSTL) that have getter methods which perform database access. These getter methods can generate exceptions. When they do, the JSP simply incorporates some text, indicating the exception, into the rest of the JSP's template text. I have included elements in the web.xml file, like this: javax.servlet.ServletException /common/exception.jsp And other less general exception types. But these are all just ignored. Why? I've also tried other methods, using JSTL. For example, I catch the exception, using ,and try to forward using . But I get the following response incorprated into the original called JSP: [Exception in:../foo.jsp] Cannot forward after response has been committed Also, when I catch the exception and try to redirect using I get the original called JSP with nothing incorprated into it. I deduce form this, that the problem is that some of the JSP page's content has already been committed, and so the forward or redirect is prohibited. Is this correct? SO MY QUESTION IS: How can I achieve my objective of displaying an error page when an exception occurs? Thanks, Frank. - 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]
emergency - need to get into admin app
We reloaded the drives on our web server yesterday, but Tomcat keeps choking, and we think it's because not enough memory is allocated, and we're trying to get into the admin web application, but it keeps saying our password isn't correct. Even though I set a password during the install, there was nothing in the tomcat-users.xml file, so I've now made it this, but we still can't get in: I've been restarting Tomcat after saving it after each modification. My boss is literally breathing down my neck, so please write back ASAP if you have a clue, b/c Google isn't helping me out all that much!!! Thanks, Stephen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Connecting the HTTP Server and Tomcat
Hi, The jsvc utility in commons-daemon is just for this purpose, it allows you to specify a user TC should run as, and if you read the INSTALL.txt and Tomcat5.sh under native/ you will know it's very easy to change the startup method. Yang -Original Message- From: SH Solutions [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 07, 2004 5:35 PM To: 'Tomcat Users List' Subject: RE: Connecting the HTTP Server and Tomcat Hi Currently I use catalina.sh start | stop to control tomcat 4.1.x and 5.0.x running as root. Can I change it easily to use commons-daemon (running as non-root)? A lot of command line options are set in catalina.sh. Would I need to do this manually ? Regards, Steffen - 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: Extending GenericPrincipal/RealmBase: Essentially a classloader question
- Original Message - From: "Jeanfrancois Arcand" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Friday, April 16, 2004 5:52 PM Subject: Re: Extending GenericPrincipal/RealmBase: Essentially a classloader question > Have you tried the privileged attribute in context.xml instead? I'm > confident it will work for what you are trying to do. Yes, this worked. I also enabled the security manager. If I wanted to emulate the 'priveledged="true"' functionality without exposing as much as 'priveledged="true" does, could I do this? I want my app to be able to 'look' into server/lib, but only at what I tell it it can. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: emergency - need to get into admin app
I believe that tomcat-users.xml is only read when Tomcat is started. So if you modified the file after you started Tomcat, it won't help. You'd need to restart Tomcat after modifying the file. This is just my best guess, not a definitive fact. Good luck. Cheers, Rob "Stephen Charles Huey" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > We reloaded the drives on our web server yesterday, but Tomcat keeps > choking, and we think it's because not enough memory is allocated, and > we're trying to get into the admin web application, but it keeps saying > our password isn't correct. Even though I set a password during the > install, there was nothing in the tomcat-users.xml file, so I've now made > it this, but we still can't get in: > > > > > > > > > > > > > > I've been restarting Tomcat after saving it after each modification. > > My boss is literally breathing down my neck, so please write back ASAP if > you have a clue, b/c Google isn't helping me out all that much!!! > > Thanks, > Stephen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: emergency - need to get into admin app
Is there anything in the system.out or system.err log files? (catalina.out on unix, stderr/stdout on windows). What about context-specific log files? you say it's choking, but you also say "it says wrong password", so *something* is responding? Do you get the default tomcat welcome page? (the one with links to both admin and manager apps?) Can you see tomcat in the task list (ps -ef or Windows Task Manager?) Can you get the manager app? are there any drives you haven't mounted or mapped? are there NSF mounts you didn't re-mount? are you using Apache in front, if so are your JK mount directions still valid? are you restoring your drives from an archive? have you ruled out archive corruption? perhaps try downloading the tomcat binary again, and using that binary, just to get Tomcat up and running, then you'll be looking at corruption within the codebase for each context. > -Original Message- > From: Stephen Charles Huey [mailto:[EMAIL PROTECTED] > Sent: Monday, April 19, 2004 12:48 PM > To: Tomcat Users List > Subject: emergency - need to get into admin app > > > We reloaded the drives on our web server yesterday, but > Tomcat keeps choking, and we think it's because not enough > memory is allocated, and we're trying to get into the admin > web application, but it keeps saying our password isn't > correct. Even though I set a password during the install, > there was nothing in the tomcat-users.xml file, so I've now > made it this, but we still can't get in: > > > > > > > > roles="manager,admin"/> password="tomcat" roles="tomcat"/> password="tomcat" roles="role1"/> password="tomcat" roles="tomcat,role1"/> > > I've been restarting Tomcat after saving it after each modification. > > My boss is literally breathing down my neck, so please write > back ASAP if you have a clue, b/c Google isn't helping me out > all that much!!! > > Thanks, > Stephen > > - > 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: Virtual Host, Locations and Mod_JK2
Use the uri property in workers2.properties instead of using JkUriSet. I do it that way and have no such problems: [uri:www.guidestar.org/*.jsp] group=lbWWW [uri:www.SITENAME.org/*.adp] group=lbWWW [uri:www.SITENAME.org/*.inc] group=lbWWW [uri:www.SITENAME.org/servlet/*] group=lbWWW [uri:www.SITENAME.org/*.gs] group=lbWWW [uri:www.SITENAME.org/*.wga] group=lbWWW [uri:www.SITENAME.org/*.flexi] group=lbWWW [uri:de.SITENAME.org/*.jsp] group=ajp13:web02DE:8019 [uri:de.SITENAME.org/*.inc] group=ajp13:web02DE:8019 [uri:de.SITENAME.org/servlet/*] group=ajp13:web02DE:8019 I used to have the following but then I decided to let apache serve the static content. [uri:www.SITENAME.org/*] group=lbWWW --Angus > -Original Message- > From: Alexander F. Hartner [mailto:[EMAIL PROTECTED] > Sent: Monday, April 19, 2004 1:21 AM > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: Virtual Host, Locations and Mod_JK2 > > > I host several websites on my apache2 (2.0.49) using virtual > hosts. One > of the hosts I would like to forward fully to a web application > deployed on tomat via Mod_JK. What I have done is the following: > > Installed the webapplication in tomcat's root "/" context > > Configured a worker in workers2.properties > > Configured a virutal host on apache2 > > > ServerAdmin [EMAIL PROTECTED] > DocumentRoot /home/www/solms.co.za/ > ServerName www.solms.co.za > ServerAlias solms.co.za *.solms.co.za solmstraining.co.za > *.solmstraining.co.za > ErrorLog logs/solms.co.za-error_log > CustomLog logs/solms.co.za-access_log combined > >JkUriSet worker ajp13:localhost:28009 > > > > Everything is working, except the Location directive spans > all my other > virtual hosts as well. A request to any of the virtual hosts is > redirected to /index.jsp, which I guess comes from my web > application's > deployment descriptor. Direct requests to > otherhost.com/index.html are > still processed by apache correctly, but general request to > otherhost.com are redirected to otherhost.com/index.jsp. > > Ugly solution: > What I have done in the mean time is to either > -create index.jsp files which are typically copies of the index.html > -modify the webapplication to redirect to index.html > > I should not have to do this as the location should only work for the > virtual host in which it is configured. > > Any suggestions welcome > > Alex > > > - > 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: emergency - need to get into admin app
NOTE: This is an emergency fix only and will leave you wide open. Edit the admin web.xml to allow no authentication. DO NOT LEAVE IT THIS WAY. What do you logs say? What does the server.xml look like? Please post it. Doug - Original Message - From: "Stephen Charles Huey" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Monday, April 19, 2004 1:48 PM Subject: emergency - need to get into admin app > We reloaded the drives on our web server yesterday, but Tomcat keeps > choking, and we think it's because not enough memory is allocated, and > we're trying to get into the admin web application, but it keeps saying > our password isn't correct. Even though I set a password during the > install, there was nothing in the tomcat-users.xml file, so I've now made > it this, but we still can't get in: > > > > > > > > > > > > > > I've been restarting Tomcat after saving it after each modification. > > My boss is literally breathing down my neck, so please write back ASAP if > you have a clue, b/c Google isn't helping me out all that much!!! > > Thanks, > Stephen > > - > 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: emergency - need to get into admin app
Thanks, but we are restarting after every modification. And this is Tomcat 4, by the way. Our website is dead right now. If anybody has a clue why the password I'm putting in there isn't being accepted, please let me know! - Original message - From: "Rob Cash" <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Date: Mon, 19 Apr 2004 13:55:09 -0400 Subject: Re: emergency - need to get into admin app I believe that tomcat-users.xml is only read when Tomcat is started. So if you modified the file after you started Tomcat, it won't help. You'd need to restart Tomcat after modifying the file. This is just my best guess, not a definitive fact. Good luck. Cheers, Rob "Stephen Charles Huey" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > We reloaded the drives on our web server yesterday, but Tomcat keeps > choking, and we think it's because not enough memory is allocated, and > we're trying to get into the admin web application, but it keeps saying > our password isn't correct. Even though I set a password during the > install, there was nothing in the tomcat-users.xml file, so I've now made > it this, but we still can't get in: > > > > > > > > > > > > > > I've been restarting Tomcat after saving it after each modification. > > My boss is literally breathing down my neck, so please write back ASAP if > you have a clue, b/c Google isn't helping me out all that much!!! > > Thanks, > Stephen - 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: Handling SOAP faults
Hi Yan, I think I may finally see what you are suggesting: put the SOAPfault into the message of the sendError(int, string), and use the custom error-handler to write it to the errorStream after getting it from the getAttribute. Hmmm, well, that is a bit more elegant then using the session variable. I still wish there was a way to write directly to the errorStream in the main servlet, instead of having to pass it over to a separate error handler. Thanks for the suggestion. If anybody comes up with a way to write directly to the errorStream, I'ld very much like to hear. Thanks again, Bill Send reply to: "Tomcat Users List" <[EMAIL PROTECTED]> From: "Yansheng Lin" <[EMAIL PROTECTED]> To: "'Tomcat Users List'" <[EMAIL PROTECTED]> Subject:RE: Handling SOAP faults Date sent: Mon, 19 Apr 2004 08:16:29 -0600 > I started looking at SOAP a few months ago, that's why I said it. Anyways, > what gets put in sendError(code, msg) should be available in your _custom_ > error handler by calling req.getAttribute(javax.servlet.error.message). > > -Yan > > -Original Message- > From: Bill Harrelson [mailto:[EMAIL PROTECTED] > Sent: April 16, 2004 18:38 > To: Tomcat Users List > Subject: RE: Handling SOAP faults > > > Thanks for the interest and reply Yan, but you make assumptions > that are incorrect: > > > Ok, I think what happened here is: the response message is *overwritten* > > since you already defined a custom error-page in your deployment > descriptor. > > No, the response message is sent back as the error response > message, _not_ as the errorStream. I checked this (as this being > the simplest approach) _before_ implementing the custom error- > page in the deployment descriptor. > > Putting an error message into the sendError(error-code, message) > call does not return an errorStream. What gets returned in the > errorStream in that case is the default html error page. > > I'm still looking for a way to write to the errorStream directly. > > Bill > > > PS. SOAP is a really good idea. > I'm not sure why you say this, but ok. SOAP has been a reality in > the world I work in for a couple of years now, but it's only recently > that people have actually started generating and expecting > SOAPfaults. > > > > > -Original Message- > > From: Bill Harrelson [mailto:[EMAIL PROTECTED] > > Sent: April 16, 2004 11:59 > > To: Tomcat Users List > > Subject: RE: Handling SOAP faults > > > > > > What the SOAP spec says is that a SOAPfault XML document > > needs to be returned in the errorStream and a response code of > > 500 returned. > > > > Sending a response 500 is easy, including a response message is > > also easy. But, what is included in the response message is not > > written to the errorStream. Tomcat seems to write whatever is > > generated by the error-page directive in the deployment descriptor > > to the error-stream, so I have currently solved the problem by > > passing the SOAPfault document through the session variable to > > the designated jsp listed in the error-page directive. > > > > It just seems that this is a hackery way to do it, and my servlet > > should be able to write directly to the errorStream of the response, I > > just can't see how. > > > > Any assistance is appreciated. > > > > Thanks, > > > > Bill > > > > > > Send reply to: "Tomcat Users List" <[EMAIL PROTECTED]> > > From: "Yansheng Lin" <[EMAIL PROTECTED]> > > To: "'Tomcat Users List'" <[EMAIL PROTECTED]> > > Subject:RE: Handling SOAP faults > > Date sent: Fri, 16 Apr 2004 11:21:06 -0600 > > > > > How about setting the fault on the response? With 500 as status. Or is > > > that what you asked for? > > > > > > -Yan > > > > > > -Original Message- > > > From: Bill Harrelson [mailto:[EMAIL PROTECTED] > > > Sent: April 15, 2004 19:04 > > > To: Tomcat Users List > > > Subject: Handling SOAP faults > > > > > > > > > Hello, > > > > > > I'm using Tomcat 4.2.14, JDK 1.4.1, and I need to be able to return > > > a SOAP fault document with a response code of 500. The only > > > way I've found to do this seems a bit of a hack, and I was > > > wondering if there was a better way. > > > > > > Currently I'm passing the SOAP fault document in the session > > > variable which gets picked up by the error-page handler (a jsp) > > > when I issue the sendError(500). This results in the SOAPfault > > > message appearing in the error-stream on the client as it should, it > > > just seems as though I ought to be able to write to the error-stream > > > directly, but I can't find how in the doc, or googling. > > > > > > Can anyone assist? > > > > > > Thanks, > > > > > > Bill > > > > > > > > > - > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EM
How to hide files by extension under Tomcat 5?
Hello, I've got Tomcat 5 running "standalone". Unfortunately I cannot discover how to prevent non-JSP files from being served. Specifically, I've got code sections (which aren't really appropriate to be written as beans) which I "jsp:include" into several pages. I end up giving all of these the extension ".jspinclude". Provided you know the name of the file, you can request it and see the source. This is also be the case for other files I do not want visible. Previously I had Tomcat 3 connected to Apache and used Apache's config mechanism to deny access to files with certain extensions. Now I'm moving to Tomcat 5 and decided to give a standalone setup a try. Is there a way to configure TC5 so that it gives a 404 error for all files with a certain extension (or name-matching a reg exp string)? Or conversely, configuring it so that it only serves files with an extension in [jsp, html, gif]? thanks, Steve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat4x Development Process
Hi, Since I have started developing with Tomcat4x I have noticed some annoying trends in my development process and am convinced there has to be a better way. I am finding that I always have to restart tomcat so updated java classes getting compiled into the web-inf folder get loaded. I have figured out how to do catalina.jpda start in the prompt and debug with eclipse but a lot of times I get a message saying my changes are out of sync. Long story short, is there a way to force tomcat to check for any changes to the classes in the web-inf folder of the web app? Also any other development tips would be useful. - dkrebs
Re: How to hide files by extension under Tomcat 5?
You can hide all this files inside the WEB-INF directory. It will be included when called by a JSP or servlet, but not served directly... Stephen Bacon wrote: Hello, I've got Tomcat 5 running "standalone". Unfortunately I cannot discover how to prevent non-JSP files from being served. Specifically, I've got code sections (which aren't really appropriate to be written as beans) which I "jsp:include" into several pages. I end up giving all of these the extension ".jspinclude". Provided you know the name of the file, you can request it and see the source. This is also be the case for other files I do not want visible. Previously I had Tomcat 3 connected to Apache and used Apache's config mechanism to deny access to files with certain extensions. Now I'm moving to Tomcat 5 and decided to give a standalone setup a try. Is there a way to configure TC5 so that it gives a 404 error for all files with a certain extension (or name-matching a reg exp string)? Or conversely, configuring it so that it only serves files with an extension in [jsp, html, gif]? thanks, Steve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Emerson Cargnin Analista de Sistemas Setor de Desenvolvimento de Sistemas - TRE-SC tel : (048) - 251-3700 - Ramal 3181 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: emergency - need to get into admin app
Ok, I took out the security tags and I can get in there. Is the admin app where I set memory allocations in Tomcat??? I'm looking at adding an Environment Entry or something, but I don't know what to do with this! Our total Java memory is only like 60 MB and we need at least a gig! Thanks... - Original message - From: "Parsons Technical Services" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Date: Mon, 19 Apr 2004 14:01:14 -0400 Subject: Re: emergency - need to get into admin app NOTE: This is an emergency fix only and will leave you wide open. Edit the admin web.xml to allow no authentication. DO NOT LEAVE IT THIS WAY. What do you logs say? What does the server.xml look like? Please post it. Doug - Original Message - From: "Stephen Charles Huey" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Monday, April 19, 2004 1:48 PM Subject: emergency - need to get into admin app > We reloaded the drives on our web server yesterday, but Tomcat keeps > choking, and we think it's because not enough memory is allocated, and > we're trying to get into the admin web application, but it keeps saying > our password isn't correct. Even though I set a password during the > install, there was nothing in the tomcat-users.xml file, so I've now made > it this, but we still can't get in: > > > > > > > > > > > > > > I've been restarting Tomcat after saving it after each modification. > > My boss is literally breathing down my neck, so please write back ASAP if > you have a clue, b/c Google isn't helping me out all that much!!! > > Thanks, > Stephen > > - > 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Use of RemoteAddrValve class to restrict client access to Web Application deployed in Embedded Tomcat
Hello, I am trying to set request filter at host level programatticaly for Embedded Tomcat. It doesn't seem like working. Anyone can point out what i am doing wrong or what i am supposed to do. Here, is the Code Snippet that i am using: host = embedded.createHost("localhost", getPath() + "/webapps"); RemoteAddrValve filter = new RemoteAddrValve(); filter.setContainer(host); filter.setDeny("127.0.0.1"); Thanks in advance. Chirayu Shah
Re: emergency - need to get into admin app
How are you starting tomcat? What OS are you running? - Original Message - From: "Stephen Charles Huey" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Monday, April 19, 2004 2:28 PM Subject: Re: emergency - need to get into admin app > Ok, I took out the security tags and I can get in there. Is the admin > app where I set memory allocations in Tomcat??? I'm looking at adding an > Environment Entry or something, but I don't know what to do with this! > Our total Java memory is only like 60 MB and we need at least a gig! > Thanks... > > > - Original message - > From: "Parsons Technical Services" <[EMAIL PROTECTED]> > To: "Tomcat Users List" <[EMAIL PROTECTED]> > Date: Mon, 19 Apr 2004 14:01:14 -0400 > Subject: Re: emergency - need to get into admin app > > NOTE: This is an emergency fix only and will leave you wide open. > > Edit the admin web.xml to allow no authentication. > > DO NOT LEAVE IT THIS WAY. > > What do you logs say? > > What does the server.xml look like? Please post it. > > Doug > > - Original Message - > From: "Stephen Charles Huey" <[EMAIL PROTECTED]> > To: "Tomcat Users List" <[EMAIL PROTECTED]> > Sent: Monday, April 19, 2004 1:48 PM > Subject: emergency - need to get into admin app > > > > We reloaded the drives on our web server yesterday, but Tomcat keeps > > choking, and we think it's because not enough memory is allocated, and > > we're trying to get into the admin web application, but it keeps saying > > our password isn't correct. Even though I set a password during the > > install, there was nothing in the tomcat-users.xml file, so I've now made > > it this, but we still can't get in: > > > > > > > > > > > > > > > > > > > > > > > > > > > > I've been restarting Tomcat after saving it after each modification. > > > > My boss is literally breathing down my neck, so please write back ASAP if > > you have a clue, b/c Google isn't helping me out all that much!!! > > > > Thanks, > > Stephen > > > > - > > 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] > > > - > 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: emergency - need to get into admin app
I see something in catalina.bat about a JAVA_OPTS environment variable. Do I need to set this in Windows? When I run java -X on the command line, I see something about a -Xms option for setting the heap size. Do I just type -Xms in the Windows environment variable or what? - Original message - From: "Stephen Charles Huey" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Date: Mon, 19 Apr 2004 13:06:46 -0500 Subject: Re: emergency - need to get into admin app Thanks, but we are restarting after every modification. And this is Tomcat 4, by the way. Our website is dead right now. If anybody has a clue why the password I'm putting in there isn't being accepted, please let me know! - Original message - From: "Rob Cash" <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Date: Mon, 19 Apr 2004 13:55:09 -0400 Subject: Re: emergency - need to get into admin app I believe that tomcat-users.xml is only read when Tomcat is started. So if you modified the file after you started Tomcat, it won't help. You'd need to restart Tomcat after modifying the file. This is just my best guess, not a definitive fact. Good luck. Cheers, Rob "Stephen Charles Huey" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > We reloaded the drives on our web server yesterday, but Tomcat keeps > choking, and we think it's because not enough memory is allocated, and > we're trying to get into the admin web application, but it keeps saying > our password isn't correct. Even though I set a password during the > install, there was nothing in the tomcat-users.xml file, so I've now made > it this, but we still can't get in: > > > > > > > > > > > > > > I've been restarting Tomcat after saving it after each modification. > > My boss is literally breathing down my neck, so please write back ASAP if > you have a clue, b/c Google isn't helping me out all that much!!! > > Thanks, > Stephen - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: emergency - need to get into admin app
Hi Stephen. You need to modify the CATALINA_OPTS environment variable: To give yourself a Gig of memory, try: export CATALINA_OPTS="-Xmx1024m" How you set this variable will depend on your environment/os etc. Hope that helps. Pete. Quoting Stephen Charles Huey <[EMAIL PROTECTED]>: > Ok, I took out the security tags and I can get in there. Is the admin > app where I set memory allocations in Tomcat??? I'm looking at adding an > Environment Entry or something, but I don't know what to do with this! > Our total Java memory is only like 60 MB and we need at least a gig! > Thanks... > > > - Original message - > From: "Parsons Technical Services" <[EMAIL PROTECTED]> > To: "Tomcat Users List" <[EMAIL PROTECTED]> > Date: Mon, 19 Apr 2004 14:01:14 -0400 > Subject: Re: emergency - need to get into admin app > > NOTE: This is an emergency fix only and will leave you wide open. > > Edit the admin web.xml to allow no authentication. > > DO NOT LEAVE IT THIS WAY. > > What do you logs say? > > What does the server.xml look like? Please post it. > > Doug > > - Original Message - > From: "Stephen Charles Huey" <[EMAIL PROTECTED]> > To: "Tomcat Users List" <[EMAIL PROTECTED]> > Sent: Monday, April 19, 2004 1:48 PM > Subject: emergency - need to get into admin app > > > > We reloaded the drives on our web server yesterday, but Tomcat keeps > > choking, and we think it's because not enough memory is allocated, and > > we're trying to get into the admin web application, but it keeps saying > > our password isn't correct. Even though I set a password during the > > install, there was nothing in the tomcat-users.xml file, so I've now made > > it this, but we still can't get in: > > > > > > > > > > > > > > > > > > > > > > > > > > > > I've been restarting Tomcat after saving it after each modification. > > > > My boss is literally breathing down my neck, so please write back ASAP if > > you have a clue, b/c Google isn't helping me out all that much!!! > > > > Thanks, > > Stephen > > > > - > > 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] > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- Peter Davison [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to hide files by extension under Tomcat 5?
Good idea. Unfortunately, I'd like to keep my file org as-is (it'd be a bit strange to put all sorts of resources in a directory struture starting with WEB-INF). Plus I'm not sure it's a "good thing" to rely on a product-specific feature (WEB-INF is hidden by Tomcat) for this. What happens if in the future they dir changes to WEB-INFO - then a bunch of pages would need re-doing. Surely there must be a configurable way? This would seem to be a general req. of any web-server. thanks, Steve Emerson Cargnin wrote: You can hide all this files inside the WEB-INF directory. It will be included when called by a JSP or servlet, but not served directly... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: shared/lib again...
Sorry about not being clear enough last time. Let's see... The original problem was with a Filter, which was started at deployment. Then to my opinion this is due to Filter initialization (not run-time usage) as implemented in Tomcat. That was my first thought when you brought up the question about the moment of the CNFE happening but I tried with classes needed at runtime (Velocity classes, for example) and could not find those either. Using my code or your servlet. Stop, now I've messed up. :-) Your code can not find some jars in question, but mine does?? No. Your code does not find things if I put in my application. But it does find classes in jars in shared/lib within a test (almost empty) application living in CATALINA_HOME/webapps. I know it does not seem important but I have no other clues by now. --- Julio César Aguilar Cabrera [EMAIL PROTECTED] Proyecto SIGC3, LANIA - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to hide files by extension under Tomcat 5?
Steve, Since you don't like that you might try this. Set security-constraints for all the file types you want to protect. Then do NOT set an auth-constraint for it. Thus no one will be able to access it from outside. Have not done this myself, but read it in the docs somewhere. Doug www.parsonstechnical.com PS Unless I am mistaken the file structure is controlled by the servlet spec. Thus Tomcat has no control over this feature. - Original Message - From: "Stephen Bacon" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Monday, April 19, 2004 2:51 PM Subject: Re: How to hide files by extension under Tomcat 5? > Good idea. Unfortunately, I'd like to keep my file org as-is (it'd be a > bit strange to put all sorts of resources in a directory struture > starting with WEB-INF). > Plus I'm not sure it's a "good thing" to rely on a product-specific > feature (WEB-INF is hidden by Tomcat) for this. What happens if in the > future they dir changes to WEB-INFO - then a bunch of pages would need > re-doing. > Surely there must be a configurable way? This would seem to be a general > req. of any web-server. > thanks, >Steve > > Emerson Cargnin wrote: > > > You can hide all this files inside the WEB-INF directory. It will be > > included when called by a JSP or servlet, but not served directly... > > > - > 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: Classpath problems with tomcat on Linux 9
Still no luck. I'm basically trying to do exactly the same thing that the "jsp-examples/checkbox" is doing and I can't get Tomcat to recognize my UserData.class file. I've tried placing my UserData.class file in every location possible, and no luck. My next step will be to downgrade to Tomcat 4 so I can at least try out the examples that are described in the Tomcat Bible (the examples don't work with Tomcat 5). Should I expect Tomcat to find my UserData.class file if I put it in webapps//WEB-INF/classes? Do I need to create a web.xml or should it find the class file without any web.xml customization? If anyone has a very simple example that I could drop in to see if it works, I'd appreciate it. I've already verified that the jsp-examples all work, but there is a lot of stuff in the web.xml that I shouldn't need for what I want to do, and finding what I need is probably where my problems lie. -Andy. On Friday 16 April 2004 07:32 pm, Berry, Layton wrote: > I'm guessing you need to put the UserData class in a package, > and import it into your savename page. > > Quoting from JSP 2.0 spec, "As of JSP 2.0, it is illegal > to refer to any classes from the unnamed (a.k.a. default) package." > > -Layton > > >-Original Message- > > From: Andy Wadsworth [mailto:[EMAIL PROTECTED] > > >Sent: Friday, April 16, 2004 2:26 PM > >To: [EMAIL PROTECTED] > >Subject: Classpath problems with tomcat on Linux 9 > > > > > > > >I'm just getting started with my JSP and tomcat experience, and while > >learning how JSP works, I'm can't get tomcat to recognize supporting > >class definitions that I have placed in /WEB-INF/classes. > > > >Here's my setup: > >* tomcat 5.0.19, running on RedHat Linux 9.0 Pro > >* no customization to $CATALINA_HOME/conf/web.xml > > no customization to $CATALINA_HOME/conf/server.xml > > added my user account as a manager in > >$CATALINA_HOME/conf/tomcat-users.xml > >* I'm running tomcat using the $CATALINA_HOME/bin/startup.sh > >* I'm running tomcat as my normal login id, although I've also > >tried it as > > root just to make sure it wasn't a file permissions issue. > >* I'm able to use the Tomcat manager at > >http://localhost:8080/manager to > > start/stop/reload/deploy applications > >* The jsp-examples appear to work fine > > > >Here's what I'm trying to do: > >* Created the following "index.jsp" and placed it in > > $CATALINA_HOME/webapps/test > > > > > > > >What's your name? > >What's your email? > > > > > > > >* Created the following as $CATALINA_HOME/webapps/test/savename.jsp > > > > > > > >Name: <%= user.getUsername() %> > >Email: <%= user.getEmail() %> > > > > > >* Created a UserData.java file that defines a public class UserData > > with username and email fields as type String. Added public > > access methods for setUsername, getUsername, setEmail, getEmail. > > I compiled UserData.java using javac, and to produce UserData.class > > which I placed in $CATALINA_HOME/webapps/test/WEB-INF/classes. The > > UserData.java class does not define a package nor does it import > > anything (line 1 is "public class UserData") > > > >* deployed the "test" application using the tomcat manager and it shows > > that the application is deployed with no errors. > > > >* Using IE 6.0, I enter the url to test.jsp and it displays the form as > > expected. I enter a name and email value into the form and press the > > submit button and I get the following: > > HTTP Status 500 - > > exception > > org.apache.jasper.JasperException: Unable to compile class for JSP > > An error occurred at line: 1 in jsp file: /savename.jsp > > > > Generated sevlet error: > >[javac] Compiling 1 source file > > > ><...>/work/Catalina/localhost/test/org/apache/jsp/savename_jsp.java:42 > > symbol : class UserData > >location: class org.apache.jsp.savename_jsp > >UserDAta user = null > > > > > >I suspect this is a classpath issue but everything I read says > >that if you > >put your classes in /WEB-INF/classes, it will just work. > > > >There must be some basic thing I'm missing. Any help would be very much > >apprciated. > > > >Thanks in advance. > >-Andy. > > > >-- > >### > ># Andy Wadsworth # > ># # > ># BondMart Technologies, Inc. # > ># [EMAIL PROTECTED] # > ># # > >### > > > > > > > > > > > >- > >To unsubscribe, e-mail: [EMAIL PROTECTED] > >For additional commands, e-mail: [EMAIL PROTECTED] -- ### # Andy Wadsworth # # # # BondMart Technologies, Inc. # # [EMAIL PROTECTED] # # # ### The average woman would rather have beauty than brains, because the
Re: emergency - need to get into admin app
In general, you only use it to pass options that you might need. For example the X flag controls memory, so if your app requires it you can instruct tomcat to launch JVMs with a higher max (i.e. if it seems to be running out of memory). As an example I use: "-Xmx128m" to set the max at 128MB (i think the default is 64?) Note I'm using this under linux so it's in a shell script. In the Windows batch file, you'd just use: set JAVA_OPTS=-Xmx128m Which I would put after the line "rem - Execute The Requested Command" - but that's just me ;^) You could also use the control panel to set a system-wide env. variable, but you don't need everybody to have it defined, plus it may mess you up when running java apps other than tomcat. -Steve Stephen Charles Huey wrote: I see something in catalina.bat about a JAVA_OPTS environment variable. Do I need to set this in Windows? When I run java -X on the command line, I see something about a -Xms option for setting the heap size. Do I just type -Xms in the Windows environment variable or what? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Classpath problems with tomcat on Linux 9
Hi Andy, I'm porting over to TC5 and I've not had any problems with it finding my classes, *BUT* I don't put any classes into the base directory itself, but below that. So for example, my UserBean class is in /WEB-INF/classes/AccessCtrl and it is part of the package "AccessCtrl" (i.e. first line of bean is "package AccessCtrl;") The pages that use this include the directive: <%@ page import="AccessCtrl.*" %> so that it can find them. Additionally, to avoid problems, I generally include the packagename anyways in my useBean tags: class="AccessCtrl.UserBean" scope="session" /> Which shouldn't be necessary, but I find it increases readability anyways. -Steve Andy Wadsworth wrote: Should I expect Tomcat to find my UserData.class file if I put it in webapps//WEB-INF/classes? Do I need to create a web.xml or should it find the class file without any web.xml customization? If anyone has a very simple example that I could drop in to see if it works, I'd appreciate it. I've already verified that the jsp-examples all work, but there is a lot of stuff in the web.xml that I shouldn't need for what I want to do, and finding what I need is probably where my problems lie. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Best way to handle JNDI exceptions
Hi, I got this question while thinking whether to implement "Business Delegate" for a small web application. If I implemented a small Delegate, then I would be able to catch ?all? the service failure inside of the Delegate. But I got a feeling it may be an overkill since the application is pretty straight forward. So in Tomcat world, where would be the best place to handle a service allocation failure? Declaratively or programmatically? Thanks in advance! -Yan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: auto generation of mod_jk.conf in tomcat 5
the strange thing is that a virtualhost tag is generated and no rule is created... if I take those out I can see the rules being created How do I configure the autogeneration of the conf file not put the virtualhost tag??? Other question: the loadmodule, log and worker files and log level are generated in the mod_jk.conf file, do I need them anyway at httpd.conf? thanks Emerson Yang Xiao wrote: Hi, In httpd.conf: LoadModule jk_module modules/mod_jk.so JkWorkersFile /usr/local/tomcat/conf/jk/workers.properties JkLogFile /usr/local/tomcat/logs/mod_jk.log JkLogLevel info JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories JkRequestLogFormat "%w %V %T" JkMount /jsp-examples/* router In server.xml Add this under and this under That's all there is to it. Yang -Original Message- From: Emerson Cargnin [mailto:[EMAIL PROTECTED] Sent: Thursday, April 15, 2004 12:35 PM To: Tomcat Users List Subject: auto generation of mod_jk.conf in tomcat 5 When we used tomcat 3.2.3, I configured it to autogenerate the mod_jk.conf to be read by apache/mod_jk. In tomcat 5 I still can use it??? I like it becouse each time a app is deployed I just have to make apache re-read it's conf file to get the new map to work. how do I configure tomcat 5 to auto-generate it??? -- Emerson Cargnin Analista de Sistemas Setor de Desenvolvimento de Sistemas - TRE-SC tel : (048) - 251-3700 - Ramal 3181 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AccessControlException
Hi, I'm having problems to make jsp to work. The code of the page call a bean named myMoneda d:/jakarta-tomcat-5.0.19/webapps/tarjetas/test.jsp <[EMAIL PROTECTED] contentType="text/html"%> <[EMAIL PROTECTED] errorPage="errorJSP.jsp"%> <[EMAIL PROTECTED] import="Def.*"%> <[EMAIL PROTECTED] import="Interfaz.*"%> <% myMoneda.useData(1); %> When I use the method myMondeda.useData the tomcat gave me the AccessControlException below. I already added the AllPermission to the catalina.policy grant codeBase "file: d:/jakarta-tomcat-5.0.19/webapps/tarjetas/WEB-INF/classes/-" { permission java.security.AllPermission; }; What can I do to solve my problem? Thanks, Juan Error al crear el contexto...!! java.security.AccessControlException: access den ied (java.io.FilePermission D:\jakarta-tomcat-5.0.19\webapps\tarjetas\WEB-INF\cl asses\jndi.properties read) Hubo un error al ejecutar el lookup en capturaMoneda..!java.lang.NullPointerExce ption java.security.AccessControlException: access denied (java.io.FilePermission D:\j akarta-tomcat-5.0.19\webapps\tarjetas\WEB-INF\classes\org\apache\jasper\Jasp erEx ceptionBeanInfo.class read) at java.security.AccessControlContext.checkPermission(AccessControlConte xt.java:269) at java.security.AccessController.checkPermission(AccessController.java: 401) at java.lang.SecurityManager.checkPermission(SecurityManager.java:524) at java.lang.SecurityManager.checkRead(SecurityManager.java:863) at java.io.File.exists(File.java:678) at org.apache.naming.resources.FileDirContext.file(FileDirContext.java:8 73) at org.apache.naming.resources.FileDirContext.lookup(FileDirContext.java :255) at org.apache.naming.resources.ProxyDirContext.lookup(ProxyDirContext.ja va:334) at org.apache.catalina.loader.WebappClassLoader.findResourceInternal(Web appClassLoader.java:1750) at org.apache.catalina.loader.WebappClassLoader.findClassInternal(Webapp ClassLoader.java:1618) at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoa der.java:900) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa der.java:1350) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa der.java:1230) at java.beans.Introspector.instantiate(Introspector.java:1322) at java.beans.Introspector.findExplicitBeanInfo(Introspector.java:393) at java.beans.Introspector.(Introspector.java:342) at java.beans.Introspector.getBeanInfo(Introspector.java:144) at org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptors(Pro pertyUtils.java:949) at org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptors(Pro pertyUtils.java:979) at org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptor(Prop ertyUtils.java:887) at org.apache.commons.beanutils.PropertyUtils.getSimpleProperty(Property Utils.java:1172) at org.apache.commons.beanutils.PropertyUtils.getNestedProperty(Property Utils.java:772) at org.apache.commons.beanutils.PropertyUtils.getProperty(PropertyUtils. java:801) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV alve.java:298) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv eContext.java:151) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a:567) at org.apache.catalina.core.StandardContextValve.invokeInternal(Standard ContextValve.java:245) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV alve.java:199) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv eContext.java:151) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a:567) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j ava:184) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv eContext.java:151) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j ava:164) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv eContext.java:149) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a:567) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal ve.java:156) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv eContext.java:151) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a:567) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:972) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:20 6) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java :833) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce ssConnection(Http11Protocol.java:732) at org.apache.tomcat.util.net.Tc
Re: Detecting Sessions already existent at Tomcat Startup?
Hello Mark, you are right, sorry for misinterpreting the spec. What I am now doing is, for each session I set an instance of a custom HttpSessionActivationListener implementation as an attribute. This works, at least if the Listener is implemented as a normal (outer) class. If I implement it as an inner class, Tomcat behaves strangely. It tries to serialize/deserialize the class containing the Listener instead of the Listener itself, which raises an exception because the containing class is not Serializable. Is this normal? Aside from that, wouldn't it be nice of the servlet spec would allow binding HttpSessionActivationListeners to the whole application instead just to an attribute? In my application, it would be much elegant/easier. Maybe I should suggest that to the servlet spec commitee... When I was browsing the Servlet Spec 2.4, I stumbled over another (unrelated) issue. SRV.10.6 states: "Some exceptions do not occur under the call stack of another component in the application. An example of this is a SessionListener...". Doesn't this mean that SessionListener callbacks are never called from another component in the app? This it not true for Tomcat 5.0.19, because I've seen it calling sessionDestroyed when I was calling session.getAttribute() or session.setAttribute(). Could this be a violation of the spec? What do you think? Regards, Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Classpath problems with tomcat on Linux 9
Hi, You need the <%@ page import="package" %> directive to tell it where to look for it. Yang -Original Message- From: Andy Wadsworth [mailto:[EMAIL PROTECTED] Sent: Monday, April 19, 2004 3:11 PM To: Tomcat Users List Subject: Re: Classpath problems with tomcat on Linux 9 Still no luck. I'm basically trying to do exactly the same thing that the "jsp-examples/checkbox" is doing and I can't get Tomcat to recognize my UserData.class file. I've tried placing my UserData.class file in every location possible, and no luck. My next step will be to downgrade to Tomcat 4 so I can at least try out the examples that are described in the Tomcat Bible (the examples don't work with Tomcat 5). Should I expect Tomcat to find my UserData.class file if I put it in webapps//WEB-INF/classes? Do I need to create a web.xml or should it find the class file without any web.xml customization? If anyone has a very simple example that I could drop in to see if it works, I'd appreciate it. I've already verified that the jsp-examples all work, but there is a lot of stuff in the web.xml that I shouldn't need for what I want to do, and finding what I need is probably where my problems lie. -Andy. On Friday 16 April 2004 07:32 pm, Berry, Layton wrote: > I'm guessing you need to put the UserData class in a package, > and import it into your savename page. > > Quoting from JSP 2.0 spec, "As of JSP 2.0, it is illegal > to refer to any classes from the unnamed (a.k.a. default) package." > > -Layton > > >-Original Message- > > From: Andy Wadsworth [mailto:[EMAIL PROTECTED] > > >Sent: Friday, April 16, 2004 2:26 PM > >To: [EMAIL PROTECTED] > >Subject: Classpath problems with tomcat on Linux 9 > > > > > > > >I'm just getting started with my JSP and tomcat experience, and while > >learning how JSP works, I'm can't get tomcat to recognize supporting > >class definitions that I have placed in /WEB-INF/classes. > > > >Here's my setup: > >* tomcat 5.0.19, running on RedHat Linux 9.0 Pro > >* no customization to $CATALINA_HOME/conf/web.xml > > no customization to $CATALINA_HOME/conf/server.xml > > added my user account as a manager in > >$CATALINA_HOME/conf/tomcat-users.xml > >* I'm running tomcat using the $CATALINA_HOME/bin/startup.sh > >* I'm running tomcat as my normal login id, although I've also > >tried it as > > root just to make sure it wasn't a file permissions issue. > >* I'm able to use the Tomcat manager at > >http://localhost:8080/manager to > > start/stop/reload/deploy applications > >* The jsp-examples appear to work fine > > > >Here's what I'm trying to do: > >* Created the following "index.jsp" and placed it in > > $CATALINA_HOME/webapps/test > > > > > > > >What's your name? > >What's your email? > > > > > > > >* Created the following as $CATALINA_HOME/webapps/test/savename.jsp > > > > > > > >Name: <%= user.getUsername() %> > >Email: <%= user.getEmail() %> > > > > > >* Created a UserData.java file that defines a public class UserData > > with username and email fields as type String. Added public > > access methods for setUsername, getUsername, setEmail, getEmail. > > I compiled UserData.java using javac, and to produce UserData.class > > which I placed in $CATALINA_HOME/webapps/test/WEB-INF/classes. The > > UserData.java class does not define a package nor does it import > > anything (line 1 is "public class UserData") > > > >* deployed the "test" application using the tomcat manager and it shows > > that the application is deployed with no errors. > > > >* Using IE 6.0, I enter the url to test.jsp and it displays the form as > > expected. I enter a name and email value into the form and press the > > submit button and I get the following: > > HTTP Status 500 - > > exception > > org.apache.jasper.JasperException: Unable to compile class for JSP > > An error occurred at line: 1 in jsp file: /savename.jsp > > > > Generated sevlet error: > >[javac] Compiling 1 source file > > > ><...>/work/Catalina/localhost/test/org/apache/jsp/savename_jsp.java:42 > > symbol : class UserData > >location: class org.apache.jsp.savename_jsp > >UserDAta user = null > > > > > >I suspect this is a classpath issue but everything I read says > >that if you > >put your classes in /WEB-INF/classes, it will just work. > > > >There must be some basic thing I'm missing. Any help would be very much > >apprciated. > > > >Thanks in advance. > >-Andy. > > > >-- > >### > ># Andy Wadsworth # > ># # > ># BondMart Technologies, Inc. # > ># [EMAIL PROTECTED] # > ># # > >### > > > > > > > > > > > >- > >To unsubscribe, e-mail: [EMAIL PROTECTED] > >For additional commands, e-mail: [EMAIL PROTECTED] -- #
RE: AccessControlException
I don't think that's going to be the codeBase for your compiled JSP classes. You shouldn't need to put that AllPermission block in at all to get a file from WEB-INF/classes: Use servletContext.getResource(). Benjamin J. Armintor Systems Analyst ITS-Systems: Mainframe Group University of Texas - Austin tele: (512) 232-6562 email: [EMAIL PROTECTED] -Original Message- From: Juan José García Lau [mailto:[EMAIL PROTECTED] Sent: Monday, April 19, 2004 3:48 PM To: Tomcat Users List Subject: AccessControlException Hi, I'm having problems to make jsp to work. The code of the page call a bean named myMoneda d:/jakarta-tomcat-5.0.19/webapps/tarjetas/test.jsp <[EMAIL PROTECTED] contentType="text/html"%> <[EMAIL PROTECTED] errorPage="errorJSP.jsp"%> <[EMAIL PROTECTED] import="Def.*"%> <[EMAIL PROTECTED] import="Interfaz.*"%> <% myMoneda.useData(1); %> When I use the method myMondeda.useData the tomcat gave me the AccessControlException below. I already added the AllPermission to the catalina.policy grant codeBase "file: d:/jakarta-tomcat-5.0.19/webapps/tarjetas/WEB-INF/classes/-" { permission java.security.AllPermission; }; What can I do to solve my problem? Thanks, Juan Error al crear el contexto...!! java.security.AccessControlException: access den ied (java.io.FilePermission D:\jakarta-tomcat-5.0.19\webapps\tarjetas\WEB-INF\cl asses\jndi.properties read) Hubo un error al ejecutar el lookup en capturaMoneda..!java.lang.NullPointerExce ption java.security.AccessControlException: access denied (java.io.FilePermission D:\j akarta-tomcat-5.0.19\webapps\tarjetas\WEB-INF\classes\org\apache\jasper\Jasp erEx ceptionBeanInfo.class read) at java.security.AccessControlContext.checkPermission(AccessControlConte xt.java:269) at java.security.AccessController.checkPermission(AccessController.java: 401) at java.lang.SecurityManager.checkPermission(SecurityManager.java:524) at java.lang.SecurityManager.checkRead(SecurityManager.java:863) at java.io.File.exists(File.java:678) at org.apache.naming.resources.FileDirContext.file(FileDirContext.java:8 73) at org.apache.naming.resources.FileDirContext.lookup(FileDirContext.java :255) at org.apache.naming.resources.ProxyDirContext.lookup(ProxyDirContext.ja va:334) at org.apache.catalina.loader.WebappClassLoader.findResourceInternal(Web appClassLoader.java:1750) at org.apache.catalina.loader.WebappClassLoader.findClassInternal(Webapp ClassLoader.java:1618) at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoa der.java:900) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa der.java:1350) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa der.java:1230) at java.beans.Introspector.instantiate(Introspector.java:1322) at java.beans.Introspector.findExplicitBeanInfo(Introspector.java:393) at java.beans.Introspector.(Introspector.java:342) at java.beans.Introspector.getBeanInfo(Introspector.java:144) at org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptors(Pro pertyUtils.java:949) at org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptors(Pro pertyUtils.java:979) at org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptor(Prop ertyUtils.java:887) at org.apache.commons.beanutils.PropertyUtils.getSimpleProperty(Property Utils.java:1172) at org.apache.commons.beanutils.PropertyUtils.getNestedProperty(Property Utils.java:772) at org.apache.commons.beanutils.PropertyUtils.getProperty(PropertyUtils. java:801) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV alve.java:298) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv eContext.java:151) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a:567) at org.apache.catalina.core.StandardContextValve.invokeInternal(Standard ContextValve.java:245) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV alve.java:199) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv eContext.java:151) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a:567) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j ava:184) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv eContext.java:151) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j ava:164) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv eContext.java:149) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a:567) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal ve.java:156) at org.apache.catalina.core.StandardValveContext.invokeNe
Re: Detecting Sessions already existent at Tomcat Startup?
Hello again, I solved the inner class issue. Had to declare the inner class as static. Regards, Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat performance issue?
I'm sending my JVM stack trace to see if any of you are better at reading it than I am. ;-) I'm guessing that you can somehow tell by looking at the stack trace whether the connections between apache and tomcat are somehow being held onto or locked waiting for something and not released. Maybe a database connection is not released? Maybe apache graceful causes the problem? Any input is appreciated. Thanks for your help! apache version 2.0.40 mod_jk 2.0.2 tomcat 4.1.27 and 4.1.30 I've attached the javacore file (I stripped out classloader lines since they take up the majority of the file) Let me know if you need to see those. Daniel Gibby David Rees wrote: Daniel Gibby wrote: Tomcat config: Hey, I just realized something... I think I have been having lockups around every 16 hours... 6 seconds! So what does that mean about this configuration? connectionTimeout is defined in milliseconds, not seconds, so that is 60 seconds, not 16 hours. Is some servlet not returning content but hanging on to a connection? Could be, or could be that your server is really busy. When you look at the server-status through Apache, does it show 255 processes busy as well? Could you explain a little further about 'bug in a servlet causing it to not return'? You could either have a deadlock (synchronization issue) in your code, or an infinite loop. I have a stack trace, but I don't see how that helps me figure out where my problem might be... I'm not sure what exactly to look for. Compress it and post it to the list or put it on a public webserver so we can take a look. Cheers Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] javacore.20040413.36.23498-short.txt.gz Description: application/gzip - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: emergency - need to get into admin app
Thanks to everyone who wrote back with suggestions. We had a rough time, and right now we're up because we slapped the old drives back in. After doing that, I found CATALINA_OPTS in the Environment Variables, and it had the -Xms and -Xmx flags after the -server one, but I called the guy who originally set everything up for us over a year ago, and he said he remembered that that didn't work him (we're on Win 2000 Server) and he had to set the memory via some super long command line when installing tomcat as a Service. I'm trying to find info on setting the memory with command line args when installing Tomcat as a service, so if you have a good idea of what needs to be on the command line when doing that in Windows, feel free to let me know or point me to the right docs. Thanks, Stephen - Original message - From: "Peter Davison" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Date: Mon, 19 Apr 2004 14:41:52 -0400 Subject: Re: emergency - need to get into admin app Hi Stephen. You need to modify the CATALINA_OPTS environment variable: To give yourself a Gig of memory, try: export CATALINA_OPTS="-Xmx1024m" How you set this variable will depend on your environment/os etc. Hope that helps. Pete. Quoting Stephen Charles Huey <[EMAIL PROTECTED]>: > Ok, I took out the security tags and I can get in there. Is the admin > app where I set memory allocations in Tomcat??? I'm looking at adding an > Environment Entry or something, but I don't know what to do with this! > Our total Java memory is only like 60 MB and we need at least a gig! > Thanks... > > > - Original message - > From: "Parsons Technical Services" <[EMAIL PROTECTED]> > To: "Tomcat Users List" <[EMAIL PROTECTED]> > Date: Mon, 19 Apr 2004 14:01:14 -0400 > Subject: Re: emergency - need to get into admin app > > NOTE: This is an emergency fix only and will leave you wide open. > > Edit the admin web.xml to allow no authentication. > > DO NOT LEAVE IT THIS WAY. > > What do you logs say? > > What does the server.xml look like? Please post it. > > Doug > > - Original Message - > From: "Stephen Charles Huey" <[EMAIL PROTECTED]> > To: "Tomcat Users List" <[EMAIL PROTECTED]> > Sent: Monday, April 19, 2004 1:48 PM > Subject: emergency - need to get into admin app > > > > We reloaded the drives on our web server yesterday, but Tomcat keeps > > choking, and we think it's because not enough memory is allocated, and > > we're trying to get into the admin web application, but it keeps saying > > our password isn't correct. Even though I set a password during the > > install, there was nothing in the tomcat-users.xml file, so I've now made > > it this, but we still can't get in: > > > > > > > > > > > > > > > > > > > > > > > > > > > > I've been restarting Tomcat after saving it after each modification. > > > > My boss is literally breathing down my neck, so please write back ASAP if > > you have a clue, b/c Google isn't helping me out all that much!!! > > > > Thanks, > > Stephen > > > > - > > 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] > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- Peter Davison [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]
Configuration Issue? HELP!
Hi All, At my wits end on this, so thought I'd ask the guru's. 8-) We are running an Apache HTTP 2.0.49 / mod_JK 2.2 / Tomcat 5.0.18 environment on a Dell 1750 server (2 - 3.06Ghz CPU's / 4GB memory). We're running RedHat Linux 9 as our OS. We also have the hyper-threading option of the server enabled, so our two CPU's look like four. Here's the problem: After about an hour, my web application simply stops responding. There appear to be no errors logged in any of Tomcat's logs (except for some indications of a 'Broken Pipe' someplace in the JK connector. I think this is due to a browser being closed before the response is complete.) I also don't feel that this is an application issue; the app was developed on a Win2K box running Tomcat 5.0.18, and tested on a (different) Linux server running Tomcat 5.0.18. Neither of these environments have exhibited the 'hang' that I'm seeing on my new server. I suspect that it might have something to do with the hyper-threading, but can't seem to find any hits on the 'net about it (been googling all afternoon on this.) Does anyone have any experience with this type of environment? I really at a loss to explain what is going on here. 8-( Thanks. Jerry Jalenak Development Manager, Web Publishing LabOne, Inc. 10101 Renner Blvd. Lenexa, KS 66219 (913) 577-1496 [EMAIL PROTECTED] This transmission (and any information attached to it) may be confidential and is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient or the person responsible for delivering the transmission to the intended recipient, be advised that you have received this transmission in error and that any use, dissemination, forwarding, printing, or copying of this information is strictly prohibited. If you have received this transmission in error, please immediately notify LabOne at the following email address: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: emergency - need to get into admin app
The -Xmx parameter is part of JAVA_OPTS and not CATALINA_OPTS and you set JAVA_OPTS in catalina.bat to increase max size (-Xmx) of your heap memory. Jason -Original Message- From: Stephen Charles Huey [mailto:[EMAIL PROTECTED] Sent: Monday, April 19, 2004 2:06 PM To: Tomcat Users List Subject: Re: emergency - need to get into admin app Thanks to everyone who wrote back with suggestions. We had a rough time, and right now we're up because we slapped the old drives back in. After doing that, I found CATALINA_OPTS in the Environment Variables, and it had the -Xms and -Xmx flags after the -server one, but I called the guy who originally set everything up for us over a year ago, and he said he remembered that that didn't work him (we're on Win 2000 Server) and he had to set the memory via some super long command line when installing tomcat as a Service. I'm trying to find info on setting the memory with command line args when installing Tomcat as a service, so if you have a good idea of what needs to be on the command line when doing that in Windows, feel free to let me know or point me to the right docs. Thanks, Stephen - Original message - From: "Peter Davison" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Date: Mon, 19 Apr 2004 14:41:52 -0400 Subject: Re: emergency - need to get into admin app Hi Stephen. You need to modify the CATALINA_OPTS environment variable: To give yourself a Gig of memory, try: export CATALINA_OPTS="-Xmx1024m" How you set this variable will depend on your environment/os etc. Hope that helps. Pete. Quoting Stephen Charles Huey <[EMAIL PROTECTED]>: > Ok, I took out the security tags and I can get in there. Is the admin > app where I set memory allocations in Tomcat??? I'm looking at adding > an Environment Entry or something, but I don't know what to do with > this! Our total Java memory is only like 60 MB and we need at least a > gig! Thanks... > > > - Original message - > From: "Parsons Technical Services" <[EMAIL PROTECTED]> > To: "Tomcat Users List" <[EMAIL PROTECTED]> > Date: Mon, 19 Apr 2004 14:01:14 -0400 > Subject: Re: emergency - need to get into admin app > > NOTE: This is an emergency fix only and will leave you wide open. > > Edit the admin web.xml to allow no authentication. > > DO NOT LEAVE IT THIS WAY. > > What do you logs say? > > What does the server.xml look like? Please post it. > > Doug > > - Original Message - > From: "Stephen Charles Huey" <[EMAIL PROTECTED]> > To: "Tomcat Users List" <[EMAIL PROTECTED]> > Sent: Monday, April 19, 2004 1:48 PM > Subject: emergency - need to get into admin app > > > > We reloaded the drives on our web server yesterday, but Tomcat keeps > > choking, and we think it's because not enough memory is allocated, > > and we're trying to get into the admin web application, but it keeps > > saying our password isn't correct. Even though I set a password > > during the install, there was nothing in the tomcat-users.xml file, > > so I've now made it this, but we still can't get in: > > > > > > > > > > > > > > > > > > > > > > > > > > > > I've been restarting Tomcat after saving it after each modification. > > > > My boss is literally breathing down my neck, so please write back > > ASAP if you have a clue, b/c Google isn't helping me out all that > > much!!! > > > > Thanks, > > Stephen > > > > > > - > > 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] > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- Peter Davison [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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
the pain of choice
Can someone give me an advice which way to go WRT to using a tomcat/apache combo on a Unix (not Linux) system? There are so many options, jk, jk2, tomcat 3-4-5, apache 1.3, apache2. worker.properties worker2.properties, jk2.properties in tomcat/conf, mod_jk.conf in etc/apache, mod_jk, mod_jk2. Then I see constructs in brackets [] in worker.properties and without these. What is workers.host=jsp-hostname? Is it an IP host? Or is it some placeholder which must be in workers.list? -- Chris Christoph P. U. Kukulies kuku_at_physik.rwth-aachen.de - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Configuration Issue? HELP!
What jdk? - Original Message - From: "Jerry Jalenak" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, April 19, 2004 5:19 PM Subject: Configuration Issue? HELP! > Hi All, > > At my wits end on this, so thought I'd ask the guru's. 8-) > > We are running an Apache HTTP 2.0.49 / mod_JK 2.2 / Tomcat 5.0.18 > environment on a Dell 1750 server (2 - 3.06Ghz CPU's / 4GB memory). We're > running RedHat Linux 9 as our OS. We also have the hyper-threading option > of the server enabled, so our two CPU's look like four. Here's the problem: > After about an hour, my web application simply stops responding. There > appear to be no errors logged in any of Tomcat's logs (except for some > indications of a 'Broken Pipe' someplace in the JK connector. I think this > is due to a browser being closed before the response is complete.) I also > don't feel that this is an application issue; the app was developed on a > Win2K box running Tomcat 5.0.18, and tested on a (different) Linux server > running Tomcat 5.0.18. Neither of these environments have exhibited the > 'hang' that I'm seeing on my new server. I suspect that it might have > something to do with the hyper-threading, but can't seem to find any hits on > the 'net about it (been googling all afternoon on this.) > > Does anyone have any experience with this type of environment? I really at > a loss to explain what is going on here. 8-( > > Thanks. > > Jerry Jalenak > Development Manager, Web Publishing > LabOne, Inc. > 10101 Renner Blvd. > Lenexa, KS 66219 > (913) 577-1496 > > [EMAIL PROTECTED] > > > This transmission (and any information attached to it) may be confidential and > is intended solely for the use of the individual or entity to which it is > addressed. If you are not the intended recipient or the person responsible for > delivering the transmission to the intended recipient, be advised that you > have received this transmission in error and that any use, dissemination, > forwarding, printing, or copying of this information is strictly prohibited. > If you have received this transmission in error, please immediately notify > LabOne at the following email address: [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: Configuration Issue? HELP!
Java 2 SE 1.4.2_02 Jerry Jalenak Development Manager, Web Publishing LabOne, Inc. 10101 Renner Blvd. Lenexa, KS 66219 (913) 577-1496 [EMAIL PROTECTED] > -Original Message- > From: Parsons Technical Services > [mailto:[EMAIL PROTECTED] > Sent: Monday, April 19, 2004 4:43 PM > To: Tomcat Users List > Subject: Re: Configuration Issue? HELP! > > > What jdk? > > - Original Message - > From: "Jerry Jalenak" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Monday, April 19, 2004 5:19 PM > Subject: Configuration Issue? HELP! > > > > Hi All, > > > > At my wits end on this, so thought I'd ask the guru's. 8-) > > > > We are running an Apache HTTP 2.0.49 / mod_JK 2.2 / Tomcat 5.0.18 > > environment on a Dell 1750 server (2 - 3.06Ghz CPU's / 4GB > memory). We're > > running RedHat Linux 9 as our OS. We also have the > hyper-threading option > > of the server enabled, so our two CPU's look like four. Here's the > problem: > > After about an hour, my web application simply stops > responding. There > > appear to be no errors logged in any of Tomcat's logs > (except for some > > indications of a 'Broken Pipe' someplace in the JK > connector. I think > this > > is due to a browser being closed before the response is > complete.) I also > > don't feel that this is an application issue; the app was > developed on a > > Win2K box running Tomcat 5.0.18, and tested on a > (different) Linux server > > running Tomcat 5.0.18. Neither of these environments have > exhibited the > > 'hang' that I'm seeing on my new server. I suspect that it > might have > > something to do with the hyper-threading, but can't seem to > find any hits > on > > the 'net about it (been googling all afternoon on this.) > > > > Does anyone have any experience with this type of > environment? I really > at > > a loss to explain what is going on here. 8-( > > > > Thanks. > > > > Jerry Jalenak > > Development Manager, Web Publishing > > LabOne, Inc. > > 10101 Renner Blvd. > > Lenexa, KS 66219 > > (913) 577-1496 > > > > [EMAIL PROTECTED] > > > > > > This transmission (and any information attached to it) may > be confidential > and > > is intended solely for the use of the individual or entity > to which it is > > addressed. If you are not the intended recipient or the > person responsible > for > > delivering the transmission to the intended recipient, be > advised that you > > have received this transmission in error and that any use, > dissemination, > > forwarding, printing, or copying of this information is strictly > prohibited. > > If you have received this transmission in error, please > immediately notify > > LabOne at the following email address: > [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] > > This transmission (and any information attached to it) may be confidential and is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient or the person responsible for delivering the transmission to the intended recipient, be advised that you have received this transmission in error and that any use, dissemination, forwarding, printing, or copying of this information is strictly prohibited. If you have received this transmission in error, please immediately notify LabOne at the following email address: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Configuration Issue? HELP!
Try googling for LD_ASSUME_KERNEL to see if that helps you. Jerry Jalenak wrote: Hi All, At my wits end on this, so thought I'd ask the guru's. 8-) We are running an Apache HTTP 2.0.49 / mod_JK 2.2 / Tomcat 5.0.18 environment on a Dell 1750 server (2 - 3.06Ghz CPU's / 4GB memory). We're running RedHat Linux 9 as our OS. We also have the hyper-threading option of the server enabled, so our two CPU's look like four. Here's the problem: After about an hour, my web application simply stops responding. There appear to be no errors logged in any of Tomcat's logs (except for some indications of a 'Broken Pipe' someplace in the JK connector. I think this is due to a browser being closed before the response is complete.) I also don't feel that this is an application issue; the app was developed on a Win2K box running Tomcat 5.0.18, and tested on a (different) Linux server running Tomcat 5.0.18. Neither of these environments have exhibited the 'hang' that I'm seeing on my new server. I suspect that it might have something to do with the hyper-threading, but can't seem to find any hits on the 'net about it (been googling all afternoon on this.) Does anyone have any experience with this type of environment? I really at a loss to explain what is going on here. 8-( Thanks. Jerry Jalenak Development Manager, Web Publishing LabOne, Inc. 10101 Renner Blvd. Lenexa, KS 66219 (913) 577-1496 [EMAIL PROTECTED] This transmission (and any information attached to it) may be confidential and is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient or the person responsible for delivering the transmission to the intended recipient, be advised that you have received this transmission in error and that any use, dissemination, forwarding, printing, or copying of this information is strictly prohibited. If you have received this transmission in error, please immediately notify LabOne at the following email address: [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: auto generation of mod_jk.conf in tomcat 5
Still trying to configure mod_jk. The log from mod_jk when apache is started: [Mon Apr 19 18:36:49 2004] [jk_uri_worker_map.c (321)]: Into jk_uri_worker_map_t::uri_worker_map_open, match rule /connManager/servlet/gerenciadorconn/=ajp13 was added [Mon Apr 19 18:36:49 2004] [jk_uri_worker_map.c (345)]: Into jk_uri_worker_map_t::uri_worker_map_open, exact rule /connManager/gerenciadorconn=ajp13 was added [Mon Apr 19 18:36:49 2004] [jk_uri_worker_map.c (299)]: Into jk_uri_worker_map_t::uri_worker_map_open, suffix rule /connManager/.jspx=ajp13 was added [Mon Apr 19 18:36:49 2004] [jk_uri_worker_map.c (299)]: Into jk_uri_worker_map_t::uri_worker_map_open, suffix rule /connManager/.jsp=ajp13 was added The URL I try to browse: http://elbassan.tre-sc.gov.br/connManager/servlet/gerenciadorconn?acao=testaPools The log from mod_jk: [Mon Apr 19 18:37:31 2004] [jk_uri_worker_map.c (500)]: Attempting to map URI '/connManager/servlet/gerenciadorconn' [Mon Apr 19 18:37:31 2004] [jk_uri_worker_map.c (618)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match I can't undertand, the mapping looks fine (generated automatic by tomcat), the apache log show the mapping I test in the browser, but the log of apache show that there's not a match :( Any help??? thanks in advance Emerson Emerson Cargnin wrote: the strange thing is that a virtualhost tag is generated and no rule is created... if I take those out I can see the rules being created How do I configure the autogeneration of the conf file not put the virtualhost tag??? Other question: the loadmodule, log and worker files and log level are generated in the mod_jk.conf file, do I need them anyway at httpd.conf? thanks Emerson Yang Xiao wrote: Hi, In httpd.conf: LoadModule jk_module modules/mod_jk.so JkWorkersFile /usr/local/tomcat/conf/jk/workers.properties JkLogFile /usr/local/tomcat/logs/mod_jk.log JkLogLevel info JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories JkRequestLogFormat "%w %V %T" JkMount /jsp-examples/* router In server.xml Add this under and this under append="true" forwardAll="false" modJk="/usr/local/apache/modules/mod_jk.so" workersConfig="/usr/local/tomcat/conf/workers.properties" /> That's all there is to it. Yang -Original Message- From: Emerson Cargnin [mailto:[EMAIL PROTECTED] Sent: Thursday, April 15, 2004 12:35 PM To: Tomcat Users List Subject: auto generation of mod_jk.conf in tomcat 5 When we used tomcat 3.2.3, I configured it to autogenerate the mod_jk.conf to be read by apache/mod_jk. In tomcat 5 I still can use it??? I like it becouse each time a app is deployed I just have to make apache re-read it's conf file to get the new map to work. how do I configure tomcat 5 to auto-generate it??? -- Emerson Cargnin Analista de Sistemas Setor de Desenvolvimento de Sistemas - TRE-SC tel : (048) - 251-3700 - Ramal 3181 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]