Re: UTF-8 encoding
Simply I don't get it. You send data over HTTP. You can send data as you wish. What about servlet serving images? Just send UTF8 encoded data and everything will be allright. No way Tomcat knows do you want to send cyrrilic letter or french accent letter. It's up to you. Niki Harry Mantheakis wrote: Okay, thanks Yoav. I got the source, and I can see what's happening - thanks to Google - at this URL: http://java.sun.com/blueprints/code/jps131/src/com/sun/j2ee/blueprints/encod ingfilter/web/EncodingFilter.java.html The 'doFilter' method sets the encoding for the *request* which does not seem to address the original question, which was asking how to 'force tomcat to send data in UTF-8 encoding'. Interesting filter nevertheless! It is a subject that concerns me. Kind regards Harry Hi, implement a EncodingFilter class Where's the interface? javax.servlet.Filter is the interface. He probably had http://java.sun.com/blueprints/code/jps131/api/com/sun/j2ee/blueprints/e ncodingfilter/web/EncodingFilter.html in mind. Yoav Shapira - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 5, Velocity and XML Parser issues
Hi, I just experienced a problem with Velocity and Tomcat 5.0.19. I use Velocity 1.3, Velocity Tools 1.0, Struts 1.1 and Tomcat 5.0.19. When starting my Web-App I got the following error: 2004-04-05 16:18:02 StandardContext[/Echnaton] Velocity [info] Velocity successfully started. 2004-04-05 16:18:02 StandardContext[/Echnaton] Velocity [info] Using toolbox configuration file '/WEB-INF/toolbox.xml' 2004-04-05 16:18:02 StandardContext[/Echnaton] Velocity [info] ServletToolboxManager: Loading toolbox... 2004-04-05 16:18:02 StandardContext[/Echnaton]StandardWrapper.Throwable java.lang.NoClassDefFoundError: org/dom4j/io/SAXReader at org.apache.velocity.tools.view.XMLToolboxManager.load(XMLToolboxManager.java:205) at org.apache.velocity.tools.view.servlet.ServletToolboxManager.getInstance(ServletToolboxManager.java:211) at org.apache.velocity.tools.view.servlet.VelocityViewServlet.initToolbox(VelocityViewServlet.java:252) at org.apache.velocity.tools.view.servlet.VelocityViewServlet.init(VelocityViewServlet.java:219) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1044) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:887) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3959) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4284) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:866) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:850) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:638) at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:320) at org.apache.catalina.core.StandardHost.install(StandardHost.java:875) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:727) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:477) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1008) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:394) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1134) at org.apache.catalina.core.StandardHost.start(StandardHost.java:832) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1126) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:521) at org.apache.catalina.core.StandardService.start(StandardService.java:519) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2345) at org.apache.catalina.startup.Catalina.start(Catalina.java:594) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398) On the Velocity-user mailinglist I was told to copy the dom4j.jar file into $CATALINA_HOME/common/endorsed and that solved the problem. So far (Tomcat 4.x) I put the dom4j.jar into the lib directory of the WEB-INF of my web app. Could anybody please explain me what this endorsed directory is all about? Which libraries do I need to put where and why is it NOT possible to put libraries such as dom4j.jar into my Web-Application. Or is there anything I am doing wrong when deploying my web app to Tomcat 5? Any clarification, additional documentation etc is greatly appreciated. Tom
Re: Tomcat 4.1.30 - servlets no longer working
Yes, mod_jk2 seems to have a strange problem, regarding index.jsp URL http://domain.com/servlet/SnoopServlet There is no index.jsp available within the WEB-INF directory. mod_jk.log : SnoopServlet : [Tue Apr 06 07:21:37 2004] ( info) [mod_jk2.c (451)]: mod_jk.translate(): uriMap /index.jsp ajp13:localhost:8009 [Tue Apr 06 07:21:40 2004] ( info) [mod_jk2.c (451)]: mod_jk.translate(): uriMap /servlet/SnoopServlet ajp13:localhost:8009 [Tue Apr 06 07:21:40 2004] ( info) [mod_jk2.c (351)]: mod_jk.handler() per dir worker for 0x833ba10 0x8340da8 [Tue Apr 06 07:21:40 2004] ( info) [mod_jk2.c (394)]: modjk.handler() Calling ajp13:localhost:8009 0x8340da8 [Tue Apr 06 07:21:52 2004] ( info) [mod_jk2.c (451)]: mod_jk.translate(): uriMap /index.jsp ajp13:localhost:8009 Snoop.jsp against it is creating the endpoint : [Tue Apr 06 07:21:24 2004] ( info) [mod_jk2.c (451)]: mod_jk.translate(): uriMap /jsp/num/snoop.jsp ajp13:localhost:8009 [Tue Apr 06 07:21:24 2004] ( info) [mod_jk2.c (351)]: mod_jk.handler() per dir worker for 0x833ba10 0x83433c0 [Tue Apr 06 07:21:24 2004] ( info) [mod_jk2.c (383)]: mod_jk.handler(): new rpool [Tue Apr 06 07:21:24 2004] ( info) [mod_jk2.c (394)]: modjk.handler() Calling ajp13:localhost:8009 0x83433c0 [Tue Apr 06 07:21:24 2004] (debug) [jk_env.c (248)]: env.createBean2(): Create [endpoint] (null) [Tue Apr 06 07:21:24 2004] (debug) [jk_env.c (383)]: env.getByName(): Get by name workerEnv 0x8407ca0 [Tue Apr 06 07:21:24 2004] (debug) [jk_env.c (312)]: env.createBean2(): register endpoint:10 0x8488308 [Tue Apr 06 07:21:24 2004] ( info) [jk_shm.c (466)]: shm.createSlot() Create 3 0x410c8000 0x410ce000 [Tue Apr 06 07:21:24 2004] ( info) [jk_endpoint.c (95)]: workerEnv.init() create slot epStat.12 Catalina.log : 2004-04-05 22:32:25 Authenticator[]: Security checking request GET /servlet/SnoopServlet 2004-04-05 22:32:25 Authenticator[]: Not subject to any constraint 2004-04-05 22:32:25 StandardContext[]: Mapping contextPath='' with requestURI='/servlet/SnoopServlet' and relativeURI='/servlet/SnoopServlet' 2004-04-05 22:32:25 StandardContext[]: Mapped to servlet 'default' with servlet path '/servlet/SnoopServlet' and path info 'null' and update=true SnoopServlet is not working. 2004-04-05 22:32:34 Authenticator[]: Security checking request GET /jsp/snp/snoop.jsp 2004-04-05 22:32:34 Authenticator[]: Not subject to any constraint 2004-04-05 22:32:34 StandardContext[]: Mapping contextPath='' with requestURI='/jsp/snp/snoop.jsp' and relativeURI='/jsp/snp/snoop.jsp' 2004-04-05 22:32:34 StandardContext[]: Mapped to servlet 'jsp' with servlet path '/jsp/snp/snoop.jsp' and path info 'null' and update=true snoop.jsp is working properly. Thank you. On Mon, Apr 05, 2004 at 03:56:02PM +0200, Support wrote: : HTTP Status 404 - /servlets : The requested resource (/servlets) is not available. : [snip] : .jsp against it are still working fine. Let's trade: you provide some details about your setup, and perhaps someone can hint at a solution. Are you accessing Tomcat through Apache (mod_jk)? If so, check whether a jkMount directive got whacked. If you're hitting Tomcat directly, what do the error logs say? etc., etc. -QM -- software -- http://www.brandxdev.nethttp://www.brandxdev.net tech news -- http://www.RoarNetworX.comhttp://www.RoarNetworX.com - To unsubscribe, e-mail: mailto:[EMAIL PROTECTED][EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED][EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
question about jsp:element and jsp:attribute
Hi Is the following code correct? jsp:element name=fo:table-column jsp:attribute name=column-width jsp:expressionwidths[i]/jsp:expression /jsp:attribute jsp:scriptlet if (bgColors[i] != null) { /jsp:scriptlet jsp:attribute name=background-color jsp:expressionbgColors[i]/jsp:expression /jsp:attribute jsp:scriptlet } /jsp:scriptlet /jsp:element tomcat can run, but the generated java code is not correct: out = _jspx_page_context.pushBody(); out.print(widths[i]); String _jspx_temp0 = ((javax.servlet.jsp.tagext.BodyContent)out).getString(); out = _jspx_page_context.popBody(); out.write( + fo:table-column + column-width=\ + _jspx_temp0 + \ + ); if (bgColors[i] != null) { } out.write(/ + fo:table-column + ); the second jsp:attribute/ between jsp:scriptlet/ was lost. can I dynamically generate attribute? and in JSP 5.14, jsp:element only accept jsp:attribute jsp:body as child element. I use tomcat 5.0.19 Regards - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problem with Tomcat 5.0.19 and JSTL (googleapi.jar conflicts with Jasper)
Thanks for your help. I tidied up all my code to follow the proper way of doing things, but it didn't seem to help. I then tried deleting all the jar files in the lib folder and putting them back one by one, and it looks like ther is a conflict between the Google API (googleapi.jar) and Jasper (in 5.0.19 only) so that it can't compile pages with JSTL taglib directives in. I tried taking out any duplicate classes from googleapi.jar (DOM, SAX, javax.mail, javax.activation, Crimson), but it didn't seem to help. Seems a bit odd - I can't see why this jar would cause a conflict. Digby From: Tom K Subject: RE: Problem with Tomcat 5.0.19 and JSTL Date: Thu, 01 Apr 2004 11:16:54 -0800 The key to getting Tomcat 5 to work with JSP 2.0 and expression language is to copy the standard.jar and the jstl.jar (that already exists in Tomcat5's examples/lib directory) into the lib directory you are using for your app. You DO NOT have to edit the web.xml file at all but the web-app tag must be replaced with this: web-app xmlns=http://java.sun.com/xml/ns/j2ee;; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;; xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee web-app_2_4.xsd version=2.4 Then in your jsp page you are going to use you will have these lines at the top of your page: %-- These two taglib DIRECTIVES define the two tag libraries used on this page--% %@ taglib prefix=c uri=http://java.sun.com/jstl/core_rt;; % %@ taglib prefix=sql uri=http://java.sun.com/jstl/sql_rt;; % Should work then! Sincerely, Tom Kochanowicz -Original Message- From: Knight, Digby [mailto:[EMAIL PROTECTED] Sent: Thursday, April 01, 2004 2:09 AM To: '[EMAIL PROTECTED]' Subject: Problem with Tomcat 5.0.19 and JSTL Hi, I've just installed Netbeans 3.6RC1 which has Tomcat 5.0.19 bundled, and it seems to have a problem with JSTL (error below). I've searched the Web for info, and the only thing I found (2 results in Google) was a suggestion to upgrade Xerces and Xalan, which I've done at the server and webapp level, but it doesn't seem to have made any difference. I haven't installed 5.0.19 as a standalone yet, so I don't know if Netbeans has introduced the problem, but this seems like the best place to start looking. Pages without JSTL work fine, and the error appears when declaring the taglib (with or without the actual tags on the page). System: WinXP, no Apache org.apache.jasper.JasperException: h3Validation error messages from TagLibraryValidator for c/h3pnull: java.lang.IllegalStateException: can't declare any more prefixes in this context/p at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHand ler. java:94) at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java :404 ) at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java :112 ) trunc Any thoughts? TIA Digby - * Confidentiality Note: The information contained in this message, and any attachments, may contain confidential and/or privileged material. It is intended solely for the person(s) or entity to which it is addressed. Any review, retransmission, dissemination, or taking of any action in reliance upon this information by persons or entities other than the intended recipient(s) is prohibited. If you received this in error, please contact the sender and delete the material from any computer. * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
5.0.19 - won't start on anything other thatn *nix
Hi folks, I've now tried Tomcat 5.0.19 on 3 different machines and 2 OSes: On Windows XP and MAC OS X 10.3.3, running bin/startup.bat/sh or bin/catalina.bat/sh start produces the error: java.lang.NoSuchMethodException: org.apache.catalina.startup.Catalina.setAwait(boolean) at java.lang.Class.getMethod(Class.java:978) at org.apache.catalina.startup.Bootstrap.setAwait(Bootstrap.java:337) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:396) JAVA_HOME and CATALINE_HOME are set OK. No errors are produced by catalina.bat regarding environment variables. I'm using JDK 1.4.2_03 Can anyone please help as Tomcat is now unusable outside *nix! cheers, Alistair - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JAAS problems migrating from JRun
Michiel, you are programming your own login trigger in a filter - I don't this this will work (although I'm happy to be wrong). I think tomcat is only going to adopt your principals as authenticated if you protect whichever pages necessary via security-constraints in the deployment descriptor. You must set up a LoginModule that tomcat will find, and in this LoginModule tomcat gives you a call-back-handler which you use to do the authentication. You must then set your Subject, which is also passed to you by tomcat. Adam On 04/06/2004 01:39 AM Michiel Toneman wrote: Hi All, The company I work for is attempting to move from JRun 3/4 to Tomcat 5.0.19. So far it has been smooth sailing, and the migration is going better than expected. However, before the migration we were about to deploy a JAAS framework on JRun 4. This framework doesn't seem to work at all well in Tomcat 5. I've implemented a tailored JAAS framework with various types of Principals that grant certain (custom) Permissions in my own Policy. To enforce this onto the webapp, I used a Filter to establish a LoginContext and then wrap the servlet in a Subject.doAsPrivileged call. To clarify: I'm not looking for authentication through JAAS (I've imlemented this in a minimal way), but I'm looking to JAAS for some more elaborate authorization tricks. In my doFilter (simplified): LoginContext lc = new LoginContext(MyJaas, new MyHttpAuthCallbackHandler(request)); lc.login(); Subject.doAsPrivileged(lc.getSubject(),new FilteredAction(request,response,chain) , null); where FilteredAction is an inner class: --- class FilteredAction implements PrivilegedAction { ServletRequest faRequest; ServletResponse faResponse; FilterChain faChain; public FilteredAction(ServletRequest request, ServletResponse response, FilterChain chain) { this.faRequest=request; this.faResponse=response; this.faChain=chain; } public Object run() { try { faChain.doFilter(faRequest, faResponse); } catch (Exception e) { e.printStackTrace(); } return null; } } --- I replace the default Policy with my own policy that adds permissions based on principals assigned in the LoginContext. This is done in the Filter's init: --- public void init(FilterConfig config) throws ServletException { Policy orgPolicy = Policy.getPolicy(); if (orgPolicy instanceof MyPolicy) { // we already did this once upon a time.. } else { Policy.setPolicy(new MyPolicy(orgPolicy)); } } --- This works like a charm on JRun (it's a textbook example on the web). However, it fails miserably on Tomcat 5. It looks like the Filter is being evaluated in a different security context by Tomcat than the Servlet itself (based on evaluation of stacktraces generated in my custom Policy class). Therefore, none of the Principals assigned to the Subject in the Filter are available in the Servlet (when MyPolicy.getPermissions() is called). Does anyone have an idea how I should go about getting (something like) this to work on Tomcat? Any help would very much appreciated. Cheers, Michiel Toneman - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- struts 1.2 + tomcat 5.0.19 + java 1.4.2 Linux 2.4.20 Debian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: 5.0.19 - won't start on anything other thatn *nix
Hi! I'm using Tomcat 5.0.19 on Win 98,NT,XP and 2K. Seems to be working fine. Regards, Anand Ravi -Original Message- From: Alistair Young [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 06, 2004 1:57 PM To: Tomcat Users List Subject: 5.0.19 - won't start on anything other thatn *nix Hi folks, I've now tried Tomcat 5.0.19 on 3 different machines and 2 OSes: On Windows XP and MAC OS X 10.3.3, running bin/startup.bat/sh or bin/catalina.bat/sh start produces the error: java.lang.NoSuchMethodException: org.apache.catalina.startup.Catalina.setAwait(boolean) at java.lang.Class.getMethod(Class.java:978) at org.apache.catalina.startup.Bootstrap.setAwait(Bootstrap.java:337) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:396) JAVA_HOME and CATALINE_HOME are set OK. No errors are produced by catalina.bat regarding environment variables. I'm using JDK 1.4.2_03 Can anyone please help as Tomcat is now unusable outside *nix! cheers, Alistair - 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]
SERVLET MAP TO TOMCAT
Hello Friends, I m novice in Tomcat4. I have created Sevlet MyServlet . I want to kept this servlet in to Tomcat4.0. What syntax i need to write into WEB.XML ? do i need other configuration - Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway - Enter today
Re: 5.0.19 - won't start on anything other thatn *nix
Thanks for that - I've never had problems with Tomcat before! It's seems to be something to do with Embedded - whatever that is. bootstrap.jar is using catalina.jar and trying to call setAwait - which doesn't exist. Can anyone say why setAwait is being called when it clearly doesn't exist in catalina.jar? Is there something in catalina.sh that's making Tomcat think it should run in Embedded mode - is embedded mode a bad thing? thanks, Alistair On 6 Apr 2004, at 10:01, Anand Ravi wrote: Hi! I'm using Tomcat 5.0.19 on Win 98,NT,XP and 2K. Seems to be working fine. Regards, Anand Ravi -Original Message- From: Alistair Young [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 06, 2004 1:57 PM To: Tomcat Users List Subject: 5.0.19 - won't start on anything other thatn *nix Hi folks, I've now tried Tomcat 5.0.19 on 3 different machines and 2 OSes: On Windows XP and MAC OS X 10.3.3, running bin/startup.bat/sh or bin/catalina.bat/sh start produces the error: java.lang.NoSuchMethodException: org.apache.catalina.startup.Catalina.setAwait(boolean) at java.lang.Class.getMethod(Class.java:978) at org.apache.catalina.startup.Bootstrap.setAwait(Bootstrap.java:337) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:396) JAVA_HOME and CATALINE_HOME are set OK. No errors are produced by catalina.bat regarding environment variables. I'm using JDK 1.4.2_03 Can anyone please help as Tomcat is now unusable outside *nix! cheers, Alistair - 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: RedHat Enterprise breaks encoding
My boss who's an expert on redhat brokeness told me about all the problems with various versions of redhat, so I built everything from scratch from source in this order - openssl - openssh - apache 1.3.28 - tomcat 5.0.1x - latest - modjk all into /usr/local it was very stable. It ran jetspeed OK, albeit with all the speed and memory-demands that jetspeed runs at! I wouldn't recommend trusting any redhat-built library at all. YMMV. There again, I use suse for my desktop. and also get into dependency hell. I use debian for my firewall, which I like, and we're using freebsd for our live servers and that throws up even more interesting issues. :-( Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat Java OutOfMemory Error
Hi, I'm running Tomcat 3.2.1 on Windows 2000 Server as service with jk_nt_service.exe utility. I receive java.lang.OutOfMemory error in my JSP page. I need to increment memory for JVM to 512 MB by setting -Xms512m -Xmx512m. Where I do it? Thanks in advance. Marco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem with UserTransaction reference within Servlet code.
Hi Can anyone help! Problem with UserTransaction reference within Servlet code. When you reference UserTransaction object in your Servlet Code, as from = J2EE Specification: The J2EE Product Provider is responsible for = providing an appropriate object as required Context initCtx =3D new InitialContext(); // Look up the UserTransaction object. UserTransaction tx =3D = (UserTransaction)initCtx.lookup(java:comp/UserTransaction); This works fine on J2EE Impementation Servers but fails on Tomcat 4.1.3. = Exception: javax.naming.NameNotFoundException: Name = javax.transaction.UserTransaction is no t bound in this Context at = org.apache.naming.NamingContext.lookup(NamingContext.java:811) at = org.apache.naming.NamingContext.lookup(NamingContext.java:194) at = org.apache.naming.SelectorContext.lookup(SelectorContext.java:183) at javax.naming.InitialContext.lookup(InitialContext.java:347) Thanks Hassan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: 5.0.19 - won't start on anything other thatn *nix
OK, I think I'm getting somewhere: org.apache.catalina.startup.Bootstrap in /bin calls org.apache.catalina.startup.Catalina.setAwait(boolean) in /server/lib which inherits setAwait from org.apache.catalina.startup.Embedded I checked the jars and setAwait is defined in both Catalina.class and Embedded.class so why is the class loader failing to load those files correctly? catalina.out: java.lang.NoSuchMethodException: org.apache.catalina.startup.Catalina.setAwait(boolean) at java.lang.Class.getMethod(Class.java:978) at org.apache.catalina.startup.Bootstrap.setAwait(Bootstrap.java:337) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:396) I've looked for another catalina.jar in the CLASSPATH but there isn't one. Can anyone shed some light? thanks, Alistair On 6 Apr 2004, at 10:28, Alistair Young wrote: Thanks for that - I've never had problems with Tomcat before! It's seems to be something to do with Embedded - whatever that is. bootstrap.jar is using catalina.jar and trying to call setAwait - which doesn't exist. Can anyone say why setAwait is being called when it clearly doesn't exist in catalina.jar? Is there something in catalina.sh that's making Tomcat think it should run in Embedded mode - is embedded mode a bad thing? thanks, Alistair On 6 Apr 2004, at 10:01, Anand Ravi wrote: Hi! I'm using Tomcat 5.0.19 on Win 98,NT,XP and 2K. Seems to be working fine. Regards, Anand Ravi -Original Message- From: Alistair Young [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 06, 2004 1:57 PM To: Tomcat Users List Subject: 5.0.19 - won't start on anything other thatn *nix Hi folks, I've now tried Tomcat 5.0.19 on 3 different machines and 2 OSes: On Windows XP and MAC OS X 10.3.3, running bin/startup.bat/sh or bin/catalina.bat/sh start produces the error: java.lang.NoSuchMethodException: org.apache.catalina.startup.Catalina.setAwait(boolean) at java.lang.Class.getMethod(Class.java:978) at org.apache.catalina.startup.Bootstrap.setAwait(Bootstrap.java:337) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:396) JAVA_HOME and CATALINE_HOME are set OK. No errors are produced by catalina.bat regarding environment variables. I'm using JDK 1.4.2_03 Can anyone please help as Tomcat is now unusable outside *nix! cheers, Alistair - 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]
Problem with UserTransaction reference within Servlet code.
Hi Can anyone help! Problem with UserTransaction reference within Servlet code. When you reference UserTransaction object in your Servlet Code, as from J2EE Specification: The J2EE Product Provider is responsible for providing an appropriate object as required There's a code snippet. Context initCtx = new InitialContext(); UserTransaction tx = (UserTransaction)initCtx.lookup(java:comp/UserTransaction); This works fine on J2EE Impementation Servers but fails on Tomcat 4.1.3. Exception: javax.naming.NameNotFoundException: Name javax.transaction.UserTransaction is not bound in this Context at org.apache.naming.NamingContext.lookup(NamingContext.java:811) at org.apache.naming.NamingContext.lookup(NamingContext.java:194) at org.apache.naming.SelectorContext.lookup(SelectorContext.java:183) at javax.naming.InitialContext.lookup(InitialContext.java:347) Thanks Hassan PREMIER HOUSEWARES Premier Business Park, 55 Jordanvale Avenue Whiteinch Glasgow G14 0QP UK
Re: 5.0.19 - working at last!
hey hey hey! I'm an idiot - always a nice way to introduce yourself to a list :)) I have a USB stick drive which I use to copy JAVA_HOME/lib/ext files around between machines and guess what? I'd only gone and copied an old catalina.jar to lib/ext, you know, the one without setAwait defined! All works now! thanks for listening to a moron! Alistair On 6 Apr 2004, at 10:56, Alistair Young wrote: OK, I think I'm getting somewhere: org.apache.catalina.startup.Bootstrap in /bin calls org.apache.catalina.startup.Catalina.setAwait(boolean) in /server/lib which inherits setAwait from org.apache.catalina.startup.Embedded I checked the jars and setAwait is defined in both Catalina.class and Embedded.class so why is the class loader failing to load those files correctly? catalina.out: java.lang.NoSuchMethodException: org.apache.catalina.startup.Catalina.setAwait(boolean) at java.lang.Class.getMethod(Class.java:978) at org.apache.catalina.startup.Bootstrap.setAwait(Bootstrap.java:337) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:396) I've looked for another catalina.jar in the CLASSPATH but there isn't one. Can anyone shed some light? thanks, Alistair On 6 Apr 2004, at 10:28, Alistair Young wrote: Thanks for that - I've never had problems with Tomcat before! It's seems to be something to do with Embedded - whatever that is. bootstrap.jar is using catalina.jar and trying to call setAwait - which doesn't exist. Can anyone say why setAwait is being called when it clearly doesn't exist in catalina.jar? Is there something in catalina.sh that's making Tomcat think it should run in Embedded mode - is embedded mode a bad thing? thanks, Alistair On 6 Apr 2004, at 10:01, Anand Ravi wrote: Hi! I'm using Tomcat 5.0.19 on Win 98,NT,XP and 2K. Seems to be working fine. Regards, Anand Ravi -Original Message- From: Alistair Young [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 06, 2004 1:57 PM To: Tomcat Users List Subject: 5.0.19 - won't start on anything other thatn *nix Hi folks, I've now tried Tomcat 5.0.19 on 3 different machines and 2 OSes: On Windows XP and MAC OS X 10.3.3, running bin/startup.bat/sh or bin/catalina.bat/sh start produces the error: java.lang.NoSuchMethodException: org.apache.catalina.startup.Catalina.setAwait(boolean) at java.lang.Class.getMethod(Class.java:978) at org.apache.catalina.startup.Bootstrap.setAwait(Bootstrap.java:337) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:396) JAVA_HOME and CATALINE_HOME are set OK. No errors are produced by catalina.bat regarding environment variables. I'm using JDK 1.4.2_03 Can anyone please help as Tomcat is now unusable outside *nix! cheers, Alistair - 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: 5.0.19 - won't start on anything other thatn *nix
Add the commons-launcher.jar commons-logging-api.jar Jars into the bootstrap classpath to get Tomcat5.0.19 started properly on Win systems. Regards, Carl -Original Message- From: Alistair Young [mailto:[EMAIL PROTECTED] Sent: 06 April 2004 11:57 AM To: Tomcat Users List Subject: Re: 5.0.19 - won't start on anything other thatn *nix OK, I think I'm getting somewhere: org.apache.catalina.startup.Bootstrap in /bin calls org.apache.catalina.startup.Catalina.setAwait(boolean) in /server/lib which inherits setAwait from org.apache.catalina.startup.Embedded I checked the jars and setAwait is defined in both Catalina.class and Embedded.class so why is the class loader failing to load those files correctly? catalina.out: java.lang.NoSuchMethodException: org.apache.catalina.startup.Catalina.setAwait(boolean) at java.lang.Class.getMethod(Class.java:978) at org.apache.catalina.startup.Bootstrap.setAwait(Bootstrap.java:337) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:396) I've looked for another catalina.jar in the CLASSPATH but there isn't one. Can anyone shed some light? thanks, Alistair On 6 Apr 2004, at 10:28, Alistair Young wrote: Thanks for that - I've never had problems with Tomcat before! It's seems to be something to do with Embedded - whatever that is. bootstrap.jar is using catalina.jar and trying to call setAwait - which doesn't exist. Can anyone say why setAwait is being called when it clearly doesn't exist in catalina.jar? Is there something in catalina.sh that's making Tomcat think it should run in Embedded mode - is embedded mode a bad thing? thanks, Alistair On 6 Apr 2004, at 10:01, Anand Ravi wrote: Hi! I'm using Tomcat 5.0.19 on Win 98,NT,XP and 2K. Seems to be working fine. Regards, Anand Ravi -Original Message- From: Alistair Young [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 06, 2004 1:57 PM To: Tomcat Users List Subject: 5.0.19 - won't start on anything other thatn *nix Hi folks, I've now tried Tomcat 5.0.19 on 3 different machines and 2 OSes: On Windows XP and MAC OS X 10.3.3, running bin/startup.bat/sh or bin/catalina.bat/sh start produces the error: java.lang.NoSuchMethodException: org.apache.catalina.startup.Catalina.setAwait(boolean) at java.lang.Class.getMethod(Class.java:978) at org.apache.catalina.startup.Bootstrap.setAwait(Bootstrap.java:337) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:396) JAVA_HOME and CATALINE_HOME are set OK. No errors are produced by catalina.bat regarding environment variables. I'm using JDK 1.4.2_03 Can anyone please help as Tomcat is now unusable outside *nix! cheers, Alistair - 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: Problem with UserTransaction reference within Servlet code.
The answer's in the question ;) Tomcat is not a J2EE Server but an implementation of the Servlet Specification (which is but a part of the whole J2EE spec). Tomcat's JNDI lookups are in-process only. Need an open source J2EE container? Have a look at JBoss... Hassan Sajjad wrote: Hi Can anyone help! Problem with UserTransaction reference within Servlet code. When you reference UserTransaction object in your Servlet Code, as from J2EE Specification: The J2EE Product Provider is responsible for providing an appropriate object as required There's a code snippet. Context initCtx = new InitialContext(); UserTransaction tx = (UserTransaction)initCtx.lookup(java:comp/UserTransaction); This works fine on J2EE Impementation Servers but fails on Tomcat 4.1.3. Exception: javax.naming.NameNotFoundException: Name javax.transaction.UserTransaction is not bound in this Context at org.apache.naming.NamingContext.lookup(NamingContext.java:811) at org.apache.naming.NamingContext.lookup(NamingContext.java:194) at org.apache.naming.SelectorContext.lookup(SelectorContext.java:183) at javax.naming.InitialContext.lookup(InitialContext.java:347) Thanks Hassan PREMIER HOUSEWARES Premier Business Park, 55 Jordanvale Avenue Whiteinch Glasgow G14 0QP UK - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with UserTransaction reference within Servlet code.
Jon Wingfield, thanks for your reply. My application is a Web Application (.war) only, no ejb's etc. However, since I'm using Composite View Pattern (aka Templating), I want different parts to be combined into One View, all in one transaction. This is done in a Servlet. Now if Tomcat doesn't provide a reference to an implementation of javax.transaction.UserTransaction, through JNDI lookup, then I believe there must be some other of doing this. e.g. Using a third party package that provides the implementation of javax.transaction api and plugging it in the application. Do you know of any? Remember, after all this is on the Web Tier, Tomcat tier, there must be a way of doing it! Thanks Hassan - Original Message - From: Jon Wingfield [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, April 06, 2004 11:25 AM Subject: Re: Problem with UserTransaction reference within Servlet code. The answer's in the question ;) Tomcat is not a J2EE Server but an implementation of the Servlet Specification (which is but a part of the whole J2EE spec). Tomcat's JNDI lookups are in-process only. Need an open source J2EE container? Have a look at JBoss... Hassan Sajjad wrote: Hi Can anyone help! Problem with UserTransaction reference within Servlet code. When you reference UserTransaction object in your Servlet Code, as from J2EE Specification: The J2EE Product Provider is responsible for providing an appropriate object as required There's a code snippet. Context initCtx = new InitialContext(); UserTransaction tx = (UserTransaction)initCtx.lookup(java:comp/UserTransaction); This works fine on J2EE Impementation Servers but fails on Tomcat 4.1.3. Exception: javax.naming.NameNotFoundException: Name javax.transaction.UserTransaction is not bound in this Context at org.apache.naming.NamingContext.lookup(NamingContext.java:811) at org.apache.naming.NamingContext.lookup(NamingContext.java:194) at org.apache.naming.SelectorContext.lookup(SelectorContext.java:183) at javax.naming.InitialContext.lookup(InitialContext.java:347) Thanks Hassan PREMIER HOUSEWARES Premier Business Park, 55 Jordanvale Avenue Whiteinch Glasgow G14 0QP UK - 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 embedding tomcat
but I thought that I need to embed tomcat 5.x using JMX. Is this true ? Since there are no non-JMX examples in tomcat 5.x, I thought JMX was the only answer. Any help you could provide me would be greatly appreciated. I am coming up on a deadline. I have 4.1.24 embedded working, but want to move into the 5.x series. thank you. ---Original Message--- From: Shapira, Yoav [EMAIL PROTECTED] Subject: RE: help with embedding tomcat Sent: 29 Mar 2004 13:59:50 Hi, Look at org.apache.catalina.Embedded#main for an example of how to embed tomcat. Yoav Shapira Millennium Research Informatics -Original Message- From: tomcatuser [mailto:[EMAIL PROTECTED] Sent: Saturday, March 27, 2004 11:49 AM To: [EMAIL PROTECTED] Subject: help with embedding tomcat I am trying to figure out how to embed tomcat into my application. If someone could help, I would appreciate it. My biggest question is, do I need to use the commons-modeler in order to get this all working? Or can I just use the JMX libraries ? thank you. This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ---Original Message---
Bothersome problem with IIS
Hi all I have installed IIS 5.0 on Win2K and binded Tomcat to it. I need NTLM auth for my application. When I try to reach for my app http://myserv/myapp everithing OK. I am using Win2K, IE 6.0 But when somebody who has WinXP try to reach http://myserv/myapp then either login window appears and asks Windows-Domain credentials or Page cannot be displayed shows. (On different winXP machines responses differ) Also following message appears in jk_iis.log [Tue Apr 06 11:03:13 2004] [jk_ajp_common.c (341)]: Error ajp_marshal_into_msgb - Error appending the header value [Tue Apr 06 11:03:13 2004] [jk_isapi_plugin.c (928)]: HttpExtensionProc error, service() failed I'm sorry if this question do not related Tomcat. I spend whole work day and havent found answer yet, I hope that somebody had already such puzzle. --- regards, Anatol Pomozov EPAM Systems phone: +375 (17) 210-1662 ext. 1373 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
jspx and html entities
hi all, i'm creating a jspx file from an xhtml template. the xhtml contains html entities such as igrave; Jasper is throwing this Exception: org.apache.jasper.JasperException: /index.jspx(23,38) The entity igrave was referenced, but not declared. org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:83) org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:402) org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:126) org.apache.jasper.compiler.JspDocumentParser.parse(JspDocumentParser.java:241) org.apache.jasper.compiler.ParserController.doParse(ParserController.java:235) org.apache.jasper.compiler.ParserController.parse(ParserController.java:139) org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:237) org.apache.jasper.compiler.Compiler.compile(Compiler.java:456) org.apache.jasper.compiler.Compiler.compile(Compiler.java:439) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:553) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:291) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) how can i solve this problem? thank you in advance, flavio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Starting and stopping connections in Tomcat 4.2
Hi all! I have an app that uses Tomcat to make connections to a Progress database. They have a web based tool to manage these connections, but I would like to be able to control these connections from the command line. Does Tomcat have utilities to manage these connections from the command line? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Creating Loggers at Deployment Time
I would like to pre-configure a web application to automatically create a logger with certain settings when the application is deployed to Tomcat 4.1.X. Is there a tomcat-specific configuration file that I can add to the WAR in order to accomplish this, or is editing the server.xml the only way to create a logger? If it is not possible to accomplish this task via a configuration file, could it be done using a startup servlet in the application? This class would have to use the Tomcat API directly in order to create a logger .. but it seems possible. Has anyone tried this before? Thanks in advance, Patrick M. Farrell Client Care Manager Client Server Web Development Quick Solutions, Inc. A four time INC 500 winner! [EMAIL PROTECTED] *** This message is intended only for the use of the intended recipient and may contain information that is PRIVILEGED and/or CONFIDENTIAL. If you are not the intended recipient, you are hereby notified that any use, dissemination, disclosure or copying of this communication is strictly prohibited. If you have received this communication in error, please destroy all copies of this message and its attachments and notify us immediately. *** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with UserTransaction reference within Servlet code.
There is always a way ;) Saw this the other day: http://www.theserverside.com/discussions/thread.tss?thread_id=24879 Googled for this for JTA integration with tomcat: http://www.onjava.com/pub/a/onjava/2003/07/30/jotm_transactions.html JNDI config for tomcat: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-resources-howto.html Have fun, Jon Hassan Sajjad wrote: Jon Wingfield, thanks for your reply. My application is a Web Application (.war) only, no ejb's etc. However, since I'm using Composite View Pattern (aka Templating), I want different parts to be combined into One View, all in one transaction. This is done in a Servlet. Now if Tomcat doesn't provide a reference to an implementation of javax.transaction.UserTransaction, through JNDI lookup, then I believe there must be some other of doing this. e.g. Using a third party package that provides the implementation of javax.transaction api and plugging it in the application. Do you know of any? Remember, after all this is on the Web Tier, Tomcat tier, there must be a way of doing it! Thanks Hassan - Original Message - From: Jon Wingfield [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, April 06, 2004 11:25 AM Subject: Re: Problem with UserTransaction reference within Servlet code. The answer's in the question ;) Tomcat is not a J2EE Server but an implementation of the Servlet Specification (which is but a part of the whole J2EE spec). Tomcat's JNDI lookups are in-process only. Need an open source J2EE container? Have a look at JBoss... Hassan Sajjad wrote: Hi Can anyone help! Problem with UserTransaction reference within Servlet code. When you reference UserTransaction object in your Servlet Code, as from J2EE Specification: The J2EE Product Provider is responsible for providing an appropriate object as required There's a code snippet. Context initCtx = new InitialContext(); UserTransaction tx = (UserTransaction)initCtx.lookup(java:comp/UserTransaction); This works fine on J2EE Impementation Servers but fails on Tomcat 4.1.3. Exception: javax.naming.NameNotFoundException: Name javax.transaction.UserTransaction is not bound in this Context at org.apache.naming.NamingContext.lookup(NamingContext.java:811) at org.apache.naming.NamingContext.lookup(NamingContext.java:194) at org.apache.naming.SelectorContext.lookup(SelectorContext.java:183) at javax.naming.InitialContext.lookup(InitialContext.java:347) Thanks Hassan PREMIER HOUSEWARES Premier Business Park, 55 Jordanvale Avenue Whiteinch Glasgow G14 0QP UK - 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: Problem with UserTransaction reference within Servlet code.
And of course: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-howto.html#Tyrex%20Connection%20Pool Although I'm not sure how actively maintained Tyrex is these days. http://sourceforge.net/projects/tyrex/ Jon Jon Wingfield wrote: There is always a way ;) Saw this the other day: http://www.theserverside.com/discussions/thread.tss?thread_id=24879 Googled for this for JTA integration with tomcat: http://www.onjava.com/pub/a/onjava/2003/07/30/jotm_transactions.html JNDI config for tomcat: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-resources-howto.html Have fun, Jon Hassan Sajjad wrote: Jon Wingfield, thanks for your reply. My application is a Web Application (.war) only, no ejb's etc. However, since I'm using Composite View Pattern (aka Templating), I want different parts to be combined into One View, all in one transaction. This is done in a Servlet. Now if Tomcat doesn't provide a reference to an implementation of javax.transaction.UserTransaction, through JNDI lookup, then I believe there must be some other of doing this. e.g. Using a third party package that provides the implementation of javax.transaction api and plugging it in the application. Do you know of any? Remember, after all this is on the Web Tier, Tomcat tier, there must be a way of doing it! Thanks Hassan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Issues in tomcat 5.0.19
Greetings all. Ok we are experiencing some very odd things within Tomcat 5.0.19. I believe that we may be trying to do much with Tomcat and Apache - but I will let you guys decide for yourself. Ok, the scenario is as follows: The Server (Dev): === PIII 733Mhz 20GB SCSI 512MB RAM Win2k Server Apache 2.0.46 Tomcat 5.0.19 J2SDK 1.4.2_01 mod_jk2.04 About the setup: (example conf entries at the end of the mail) === We have setup 1 AJP1.3 Connector (the tc5 Coyote Connector) to service the Apache -- Tomcat comms using the default channel socket on port 8009. In Apache we have 25 name based VirtualHosts set up - each using the JkUriSet directive to forward JSP and servlet requests to Tomcat. In Tomcat we have all 25 hosts set up using the Tomcat Host / blocks - each Host / has its own Context / pointing at the correct location on the drive for the site context ROOT. The AJP1.3 connector on 8009 is setup to run with the defaults except for maxPostSize, which we have set to 0 (unlimited). Each Apache VirtualHost sends the Tomcat related requests to Tomcat using the same worker (ajp13:localhost:8009) - is this a potential problem? All the sites are utilising a custom tag library (thaty we developed). There are a large number of tags in the library - some of which (for legacy) utilise TEI classes. In order to get around memory issues Tomcat is started with the following VM Settings: -Xms128m -Xmx256m -XX:+UseParallelGC Other configuration notables: We have disabled Tag Pooling on a global level. The problems: === We are two major problems: 1. First request to sites are causing problems with TEI classloading - even though the classes ARE in fact in the WEB-INF/classes location of the relevant web app. 2. Load - when we run load tests on the server we have major issues. The sites run REALLY slowly - our test is a custom written load tester that parses apache request logs for the exact test sites we have on the box (the live equivs) and duplicates the requests - except we can configure the number of concurrent requests to run the test on. The page responses are REALLY slow after a while and we also get IOExceptions occurring. Diagnosis === After a fair amount of investigation we have made the following tentative conclusions (however - the reason for this post to the list is to see what you all think of this): 1. The number of concurrent requests and the fact that pages and the request reponse times are getting slow cause a major bottleneck in Tomcat - which leads to the piling up of queued requests - until the acceptCount is reached - and the server becomes totally unresponsive. 2. GC - the JVM is not able to handle the GC of so many concurrent threads - which in turn leads to unresonsive threads/requests. 3. The classloading issue in tomcat for TEI classes - ??? Is this a known bug in 5.019? Conf and Error examples: === Apache httpd.conf - # AFFINITYCARES PUBLIC SITE VirtualHost 192.168.128.7 ServerAdmin [EMAIL PROTECTED] ServerName www.aff.com DocumentRoot C:\www\AffinityCares\ROOT Alias /userimages C:\www\AffinityCares\userimages CustomLog C:\pb\logs\AffinityCares\www.affinitycares.com_apache.log combined Location /*.jsp JkUriSet worker ajp13:localhost:8009 /Location Location /servlet/* JkUriSet worker ajp13:localhost:8009 /Location Location /SiteSchedulerServlet JkUriSet worker ajp13:localhost:8009 /Location Location /cacheservlet JkUriSet worker ajp13:localhost:8009 /Location Location /dataimport JkUriSet worker ajp13:localhost:8009 /Location Location /imagegen/* JkUriSet worker ajp13:localhost:8009 /Location Location /WEB-INF/* JkUriSet worker ajp13:localhost:8009 /Location Location /download/* JkUriSet worker ajp13:localhost:8009 /Location /VirtualHost The Tomcat server.xml conf example --- !-- AFFINITYCARES PUBLIC SITE HOST BLOCK -- Host name=www.aff.com deployOnStartup=false autoDeploy=false Context path= docBase=C:\www\AffinityCares\ROOT reloadable=true / /Host The exception stacktrace for the TEI classloading --- ApplicationDispatcher[] Servlet.service() for servlet jsp threw exception java.lang.ClassNotFoundException: com.platform_basic.util.taglib.PageControlTEI at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav a:1383) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav a:1230) at
Re: Problem with UserTransaction reference within Servlet code.
This looks very promising Jon. Thanks a lot mate. - Original Message - From: Jon Wingfield [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, April 06, 2004 12:58 PM Subject: Re: Problem with UserTransaction reference within Servlet code. And of course: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-howto.html#Tyrex%20Connection%20Pool Although I'm not sure how actively maintained Tyrex is these days. http://sourceforge.net/projects/tyrex/ Jon Jon Wingfield wrote: There is always a way ;) Saw this the other day: http://www.theserverside.com/discussions/thread.tss?thread_id=24879 Googled for this for JTA integration with tomcat: http://www.onjava.com/pub/a/onjava/2003/07/30/jotm_transactions.html JNDI config for tomcat: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-resources-howto.html Have fun, Jon Hassan Sajjad wrote: Jon Wingfield, thanks for your reply. My application is a Web Application (.war) only, no ejb's etc. However, since I'm using Composite View Pattern (aka Templating), I want different parts to be combined into One View, all in one transaction. This is done in a Servlet. Now if Tomcat doesn't provide a reference to an implementation of javax.transaction.UserTransaction, through JNDI lookup, then I believe there must be some other of doing this. e.g. Using a third party package that provides the implementation of javax.transaction api and plugging it in the application. Do you know of any? Remember, after all this is on the Web Tier, Tomcat tier, there must be a way of doing it! Thanks Hassan - 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: jspx and html entities
Flavio Tordini wrote: hi all, i'm creating a jspx file from an xhtml template. the xhtml contains html entities such as igrave; Hi, Flavio I've also experienced this problem. The solution is to use amp;igrave; in your XML-formatted JSP page. You may also find a very funny thing with ampersands in URL passed by a href=/a (@see chapter C.12, http://www.w3.org/TR/2002/REC-xhtml1-20020801). The only solution i've found is to flatten this tag: lt;a href=quotc:out value=${url} escapeXml=true/quot; gt;Alt;/agt; I hope someone will tell me a better way to solve this issue. -- , ( ) [EMAIL PROTECTED] Victor Anyakin (IT Spetialist) [EMAIL PROTECTED] OpenPGP Key ID: 0xC1F60269 Key Fingerprint: FD67 FE27 0618 9702 9A27 2171 0867 5AC7 C1F6 0269 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat Java OutOfMemory Error
Hi, I not sure about tomcat 3.2.1. In tomcat 4 I have used the JAVA_OPTS . I set JAVA_OPTS as my environmental variable and that was it. Hope this helps you shyam -Original Message- From: Baldacchini Marco [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 06, 2004 5:41 AM To: [EMAIL PROTECTED] Subject: Tomcat Java OutOfMemory Error Hi, I'm running Tomcat 3.2.1 on Windows 2000 Server as service with jk_nt_service.exe utility. I receive java.lang.OutOfMemory error in my JSP page. I need to increment memory for JVM to 512 MB by setting -Xms512m -Xmx512m. Where I do it? Thanks in advance. Marco - 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: Building jk2-2.0.4 on rh9 having some problems
Ahh, that's different than No such file. Are you trying to use the apr stuff in the jk2.properties? I haven't been able to get it to work on my Linux box, no matter what libs I include. When I finally do get it to take the libs and I don't get that particular error, I get a different one. I have to use channelSocket and not the apr or jni stuff. My handler list looks like this: handler.list=channelSocket,request Drew -Original Message- From: Randy Paries [mailto:[EMAIL PROTECTED] Sent: Monday, April 05, 2004 5:29 PM To: 'Tomcat Users List' Subject: RE: Building jk2-2.0.4 on rh9 having some problems Thanks for you help file /usr/lib/httpd/modules/mod_jk2.so /usr/lib/httpd/modules/mod_jk2.so: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), not stripped The load module is correct Still get Cannot load /etc/httpd/modules/mod_jk2.so into server: /etc/httpd/modules/mod_jk2.so: undefined symbol: apr_socket_send -Original Message- From: Hamilton, Andrew [mailto:[EMAIL PROTECTED] Sent: Monday, April 05, 2004 3:20 PM To: Tomcat Users List Subject: RE: Building jk2-2.0.4 on rh9 having some problems Ok. If you type file mod_jk2.so what does it tell you? It should say something like: mod_jk2.so: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), not stripped Next, Check your LoadModules statement carefully. Make sure it says what you think it says. It should say something like: LoadModule jk2_module modules/mod_jk2.so Drew -Original Message- From: Randy Paries [mailto:[EMAIL PROTECTED] Sent: Monday, April 05, 2004 4:12 PM To: 'Tomcat Users List' Subject: RE: Building jk2-2.0.4 on rh9 having some problems I have mod_perl and apache loads it fine. Thanks Rp -Original Message- From: Hamilton, Andrew [mailto:[EMAIL PROTECTED] Sent: Monday, April 05, 2004 11:26 AM To: Tomcat Users List Subject: RE: Building jk2-2.0.4 on rh9 having some problems Ok. Do you have any other modules in there and is apache loading them? -Original Message- From: Randy Paries [mailto:[EMAIL PROTECTED] Sent: Monday, April 05, 2004 12:25 PM To: 'Tomcat Users List' Subject: RE: Building jk2-2.0.4 on rh9 having some problems Yes mod_jk2.so exists Thanks for your help -Original Message- From: Hamilton, Andrew [mailto:[EMAIL PROTECTED] Sent: Monday, April 05, 2004 11:22 AM To: Tomcat Users List Subject: RE: Building jk2-2.0.4 on rh9 having some problems Should. I guess let's start at the beginning...Does the module exist in /etc/httpd/modules? -Original Message- From: Randy Paries [mailto:[EMAIL PROTECTED] Sent: Monday, April 05, 2004 11:58 AM To: 'Tomcat Users List' Subject: RE: Building jk2-2.0.4 on rh9 having some problems Actually ls -ls /etc/httpd/ total 12 0 lrwxrwxrwx1 root root 25 Mar 23 16:13 build - ../../usr/lib/httpd/build 4 drwxr-xr-x7 root root 4096 Apr 5 10:20 conf 4 drwxr-xr-x2 root root 4096 Apr 1 10:22 conf.d 4 drwxr-xr-x2 apache apache 4096 Mar 23 11:14 local 0 lrwxrwxrwx1 root root 19 Mar 22 08:36 logs - ../../var/log/httpd 0 lrwxrwxrwx1 root root 27 Mar 22 08:36 modules - ../../usr/lib/httpd/modules 0 lrwxrwxrwx1 root root 13 Mar 22 08:36 run - ../../var/run Apache should be able to traverse a SYM link shouldn't it? RP -Original Message- From: Hamilton, Andrew [mailto:[EMAIL PROTECTED] Sent: Monday, April 05, 2004 10:50 AM To: Tomcat Users List Subject: RE: Building jk2-2.0.4 on rh9 having some problems Your running into pathing problems. Your using /usr/lib/httpd/modules and /etc/httpd/modules. apache wants to use /etc/httpd/modules. Copy your mod_jk2.so there. Drew -Original Message- From: Randy Paries [mailto:[EMAIL PROTECTED] Sent: Monday, April 05, 2004 11:46 AM To: 'Tomcat Users List' Subject: Building jk2-2.0.4 on rh9 having some problems Hello I am building jk2-2.0.4 on rh9 and apache 2 I first configure ./configure --with-apxs2=/usr/sbin/apxs --with-java-home=${JAVA_HOME} --with-java-platform=2 --enable-jni Make (no errors) cd ../build/jk2/apache2 When I do this I ge the following error apxs -n jk2 -i mod_jk2.so /usr/lib/httpd/build/instdso.sh SH_LIBTOOL='/usr/lib/httpd/build/libtool' mod_jk2.so /usr/lib/httpd/modules /usr/lib/httpd/build/libtool --mode=install cp mod_jk2.so /usr/lib/httpd/modules/ cp mod_jk2.so /usr/lib/httpd/modules/mod_jk2.so mv: cannot move `/usr/lib/httpd/modules/' to a subdirectory of itself, `/usr/lib/httpd/modules/mod_jk2.so.so' chmod 755 /usr/lib/httpd/modules/mod_jk2.so chmod: failed to get attributes of `/usr/lib/httpd/modules/mod_jk2.so': No such file or directory apxs:Error: Command failed with rc=65536 So I manually do the command
Tomcat 5.X - Apache2.X - Mod-JK2
Hi., I'm getting lot of issues in this combination in windows. In did not find any document or forums discussion on that. 1.Can any one suggest me to change ot right vesrion or i can stick on with this one? 2.when i hit my application i'm getting this WARNING message..is this causing any probs...anyway application is working..but it is very slow. Tomcat Log:- Apr 5, 2004 6:14:02 PM org.apache.jk.common.HandlerRequest decodeRequest WARNING: Error registering request Thanks., MALAI
RE: Tomcat 5.X - Apache2.X - Mod-JK2
Hi. That is apprently when jk is trying to register the request with JMX. You can disable that (and hence stop the error message) by adding the following line at the end if your jk2.properties: request.registerRequests=false With regards problems and stability the most stable I have been able to get it is with: Apache 2.0.46 Tomcat 5.0.19 mod_jk2.03 - mod_jk2.04 J2SDK1.4.2_01 I would recommend that you compile mod_jk2 for your version of Apache (although I am not clear on how much of a difference this makes?) Regards, Carl -Original Message- From: armalai [mailto:[EMAIL PROTECTED] Sent: 06 April 2004 03:04 PM To: Tomcat Users List Subject: Tomcat 5.X - Apache2.X - Mod-JK2 Hi., I'm getting lot of issues in this combination in windows. In did not find any document or forums discussion on that. 1.Can any one suggest me to change ot right vesrion or i can stick on with this one? 2.when i hit my application i'm getting this WARNING message..is this causing any probs...anyway application is working..but it is very slow. Tomcat Log:- Apr 5, 2004 6:14:02 PM org.apache.jk.common.HandlerRequest decodeRequest WARNING: Error registering request Thanks., MALAI - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with UserTransaction reference within Servlet code.
Thanks Jon, the resource you mentioned at ONJava did the magic. It's excellent tutorial-type Article, for anyone interested in knowledge reading. It's http://www.onjava.com/pub/a/onjava/2003/07/30/jotm_transactions.html?page=1 Rgds Hassan - Original Message - From: Hassan Sajjad [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, April 06, 2004 1:17 PM Subject: Re: Problem with UserTransaction reference within Servlet code. This looks very promising Jon. Thanks a lot mate. - Original Message - From: Jon Wingfield [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, April 06, 2004 12:58 PM Subject: Re: Problem with UserTransaction reference within Servlet code. And of course: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-howto.html#Tyrex%20Connection%20Pool Although I'm not sure how actively maintained Tyrex is these days. http://sourceforge.net/projects/tyrex/ Jon Jon Wingfield wrote: There is always a way ;) Saw this the other day: http://www.theserverside.com/discussions/thread.tss?thread_id=24879 Googled for this for JTA integration with tomcat: http://www.onjava.com/pub/a/onjava/2003/07/30/jotm_transactions.html JNDI config for tomcat: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-resources-howto.html Have fun, Jon Hassan Sajjad wrote: Jon Wingfield, thanks for your reply. My application is a Web Application (.war) only, no ejb's etc. However, since I'm using Composite View Pattern (aka Templating), I want different parts to be combined into One View, all in one transaction. This is done in a Servlet. Now if Tomcat doesn't provide a reference to an implementation of javax.transaction.UserTransaction, through JNDI lookup, then I believe there must be some other of doing this. e.g. Using a third party package that provides the implementation of javax.transaction api and plugging it in the application. Do you know of any? Remember, after all this is on the Web Tier, Tomcat tier, there must be a way of doing it! Thanks Hassan - 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 Java OutOfMemory Error
I have already tried but it does not work (I have tried also TOMCAT_OPTS as environmental variable), remains set up to the default (64MB). Thanks shyam Scrive: Hi, I not sure about tomcat 3.2.1. In tomcat 4 I have used the JAVA_OPTS . I set JAVA_OPTS as my environmental variable and that was it. Hope this helps you shyam -Original Message- From: Baldacchini Marco [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 06, 2004 5:41 AM To: [EMAIL PROTECTED] Subject: Tomcat Java OutOfMemory Error Hi, I'm running Tomcat 3.2.1 on Windows 2000 Server as service with jk_nt_service.exe utility. I receive java.lang.OutOfMemory error in my JSP page. I need to increment memory for JVM to 512 MB by setting -Xms512m -Xmx512m. Where I do it? Thanks in advance. Marco - 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 Java OutOfMemory Error
JAVA_OPTS only works for standalone startup not as a service. Found this by googling. http://forum.java.sun.com/thread.jsp?thread=290568forum=33message=1211179 Solution is about six down and by user dfortae HTH, Jon shyam wrote: Hi, I not sure about tomcat 3.2.1. In tomcat 4 I have used the JAVA_OPTS . I set JAVA_OPTS as my environmental variable and that was it. Hope this helps you shyam -Original Message- From: Baldacchini Marco [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 06, 2004 5:41 AM To: [EMAIL PROTECTED] Subject: Tomcat Java OutOfMemory Error Hi, I'm running Tomcat 3.2.1 on Windows 2000 Server as service with jk_nt_service.exe utility. I receive java.lang.OutOfMemory error in my JSP page. I need to increment memory for JVM to 512 MB by setting -Xms512m -Xmx512m. Where I do it? Thanks in advance. Marco - 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 Java OutOfMemory Error
Hi. When using the jk_nt_service.exe you need to setup the wrapper.properties file. The very last line is where you set any additional VM parameters - use that. Thus you would change it from: wrapper.cmd_line=$(wrapper.javabin) -classpath $(wrapper.class_path) $(wrapper.startup_class) -config $(wrapper.server_xml) -home $(wrapper.tomcat_home) To: wrapper.cmd_line=$(wrapper.javabin) -Xms128m -Xmx512m -classpath $(wrapper.class_path) $(wrapper.startup_class) -config $(wrapper.server_xml) -home $(wrapper.tomcat_home) Hope that helps! Regards, Carl -Original Message- From: Baldacchini Marco [mailto:[EMAIL PROTECTED] Sent: 06 April 2004 03:13 PM To: Tomcat Users List Subject: Re: Tomcat Java OutOfMemory Error I have already tried but it does not work (I have tried also TOMCAT_OPTS as environmental variable), remains set up to the default (64MB). Thanks shyam Scrive: Hi, I not sure about tomcat 3.2.1. In tomcat 4 I have used the JAVA_OPTS . I set JAVA_OPTS as my environmental variable and that was it. Hope this helps you shyam -Original Message- From: Baldacchini Marco [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 06, 2004 5:41 AM To: [EMAIL PROTECTED] Subject: Tomcat Java OutOfMemory Error Hi, I'm running Tomcat 3.2.1 on Windows 2000 Server as service with jk_nt_service.exe utility. I receive java.lang.OutOfMemory error in my JSP page. I need to increment memory for JVM to 512 MB by setting -Xms512m -Xmx512m. Where I do it? Thanks in advance. Marco - 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 5.X - Apache2.X - Mod-JK2
Hi. Carl , Thanks for your reply..that works for me. I have another few error in my apache log file. Can you please look at this..and give me your suggestion.. [Tue Apr 06 09:11:17 2004] [error] mod_jk child init 1 0 [Tue Apr 06 09:11:17 2004] [notice] Child 2452: Acquired the start mutex. [Tue Apr 06 09:11:17 2004] [notice] Child 2452: Starting 250 worker threads. [Tue Apr 06 09:12:39 2004] [notice] shm.createSlot() Create 1 0x52 0x522000 [Tue Apr 06 09:12:39 2004] [notice] workerEnv.init() create slot epStat.0 [Tue Apr 06 09:12:39 2004] [error] lb.service() worker failed 12 for ajp13:jni [Tue Apr 06 09:12:39 2004] [error] lb.service() unrecoverable error... [Tue Apr 06 09:12:39 2004] [notice] vm.detach() ok [Tue Apr 06 09:12:39 2004] [error] mod_jk.handler() Error connecting to tomcat 12 [Tue Apr 06 09:12:43 2004] [error] channelSocket.open() connect failed localhost:8029 61 Unknown error [Tue Apr 06 09:12:43 2004] [error] channelSocket.open() connect failed localhost:8019 61 Unknown error [Tue Apr 06 09:12:43 2004] [error] ajp13.connect() failed ajp13:localhost:8029 [Tue Apr 06 09:12:43 2004] [error] ajp13.connect() failed ajp13:localhost:8019 Thanks., MALAI - Original Message - From: Carl Olivier [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Tuesday, April 06, 2004 9:06 AM Subject: RE: Tomcat 5.X - Apache2.X - Mod-JK2 Hi. That is apprently when jk is trying to register the request with JMX. You can disable that (and hence stop the error message) by adding the following line at the end if your jk2.properties: request.registerRequests=false With regards problems and stability the most stable I have been able to get it is with: Apache 2.0.46 Tomcat 5.0.19 mod_jk2.03 - mod_jk2.04 J2SDK1.4.2_01 I would recommend that you compile mod_jk2 for your version of Apache (although I am not clear on how much of a difference this makes?) Regards, Carl -Original Message- From: armalai [mailto:[EMAIL PROTECTED] Sent: 06 April 2004 03:04 PM To: Tomcat Users List Subject: Tomcat 5.X - Apache2.X - Mod-JK2 Hi., I'm getting lot of issues in this combination in windows. In did not find any document or forums discussion on that. 1.Can any one suggest me to change ot right vesrion or i can stick on with this one? 2.when i hit my application i'm getting this WARNING message..is this causing any probs...anyway application is working..but it is very slow. Tomcat Log:- Apr 5, 2004 6:14:02 PM org.apache.jk.common.HandlerRequest decodeRequest WARNING: Error registering request Thanks., MALAI - 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: Building jk2-2.0.4 on rh9 having some problems
Finally got it to work The only way I finally got it to work configured at per doc on the web site Was to get the latest apache2 and build from scratch(no rpms) Then build t he connector. Now all works fine (so far) Thanks for all the suggestions. -Original Message- From: Hamilton, Andrew [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 06, 2004 8:02 AM To: Tomcat Users List Subject: RE: Building jk2-2.0.4 on rh9 having some problems Ahh, that's different than No such file. Are you trying to use the apr stuff in the jk2.properties? I haven't been able to get it to work on my Linux box, no matter what libs I include. When I finally do get it to take the libs and I don't get that particular error, I get a different one. I have to use channelSocket and not the apr or jni stuff. My handler list looks like this: handler.list=channelSocket,request Drew -Original Message- From: Randy Paries [mailto:[EMAIL PROTECTED] Sent: Monday, April 05, 2004 5:29 PM To: 'Tomcat Users List' Subject: RE: Building jk2-2.0.4 on rh9 having some problems Thanks for you help file /usr/lib/httpd/modules/mod_jk2.so /usr/lib/httpd/modules/mod_jk2.so: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), not stripped The load module is correct Still get Cannot load /etc/httpd/modules/mod_jk2.so into server: /etc/httpd/modules/mod_jk2.so: undefined symbol: apr_socket_send -Original Message- From: Hamilton, Andrew [mailto:[EMAIL PROTECTED] Sent: Monday, April 05, 2004 3:20 PM To: Tomcat Users List Subject: RE: Building jk2-2.0.4 on rh9 having some problems Ok. If you type file mod_jk2.so what does it tell you? It should say something like: mod_jk2.so: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), not stripped Next, Check your LoadModules statement carefully. Make sure it says what you think it says. It should say something like: LoadModule jk2_module modules/mod_jk2.so Drew -Original Message- From: Randy Paries [mailto:[EMAIL PROTECTED] Sent: Monday, April 05, 2004 4:12 PM To: 'Tomcat Users List' Subject: RE: Building jk2-2.0.4 on rh9 having some problems I have mod_perl and apache loads it fine. Thanks Rp -Original Message- From: Hamilton, Andrew [mailto:[EMAIL PROTECTED] Sent: Monday, April 05, 2004 11:26 AM To: Tomcat Users List Subject: RE: Building jk2-2.0.4 on rh9 having some problems Ok. Do you have any other modules in there and is apache loading them? -Original Message- From: Randy Paries [mailto:[EMAIL PROTECTED] Sent: Monday, April 05, 2004 12:25 PM To: 'Tomcat Users List' Subject: RE: Building jk2-2.0.4 on rh9 having some problems Yes mod_jk2.so exists Thanks for your help -Original Message- From: Hamilton, Andrew [mailto:[EMAIL PROTECTED] Sent: Monday, April 05, 2004 11:22 AM To: Tomcat Users List Subject: RE: Building jk2-2.0.4 on rh9 having some problems Should. I guess let's start at the beginning...Does the module exist in /etc/httpd/modules? -Original Message- From: Randy Paries [mailto:[EMAIL PROTECTED] Sent: Monday, April 05, 2004 11:58 AM To: 'Tomcat Users List' Subject: RE: Building jk2-2.0.4 on rh9 having some problems Actually ls -ls /etc/httpd/ total 12 0 lrwxrwxrwx1 root root 25 Mar 23 16:13 build - ../../usr/lib/httpd/build 4 drwxr-xr-x7 root root 4096 Apr 5 10:20 conf 4 drwxr-xr-x2 root root 4096 Apr 1 10:22 conf.d 4 drwxr-xr-x2 apache apache 4096 Mar 23 11:14 local 0 lrwxrwxrwx1 root root 19 Mar 22 08:36 logs - ../../var/log/httpd 0 lrwxrwxrwx1 root root 27 Mar 22 08:36 modules - ../../usr/lib/httpd/modules 0 lrwxrwxrwx1 root root 13 Mar 22 08:36 run - ../../var/run Apache should be able to traverse a SYM link shouldn't it? RP -Original Message- From: Hamilton, Andrew [mailto:[EMAIL PROTECTED] Sent: Monday, April 05, 2004 10:50 AM To: Tomcat Users List Subject: RE: Building jk2-2.0.4 on rh9 having some problems Your running into pathing problems. Your using /usr/lib/httpd/modules and /etc/httpd/modules. apache wants to use /etc/httpd/modules. Copy your mod_jk2.so there. Drew -Original Message- From: Randy Paries [mailto:[EMAIL PROTECTED] Sent: Monday, April 05, 2004 11:46 AM To: 'Tomcat Users List' Subject: Building jk2-2.0.4 on rh9 having some problems Hello I am building jk2-2.0.4 on rh9 and apache 2 I first configure ./configure --with-apxs2=/usr/sbin/apxs --with-java-home=${JAVA_HOME} --with-java-platform=2 --enable-jni Make (no errors) cd ../build/jk2/apache2 When I do this I ge the following error apxs -n jk2 -i mod_jk2.so /usr/lib/httpd/build/instdso.sh SH_LIBTOOL='/usr/lib/httpd/build/libtool' mod_jk2.so /usr/lib/httpd/modules /usr/lib/httpd/build/libtool --mode=install cp mod_jk2.so /usr/lib/httpd/modules/ cp
RE: Building jk2-2.0.4 on rh9 having some problems
Yep. That's what I did too. But I never rely on the RPMs for apache. It is never compiled the way I want it or where I want. Glad to hear you got it working... Drew -Original Message- From: Randy Paries [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 06, 2004 9:20 AM To: 'Tomcat Users List' Subject: RE: Building jk2-2.0.4 on rh9 having some problems Finally got it to work The only way I finally got it to work configured at per doc on the web site Was to get the latest apache2 and build from scratch(no rpms) Then build t he connector. Now all works fine (so far) Thanks for all the suggestions. -Original Message- From: Hamilton, Andrew [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 06, 2004 8:02 AM To: Tomcat Users List Subject: RE: Building jk2-2.0.4 on rh9 having some problems Ahh, that's different than No such file. Are you trying to use the apr stuff in the jk2.properties? I haven't been able to get it to work on my Linux box, no matter what libs I include. When I finally do get it to take the libs and I don't get that particular error, I get a different one. I have to use channelSocket and not the apr or jni stuff. My handler list looks like this: handler.list=channelSocket,request Drew -Original Message- From: Randy Paries [mailto:[EMAIL PROTECTED] Sent: Monday, April 05, 2004 5:29 PM To: 'Tomcat Users List' Subject: RE: Building jk2-2.0.4 on rh9 having some problems Thanks for you help file /usr/lib/httpd/modules/mod_jk2.so /usr/lib/httpd/modules/mod_jk2.so: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), not stripped The load module is correct Still get Cannot load /etc/httpd/modules/mod_jk2.so into server: /etc/httpd/modules/mod_jk2.so: undefined symbol: apr_socket_send -Original Message- From: Hamilton, Andrew [mailto:[EMAIL PROTECTED] Sent: Monday, April 05, 2004 3:20 PM To: Tomcat Users List Subject: RE: Building jk2-2.0.4 on rh9 having some problems Ok. If you type file mod_jk2.so what does it tell you? It should say something like: mod_jk2.so: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), not stripped Next, Check your LoadModules statement carefully. Make sure it says what you think it says. It should say something like: LoadModule jk2_module modules/mod_jk2.so Drew -Original Message- From: Randy Paries [mailto:[EMAIL PROTECTED] Sent: Monday, April 05, 2004 4:12 PM To: 'Tomcat Users List' Subject: RE: Building jk2-2.0.4 on rh9 having some problems I have mod_perl and apache loads it fine. Thanks Rp -Original Message- From: Hamilton, Andrew [mailto:[EMAIL PROTECTED] Sent: Monday, April 05, 2004 11:26 AM To: Tomcat Users List Subject: RE: Building jk2-2.0.4 on rh9 having some problems Ok. Do you have any other modules in there and is apache loading them? -Original Message- From: Randy Paries [mailto:[EMAIL PROTECTED] Sent: Monday, April 05, 2004 12:25 PM To: 'Tomcat Users List' Subject: RE: Building jk2-2.0.4 on rh9 having some problems Yes mod_jk2.so exists Thanks for your help -Original Message- From: Hamilton, Andrew [mailto:[EMAIL PROTECTED] Sent: Monday, April 05, 2004 11:22 AM To: Tomcat Users List Subject: RE: Building jk2-2.0.4 on rh9 having some problems Should. I guess let's start at the beginning...Does the module exist in /etc/httpd/modules? -Original Message- From: Randy Paries [mailto:[EMAIL PROTECTED] Sent: Monday, April 05, 2004 11:58 AM To: 'Tomcat Users List' Subject: RE: Building jk2-2.0.4 on rh9 having some problems Actually ls -ls /etc/httpd/ total 12 0 lrwxrwxrwx1 root root 25 Mar 23 16:13 build - ../../usr/lib/httpd/build 4 drwxr-xr-x7 root root 4096 Apr 5 10:20 conf 4 drwxr-xr-x2 root root 4096 Apr 1 10:22 conf.d 4 drwxr-xr-x2 apache apache 4096 Mar 23 11:14 local 0 lrwxrwxrwx1 root root 19 Mar 22 08:36 logs - ../../var/log/httpd 0 lrwxrwxrwx1 root root 27 Mar 22 08:36 modules - ../../usr/lib/httpd/modules 0 lrwxrwxrwx1 root root 13 Mar 22 08:36 run - ../../var/run Apache should be able to traverse a SYM link shouldn't it? RP -Original Message- From: Hamilton, Andrew [mailto:[EMAIL PROTECTED] Sent: Monday, April 05, 2004 10:50 AM To: Tomcat Users List Subject: RE: Building jk2-2.0.4 on rh9 having some problems Your running into pathing problems. Your using /usr/lib/httpd/modules and /etc/httpd/modules. apache wants to use /etc/httpd/modules. Copy your mod_jk2.so there. Drew -Original Message- From: Randy Paries [mailto:[EMAIL PROTECTED] Sent: Monday, April 05, 2004 11:46 AM To: 'Tomcat Users List' Subject: Building jk2-2.0.4 on rh9 having some problems Hello I am building jk2-2.0.4 on rh9 and apache 2 I first configure ./configure --with-apxs2=/usr/sbin/apxs --with-java-home=${JAVA_HOME} --with-java-platform=2 --enable-jni Make (no errors) cd
Re: Problem with UserTransaction reference within Servlet code.
Hi, True, it's nicely written but it suggests things that JOTM has never been able to do. In particular, JOTM is not a fully functional transaction manager and will not recover your databases after restart or crash - meaning that the claim that it makes your application robust is to be taken with at least a few grains of salt (especially if you value data integrity)... Of course, one will probably say that I'm biased in what I value to be important in a JTA ;-) Best regards, Guy On dinsdag, apr 6, 2004, at 15:10 Europe/Brussels, Hassan Sajjad wrote: Thanks Jon, the resource you mentioned at ONJava did the magic. It's excellent tutorial-type Article, for anyone interested in knowledge reading. It's http://www.onjava.com/pub/a/onjava/2003/07/30/ jotm_transactions.html?page=1 Rgds Hassan - Original Message - From: Hassan Sajjad [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, April 06, 2004 1:17 PM Subject: Re: Problem with UserTransaction reference within Servlet code. This looks very promising Jon. Thanks a lot mate. - Original Message - From: Jon Wingfield [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, April 06, 2004 12:58 PM Subject: Re: Problem with UserTransaction reference within Servlet code. And of course: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource- examples-howto.html#Tyrex%20Connection%20Pool Although I'm not sure how actively maintained Tyrex is these days. http://sourceforge.net/projects/tyrex/ Jon Jon Wingfield wrote: There is always a way ;) Saw this the other day: http://www.theserverside.com/discussions/thread.tss?thread_id=24879 Googled for this for JTA integration with tomcat: http://www.onjava.com/pub/a/onjava/2003/07/30/jotm_transactions.html JNDI config for tomcat: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-resources- howto.html Have fun, Jon Hassan Sajjad wrote: Jon Wingfield, thanks for your reply. My application is a Web Application (.war) only, no ejb's etc. However, since I'm using Composite View Pattern (aka Templating), I want different parts to be combined into One View, all in one transaction. This is done in a Servlet. Now if Tomcat doesn't provide a reference to an implementation of javax.transaction.UserTransaction, through JNDI lookup, then I believe there must be some other of doing this. e.g. Using a third party package that provides the implementation of javax.transaction api and plugging it in the application. Do you know of any? Remember, after all this is on the Web Tier, Tomcat tier, there must be a way of doing it! Thanks Hassan - 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] Dr. Guy Pardon ( [EMAIL PROTECTED] ) Atomikos: Your Partner for Reliable eBusiness Coordination http://www.atomikos.com/ The information in this email is confidential and only meant for the addressee(s). The content of this email is informal and will not be legally binding for Atomikos.
RE: Starting and stopping connections in Tomcat 4.2
Hi Subject: Starting and stopping connections in Tomcat 4.2 Cool, where did you get this one? Regards, Steffen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: cannot get servlet mapping working under 3.3
You might try adding the JservConfig ... element to your server.xml, documented here: http://jakarta.apache.org/tomcat/tomcat-3.3-doc/serverxml.html#JservConfig You will likely need a current version of the mod_jserv connector. The Windows binary can be found here: http://archive.apache.org/dist/jakarta/tomcat-3/bin/win32/i386/ For a different OS, you will have to build it. The bulk of the information for mod_jserv may be found here: http://jakarta.apache.org/tomcat/tomcat-3.3-doc/tomcat-apache-howto.html It has been a long time since I did much with mod_jserv, and then, only on Windows. HTH. Cheers, Larry -Original Message- From: Christoph P. Kukulies [mailto:[EMAIL PROTECTED] Sent: Monday, April 05, 2004 11:19 AM To: Tomcat Users List Subject: Re: cannot get servlet mapping working under 3.3 On Mon, Apr 05, 2004 at 11:41:56AM +0200, Christoph P. Kukulies wrote: Investigating further I come to the conclusion that my problem may be related to the invoker servlet. Doesn't tomcat 3.3 have a central web.xml any longer? Sorry, I know that talking about tomcat 5.x is more interesting than talking about yesterdays. :-) Chris Christoph P. U. Kukulies kuku_at_physik.rwth-aachen.de Could it be that I need mod_jserv.so from the tomcat native directory? How does one build that? Chris Christoph P. U. Kukulies kuku_at_physik.rwth-aachen.de - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with UserTransaction reference within Servlet code.
Thanks Hassan, It's always good to receive useful feedback. Maybe we should also publish a light-weight release that doesn't do recovery... Kind of like a 50% JTA. (Actually, that doesn't sound too bad;-) Thanks, Best, Guy On dinsdag, apr 6, 2004, at 15:50 Europe/Brussels, Hassan Sajjad wrote: Guy, I've seen the alternative product at http://www.atomikos.com/download.html, it seems good, however in my instance I only require transaction support to make a composite view from more than one JSP pages (Templating), and I want this to be done in a transaction. Due to this reason I'm not concerned if JOTM does not support database crash etc. Cheers Hassan - Original Message - From: Guy Pardon [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, April 06, 2004 2:26 PM Subject: Re: Problem with UserTransaction reference within Servlet code. Hi, True, it's nicely written but it suggests things that JOTM has never been able to do. In particular, JOTM is not a fully functional transaction manager and will not recover your databases after restart or crash - meaning that the claim that it makes your application robust is to be taken with at least a few grains of salt (especially if you value data integrity)... Of course, one will probably say that I'm biased in what I value to be important in a JTA ;-) Best regards, Guy On dinsdag, apr 6, 2004, at 15:10 Europe/Brussels, Hassan Sajjad wrote: Thanks Jon, the resource you mentioned at ONJava did the magic. It's excellent tutorial-type Article, for anyone interested in knowledge reading. It's http://www.onjava.com/pub/a/onjava/2003/07/30/ jotm_transactions.html?page=1 Rgds Hassan - Original Message - From: Hassan Sajjad [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, April 06, 2004 1:17 PM Subject: Re: Problem with UserTransaction reference within Servlet code. This looks very promising Jon. Thanks a lot mate. - Original Message - From: Jon Wingfield [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, April 06, 2004 12:58 PM Subject: Re: Problem with UserTransaction reference within Servlet code. And of course: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource- examples-howto.html#Tyrex%20Connection%20Pool Although I'm not sure how actively maintained Tyrex is these days. http://sourceforge.net/projects/tyrex/ Jon Jon Wingfield wrote: There is always a way ;) Saw this the other day: http://www.theserverside.com/discussions/ thread.tss?thread_id=24879 Googled for this for JTA integration with tomcat: http://www.onjava.com/pub/a/onjava/2003/07/30/ jotm_transactions.html JNDI config for tomcat: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-resources- howto.html Have fun, Jon Hassan Sajjad wrote: Jon Wingfield, thanks for your reply. My application is a Web Application (.war) only, no ejb's etc. However, since I'm using Composite View Pattern (aka Templating), I want different parts to be combined into One View, all in one transaction. This is done in a Servlet. Now if Tomcat doesn't provide a reference to an implementation of javax.transaction.UserTransaction, through JNDI lookup, then I believe there must be some other of doing this. e.g. Using a third party package that provides the implementation of javax.transaction api and plugging it in the application. Do you know of any? Remember, after all this is on the Web Tier, Tomcat tier, there must be a way of doing it! Thanks Hassan --- -- 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] Dr. Guy Pardon ( [EMAIL PROTECTED] ) Atomikos: Your Partner for Reliable eBusiness Coordination http://www.atomikos.com/ The information in this email is confidential and only meant for the addressee(s). The content of this email is informal and will not be legally binding for Atomikos. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Dr. Guy Pardon ( [EMAIL PROTECTED] ) Atomikos: Your Partner for Reliable eBusiness Coordination http://www.atomikos.com/ The information in this email is confidential and only meant for the addressee(s). The content of this email is informal and will not be legally binding for Atomikos.
Re: Tomcat Java OutOfMemory Error
Done. Thanks a lot!!! Marco Carl Olivier Scrive: Hi. When using the jk_nt_service.exe you need to setup the wrapper.properties file. The very last line is where you set any additional VM parameters - use that. Thus you would change it from: wrapper.cmd_line=$(wrapper.javabin) -classpath $(wrapper.class_path) $(wrapper.startup_class) -config $(wrapper.server_xml) -home $(wrapper.tomcat_home) To: wrapper.cmd_line=$(wrapper.javabin) -Xms128m -Xmx512m -classpath $(wrapper.class_path) $(wrapper.startup_class) -config $(wrapper.server_xml) -home $(wrapper.tomcat_home) Hope that helps! Regards, Carl -Original Message- From: Baldacchini Marco [mailto:[EMAIL PROTECTED] Sent: 06 April 2004 03:13 PM To: Tomcat Users List Subject: Re: Tomcat Java OutOfMemory Error I have already tried but it does not work (I have tried also TOMCAT_OPTS as environmental variable), remains set up to the default (64MB). Thanks shyam Scrive: Hi, I not sure about tomcat 3.2.1. In tomcat 4 I have used the JAVA_OPTS . I set JAVA_OPTS as my environmental variable and that was it. Hope this helps you shyam -Original Message- From: Baldacchini Marco [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 06, 2004 5:41 AM To: [EMAIL PROTECTED] Subject: Tomcat Java OutOfMemory Error Hi, I'm running Tomcat 3.2.1 on Windows 2000 Server as service with jk_nt_service.exe utility. I receive java.lang.OutOfMemory error in my JSP page. I need to increment memory for JVM to 512 MB by setting -Xms512m -Xmx512m. Where I do it? Thanks in advance. Marco - 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: 5.0.19 - working at last!
Hi, Not a problem, our pleasure ;) Yoav Shapira Millennium Research Informatics -Original Message- From: Alistair Young [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 06, 2004 6:05 AM To: Tomcat Users List Subject: Re: 5.0.19 - working at last! hey hey hey! I'm an idiot - always a nice way to introduce yourself to a list :)) I have a USB stick drive which I use to copy JAVA_HOME/lib/ext files around between machines and guess what? I'd only gone and copied an old catalina.jar to lib/ext, you know, the one without setAwait defined! All works now! thanks for listening to a moron! Alistair On 6 Apr 2004, at 10:56, Alistair Young wrote: OK, I think I'm getting somewhere: org.apache.catalina.startup.Bootstrap in /bin calls org.apache.catalina.startup.Catalina.setAwait(boolean) in /server/lib which inherits setAwait from org.apache.catalina.startup.Embedded I checked the jars and setAwait is defined in both Catalina.class and Embedded.class so why is the class loader failing to load those files correctly? catalina.out: java.lang.NoSuchMethodException: org.apache.catalina.startup.Catalina.setAwait(boolean) at java.lang.Class.getMethod(Class.java:978) at org.apache.catalina.startup.Bootstrap.setAwait(Bootstrap.java:337) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:396) I've looked for another catalina.jar in the CLASSPATH but there isn't one. Can anyone shed some light? thanks, Alistair On 6 Apr 2004, at 10:28, Alistair Young wrote: Thanks for that - I've never had problems with Tomcat before! It's seems to be something to do with Embedded - whatever that is. bootstrap.jar is using catalina.jar and trying to call setAwait - which doesn't exist. Can anyone say why setAwait is being called when it clearly doesn't exist in catalina.jar? Is there something in catalina.sh that's making Tomcat think it should run in Embedded mode - is embedded mode a bad thing? thanks, Alistair On 6 Apr 2004, at 10:01, Anand Ravi wrote: Hi! I'm using Tomcat 5.0.19 on Win 98,NT,XP and 2K. Seems to be working fine. Regards, Anand Ravi -Original Message- From: Alistair Young [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 06, 2004 1:57 PM To: Tomcat Users List Subject: 5.0.19 - won't start on anything other thatn *nix Hi folks, I've now tried Tomcat 5.0.19 on 3 different machines and 2 OSes: On Windows XP and MAC OS X 10.3.3, running bin/startup.bat/sh or bin/catalina.bat/sh start produces the error: java.lang.NoSuchMethodException: org.apache.catalina.startup.Catalina.setAwait(boolean) at java.lang.Class.getMethod(Class.java:978) at org.apache.catalina.startup.Bootstrap.setAwait(Bootstrap.java:337) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:396) JAVA_HOME and CATALINE_HOME are set OK. No errors are produced by catalina.bat regarding environment variables. I'm using JDK 1.4.2_03 Can anyone please help as Tomcat is now unusable outside *nix! cheers, Alistair - 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] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5.X - Apache2.X - Mod-JK2
Hi Malai, I just got this configuration working for me. I still get the following 3 errors in my mod_jk2.log file. Do you get these errors? As per the errors you are getting, I understand you are trying multiple instances of tomcat. If that is the case, why don't you try with on instance and test. [Tue Apr 06 10:26:07 2004] (error ) [jk_workerEnv.c (211)] workerEnv.initChannel() init failed for channel.jni:jni [Tue Apr 06 10:26:07 2004] ( info ) [jk_worker_jni.c (204)] workerJni.Init() Skipping initialization for the 460 460 [Tue Apr 06 10:26:07 2004] (error ) [jk_workerEnv.c (178)] workerEnv.initWorkers() init failed for worker.jni:onStartup [Tue Apr 06 10:26:07 2004] ( info ) [jk_worker_jni.c (204)] workerJni.Init() Skipping initialization for the 460 460 [Tue Apr 06 10:26:07 2004] (error ) [jk_workerEnv.c (178)] workerEnv.initWorkers() init failed for worker.jni:onShutdown -Sreeni -Original Message- From: armalai [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 06, 2004 9:20 AM To: Tomcat Users List Subject: Re: Tomcat 5.X - Apache2.X - Mod-JK2 Hi. Carl , Thanks for your reply..that works for me. I have another few error in my apache log file. Can you please look at this..and give me your suggestion.. [Tue Apr 06 09:11:17 2004] [error] mod_jk child init 1 0 [Tue Apr 06 09:11:17 2004] [notice] Child 2452: Acquired the start mutex. [Tue Apr 06 09:11:17 2004] [notice] Child 2452: Starting 250 worker threads. [Tue Apr 06 09:12:39 2004] [notice] shm.createSlot() Create 1 0x52 0x522000 [Tue Apr 06 09:12:39 2004] [notice] workerEnv.init() create slot epStat.0 [Tue Apr 06 09:12:39 2004] [error] lb.service() worker failed 12 for ajp13:jni [Tue Apr 06 09:12:39 2004] [error] lb.service() unrecoverable error... [Tue Apr 06 09:12:39 2004] [notice] vm.detach() ok [Tue Apr 06 09:12:39 2004] [error] mod_jk.handler() Error connecting to tomcat 12 [Tue Apr 06 09:12:43 2004] [error] channelSocket.open() connect failed localhost:8029 61 Unknown error [Tue Apr 06 09:12:43 2004] [error] channelSocket.open() connect failed localhost:8019 61 Unknown error [Tue Apr 06 09:12:43 2004] [error] ajp13.connect() failed ajp13:localhost:8029 [Tue Apr 06 09:12:43 2004] [error] ajp13.connect() failed ajp13:localhost:8019 Thanks., MALAI - Original Message - From: Carl Olivier [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Tuesday, April 06, 2004 9:06 AM Subject: RE: Tomcat 5.X - Apache2.X - Mod-JK2 Hi. That is apprently when jk is trying to register the request with JMX. You can disable that (and hence stop the error message) by adding the following line at the end if your jk2.properties: request.registerRequests=false With regards problems and stability the most stable I have been able to get it is with: Apache 2.0.46 Tomcat 5.0.19 mod_jk2.03 - mod_jk2.04 J2SDK1.4.2_01 I would recommend that you compile mod_jk2 for your version of Apache (although I am not clear on how much of a difference this makes?) Regards, Carl -Original Message- From: armalai [mailto:[EMAIL PROTECTED] Sent: 06 April 2004 03:04 PM To: Tomcat Users List Subject: Tomcat 5.X - Apache2.X - Mod-JK2 Hi., I'm getting lot of issues in this combination in windows. In did not find any document or forums discussion on that. 1.Can any one suggest me to change ot right vesrion or i can stick on with this one? 2.when i hit my application i'm getting this WARNING message..is this causing any probs...anyway application is working..but it is very slow. Tomcat Log:- Apr 5, 2004 6:14:02 PM org.apache.jk.common.HandlerRequest decodeRequest WARNING: Error registering request Thanks., MALAI - 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 embedding tomcat
Hi, but I thought that I need to embed tomcat 5.x using JMX. Is this true ? You can, but you don't have to. Since there are no non-JMX examples in tomcat 5.x, I thought JMX was the It's trivial to come with one: Embedded e = new Embedded(); // call createXXX and addXXX methods e.start(); Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Issues in tomcat 5.0.19
Hi, That was a nice, detailed message and explanation. In Tomcat we have all 25 hosts set up using the Tomcat Host / blocks - each Host / has its own Context / pointing at the correct location on the drive for the site context ROOT. 25 hosts/contexts for tomcat shouldn't be a problem. Each Apache VirtualHost sends the Tomcat related requests to Tomcat using the same worker (ajp13:localhost:8009) - is this a potential problem? Yes, though I don't know enough to say for sure. Have you tried using multiple workers and rerunning your stress test? In order to get around memory issues Tomcat is started with the following VM Settings: -Xms128m -Xmx256m -XX:+UseParallelGC Does performance change if you allocate more memory to the heap, i.e. are you memory-bound, cpu-bound, i/o-bound, or a combination thereof? 1. First request to sites are causing problems with TEI classloading - even though the classes ARE in fact in the WEB-INF/classes location of the relevant web app. This I'm completely unfamiliar with. Does it happen with tomcat standalone? If so, can you create a small WAR that will allow us to reproduce the problem? 2. Load - when we run load tests on the server we have major issues. The sites run REALLY slowly - our test is a custom written load tester that parses apache request logs for the exact test sites we have on the box (the live equivs) and duplicates the requests - except we can configure the number of concurrent requests to run the test on. The page responses are REALLY slow after a while and we also get IOExceptions occurring. A couple of notes: JMeter's last release has something that will parse web server access logs to create comparable load in a stress test plan for you to run, so you might be able to ditch your custom tester. (Which is good, because no one can reproduce results obtained with your custom tester). Are you saying the requests are first run fast, and then slow, when they should all be taking the same time? 1. The number of concurrent requests and the fact that pages and the request reponse times are getting slow cause a major bottleneck in Tomcat - which leads to the piling up of queued requests - until the acceptCount is reached - and the server becomes totally unresponsive. Are the requests slow because your tags take a while (you mentioned they were big tags, which I assume means they do a lot of work)? Or are they slow because tomcat is churning? I'm not sure of the causality in your statement above. What happens if you raise maxProccesors/maxThreads as well as the acceptCount? 2. GC - the JVM is not able to handle the GC of so many concurrent threads - which in turn leads to unresonsive threads/requests. I highly doubt that. How many threads are we talking about? We have apps that have hundreds of threads in the JVM and gigabytes in the heap, and GC doesn't even cause a discernible pause. Granted, we have big hardware. 3. The classloading issue in tomcat for TEI classes - ??? Is this a known bug in 5.019? I don't think so. Some things I would do in your place: - Eliminate Apache and mod_jk, and run your tests on tomcat standalone for now, to help diagnose the classloading, maxProcessors, acceptCount issues. - Set your contexts to reloadable=false to take away some threads and internal tomcat processing, improve performance. - Try to come up with a tiny, as simple as possible test that brings up the TEI classloading error, - Try to use a standard tool like JMeter or AB for your stress testing, so that at least we're on the same page regarding your results. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5 - apache 13 howto
Hi, http://nagoya.apache.org/wiki/apachewiki.cgi?Tomcat/Links Yoav Shapira Millennium Research Informatics -Original Message- From: C. Kukulies [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 06, 2004 12:58 AM To: [EMAIL PROTECTED] Subject: Tomcat 5 - apache 13 howto Is there a FAQ which answers the question: Is there an HOWTO to get tomcat 5 running with apache13? -- Chris Christoph P. U. Kukulies kuku_at_physik.rwth-aachen.de - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: SERVLET MAP TO TOMCAT
Hi, Read http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/index.html. Yoav Shapira Millennium Research Informatics -Original Message- From: wwwdir zala [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 06, 2004 5:25 AM To: Tomcat Users List Subject: SERVLET MAP TO TOMCAT Hello Friends, I m novice in Tomcat4. I have created Sevlet MyServlet . I want to kept this servlet in to Tomcat4.0. What syntax i need to write into WEB.XML ? do i need other configuration - Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway - Enter today This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5, Velocity and XML Parser issues
Hi, Read http://java.sun.com/j2se/1.4.2/docs/guide/standards/. Yoav Shapira Millennium Research Informatics -Original Message- From: Tom Bednarz [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 06, 2004 3:49 AM To: Tomcat Users List Subject: Tomcat 5, Velocity and XML Parser issues Hi, I just experienced a problem with Velocity and Tomcat 5.0.19. I use Velocity 1.3, Velocity Tools 1.0, Struts 1.1 and Tomcat 5.0.19. When starting my Web-App I got the following error: 2004-04-05 16:18:02 StandardContext[/Echnaton] Velocity [info] Velocity successfully started. 2004-04-05 16:18:02 StandardContext[/Echnaton] Velocity [info] Using toolbox configuration file '/WEB-INF/toolbox.xml' 2004-04-05 16:18:02 StandardContext[/Echnaton] Velocity [info] ServletToolboxManager: Loading toolbox... 2004-04-05 16:18:02 StandardContext[/Echnaton]StandardWrapper.Throwable java.lang.NoClassDefFoundError: org/dom4j/io/SAXReader at org.apache.velocity.tools.view.XMLToolboxManager.load(XMLToolboxManager .jav a:205) at org.apache.velocity.tools.view.servlet.ServletToolboxManager.getInstanc e(Se rvletToolboxManager.java:211) at org.apache.velocity.tools.view.servlet.VelocityViewServlet.initToolbox( Velo cityViewServlet.java:252) at org.apache.velocity.tools.view.servlet.VelocityViewServlet.init(Velocit yVie wServlet.java:219) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.ja va:1 044) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:887) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext. java :3959) at org.apache.catalina.core.StandardContext.start(StandardContext.java:428 4) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.j ava: 866) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:850) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:638) at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeplo yer. java:320) at org.apache.catalina.core.StandardHost.install(StandardHost.java:875) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.jav a:72 7) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:477) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1008) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:3 94) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleS uppo rt.java:166) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1134) at org.apache.catalina.core.StandardHost.start(StandardHost.java:832) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1126) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:521) at org.apache.catalina.core.StandardService.start(StandardService.java:519 ) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2345) at org.apache.catalina.startup.Catalina.start(Catalina.java:594) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja va:3 9) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso rImp l.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398) On the Velocity-user mailinglist I was told to copy the dom4j.jar file into $CATALINA_HOME/common/endorsed and that solved the problem. So far (Tomcat 4.x) I put the dom4j.jar into the lib directory of the WEB-INF of my web app. Could anybody please explain me what this endorsed directory is all about? Which libraries do I need to put where and why is it NOT possible to put libraries such as dom4j.jar into my Web-Application. Or is there anything I am doing wrong when deploying my web app to Tomcat 5? Any clarification, additional documentation etc is greatly appreciated. Tom This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Turning off Case Sensitivity in Tomcat 4.1.30
Hi, Not possible, and the FileDirContext caseSensitive attribute is for a different purpose that has nothing to do with URLs visible to your user. Yoav Shapira Millennium Research Informatics -Original Message- From: Karau, Joe [mailto:[EMAIL PROTECTED] Sent: Monday, April 05, 2004 4:03 PM To: '[EMAIL PROTECTED]' Subject: Turning off Case Sensitivity in Tomcat 4.1.30 I'm trying to turn off case sensitive URL's in Tomcat 4.1.30, and so far I have had no luck. I've added the resources element to my context with a className=''org.apache.naming.resources.FileDirContext and caseSensitive=false. However, when I try to access my index.html page using any caps whatsoever, I receive a 404. Any pointers would be appreciated. Thanks Joseph Karau Kingland Systems [EMAIL PROTECTED] 507-536-3629 AIM: jkarau3629 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Starting and stopping connections in Tomcat 4.2
Hi, No, but you could write JMX tools to do it from a command line or a web interface if you're using tomcat's JNDI data sources. And if you write something generic like that, we'd be interested in it ;) Yoav Shapira Millennium Research Informatics -Original Message- From: David Langschied [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 06, 2004 7:43 AM To: [EMAIL PROTECTED] Subject: Starting and stopping connections in Tomcat 4.2 Hi all! I have an app that uses Tomcat to make connections to a Progress database. They have a web based tool to manage these connections, but I would like to be able to control these connections from the command line. Does Tomcat have utilities to manage these connections from the command line? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: help with embedding tomcat
so what happened to the main in Embedded ? I have been using tomcat 4.1.24 for a while, because that is the last version that I was able to get working when embedded into my C app. Thanks for all of your help!!! ---Original Message--- From: Shapira, Yoav [EMAIL PROTECTED] Subject: RE: help with embedding tomcat Sent: 06 Apr 2004 14:36:09 Hi, but I thought that I need to embed tomcat 5.x using JMX. Is this true You can, but you don't have to. Since there are no non-JMX examples in tomcat 5.x, I thought JMX was the It's trivial to come with one: Embedded e = new Embedded(); // call createXXX and addXXX methods e.start(); Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ---Original Message---
RE: ZipFileException: can't access localhost anymore
Hi, Rest assured, tomcat didn't overwrite it: you/someone else/JBuilder might have. Yoav Shapira Millennium Research Informatics -Original Message- From: Stephen Charles Huey [mailto:[EMAIL PROTECTED] Sent: Monday, April 05, 2004 5:54 PM To: Tomcat Users List Subject: Re: ZipFileException: can't access localhost anymore I've resolved this issue. We build a JAR file in JBuilder that contains all the JavaBeans, etc, and we stick that in Tomcat's common\lib, and I checked it and somehow it had 0 KB! Weird. So I just copied it over again and I no longer get that ZipException when starting up Tomcat. It was like Tomcat overwrote the JAR file by accident or something. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5.X - Apache2.X - Mod-JK2
Hi., I just disabled the onstart,onstop option. For me its working well. I think that Auto start for multiple instance is not supporting. I didn't get any docus on that. So i'm decided to go with this..i mean manual start of Tomcat instances. My only error is.. java.lang.UnsatisfiedLinkError: no jkjni in java.library.path can you tell me about this? Thanks., MALAI - Original Message - From: Chippada , Sreeni [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, April 06, 2004 10:35 AM Subject: RE: Tomcat 5.X - Apache2.X - Mod-JK2 Hi Malai, I just got this configuration working for me. I still get the following 3 errors in my mod_jk2.log file. Do you get these errors? As per the errors you are getting, I understand you are trying multiple instances of tomcat. If that is the case, why don't you try with on instance and test. [Tue Apr 06 10:26:07 2004] (error ) [jk_workerEnv.c (211)] workerEnv.initChannel() init failed for channel.jni:jni [Tue Apr 06 10:26:07 2004] ( info ) [jk_worker_jni.c (204)] workerJni.Init() Skipping initialization for the 460 460 [Tue Apr 06 10:26:07 2004] (error ) [jk_workerEnv.c (178)] workerEnv.initWorkers() init failed for worker.jni:onStartup [Tue Apr 06 10:26:07 2004] ( info ) [jk_worker_jni.c (204)] workerJni.Init() Skipping initialization for the 460 460 [Tue Apr 06 10:26:07 2004] (error ) [jk_workerEnv.c (178)] workerEnv.initWorkers() init failed for worker.jni:onShutdown -Sreeni -Original Message- From: armalai [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 06, 2004 9:20 AM To: Tomcat Users List Subject: Re: Tomcat 5.X - Apache2.X - Mod-JK2 Hi. Carl , Thanks for your reply..that works for me. I have another few error in my apache log file. Can you please look at this..and give me your suggestion.. [Tue Apr 06 09:11:17 2004] [error] mod_jk child init 1 0 [Tue Apr 06 09:11:17 2004] [notice] Child 2452: Acquired the start mutex. [Tue Apr 06 09:11:17 2004] [notice] Child 2452: Starting 250 worker threads. [Tue Apr 06 09:12:39 2004] [notice] shm.createSlot() Create 1 0x52 0x522000 [Tue Apr 06 09:12:39 2004] [notice] workerEnv.init() create slot epStat.0 [Tue Apr 06 09:12:39 2004] [error] lb.service() worker failed 12 for ajp13:jni [Tue Apr 06 09:12:39 2004] [error] lb.service() unrecoverable error... [Tue Apr 06 09:12:39 2004] [notice] vm.detach() ok [Tue Apr 06 09:12:39 2004] [error] mod_jk.handler() Error connecting to tomcat 12 [Tue Apr 06 09:12:43 2004] [error] channelSocket.open() connect failed localhost:8029 61 Unknown error [Tue Apr 06 09:12:43 2004] [error] channelSocket.open() connect failed localhost:8019 61 Unknown error [Tue Apr 06 09:12:43 2004] [error] ajp13.connect() failed ajp13:localhost:8029 [Tue Apr 06 09:12:43 2004] [error] ajp13.connect() failed ajp13:localhost:8019 Thanks., MALAI - Original Message - From: Carl Olivier [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Tuesday, April 06, 2004 9:06 AM Subject: RE: Tomcat 5.X - Apache2.X - Mod-JK2 Hi. That is apprently when jk is trying to register the request with JMX. You can disable that (and hence stop the error message) by adding the following line at the end if your jk2.properties: request.registerRequests=false With regards problems and stability the most stable I have been able to get it is with: Apache 2.0.46 Tomcat 5.0.19 mod_jk2.03 - mod_jk2.04 J2SDK1.4.2_01 I would recommend that you compile mod_jk2 for your version of Apache (although I am not clear on how much of a difference this makes?) Regards, Carl -Original Message- From: armalai [mailto:[EMAIL PROTECTED] Sent: 06 April 2004 03:04 PM To: Tomcat Users List Subject: Tomcat 5.X - Apache2.X - Mod-JK2 Hi., I'm getting lot of issues in this combination in windows. In did not find any document or forums discussion on that. 1.Can any one suggest me to change ot right vesrion or i can stick on with this one? 2.when i hit my application i'm getting this WARNING message..is this causing any probs...anyway application is working..but it is very slow. Tomcat Log:- Apr 5, 2004 6:14:02 PM org.apache.jk.common.HandlerRequest decodeRequest WARNING: Error registering request Thanks., MALAI - 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
RE: help with embedding tomcat
Hi, so what happened to the main in Embedded ? I have been using tomcat 4.1.24 for a while, because that is the last version that I was able to get working when embedded into my C app. I have 5.0.19 embedded just fine, and there are other people using it embedded, including even a JBoss build with it that Remy has I believe. As to where Embedded#main went, I don't know, but you can check the CVS logs. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Is there a tomcat weblog anywhere?
I was wondering if there is any official tomcat weblogs on the net. I have searched and found some peoples individual weblogs, but was wondering if there is a more official site.
RE: help with embedding tomcat
would you be willing to share the 5.0.19 embedded code? I would appreciate it greatly. ---Original Message--- From: Shapira, Yoav [EMAIL PROTECTED] Subject: RE: help with embedding tomcat Sent: 06 Apr 2004 15:11:37 Hi, so what happened to the main in Embedded ? I have been using tomcat 4.1.24 for a while, because that is the last version that I was able to get working when embedded into my C app. I have 5.0.19 embedded just fine, and there are other people using it embedded, including even a JBoss build with it that Remy has I believe. As to where Embedded#main went, I don't know, but you can check the CVS logs. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ---Original Message---
RE: Is there a tomcat weblog anywhere?
Hi, Why would we have one? Yoav Shapira Millennium Research Informatics -Original Message- From: tomcatuser [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 06, 2004 11:14 AM To: [EMAIL PROTECTED] Subject: Is there a tomcat weblog anywhere? I was wondering if there is any official tomcat weblogs on the net. I have searched and found some peoples individual weblogs, but was wondering if there is a more official site. This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JAAS problems migrating from JRun
Adam, I've been at this all day, and I seem to be banging my head against a really well-constructed wall. I followed your advice by going the security-constraints/Realm route. I've build a minimal JAAS implementation which, in combination with JAASRealm, works fine for *authentication*. However, when I want to access the Principals I've assigned in my LoginModule within my CustomPolicy for *authorization*, I get nothing. i.e. in my CustomPolicy: getPermissions(ProtectionDomain domain) { PermissionCollection pc = deferredPolicy.getPermissions(domain); // get principals associated with domain Principal[] principals = domain.getPrincipals(); . } domain.getPrincipals() returns no policies. Ok, so I go to the Subject (using a PrivilegedAction): Subject.getSubject(AccessController.getContext()).getPrincipals(); and again no Principals. The Subject is empty. I've confirmed this by calling a JSP which includes %= Subject.getSubject(AccessController.getContext()) % this just prints: Subject:, so it seems that the Subject I've worked so hard to create is lost. How can I get this to work? I need to access the Principals in my CustomPolicy, so that I can assign custom permissions to the PermissionCollection of the domain. Thanks, Michiel P.S. Just to show that the LoginModule / JAASRealm seem to be working: catalina_log: 2004-04-06 16:51:02 JAASRealm[Catalina]: Returning username bluppie catalina.out: Assigned principal bluppie of type security.UserPrincipal to user bluppie Assigned principal authenticateduser of type security.RolePrincipal to user bluppie Assigned principal developer of type security.CustomPrincipal to user bluppie Adam Hardy wrote: Michiel, you are programming your own login trigger in a filter - I don't this this will work (although I'm happy to be wrong). I think tomcat is only going to adopt your principals as authenticated if you protect whichever pages necessary via security-constraints in the deployment descriptor. You must set up a LoginModule that tomcat will find, and in this LoginModule tomcat gives you a call-back-handler which you use to do the authentication. You must then set your Subject, which is also passed to you by tomcat. Adam On 04/06/2004 01:39 AM Michiel Toneman wrote: Hi All, The company I work for is attempting to move from JRun 3/4 to Tomcat 5.0.19. So far it has been smooth sailing, and the migration is going better than expected. However, before the migration we were about to deploy a JAAS framework on JRun 4. This framework doesn't seem to work at all well in Tomcat 5. I've implemented a tailored JAAS framework with various types of Principals that grant certain (custom) Permissions in my own Policy. To enforce this onto the webapp, I used a Filter to establish a LoginContext and then wrap the servlet in a Subject.doAsPrivileged call. To clarify: I'm not looking for authentication through JAAS (I've imlemented this in a minimal way), but I'm looking to JAAS for some more elaborate authorization tricks. In my doFilter (simplified): LoginContext lc = new LoginContext(MyJaas, new MyHttpAuthCallbackHandler(request)); lc.login(); Subject.doAsPrivileged(lc.getSubject(),new FilteredAction(request,response,chain) , null); where FilteredAction is an inner class: --- class FilteredAction implements PrivilegedAction { ServletRequest faRequest; ServletResponse faResponse; FilterChain faChain; public FilteredAction(ServletRequest request, ServletResponse response, FilterChain chain) { this.faRequest=request; this.faResponse=response; this.faChain=chain; } public Object run() { try { faChain.doFilter(faRequest, faResponse); } catch (Exception e) { e.printStackTrace(); } return null; } } --- I replace the default Policy with my own policy that adds permissions based on principals assigned in the LoginContext. This is done in the Filter's init: --- public void init(FilterConfig config) throws ServletException { Policy orgPolicy = Policy.getPolicy();
RE: Tomcat 5.X - Apache2.X - Mod-JK2
I built jkjni.dll from the jk2 source, renamed it as jkjni.so and dropped into the $APACHE_HOME/modules directory. At this point are you able to access the Servlets/Webapps? I am asking because, if jkjni.dll is required, how can it work? -Original Message- From: armalai [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 06, 2004 11:09 AM To: Tomcat Users List Subject: Re: Tomcat 5.X - Apache2.X - Mod-JK2 Hi., I just disabled the onstart,onstop option. For me its working well. I think that Auto start for multiple instance is not supporting. I didn't get any docus on that. So i'm decided to go with this..i mean manual start of Tomcat instances. My only error is.. java.lang.UnsatisfiedLinkError: no jkjni in java.library.path can you tell me about this? Thanks., MALAI - Original Message - From: Chippada , Sreeni [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, April 06, 2004 10:35 AM Subject: RE: Tomcat 5.X - Apache2.X - Mod-JK2 Hi Malai, I just got this configuration working for me. I still get the following 3 errors in my mod_jk2.log file. Do you get these errors? As per the errors you are getting, I understand you are trying multiple instances of tomcat. If that is the case, why don't you try with on instance and test. [Tue Apr 06 10:26:07 2004] (error ) [jk_workerEnv.c (211)] workerEnv.initChannel() init failed for channel.jni:jni [Tue Apr 06 10:26:07 2004] ( info ) [jk_worker_jni.c (204)] workerJni.Init() Skipping initialization for the 460 460 [Tue Apr 06 10:26:07 2004] (error ) [jk_workerEnv.c (178)] workerEnv.initWorkers() init failed for worker.jni:onStartup [Tue Apr 06 10:26:07 2004] ( info ) [jk_worker_jni.c (204)] workerJni.Init() Skipping initialization for the 460 460 [Tue Apr 06 10:26:07 2004] (error ) [jk_workerEnv.c (178)] workerEnv.initWorkers() init failed for worker.jni:onShutdown -Sreeni -Original Message- From: armalai [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 06, 2004 9:20 AM To: Tomcat Users List Subject: Re: Tomcat 5.X - Apache2.X - Mod-JK2 Hi. Carl , Thanks for your reply..that works for me. I have another few error in my apache log file. Can you please look at this..and give me your suggestion.. [Tue Apr 06 09:11:17 2004] [error] mod_jk child init 1 0 [Tue Apr 06 09:11:17 2004] [notice] Child 2452: Acquired the start mutex. [Tue Apr 06 09:11:17 2004] [notice] Child 2452: Starting 250 worker threads. [Tue Apr 06 09:12:39 2004] [notice] shm.createSlot() Create 1 0x52 0x522000 [Tue Apr 06 09:12:39 2004] [notice] workerEnv.init() create slot epStat.0 [Tue Apr 06 09:12:39 2004] [error] lb.service() worker failed 12 for ajp13:jni [Tue Apr 06 09:12:39 2004] [error] lb.service() unrecoverable error... [Tue Apr 06 09:12:39 2004] [notice] vm.detach() ok [Tue Apr 06 09:12:39 2004] [error] mod_jk.handler() Error connecting to tomcat 12 [Tue Apr 06 09:12:43 2004] [error] channelSocket.open() connect failed localhost:8029 61 Unknown error [Tue Apr 06 09:12:43 2004] [error] channelSocket.open() connect failed localhost:8019 61 Unknown error [Tue Apr 06 09:12:43 2004] [error] ajp13.connect() failed ajp13:localhost:8029 [Tue Apr 06 09:12:43 2004] [error] ajp13.connect() failed ajp13:localhost:8019 Thanks., MALAI - Original Message - From: Carl Olivier [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Tuesday, April 06, 2004 9:06 AM Subject: RE: Tomcat 5.X - Apache2.X - Mod-JK2 Hi. That is apprently when jk is trying to register the request with JMX. You can disable that (and hence stop the error message) by adding the following line at the end if your jk2.properties: request.registerRequests=false With regards problems and stability the most stable I have been able to get it is with: Apache 2.0.46 Tomcat 5.0.19 mod_jk2.03 - mod_jk2.04 J2SDK1.4.2_01 I would recommend that you compile mod_jk2 for your version of Apache (although I am not clear on how much of a difference this makes?) Regards, Carl -Original Message- From: armalai [mailto:[EMAIL PROTECTED] Sent: 06 April 2004 03:04 PM To: Tomcat Users List Subject: Tomcat 5.X - Apache2.X - Mod-JK2 Hi., I'm getting lot of issues in this combination in windows. In did not find any document or forums discussion on that. 1.Can any one suggest me to change ot right vesrion or i can stick on with this one? 2.when i hit my application i'm getting this WARNING message..is this causing any probs...anyway application is working..but it is very slow. Tomcat Log:- Apr 5, 2004 6:14:02 PM org.apache.jk.common.HandlerRequest decodeRequest WARNING: Error registering request Thanks., MALAI - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Creating Loggers at Deployment Time
Patrick, I have done this using a the Java logging API in conjunction with a context listener. When your application loads, you have the context listener configure the logger to do the output you want. In my case I create a log in the $CATALINA_HOME/logs directory named after the app and do standard revolving logfiles. I also set the default logging level here. The nice thing about the logging api is that it is hierarchical and so once you have configured the root logger, additional loggers (one per class in my case) can be set as children to the root. All the children will use the properties of the root (like the log file you defined) as well as have their own properties which you can adjust to suit your debugging situation. Using this approach allows you to set the debugging level of a class higher if you are working on it and it leaves the other classes in a 'quiet' mode. One of the things I really like about the java logging API is that it allows you to change the loggin level at runtime. In my application I will be adding a management interface that will allow changing the debug level of a specific class on a deployed application at runtime. Jason On Tue, 6 Apr 2004, Farrell, Patrick wrote: I would like to pre-configure a web application to automatically create a logger with certain settings when the application is deployed to Tomcat 4.1.X. Is there a tomcat-specific configuration file that I can add to the WAR in order to accomplish this, or is editing the server.xml the only way to create a logger? If it is not possible to accomplish this task via a configuration file, could it be done using a startup servlet in the application? This class would have to use the Tomcat API directly in order to create a logger .. but it seems possible. Has anyone tried this before? Thanks in advance, Patrick M. Farrell Client Care Manager Client Server Web Development Quick Solutions, Inc. A four time INC 500 winner! [EMAIL PROTECTED] *** This message is intended only for the use of the intended recipient and may contain information that is PRIVILEGED and/or CONFIDENTIAL. If you are not the intended recipient, you are hereby notified that any use, dissemination, disclosure or copying of this communication is strictly prohibited. If you have received this communication in error, please destroy all copies of this message and its attachments and notify us immediately. *** - 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: SERVLET MAP TO TOMCAT
Hi, I am a bit more experienced than and working with the same issues. Yet can point u some thing I know. u need to specify the context (container, if not the same as install_dir/webapps/ROOT/WEB-INF/classes) in server.xml in the server.xml file in conf folder inside the install_dir. For me , the install dir. is :: D:\tomcat\4.1.29\jakarta-tomcat-4.1.29\, and it is on windows platform. Also, u need to specify for a servlet the URL of the servlets, sevlet name in the deployment descriptor file ( basically the configuration file for ur web application), i.e. web.xml inside the folder's root dir. You can go through this link too: http://cymulacrum.net Any further queries u can post to me directly too at my email id: [EMAIL PROTECTED] regards Jitender - Original Message - From: wwwdir zala [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, April 06, 2004 2:55 PM Subject: SERVLET MAP TO TOMCAT Hello Friends, I m novice in Tomcat4. I have created Sevlet MyServlet . I want to kept this servlet in to Tomcat4.0. What syntax i need to write into WEB.XML ? do i need other configuration - Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway - Enter today - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: help with embedding tomcat
Howdy, Nope, I legally can't share the exact code, but it's not difficult as I illustrated before: - Create a logger (FileLogger fl = new FileLogger(), call setDirectory, setPrefix, setSuffix, start()); - Construct Embedded with the Logger (and I use a null arg for the Realm because I do auth elsewhere): new Embedded(fl, null);. - Call Embedded#createEngine, set engine props - Call Embedded#createHost, set host props - Call Embedded#createContext, set webapp props (repeat for each webapp as needed) - Call addEngine to add the engine - Call createConnector, set connector props - Call addConnector, - Call start. That's it. Yoav Shapira Millennium Research Informatics -Original Message- From: tomcatuser [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 06, 2004 11:16 AM To: Tomcat Users List; Tomcat Users List Subject: RE: help with embedding tomcat would you be willing to share the 5.0.19 embedded code? I would appreciate it greatly. ---Original Message--- From: Shapira, Yoav [EMAIL PROTECTED] Subject: RE: help with embedding tomcat Sent: 06 Apr 2004 15:11:37 Hi, so what happened to the main in Embedded ? I have been using tomcat 4.1.24 for a while, because that is the last version that I was able to get working when embedded into my C app. I have 5.0.19 embedded just fine, and there are other people using it embedded, including even a JBoss build with it that Remy has I believe. As to where Embedded#main went, I don't know, but you can check the CVS logs. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ---Original Message--- This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How can I maintain state with Axis webservice in Tomcat?
I've got multiple instance of a presentation front end sending requests to multiple instances of the component I'm building. I know about using cookies for state management, but it won't work with our case because we don't connect to any client web browser. The front end does provide a unique id that is persistent throughout the lifecycle of the request. How can I use this unique id as the unique identifier so that I can manage state within AXIS web services. - Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway - Enter today
[NEWBIE] Setting up a JDBC Realm and using RequestDispatcher
Hello, I'm novice with Tomcat. I'm currently developing an application with access control based on forms (auth-methodFORM/auth-method in the web.xml) and on declarative security with a JDBC realm. I use the MVC model with servlets redirecting to jsp pages with (forward method of a RequestDispatcher). I understand that this security model does not apply to pages accessed by means of a RequestDispatcher. Then I wouldlike to know if there is a way to implement the following workflow: 1/ The web user opens a registration form (outside the secure area) to sign-in. 2/ A servlet respond to the request on form submission, create the user data in the database (giving access to the user) 3/ The servlet redirects directly the user to a page within the secure area and since this page is secured, the user is automatically asked for login info (via the login form declared in the login-config part of the web.xml) For the moment, what I get is: #1 and #2 are done correctly, then the RequestDispatcher send me to the secured page without asking for login. Thanks in advance!! Eric - Do you Yahoo!? Yahoo! Finance Tax Center - File online. File on time.
Re: Tomcat 5.X - Apache2.X - Mod-JK2
Hi, Yest i'm able to browse my application well. Is there a way to get the JKJNI.dll ? Till now i hav'nt build anything.. Thanks., MALAI - Original Message - From: Chippada , Sreeni [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, April 06, 2004 11:18 AM Subject: RE: Tomcat 5.X - Apache2.X - Mod-JK2 I built jkjni.dll from the jk2 source, renamed it as jkjni.so and dropped into the $APACHE_HOME/modules directory. At this point are you able to access the Servlets/Webapps? I am asking because, if jkjni.dll is required, how can it work? -Original Message- From: armalai [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 06, 2004 11:09 AM To: Tomcat Users List Subject: Re: Tomcat 5.X - Apache2.X - Mod-JK2 Hi., I just disabled the onstart,onstop option. For me its working well. I think that Auto start for multiple instance is not supporting. I didn't get any docus on that. So i'm decided to go with this..i mean manual start of Tomcat instances. My only error is.. java.lang.UnsatisfiedLinkError: no jkjni in java.library.path can you tell me about this? Thanks., MALAI - Original Message - From: Chippada , Sreeni [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, April 06, 2004 10:35 AM Subject: RE: Tomcat 5.X - Apache2.X - Mod-JK2 Hi Malai, I just got this configuration working for me. I still get the following 3 errors in my mod_jk2.log file. Do you get these errors? As per the errors you are getting, I understand you are trying multiple instances of tomcat. If that is the case, why don't you try with on instance and test. [Tue Apr 06 10:26:07 2004] (error ) [jk_workerEnv.c (211)] workerEnv.initChannel() init failed for channel.jni:jni [Tue Apr 06 10:26:07 2004] ( info ) [jk_worker_jni.c (204)] workerJni.Init() Skipping initialization for the 460 460 [Tue Apr 06 10:26:07 2004] (error ) [jk_workerEnv.c (178)] workerEnv.initWorkers() init failed for worker.jni:onStartup [Tue Apr 06 10:26:07 2004] ( info ) [jk_worker_jni.c (204)] workerJni.Init() Skipping initialization for the 460 460 [Tue Apr 06 10:26:07 2004] (error ) [jk_workerEnv.c (178)] workerEnv.initWorkers() init failed for worker.jni:onShutdown -Sreeni -Original Message- From: armalai [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 06, 2004 9:20 AM To: Tomcat Users List Subject: Re: Tomcat 5.X - Apache2.X - Mod-JK2 Hi. Carl , Thanks for your reply..that works for me. I have another few error in my apache log file. Can you please look at this..and give me your suggestion.. [Tue Apr 06 09:11:17 2004] [error] mod_jk child init 1 0 [Tue Apr 06 09:11:17 2004] [notice] Child 2452: Acquired the start mutex. [Tue Apr 06 09:11:17 2004] [notice] Child 2452: Starting 250 worker threads. [Tue Apr 06 09:12:39 2004] [notice] shm.createSlot() Create 1 0x52 0x522000 [Tue Apr 06 09:12:39 2004] [notice] workerEnv.init() create slot epStat.0 [Tue Apr 06 09:12:39 2004] [error] lb.service() worker failed 12 for ajp13:jni [Tue Apr 06 09:12:39 2004] [error] lb.service() unrecoverable error... [Tue Apr 06 09:12:39 2004] [notice] vm.detach() ok [Tue Apr 06 09:12:39 2004] [error] mod_jk.handler() Error connecting to tomcat 12 [Tue Apr 06 09:12:43 2004] [error] channelSocket.open() connect failed localhost:8029 61 Unknown error [Tue Apr 06 09:12:43 2004] [error] channelSocket.open() connect failed localhost:8019 61 Unknown error [Tue Apr 06 09:12:43 2004] [error] ajp13.connect() failed ajp13:localhost:8029 [Tue Apr 06 09:12:43 2004] [error] ajp13.connect() failed ajp13:localhost:8019 Thanks., MALAI - Original Message - From: Carl Olivier [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Tuesday, April 06, 2004 9:06 AM Subject: RE: Tomcat 5.X - Apache2.X - Mod-JK2 Hi. That is apprently when jk is trying to register the request with JMX. You can disable that (and hence stop the error message) by adding the following line at the end if your jk2.properties: request.registerRequests=false With regards problems and stability the most stable I have been able to get it is with: Apache 2.0.46 Tomcat 5.0.19 mod_jk2.03 - mod_jk2.04 J2SDK1.4.2_01 I would recommend that you compile mod_jk2 for your version of Apache (although I am not clear on how much of a difference this makes?) Regards, Carl -Original Message- From: armalai [mailto:[EMAIL PROTECTED] Sent: 06 April 2004 03:04 PM To: Tomcat Users List Subject: Tomcat 5.X - Apache2.X - Mod-JK2 Hi., I'm getting lot of issues in this combination in windows. In did not find any document or forums discussion on that. 1.Can any one suggest me to change ot right vesrion or i can stick on with this one? 2.when i hit my application i'm
Connecting the HTTP Server and Tomcat
Title: Message Good morning Can any provide some assistance on connecting the HTTP server and Tomcat together. I am using HTTP Server 2.0.48 and Tomcat-4.1.18 on a Sun Solaris machine. I think I have everything in place but when the only way I can reach the Tomcat stuff is my specifying the port number in the URL. Can someone point me in the direction of some "How to connect Apache and Tomcat for Dummies" instructions that will provide me some clear steps and methods for checking everything out. Thanks...and any help is appreciated. Allen This message may contain proprietary or confidential company information. Any unauthorized use or disclosure is prohibited. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Connecting the HTTP Server and Tomcat
Good evening.. Check this out http://johnturner.com/howto/apache2-tomcat4127-jk-rh9-howto.html --- regards, Anatol Pomozov EPAM Systems phone: +375 (17) 210-1662 ext. 1373 -Original Message- From: Wilson, Allen [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 06, 2004 6:42 PM To: Tomcat Users List Subject: Connecting the HTTP Server and Tomcat Good morning Can any provide some assistance on connecting the HTTP server and Tomcat together. I am using HTTP Server 2.0.48 and Tomcat-4.1.18 on a Sun Solaris machine. I think I have everything in place but when the only way I can reach the Tomcat stuff is my specifying the port number in the URL. Can someone point me in the direction of some How to connect Apache and Tomcat for Dummies instructions that will provide me some clear steps and methods for checking everything out. Thanks...and any help is appreciated. Allen
RE: Tomcat 5.X - Apache2.X - Mod-JK2
I tried to send it to the news group. Apparently it did not go through our mail server. -Sreeni -Original Message- From: armalai [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 06, 2004 11:36 AM To: Tomcat Users List Subject: Re: Tomcat 5.X - Apache2.X - Mod-JK2 Hi, Yest i'm able to browse my application well. Is there a way to get the JKJNI.dll ? Till now i hav'nt build anything.. Thanks., MALAI - Original Message - From: Chippada , Sreeni [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, April 06, 2004 11:18 AM Subject: RE: Tomcat 5.X - Apache2.X - Mod-JK2 I built jkjni.dll from the jk2 source, renamed it as jkjni.so and dropped into the $APACHE_HOME/modules directory. At this point are you able to access the Servlets/Webapps? I am asking because, if jkjni.dll is required, how can it work? -Original Message- From: armalai [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 06, 2004 11:09 AM To: Tomcat Users List Subject: Re: Tomcat 5.X - Apache2.X - Mod-JK2 Hi., I just disabled the onstart,onstop option. For me its working well. I think that Auto start for multiple instance is not supporting. I didn't get any docus on that. So i'm decided to go with this..i mean manual start of Tomcat instances. My only error is.. java.lang.UnsatisfiedLinkError: no jkjni in java.library.path can you tell me about this? Thanks., MALAI - Original Message - From: Chippada , Sreeni [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, April 06, 2004 10:35 AM Subject: RE: Tomcat 5.X - Apache2.X - Mod-JK2 Hi Malai, I just got this configuration working for me. I still get the following 3 errors in my mod_jk2.log file. Do you get these errors? As per the errors you are getting, I understand you are trying multiple instances of tomcat. If that is the case, why don't you try with on instance and test. [Tue Apr 06 10:26:07 2004] (error ) [jk_workerEnv.c (211)] workerEnv.initChannel() init failed for channel.jni:jni [Tue Apr 06 10:26:07 2004] ( info ) [jk_worker_jni.c (204)] workerJni.Init() Skipping initialization for the 460 460 [Tue Apr 06 10:26:07 2004] (error ) [jk_workerEnv.c (178)] workerEnv.initWorkers() init failed for worker.jni:onStartup [Tue Apr 06 10:26:07 2004] ( info ) [jk_worker_jni.c (204)] workerJni.Init() Skipping initialization for the 460 460 [Tue Apr 06 10:26:07 2004] (error ) [jk_workerEnv.c (178)] workerEnv.initWorkers() init failed for worker.jni:onShutdown -Sreeni -Original Message- From: armalai [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 06, 2004 9:20 AM To: Tomcat Users List Subject: Re: Tomcat 5.X - Apache2.X - Mod-JK2 Hi. Carl , Thanks for your reply..that works for me. I have another few error in my apache log file. Can you please look at this..and give me your suggestion.. [Tue Apr 06 09:11:17 2004] [error] mod_jk child init 1 0 [Tue Apr 06 09:11:17 2004] [notice] Child 2452: Acquired the start mutex. [Tue Apr 06 09:11:17 2004] [notice] Child 2452: Starting 250 worker threads. [Tue Apr 06 09:12:39 2004] [notice] shm.createSlot() Create 1 0x52 0x522000 [Tue Apr 06 09:12:39 2004] [notice] workerEnv.init() create slot epStat.0 [Tue Apr 06 09:12:39 2004] [error] lb.service() worker failed 12 for ajp13:jni [Tue Apr 06 09:12:39 2004] [error] lb.service() unrecoverable error... [Tue Apr 06 09:12:39 2004] [notice] vm.detach() ok [Tue Apr 06 09:12:39 2004] [error] mod_jk.handler() Error connecting to tomcat 12 [Tue Apr 06 09:12:43 2004] [error] channelSocket.open() connect failed localhost:8029 61 Unknown error [Tue Apr 06 09:12:43 2004] [error] channelSocket.open() connect failed localhost:8019 61 Unknown error [Tue Apr 06 09:12:43 2004] [error] ajp13.connect() failed ajp13:localhost:8029 [Tue Apr 06 09:12:43 2004] [error] ajp13.connect() failed ajp13:localhost:8019 Thanks., MALAI - Original Message - From: Carl Olivier [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Tuesday, April 06, 2004 9:06 AM Subject: RE: Tomcat 5.X - Apache2.X - Mod-JK2 Hi. That is apprently when jk is trying to register the request with JMX. You can disable that (and hence stop the error message) by adding the following line at the end if your jk2.properties: request.registerRequests=false With regards problems and stability the most stable I have been able to get it is with: Apache 2.0.46 Tomcat 5.0.19 mod_jk2.03 - mod_jk2.04 J2SDK1.4.2_01 I would recommend that you compile mod_jk2 for your version of Apache (although I am not clear on how much of a difference this makes?) Regards, Carl -Original Message- From: armalai [mailto:[EMAIL PROTECTED] Sent: 06 April 2004 03:04 PM To: Tomcat Users List Subject: Tomcat 5.X - Apache2.X -
RE: How can I maintain state with Axis webservice in Tomcat?
Hi, With a singleton: class MyState { // State variables, accessor methods } class MyStateManager { private static MyStateManager instance; private Map states; private MyStateManager() { states = Collections.syncronizedMap(new HashMap()); } public static synchronized MyStateManager getInstance() { if(instance == null) { instance = new MyStateManager(); } return instance; } public MyState getState(String uniqueId) { MyState result = (MyState) states.get(uniqueId); if(result == null) { result = new MyState(); states.put(uniqueId, result); } return result; } public void setState(String uniqueId, MyState state) { states.put(uniqueId, state); } } That's it, a classic singleton pattern usage. The semantics can be altered slightly, e.g. if you want to be the one creating the states instead of the singleton, or if you want to make some of the private fields above protected as a better design for extension, but this is a simple enough example and the above semantics are modeled after HttpSessions. Yoav Shapira Millennium Research Informatics -Original Message- From: tom ly [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 06, 2004 11:33 AM To: [EMAIL PROTECTED] Subject: How can I maintain state with Axis webservice in Tomcat? I've got multiple instance of a presentation front end sending requests to multiple instances of the component I'm building. I know about using cookies for state management, but it won't work with our case because we don't connect to any client web browser. The front end does provide a unique id that is persistent throughout the lifecycle of the request. How can I use this unique id as the unique identifier so that I can manage state within AXIS web services. - Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway - Enter today This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Connecting the HTTP Server and Tomcat
http://www.greenfieldresearch.ca/technical/jk2_config.html This was a really good starting point. Ignore the fact it talks abut windows, I imstaled on SuSE8.2 using apache2.0.48 and both tomcat 4 and 5 Kevan -Original Message- From: Wilson, Allen [mailto:[EMAIL PROTECTED] Sent: 06 April 2004 16:42 To: Tomcat Users List Subject: Connecting the HTTP Server and Tomcat Good morning Can any provide some assistance on connecting the HTTP server and Tomcat together. I am using HTTP Server 2.0.48 and Tomcat-4.1.18 on a Sun Solaris machine. I think I have everything in place but when the only way I can reach the Tomcat stuff is my specifying the port number in the URL. Can someone point me in the direction of some How to connect Apache and Tomcat for Dummies instructions that will provide me some clear steps and methods for checking everything out. Thanks...and any help is appreciated. Allen
RE: Issues in tomcat 5.0.19
Hi Yoav. Thanks for your response - was hoping someone would wade through my rather lengthy email! Anyway, just some additional info/responses that may assist with understanding our problem(s): 1. We have tested Tomcat standalone. We probably shouldn't have even mentioned the Apache/AJP setup as it just confuses the issue. 2. There are several pages on our server which take over 10 seconds to process. If we leave these pages out of the stress test, we don't have any problems. If these are included in the stress test, they seem to create bottlenecks which eventually result in Tomcat not responding (or responding VERY slowly) and needing to be restarted. Surely Tomcat should be able to process the slower connections/requests without affecting the other, faster requests. Many of our tags do database retrievals (currently the database server IS on the server - sorry forgot to include this in my last post - we running MSSQL 2000 - using the JDBC Type 4 driver from MS - through a highly efficient connection pool). We have run a profiler on the SQL Server - and that definitely does not have a bottleneck - very quick indeed. 2. Memory: this used to be our biggest problem; however, increasing the heap and using the -XX:+UseParallelGC switch seemed to solve most of our memory problems. In fact, with this garbage collector, we rarely see any errors during our test, it simply goes slower and slower over time. 3. CPU usage goes to 100% during the stress test and stays that way for a minute or two after we stop the test. 4. If we delete Tomcat's working folder and restart (thus forcing recompilation), it cannot handle our stress test (lots of timeouts and exceptions) and we have to leave it for a minute before trying again. 5. Our TLD file contains over 200 tags but only 6 TEI's. The first time we request a JSP on any site after restarting Tomcat, we get a ClassNotFoundException for a TEI, even if that JSP does not use a tag with a TEI. The second JSP request for that site always succeeds. This behaviour occurs 100% of the time. Ok, well - I will look into sending you something to try emulate the TEI problem (probably tomorrow). Thanks a stack for your help so far - I will try some of your suggestions. Regards, Carl Olivier -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: 06 April 2004 04:53 PM To: Tomcat Users List Subject: RE: Issues in tomcat 5.0.19 Hi, That was a nice, detailed message and explanation. In Tomcat we have all 25 hosts set up using the Tomcat Host / blocks - each Host / has its own Context / pointing at the correct location on the drive for the site context ROOT. 25 hosts/contexts for tomcat shouldn't be a problem. Each Apache VirtualHost sends the Tomcat related requests to Tomcat using the same worker (ajp13:localhost:8009) - is this a potential problem? Yes, though I don't know enough to say for sure. Have you tried using multiple workers and rerunning your stress test? In order to get around memory issues Tomcat is started with the following VM Settings: -Xms128m -Xmx256m -XX:+UseParallelGC Does performance change if you allocate more memory to the heap, i.e. are you memory-bound, cpu-bound, i/o-bound, or a combination thereof? 1. First request to sites are causing problems with TEI classloading - even though the classes ARE in fact in the WEB-INF/classes location of the relevant web app. This I'm completely unfamiliar with. Does it happen with tomcat standalone? If so, can you create a small WAR that will allow us to reproduce the problem? 2. Load - when we run load tests on the server we have major issues. The sites run REALLY slowly - our test is a custom written load tester that parses apache request logs for the exact test sites we have on the box (the live equivs) and duplicates the requests - except we can configure the number of concurrent requests to run the test on. The page responses are REALLY slow after a while and we also get IOExceptions occurring. A couple of notes: JMeter's last release has something that will parse web server access logs to create comparable load in a stress test plan for you to run, so you might be able to ditch your custom tester. (Which is good, because no one can reproduce results obtained with your custom tester). Are you saying the requests are first run fast, and then slow, when they should all be taking the same time? 1. The number of concurrent requests and the fact that pages and the request reponse times are getting slow cause a major bottleneck in Tomcat - which leads to the piling up of queued requests - until the acceptCount is reached - and the server becomes totally unresponsive. Are the requests slow because your tags take a while (you mentioned they were big tags, which I assume means they do a lot of work)? Or are they slow because tomcat is churning? I'm not sure of the causality in your statement above. What happens if you raise maxProccesors/maxThreads as well as
Re: Is there a tomcat weblog anywhere?
you can try a countless of them, i can suggest you personalblog, the one I develop and use: www.sf.net/projects/personalblog http://echofloripa.sytes.net/ Or you mean a weblog about tomcat? :) Shapira, Yoav wrote: Hi, Why would we have one? Yoav Shapira Millennium Research Informatics -Original Message- From: tomcatuser [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 06, 2004 11:14 AM To: [EMAIL PROTECTED] Subject: Is there a tomcat weblog anywhere? I was wondering if there is any official tomcat weblogs on the net. I have searched and found some peoples individual weblogs, but was wondering if there is a more official site. This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - 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: 5.0.19 - won't start on anything other thatn *nix
I use it on win2000, and woks fine (although some probs at service install) Alistair Young wrote: Hi folks, I've now tried Tomcat 5.0.19 on 3 different machines and 2 OSes: On Windows XP and MAC OS X 10.3.3, running bin/startup.bat/sh or bin/catalina.bat/sh start produces the error: java.lang.NoSuchMethodException: org.apache.catalina.startup.Catalina.setAwait(boolean) at java.lang.Class.getMethod(Class.java:978) at org.apache.catalina.startup.Bootstrap.setAwait(Bootstrap.java:337) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:396) JAVA_HOME and CATALINE_HOME are set OK. No errors are produced by catalina.bat regarding environment variables. I'm using JDK 1.4.2_03 Can anyone please help as Tomcat is now unusable outside *nix! cheers, Alistair - 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]
mod_jk2 2.0.4 compiler error on RHEL 3.0, Apache 2.0.46
All - I've successfully compiled the 2.0.4 mod_jk2 connector for use w/ the RPM version of Apache 2.0.46/Tomcat 4.1.29/30 on Redhat Enterprise Linux 3.0 (ES and WS) as well as the RPM version of Apache on Fedora Core 1, so I'm a bit stumped by this one. This works on one machine, but doesn't on two others. All three are RHEL 3.0 and running the following: Sun JDK 1.4.2 (j2sdk-1.4.2-fcs) httpd-devel-2.0.46-26.ent httpd-2.0.46-26.ent Tomcat 4.1.29 I've untarred the 2.0.4 jk2 connector, and get the following when I run make: == [EMAIL PROTECTED] native2]$ pwd /usr/local/jakarta/jakarta-tomcat-connectors-jk2-2.0.4-src/jk/native2 [EMAIL PROTECTED] native2]$ ./buildconfig [EMAIL PROTECTED] native2]$ ./configure --with-apxs2=/usr/sbin/apxs [EMAIL PROTECTED] native2]$ make list=' server/apache2'; \ for i in $list; do \ echo Making $target in $i; \ if test $i != .; then \ (cd $i make) || exit 1; \ fi; \ done; Making in server/apache2 make[1]: Entering directory `/usr/local/jakarta/jakarta-tomcat-connectors-jk2-2.0.4-src/jk/native2/server/apache2' mkdir -p ../../../build/jk2/apache2/usr/lib/httpd/modules /bin/sh /usr/bin/libtool --silent --mode=compile gcc -O2 -g -pipe -march=i386 -mcpu=i686 -DSSL_EXPERIMENTAL_ENGINE -I/usr/kerberos/include -pthread -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -I../../include -I/usr/include/httpd -I/usr/src/build/324798-i386/BUILD/httpd-2.0.46/prefork/srclib/apr-util/include /usr/src/build/324798-i386/BUILD/httpd-2.0.46/srclib/apr-util/include -I/usr/src/build/324798-i386/BUILD/httpd-2.0.46/prefork/srclib/apr/include /usr/src/build/324798-i386/BUILD/httpd-2.0.46/srclib/apr/include -DCHUNK_SIZE=4096 -DUSE_APACHE_MD5 -c ../../common/jk_channel_apr_socket.c -o ../../../build/jk2/apache2/jk_channel_apr_socket.lo gcc: cannot specify -o with -c or -S and multiple compilations make[1]: *** [../../../build/jk2/apache2/jk_channel_apr_socket.lo] Error 1 make[1]: Leaving directory `/usr/local/jakarta/jakarta-tomcat-connectors-jk2-2.0.4-src/jk/native2/server/apache2' make: *** [jk2-build] Error 1 = Any ideas what this 'gcc: cannot specify -o with -c or -S and multiple compilations' means and how to fix it? All three machines have been upgraded to RHEL 3.0 from various versions of Redhat (7.3 - 9.0) over time, so I suspect it's some legacy junk hanging around that's causing the grief. Any help would be appreciated. Thanks. -- Chris Egolf http://www.ugholf.net [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [NEWBIE] Setting up a JDBC Realm and using RequestDispatcher
You may want to use response.sendRedirect() at step 3. -Original Message- From: Eric Vogue [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 06, 2004 8:33 AM To: [EMAIL PROTECTED] Subject: [NEWBIE] Setting up a JDBC Realm and using RequestDispatcher Hello, I'm novice with Tomcat. I'm currently developing an application with access control based on forms (auth-methodFORM/auth-method in the web.xml) and on declarative security with a JDBC realm. I use the MVC model with servlets redirecting to jsp pages with (forward method of a RequestDispatcher). I understand that this security model does not apply to pages accessed by means of a RequestDispatcher. Then I wouldlike to know if there is a way to implement the following workflow: 1/ The web user opens a registration form (outside the secure area) to sign-in. 2/ A servlet respond to the request on form submission, create the user data in the database (giving access to the user) 3/ The servlet redirects directly the user to a page within the secure area and since this page is secured, the user is automatically asked for login info (via the login form declared in the login-config part of the web.xml) For the moment, what I get is: #1 and #2 are done correctly, then the RequestDispatcher send me to the secured page without asking for login. Thanks in advance!! Eric - Do you Yahoo!? Yahoo! Finance Tax Center - File online. File on time. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk2 2.0.4 compiler error on RHEL 3.0, Apache 2.0.46
Chris, Check the version of gcc on each machine. Just a quick thought. Doug - Original Message - From: Chris Egolf [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, April 06, 2004 12:24 PM Subject: mod_jk2 2.0.4 compiler error on RHEL 3.0, Apache 2.0.46 All - I've successfully compiled the 2.0.4 mod_jk2 connector for use w/ the RPM version of Apache 2.0.46/Tomcat 4.1.29/30 on Redhat Enterprise Linux 3.0 (ES and WS) as well as the RPM version of Apache on Fedora Core 1, so I'm a bit stumped by this one. This works on one machine, but doesn't on two others. All three are RHEL 3.0 and running the following: Sun JDK 1.4.2 (j2sdk-1.4.2-fcs) httpd-devel-2.0.46-26.ent httpd-2.0.46-26.ent Tomcat 4.1.29 I've untarred the 2.0.4 jk2 connector, and get the following when I run make: == [EMAIL PROTECTED] native2]$ pwd /usr/local/jakarta/jakarta-tomcat-connectors-jk2-2.0.4-src/jk/native2 [EMAIL PROTECTED] native2]$ ./buildconfig [EMAIL PROTECTED] native2]$ ./configure --with-apxs2=/usr/sbin/apxs [EMAIL PROTECTED] native2]$ make list=' server/apache2'; \ for i in $list; do \ echo Making $target in $i; \ if test $i != .; then \ (cd $i make) || exit 1; \ fi; \ done; Making in server/apache2 make[1]: Entering directory `/usr/local/jakarta/jakarta-tomcat-connectors-jk2-2.0.4-src/jk/native2/serve r/apache2' mkdir -p ../../../build/jk2/apache2/usr/lib/httpd/modules /bin/sh /usr/bin/libtool --silent --mode=compile gcc -O2 -g -pipe -march=i386 -mcpu=i686 -DSSL_EXPERIMENTAL_ENGINE -I/usr/kerberos/include -pthread -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -I../../include -I/usr/include/httpd -I/usr/src/build/324798-i386/BUILD/httpd-2.0.46/prefork/srclib/apr-util/in clude /usr/src/build/324798-i386/BUILD/httpd-2.0.46/srclib/apr-util/include -I/usr/src/build/324798-i386/BUILD/httpd-2.0.46/prefork/srclib/apr/include /usr/src/build/324798-i386/BUILD/httpd-2.0.46/srclib/apr/include -DCHUNK_SIZE=4096 -DUSE_APACHE_MD5 -c ../../common/jk_channel_apr_socket.c -o ../../../build/jk2/apache2/jk_channel_apr_socket.lo gcc: cannot specify -o with -c or -S and multiple compilations make[1]: *** [../../../build/jk2/apache2/jk_channel_apr_socket.lo] Error 1 make[1]: Leaving directory `/usr/local/jakarta/jakarta-tomcat-connectors-jk2-2.0.4-src/jk/native2/serve r/apache2' make: *** [jk2-build] Error 1 = Any ideas what this 'gcc: cannot specify -o with -c or -S and multiple compilations' means and how to fix it? All three machines have been upgraded to RHEL 3.0 from various versions of Redhat (7.3 - 9.0) over time, so I suspect it's some legacy junk hanging around that's causing the grief. Any help would be appreciated. Thanks. -- Chris Egolf http://www.ugholf.net [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: JAAS problems migrating from JRun
I'm no expert on the internals of tomcat, sorry. You might be looking at a hole in the implementation. I haven't used the JAAS authorization policy mechanism, I rely solely on roles. Adam On 04/06/2004 05:18 PM Michiel Toneman wrote: Adam, I've been at this all day, and I seem to be banging my head against a really well-constructed wall. I followed your advice by going the security-constraints/Realm route. I've build a minimal JAAS implementation which, in combination with JAASRealm, works fine for *authentication*. However, when I want to access the Principals I've assigned in my LoginModule within my CustomPolicy for *authorization*, I get nothing. i.e. in my CustomPolicy: getPermissions(ProtectionDomain domain) { PermissionCollection pc = deferredPolicy.getPermissions(domain); // get principals associated with domain Principal[] principals = domain.getPrincipals(); . } domain.getPrincipals() returns no policies. Ok, so I go to the Subject (using a PrivilegedAction): Subject.getSubject(AccessController.getContext()).getPrincipals(); and again no Principals. The Subject is empty. I've confirmed this by calling a JSP which includes %= Subject.getSubject(AccessController.getContext()) % this just prints: Subject:, so it seems that the Subject I've worked so hard to create is lost. How can I get this to work? I need to access the Principals in my CustomPolicy, so that I can assign custom permissions to the PermissionCollection of the domain. Thanks, Michiel P.S. Just to show that the LoginModule / JAASRealm seem to be working: catalina_log: 2004-04-06 16:51:02 JAASRealm[Catalina]: Returning username bluppie catalina.out: Assigned principal bluppie of type security.UserPrincipal to user bluppie Assigned principal authenticateduser of type security.RolePrincipal to user bluppie Assigned principal developer of type security.CustomPrincipal to user bluppie Adam Hardy wrote: Michiel, you are programming your own login trigger in a filter - I don't this this will work (although I'm happy to be wrong). I think tomcat is only going to adopt your principals as authenticated if you protect whichever pages necessary via security-constraints in the deployment descriptor. You must set up a LoginModule that tomcat will find, and in this LoginModule tomcat gives you a call-back-handler which you use to do the authentication. You must then set your Subject, which is also passed to you by tomcat. Adam On 04/06/2004 01:39 AM Michiel Toneman wrote: Hi All, The company I work for is attempting to move from JRun 3/4 to Tomcat 5.0.19. So far it has been smooth sailing, and the migration is going better than expected. However, before the migration we were about to deploy a JAAS framework on JRun 4. This framework doesn't seem to work at all well in Tomcat 5. I've implemented a tailored JAAS framework with various types of Principals that grant certain (custom) Permissions in my own Policy. To enforce this onto the webapp, I used a Filter to establish a LoginContext and then wrap the servlet in a Subject.doAsPrivileged call. To clarify: I'm not looking for authentication through JAAS (I've imlemented this in a minimal way), but I'm looking to JAAS for some more elaborate authorization tricks. In my doFilter (simplified): LoginContext lc = new LoginContext(MyJaas, new MyHttpAuthCallbackHandler(request)); lc.login(); Subject.doAsPrivileged(lc.getSubject(),new FilteredAction(request,response,chain) , null); where FilteredAction is an inner class: --- class FilteredAction implements PrivilegedAction { ServletRequest faRequest; ServletResponse faResponse; FilterChain faChain; public FilteredAction(ServletRequest request, ServletResponse response, FilterChain chain) { this.faRequest=request; this.faResponse=response; this.faChain=chain; } public Object run() { try { faChain.doFilter(faRequest, faResponse); } catch (Exception e) { e.printStackTrace(); } return null; } } --- I replace the default Policy with my own policy that adds permissions based on principals assigned in the LoginContext. This is done in the Filter's init: --- public void
Re: mod_jk2 2.0.4 compiler error on RHEL 3.0, Apache 2.0.46
ThanksI should have thought of that, but unfortunately they're both gcc-3.2.3-24. Parsons Technical Services wrote: Chris, Check the version of gcc on each machine. Just a quick thought. Doug - Original Message - From: Chris Egolf [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, April 06, 2004 12:24 PM Subject: mod_jk2 2.0.4 compiler error on RHEL 3.0, Apache 2.0.46 All - I've successfully compiled the 2.0.4 mod_jk2 connector for use w/ the RPM version of Apache 2.0.46/Tomcat 4.1.29/30 on Redhat Enterprise Linux 3.0 (ES and WS) as well as the RPM version of Apache on Fedora Core 1, so I'm a bit stumped by this one. This works on one machine, but doesn't on two others. All three are RHEL 3.0 and running the following: Sun JDK 1.4.2 (j2sdk-1.4.2-fcs) httpd-devel-2.0.46-26.ent httpd-2.0.46-26.ent Tomcat 4.1.29 I've untarred the 2.0.4 jk2 connector, and get the following when I run make: == [EMAIL PROTECTED] native2]$ pwd /usr/local/jakarta/jakarta-tomcat-connectors-jk2-2.0.4-src/jk/native2 [EMAIL PROTECTED] native2]$ ./buildconfig [EMAIL PROTECTED] native2]$ ./configure --with-apxs2=/usr/sbin/apxs [EMAIL PROTECTED] native2]$ make list=' server/apache2'; \ for i in $list; do \ echo Making $target in $i; \ if test $i != .; then \ (cd $i make) || exit 1; \ fi; \ done; Making in server/apache2 make[1]: Entering directory `/usr/local/jakarta/jakarta-tomcat-connectors-jk2-2.0.4-src/jk/native2/serve r/apache2' mkdir -p ../../../build/jk2/apache2/usr/lib/httpd/modules /bin/sh /usr/bin/libtool --silent --mode=compile gcc -O2 -g -pipe -march=i386 -mcpu=i686 -DSSL_EXPERIMENTAL_ENGINE -I/usr/kerberos/include -pthread -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -I../../include -I/usr/include/httpd -I/usr/src/build/324798-i386/BUILD/httpd-2.0.46/prefork/srclib/apr-util/in clude /usr/src/build/324798-i386/BUILD/httpd-2.0.46/srclib/apr-util/include -I/usr/src/build/324798-i386/BUILD/httpd-2.0.46/prefork/srclib/apr/include /usr/src/build/324798-i386/BUILD/httpd-2.0.46/srclib/apr/include -DCHUNK_SIZE=4096 -DUSE_APACHE_MD5 -c ../../common/jk_channel_apr_socket.c -o ../../../build/jk2/apache2/jk_channel_apr_socket.lo gcc: cannot specify -o with -c or -S and multiple compilations make[1]: *** [../../../build/jk2/apache2/jk_channel_apr_socket.lo] Error 1 make[1]: Leaving directory `/usr/local/jakarta/jakarta-tomcat-connectors-jk2-2.0.4-src/jk/native2/serve r/apache2' make: *** [jk2-build] Error 1 = Any ideas what this 'gcc: cannot specify -o with -c or -S and multiple compilations' means and how to fix it? All three machines have been upgraded to RHEL 3.0 from various versions of Redhat (7.3 - 9.0) over time, so I suspect it's some legacy junk hanging around that's causing the grief. Any help would be appreciated. Thanks. -- Chris Egolf http://www.ugholf.net [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] -- Chris Egolf http://www.ugholf.net [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Losing session
I'm with this problem: I use the tomcat 5.0.19, IE 6.0 in W2K and the users are losing all session information and part of the cookies, this happens once in a while. thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Implementing my own Realm based on JDBCRealm
Hi, I like to implement my own Realm based on the JDBCRealm provided by Tomcat. I currently use Tomcat 5.0.19, Eclipse 3M7 is my IDE (together with MyEclipseIDE). To implement my own Realm I like to derive my class from org.apache.catalina.realm.JDBCRealm Eclipse throws an error saying that it cannot resolve javax.management.MBeanRegistration. I cannot find this class at all. Searching on java.sun.com showed me, that the package javax.management.* is part of J2EE 1.4. Could anybody tell me, what I need to do to derive something from org.apache.catalina.realm.JDBCRealm and what I need to include to get it working in either my IDE and on a production Tomcat server. The result of my compilation is a JAR file which I like to put into tomcat's common/lib directory. Any help would be greatly appreciated! Tom
Re: How can I maintain state with Axis webservice in Tomcat?
This is more of an Axis question, but... Have you looked at SimpleSessionHandler? I had to extend it to make it work nicer with HttpSessions, but that's really up to how you need it to function. Yoav's reply is a good way to go as well. justin At 08:32 AM 4/6/2004, you wrote: I've got multiple instance of a presentation front end sending requests to multiple instances of the component I'm building. I know about using cookies for state management, but it won't work with our case because we don't connect to any client web browser. The front end does provide a unique id that is persistent throughout the lifecycle of the request. How can I use this unique id as the unique identifier so that I can manage state within AXIS web services. - Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway - Enter today __ Justin Ruthenbeck Software Engineer, NextEngine Inc. justinr - AT - nextengine DOT com Confidential. See: http://www.nextengine.com/confidentiality.php __ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Implementing my own Realm based on JDBCRealm
Hi, Eclipse throws an error saying that it cannot resolve javax.management.MBeanRegistration. I cannot find this class at all. Searching on java.sun.com showed me, that the package javax.management.* is part of J2EE 1.4. Then you should improve your (re)search skills. It's part of the JMX API, which can be downloaded from the Sun website or grabbed from $CATALINA_HOME/common/lib(/jmx.jar). Could anybody tell me, what I need to do to derive something from org.apache.catalina.realm.JDBCRealm and what I need to include to get it working in either my IDE and on a production Tomcat server. No, no one can tell you, as you have to figure out your own dependencies which are directly related to your own code. If you want to see what's on the classpath we use when compiling JDBCRealm, consult tomcat's top-level and child build.xml files. Yoav shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Hi!
Norton AntiVirus Deleted1.txt Description: plain/text - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Is there a tomcat weblog anywhere?
I am talking about a weblog about tomcat. ---Original Message--- From: Emerson Cargnin [EMAIL PROTECTED] Subject: Re: Is there a tomcat weblog anywhere? Sent: 06 Apr 2004 16:05:48 you can try a countless of them, i can suggest you personalblog, the one I develop and use: www.sf.net/projects/personalblog http://echofloripa.sytes.net/ Or you mean a weblog about tomcat? :) Shapira, Yoav wrote: Hi, Why would we have one? Yoav Shapira Millennium Research Informatics -Original Message- From: tomcatuser [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 06, 2004 11:14 AM To: [EMAIL PROTECTED] Subject: Is there a tomcat weblog anywhere? I was wondering if there is any official tomcat weblogs on the net. I have searched and found some peoples individual weblogs, but was wondering if there is a more official site. This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - 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] ---Original Message---
RE: Issues in tomcat 5.0.19
Oh, by the way - one thing: When we tested Tomcat standalone it was actually worse than when we run it through Apache and mod_jk. The reason is clearly that as Tomcat slows down, even the static content (none JSP/servlet) takes ages to come back - whereas through Apache, Apache would serve that quickly without sending to tomcat (thus taking some load off). An interesting thing we noted recently is that it seems to be the processing time more than anything else that causes trouble, not throughput (which is good). Could the problem be that too many high processor-requirement threads are being started, and as such each gets less time on the processor - thus taking longer to process..and thus, should we not set the AJP worker maxThreads DOWN thus allowing the processor to finish each processor intensive task quicker? Maybe set the acceptCount up.hmmm - thoughts? Thanks! Regards, Carl -Original Message- From: Carl Olivier [mailto:[EMAIL PROTECTED] Sent: 06 April 2004 06:01 PM To: 'Tomcat Users List' Subject: RE: Issues in tomcat 5.0.19 Hi Yoav. Thanks for your response - was hoping someone would wade through my rather lengthy email! Anyway, just some additional info/responses that may assist with understanding our problem(s): 1. We have tested Tomcat standalone. We probably shouldn't have even mentioned the Apache/AJP setup as it just confuses the issue. 2. There are several pages on our server which take over 10 seconds to process. If we leave these pages out of the stress test, we don't have any problems. If these are included in the stress test, they seem to create bottlenecks which eventually result in Tomcat not responding (or responding VERY slowly) and needing to be restarted. Surely Tomcat should be able to process the slower connections/requests without affecting the other, faster requests. Many of our tags do database retrievals (currently the database server IS on the server - sorry forgot to include this in my last post - we running MSSQL 2000 - using the JDBC Type 4 driver from MS - through a highly efficient connection pool). We have run a profiler on the SQL Server - and that definitely does not have a bottleneck - very quick indeed. 2. Memory: this used to be our biggest problem; however, increasing the heap and using the -XX:+UseParallelGC switch seemed to solve most of our memory problems. In fact, with this garbage collector, we rarely see any errors during our test, it simply goes slower and slower over time. 3. CPU usage goes to 100% during the stress test and stays that way for a minute or two after we stop the test. 4. If we delete Tomcat's working folder and restart (thus forcing recompilation), it cannot handle our stress test (lots of timeouts and exceptions) and we have to leave it for a minute before trying again. 5. Our TLD file contains over 200 tags but only 6 TEI's. The first time we request a JSP on any site after restarting Tomcat, we get a ClassNotFoundException for a TEI, even if that JSP does not use a tag with a TEI. The second JSP request for that site always succeeds. This behaviour occurs 100% of the time. Ok, well - I will look into sending you something to try emulate the TEI problem (probably tomorrow). Thanks a stack for your help so far - I will try some of your suggestions. Regards, Carl Olivier -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: 06 April 2004 04:53 PM To: Tomcat Users List Subject: RE: Issues in tomcat 5.0.19 Hi, That was a nice, detailed message and explanation. In Tomcat we have all 25 hosts set up using the Tomcat Host / blocks - each Host / has its own Context / pointing at the correct location on the drive for the site context ROOT. 25 hosts/contexts for tomcat shouldn't be a problem. Each Apache VirtualHost sends the Tomcat related requests to Tomcat using the same worker (ajp13:localhost:8009) - is this a potential problem? Yes, though I don't know enough to say for sure. Have you tried using multiple workers and rerunning your stress test? In order to get around memory issues Tomcat is started with the following VM Settings: -Xms128m -Xmx256m -XX:+UseParallelGC Does performance change if you allocate more memory to the heap, i.e. are you memory-bound, cpu-bound, i/o-bound, or a combination thereof? 1. First request to sites are causing problems with TEI classloading - even though the classes ARE in fact in the WEB-INF/classes location of the relevant web app. This I'm completely unfamiliar with. Does it happen with tomcat standalone? If so, can you create a small WAR that will allow us to reproduce the problem? 2. Load - when we run load tests on the server we have major issues. The sites run REALLY slowly - our test is a custom written load tester that parses apache request logs for the exact test sites we have on the box (the live equivs) and duplicates the requests - except we can configure the number of concurrent requests to run the test on.
Re: SERVLET MAP TO TOMCAT
Hi, I am a bit more experienced than and working with the same issues. Yet can point u some thing I know. u need to specify the context (container, if not the same as install_dir/webapps/ROOT/WEB-INF/classes) in server.xml in the server.xml file in conf folder inside the install_dir. For me , the install dir. is :: D:\tomcat\4.1.29\jakarta-tomcat-4.1.29\, and it is on windows platform. Also, u need to specify for a servlet the URL of the servlets, sevlet name in the deployment descriptor file ( basically the configuration file for ur web application), i.e. web.xml inside the folder's root dir. You can go through this link too: http://cymulacrum.net Any further queries u can post to me directly too at my email id: [EMAIL PROTECTED] regards Jitender - Original Message - From: wwwdir zala [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, April 06, 2004 2:55 PM Subject: SERVLET MAP TO TOMCAT Hello Friends, I m novice in Tomcat4. I have created Sevlet MyServlet . I want to kept this servlet in to Tomcat4.0. What syntax i need to write into WEB.XML ? do i need other configuration - Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway - Enter today - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Is there a tomcat weblog anywhere?
some of the tomcat developers have blogs, but they don't necessarily talk about tomcat in their blogs. some do. there is not unified tomcat blog site, unless you are proposing to create one and let everyone use it :) peter tomcatuser [EMAIL PROTECTED] wrote: I am talking about a weblog about tomcat. ---Original Message--- From: Emerson Cargnin Subject: Re: Is there a tomcat weblog anywhere? Sent: 06 Apr 2004 16:05:48 you can try a countless of them, i can suggest you personalblog, the one I develop and use: www.sf.net/projects/personalblog http://echofloripa.sytes.net/ Or you mean a weblog about tomcat? :) Shapira, Yoav wrote: Hi, Why would we have one? Yoav Shapira Millennium Research Informatics -Original Message- From: tomcatuser [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 06, 2004 11:14 AM To: [EMAIL PROTECTED] Subject: Is there a tomcat weblog anywhere? I was wondering if there is any official tomcat weblogs on the net. I have searched and found some peoples individual weblogs, but was wondering if there is a more official site. This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - 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] ---Original Message--- - Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway - Enter today
Re: Tomcat configuration
yeah thats what even i thought, but my web pages are not visible if i put myappl directory directly under webapps, only if i put it under ROOT doed the server even display the web pages. From: Harry Mantheakis [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: Tomcat configuration Date: Sun, 04 Apr 2004 20:08:19 +0100 Hello ROOT is the default context (application). By default, ROOT handles requests that do not specify an application. Hence this URL: http://localhost:8080/ Would be handled by the 'ROOT' application, which displays the Tomcat welcome page. You can re-configure this, of course, but that is how it is set up by default. Your 'myapplication' directory (and everything it contains) should not be located within the ROOT directory. It should be located within the 'webapps' directory. HTH Harry Under ROOT exists myapplication directory The structure goes like : tomcat-home webapps ROOT myapplication Html pages WEB-INF Web.xml classes Class files See whether u can help If u have set ur server successfully, u would definitely know this one. Thanks -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Friday, April 02, 2004 7:39 PM To: Tomcat Users List Subject: RE: Tomcat configuration Hi, What are your files under ROOT instead of just under webapps? Yoav Shapira Millennium Research Informatics -Original Message- From: Taj [mailto:[EMAIL PROTECTED] Sent: Friday, April 02, 2004 2:26 AM To: 'Tomcat Users List' Subject: Tomcat configuration Hi Iam having problem in setting my application running in Tomcat 4.1 The applications directory is situated at /Tomcat4.1/webapps/ROOT/myapplication This is the only place that my pages are visible to the server. My class files are situated at /Tomcat4.1/webapps/ROOT/myapplication/WEB-INF/classes/ The html pages in the directory /Tomcat4.1/webapps/ROOT/myapplication/ are visible to the server but my class files are not. I have tried everthing. The web.xml file is kept in the directory /Tomcat4.1/webapps/ROOT/myapplication/WEB-INF/ and the web.xml file goes like: web-app servlet servlet-nameGetInput/servlet-name servlet-classGetInput/servlet-class /servlet servlet-mapping servlet-nameGetInput/servlet-name url-pattern/GetInput/url-pattern /servlet-mapping /web-app Where the GetInput in the servlet-name. The HTML page that calls the servlet has the following syntax for the POST command: form method=POST action=GetInput I have also added to the environment variables of my OS, the following: CATALINA_HOME=E:\Program Files\Apache Group\Tomcat 4.1 TOMCAT_HOME=E:\Program Files\Apache Group\Tomcat 4.1 But to no difference Even after all this I get the 404 error: the required source was not found. I would by very thankful to anyone who can find what I have missed and help me out. Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Buzz on your screen! Download on your screen. http://www.msn.co.in/Download/screensaver/ Keep yourself smiling! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Is there a tomcat weblog anywhere?
How would a blog be any different then this forum? I'm not very familiar with blogs, but from what I've read, they appear to be basically a message board -Original Message- From: Peter Lin [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 06, 2004 12:46 PM To: Tomcat Users List; tomcatuser Subject: Re: Is there a tomcat weblog anywhere? some of the tomcat developers have blogs, but they don't necessarily talk about tomcat in their blogs. some do. there is not unified tomcat blog site, unless you are proposing to create one and let everyone use it :) peter tomcatuser [EMAIL PROTECTED] wrote: I am talking about a weblog about tomcat. ---Original Message--- From: Emerson Cargnin Subject: Re: Is there a tomcat weblog anywhere? Sent: 06 Apr 2004 16:05:48 you can try a countless of them, i can suggest you personalblog, the one I develop and use: www.sf.net/projects/personalblog http://echofloripa.sytes.net/ Or you mean a weblog about tomcat? :) Shapira, Yoav wrote: Hi, Why would we have one? Yoav Shapira Millennium Research Informatics -Original Message- From: tomcatuser [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 06, 2004 11:14 AM To: [EMAIL PROTECTED] Subject: Is there a tomcat weblog anywhere? I was wondering if there is any official tomcat weblogs on the net. I have searched and found some peoples individual weblogs, but was wondering if there is a more official site. This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - 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] ---Original Message--- - Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway - Enter today - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] getBlob() error in Tomcat
Hi, Any idea why this error is coming in runtime? Servlet) - FileDisplayServlet.doPost() java.lang.AbstractMethodError: oracle.jdbc.driver.OracleResultSetImpl.getBlob(Ljava/lang/String;)Ljava/sql/Blob; at org.apache.commons.dbcp.DelegatingResultSet.getBlob(DelegatingResultSet.java:318) at com.mot.iDEN.webapp.oes.servlet.FileDisplayServlet.readBlob(FileDisplayServlet.java:169) I am trying to display a image that is stored in a BLOB field in Oracle. I am using connection pooling and classes12.jar Servlet Code private void readBlob ( HttpServletRequest request, HttpServletResponse response, long aFeatureId, String aFileName, String aUserId ) throws SQLException,IOException { Connection conn = null; ResultSet result = null; PreparedStatement prepStmt = null; java.io.InputStream in = null; java.sql.Blob myBlob = null; FileUploadFactory uploadFactory = new FileUploadFactory(); try { conn = config_.getEstimationConnection(false); String sql = ; sql = SELECT + FILE_IMAGE + FROM + OES_FEATURE_DETAILS + WHERE + FEATURE_ID = +aFeatureId; log_.debug(SQL:===+sql); log_.debug(result= + result); prepStmt = conn.prepareStatement(sql); result = prepStmt.executeQuery(); if (result != null result.next()) { //get the file ext String strDocExt = ; try { strDocExt = uploadFactory.getFileType(aFileName, aUserId); } catch(Exception e) { log_.debug(Exception is+e); } //get the file length int intCountBytes = 0; String strPrpValue = null; //set the mimetype ResourceBundle mimetype = ResourceBundle.getBundle(mimes); strPrpValue = mimetype.getString(strDocExt.toLowerCase()); log_.debug(Value= + strPrpValue); if (strPrpValue != null) { response.setContentType(strPrpValue); response.setHeader(Content-Disposition, inline; filename= + aFileName); } myBlob = result.getBlob(FILE_IMAGE); //get the inputStream in = myBlob.getBinaryStream(); /*Get the Output Stream*/ if (in != null) { generatePresentation(in, response); in.close(); } } } catch (SQLException sqle) { throw new SQLException(FileDisplayServlet.readBlob, + sqle.getErrorCode()); } catch (IOException io) { throw new IOException(FileDisplayServlet.readBlob); } finally { try { if (result != null) { result.close(); } if (prepStmt != null) { prepStmt.close(); } if (conn != null) {
Is there log files for mod_jk2.so like mod_jk.so
Hello, I have gotten mod_jk2.so working with my apache2 and tomcat 4 With the mod_jk I had some directives in my httpd.conf JkLogFile /usr2/wwwlogs/mod_jk_4.log JkLogLevelerror It appears that I need to put directives in my worker2.properties For the life of me I can not find anywhere that list the directives for the worker2.properties The other question I have is there does not appear to be a setting in the httpd.conf for the location of the worker2.properties. From what I can tell the mod_jk2.so looks in the MYAPACHE_DIR/conf directory for this file. Can this be configured? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] getBlob() error in Tomcat
You need to cast the ResultSet to the Oracle specify ResultSet -Original Message- From: Kumar Abhay-CAK203C [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 06, 2004 11:01 AM To: Tomcat Users List Subject: [OT] getBlob() error in Tomcat Importance: High Hi, Any idea why this error is coming in runtime? Servlet) - FileDisplayServlet.doPost() java.lang.AbstractMethodError: oracle.jdbc.driver.OracleResultSetImpl.getBlob(Ljava/lang/String;)Ljava/sql/ Blob; at org.apache.commons.dbcp.DelegatingResultSet.getBlob(DelegatingResultSet.java :318) at com.mot.iDEN.webapp.oes.servlet.FileDisplayServlet.readBlob(FileDisplayServl et.java:169) I am trying to display a image that is stored in a BLOB field in Oracle. I am using connection pooling and classes12.jar Servlet Code private void readBlob ( HttpServletRequest request, HttpServletResponse response, long aFeatureId, String aFileName, String aUserId ) throws SQLException,IOException { Connection conn = null; ResultSet result = null; PreparedStatement prepStmt = null; java.io.InputStream in = null; java.sql.Blob myBlob = null; FileUploadFactory uploadFactory = new FileUploadFactory(); try { conn = config_.getEstimationConnection(false); String sql = ; sql = SELECT + FILE_IMAGE + FROM + OES_FEATURE_DETAILS + WHERE + FEATURE_ID = +aFeatureId; log_.debug(SQL:===+sql); log_.debug(result= + result); prepStmt = conn.prepareStatement(sql); result = prepStmt.executeQuery(); if (result != null result.next()) { //get the file ext String strDocExt = ; try { strDocExt = uploadFactory.getFileType(aFileName, aUserId); } catch(Exception e) { log_.debug(Exception is+e); } //get the file length int intCountBytes = 0; String strPrpValue = null; //set the mimetype ResourceBundle mimetype = ResourceBundle.getBundle(mimes); strPrpValue = mimetype.getString(strDocExt.toLowerCase()); log_.debug(Value= + strPrpValue); if (strPrpValue != null) { response.setContentType(strPrpValue); response.setHeader(Content-Disposition, inline; filename= + aFileName); } myBlob = result.getBlob(FILE_IMAGE); //get the inputStream in = myBlob.getBinaryStream(); /*Get the Output Stream*/ if (in != null) { generatePresentation(in, response); in.close(); } } } catch (SQLException sqle) { throw new SQLException(FileDisplayServlet.readBlob, + sqle.getErrorCode()); } catch (IOException io) { throw new IOException(FileDisplayServlet.readBlob); } finally { try { if (result != null) { result.close(); } if (prepStmt != null)
RE: TC 5.0.19/W2KPro - Cross Context will not work
bump. Any ideas? --- Norris Shelton [EMAIL PROTECTED] wrote: java.lang.NullPointerException com.appriss.prototype.cross_context.test.ContextReceiverServlet.doGet(ContextReceiverServlet.java:18) if (request != null) { #18- HttpSession session = request.getSession(true); javax.servlet.http.HttpServlet.service(HttpServlet.java:743) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) com.appriss.prototype.cross_context.ContextSenderServlet.doPost(ContextSenderServlet.java:31) - Entire contents of doPost() ServletContext myContext = getServletContext(); RequestDispatcher dispatcher = getServletContext().getContext(/second_webapp).getRequestDispatcher(/backdoor.jsp); System.out.println(Dispatcher= + dispatcher); #31- dispatcher.forward(request, response); com.appriss.prototype.cross_context.ContextSenderServlet.doGet(ContextSenderServlet.java:75) - Entire contents of doGet() #75- doPost(request, response); javax.servlet.http.HttpServlet.service(HttpServlet.java:743) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) Any help you can give will be most helpful. --- Shapira, Yoav [EMAIL PROTECTED] wrote: Hi, if (request != null) { HttpSession session = request.getSession(true); -- NPE The stack trace points to this line as the NPE line? Are you sure? Can you post the stack trace? Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] = Norris Shelton Software Engineer Sun Certified Java 1.1 Programmer Appriss, Inc. ICQ# 26487421 AIM NorrisEShelton YIM norrisshelton __ Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway http://promotions.yahoo.com/design_giveaway/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] = Norris Shelton Software Engineer Sun Certified Java 1.1 Programmer Appriss, Inc. ICQ# 26487421 AIM NorrisEShelton YIM norrisshelton __ Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway http://promotions.yahoo.com/design_giveaway/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
install4iis.js Error
Hi folk. I am trying to install ISAPI_redirector2 and run tomcat_dir\bin cscript install4iis.js as mentioned in INSTALL.txt but arise error Microsoft (R) Windows Script Host Version 5.6 Copyright (C) Microsoft Corporation 1996-2001. All rights reserved. 1 argc 0 optind 0 2 IIsWebVirtualDir Root IIS://LocalHost/W3SVC/1/Root 3 IIsCertMapper IIsCertMapper IIS://LocalHost/W3SVC/1/IIsCertMapper 4 IIsFiltersFiltersIIS://LocalHost/W3SVC/1/Filters Error processing install4iis.js Unable to find Web Server ROOT direcrory. Win2k, IIS 5.0 What am I doing wrong?? Please help me! --- regards, Anatol Pomozov EPAM Systems phone: +375 (17) 210-1662 ext. 1373 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: install4iis.js Error
Oops I found solution by myself. I correct install4iis.js:478 from ROOT to Root. Probably should change this script to comparing string in that place wo case sensitivity. --- regards, Anatol Pomozov EPAM Systems phone: +375 (17) 210-1662 ext. 1373 -Original Message- From: Anatol Pomazau [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 06, 2004 9:07 PM To: Tomcat Users List Subject: install4iis.js Error Hi folk. I am trying to install ISAPI_redirector2 and run tomcat_dir\bin cscript install4iis.js as mentioned in INSTALL.txt but arise error Microsoft (R) Windows Script Host Version 5.6 Copyright (C) Microsoft Corporation 1996-2001. All rights reserved. 1 argc 0 optind 0 2 IIsWebVirtualDir Root IIS://LocalHost/W3SVC/1/Root 3 IIsCertMapper IIsCertMapper IIS://LocalHost/W3SVC/1/IIsCertMapper 4 IIsFiltersFiltersIIS://LocalHost/W3SVC/1/Filters Error processing install4iis.js Unable to find Web Server ROOT direcrory. Win2k, IIS 5.0 What am I doing wrong?? Please help me! --- regards, Anatol Pomozov EPAM Systems phone: +375 (17) 210-1662 ext. 1373 - 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: Creating Loggers at Deployment Time
Jason, Thanks for the tip. I ended up also finding a solution that will meet my needs. Apparently, you may create a configuration file in the webapps folder that contains fragments from the server.xml file. The configuration file needs to be named according to the application context that you are intending to configure. Example: mywebapp.xml could contain configuration fragments for the /mywebapp context. The snippet shown below will create a new filelogger for the /mywebapp context: Begin -- !-- Context fragment for configuring My Web App .. -- Context path=/mywebapp docBase=mywebapp.war debug=0 privileged=true Logger className=org.apache.catalina.logger.FileLogger debug=0 directory=logs prefix=mywebapp- suffix=.log timestamp=true verbosity=0/ /Context End -- Patrick M. Farrell Client Care Manager Client Server Web Development Quick Solutions, Inc. A four time INC 500 winner! [EMAIL PROTECTED] 614.336.4368 (Client) 614.561.5285 (Mobile) 740.548.0539 (Home) -Original Message- From: Jason Bucholtz [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 06, 2004 11:22 AM To: Tomcat Users List Subject: Re: Creating Loggers at Deployment Time Patrick, I have done this using a the Java logging API in conjunction with a context listener. When your application loads, you have the context listener configure the logger to do the output you want. In my case I create a log in the $CATALINA_HOME/logs directory named after the app and do standard revolving logfiles. I also set the default logging level here. The nice thing about the logging api is that it is hierarchical and so once you have configured the root logger, additional loggers (one per class in my case) can be set as children to the root. All the children will use the properties of the root (like the log file you defined) as well as have their own properties which you can adjust to suit your debugging situation. Using this approach allows you to set the debugging level of a class higher if you are working on it and it leaves the other classes in a 'quiet' mode. One of the things I really like about the java logging API is that it allows you to change the loggin level at runtime. In my application I will be adding a management interface that will allow changing the debug level of a specific class on a deployed application at runtime. Jason On Tue, 6 Apr 2004, Farrell, Patrick wrote: I would like to pre-configure a web application to automatically create a logger with certain settings when the application is deployed to Tomcat 4.1.X. Is there a tomcat-specific configuration file that I can add to the WAR in order to accomplish this, or is editing the server.xml the only way to create a logger? If it is not possible to accomplish this task via a configuration file, could it be done using a startup servlet in the application? This class would have to use the Tomcat API directly in order to create a logger .. but it seems possible. Has anyone tried this before? Thanks in advance, Patrick M. Farrell Client Care Manager Client Server Web Development Quick Solutions, Inc. A four time INC 500 winner! [EMAIL PROTECTED] ** * This message is intended only for the use of the intended recipient and may contain information that is PRIVILEGED and/or CONFIDENTIAL. If you are not the intended recipient, you are hereby notified that any use, dissemination, disclosure or copying of this communication is strictly prohibited. If you have received this communication in error, please destroy all copies of this message and its attachments and notify us immediately. *** - 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 message is intended only for the use of the intended recipient and may contain information that is PRIVILEGED and/or CONFIDENTIAL. If you are not the intended recipient, you are hereby notified that any use, dissemination, disclosure or copying of this communication is strictly prohibited. If you have received this communication in error, please destroy all copies of this message and its attachments and notify us immediately. *** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]