Re: War archive issue
On 21 Jan 2013, at 05:42, vicky007aggar...@yahoo.co.in vicky007aggar...@yahoo.co.in wrote: Is this is an issue in tomcat that if we Deploy an archive file having hypen(-) , then the tomcat creates multiple directories while deploying it eg:- if the war file name is demo-rest.war then tomcat creates two Directories i.e demo-rest demo Please suggest, does this is the expected behavior You should know to include version info by now. p Thanks,o Vick - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
smylink inside webapps to eclipse project fails
Hello. I am failing to deploy a eclipse/spring project via smylink to my tomcat. Apache Tomcat/7.0.26 1.6.0_24-b24 Sun Microsystems Inc. Linux 3.2.0-35-generic-pae i386 My plan is to use a symlink to the spring workspace: # root@machine:/var/lib/tomcat7/webapps# ls -la drwxrwxr-x 4 tomcat7 tomcat7 4096 Jan 21 09:27 . drwxr-xr-x 6 rootroot4096 Jan 20 20:59 .. drwxr-xr-x 3 rootroot4096 Jan 20 21:30 ROOT lrwxrwxrwx 1 rootroot 50 Jan 21 09:19 springapp - /home/usr/Lab/SpringWorkspace/springapp/war/ drwxr-xr-x 3 rootroot4096 Jan 21 09:27 springapp2 # The copied folder springapp2 works fine, the webapp is reachable in the browser via localhost:8080/springapp2/ The symlink springapp delivers a 404 in the browser trying to open localhost:8080/springapp/ The logfile output is: # 21.01.2013 09:29:33 org.apache.catalina.startup.HostConfig start SCHWERWIEGEND: Unable to create directory for deployment: /var/lib/tomcat7/webapps/springapp 21.01.2013 09:29:33 org.apache.catalina.startup.HostConfig start SCHWERWIEGEND: Application base [/var/lib/tomcat7/webapps/springapp] for host [sprigtestsymlink] does not exist or is not a directory. deployOnStartUp and autoDeploy have been set to false to prevent deployment errors. Other errors may still occur. # /var/lib/tomcat7/conf/sever.xml: # Host name=localhost appBase=webapps unpackWARs=true autoDeploy=true Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=localhost_access_log. suffix=.txt pattern=%h %l %u %t quot;%rquot; %s %b / /Host Host name=sprigtestsymlink appBase=webapps/springapp unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false /Host Host name=springtestcopiedfolder appBase=webapps/springapp2 unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false /Host # I would appriciate any hint. Greetings from Berlin, Jan kessinger - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Fw: Can not understand how maxThreads of Connectors works
On 21/01/2013 07:07, Hermes Flying wrote: Hi, Is there any update on this? I don't see any problem setting maxThreads=0 And if you try making a request with a Tomcat instance that uses that configuration? Mark Thank you - Forwarded Message - From: Hermes Flying flyingher...@yahoo.com To: Tomcat Users List users@tomcat.apache.org Sent: Friday, January 18, 2013 8:55 AM Subject: Re: Can not understand how maxThreads of Connectors works Hi Chris, Tried with this simple server.xml and maxThreads=0 but I did not see any kind of errors.Attached the catalina logs ?xml version='1.0' encoding='utf-8'? Server port=8005 shutdown=SHUTDOWN !--APR library loader. Documentation at /docs/apr.html -- Listener className=org.apache.catalina.core.AprLifecycleListener SSLEngine=on / !--Initialize Jasper prior to webapps are loaded. Documentation at /docs/jasper-howto.html -- Listener className=org.apache.catalina.core.JasperListener / !-- Prevent memory leaks due to use of particular java/javax APIs-- Listener className=org.apache.catalina.core.JreMemoryLeakPreventionListener / !-- JMX Support for the Tomcat server. Documentation at /docs/non-existent.html -- Listener className=org.apache.catalina.mbeans.ServerLifecycleListener / Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener / !-- Global JNDI resources Documentation at /docs/jndi-resources-howto.html -- GlobalNamingResources !-- Editable user database that can also be used by UserDatabaseRealm to authenticate users -- Resource name=UserDatabase auth=Container type=org.apache.catalina.UserDatabase description=User database that can be updated and saved factory=org.apache.catalina.users.MemoryUserDatabaseFactory pathname=conf/tomcat-users.xml / /GlobalNamingResources !-- A Service is a collection of one or more Connectors that share a single Container Note: A Service is not itself a Container, so you may not define subcomponents such as Valves at this level. Documentation at /docs/config/service.html -- Service name=Catalina !--The connectors can use a shared executor, you can define one or more named thread pools-- !-- Executor name=tomcatThreadPool namePrefix=catalina-exec- maxThreads=150 minSpareThreads=4/ -- !-- A Connector represents an endpoint by which requests are received and responses are returned. Documentation at : Java HTTP Connector: /docs/config/http.html (blocking non-blocking) Java AJP Connector: /docs/config/ajp.html APR (HTTP/AJP) Connector: /docs/apr.html Define a non-SSL HTTP/1.1 Connector on port 8080 -- Connector port=8080 maxThreads=0 acceptCount=1 protocol=HTTP/1.1 connectionTimeout=2 redirectPort=8443 / !-- Define an AJP 1.3 Connector on port 8009 -- Connector port=8009 protocol=AJP/1.3 redirectPort=8443 / !-- An Engine represents the entry point (within Catalina) that processes every request. The Engine implementation for Tomcat stand alone analyzes the HTTP headers included with the request, and passes them on to the appropriate Host (virtual host). Documentation at /docs/config/engine.html -- !-- You should set jvmRoute to support load-balancing via AJP ie : Engine name=Catalina defaultHost=localhost jvmRoute=jvm1 -- Engine name=Catalina defaultHost=localhost !-- This Realm uses the UserDatabase configured in the global JNDI resources under the key UserDatabase. Any edits that are performed against this UserDatabase are immediately available for use by the Realm. -- Realm className=org.apache.catalina.realm.UserDatabaseRealm resourceName=UserDatabase/ !-- Define the default virtual host Note: XML Schema validation will not work with Xerces 2.2. -- Host name=localhost appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false /Host /Engine /Service /Server From: Christopher Schultz ch...@christopherschultz.net To: Tomcat Users List users@tomcat.apache.org Sent: Thursday, January 17, 2013 6:57 PM Subject: Re: Can not understand how maxThreads of Connectors works -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 André, On 1/17/13 3:32 AM, André Warnier wrote: Quite a few messages ago, I asked the OP if he could copy/paste his server.xml. Yes. Getting information from the OP seems to be difficult. The reason was that if his config uses an Executor, then I believe the Threads settings in the
RE: smylink inside webapps to eclipse project fails
See comments inline Med venlig hilsen/Kind regards Casper/Kalle -Original Message- From: Jan Kessinger [mailto:jankessin...@gmx.de] Sent: 21. januar 2013 10:00 To: users@tomcat.apache.org Subject: smylink inside webapps to eclipse project fails Hello. I am failing to deploy a eclipse/spring project via smylink to my tomcat. Apache Tomcat/7.0.26 1.6.0_24-b24 Sun Microsystems Inc. Linux 3.2.0-35-generic-pae i386 My plan is to use a symlink to the spring workspace: # root@machine:/var/lib/tomcat7/webapps# ls -la drwxrwxr-x 4 tomcat7 tomcat7 4096 Jan 21 09:27 . drwxr-xr-x 6 rootroot4096 Jan 20 20:59 .. drwxr-xr-x 3 rootroot4096 Jan 20 21:30 ROOT lrwxrwxrwx 1 rootroot 50 Jan 21 09:19 springapp - /home/usr/Lab/SpringWorkspace/springapp/war/ drwxr-xr-x 3 rootroot4096 Jan 21 09:27 springapp2 # The copied folder springapp2 works fine, the webapp is reachable in the browser via localhost:8080/springapp2/ The symlink springapp delivers a 404 in the browser trying to open localhost:8080/springapp/ The logfile output is: # 21.01.2013 09:29:33 org.apache.catalina.startup.HostConfig start SCHWERWIEGEND: Unable to create directory for deployment: /var/lib/tomcat7/webapps/springapp 21.01.2013 09:29:33 org.apache.catalina.startup.HostConfig start SCHWERWIEGEND: Application base [/var/lib/tomcat7/webapps/springapp] for host [sprigtestsymlink] does not exist or is not a directory. deployOnStartUp and autoDeploy have been set to false to prevent deployment errors. Other errors may still occur. Kalle: To me this indicates that tomcat can't read the symlink/folder. Are you sure the permissions are right? Also I'm no expert in tomcat so I'm not quite sure that tomcat can actually handle symlinks (but I can't see why it wouldn't). # /var/lib/tomcat7/conf/sever.xml: # Host name=localhost appBase=webapps unpackWARs=true autoDeploy=true Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=localhost_access_log. suffix=.txt pattern=%h %l %u %t quot;%rquot; %s %b / /Host Host name=sprigtestsymlink appBase=webapps/springapp unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false /Host Kalle: This is wrong. Check http://wiki.apache.org/tomcat/TomcatDevelopmentVirtualHosts. It clearly states that all appbases should be placed outside the webapps folder (which is the appbase for the localhost Host element). Remove the Host (also the one below) and try again. Host name=springtestcopiedfolder appBase=webapps/springapp2 unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false /Host # I would appriciate any hint. Greetings from Berlin, Jan kessinger - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat 7.0.34 and ecj 3.7.2/4.2.1
Hi Guys, Where can I find the ecj 4.2.1 jar?, except from the tomcat distribution. thank you. On Fri, Jan 11, 2013 at 1:47 PM, Konstantin Kolinko knst.koli...@gmail.comwrote: 2013/1/11 Ralph Schaer ralphsch...@gmail.com: Hi Tomcat 7.0.34 bumped ecj to version 4.2.1. But the pom file of tomcat-embed-jasper still points to version 3.7.2 of ecj. Is it safe to use ecj 3.7.2 with Tomcat 7.0.34? It's unfortunately not possible to override this, because I haven't found the 4.2.1 artifact in the central repository. 1. Thank you for reporting the issue. I fixed this in svn, but 7.0.35 has already been tagged several hours ago. 2. Absence of ecj 4.2.1 in central repository is not a stopper. It happened before and is expected to happen in the future. You can install it locally. http://markmail.org/message/xyw3bv2flmbhsdt4 https://bugs.eclipse.org/bugs/show_bug.cgi?id=283745 3. I personally would recommend to go with 4.2.1. It is known that Eclipse 3.7.2 fails to compile the current Tomcat trunk sources (the compiler crashes), 4.2.1 works fine. There was report by Jess Holle on a crash with 4.2.1, but what causes the crash is unknown and I have not observed anything like that. http://tomcat.markmail.org/thread/oe5wwu3dm2zcjp4m Anyway, if you are in doubt, you may try to run precompilation for your JSPs with JspC just to make sure that everything compiles nicely. (I do not suggest to actually use the compiled classes. I mean just to run a compilation to check that they are compilable). 4. The bump of ecj version included a change in one of java classes. @Override is a compile-time annotation. You should still be able to run with 3.7.2. http://svn.apache.org/viewvc?view=revisionrevision=1411587 Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- Supun Malinga
Re: Tomcat 7.0.34 and ecj 3.7.2/4.2.1
You find the ecj jar on this site: http://download.eclipse.org/eclipse/downloads/drops4/R-4.2.1-201209141800/ Section: JDT Core Batch Compiler Ralph On Mon, Jan 21, 2013 at 11:23 AM, Supun Malinga sup...@wso2.com wrote: Hi Guys, Where can I find the ecj 4.2.1 jar?, except from the tomcat distribution. thank you. On Fri, Jan 11, 2013 at 1:47 PM, Konstantin Kolinko knst.koli...@gmail.comwrote: 2013/1/11 Ralph Schaer ralphsch...@gmail.com: Hi Tomcat 7.0.34 bumped ecj to version 4.2.1. But the pom file of tomcat-embed-jasper still points to version 3.7.2 of ecj. Is it safe to use ecj 3.7.2 with Tomcat 7.0.34? It's unfortunately not possible to override this, because I haven't found the 4.2.1 artifact in the central repository. 1. Thank you for reporting the issue. I fixed this in svn, but 7.0.35 has already been tagged several hours ago. 2. Absence of ecj 4.2.1 in central repository is not a stopper. It happened before and is expected to happen in the future. You can install it locally. http://markmail.org/message/xyw3bv2flmbhsdt4 https://bugs.eclipse.org/bugs/show_bug.cgi?id=283745 3. I personally would recommend to go with 4.2.1. It is known that Eclipse 3.7.2 fails to compile the current Tomcat trunk sources (the compiler crashes), 4.2.1 works fine. There was report by Jess Holle on a crash with 4.2.1, but what causes the crash is unknown and I have not observed anything like that. http://tomcat.markmail.org/thread/oe5wwu3dm2zcjp4m Anyway, if you are in doubt, you may try to run precompilation for your JSPs with JspC just to make sure that everything compiles nicely. (I do not suggest to actually use the compiled classes. I mean just to run a compilation to check that they are compilable). 4. The bump of ecj version included a change in one of java classes. @Override is a compile-time annotation. You should still be able to run with 3.7.2. http://svn.apache.org/viewvc?view=revisionrevision=1411587 Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- Supun Malinga
Re: War archive issue
Can u please explain a bit on this Thanks, Vick On Jan 21, 2013, at 2:26 PM, p...@pidster.com wrote: On 21 Jan 2013, at 05:42, vicky007aggar...@yahoo.co.in vicky007aggar...@yahoo.co.in wrote: Is this is an issue in tomcat that if we Deploy an archive file having hypen(-) , then the tomcat creates multiple directories while deploying it eg:- if the war file name is demo-rest.war then tomcat creates two Directories i.e demo-rest demo Please suggest, does this is the expected behavior You should know to include version info by now. p Thanks,o Vick - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: smylink inside webapps to eclipse project fails
Hi, Assuming you mean using sym links. I encountered the same problem and I found that one has to set the attribute allowLinking=true in the Context element of the web-application. Regards, Harm-Jan Zwinderman Cebuned.svipr.nl Op 21-1-2013 10:00, Jan Kessinger schreef: Hello. I am failing to deploy a eclipse/spring project via smylink to my tomcat. Apache Tomcat/7.0.26 1.6.0_24-b24 Sun Microsystems Inc. Linux 3.2.0-35-generic-pae i386 My plan is to use a symlink to the spring workspace: # root@machine:/var/lib/tomcat7/webapps# ls -la drwxrwxr-x 4 tomcat7 tomcat7 4096 Jan 21 09:27 . drwxr-xr-x 6 rootroot4096 Jan 20 20:59 .. drwxr-xr-x 3 rootroot4096 Jan 20 21:30 ROOT lrwxrwxrwx 1 rootroot 50 Jan 21 09:19 springapp - /home/usr/Lab/SpringWorkspace/springapp/war/ drwxr-xr-x 3 rootroot4096 Jan 21 09:27 springapp2 # The copied folder springapp2 works fine, the webapp is reachable in the browser via localhost:8080/springapp2/ The symlink springapp delivers a 404 in the browser trying to open localhost:8080/springapp/ The logfile output is: # 21.01.2013 09:29:33 org.apache.catalina.startup.HostConfig start SCHWERWIEGEND: Unable to create directory for deployment: /var/lib/tomcat7/webapps/springapp 21.01.2013 09:29:33 org.apache.catalina.startup.HostConfig start SCHWERWIEGEND: Application base [/var/lib/tomcat7/webapps/springapp] for host [sprigtestsymlink] does not exist or is not a directory. deployOnStartUp and autoDeploy have been set to false to prevent deployment errors. Other errors may still occur. # /var/lib/tomcat7/conf/sever.xml: # Host name=localhost appBase=webapps unpackWARs=true autoDeploy=true Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=localhost_access_log. suffix=.txt pattern=%h %l %u %t quot;%rquot; %s %b / /Host Host name=sprigtestsymlink appBase=webapps/springapp unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false /Host Host name=springtestcopiedfolder appBase=webapps/springapp2 unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false /Host # I would appriciate any hint. Greetings from Berlin, Jan kessinger - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Loading a DeSerialized Class to WebabbClassLoader Question
Dear List, My web application needs to deserialize both classes and objects which are sent to it. I'm using Base64 serialization, and when I transport full name.class file to a service, I can deserialize it with no problem using ObjectInputStream.readObject(). I also need to transport instances of certain classes to the application but without having the benefit of having the class loaded in the WebappClassLoader. Not surprisingly, deserializing an instance of a class fails for ClassNotFoundException. My question: When I need to transport an instance of a class, I can easily also transport the full class. This full class can be instantiated if required. How could I load this class to the WebappClassLoader and have it available there for when I need to call ois.readObject()? I want to load the (full) class to the WebClassLoader to over come the ClassNotFoundException. Env: Tomcat 7.0.14 OSCentOS release 5.8 (Final) java version 1.6.0 22 OpenJDK Runtime Environment (IcedTea6 1.10.10) (rhel-1.28.1.10.10.el5 8-x86 64) OpenJDK 64-Bit Server VM (build 20.0-b11, mixed mode) Any help appreciated, regards, Peter Lavin -- with best regards, Peter Lavin, PhD Candidate, CAG - Computer Architecture Grid Research Group, Lloyd Institute, 005, Trinity College Dublin, Ireland. +353 1 8961536 - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Problem
eclipse is an enormous resource hog..Ive seen eclipse crash when someone opens vi after eclipse is running so the problem is not tomcat but your Tomcat (sysdeo? plugin) which version Tomcat(sysdeo?) plugin are you running? Martin __ Verzicht und Vertraulichkeitanmerkung 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. From: vinit1...@live.in To: users@tomcat.apache.org Subject: RE: Problem Date: Mon, 21 Jan 2013 10:50:36 +0530 I have run the TC in standlone mode...and it is running .. but when running thru eclipse juno ...it is showing the message - Server Tomcat v7.0 Server at localhost was unable to start within 45 seconds. If the server requires more time, try increasing the timeout in the server editor. i have reinstalled the plugin and increase the start timeout...its makes no change. thanks From: mgai...@hotmail.com To: users@tomcat.apache.org Subject: RE: Problem Date: Sat, 19 Jan 2013 08:40:09 -0500 what does the TC log say.. have you run TC standalone $CATALINA_HOME\bin\catalina start if TC runs standalone but not thru eclipse then you have 2 possible problems: 1)possible Mis-configured TC eclipse plugin 2)There is a problem with TC eclipse plugin itself..probably 2a)possible version mismatch between TC plugin and child dependencies 2b)possible resource allocation issue..socket bound..not enough PermGen space etc pingback with your findings Martin__ Verzicht und Vertraulichkeitanmerkung 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. From: vinit1...@live.in To: users@tomcat.apache.org Subject: Problem Date: Sat, 19 Jan 2013 13:22:17 +0530 Hi all,I am having a problem in starting the apache tomcat server version 7.0.31 through eclipse.It is showing the message that server taking time to start the server,so increase the start time limit,after configuring this i am not able to rectify this problem. thanks
Re: War archive issue
vicky007aggar...@yahoo.co.in wrote: Can u please explain a bit on this Tomcat Host OS version Java JVM version Tomcat version (x.y.z) - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat tried to execute wine! I am going crazy?
Ahn... and to add: this error is in the tomcat webserver based on Debian GNU/Linux, looks like very strange to me (more than 14 years of linux/unix experience). Sorry if i have a bad english. 2013/1/21, Luciano Andress Martini 777u...@gmail.com: This error is found when i try to open the new version of the system in the web browser in some options. Cannot run program usr/bin/wine I think i am going crazy but i installed wine, so the error solved, but the applications still wont works properly and wine still as 0:0:0 (stopped) in ps -A | grep wine. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: War archive issue
Tomcat 6.0.35 Jdk 1.6.24 OS - Red Hat Linux 5 Thanks, Vick On Jan 21, 2013, at 6:20 PM, André Warnier a...@ice-sa.com wrote: vicky007aggar...@yahoo.co.in wrote: Can u please explain a bit on this Tomcat Host OS version Java JVM version Tomcat version (x.y.z) - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Only start manager at startup
Le 18/01/2013 17:19, David kerber a écrit : On 1/18/2013 11:06 AM, Mark Thomas wrote: On 18/01/2013 14:42, David kerber wrote: On 1/18/2013 9:18 AM, Mark Thomas wrote: On 18/01/2013 13:33, Alexandre Rubert wrote: Hello, I've more than 200app in my webapp directory with symbolic links in some images. If I activate allowLinking tomcat crash during startup because of out of memory. I'd like to disable automatic start for all applications except manager. I tried by adding deployOnStartup=false and autoDeploy=false in my server.xml but with this options I can't access to manager html. Add an explicit Context for the manager in server.xml Mark So are you saying that this is one of the rare cases where configuring a context in server.xml is appropriate? Yes. It is the only way to start a Context if autoDeploy and deployOnStartup are disabled. Thanks. I was wondering why it was left legal when it was so strongly discouraged in most references and in this list. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org I don't know how to write my new context. Do I have to write it into my host section where I set deployOnstartUp to false and autoDeploy to false ?Do you have example ? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Only start manager at startup
On 1/21/2013 8:51 AM, Alexandre Rubert wrote: Le 18/01/2013 17:19, David kerber a écrit : On 1/18/2013 11:06 AM, Mark Thomas wrote: On 18/01/2013 14:42, David kerber wrote: On 1/18/2013 9:18 AM, Mark Thomas wrote: On 18/01/2013 13:33, Alexandre Rubert wrote: Hello, I've more than 200app in my webapp directory with symbolic links in some images. If I activate allowLinking tomcat crash during startup because of out of memory. I'd like to disable automatic start for all applications except manager. I tried by adding deployOnStartup=false and autoDeploy=false in my server.xml but with this options I can't access to manager html. Add an explicit Context for the manager in server.xml Mark So are you saying that this is one of the rare cases where configuring a context in server.xml is appropriate? Yes. It is the only way to start a Context if autoDeploy and deployOnStartup are disabled. Thanks. I was wondering why it was left legal when it was so strongly discouraged in most references and in this list. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org I don't know how to write my new context. Do I have to write it into my host section where I set deployOnstartUp to false and autoDeploy to false ?Do you have example ? Yes. Here is an example from what I used to use. Note that this is only part of the server.xml, and you need to change my settings to what you use: Engine name=Catalina defaultHost=localhost Realm className=org.apache.catalina.realm.UserDatabaseRealm resourceName=UserDatabase/ Host name=localhost appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false Context path=/dir1/dir2 docBase=full path to dir where .war is located debug=0 reloadable=true autoDeploy=true unpackWARs=true crossContext=false caseSensitive=false /Context /Host /Engine - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
AW: War archive issue
This is definitely not the intended behavior for Tomcat, OR for any Application Server! If that is the case, then every web application provider must take care about correctly naming the .war file. OR Tomcat deployment routines for .war files must be corrected BUT must consider that there might be an issue that certain OS file systems might not accept a - in a directory name. Josef -Ursprüngliche Nachricht- Von: vicky007aggar...@yahoo.co.in [mailto:vicky007aggar...@yahoo.co.in] Gesendet: Montag, 21. Januar 2013 06:41 An: users@tomcat.apache.org Betreff: War archive issue Is this is an issue in tomcat that if we Deploy an archive file having hypen(-) , then the tomcat creates multiple directories while deploying it eg:- if the war file name is demo-rest.war then tomcat creates two Directories i.e demo-rest demo Please suggest, does this is the expected behavior Thanks, Vick - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: War archive issue
Are you sure you don't have some residue from a previous webapp name still hanging out under conf/catalina/localhost? That has bitten me more than once in the past. D On 1/21/2013 8:47 AM, vicky007aggar...@yahoo.co.in wrote: Tomcat 6.0.35 Jdk 1.6.24 OS - Red Hat Linux 5 Thanks, Vick On Jan 21, 2013, at 6:20 PM, André Warniera...@ice-sa.com wrote: vicky007aggar...@yahoo.co.in wrote: Can u please explain a bit on this Tomcat Host OS version Java JVM version Tomcat version (x.y.z) - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
AW: War archive issue
he can/should/shal/must check-out this as it is very easy to check it out, and every one can check it as well. Take any .war-file and rename it to include a - in the name, then deploy it into the /webapps directory. personaly we use Tomcat on OpenVMS and when I deploy axis2.war and axis2-1.6.1 into /webapps I get two sub-directories a) axis2 and b) axis2-1.6.1 so for OpenVMs Tomcat this is no issue; but maybe for other platforms this is an issue. Josef -Ursprüngliche Nachricht- Von: David kerber [mailto:dcker...@verizon.net] Gesendet: Montag, 21. Januar 2013 15:58 An: Tomcat Users List Betreff: Re: War archive issue Are you sure you don't have some residue from a previous webapp name still hanging out under conf/catalina/localhost? That has bitten me more than once in the past. D On 1/21/2013 8:47 AM, vicky007aggar...@yahoo.co.in wrote: Tomcat 6.0.35 Jdk 1.6.24 OS - Red Hat Linux 5 Thanks, Vick On Jan 21, 2013, at 6:20 PM, André Warniera...@ice-sa.com wrote: vicky007aggar...@yahoo.co.in wrote: Can u please explain a bit on this Tomcat Host OS version Java JVM version Tomcat version (x.y.z) - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Only start manager at startup
Le 21/01/2013 15:17, David kerber a écrit : On 1/21/2013 8:51 AM, Alexandre Rubert wrote: Le 18/01/2013 17:19, David kerber a écrit : On 1/18/2013 11:06 AM, Mark Thomas wrote: On 18/01/2013 14:42, David kerber wrote: On 1/18/2013 9:18 AM, Mark Thomas wrote: On 18/01/2013 13:33, Alexandre Rubert wrote: Hello, I've more than 200app in my webapp directory with symbolic links in some images. If I activate allowLinking tomcat crash during startup because of out of memory. I'd like to disable automatic start for all applications except manager. I tried by adding deployOnStartup=false and autoDeploy=false in my server.xml but with this options I can't access to manager html. Add an explicit Context for the manager in server.xml Mark So are you saying that this is one of the rare cases where configuring a context in server.xml is appropriate? Yes. It is the only way to start a Context if autoDeploy and deployOnStartup are disabled. Thanks. I was wondering why it was left legal when it was so strongly discouraged in most references and in this list. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org I don't know how to write my new context. Do I have to write it into my host section where I set deployOnstartUp to false and autoDeploy to false ?Do you have example ? Yes. Here is an example from what I used to use. Note that this is only part of the server.xml, and you need to change my settings to what you use: Engine name=Catalina defaultHost=localhost Realm className=org.apache.catalina.realm.UserDatabaseRealm resourceName=UserDatabase/ Host name=localhost appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false Context path=/dir1/dir2 docBase=full path to dir where .war is located debug=0 reloadable=true autoDeploy=true unpackWARs=true crossContext=false caseSensitive=false /Context /Host /Engine - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org Tomcat logs say setting property autoDeploy to true did not find matching property This is my server.conf Engine name=Catalina defaultHost=localhost Realm className=org.apache.catalina.realm.UserDatabaseRealm resourceName=UserDatabase/ Host name=localhost appBase=webapps unpackWARs=true autoDeploy=false deployOnStartup=false xmlValidation=false xmlNamespaceAware=false Context path=/manager docBase=/usr/share/tomcat6-admin/manager debug=0 reloadable=true autoDeploy=true unpackWARs=true crossContext=false caseSensitive=false /Context /Host /Engine Moreover, I have access to manager but it doesn't list my application in webapps directory - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Fw: Can not understand how maxThreads of Connectors works
The web application works.I can not see any issue. What does this mean? From: Mark Thomas ma...@apache.org To: Tomcat Users List users@tomcat.apache.org Sent: Monday, January 21, 2013 11:06 AM Subject: Re: Fw: Can not understand how maxThreads of Connectors works On 21/01/2013 07:07, Hermes Flying wrote: Hi, Is there any update on this? I don't see any problem setting maxThreads=0 And if you try making a request with a Tomcat instance that uses that configuration? Mark Thank you - Forwarded Message - From: Hermes Flying flyingher...@yahoo.com To: Tomcat Users List users@tomcat.apache.org Sent: Friday, January 18, 2013 8:55 AM Subject: Re: Can not understand how maxThreads of Connectors works Hi Chris, Tried with this simple server.xml and maxThreads=0 but I did not see any kind of errors.Attached the catalina logs ?xml version='1.0' encoding='utf-8'? Server port=8005 shutdown=SHUTDOWN !--APR library loader. Documentation at /docs/apr.html -- Listener className=org.apache.catalina.core.AprLifecycleListener SSLEngine=on / !--Initialize Jasper prior to webapps are loaded. Documentation at /docs/jasper-howto.html -- Listener className=org.apache.catalina.core.JasperListener / !-- Prevent memory leaks due to use of particular java/javax APIs-- Listener className=org.apache.catalina.core.JreMemoryLeakPreventionListener / !-- JMX Support for the Tomcat server. Documentation at /docs/non-existent.html -- Listener className=org.apache.catalina.mbeans.ServerLifecycleListener / Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener / !-- Global JNDI resources Documentation at /docs/jndi-resources-howto.html -- GlobalNamingResources !-- Editable user database that can also be used by UserDatabaseRealm to authenticate users -- Resource name=UserDatabase auth=Container type=org.apache.catalina.UserDatabase description=User database that can be updated and saved factory=org.apache.catalina.users.MemoryUserDatabaseFactory pathname=conf/tomcat-users.xml / /GlobalNamingResources !-- A Service is a collection of one or more Connectors that share a single Container Note: A Service is not itself a Container, so you may not define subcomponents such as Valves at this level. Documentation at /docs/config/service.html -- Service name=Catalina !--The connectors can use a shared executor, you can define one or more named thread pools-- !-- Executor name=tomcatThreadPool namePrefix=catalina-exec- maxThreads=150 minSpareThreads=4/ -- !-- A Connector represents an endpoint by which requests are received and responses are returned. Documentation at : Java HTTP Connector: /docs/config/http.html (blocking non-blocking) Java AJP Connector: /docs/config/ajp.html APR (HTTP/AJP) Connector: /docs/apr.html Define a non-SSL HTTP/1.1 Connector on port 8080 -- Connector port=8080 maxThreads=0 acceptCount=1 protocol=HTTP/1.1 connectionTimeout=2 redirectPort=8443 / !-- Define an AJP 1.3 Connector on port 8009 -- Connector port=8009 protocol=AJP/1.3 redirectPort=8443 / !-- An Engine represents the entry point (within Catalina) that processes every request. The Engine implementation for Tomcat stand alone analyzes the HTTP headers included with the request, and passes them on to the appropriate Host (virtual host). Documentation at /docs/config/engine.html -- !-- You should set jvmRoute to support load-balancing via AJP ie : Engine name=Catalina defaultHost=localhost jvmRoute=jvm1 -- Engine name=Catalina defaultHost=localhost !-- This Realm uses the UserDatabase configured in the global JNDI resources under the key UserDatabase. Any edits that are performed against this UserDatabase are immediately available for use by the Realm. -- Realm className=org.apache.catalina.realm.UserDatabaseRealm resourceName=UserDatabase/ !-- Define the default virtual host Note: XML Schema validation will not work with Xerces 2.2. -- Host name=localhost appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false /Host /Engine /Service /Server From: Christopher Schultz ch...@christopherschultz.net To: Tomcat Users List users@tomcat.apache.org Sent: Thursday, January 17, 2013 6:57 PM Subject: Re: Can not understand how maxThreads of Connectors works -BEGIN PGP SIGNED MESSAGE- Hash: SHA256
Re: Problem
On 1/20/2013 9:20 PM, vinit shashank wrote: I have run the TC in standlone mode...and it is running .. but when running thru eclipse juno ...it is showing the message - Server Tomcat v7.0 Server at localhost was unable to start within 45 seconds. If the server requires more time, try increasing the timeout in the server editor. i have reinstalled the plugin and increase the start timeout...its makes no change. thanks If you use the J2EE version of Eclipse Juno, you should not need any plugin. 1. Make sure that Tomcat is not already running when you try to start from within Eclipse. 2. If you're not using a plugin for Tomcat, make sure the Servers project is open. This is where you add and control new servers from in a stock J2EE Juno Eclipse. You should see the project open in the Project Explorer, and a window (typically at the bottom of Eclipse unless you've moved it) called Servers. Tomcat 7.0.34 on this system (Windows 7 Home Premium 64 bit, i5, 6 GB memory, JRE 1.7.0_11) takes 13 seconds to start. The length of time is probably due to the fact I have PSI Probe loaded as well as all of the example applications. I'm normally a NetBeans user, so I'm not going to be the most informative concerning Eclipse. . . . . just my two cents. /mde/ - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Only start manager at startup
On 21/01/2013 15:48, Alexandre Rubert wrote: Tomcat logs say setting property autoDeploy to true did not find matching property As expected. Go and read the docs for the Context element again. This is my server.conf Engine name=Catalina defaultHost=localhost Realm className=org.apache.catalina.realm.UserDatabaseRealm resourceName=UserDatabase/ Host name=localhost appBase=webapps unpackWARs=true autoDeploy=false deployOnStartup=false xmlValidation=false xmlNamespaceAware=false Context path=/manager docBase=/usr/share/tomcat6-admin/manager debug=0 reloadable=true autoDeploy=true unpackWARs=true crossContext=false caseSensitive=false /Context /Host /Engine Moreover, I have access to manager but it doesn't list my application in webapps directory Also as expected since you have disabled all the mechanisms Tomcat uses to discover them. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: War archive issue
On 1/20/2013 9:41 PM, vicky007aggar...@yahoo.co.in wrote: Is this is an issue in tomcat that if we Deploy an archive file having hypen(-) , then the tomcat creates multiple directories while deploying it eg:- if the war file name is demo-rest.war then tomcat creates two Directories i.e demo-rest demo Please suggest, does this is the expected behavior Thanks, Vick OS: Fedora 18 64 bit (i5, 8 GB memory) JRE:1.7.0_11 Tomcat: 6.0.36 (closest I could come to 6.0.35) Renamed an example war file from RWeb.war to R-Web.war and copied it into $CATALINA_BASE/webapps. One directory created - R-Web. I skimmed the changelog and found two directory-related fixes for 6.0.36 (versus 6.0.35). I don't immediately see how either of them can cause the issue you're seeing, but I've not looked at the bugs nor the code changes. Try 6.0.36 and see what you get. . . . . just my two cents. /mde/ - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Only start manager at startup
Le 21/01/2013 17:24, Mark Thomas a écrit : On 21/01/2013 15:48, Alexandre Rubert wrote: Tomcat logs say setting property autoDeploy to true did not find matching property As expected. Go and read the docs for the Context element again. This is my server.conf Engine name=Catalina defaultHost=localhost Realm className=org.apache.catalina.realm.UserDatabaseRealm resourceName=UserDatabase/ Host name=localhost appBase=webapps unpackWARs=true autoDeploy=false deployOnStartup=false xmlValidation=false xmlNamespaceAware=false Context path=/manager docBase=/usr/share/tomcat6-admin/manager debug=0 reloadable=true autoDeploy=true unpackWARs=true crossContext=false caseSensitive=false /Context /Host /Engine Moreover, I have access to manager but it doesn't list my application in webapps directory Also as expected since you have disabled all the mechanisms Tomcat uses to discover them. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org Ok, so autoDeploy option doesn't exist for a context and If I set to false autoDeploy and deployOnStartup anything starts. So how can I start manager without starting all applications in my webapps directory ? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Tomcat 7: ClassNotFoundEception for security provider during startup
Hi guys, I have a problem for which I need your help: I am trying to migrate from Tomcat 6.0.33 to 7.0.35 on Windows 7. The Tomcat is configured to support https on port 8443 using the third party security provider BouncyCastleProvider. When I start the new Tomcat version 7.0.35, I get a ClassNotFoundException for the BouncyCastleProvider, which resides in the jre/lib/ext directory of my jdk (1.6.0_29), ergo should be loaded by the Bootstrap-ClassLoader. I checked the server-conf by starting both Tomcat versions with exactly the same server configuration (server.xml). While Tomcat 6 runs, Tomcat 7 refuses to start. The catalina.log for Tomcat 7.0.35 startup is as follows: 21.01.2013 18:26:01 org.apache.catalina.core.AprLifecycleListener init INFO: Loaded APR based Apache Tomcat Native library 1.1.24 using APR version 1.4.6. 21.01.2013 18:26:01 org.apache.catalina.core.AprLifecycleListener init INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true]. 21.01.2013 18:26:01 org.apache.catalina.startup.SetAllPropertiesRule begin WARNUNG: [SetAllPropertiesRule]{Server/Service/Connector} Setting property 'keystore' to 'C:\tmp\server_keystore.bks' did not find a matching property. 21.01.2013 18:26:01 org.apache.tomcat.util.digester.SetPropertiesRule begin WARNUNG: [SetPropertiesRule]{Server/Service/Engine/Host} Setting property 'xmlNamespaceAware' to 'false' did not find a matching property. 21.01.2013 18:26:01 org.apache.tomcat.util.digester.SetPropertiesRule begin WARNUNG: [SetPropertiesRule]{Server/Service/Engine/Host} Setting property 'xmlValidation' to 'false' did not find a matching property. 21.01.2013 18:26:01 org.apache.tomcat.util.digester.Digester endElement WARNUNG: No rules found matching 'Server/ApacheConfig'. 21.01.2013 18:26:02 org.apache.catalina.core.AprLifecycleListener initializeSSL INFO: OpenSSL successfully initialized (OpenSSL 1.0.1c 10 May 2012) 21.01.2013 18:26:02 org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler [http-apr-8080] 21.01.2013 18:26:02 org.apache.catalina.core.StandardService initInternal SCHWERWIEGEND: Failed to initialize connector [Connector[HTTP/1.1-8443]] org.apache.catalina.LifecycleException: Failed to initialize component [Connector[HTTP/1.1-8443]] at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:106) at org.apache.catalina.core.StandardService.initInternal(StandardService.java:5 59) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:814 ) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) at org.apache.catalina.startup.Catalina.load(Catalina.java:633) at org.apache.catalina.startup.Catalina.load(Catalina.java:658) 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:597) at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:281) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:455) Caused by: org.apache.catalina.LifecycleException: Protocol handler initialization failed at org.apache.catalina.connector.Connector.initInternal(Connector.java:983) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) ... 12 more Caused by: java.lang.ClassNotFoundException: Error loading SSL Implementation org.bouncycastle.jce.provider.BouncyCastleProvider :java.lang.ClassCastException: org.bouncycastle.jce.provider.BouncyCastleProvider cannot be cast to org.apache.tomcat.util.net.SSLImplementation at org.apache.tomcat.util.net.SSLImplementation.getInstance(SSLImplementation.j ava:75) at org.apache.coyote.http11.AbstractHttp11JsseProtocol.init(AbstractHttp11JsseP rotocol.java:118) at org.apache.catalina.connector.Connector.initInternal(Connector.java:981) ... 13 more 21.01.2013 18:26:02 org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler [ajp-apr-8009] 21.01.2013 18:26:02 org.apache.catalina.startup.Catalina load INFO: Initialization processed in 800 ms Any help is strongly appreciated as I am standing in front of a wall. Best regards, Hanno - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Only start manager at startup
On 21/01/2013 17:03, Alexandre Rubert wrote: Ok, so autoDeploy option doesn't exist for a context and If I set to false autoDeploy and deployOnStartup anything starts. So how can I start manager without starting all applications in my webapps directory ? Again: autoDeploy=false deployOnStartup=false on the Host Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Only start manager at startup
Le 21/01/2013 18:56, Mark Thomas a écrit : On 21/01/2013 17:03, Alexandre Rubert wrote: Ok, so autoDeploy option doesn't exist for a context and If I set to false autoDeploy and deployOnStartup anything starts. So how can I start manager without starting all applications in my webapps directory ? Again: autoDeploy=false deployOnStartup=false on the Host Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org It's what I did. But I start manager, any of my application are deployed and when I deployed manually, it automaticaly starts this application. I just want to see all applications which are in webapps directory but I want to start them one by one manualy - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Loading a DeSerialized Class to WebabbClassLoader Question
Hi again, did anyone get a chance to look at this, if you need any further information, please let me know, any help appreciated. regards, Peter On 01/21/2013 11:30 AM, Peter Lavin wrote: Dear List, My web application needs to deserialize both classes and objects which are sent to it. I'm using Base64 serialization, and when I transport full name.class file to a service, I can deserialize it with no problem using ObjectInputStream.readObject(). I also need to transport instances of certain classes to the application but without having the benefit of having the class loaded in the WebappClassLoader. Not surprisingly, deserializing an instance of a class fails for ClassNotFoundException. My question: When I need to transport an instance of a class, I can easily also transport the full class. This full class can be instantiated if required. How could I load this class to the WebappClassLoader and have it available there for when I need to call ois.readObject()? I want to load the (full) class to the WebClassLoader to over come the ClassNotFoundException. Env: Tomcat 7.0.14 OSCentOS release 5.8 (Final) java version 1.6.0 22 OpenJDK Runtime Environment (IcedTea6 1.10.10) (rhel-1.28.1.10.10.el5 8-x86 64) OpenJDK 64-Bit Server VM (build 20.0-b11, mixed mode) Any help appreciated, regards, Peter Lavin -- with best regards, Peter Lavin, PhD Candidate, CAG - Computer Architecture Grid Research Group, Lloyd Institute, 005, Trinity College Dublin, Ireland. +353 1 8961536 - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Configuring WebappClassloader Delegate=True
Dear List, can anybody tell me how I can configure the WebappClassLoader to not be the default Delegate=false to be Delegate=True ? thanks, Peter -- with best regards, Peter Lavin, PhD Candidate, CAG - Computer Architecture Grid Research Group, Lloyd Institute, 005, Trinity College Dublin, Ireland. +353 1 8961536 - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Only start manager at startup
On 21/01/2013 18:15, Alexandre Rubert wrote: Le 21/01/2013 18:56, Mark Thomas a écrit : On 21/01/2013 17:03, Alexandre Rubert wrote: Ok, so autoDeploy option doesn't exist for a context and If I set to false autoDeploy and deployOnStartup anything starts. So how can I start manager without starting all applications in my webapps directory ? Again: autoDeploy=false deployOnStartup=false on the Host Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org It's what I did. But I start manager, any of my application are deployed and when I deployed manually, it automaticaly starts this application. I just want to see all applications which are in webapps directory but I want to start them one by one manualy Not possible (without code modifications). Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Configuring WebappClassloader Delegate=True
Hi, 2013/1/21 Peter Lavin Dear List, can anybody tell me how I can configure the WebappClassLoader to not be the default Delegate=false to be Delegate=True ? thanks, Peter Check this http://tomcat.apache.org/tomcat-7.0-doc/config/loader.html#Common_Attributes Regards Violeta
Re: Loading a DeSerialized Class to WebabbClassLoader Question
2013/1/21 Peter Lavin lav...@cs.tcd.ie: Dear List, My web application needs to deserialize both classes and objects which are sent to it. I'm using Base64 serialization, and when I transport full name.class file to a service, I can deserialize it with no problem using ObjectInputStream.readObject(). I also need to transport instances of certain classes to the application but without having the benefit of having the class loaded in the WebappClassLoader. Not surprisingly, deserializing an instance of a class fails for ClassNotFoundException. My question: When I need to transport an instance of a class, I can easily also transport the full class. This full class can be instantiated if required. How could I load this class to the WebappClassLoader and have it available there for when I need to call ois.readObject()? I want to load the (full) class to the WebClassLoader to over come the ClassNotFoundException. The same as with any other ClassLoader: use the bytes and call ClassLoader.defineClass(..), then ClassLoader.resolveClass(..). There is an example in WebappClassLoader.clearReferencesJdbc() method (though resolveClass() is not called there, I do not know why - maybe it was just forgotten). Env: Tomcat 7.0.14 Known security issues: http://tomcat.apache.org/security-7.html OSCentOS release 5.8 (Final) java version 1.6.0 22 OpenJDK Runtime Environment (IcedTea6 1.10.10) (rhel-1.28.1.10.10.el5 8-x86 64) OpenJDK 64-Bit Server VM (build 20.0-b11, mixed mode) - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Only start manager at startup
Thanks a lot for all your answers. May be it will be a future option. Le 21 janv. 2013 21:16, Mark Thomas ma...@apache.org a écrit : On 21/01/2013 18:15, Alexandre Rubert wrote: Le 21/01/2013 18:56, Mark Thomas a écrit : On 21/01/2013 17:03, Alexandre Rubert wrote: Ok, so autoDeploy option doesn't exist for a context and If I set to false autoDeploy and deployOnStartup anything starts. So how can I start manager without starting all applications in my webapps directory ? Again: autoDeploy=false deployOnStartup=false on the Host Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org It's what I did. But I start manager, any of my application are deployed and when I deployed manually, it automaticaly starts this application. I just want to see all applications which are in webapps directory but I want to start them one by one manualy Not possible (without code modifications). Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Loading a DeSerialized Class to WebabbClassLoader Question
On 21/01/2013 20:30, Konstantin Kolinko wrote: 2013/1/21 Peter Lavin lav...@cs.tcd.ie: Dear List, My web application needs to deserialize both classes and objects which are sent to it. I'm using Base64 serialization, and when I transport full name.class file to a service, I can deserialize it with no problem using ObjectInputStream.readObject(). I also need to transport instances of certain classes to the application but without having the benefit of having the class loaded in the WebappClassLoader. Not surprisingly, deserializing an instance of a class fails for ClassNotFoundException. My question: When I need to transport an instance of a class, I can easily also transport the full class. This full class can be instantiated if required. How could I load this class to the WebappClassLoader and have it available there for when I need to call ois.readObject()? I want to load the (full) class to the WebClassLoader to over come the ClassNotFoundException. The same as with any other ClassLoader: use the bytes and call ClassLoader.defineClass(..), then ClassLoader.resolveClass(..). No can do. That method is not public. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
AW: Tomcat 7: ClassNotFoundEception for security provider during startup
On 21/01/2013 17:49, Hanno Scharwächter wrote: Hi guys, I have a problem for which I need your help: I am trying to migrate from Tomcat 6.0.33 to 7.0.35 on Windows 7. The Tomcat is configured to support https on port 8443 using the third party security provider BouncyCastleProvider. When I start the new Tomcat version 7.0.35, I get a ClassNotFoundException for the BouncyCastleProvider, which resides in the jre/lib/ext directory of my jdk (1.6.0_29), ergo should be loaded by the Bootstrap-ClassLoader. I checked the server-conf by starting both Tomcat versions with exactly the same server configuration (server.xml). While Tomcat 6 runs, Tomcat 7 refuses to start. The catalina.log for Tomcat 7.0.35 startup is as follows: 21.01.2013 18:26:01 org.apache.catalina.core.AprLifecycleListener init INFO: Loaded APR based Apache Tomcat Native library 1.1.24 using APR version 1.4.6. 21.01.2013 18:26:01 org.apache.catalina.core.AprLifecycleListener init INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true]. 21.01.2013 18:26:01 org.apache.catalina.startup.SetAllPropertiesRule begin WARNUNG: [SetAllPropertiesRule]{Server/Service/Connector} Setting property 'keystore' to 'C:\tmp\server_keystore.bks' did not find a matching property. 21.01.2013 18:26:01 org.apache.tomcat.util.digester.SetPropertiesRule begin WARNUNG: [SetPropertiesRule]{Server/Service/Engine/Host} Setting property 'xmlNamespaceAware' to 'false' did not find a matching property. 21.01.2013 18:26:01 org.apache.tomcat.util.digester.SetPropertiesRule begin WARNUNG: [SetPropertiesRule]{Server/Service/Engine/Host} Setting property 'xmlValidation' to 'false' did not find a matching property. 21.01.2013 18:26:01 org.apache.tomcat.util.digester.Digester endElement WARNUNG: No rules found matching 'Server/ApacheConfig'. 21.01.2013 18:26:02 org.apache.catalina.core.AprLifecycleListener initializeSSL INFO: OpenSSL successfully initialized (OpenSSL 1.0.1c 10 May 2012) 21.01.2013 18:26:02 org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler [http-apr-8080] 21.01.2013 18:26:02 org.apache.catalina.core.StandardService initInternal SCHWERWIEGEND: Failed to initialize connector [Connector[HTTP/1.1-8443]] org.apache.catalina.LifecycleException: Failed to initialize component [Connector[HTTP/1.1-8443]] at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:106) at org.apache.catalina.core.StandardService.initInternal(StandardService. java:5 59) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) at org.apache.catalina.core.StandardServer.initInternal(StandardServer.ja va:814 ) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) at org.apache.catalina.startup.Catalina.load(Catalina.java:633) at org.apache.catalina.startup.Catalina.load(Catalina.java:658) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.j ava:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccess orImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:281) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:455) Caused by: org.apache.catalina.LifecycleException: Protocol handler initialization failed at org.apache.catalina.connector.Connector.initInternal(Connector.java:983) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) ... 12 more Caused by: java.lang.ClassNotFoundException: Error loading SSL Implementation org.bouncycastle.jce.provider.BouncyCastleProvider :java.lang.ClassCastException: org.bouncycastle.jce.provider.BouncyCastleProvider cannot be cast to org.apache.tomcat.util.net.SSLImplementation at org.apache.tomcat.util.net.SSLImplementation.getInstance(SSLImplementa tion.j ava:75) at org.apache.coyote.http11.AbstractHttp11JsseProtocol.init(AbstractHttp1 1JsseP rotocol.java:118) at org.apache.catalina.connector.Connector.initInternal(Connector.java:981) ... 13 more 21.01.2013 18:26:02 org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler [ajp-apr-8009] 21.01.2013 18:26:02 org.apache.catalina.startup.Catalina load INFO: Initialization processed in 800 ms Any help is strongly appreciated as I am standing in front of a wall. server.xml contents (less comments)? Mark Here goes the server.xml (Please consider that I used this config for Tomcat 6 and Tomcat 7): Server port=8005 shutdown=SHUTDOWN Listener className=org.apache.catalina.core.AprLifecycleListener SSLEngine=on / Listener className=org.apache.catalina.core.JasperListener / Listener className=org.apache.catalina.core.JreMemoryLeakPreventionListener /
Re: Fw: Tomcat 5.0.28 jdbc error Name jdbc is not bound in this Context on WindowsXP.
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 To whom it may concern, On 1/20/13 2:49 PM, sry...@jsrsys.com wrote: shouldn't it be easy to determine where the file should go in your development environment? One would think so. On the linux environment it is under etc/Tomcat5.5/ the same directory as server.xml If it's under /etc/, then it's probably using a package-managed version of Tomcat, which routinely have files in surprising locations. I don't believe there are any package-managers for Windows that support Tomcat, so you are probably using one directly from Apache (or you should be). However, when I put it in the ...conf directory on Windows, it appears that it is ignored, in the eclipse console startup log I don't see any entry for context.xml. So you went from using a package-managed version on Linux to an Eclipse-deployed version on Microsoft Windows? No wonder you are confused. I personally have no idea how Tomcat works through Eclipse. I tend to stay-away from anything that magically works. Start Tomcat using the command-line scripts or as a Windows Service with the service runner that comes with Tomcat. You'll be a lot happier with that configuration over time. ... unless you want to deploy to production through Eclipse for some reason. I have tried to find Tomcat5 documentation on placement of context.xml file. A file called context.xml exists in conf/context.xml and you may add one under META-INF/context.xml in any web application. The former is the global, default context.xml for the whole server and the latter is obviously per-webapp. It's up to you which is more appropriate for your needs. Even better would be sample code for jdbc context.xml. There are samples in the Tomcat users' guide. I don't want to have a copy for each webapp, just one that applies to all webapps. You want the same JDBC resource for all of your webapps? I would recommend against doing it using conf/context.xml, but that would be the way to do it. Why don't you show us what you've got, and we can suggest some improvements? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iEYEAREIAAYFAlD95gcACgkQ9CaO5/Lv0PDHTQCeLWjXUzkCCdAK+G4Bm8VHydE7 RtsAn1ZCsoS+suDlj0+yngA1Fw2HzFye =UH0J -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat 7: ClassNotFoundEception for security provider during startup
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hanno, On 1/21/13 12:49 PM, Hanno Scharwächter wrote: the Bootstrap-ClassLoader. I checked the server-conf by starting both Tomcat versions with exactly the same server configuration (server.xml). While Tomcat 6 runs, Tomcat 7 refuses to start. You cannot expect to launch Tomcat 7 using a configuration file (server.xml) for Tomcat 6. Instead, start with the server.xml that ships with Tomcat and make whatever modifications you need to match your new configuration. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iEYEAREIAAYFAlD95zoACgkQ9CaO5/Lv0PB/DgCfZyuSNtter7Fi1bop/Nh68n4X obAAoIlD+Ug7frTEmwNavhImsiOdcHtf =Jp91 -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Fw: Tomcat 5.0.28 jdbc error Name jdbc is not bound in this Context on WindowsXP.
Why don't you show us what you've got, and we can suggest some improvements? Thank you. This one is in localhost: Context path=/ !-- put this one in localhost add path because of Context path is required error-- ResourceLink name=jdbc/MySql type=javax.sql.DataSource global=jdbc/MySqlDB / !-- below all copied from ...conf context.xml file-- WatchedResourceWEB-INF/web.xml/WatchedResource Resource name=jdbc/MySql auth=Container type=javax.sql.DataSource url=jdbc:mysql://localhost/autoReconnect=true factory=org.apache.commons.dbcp.BasicDataSourceFactory driverClassName=com.mysql.jdbc.Driver password=** username=jsrsys maxWait=1 maxActive=200 maxIdle=5 removeAbandoned=true removeAbandonedTimeout=300 logAbandoned=true validationQuery=SELECT 1 testOnBorrow=true / /Context Below is near top of server.xml in conf directory !-- Global JNDI resources -- GlobalNamingResources Environment name=simpleValue type=java.lang.Integer value=30/ Resource auth=Container description=User database that can be updated and saved name=UserDatabase type=org.apache.catalina.UserDatabase/ Resource auth=Container name=jdbc/MySqlDB type=javax.sql.DataSource/ ResourceParams name=UserDatabase parameter namefactory/name valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value /parameter parameter namepathname/name valueconf/tomcat-users.xml/value /parameter /ResourceParams ResourceParams name=jdbc/MySqlDB parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter nameurl/name valuejdbc:mysql://localhost/autoReconnect=true/value /parameter parameter namepassword/name value/value /parameter parameter namemaxWait/name value1/value /parameter parameter namemaxActive/name value3/value !-- so will fail early if sql.close() missing -- /parameter parameter namedriverClassName/name valuecom.mysql.jdbc.Driver/value /parameter parameter nameusername/name valuejsrsys/value /parameter parameter namemaxIdle/name value5/value /parameter /ResourceParams /GlobalNamingResources - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
AW: AW: AW: ajp on 7009 and 9009 : connections keept open
Hey, last friday I changed our configuration to use a executor. Here is what I did: Connector port=7009 protocol=AJP/1.3 redirectPort=8443 maxThreads=200 executor=active-executor / Executor name=active-executor namePrefix=activeThread- maxThreads=200 minSpareThreads=30 maxIdleTime=6 / Connector port=7080 protocol=HTTP/1.1 connectionTimeout=2 redirectPort=8443 executor=active-executor / The second tomcat has same configuration besides ports.. Until yesterday it worked like a charm. But at late afternoon one of the tomcats failed again.. I couldn't start the garbagecollection so far.. Any other ideas? Thanks Mit freundlichen Grüßen David Kumar Softwareentwickler, B. Sc. Abteilung Infotech - Interaktiv TELESTAR-DIGITAL GmbH Am Weiher 14 D-56766 Ulmen http://www.telestar.de/ -Ursprüngliche Nachricht- Von: David Kumar [mailto:dku...@telestar.de] Gesendet: Freitag, 18. Januar 2013 11:19 An: Tomcat Users List; Tomcat Users List Betreff: AW: AW: AW: ( ajp on 7009 and 9009 not afs3-rmtsys): connections keept open Hey, I do that at next deployment. -- I Thursday... So far I'm trying executor for tomcat. As far I read, when I'm using connectors idle process are forced to be close.. Mit freundlichen Grüßen David Kumar Softwareentwickler, B. Sc. Abteilung Infotech - Interaktiv TELESTAR-DIGITAL GmbH Am Weiher 14 D-56766 Ulmen Tel.: + 49 (0) 6592 / 712 -2826 Tel.: + 49 (0) 2676 / 9520 -183 Fax: + 49 (0) 6592 / 712 -2829 http://www.telestar.de/ -Ursprüngliche Nachricht- Von: André Warnier [mailto:a...@ice-sa.com] Gesendet: Freitag, 18. Januar 2013 11:10 An: Tomcat Users List Betreff: Re: AW: AW: ( ajp on 7009 and 9009 not afs3-rmtsys): connections keept open David Kumar wrote: Hey André, are you talking about running System.gc()? Yes. That should be possible.. Mit freundlichen Grüßen David Kumar Softwareentwickler, B. Sc. Abteilung Infotech - Interaktiv TELESTAR-DIGITAL GmbH Am Weiher 14 D-56766 Ulmen http://www.telestar.de/ -Ursprüngliche Nachricht- Von: André Warnier [mailto:a...@ice-sa.com] Gesendet: Freitag, 18. Januar 2013 10:07 An: Tomcat Users List Betreff: Re: AW: ( ajp on 7009 and 9009 not afs3-rmtsys): connections keept open David, (and sorry for top-posting here) just to verify something. Can you trigger a Major Garbage Collection at the Tomcat JVM level, at a moment when you have all these connections in CLOSE_WAIT, and see if they disappear after the GC ? If yes, it may give a good clue about where all these CLOSE_WAITs are coming from. David Kumar wrote: Just read this email.. :-) I figured out we are not using executor connector... Mit freundlichen Grüßen David Kumar Softwareentwickler, B. Sc. Abteilung Infotech - Interaktiv TELESTAR-DIGITAL GmbH Am Weiher 14 D-56766 Ulmen http://www.telestar.de/ -Ursprüngliche Nachricht- Von: David Kumar [mailto:dku...@telestar.de] Gesendet: Freitag, 18. Januar 2013 09:11 An: Tomcat Users List Betreff: AW: ( ajp on 7009 and 9009 not afs3-rmtsys): connections keept open here you are with attachment :-) btw: in mod_jk.log I found some [Thu Jan 17 23:00:08 2013] [11196:140336689317632] [error] ajp_get_reply::jk_ajp_common.c (2055): (tomcat2) Tomcat is down or refused connection. No response has been sent to the client (yet) [Thu Jan 17 23:00:08 2013] [11196:140336689317632] [error] ajp_service::jk_ajp_common.c (2559): (tomcat2) connecting to tomcat failed. but realy just a few one... Mit freundlichen Grüßen David Kumar Softwareentwickler, B. Sc. Abteilung Infotech - Interaktiv TELESTAR-DIGITAL GmbH Am Weiher 14 D-56766 Ulmen http://www.telestar.de/ -Ursprüngliche Nachricht- Von: David Kumar Gesendet: Freitag, 18. Januar 2013 09:08 An: 'Tomcat Users List' Betreff: ( ajp on 7009 and 9009 not afs3-rmtsys): connections keept open Hey, thanks for reply. I got that about the Apache configuration. Since we had our problem yesterday, again and there was no error at the apache logs I'm willing to say that is not the main problem and I have to check that, when my main problem is solved.. :-) I agree with you about wrong reporting of service. Its just shown up as afs3 because these service uses 7009 per default. But I'm using 7009 and 9009 for ajp. So doesn't this mean there is a connection problems between my Apache and the tomcats? You're right, both Webapps doing the same and are configured identically besides the ports. I'm using more than one database, but all of them are used through a database pool. If there is a bug, I think I should have found some error at my logs like no free connection or something like that. As there is no such log entry I'm willing to say that my database connections processing like they should. Basically on each tomcat there are running two services. One