Is it not possible to install apache-tomcat-6.0.20 with a J2SE 5 JRE
When I run the set up apache-tomcat-6.0.20.exe for WindowsXP I get the message from the Tomcat Setup as Failed to install tomcat6 service check your settings and permissions.I have the permissions.The only thing I think that is different from the setup needs is the JRE version.But the tomcat- preconfigured-6.0.18.zip downloaded from coreservlets.com http://coreservlets.com%20works fine with the J2SE 6 JRE. Your ideas please!! -- Kind Regards Varuna Varuna Seneviratna No 514 Udumulla Road Battaramulla Sri Lanka Tel : 011-2888620 Mobile:0715617141
Re: Is it not possible to install apache-tomcat-6.0.20 with a J2SE 5 JRE
Varuna Seneviratna wrote: When I run the set up apache-tomcat-6.0.20.exe for WindowsXP I get the message from the Tomcat Setup as Failed to install tomcat6 service check your settings and permissions.I have the permissions.The only thing I think that is different from the setup needs is the JRE version.But the tomcat- preconfigured-6.0.18.zip downloaded from coreservlets.com http://coreservlets.com%20works fine with the J2SE 6 JRE. Your ideas please!! Start the service manually, tell us what error(s) you get. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: [OT] Apache httpd prefork versus worker MPM
Christopher Schultz wrote: ... Hi Chris. My 0.02 €. I have been using both the prefork and worker versions of Apache 2.2, along with mod_jk. As far as I can tell, there is no problem in that respect with mod_jk. However, the threaded (worker) version may give you problems if, somewhere maybe deep down, there is a piece of software running under Apache, that is not thread-safe. It very much depends thus on what you really use at the Apache side. I have only had a couple of problems in the past because I am also running mod_perl under Apache, and some older perl modules sometimes make use of some older C libraries which are (or were) not thread-safe. I have not had any trouble with any of the standard Apache modules. I seem to remember that there might be (or might have been) some issues when using SSL. But I'm not quite sure how long ago that was, and if it is still an issue currently under Debian Lenny. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Tomcat And JMX
Please someone tell me about how tomcat uses JMX.I know about jmxproxy,if someone please tell me how can one get information about a particular war file like how much time its taking to open a particular class so that i can know which class file is taking larger time on LOAD condition. -- View this message in context: http://www.nabble.com/Tomcat-And-JMX-tp24546901p24546901.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Is it not possible to install apache-tomcat-6.0.20 with a J2SE 5 JRE
Manually you can get it running But it is not possible to install using the setup apache-tomcat-6.0.20.exe. Varuna 2009/7/18 Mark Thomas ma...@apache.org Varuna Seneviratna wrote: When I run the set up apache-tomcat-6.0.20.exe for WindowsXP I get the message from the Tomcat Setup as Failed to install tomcat6 service check your settings and permissions.I have the permissions.The only thing I think that is different from the setup needs is the JRE version.But the tomcat- preconfigured-6.0.18.zip downloaded from coreservlets.com http://coreservlets.com%20works fine with the J2SE 6 JRE. Your ideas please!! Start the service manually, tell us what error(s) you get. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- Kind Regards Varuna Varuna Seneviratna No 514 Udumulla Road Battaramulla Sri Lanka Tel : 011-2888620 Mobile:0715617141
Re: net stop tomcat6 service hangs on Windows 2008 (64-bit)
2009/7/17 Caldarale, Charles R chuck.caldar...@unisys.com: From: Matt Sullivan [mailto:mjdsulli...@hotmail.com] Subject: RE: net stop tomcat6 service hangs on Windows 2008 (64-bit) Never heard back from anyone, and I'm left assuming this is a bug, albeit a difficult one to isolate. Refresh our memories - does the hang still occur if you use the shutdown.bat script rather than net stop? Just to share a bit of my experience: I have seen Tomcat hanging (and unable to respond to shutdown.sh) after an out-of-memory (PermGen). It was on Solaris. I have not dug into it yet (as it is not so important for us), but I can say that there are some places where an OOM is caught and ignored or wrapped. The one that showed in our logs was Spring Framework's DispatcherServlet, but Tomcat itself does the same: merely throwing an OOM Error results in the usual HTTP Status 500 error page being shown. If you face such a situation, then simply killing tomcat6.exe process if net stop fails would be the only recipe that I know should be working. If your case is different, e.g. you failed to stop a Tomcat instance that was not hung, then maybe some other cause and a suitable solution/bugfix can be found. E.g. if it is the case of Application threads that are not terminating, that Charles mentioned in his first reply. And in my case of OOM, some tuning can lessen the probability of it. I guess we'll stick with the less elegant workaround, simply killing tomcat6.exe process if net stop fails, unless anyone can think of something else to try. I have only the thought of obtaining some diagnostics before killing it, like getting the Java stack (using jstack tool from JDK, or from the menu shown by tomcat6w tray icon), or waiting until log4j flushes the logs. Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Tomcat 6 database pooling causes HttpServlet class not found exception
Hello, I am trying to configure DB pooling in Tomcat 6. The combination of the elements below causes the exception: java.lang.ClassNotFoundException: javax.servlet.http.HttpServlet I have followed the directions on http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howto.html thoroughly so I am confused. The only thing I am doing a little different is I have placed my db resource in the conf/context.xml , but I have also seen the same issue when placed in my META-INF/context.xml Any ideas will be greatly appreciated! I think it's the entry in context.xml that causes the issue. ** conf/context.xml: Resource name=jdbc/tabscorp_tabsdb auth=Container type=javax.sql.DataSource maxActive=100 maxIdle=30 maxWait=1 username=login password=pass driverClassName=com.mysql.jdbc.Driver logAbandoned=true removeAbandoned=true removeAbandonedTimeout=60 url=jdbc:mysql://localhost:3306/mydb?autoReconnect=true/ ** webapp/tabs/WEB-INF/web.xml: resource-ref descriptionTABS DB Connection/description res-ref-namejdbc/tabscorp_tabsdb/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref ** Java code: //use the pool InitialContext cxt = new InitialContext(); if ( cxt == null ) { throw new Exception(InitialContext is NULL); } DataSource ds = (DataSource) cxt.lookup( java:/comp/env/jdbc/tabscorp_tabsdb ); if ( ds == null ) { throw new Exception(Data source not found); } Connection conn = ds.getConnection(); stmt = connection.createStatement(); ** Full Exception: HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: Error allocating a servlet instance org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454) java.lang.Thread.run(Thread.java:619) root cause java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet java.lang.ClassLoader.defineClass1(Native Method) java.lang.ClassLoader.defineClass(ClassLoader.java:621) java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) java.net.URLClassLoader.defineClass(URLClassLoader.java:260) java.net.URLClassLoader.access$000(URLClassLoader.java:56) java.net.URLClassLoader$1.run(URLClassLoader.java:195) java.security.AccessController.doPrivileged(Native Method) java.net.URLClassLoader.findClass(URLClassLoader.java:188) java.lang.ClassLoader.loadClass(ClassLoader.java:307) sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) java.lang.ClassLoader.loadClass(ClassLoader.java:252) org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1302) org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454) java.lang.Thread.run(Thread.java:619) root cause java.lang.ClassNotFoundException: javax.servlet.http.HttpServlet java.net.URLClassLoader$1.run(URLClassLoader.java:200) java.security.AccessController.doPrivileged(Native Method) java.net.URLClassLoader.findClass(URLClassLoader.java:188) java.lang.ClassLoader.loadClass(ClassLoader.java:307) sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) java.lang.ClassLoader.loadClass(ClassLoader.java:252) java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) java.lang.ClassLoader.defineClass1(Native Method) java.lang.ClassLoader.defineClass(ClassLoader.java:621) java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) java.net.URLClassLoader.defineClass(URLClassLoader.java:260) java.net.URLClassLoader.access$000(URLClassLoader.java:56) java.net.URLClassLoader$1.run(URLClassLoader.java:195) java.security.AccessController.doPrivileged(Native Method) java.net.URLClassLoader.findClass(URLClassLoader.java:188)
Re: Tomcat 6 database pooling causes HttpServlet class not found exception
I really doubt the database pooling is causing the issue. More likely your deployment is doing something to remove the servlet-api.jar or duplicating it somewhere. What do you have in tomcat's lib directory and in your webapp's WEB-INF/lib directory? --David Lucas Vickers wrote: Hello, I am trying to configure DB pooling in Tomcat 6. The combination of the elements below causes the exception: java.lang.ClassNotFoundException: javax.servlet.http.HttpServlet I have followed the directions on http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howto.html thoroughly so I am confused. The only thing I am doing a little different is I have placed my db resource in the conf/context.xml , but I have also seen the same issue when placed in my META-INF/context.xml Any ideas will be greatly appreciated! I think it's the entry in context.xml that causes the issue. ** conf/context.xml: Resource name=jdbc/tabscorp_tabsdb auth=Container type=javax.sql.DataSource maxActive=100 maxIdle=30 maxWait=1 username=login password=pass driverClassName=com.mysql.jdbc.Driver logAbandoned=true removeAbandoned=true removeAbandonedTimeout=60 url=jdbc:mysql://localhost:3306/mydb?autoReconnect=true/ ** webapp/tabs/WEB-INF/web.xml: resource-ref descriptionTABS DB Connection/description res-ref-namejdbc/tabscorp_tabsdb/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref ** Java code: //use the pool InitialContext cxt = new InitialContext(); if ( cxt == null ) { throw new Exception(InitialContext is NULL); } DataSource ds = (DataSource) cxt.lookup( java:/comp/env/jdbc/tabscorp_tabsdb ); if ( ds == null ) { throw new Exception(Data source not found); } Connection conn = ds.getConnection(); stmt = connection.createStatement(); ** Full Exception: HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: Error allocating a servlet instance org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454) java.lang.Thread.run(Thread.java:619) root cause java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet java.lang.ClassLoader.defineClass1(Native Method) java.lang.ClassLoader.defineClass(ClassLoader.java:621) java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) java.net.URLClassLoader.defineClass(URLClassLoader.java:260) java.net.URLClassLoader.access$000(URLClassLoader.java:56) java.net.URLClassLoader$1.run(URLClassLoader.java:195) java.security.AccessController.doPrivileged(Native Method) java.net.URLClassLoader.findClass(URLClassLoader.java:188) java.lang.ClassLoader.loadClass(ClassLoader.java:307) sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) java.lang.ClassLoader.loadClass(ClassLoader.java:252) org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1302) org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454) java.lang.Thread.run(Thread.java:619) root cause java.lang.ClassNotFoundException: javax.servlet.http.HttpServlet java.net.URLClassLoader$1.run(URLClassLoader.java:200) java.security.AccessController.doPrivileged(Native Method) java.net.URLClassLoader.findClass(URLClassLoader.java:188) java.lang.ClassLoader.loadClass(ClassLoader.java:307) sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) java.lang.ClassLoader.loadClass(ClassLoader.java:252) java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) java.lang.ClassLoader.defineClass1(Native Method) java.lang.ClassLoader.defineClass(ClassLoader.java:621)
Re: Tomcat admin webapp audit
there is a way to trace into a log file all the connections (and also every connection attempt) made into the admin tomcat webapp ? What I need to know is: login timestamp user src ip It is called AccessLogValve, http://tomcat.apache.org/tomcat-6.0-doc/config/valve.html - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat 6 database pooling causes HttpServlet class not found exception
Oh... and I see it looks like you have the JVM's security manager turned on. Have you made any adjustments to conf/catalina.policy? What's in your logs when your webapp is started? --David David Smith wrote: I really doubt the database pooling is causing the issue. More likely your deployment is doing something to remove the servlet-api.jar or duplicating it somewhere. What do you have in tomcat's lib directory and in your webapp's WEB-INF/lib directory? --David Lucas Vickers wrote: Hello, I am trying to configure DB pooling in Tomcat 6. The combination of the elements below causes the exception: java.lang.ClassNotFoundException: javax.servlet.http.HttpServlet I have followed the directions on http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howto.html thoroughly so I am confused. The only thing I am doing a little different is I have placed my db resource in the conf/context.xml , but I have also seen the same issue when placed in my META-INF/context.xml Any ideas will be greatly appreciated! I think it's the entry in context.xml that causes the issue. ** conf/context.xml: Resource name=jdbc/tabscorp_tabsdb auth=Container type=javax.sql.DataSource maxActive=100 maxIdle=30 maxWait=1 username=login password=pass driverClassName=com.mysql.jdbc.Driver logAbandoned=true removeAbandoned=true removeAbandonedTimeout=60 url=jdbc:mysql://localhost:3306/mydb?autoReconnect=true/ ** webapp/tabs/WEB-INF/web.xml: resource-ref descriptionTABS DB Connection/description res-ref-namejdbc/tabscorp_tabsdb/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref ** Java code: //use the pool InitialContext cxt = new InitialContext(); if ( cxt == null ) { throw new Exception(InitialContext is NULL); } DataSource ds = (DataSource) cxt.lookup( java:/comp/env/jdbc/tabscorp_tabsdb ); if ( ds == null ) { throw new Exception(Data source not found); } Connection conn = ds.getConnection(); stmt = connection.createStatement(); ** Full Exception: HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: Error allocating a servlet instance org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454) java.lang.Thread.run(Thread.java:619) root cause java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet java.lang.ClassLoader.defineClass1(Native Method) java.lang.ClassLoader.defineClass(ClassLoader.java:621) java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) java.net.URLClassLoader.defineClass(URLClassLoader.java:260) java.net.URLClassLoader.access$000(URLClassLoader.java:56) java.net.URLClassLoader$1.run(URLClassLoader.java:195) java.security.AccessController.doPrivileged(Native Method) java.net.URLClassLoader.findClass(URLClassLoader.java:188) java.lang.ClassLoader.loadClass(ClassLoader.java:307) sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) java.lang.ClassLoader.loadClass(ClassLoader.java:252) org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1302) org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454) java.lang.Thread.run(Thread.java:619) root cause java.lang.ClassNotFoundException: javax.servlet.http.HttpServlet java.net.URLClassLoader$1.run(URLClassLoader.java:200) java.security.AccessController.doPrivileged(Native Method) java.net.URLClassLoader.findClass(URLClassLoader.java:188) java.lang.ClassLoader.loadClass(ClassLoader.java:307) sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) java.lang.ClassLoader.loadClass(ClassLoader.java:252)
Re: Is it not possible to install apache-tomcat-6.0.20 with a J2SE 5 JRE
Is you Windows 32-bit, or 64-bit one? 2009/7/18 Varuna Seneviratna varunasenevira...@gmail.com: Manually you can get it running But it is not possible to install using the setup apache-tomcat-6.0.20.exe. Varuna 2009/7/18 Mark Thomas ma...@apache.org Varuna Seneviratna wrote: When I run the set up apache-tomcat-6.0.20.exe for WindowsXP I get the message from the Tomcat Setup as Failed to install tomcat6 service check your settings and permissions.I have the permissions.The only thing I think that is different from the setup needs is the JRE version.But the tomcat- preconfigured-6.0.18.zip downloaded from coreservlets.com http://coreservlets.com%20works fine with the J2SE 6 JRE. Your ideas please!! Start the service manually, tell us what error(s) you get. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- Kind Regards Varuna Varuna Seneviratna No 514 Udumulla Road Battaramulla Sri Lanka Tel : 011-2888620 Mobile:0715617141 - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Is it not possible to install apache-tomcat-6.0.20 with a J2SE 5 JRE
From: Varuna Seneviratna [mailto:varunasenevira...@gmail.com] Subject: Re: Is it not possible to install apache-tomcat-6.0.20 with a J2SE 5 JRE When I run the set up apache-tomcat-6.0.20.exe for WindowsXP I get the message from the Tomcat Setup as Failed to install tomcat6 service check your settings and permissions. Are you sure you're running under an administrator account? Is there a Tomcat service already installed, perhaps from an older version? It must be removed first. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.
Re: tomcat 6 database pooling, DataSource returning NULL connection
See http://tomcat.apache.org/tomcat-6.0-doc/deployer-howto.html#A%20word%20on%20Contexts Tomcat makes a copy of your META-INF/context.xml when the application is deployed, and will not see changes to that file unless you fully undeploy and redeploy your application. 2009/7/19 Lucas Vickers lucasvick...@gmail.com: woops, email was sent prematurely anyway, the full email: META-INF/context.xml : Resource name=jdbc/tabscorp_tabsdb auth=Container type=javax.sql.DataSource maxActive=100 maxIdle=30 maxWait=1 username=mylogin password=mypass driverClassName=com.mysql.jdbc.Driver logAbandoned=true removeAbandoned=true removeAbandonedTimeout=60 url=jdbc:mysql://localhost:3306/mydb?autoReconnect=true/ WEB-INF/web.xml : resource-ref descriptionTABS DB Connection/description res-ref-namejdbc/tabscorp_tabsdb/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref Java Code: InitialContext cxt = new InitialContext(); if ( cxt == null ) { throw new Exception(InitialContext is NULL); } DataSource ds = (DataSource) cxt.lookup( java:/comp/env/jdbc/tabscorp_tabsdb ); if ( ds == null ) { throw new Exception(Data source not found); } Connection conn = ds.getConnection(); if ( conn == null) { throw new Exception(Connection is null); } stmt = connection.createStatement(); I am getting a conn == null , but no other information, so I am having trouble debugging. suggestions? thanks - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Tomcat 6 database pooling causes HttpServlet class not found exception
From: David Smith [mailto:d...@cornell.edu] Subject: Re: Tomcat 6 database pooling causes HttpServlet class not found exception and I see it looks like you have the JVM's security manager turned on. What makes you think so? The doPrivileged() calls and SecureClassLoader usage occur with or without a security manager; what happens inside those places is what's different. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: tomcat install/testing help.
Tom, I tried responding to you off-line, but alaska.gov does not seem to like your mail address. Basically, it sounds like you have a permissions problem with the account under which Tomcat runs. By default, the Tomcat service runs as the Local System account, so that account needs appropriate access to %CATALINA_HOME% (where Tomcat is installed), and its subdirectories. I hope that helps. /mde/ --- On Fri, 7/17/09, Burton, Tom (DOR sponsored) tom.bur...@alaska.gov wrote: From: Burton, Tom (DOR sponsored) tom.bur...@alaska.gov Subject: tomcat install/testing help. To: users@tomcat.apache.org Date: Friday, July 17, 2009, 5:51 PM I've been trying to get tomcat and netbeans to work properly on my new computer. I'm running a windows XP computer. I have been able to get tomcat and netbeans to install successfully. However I've been unable to get them to work together correctly. I've tried installing from the executable and running the standalone version. I've removed the standalone and uninstalled/reinstalled the version with the installer. I've tried installing some software that works on our production servers just fine. It currently gives me ServletException when I try to load the / directory in my browser. I have another strange issue as well. The servlet code examples that come with tomcat work just fine but bundled jsp code examples do not they all seem to throw an AbstractMethodError exception. Any help and or suggestions would be much appreciated. I'd be happy to provide some of the trace roots if you think it will help in diagnosing what I did wrong in seting everything up. Thanks in advance, Tom Burton - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat 6 database pooling causes HttpServlet class not found exception
Odd, I did not explicitly enable the security manager, but this makes sense. I try logging directly from my servlet (by doing a stack trace into a log file), which seems to be causing this issue. thanks! On Sat, Jul 18, 2009 at 6:13 PM, David Smith d...@cornell.edu wrote: Oh... and I see it looks like you have the JVM's security manager turned on. Have you made any adjustments to conf/catalina.policy? What's in your logs when your webapp is started? --David David Smith wrote: I really doubt the database pooling is causing the issue. More likely your deployment is doing something to remove the servlet-api.jar or duplicating it somewhere. What do you have in tomcat's lib directory and in your webapp's WEB-INF/lib directory? --David Lucas Vickers wrote: Hello, I am trying to configure DB pooling in Tomcat 6. The combination of the elements below causes the exception: java.lang.ClassNotFoundException: javax.servlet.http.HttpServlet I have followed the directions on http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howto.html thoroughly so I am confused. The only thing I am doing a little different is I have placed my db resource in the conf/context.xml , but I have also seen the same issue when placed in my META-INF/context.xml Any ideas will be greatly appreciated! I think it's the entry in context.xml that causes the issue. ** conf/context.xml: Resource name=jdbc/tabscorp_tabsdb auth=Container type=javax.sql.DataSource maxActive=100 maxIdle=30 maxWait=1 username=login password=pass driverClassName=com.mysql.jdbc.Driver logAbandoned=true removeAbandoned=true removeAbandonedTimeout=60 url=jdbc:mysql://localhost:3306/mydb?autoReconnect=true/ ** webapp/tabs/WEB-INF/web.xml: resource-ref descriptionTABS DB Connection/description res-ref-namejdbc/tabscorp_tabsdb/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref ** Java code: //use the pool InitialContext cxt = new InitialContext(); if ( cxt == null ) { throw new Exception(InitialContext is NULL); } DataSource ds = (DataSource) cxt.lookup( java:/comp/env/jdbc/tabscorp_tabsdb ); if ( ds == null ) { throw new Exception(Data source not found); } Connection conn = ds.getConnection(); stmt = connection.createStatement(); ** Full Exception: HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: Error allocating a servlet instance org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454) java.lang.Thread.run(Thread.java:619) root cause java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet java.lang.ClassLoader.defineClass1(Native Method) java.lang.ClassLoader.defineClass(ClassLoader.java:621) java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) java.net.URLClassLoader.defineClass(URLClassLoader.java:260) java.net.URLClassLoader.access$000(URLClassLoader.java:56) java.net.URLClassLoader$1.run(URLClassLoader.java:195) java.security.AccessController.doPrivileged(Native Method) java.net.URLClassLoader.findClass(URLClassLoader.java:188) java.lang.ClassLoader.loadClass(ClassLoader.java:307) sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) java.lang.ClassLoader.loadClass(ClassLoader.java:252) org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1302) org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454) java.lang.Thread.run(Thread.java:619) root cause java.lang.ClassNotFoundException:
Re: tomcat 6 database pooling, DataSource returning NULL connection
I am doing a static install and restarting my tomcat each time I make a file change, so I do not think this is the issue. thanks tho On Sat, Jul 18, 2009 at 8:41 PM, Konstantin Kolinko knst.koli...@gmail.comwrote: See http://tomcat.apache.org/tomcat-6.0-doc/deployer-howto.html#A%20word%20on%20Contexts Tomcat makes a copy of your META-INF/context.xml when the application is deployed, and will not see changes to that file unless you fully undeploy and redeploy your application. 2009/7/19 Lucas Vickers lucasvick...@gmail.com: woops, email was sent prematurely anyway, the full email: META-INF/context.xml : Resource name=jdbc/tabscorp_tabsdb auth=Container type=javax.sql.DataSource maxActive=100 maxIdle=30 maxWait=1 username=mylogin password=mypass driverClassName=com.mysql.jdbc.Driver logAbandoned=true removeAbandoned=true removeAbandonedTimeout=60 url=jdbc:mysql://localhost:3306/mydb?autoReconnect=true/ WEB-INF/web.xml : resource-ref descriptionTABS DB Connection/description res-ref-namejdbc/tabscorp_tabsdb/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref Java Code: InitialContext cxt = new InitialContext(); if ( cxt == null ) { throw new Exception(InitialContext is NULL); } DataSource ds = (DataSource) cxt.lookup( java:/comp/env/jdbc/tabscorp_tabsdb ); if ( ds == null ) { throw new Exception(Data source not found); } Connection conn = ds.getConnection(); if ( conn == null) { throw new Exception(Connection is null); } stmt = connection.createStatement(); I am getting a conn == null , but no other information, so I am having trouble debugging. suggestions? thanks - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: [OT] Apache httpd prefork versus worker MPM
the inherent problem with multi-threaded model vs prefork n processes http://blog.zakame.net/tips/apache2-worker-lowmem http://www.experts-exchange.com/Software/Server_Software/Web_Servers/Apache/Q_24192924.html rule seems to be more than 1 CPU go with worker 1 CPU go with MPM once you set your path on Worker all modules and all binaries under Apache have to be multi-threaded YMMV Martin __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Date: Fri, 17 Jul 2009 21:17:51 -0400 From: ch...@christopherschultz.net To: users@tomcat.apache.org Subject: [OT] Apache httpd prefork versus worker MPM -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, I've been working with Apache httpd and Tomcat together with mod_jk for about 10 years, and I've always been using the prefork MPM. I'm setting up a new development server with Debian Lenny and apt-get prefers to install the worker MPM. I can definitely install the prefork MPM if I want, but I figured I'd take this opportunity to ask about the worker MPM. Has anyone had any configuration problems when using the worker MPM? Any performance problems? The worker MPM is advertised as high-performance and I was wondering if it would be a PITA to use or anything like that. If the worker MPM really is higher performance, I'd prefer to use that, but only if there are no big gotchas that anyone can think of. I'd appreciate some feedback from folks that have used both the prefork and worker MPMs at one point, and might be able to comment on their different experiences. Thanks, - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkphIr8ACgkQ9CaO5/Lv0PCM8gCePSdyOk5U1rt5yndOsrta/E+B yuQAnjmhsTZn6s9Fg0Z8x3QgJRh9ejw7 =Fmnd -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org _ Windows Live™ SkyDrive™: Store, access, and share your photos. See how. http://windowslive.com/Online/SkyDrive?ocid=TXT_TAGLM_WL_CS_SD_photos_072009
RE: Tomcat 6 database pooling causes HttpServlet class not found exception
From: Lucas Vickers [mailto:lucasvick...@gmail.com] Subject: Re: Tomcat 6 database pooling causes HttpServlet class not found exception Well I can confirm that adding the classes to catalina.policy even when i am not explicitly running with -security , does fix the issue What exactly did you change in catalina.policy? What happens if you undo those changes (and only those changes) now? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: tomcat 6 database pooling, DataSource returning NULL connection
From: Lucas Vickers [mailto:lucasvick...@gmail.com] Subject: Re: tomcat 6 database pooling, DataSource returning NULL connection I am doing a static install and restarting my tomcat each time I make a file change, so I do not think this is the issue. Actually, that's exactly the procedure that can cause the problem. When the webapp is first loaded, Tomcat copies the webapp's META-INF/context.xml file to conf/Catalina/[host]/[appName].xml. As long as the conf/Catalina/[host]/[appName].xml file exists, it will override the one in META-INF/context.xml. Proper undeployment will remove the copied Context element; just copying over a new version of the webapp will not. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat 6 database pooling causes HttpServlet class not found exception
Well I can confirm that adding the classes to catalina.policy even when i am not explicitly running with -security , does fix the issue On Sat, Jul 18, 2009 at 8:48 PM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: David Smith [mailto:d...@cornell.edu] Subject: Re: Tomcat 6 database pooling causes HttpServlet class not found exception and I see it looks like you have the JVM's security manager turned on. What makes you think so? The doPrivileged() calls and SecureClassLoader usage occur with or without a security manager; what happens inside those places is what's different. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Is it not possible to install apache-tomcat-6.0.20 with a J2SE 5 JRE
32-bit 2009/7/19 Konstantin Kolinko knst.koli...@gmail.com Is you Windows 32-bit, or 64-bit one? 2009/7/18 Varuna Seneviratna varunasenevira...@gmail.com: Manually you can get it running But it is not possible to install using the setup apache-tomcat-6.0.20.exe. Varuna 2009/7/18 Mark Thomas ma...@apache.org Varuna Seneviratna wrote: When I run the set up apache-tomcat-6.0.20.exe for WindowsXP I get the message from the Tomcat Setup as Failed to install tomcat6 service check your settings and permissions.I have the permissions.The only thing I think that is different from the setup needs is the JRE version.But the tomcat- preconfigured-6.0.18.zip downloaded from coreservlets.com http://coreservlets.com%20works fine with the J2SE 6 JRE. Your ideas please!! Start the service manually, tell us what error(s) you get. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- Kind Regards Varuna Varuna Seneviratna No 514 Udumulla Road Battaramulla Sri Lanka Tel : 011-2888620 Mobile:0715617141 - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- Kind Regards Varuna Varuna Seneviratna No 514 Udumulla Road Battaramulla Sri Lanka Tel : 011-2888620 Mobile:0715617141
Re: Tomcat 6 database pooling causes HttpServlet class not found exception
// == WEB APPLICATION PERMISSIONS = // These permissions are granted by default to all web applications // In addition, a web application will be given a read FilePermission // and JndiPermission for all files and directories in its document root. grant { ... // Needed for TABS permission java.util.PropertyPermission org.apache.tomcat.dbcp.*, read; permission java.util.PropertyPermission javax.servlet.*, read; permission java.util.PropertyPermission javax.servlet.http.*, read; was added. I tested by commenting out and then uncommenting. Works when it's not commented out. I run using catalina.sh start if commented out, I get: HTTP Status 500 - -- *type* Exception report *message* *description* *The server encountered an internal error () that prevented it from fulfilling this request.* *exception* javax.servlet.ServletException: Error allocating a servlet instance org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454) java.lang.Thread.run(Thread.java:619) *root cause* java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet java.lang.ClassLoader.defineClass1(Native Method) java.lang.ClassLoader.defineClass(ClassLoader.java:621) java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) java.net.URLClassLoader.defineClass(URLClassLoader.java:260) java.net.URLClassLoader.access$000(URLClassLoader.java:56) java.net.URLClassLoader$1.run(URLClassLoader.java:195) java.security.AccessController.doPrivileged(Native Method) java.net.URLClassLoader.findClass(URLClassLoader.java:188) java.lang.ClassLoader.loadClass(ClassLoader.java:307) sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) java.lang.ClassLoader.loadClass(ClassLoader.java:252) org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1302) org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454) java.lang.Thread.run(Thread.java:619) *root cause* java.lang.ClassNotFoundException: javax.servlet.http.HttpServlet java.net.URLClassLoader$1.run(URLClassLoader.java:200) java.security.AccessController.doPrivileged(Native Method) java.net.URLClassLoader.findClass(URLClassLoader.java:188) java.lang.ClassLoader.loadClass(ClassLoader.java:307) sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) java.lang.ClassLoader.loadClass(ClassLoader.java:252) java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) java.lang.ClassLoader.defineClass1(Native Method) java.lang.ClassLoader.defineClass(ClassLoader.java:621) java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) java.net.URLClassLoader.defineClass(URLClassLoader.java:260) java.net.URLClassLoader.access$000(URLClassLoader.java:56) java.net.URLClassLoader$1.run(URLClassLoader.java:195) java.security.AccessController.doPrivileged(Native Method) java.net.URLClassLoader.findClass(URLClassLoader.java:188) java.lang.ClassLoader.loadClass(ClassLoader.java:307) sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) java.lang.ClassLoader.loadClass(ClassLoader.java:252) org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1302) org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454) java.lang.Thread.run(Thread.java:619) *note* *The full stack trace of the root cause is available in the Apache Tomcat/6.0.20 logs.*
tomcat 6 database pooling, DataSource returning NULL connection
I am trying to configure database pooling in tomcat 6. I have: /META-INF/context.xml : Resource name=jdbc/tabscorp_tabsdb auth=Container type=javax.sql.DataSource maxActive=100 maxIdle=30 maxWait=1 username=tabscorp_tabs password=Ramsalot52 driverClassName=com.mysql.jdbc.Driver logAbandoned=true removeAbandoned=true removeAbandonedTimeout=60 url=jdbc:mysql://localhost:3306/tabscorp_tabsdb?autoReconnect=true/
Re: tomcat 6 database pooling, DataSource returning NULL connection
woops, email was sent prematurely anyway, the full email: META-INF/context.xml : Resource name=jdbc/tabscorp_tabsdb auth=Container type=javax.sql.DataSource maxActive=100 maxIdle=30 maxWait=1 username=mylogin password=mypass driverClassName=com.mysql.jdbc.Driver logAbandoned=true removeAbandoned=true removeAbandonedTimeout=60 url=jdbc:mysql://localhost:3306/mydb?autoReconnect=true/ WEB-INF/web.xml : resource-ref descriptionTABS DB Connection/description res-ref-namejdbc/tabscorp_tabsdb/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref Java Code: InitialContext cxt = new InitialContext(); if ( cxt == null ) { throw new Exception(InitialContext is NULL); } DataSource ds = (DataSource) cxt.lookup( java:/comp/env/jdbc/tabscorp_tabsdb ); if ( ds == null ) { throw new Exception(Data source not found); } Connection conn = ds.getConnection(); if ( conn == null) { throw new Exception(Connection is null); } stmt = connection.createStatement(); I am getting a conn == null , but no other information, so I am having trouble debugging. suggestions? thanks
Converting to container based security.
Tomcat 6.0.18 Java 1.6.0_14 RedHat 5.2 Server Oracle 10g I've got an old web app that was originally spec'd in 1999. Last year, I got it migrated from Tomcat 3.2.4 for 6.0.16 and more recently from Java 1.4.2 to 1.6. I'm gradually trying to modernize it. I just converted from using an old database connection pool library from that period to using a DataSource managed by Tomcat/DBCP (which was surprisingly easy). Now I want to tackle container based security. The app currently manages its own security. It's all servlets which do a little session magic on their own. The login servlet hits the database where the user names and password are. I want to start using JSP and/or maybe JSF, which is part of the reason I want to go to container based security. I'm thinking that the login.jsp can be set up with a bean to massage the session so that old servlets will still be satisfied that the session is legit. Newer servlets can dispense with that security and older ones can have it taken out gradually over time (over 200 of them). While it's actually just one web app, conceptually, it's two. There's one side which is an administrative side, and another for the general public. Some servlets are used by one side, other servlets are used by the other. They all use the same database, and share a lot of the same objects and data, however the user names and passwords are in different database tables. Also, the public side can be used anonymously (no need to log in). Login mainly gives the public side the ability to store preferences so that it doesn't need to be re-entered and keep track of history. I've been going over the realm documentation, and it's a little confusing. I think that I'm actually going to need two realms, one for each side (remember that they use different tables). I'm not exactly sure how to set that up. I'd like to use a DataSourceRealm, using the DataSource I've already set up, however I've also got the problem that the programmers who set this up stored the passwords UNIX/Linux style with a Java implementation of crypt(3), which doesn't seem to be one of the options for MessageDigest. I hope I'm wrong about that. Given how common it is in the UNIX/Linux world, I'd think that would be a good one to have (and please don't tell me that it's not that secure -- that's not the point -- this is a compatibility issue). Does this mean I'm going to need to write my own custom realm? That looks fairly confusing too. Can someone please point me at a good overall strategy for how to tackle all of this, given these constraints? I've only spent a few hours trying to go through the docs but I'm feeling a bit overwhelmed and really need some perspective.
Re: Tomcat 6 database pooling causes HttpServlet class not found exception
For what it's worth. Every now and then tomcat throws that exception again. I then shut down tomcat, touch the .policy file, start tomcat, and it works. On Sat, Jul 18, 2009 at 9:29 PM, Lucas Vickers lucasvick...@gmail.comwrote: // == WEB APPLICATION PERMISSIONS = // These permissions are granted by default to all web applications // In addition, a web application will be given a read FilePermission // and JndiPermission for all files and directories in its document root. grant { ... // Needed for TABS permission java.util.PropertyPermission org.apache.tomcat.dbcp.*, read; permission java.util.PropertyPermission javax.servlet.*, read; permission java.util.PropertyPermission javax.servlet.http.*, read; was added. I tested by commenting out and then uncommenting. Works when it's not commented out. I run using catalina.sh start if commented out, I get: HTTP Status 500 - -- *type* Exception report *message* *description* *The server encountered an internal error () that prevented it from fulfilling this request.* *exception* javax.servlet.ServletException: Error allocating a servlet instance org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454) java.lang.Thread.run(Thread.java:619) *root cause* java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet java.lang.ClassLoader.defineClass1(Native Method) java.lang.ClassLoader.defineClass(ClassLoader.java:621) java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) java.net.URLClassLoader.defineClass(URLClassLoader.java:260) java.net.URLClassLoader.access$000(URLClassLoader.java:56) java.net.URLClassLoader$1.run(URLClassLoader.java:195) java.security.AccessController.doPrivileged(Native Method) java.net.URLClassLoader.findClass(URLClassLoader.java:188) java.lang.ClassLoader.loadClass(ClassLoader.java:307) sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) java.lang.ClassLoader.loadClass(ClassLoader.java:252) org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1302) org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454) java.lang.Thread.run(Thread.java:619) *root cause* java.lang.ClassNotFoundException: javax.servlet.http.HttpServlet java.net.URLClassLoader$1.run(URLClassLoader.java:200) java.security.AccessController.doPrivileged(Native Method) java.net.URLClassLoader.findClass(URLClassLoader.java:188) java.lang.ClassLoader.loadClass(ClassLoader.java:307) sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) java.lang.ClassLoader.loadClass(ClassLoader.java:252) java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) java.lang.ClassLoader.defineClass1(Native Method) java.lang.ClassLoader.defineClass(ClassLoader.java:621) java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) java.net.URLClassLoader.defineClass(URLClassLoader.java:260) java.net.URLClassLoader.access$000(URLClassLoader.java:56) java.net.URLClassLoader$1.run(URLClassLoader.java:195) java.security.AccessController.doPrivileged(Native Method) java.net.URLClassLoader.findClass(URLClassLoader.java:188) java.lang.ClassLoader.loadClass(ClassLoader.java:307) sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) java.lang.ClassLoader.loadClass(ClassLoader.java:252) org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1302) org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
Re: Is it not possible to install apache-tomcat-6.0.20 with a J2SE 5 JRE
2009/7/19 Caldarale, Charles R chuck.caldar...@unisys.com From: Varuna Seneviratna [mailto:varunasenevira...@gmail.com] Subject: Re: Is it not possible to install apache-tomcat-6.0.20 with a J2SE 5 JRE When I run the set up apache-tomcat-6.0.20.exe for WindowsXP I get the message from the Tomcat Setup as Failed to install tomcat6 service check your settings and permissions. Are you sure you're running under an administrator account? Is there a Tomcat service already installed, perhaps from an older version? It must be removed first. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. Yes I have a administrator account.It is even listed under User counts.The unable to install message come when the dialog box displays using jvm: c:/.../../Java/jre6/bin/client/jvm.dll -- Kind Regards Varuna Varuna Seneviratna No 514 Udumulla Road Battaramulla Sri Lanka Tel : 011-2888620 Mobile:0715617141