Problem with tomcat session replication
I am using two instances of tomcat 6.0.20 in the same window machine, the second instance while starting up gives the following message : -- INFO: Attempting to bind the multicast socket to /228.0.0.4:45564 Apr 26, 2010 12:55:32 AM org.apache.catalina.tribes.membership.McastServiceImpl setupSocket INFO: Binding to multicast address, failed. Binding to port only. Apr 26, 2010 12:55:32 AM org.apache.catalina.tribes.membership.McastServiceImpl setupSocket INFO: Setting multihome multicast interface to:/170.21.25.46 Apr 26, 2010 12:55:32 AM org.apache.catalina.tribes.membership.McastServiceImpl setupSocket INFO: Setting cluster mcast soTimeout to 500 . . INFO: Manager [localhost#/mycontext]: skipping state transfer. No members active in cluster group --- I have followed the tomcat cluster howto guide closely, Given below is the config (I have mentioned the changes between config of the two nodes where ever applicable) : Cluster className=org.apache.catalina.ha.tcp.SimpleTcpCluster channelSendOptions=8 Manager className=org.apache.catalina.ha.session.DeltaManager expireSessionsOnShutdown=true useDirtyFlag=true notifyListenersOnReplication=true/ Channel className=org.apache.catalina.tribes.group.GroupChannel Membership className=org.apache.catalina.tribes.membership.McastService address=228.0.0.4 port=45564 frequency=500 dropTime=3000/ Receiver className=org.apache.catalina.tribes.transport.nio.NioReceiver address=auto port=4000 (in second node it is 4001) autoBind=100 selectorTimeout=5000 maxThreads=6/ Sender className=org.apache.catalina.tribes.transport.ReplicationTransmitter Transport className=org.apache.catalina.tribes.transport.nio.PooledParallelSender/ /Sender Interceptor className=org.apache.catalina.tribes.group.interceptors.TcpFailureDetector/ Interceptor className=org.apache.catalina.tribes.group.interceptors.MessageDispatch15Interceptor/ /Channel Valve className=org.apache.catalina.ha.tcp.ReplicationValve filter=.*\.gif;.*\.js;.*\.jpg;.*\.png;.*\.html;.*\.css;.*\.txt;/ Valve className=org.apache.catalina.ha.session.JvmRouteBinderValve enabled=true sessionIdAttribute=takeoverSessionid/ ClusterListener className=org.apache.catalina.ha.session.JvmRouteSessionIDBinderListener/ ClusterListener className=org.apache.catalina.ha.session.ClusterSessionListener/ /Cluster What is the problem?? Any pointers, tips or outright solution would be appreciated!! -- View this message in context: http://old.nabble.com/Problem-with-tomcat-session-replication-tp28361225p28361225.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Problem with tomcat session replication
o-rabbit wrote: The multicast message is now not there but the second instance is still giving the following message: INFO: Manager [localhost#/mycontext]: skipping state transfer. No members active in cluster group I have followed the tomcat cluster howto guide closely, Given below is the config (I have mentioned the changes between config of the two nodes where ever applicable) : Cluster className=org.apache.catalina.ha.tcp.SimpleTcpCluster channelSendOptions=8 Manager className=org.apache.catalina.ha.session.DeltaManager expireSessionsOnShutdown=true useDirtyFlag=true notifyListenersOnReplication=true/ Channel className=org.apache.catalina.tribes.group.GroupChannel Membership className=org.apache.catalina.tribes.membership.McastService address=228.0.0.4 port=45564 frequency=500 dropTime=3000/ Receiver className=org.apache.catalina.tribes.transport.nio.NioReceiver address=auto port=4000 (in second node it is 4001) autoBind=100 selectorTimeout=5000 maxThreads=6/ Sender className=org.apache.catalina.tribes.transport.ReplicationTransmitter Transport className=org.apache.catalina.tribes.transport.nio.PooledParallelSender/ /Sender Interceptor className=org.apache.catalina.tribes.group.interceptors.TcpFailureDetector/ Interceptor className=org.apache.catalina.tribes.group.interceptors.MessageDispatch15Interceptor/ /Channel Valve className=org.apache.catalina.ha.tcp.ReplicationValve filter=.*\.gif;.*\.js;.*\.jpg;.*\.png;.*\.html;.*\.css;.*\.txt;/ Valve className=org.apache.catalina.ha.session.JvmRouteBinderValve enabled=true sessionIdAttribute=takeoverSessionid/ ClusterListener className=org.apache.catalina.ha.session.JvmRouteSessionIDBinderListener/ ClusterListener className=org.apache.catalina.ha.session.ClusterSessionListener/ /Cluster What is the problem?? Any pointers, tips or outright solution would be appreciated!! -- View this message in context: http://old.nabble.com/Problem-with-tomcat-session-replication-tp28361225p28361309.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Multiple catalina bases and monitoring each instance
On Fri, Apr 23, 2010 at 7:54 PM, Ziggy zigg...@gmail.com wrote: Hi, I was refering to monitoring things like database connections, active threads or sessions etc. Thanks if you want to have monitoring from outside the jvm, go for nagios/munin/big brother/sister or whatever. If you want to monitoring from inside of your application go for moskito: http://moskito.anotheria.net http://test.anotheria.net/moskitodemo/mui/ - demo installation with web user interface. regards Leon On Fri, Apr 23, 2010 at 11:50 AM, Harry Metske harry.met...@gmail.comwrote: It depends on what you mean with monitor. We use nagios (http://www.nagios.org) to monitor multiple Tomcat instances. You can do a plain check for an open socket, or call Tomcat's jmx proxy over http(s) to query Tomcat's mbeans. regards, Harry 2010/4/23 Ziggy zigg...@gmail.com Hi guys, Is there a way to monitor multiple tomcat instances? I have managed to configure multiple tomcat instances using $CATALINA_BASE but i cant seem to be able to find a way to monitor the instances. I know about the tomcat manager, admin and the Tomcat Probe/lambda applications. These will all only monitor a single instance of a running tomcat. Is there a way i can monitor all running instances from one tomcat instance? Thanks - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
JkMount and Apache Rewrite
Hi, I have the following config, to pass requests through Apache to Tomcat using AJP: RewriteEngine on RewriteRule ^/abc - [L,PT] RewriteRule (.*) /abc$1 [L,PT] JkMount /abc/* node1 This works, to the point that requests to http://sitename/ are rewritten to http://sitename/abc ... and the JkMount directive finds a match, and passes the request off to a worker. However, I need JkMount to preserve the rewritten URI and it doesn't appear to be doing that. A request to http://sitename/ gets rewritten to http://sitename/abc ... but, goes to the worker as http://sitename/ Does anyone know how I can preserve the rewritten URI when passing to the worker? Thanks, Phil -- Philip Hunt System Administrator Straker Software phone: +64 28 899 4802 email: philip.h...@strakersoftware.com web: http://www.shadocms.com
Tomcat classpath fpr jar-within-jar
Folks, Firstly, apologies if this question is a no-brainer. I have a war file containing a jar file (jar A) in the WEB-INF/lib directory. Jar A contains another another jar file (jar B). The structure of Jar A is class files under com/... and jar B. Classes inside jar B do not seem to be accessible to code in the application. Tomcat throws a SEVERE: Servlet /ExpenSysWT threw load() exception javax.servlet.UnavailableException: ... How do I arrange it so that code in my application can see classes in jar B? TIA - Adam -- Adam Lipscombe E: adam.lipsco...@gmail.com Skype: adam_lipscombe - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Client cert authentication
Thanks again Mark, I think it will be difficult to move to Tomcat 6 soon. If I change mod_proxy to mod_jk, does mod_jk passes the client cert to Tomcat 5.5? Thank you, Andre Mark Thomas wrote: On 22/04/2010 20:00, acastanheira2001 wrote: Thanks Mark, I use mod_proxy (ProxyPass and ProxyReverse) to connect Apache (2.2.3) to Tomcat(5.5)/Jboss (4.2). Can mod_proxy pass client cert to Tomcat? With 5.5.x, not with out some custom code. With 6.0.x, yes. You'd need to port this to Tomcat 5: http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org/apache/catalina/valves/SSLValve.java?view=annotate Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- View this message in context: http://old.nabble.com/Client-cert-authentication-tp28287654p28364194.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Client cert authentication
-Original Message- From: acastanheira2001 Sent: Monday, April 26, 2010 8:35 Subject: Re: Client cert authentication Thanks again Mark, I think it will be difficult to move to Tomcat 6 soon. If I change mod_proxy to mod_jk, does mod_jk passes the client cert to Tomcat 5.5? mod_proxy_ajp works perfectly. It will set request.isSecure() and fills in all the certs in the chain not trusted by apache httpd. Thank you, Andre Mark Thomas wrote: On 22/04/2010 20:00, acastanheira2001 wrote: Thanks Mark, I use mod_proxy (ProxyPass and ProxyReverse) to connect Apache (2.2.3) to Tomcat(5.5)/Jboss (4.2). Can mod_proxy pass client cert to Tomcat? With 5.5.x, not with out some custom code. With 6.0.x, yes. You'd need to port this to Tomcat 5: http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org/apache/cata lina/valves/SSLValve.java?view=annotate Mark -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- - - - Jason Pyeron PD Inc. http://www.pdinc.us - - Principal Consultant 10 West 24th Street #100- - +1 (443) 269-1555 x333Baltimore, Maryland 21218 - - - -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- This message is copyright PD Inc, subject to license 20080407P00. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat classpath fpr jar-within-jar
That is not possible in Java (not only in Tomcat, but not possible in any java application). You must extract jar B from jar A and put both on the classpath. But it would be a nice feature and you can probably vote for an issue about it in the bug database of Sun/Oracle. Ronald. Op maandag, 26 april 2010 14:05 schreef Adam Lipscombe adam.lipsco...@googlemail.com: Folks, Firstly, apologies if this question is a no-brainer. I have a war file containing a jar file (jar A) in the WEB-INF/lib directory. Jar A contains another another jar file (jar B). The structure of Jar A is class files under com/... and jar B. Classes inside jar B do not seem to be accessible to code in the application. Tomcat throws a SEVERE: Servlet /ExpenSysWT threw load() exception javax.servlet.UnavailableException: ... How do I arrange it so that code in my application can see classes in jar B? TIA - Adam -- Adam Lipscombe E: adam.lipsco...@gmail.com Skype: adam_lipscombe - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: An unexpected error has been detected by Java Runtime Environment:
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sanjeev, On 4/25/2010 12:13 AM, Sanjeev Verma wrote: Some helpful info on this error here - http://www.java-forums.org/eclipse/312-exception_access_violation-0xc005.html I find no helpful information on this page, unfortunately. This error is caused by either a bug in the JVM (which have been known to occur) or a problem with your hardware. As your machine is running Microsoft Windows, I suspect that you are using x86 hardware. In that case, please test your hardware using memtest86+ (http://www.memtest.org/) and upgrade to the latest JRE available for your platform. If the hardware test passes (let it run 2 or 3 times) and the latest JRE still fails, consider /downgrading/ the JRE until you get a stable system. Bugs have been known to creep into newer versions of JREs and you may find that an older one is more stable in your environment. If you are not using any native code in your webapp, then there is probably no way for you to avoid this error other than by identifying and correcting a hardware problem or finding a stable JRE for your environment. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkvVrTkACgkQ9CaO5/Lv0PAuqACffCz73fLetJLzeVFVMJMmG0eW kNcAoK4L5uo8udA1Zoc07kR30OLwiVod =Ebuo -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat classpath fpr jar-within-jar
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ronald, On 4/26/2010 8:53 AM, Ronald Klop wrote: That is not possible in Java (not only in Tomcat, but not possible in any java application). You must extract jar B from jar A and put both on the classpath. But it would be a nice feature and you can probably vote for an issue about it in the bug database of Sun/Oracle. Really? I would think that a custom ClassLoader would allow this behavior. To answer the OPs question: there's no way to do this without at least writing some of your own code (such as a ClassLoader). - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkvVxq4ACgkQ9CaO5/Lv0PDxigCfUtIH0n1cr3PSq6whmL04TvAN yJIAn2NVFGjg8T/AMXC7O9DMHITDWlkC =dVpp -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Classpath for JSP
Newbie question: I'm getting an error when code in a *.jsp file tries to instantiate a class it is not found by the compiler used by Tomcat6. But the documentation says, *WebappX* - A class loader is created for each web application that is deployed in a single Tomcat 6 instance. *All unpacked classes and resources in the /WEB-INF/classes director*y of your web application archive, plus classes and resources in JAR files under the /WEB-INF/lib directory of your web application archive, are made visible to the containing web application, but to no others. I verified that the class that was not found is indeed in /WEB-INF/classes. Also, classes in *.jar files in WEB-INF/lib are found. Does anyone have any thoughts or suggestions? Thanks in advance, Reuven Koblick
Re: Classpath for JSP
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Reuven, On 4/26/2010 1:22 PM, Reuven Koblick wrote: I'm getting an error when code in a *.jsp file tries to instantiate a class [that] is not found by the compiler used by Tomcat6. [snip] I verified that the class that was not found is indeed in /WEB-INF/classes. Can you be specific? Where is the .class file for that class (including full path)? Also, classes in *.jar files in WEB-INF/lib are found. Does anyone have any thoughts or suggestions? Can you post the import lines from the JSP as well? Anything else that's relevant (symlinks, network file system, etc.)? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkvV0IcACgkQ9CaO5/Lv0PA+5ACguUaVhNrjTQS3c3r4fXxpIl/v mBQAoKLuW9++5QpV/tRcFKQV9QAHC8V+ =uV0D -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Installing Java Advanced Imaging In Tomcat.
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Deech, On 4/23/2010 4:31 PM, aditya siram wrote: I know that JAI is installed correctly because a stand-alone app is able to access the required class. Good. You didn't mention your platform, and so a missing native library could have been the problem (not sure how much of JAI is native these days). Since it works outside of Tomcat, you're probably okay. I agree with Pid and Thad: try not to install anything extra into the system classpath by putting libraries like JAI into JRE_HOME/anything. It's best to bundle them with your webapp and/or use -classpath when launching non-webapp code. Finally, I'd just like to mention that uses of JAI (or really any Java image I/O) tends to reach the limits of scalability rather quickly unless you are careful about things like image size and numbers of simultaneous operations on images. Consider the fact that images are rather large and can consume a lot of memory, especially with many potential simultaneous users. If you are doing operations that don't actually require that you actually decode the entire image (such as determining image metadata, etc.) consider avoiding a full-image operation. Also consider a batch-processing model where your webapp records the desired operations and another process comes along and actually performs those operations. That can often give the user a better experience and also give you a more stable system. Good luck, - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkvV0joACgkQ9CaO5/Lv0PC+GwCfdBYxUuErFjpAp3dXYLyeK9yw HqYAoLlPzIgu23u/C3AutaA/h4GHoruG =tQPK -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Mod_jk 1.2.26 + tomcat 6.0.26 + apache 2.2.12 not working on ubuntu 'karmic'
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Klemens, On 4/23/2010 11:21 AM, Klemens Muthmann wrote: However now I need to make the tomcat applications available over port 80 so I tried to configure mod_jk but it does not work. [...] Currently the configuration looks like: - There is a symbolic link to jk.load file in /etc/apache2/mods-enabled with content: LoadModule jk_module /usr/lib/apache2/modules/mod_jk.so Does that file exist? Probably, because you have errors coming from mod_jk below... - httpd.conf is loaded in apache2.conf (after jk.load) via: Include /etc/apache2/httpd.conf and has the following content: JkWorkersFile /etc/libapache2-mod-jk/workers.properties JkLogFile /var/log/apache2/mod_jk.log JkLogLevel debug JkMount /nexus/* ajp13_worker Where do the above lines fall in terms of VirtualHosts? Most Debian-like packages have a main VirtualHost defined somewhere like /etc/apache2/sites-enabled. mod_jk allows separate mounts for each virtual host, including the top-level one, and they don't inherit from each other by default. Try moving the JkMount like (specifically) from where it is now into your default VirtualHost definition. Here's the hint that you have no JkMounts defined for your virtual host: [Fri Apr 23 15:20:05.210 2010] [23365:3585353520] [debug] jk_translate::mod_jk.c (3038): missing uri map for 127.0.1.1:/nexus/ It's the missing uri map that tells the story. Your workers.properties file looks fine (though the workers.tomcat_hom, workers.java_home, and ps properties are no longer relevant and should be removed, and you aren't actually using that loadbalancer so unless you're just testing in non-lb mode, remove it). Hope that helps, - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkvV02kACgkQ9CaO5/Lv0PDYGwCgj2mTQWirkmmUqCQwsP+ZJgUL FjAAnRvketJTpIebGHFR8k+h6tGglqyj =NBB0 -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Classpath for JSP
Sure Chris more specifically, from the localhost.*.log An error occurred at line: 21 in the jsp file: /admin/GenerateTriggersManually.jsp The constructor DB_Connection() is undefined 18: body 19: 20: % 21: DB_Connection dbCon = new DB_Connection(); 22: 23: int timeInterval = 1; 24: Here is the JSP file from the webapps/${appname} directory less admin/GenerateTriggersManually.jsp !doctype html public -//W3C//DTD HTML 4.0 Transitional//EN %...@page contentType=text/html% %...@page pageEncoding=UTF-8% %...@page import=com.bestrictlypersonal.db.DB_Connection % %...@page import=com.bestrictlypersonal.trigger.* % %...@page import=com.bestrictlypersonal.info.Volunteer % %...@page import=com.bestrictlypersonal.db.getTrigger.DB_GetInterruptedSessionReportTrigger % %...@page import=com.bestrictlypersonal.error.ProcessError % %...@page import=com.bestrictlypersonal.email.Email% %...@page import=com.bestrictlypersonal.setup.* % %...@page import=com.bestrictlypersonal.util.* % %...@page import=com.bestrictlypersonal.info.Volunteer% html headtitleJSP Page/title/head body % DB_Connection dbCon = new DB_Connection(); int timeInterval = 1; lastly, I go to webapps/${app-name}/WEB-INF/classes/com/bestrictlypersonal/db and the file DB_Connection.class is present and accounted for. Hope that is enough specific. Reuven On Mon, Apr 26, 2010 at 1:42 PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Reuven, On 4/26/2010 1:22 PM, Reuven Koblick wrote: I'm getting an error when code in a *.jsp file tries to instantiate a class [that] is not found by the compiler used by Tomcat6. [snip] I verified that the class that was not found is indeed in /WEB-INF/classes. Can you be specific? Where is the .class file for that class (including full path)? Also, classes in *.jar files in WEB-INF/lib are found. Does anyone have any thoughts or suggestions? Can you post the import lines from the JSP as well? Anything else that's relevant (symlinks, network file system, etc.)? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkvV0IcACgkQ9CaO5/Lv0PA+5ACguUaVhNrjTQS3c3r4fXxpIl/v mBQAoKLuW9++5QpV/tRcFKQV9QAHC8V+ =uV0D -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Classpath for JSP
Am Mon, 26 Apr 2010 13:22:49 -0400 schrieb Reuven Koblick reu...@koblick.com: I verified that the class that was not found is indeed in /WEB-INF/classes. Also, classes in *.jar files in WEB-INF/lib are found. Does anyone have any thoughts or suggestions? Maybe wrong rights for directories or files in the classes-directory? Is the class at the correct place within the directory tree compared to the class-hierarchy? What does catalina.out report exactly? There is a nice management tool called Lambda-Probe that could give you some assistance under its menu applications/attributes. You get it as a war-file at http://www.lambdaprobe.org/ . Regards, Tobias. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Classpath for JSP
Here is the catalina.out file: Apr 25, 2010 3:25:31 PM org.apache.catalina.core.AprLifecycleListener init INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /home/reuven/sp00/jre1.6.0_18/lib/i386/server:/home/reuven/sp00/jre1.6.0_18/lib/i386:/home/reuven/sp00/jre1.6.0_18/../lib/i386:/usr/java/packages/lib/i386:/lib:/usr/lib Apr 25, 2010 3:25:31 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-8080 Apr 25, 2010 3:25:31 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 690 ms Apr 25, 2010 3:25:31 PM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Apr 25, 2010 3:25:31 PM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/6.0.24 Apr 25, 2010 3:25:31 PM org.apache.catalina.startup.HostConfig deployDescriptor INFO: Deploying configuration descriptor host-manager.xml Apr 25, 2010 3:25:32 PM org.apache.catalina.startup.HostConfig deployDescriptor INFO: Deploying configuration descriptor manager.xml Apr 25, 2010 3:25:32 PM org.apache.catalina.startup.HostConfig deployWAR INFO: Deploying web application archive sp00.war Apr 25, 2010 3:25:33 PM org.apache.catalina.startup.HostConfig deployWAR INFO: Deploying web application archive sample.war Apr 25, 2010 3:25:33 PM org.apache.catalina.startup.HostConfig deployDirectory INFO: Deploying web application directory docs Apr 25, 2010 3:25:33 PM org.apache.catalina.startup.HostConfig deployDirectory INFO: Deploying web application directory ROOT Apr 25, 2010 3:25:33 PM org.apache.catalina.startup.HostConfig deployDirectory INFO: Deploying web application directory examples Apr 25, 2010 3:25:33 PM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on http-8080 Apr 25, 2010 3:25:33 PM org.apache.jk.common.ChannelSocket init INFO: JK: ajp13 listening on /0.0.0.0:8009 Apr 25, 2010 3:25:33 PM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=0/24 config=null Apr 25, 2010 3:25:33 PM org.apache.catalina.startup.Catalina start INFO: Server startup in 2033 ms Thanks Tobias, I'll check out lambdaprobe On Mon, Apr 26, 2010 at 2:15 PM, Tobias Crefeld t...@cataneo.eu wrote: Am Mon, 26 Apr 2010 13:22:49 -0400 schrieb Reuven Koblick reu...@koblick.com: I verified that the class that was not found is indeed in /WEB-INF/classes. Also, classes in *.jar files in WEB-INF/lib are found. Does anyone have any thoughts or suggestions? Maybe wrong rights for directories or files in the classes-directory? Everything installed is under my (reuven) ownership. That includes Tomcat, Java SDK, JRE, everything. Is the class at the correct place within the directory tree compared to the class-hierarchy? Yes What does catalina.out report exactly? There is a nice management tool called Lambda-Probe that could give you some assistance under its menu applications/attributes. You get it as a war-file at http://www.lambdaprobe.org/ . Regards, Tobias. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Classpath for JSP
On Mon, Apr 26, 2010 at 2:11 PM, Reuven Koblick groovyro...@gmail.com wrote: Sure Chris more specifically, from the localhost.*.log An error occurred at line: 21 in the jsp file: /admin/GenerateTriggersManually.jsp The constructor DB_Connection() is undefined Does DB_Connection actually have a no-arg constructor 'cause the compiler doesn't seem to think so... 18: body 19: 20: % 21: DB_Connection dbCon = new DB_Connection(); 22: 23: int timeInterval = 1; 24: Here is the JSP file from the webapps/${appname} directory less admin/GenerateTriggersManually.jsp !doctype html public -//W3C//DTD HTML 4.0 Transitional//EN %...@page contentType=text/html% %...@page pageEncoding=UTF-8% %...@page import=com.bestrictlypersonal.db.DB_Connection % %...@page import=com.bestrictlypersonal.trigger.* % %...@page import=com.bestrictlypersonal.info.Volunteer % %...@page import=com.bestrictlypersonal.db.getTrigger.DB_GetInterruptedSessionReportTrigger % %...@page import=com.bestrictlypersonal.error.ProcessError % %...@page import=com.bestrictlypersonal.email.Email% %...@page import=com.bestrictlypersonal.setup.* % %...@page import=com.bestrictlypersonal.util.* % %...@page import=com.bestrictlypersonal.info.Volunteer% html headtitleJSP Page/title/head body % DB_Connection dbCon = new DB_Connection(); int timeInterval = 1; lastly, I go to webapps/${app-name}/WEB-INF/classes/com/bestrictlypersonal/db and the file DB_Connection.class is present and accounted for. Hope that is enough specific. Reuven On Mon, Apr 26, 2010 at 1:42 PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Reuven, On 4/26/2010 1:22 PM, Reuven Koblick wrote: I'm getting an error when code in a *.jsp file tries to instantiate a class [that] is not found by the compiler used by Tomcat6. [snip] I verified that the class that was not found is indeed in /WEB-INF/classes. Can you be specific? Where is the .class file for that class (including full path)? Also, classes in *.jar files in WEB-INF/lib are found. Does anyone have any thoughts or suggestions? Can you post the import lines from the JSP as well? Anything else that's relevant (symlinks, network file system, etc.)? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkvV0IcACgkQ9CaO5/Lv0PA+5ACguUaVhNrjTQS3c3r4fXxpIl/v mBQAoKLuW9++5QpV/tRcFKQV9QAHC8V+ =uV0D -END PGP SIGNATURE- -- Kris Schneider - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Classpath for JSP
Reuven, you say the error is it is not found by the compiler used by Tomcat6, but that is not clear from the JSP compiler output. It says The constructor DB_Connection() is undefined, so Kris's suggestion is right. You could split the statement in a declaration and an assignment to prove it: DB_Connection dbCon; dbCon = new DB_Connection(); Also, do you get this error only if you declare the DB_Connection() in a JSP, or also if you declare it in another Java class ? (the JSP compiler uses a slightly different classpath than the webapp classloader) regards, Harry 2010/4/26 Kris Schneider kschnei...@gmail.com On Mon, Apr 26, 2010 at 2:11 PM, Reuven Koblick groovyro...@gmail.com wrote: Sure Chris more specifically, from the localhost.*.log An error occurred at line: 21 in the jsp file: /admin/GenerateTriggersManually.jsp The constructor DB_Connection() is undefined Does DB_Connection actually have a no-arg constructor 'cause the compiler doesn't seem to think so... 18: body 19: 20: % 21: DB_Connection dbCon = new DB_Connection(); 22: 23: int timeInterval = 1; 24: Here is the JSP file from the webapps/${appname} directory less admin/GenerateTriggersManually.jsp !doctype html public -//W3C//DTD HTML 4.0 Transitional//EN %...@page contentType=text/html% %...@page pageEncoding=UTF-8% %...@page import=com.bestrictlypersonal.db.DB_Connection % %...@page import=com.bestrictlypersonal.trigger.* % %...@page import=com.bestrictlypersonal.info.Volunteer % %...@page import=com.bestrictlypersonal.db.getTrigger.DB_GetInterruptedSessionReportTrigger % %...@page import=com.bestrictlypersonal.error.ProcessError % %...@page import=com.bestrictlypersonal.email.Email% %...@page import=com.bestrictlypersonal.setup.* % %...@page import=com.bestrictlypersonal.util.* % %...@page import=com.bestrictlypersonal.info.Volunteer% html headtitleJSP Page/title/head body % DB_Connection dbCon = new DB_Connection(); int timeInterval = 1; lastly, I go to webapps/${app-name}/WEB-INF/classes/com/bestrictlypersonal/db and the file DB_Connection.class is present and accounted for. Hope that is enough specific. Reuven On Mon, Apr 26, 2010 at 1:42 PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Reuven, On 4/26/2010 1:22 PM, Reuven Koblick wrote: I'm getting an error when code in a *.jsp file tries to instantiate a class [that] is not found by the compiler used by Tomcat6. [snip] I verified that the class that was not found is indeed in /WEB-INF/classes. Can you be specific? Where is the .class file for that class (including full path)? Also, classes in *.jar files in WEB-INF/lib are found. Does anyone have any thoughts or suggestions? Can you post the import lines from the JSP as well? Anything else that's relevant (symlinks, network file system, etc.)? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkvV0IcACgkQ9CaO5/Lv0PA+5ACguUaVhNrjTQS3c3r4fXxpIl/v mBQAoKLuW9++5QpV/tRcFKQV9QAHC8V+ =uV0D -END PGP SIGNATURE- -- Kris Schneider - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
development platform for jaxws-based webapps
I was experimenting with MyEclipse for a couple of days now to find an efficient way to generate wsdl/jaxws based wep apps. MyEclipse seem promising to me when I was starting with the article http://www.myeclipseide.com/documentation/quickstarts/webservices_jaxws/index.html but later on it turned out that the building the delegate classes /updating of webservices is not yet matured enough to allow for efficient development - I'm waiting for a response of the developer team though. Anyone here on the tomcat list using Eclipse (the open one, eclipse.org) or any other tool for developing wsdl based webservices? -- Christoph Kukulies - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Classpath for JSP
Harry, I looked at the java class files and verified there is no constructor without arguments. That's good enough for me. You're correct that my error description fell short of the mark. As expected, the compiler output is much more precise than my description. That's probably why Chris Schultz asked for more specifics. I'm new here and can't tell everyone how much I appreciate your help and how quick it all came. I'm new to Tomcat and JSP -- usually work with a different framework in a different language. You all couldn't be more helpful. Reuven Koblick On Mon, Apr 26, 2010 at 4:14 PM, Harry Metske harry.met...@gmail.comwrote: Reuven, you say the error is it is not found by the compiler used by Tomcat6, but that is not clear from the JSP compiler output. It says The constructor DB_Connection() is undefined, so Kris's suggestion is right. You could split the statement in a declaration and an assignment to prove it: DB_Connection dbCon; dbCon = new DB_Connection(); Also, do you get this error only if you declare the DB_Connection() in a JSP, or also if you declare it in another Java class ? (the JSP compiler uses a slightly different classpath than the webapp classloader) regards, Harry 2010/4/26 Kris Schneider kschnei...@gmail.com On Mon, Apr 26, 2010 at 2:11 PM, Reuven Koblick groovyro...@gmail.com wrote: Sure Chris more specifically, from the localhost.*.log An error occurred at line: 21 in the jsp file: /admin/GenerateTriggersManually.jsp The constructor DB_Connection() is undefined Does DB_Connection actually have a no-arg constructor 'cause the compiler doesn't seem to think so... 18: body 19: 20: % 21: DB_Connection dbCon = new DB_Connection(); 22: 23: int timeInterval = 1; 24: Here is the JSP file from the webapps/${appname} directory less admin/GenerateTriggersManually.jsp !doctype html public -//W3C//DTD HTML 4.0 Transitional//EN %...@page contentType=text/html% %...@page pageEncoding=UTF-8% %...@page import=com.bestrictlypersonal.db.DB_Connection % %...@page import=com.bestrictlypersonal.trigger.* % %...@page import=com.bestrictlypersonal.info.Volunteer % %...@page import=com.bestrictlypersonal.db.getTrigger.DB_GetInterruptedSessionReportTrigger % %...@page import=com.bestrictlypersonal.error.ProcessError % %...@page import=com.bestrictlypersonal.email.Email% %...@page import=com.bestrictlypersonal.setup.* % %...@page import=com.bestrictlypersonal.util.* % %...@page import=com.bestrictlypersonal.info.Volunteer% html headtitleJSP Page/title/head body % DB_Connection dbCon = new DB_Connection(); int timeInterval = 1; lastly, I go to webapps/${app-name}/WEB-INF/classes/com/bestrictlypersonal/db and the file DB_Connection.class is present and accounted for. Hope that is enough specific. Reuven On Mon, Apr 26, 2010 at 1:42 PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Reuven, On 4/26/2010 1:22 PM, Reuven Koblick wrote: I'm getting an error when code in a *.jsp file tries to instantiate a class [that] is not found by the compiler used by Tomcat6. [snip] I verified that the class that was not found is indeed in /WEB-INF/classes. Can you be specific? Where is the .class file for that class (including full path)? Also, classes in *.jar files in WEB-INF/lib are found. Does anyone have any thoughts or suggestions? Can you post the import lines from the JSP as well? Anything else that's relevant (symlinks, network file system, etc.)? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkvV0IcACgkQ9CaO5/Lv0PA+5ACguUaVhNrjTQS3c3r4fXxpIl/v mBQAoKLuW9++5QpV/tRcFKQV9QAHC8V+ =uV0D -END PGP SIGNATURE- -- Kris Schneider - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: development platform for jaxws-based webapps
Caveats: I'm normally a systems architect, so I get build architectures or debug performance / crash issues. I've also not built web services by hand. Getting into the middle of an IDE debate starts a religious war similar in intensity to emacs versus vi. All of that said, I just worked through the beginning examples for web services development using Netbeans 6.8 and Tomcat 6.0.26. The first tutorial was clean, easy to follow, and worked fine under Fedora 11, JDK 1.6.0_19, and Tomcat 6.0.26. As always, just my two cents . . . . --- On Mon, 4/26/10, Christoph Kukulies k...@kukulies.org wrote: From: Christoph Kukulies k...@kukulies.org Subject: development platform for jaxws-based webapps To: Tomcat Users List users@tomcat.apache.org Date: Monday, April 26, 2010, 1:19 PM I was experimenting with MyEclipse for a couple of days now to find an efficient way to generate wsdl/jaxws based wep apps. MyEclipse seem promising to me when I was starting with the article http://www.myeclipseide.com/documentation/quickstarts/webservices_jaxws/index.html but later on it turned out that the building the delegate classes /updating of webservices is not yet matured enough to allow for efficient development - I'm waiting for a response of the developer team though. Anyone here on the tomcat list using Eclipse (the open one, eclipse.org) or any other tool for developing wsdl based webservices? -- Christoph Kukulies - 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: Installing Java Advanced Imaging In Tomcat.
aditya siram aditya.siram at gmail.com writes: Hi all, I am having issues using jai [1] with a Tomcat webapp. I am running the tomcat6 package installed from the Ubuntu repos. The webapp does some image decompression and is unable to detect CLibJpegImageReader which is a class in the jai_imageio.jar. I have copied this jar file to my WEB-INF/lib directory and also to /var/lib/tomcat6/lib and /usr/share/tomcat6/lib hoping that it would work from one of these locations. Additionally it is in my JAVA_HOME/jre/lib/ext directory so it should be available after the bootstrap phase. I know that JAI is installed correctly because a stand-alone app is able to access the required class. Any help is appreciated -deech I think someone reported something similar a few weeks back. The response that worked for them was: Try disabling the JreMemoryLeakPreventionListener in conf/server.xml, just in case it was interfering with the JAI registration. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: development platform for jaxws-based webapps
Addendum: It looks like the annotation @WebService() does a lot of magic under the covers. This will create some problems with you shut down the service provider. In particular: SEVERE: A web application created a ThreadLocal with key of type [null] (value [org.glassfish.gmbal.generic.operationtrace...@6de4b]) and a value of type [java.util.ArrayList] (value [[]]) but failed to remove it when the web application was stopped. To prevent a memory leak, the ThreadLocal has been forcibly removed. SEVERE: A web application created a ThreadLocal with key of type [null] (value [com.sun.xml.bind.v2.runtime.coordinato...@ec32de]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@ffab0a]) but failed to remove it when the web application was stopped. To prevent a memory leak, the ThreadLocal has been forcibly removed. SEVERE: A web application created a ThreadLocal with key of type [null] (value [com.sun.xml.bind.v2.classfactor...@1365360]) and a value of type [java.util.WeakHashMap] (value [ {class com.sun.xml.ws.runtime.config.Tubelines =java.lang.ref.weakrefere...@19bf996, class com.sun.xml.ws.runtime.config.MetroConfig =java.lang.ref.weakrefere...@11f1f12, class javax.xml.bind.annotation.W3CDomHandler =java.lang.ref.weakrefere...@30e4a7, class com.sun.xml.ws.runtime.config.TubelineDefinition =java.lang.ref.weakrefere...@1f39c59, class java.util.ArrayList =java.lang.ref.weakrefere...@9db0ad, class com.sun.xml.ws.runtime.config.TubeFactoryList =java.lang.ref.weakrefere...@ba679e, class javax.xml.bind.annotation.adapters.CollapsedStringAdapter =java.lang.ref.weakrefere...@1e8b671, class com.sun.xml.ws.runtime.config.TubeFactoryConfig =java.lang.ref.weakrefere...@121dcac}]) but failed to remove it when the web application was stopped. To prevent a memory leak, the ThreadLocal has been forcibly removed. SEVERE: A web application created a ThreadLocal with key of type [null] (value [org.glassfish.gmbal.generic.operationtrace...@6de4b]) and a value of type [java.util.ArrayList] (value [[]]) but failed to remove it when the web application was stopped. To prevent a memory leak, the ThreadLocal has been forcibly removed. It looks like some cleanup or hand coding is in order. Otherwise repeated deployments will cause a memory leak in earlier versions of Tomcat 6, and fill up your log files with Tomcat 6.0.26. --- On Mon, 4/26/10, Mark Eggers its_toas...@yahoo.com wrote: From: Mark Eggers its_toas...@yahoo.com Subject: Re: development platform for jaxws-based webapps To: Tomcat Users List users@tomcat.apache.org Date: Monday, April 26, 2010, 3:30 PM Caveats: I'm normally a systems architect, so I get build architectures or debug performance / crash issues. I've also not built web services by hand. Getting into the middle of an IDE debate starts a religious war similar in intensity to emacs versus vi. All of that said, I just worked through the beginning examples for web services development using Netbeans 6.8 and Tomcat 6.0.26. The first tutorial was clean, easy to follow, and worked fine under Fedora 11, JDK 1.6.0_19, and Tomcat 6.0.26. As always, just my two cents . . . . - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Installing Java Advanced Imaging In Tomcat.
That was me, but I had a different problem. (1) I was running Tomcat 6.0.26; and (2) my servlet could find the classes, but the IteratorImageReader returned by ImageIO. getImageReadersByFormatName(tiff) returned false for hasNext(). On Mon, Apr 26, 2010 at 6:49 PM, Stephen Souness sou...@hotmail.com wrote: ... I think someone reported something similar a few weeks back. The response that worked for them was: Try disabling the JreMemoryLeakPreventionListener in conf/server.xml, just in case it was interfering with the JAI registration. -- Hell hath no limits, nor is circumscrib'd In one self-place; but where we are is hell, And where hell is, there must we ever be --Christopher Marlowe, 'Doctor Faustus' (v, 121-24)