Re: How do you set up JMX remote for Tomcat 5.5.9?
you need to set -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=9998 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false check the last two as I can't remember the precise syntax. if youwant password authentication read the doc andy gordon wrote: Thank you for the info but I don't think it helped. Your insight is valued. I set an environment variable called JAVA_OPTS to -Dcom.sun.management.jmxremote.port=9998 and started tomcat using startup.bat. The cmd window opened and closed. Meaning tomcat didn't start. Suggestions? I have not done anything else at this point with respect to enabling JMX remote. Thank you - andy Tim Funk [EMAIL PROTECTED] wrote: http://jakarta.apache.org/tomcat/faq/misc.html#properties -Tim andy gordon wrote: Help, How do you set up JMX remote for Tomcat 5.5.9? For instance where do you specify the JVM startup option -Dcom.sun.management.jmxremote.port=9998 that enables remote monitoring and management? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Q] when to share jars
delbd wrote: Then put those libs in WEB-INF/lib too Le Mardi 14 Juin 2005 14:31, teknokrat a écrit : Charl Gerber wrote: When do you share jars (struts, log4j, jstl, etc) for webapps in the common/lib directory and when does each app need its own copy of the jars? Log4j we've found by trail and error is better to have a jar per webapp, as the loggers seems to overwrite each other, but which commonly used jars (struts, jstl) can be shared? Thanks Charl What if you have libraries in shared/lib that use log4j? If you place log4j in WEB-INF/lib and shared/lib you get errors. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] And if we need to fix a problem in a shared library, redeploy all our webapps?? I don't think so - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: can anyone make sense of this
Brereton, Stephen wrote: how exactly does the servlet get called? Are you using the web server? -Original Message- From: teknokrat [mailto:[EMAIL PROTECTED] Sent: 13 June 2005 18:44 To: tomcat-user@jakarta.apache.org Subject: Re: can anyone make sense of this Brereton, Stephen wrote: That's just your Tomcat service running. It does take a few moments to get started - that's just Java getting going. If your task manager isn't running to show 'all users', you might well not see the service running -Original Message- From: teknokrat [mailto:[EMAIL PROTECTED] Sent: 13 June 2005 17:52 To: tomcat-user@jakarta.apache.org Subject: can anyone make sense of this I have the latest tomcat 5.0 installed on windows server 2003 with java 5. I run startup.bat and call a servlet that hits a jboss instance remotely. Looking through the connection events with TDIMon ( from www.sysinternals.com ) I notice that a process tomcat5.exe sends a UDP datagram on port 137 to the remote server just before creating the TCP connection. Now, what I don't understand is 1. All the other network events are created by the process java.exe. I am not running any tomcat.exe - in fact I have deleted them. There is no tomcat5.exe process in the task manager so what is going on here. 2. this is a very slow. tomcat5.exe makes about three udp datagrams and takes about 2 seconds. 3. I realise that this may be a jboss issue but if anyone can confirm ro deny this I would appreciate this thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] * * * * * * * * * * * * This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. This email represents the personal views of the author/sender. The author/sender has no authority or delegation to bind the City of York Council by this e-mail and the City of York Council accepts no responsibility whatsoever for its contents. Please note that any reply to this email may be screened. Thats what I thought. But i am not running the service, only using startup.bat. Also I have renamed the tomcat5.exe. In the task manager I have show processes for all users enabled. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] * * * * * * * * * * * * This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. This email represents the personal views of the author/sender. The author/sender has no authority or delegation to bind the City of York Council by this e-mail and the City of York Council accepts no responsibility whatsoever for its contents. Please note that any reply to this email may be screened. Thanks but the issue is resolved now. Apparently, make sure netbios is disabled! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Q] when to share jars
Charl Gerber wrote: When do you share jars (struts, log4j, jstl, etc) for webapps in the common/lib directory and when does each app need its own copy of the jars? Log4j we've found by trail and error is better to have a jar per webapp, as the loggers seems to overwrite each other, but which commonly used jars (struts, jstl) can be shared? Thanks Charl What if you have libraries in shared/lib that use log4j? If you place log4j in WEB-INF/lib and shared/lib you get errors. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: where do i place log4j
Marius Scurtescu wrote: teknokrat wrote: Normally I place log4j.jar with my webapp. However, I have a number of libraries that need to be shared across various webapps. These need to do logging as well. should i place a version of log4j in shared/lib? Should I still keep the versions in each WEB-INF/lib too? Where do i place the log4j.properties file for the shared libraries? Place it as usual in WEB-INF/classes. It doesn't matter where the library (jar) is loaded from as long as the code is executed by your web app. thanks Marius If there are multiple webapps with their own properties fiesl , will they interfere with one another? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
can anyone make sense of this
I have the latest tomcat 5.0 installed on windows server 2003 with java 5. I run startup.bat and call a servlet that hits a jboss instance remotely. Looking through the connection events with TDIMon ( from www.sysinternals.com ) I notice that a process tomcat5.exe sends a UDP datagram on port 137 to the remote server just before creating the TCP connection. Now, what I don't understand is 1. All the other network events are created by the process java.exe. I am not running any tomcat.exe - in fact I have deleted them. There is no tomcat5.exe process in the task manager so what is going on here. 2. this is a very slow. tomcat5.exe makes about three udp datagrams and takes about 2 seconds. 3. I realise that this may be a jboss issue but if anyone can confirm ro deny this I would appreciate this thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: can anyone make sense of this
Brereton, Stephen wrote: That's just your Tomcat service running. It does take a few moments to get started - that's just Java getting going. If your task manager isn't running to show 'all users', you might well not see the service running -Original Message- From: teknokrat [mailto:[EMAIL PROTECTED] Sent: 13 June 2005 17:52 To: tomcat-user@jakarta.apache.org Subject: can anyone make sense of this I have the latest tomcat 5.0 installed on windows server 2003 with java 5. I run startup.bat and call a servlet that hits a jboss instance remotely. Looking through the connection events with TDIMon ( from www.sysinternals.com ) I notice that a process tomcat5.exe sends a UDP datagram on port 137 to the remote server just before creating the TCP connection. Now, what I don't understand is 1. All the other network events are created by the process java.exe. I am not running any tomcat.exe - in fact I have deleted them. There is no tomcat5.exe process in the task manager so what is going on here. 2. this is a very slow. tomcat5.exe makes about three udp datagrams and takes about 2 seconds. 3. I realise that this may be a jboss issue but if anyone can confirm ro deny this I would appreciate this thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] * * * * * * * * * * * * This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. This email represents the personal views of the author/sender. The author/sender has no authority or delegation to bind the City of York Council by this e-mail and the City of York Council accepts no responsibility whatsoever for its contents. Please note that any reply to this email may be screened. Thats what I thought. But i am not running the service, only using startup.bat. Also I have renamed the tomcat5.exe. In the task manager I have show processes for all users enabled. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
where do i place log4j
Normally I place log4j.jar with my webapp. However, I have a number of libraries that need to be shared across various webapps. These need to do logging as well. should i place a version of log4j in shared/lib? Should I still keep the versions in each WEB-INF/lib too? Where do i place the log4j.properties file for the shared libraries? thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Using jconsole with tomcat running as service
I start tomcat 5.5.9 as a service providing the option -Dcom.sun.management.jmxremote in the configuration panel. When I run jconsole, there are no java processes available to connect to. jps also displays nothing. Is this possible? thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
how to unify multiple contexts
We have multiple servlets that i wish to unify under a single context. That is, I want to get rid of the legacy servlets and introduce a dispatcher servlet to handle all the different functions under a single context. The problem is that this will break legacy apps that expect the old contexts. I've considered sending redirect requests to any client using the old contexts but some of the devices connecting to our system may not be fully http capable. Is there anything in tomcat that could be used? Some settings or someway of rewriting requests? thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat 5.5.9 does not read context.xml
Steve Kirk wrote: yes context.xml is fine in META-INF. in fact it is preferred over having it in server.xml. your alternative is to put it in conf/enginename/hostname/yourwebappname.xml (which is in fact what TC will do for you when it unpacks the war). I don't know that you can have the context path name different to the war file. I'm not 100% sure, but can't see how to do it. in fact I can see it being a source of potential confusion. can you explain why you want to do that? OK, I am totally confused. Is or is it not best practice to provide a context.xml in META-INF. I thought this was required for hot deployment to work. If I want my context path to have a different name to my war file, how do I achieve this? thank you Well, I have to deal with some legacy apps. I wanted to have a more consistent naming scheme but I obviously have to keep the context path the same as before. Its no big thing, I was just suprised that context paths wern't decoupled from the name of the war. On another note, i find that deployment and undeployment on tomcat 5.5.9 is very problematic. After half a dozen redeployments or so I find that tomcat does not fully unpack the war and leaves the directory incomplete. After that, you can't redeploy or undeploy the app, at least the directory doesn't get deleted. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat 5.5.9 does not read context.xml
What is the story with context descriptors in 5.5.9. Nothing seems to work right. I have placed the the following context.xml file in the META-INF directory inside my war Context path=/mobile reloadable=true/ When my war is expanded the context does not use the name in the path as specified by context.xml but the name of the war file!! How is it possible to use a context path different to the name of the war file? thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat 5.5.9 does not read context.xml
Parsons Technical Services wrote: The value of this field(Path) must not be set except when statically defining a Context in server.xml, This is found on this page under the Path attribute, http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/context.html Doug - Original Message - From: teknokrat [EMAIL PROTECTED] To: tomcat-user@jakarta.apache.org Sent: Thursday, June 02, 2005 6:45 AM Subject: tomcat 5.5.9 does not read context.xml What is the story with context descriptors in 5.5.9. Nothing seems to work right. I have placed the the following context.xml file in the META-INF directory inside my war Context path=/mobile reloadable=true/ When my war is expanded the context does not use the name in the path as specified by context.xml but the name of the war file!! How is it possible to use a context path different to the name of the war file? thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] OK, I am totally confused. Is or is it not best practice to provide a context.xml in META-INF. I thought this was required for hot deployment to work. If I want my context path to have a different name to my war file, how do I achieve this? thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
strange autodeploy behaviour on 5.5.9
I have set up a new installation of tomcat 5.5.9 running on java 5(Windows XP). It starts up Ok and my webapp loads. I have the following context xml Context path=/myApp reloadable=true/Context The problem occurs when I copy over another version of my MyApp.war to the webapps directory. Tomcat only unpacks some of the files! There is a WEB-INF directory and a couple of jars in the lib directory and nothing else. Using the manager app to reload the app does not fix it. There are no exceptions being thrown. Furthermore, undeploying the app does not delete the directory, only the war file and it still remains in the application list in the manager. I have not changed any settings and this all works fine with tomcat 5.0.30. Anyone seen this before? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AW: strange autodeploy behaviour on 5.5.9
I don't understand this. I am packing my MyApp.xml context with the war ( in the root ). Is this wrong? Whats are the surefire instructions to have your war hot deploy? Pfingstl Gernot wrote: See http://issues.apache.org/bugzilla/show_bug.cgi?id=34840 -Ursprüngliche Nachricht- Von: news [mailto:[EMAIL PROTECTED] Auftrag von teknokrat Gesendet: Freitag, 13. Mai 2005 11:56 An: tomcat-user@jakarta.apache.org Betreff: strange autodeploy behaviour on 5.5.9 I have set up a new installation of tomcat 5.5.9 running on java 5(Windows XP). It starts up Ok and my webapp loads. I have the following context xml Context path=/myApp reloadable=true/Context The problem occurs when I copy over another version of my MyApp.war to the webapps directory. Tomcat only unpacks some of the files! There is a WEB-INF directory and a couple of jars in the lib directory and nothing else. Using the manager app to reload the app does not fix it. There are no exceptions being thrown. Furthermore, undeploying the app does not delete the directory, only the war file and it still remains in the application list in the manager. I have not changed any settings and this all works fine with tomcat 5.0.30. Anyone seen this before? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: why is my security not working?
Whew, that worked. Thanks! Do I still need the realm setting in my context file or not? and should it refer to UserDatabaseRealm or MemoryRealm? Mark Thomas wrote: try: web-resource-collection web-resource-nameAdmin/web-resource-name url-pattern/*/url-pattern /web-resource-collection You don't need to include the context in your url patterns. Mark teknokrat wrote: I have placed the following context file Context path=/myAdmin cachingAllowed=false cacheTTL=0 cacheMaxSize=0 swallowOutput=false Realm className=org.apache.catalina.realm.UserDatabaseRealm debug=5/ /Context and i have added to web.xml security-constraint web-resource-collection web-resource-nameAdmin/web-resource-name url-pattern/myAdmin/*/url-pattern /web-resource-collection auth-constraint role-nameme/role-name /auth-constraint /security-constraint login-config auth-methodBASIC/auth-method realm-nameAdmin/realm-name /login-config security-role descriptionThe role/description role-nameme/role-name /security-role Yet, I can still access the webapp without tomcat asking for a username and password. I have added the role and users to tomcat-users.xml too. thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
why is my security not working?
I have placed the following context file Context path=/myAdmin cachingAllowed=false cacheTTL=0 cacheMaxSize=0 swallowOutput=false Realm className=org.apache.catalina.realm.UserDatabaseRealm debug=5/ /Context and i have added to web.xml security-constraint web-resource-collection web-resource-nameAdmin/web-resource-name url-pattern/myAdmin/*/url-pattern /web-resource-collection auth-constraint role-nameme/role-name /auth-constraint /security-constraint login-config auth-methodBASIC/auth-method realm-nameAdmin/realm-name /login-config security-role descriptionThe role/description role-nameme/role-name /security-role Yet, I can still access the webapp without tomcat asking for a username and password. I have added the role and users to tomcat-users.xml too. thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: why is my security not working?
I should mention I am on tomcat 5.0.28 teknokrat wrote: I have placed the following context file Context path=/myAdmin cachingAllowed=false cacheTTL=0 cacheMaxSize=0 swallowOutput=false Realm className=org.apache.catalina.realm.UserDatabaseRealm debug=5/ /Context and i have added to web.xml security-constraint web-resource-collection web-resource-nameAdmin/web-resource-name url-pattern/myAdmin/*/url-pattern /web-resource-collection auth-constraint role-nameme/role-name /auth-constraint /security-constraint login-config auth-methodBASIC/auth-method realm-nameAdmin/realm-name /login-config security-role descriptionThe role/description role-nameme/role-name /security-role Yet, I can still access the webapp without tomcat asking for a username and password. I have added the role and users to tomcat-users.xml too. thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat 5 not deploying my war
I place my war in the webapps directory. tomcat 5.5.7 creates the directory and maybe a few others but it does not complete the job. Reloading etc does not fix this. there are no error messages given. Anyone have a clue what could be going on here? thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
annoying popup in manager app
Whenever i need to reload a webapp in the manager in tomcat 5.5.7 I get an annoying popup asking me if i am sure Is there any way to turn off this annoying thing. thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: annoying popup in manager app
Lionel Farbos wrote: On Fri, 01 Apr 2005 06:47:15 -0500 Tim Funk [EMAIL PROTECTED] wrote: sorry if I find this funny, but I just saw a bugzilla complaint requesting another confirmation screen. As to your question, i don't know. -Tim teknokrat wrote: Whenever i need to reload a webapp in the manager in tomcat 5.5.7 I get an annoying popup asking me if i am sure Is there any way to turn off this annoying thing. I think you can configure your browser to not activate javaScript.. But you'll have perhaps other problems... I was really suprised by this feature. Its the kindo of crap you expect form microsoft:) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
possibly stupid question
I am running tomcat 5.5 on windows XP. There is no catalina.out file being produced. Is this usual? How do i get a file of of everything going to stdout? thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: possibly stupid question
No, I am running it using startup.bat though I have tries catalina.bat start too. I am not seeing any log file output for anything that writes to stdout. Dale, Matt wrote: Are you running it as a service? If so you may find that the output is going to stdout.log Ta Matt -Original Message- From: teknokrat [mailto:[EMAIL PROTECTED] Sent: 30 March 2005 10:54 To: tomcat-user@jakarta.apache.org Subject: possibly stupid question I am running tomcat 5.5 on windows XP. There is no catalina.out file being produced. Is this usual? How do i get a file of of everything going to stdout? thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: possibly stupid question
cheers, that clears that up David Causse wrote: teknokrat wrote: No, I am running it using startup.bat though I have tries catalina.bat start too. I am not seeing any log file output for anything that writes to stdout. Hi Teknokrat, it's normal, the stdout is on the win32 console, you have to redirect yourself stdout if you want to have a log file or start tomcat as a service. Hope it helps, David. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat 5 deploy task giving ZipFileException
I am trying to install mny webapp into tomcat using the ant deploy task install url=${manager.url} username=${manager.username} password=${manager.password} path=${app.path} war=file://${web.home}/ I do not want to make a war but deploy it as a directory I have also created a context.xml file in my META-INF directory with Context debug=3 displayName=Link Builder docBase=/usr/local/eclipse/workspace/LinkBuilder/web path=/links workDir=work/Catalina/localhost/links /Context when i run ant I get a ZipFileException - error opeing zip file and tomcat reports an exception opening links.war What do i need to do to deploy my webapp directory to tomcat? thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Memory Usage - Tomcat 5.0.25
Nandish Rudra wrote: Hello Everyone, I am writing about this error from yesterday. I used JProfiler to monitor my memory usage. And am now sure that each and every static object is trashed when the application is undeployed and the profiler shows that memory is free and all instance of the objects are GC'd. This works on a Windows 2000 setup of Tomcat 5.0.25 with Java 2 SDK version 1.4.2_04 and Ant 1.6.1, but fails miserably on GNU Linux 2.4.20-8 setup. this happens with both tomcat 5.0.25 and 5.0.27 Any ideas why something like this could be happening. Nandish Rudra ECI Conference call Service LLC. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Monday, August 09, 2004 1:35 PM To: Tomcat Users List Subject: RE: Memory Usage - Tomcat 5.0.25 Hi, I have a couple of ideas. One is that your webapp maintain static or shared references to objects that prevent them from being garbage collected, and therefore memory from returning to the heap. Another is that a webapp undeploy is not guaranteed to reclaim all memory used by the webapp anyways so to count on this behavior is not smart. It is expected that every time you reload your webapp the overall memory usage of the server will go up a bit, as not all objects are gone (for example, if you have a static reference than the old classloader and anything that references it strongly will remain in memory). Yoav Shapira Millennium Research Informatics -Original Message- From: Nandish Rudra [mailto:[EMAIL PROTECTED] Sent: Monday, August 09, 2004 1:17 PM To: Tomcat Users List (E-mail) Subject: Memory Usage - Tomcat 5.0.25 Hello, I am having some memory issues while deploing/undeploying web applications to Tomcat. I am using Tomcat 5.0.25 with Java 2 SDK version 1.4.2_04 and Ant 1.6.1 on GNU Linux 2.4.20-8. I use ant to compile my web application and Tomcat's catalina-ant.jar to deploy it automatically. Here is my problem. When I undeploy/remove an application, Tomcat does not reclaim the memory being used by the web application and when the application is re-deployed/re-installed a significant increase in memory is seen. This increase is obviously the memory usage by the new instance of the web application. Does anyone have any idea as to why this is happening? Try looking at jvmstat (http://developers.sun.com/dev/coolstuff/jvmstat/) My own tests with show that its the permanent space of objects that gets filled up and not reclaimed after each reload. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
getting regular ThreadDeath on reload in tomcat 5
I am using tomcat 5.0.12 and I regularly reload my context using the ReloadTask Ant task provided by catalina-ant.jar I have been getting the following exception regularly on a reload java.lang.ThreadDeath at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1252) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1212) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302) at org.apache.log4j.spi.LoggingEvent.init(LoggingEvent.java:145) at org.apache.log4j.Category.forcedLog(Category.java:372) at org.apache.log4j.Category.log(Category.java:864) at org.apache.commons.logging.impl.Log4JCategoryLog.error(Log4JCategoryLog.java:194) at org.apache.catalina.session.StandardManager.start(StandardManager.java:692) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4077) at org.apache.catalina.core.StandardContext.reload(StandardContext.java:2894) at org.apache.catalina.manager.ManagerServlet.reload(ManagerServlet.java:976) at org.apache.catalina.manager.ManagerServlet.doGet(ManagerServlet.java:377) at javax.servlet.http.HttpServlet.service(HttpServlet.java:743) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:284) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:563) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:245) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:199) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:573) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:563) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:195) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:164) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:563) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:156) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:563) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:972) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:209) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:670) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cannot compile jsps with tomcat 5
I just tried running my webapp with the latest release of tomcat 5 (5.0.12). Added my context to bin/catalina/localhost and changed CATALINA_HOME. The app loads fine but it refuses to compile any of the jsps. This could be a struts/tiles issue. The sample jsp/servlet examples work fine. here is the exception i keep getting ApplicationDispatcher[/lab] Servlet.service() for servlet jsp threw exception org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: 10 in the jsp file: /WEB-INF/layouts/topDownLayout.jsp Generated servlet error: [javac] Compiling 1 source file C:\tomcat5\work\Catalina\localhost\lab\org\apache\jsp\WEB_002dINF\layouts\topDownLayout_jsp.java:7: org.apache.jsp.WEB_002dINF.layouts.topDownLayout_jsp is not abstract and does not override abstract method getIncludes() in org.apache.jasper.runtime.HttpJspBase public final class topDownLayout_jsp extends org.apache.jasper.runtime.HttpJspBase ^ An error occurred at line: 10 in the jsp file: /WEB-INF/layouts/topDownLayout.jsp Generated servlet error: C:\tomcat5\work\Catalina\localhost\lab\org\apache\jsp\WEB_002dINF\layouts\topDownLayout_jsp.java:29: cannot resolve symbol symbol : method getTagHandlerPool (javax.servlet.ServletConfig) location: class org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_html_html_locale = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig()); ^ An error occurred at line: 10 in the jsp file: /WEB-INF/layouts/topDownLayout.jsp Generated servlet error: C:\tomcat5\work\Catalina\localhost\lab\org\apache\jsp\WEB_002dINF\layouts\topDownLayout_jsp.java:30: cannot resolve symbol symbol : method getTagHandlerPool (javax.servlet.ServletConfig) location: class org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_html_rewrite_page = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig()); ^ An error occurred at line: 10 in the jsp file: /WEB-INF/layouts/topDownLayout.jsp Generated servlet error: C:\tomcat5\work\Catalina\localhost\lab\org\apache\jsp\WEB_002dINF\layouts\topDownLayout_jsp.java:31: cannot resolve symbol symbol : method getTagHandlerPool (javax.servlet.ServletConfig) location: class org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_tiles_getAsString_name = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig()); ^ An error occurred at line: 10 in the jsp file: /WEB-INF/layouts/topDownLayout.jsp Generated servlet error: C:\tomcat5\work\Catalina\localhost\lab\org\apache\jsp\WEB_002dINF\layouts\topDownLayout_jsp.java:32: cannot resolve symbol symbol : method getTagHandlerPool (javax.servlet.ServletConfig) location: class org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_i18n_locale_language_country = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig()); ^ An error occurred at line: 10 in the jsp file: /WEB-INF/layouts/topDownLayout.jsp Generated servlet error: C:\tomcat5\work\Catalina\localhost\lab\org\apache\jsp\WEB_002dINF\layouts\topDownLayout_jsp.java:33: cannot resolve symbol symbol : method getTagHandlerPool (javax.servlet.ServletConfig) location: class org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_tiles_insert_flush_attribute = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig()); ^ 6 errors at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:128) at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:351) at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:413) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:453) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:437) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:555) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:291) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:284) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:742) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:506) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:443) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:359) at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069) at
Using message beans in tomcat
Anyone know of a beginners guide to using JMX in tomcat? Ideally some code examples of building a small app with message beans thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]