Generating MD5 password using tomcat 5
Hi, I am trying to generate MD5 Password using tomcat 5. $JAVA_PATH/bin/java -classpath $CATALINATHOME/server/lib/catalina.jar org.apache.catalina.realm.RealmBase -a MD5 TESTMESSAGE Its throwing the following error .. Exception in thread main java.lang.NoClassDefFoundError: javax/management/MBeanRegistration at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:509) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123) at java.net.URLClassLoader.defineClass(URLClassLoader.java:246) at java.net.URLClassLoader.access$100(URLClassLoader.java:54) at java.net.URLClassLoader$1.run(URLClassLoader.java:193) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:186) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265) at java.lang.ClassLoader.loadClass(ClassLoader.java:262) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:322) Where as same thing is working with tomcat 4. I am struck here ..Can some one help me with this Thanks and Regards, Nagendra Reddy. D Hewlett Packard ISO (STSD) Bangalore. Ph : 080-22052254 +hp = Everything is Possible
RE: [ANN] LambdaProbe for Tomcat 1.5 is released
Hi Remy, There is a slightly newer version already: 1.5.0.1, which addresses problems with unknown ServerInfo values. You can now force the first adaptor on the list by setting forceFirstAdaptor=true in spring-resources.xml. The list of adaptors has to be ordered accordingly of course. As far as the context goes, there are quite a few TC 5.0 users as I'm sure you know :) and having logger in the context may help to troubleshoot startup problems for them. Cheers, Vlad -Original Message- From: Remy Maucherat [mailto:[EMAIL PROTECTED] Sent: Fri 12/05/2006 2:39 PM To: Tomcat Users List Subject: Re: [ANN] LambdaProbe for Tomcat 1.5 is released On 5/12/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I am pleased to announce the immediate availability of LambdaProbe 1.5 LambdaProbe is an Open Source (GPL) Tomcat monitoring and mangement webapp. The new release features OS memory usage, swap usage and CPU utilization monitors, support for Java Service Wrapper, which allows to restart Tomcat from a web page, user interface improvements and important bug fixes0. Very good. Most probably this is for compat with Tomcat 5.0, but the context.xml is: Context path=/probe privileged=true Logger className=org.apache.catalina.logger.FileLogger prefix=probe. suffix=.out timestamp=true/ /Context For 5.5, it can be simplified to (since the Logger element no longer exists): Context privileged=true /Context It also doesn't support my on going 6.0 development, although most likely 6.0 will remain compatible with 5.5. You could attempt to default to the most recent adapter if no obvious match is found. -- x Rémy Maucherat Developer Consultant JBoss Inc x - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] The information contained in this email message may be confidential. If you are not the intended recipient, any use, interference with, disclosure or copying of this material is unauthorised and prohibited. Although this message and any attachments are believed to be free of viruses, no responsibility is accepted by Informa for any loss or damage arising in any way from receipt or use thereof. Messages to and from the company are monitored for operational reasons and in accordance with lawful business practices. If you have received this message in error, please notify us by return and delete the message and any attachments. Further enquiries/returns can be sent to [EMAIL PROTECTED]
Tomcat, ClassLoader and java.lang.ClassCastException
I have this code: DAOClassLoader d = new DAOClassLoader(); Object o = d.loadClass(security.to.ActionTO).newInstance(); System.out.println(o); ActionTO u = (ActionTO)o; u.setDescription(descripcion); System.out.println(u); The ActionTO is a simple TO object whit their get and sets and the loadClass is: package infraestructure.utils; import java.io.FileInputStream; import java.util.Hashtable; public class DAOClassLoader extends ClassLoader { private Hashtable classes = new Hashtable(); private byte getClassFromFile(String className)[] { System.out.println(Fetching the implementation of + className); byte result[]; try { String file = /home/esteban/workspace/security/web/WEB-INF/classes/ + className; file = file.replaceAll(\\., /) + .class; System.out.println(Trataremos con + file + ...); FileInputStream fi = new FileInputStream(file); System.out.println(FileInputStream: + fi); result = new byte[fi.available()]; fi.read(result); return result; } catch (Exception e) { e.printStackTrace(); return null; } } @SuppressWarnings(unchecked) public Class loadClass(String className) throws ClassNotFoundException { return (loadClass(className, true)); } @SuppressWarnings(unchecked) public synchronized Class loadClass(String className, boolean resolveIt) throws ClassNotFoundException { Class result; byte classData[]; System.out.println(Load class : + className); System.out.println(cache : ); /* Check our local cache of classes */ result = (Class) classes.get(className); if (result != null) { System.out.println(returning cached result.); return result; } try { result = super.findSystemClass(className); System.out .println(returning system class (in CLASSPATH).); return result; } catch (ClassNotFoundException e) { System.out.println(Not a system class.); } System.out.println(repositorio ); classData = getClassFromFile(className); if (classData == null) { throw new ClassNotFoundException(); } /* Define it (parse the class file) */ result = this.defineClass(null, classData, 0, classData.length); if (result == null) { throw new ClassFormatError(); } if (resolveIt) { resolveClass(result); } classes.put(className, result); System.out.println(Returning newly loaded class.); return result; } } When I run the code in the console work fine, put when I run in a jsp I have this: type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: security.to.ActionTO org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:372) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) root cause java.lang.ClassCastException: security.to.ActionTO security.administration.Authorization.init(Authorization.java:51) org.apache.jsp.admin.login_jsp._jspService(login_jsp.java:49) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) note The full stack trace of the root cause is available in the Apache Tomcat/5.0 logs. and the log is: 2006-05-12 14:02:42 StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception java.lang.ClassCastException: security.to.ActionTO at security.administration.Authorization.init(Authorization.java:46) at org.apache.jsp.admin.login_jsp._jspService(login_jsp.java:49) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at
RE: Tomcat Shutdown Unexpectedly
Hello Again, I am not sure if this will help at all, but the specific versions of Java and Tomcat are as follows: Java - 1.4.2_06 Tomcat - 5.0.27 I get the feeling that this is a relatively obscure problem judging by the lack of response. It would be most helpful is someone can at least point me in a direction that would help me solve this problem. If you have any questions regarding this problem, I will be more than happy to answer them. Thanks again Dan -Original Message- From: Vasily Ivanov [mailto:[EMAIL PROTECTED] Sent: Thursday, May 11, 2006 9:20 AM To: Tomcat Users List Subject: Re: Tomcat Shutdown Unexpectedly Hi, We've recently had something very similar with Tomcat and Apache Web Server. Have a look here (read all in threads): http://www.mail-archive.com/users@tomcat.apache.org/msg09335.html http://marc.theaimsgroup.com/?l=tomcat-userm=106193808515738w=2 We changed configuration of Tomcat and Apache Web Server to be in sync. Few days passed after fix's been placed, but it looks ok now. Hope it'll help you. Cheers, Vasily On 5/11/06, zhann [EMAIL PROTECTED] wrote: Hello. We are having a strange Tomcat issue on one of our client's machines. The problem is that it shuts down randomly. There is nothing in the Tomcat Log to indicate why this is occuring, and the Windows Event Manager simply states that the process shut down unexpectedly. We have tried recreating this problem in-house, but have absolutely no luck. We are running tomcat 5.x and Java 1.4.x. The machine that this is installed on is Windows 2003 with all the latest updates. One other thing to note, this installation of tomcat is using Load ballancing. If anyone can point me in a direction of where to look, it would be very helpful. I have scoured the internet and the newsgroups but can't find a similar problem anywhere. Thanks in advance Dan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Help with MD5 key generation with tomcat 5
Devireddy, Nagendra Reddy (STSD) wrote: No , My jre version is 1.4.2 .. Thanks, Nagendra As the last poster was hinting at, you need to be running a 1.5 JRE or install the 1.4 compat(ibility) download. Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Weird problem with Tomcat 5.5.17 and j_security_check
When starting a new thread (ie sending a message to the list about a new topic) please do not reply to an existing message and change the subject line. To many of the list archiving services and mail clients used by list subscribers this makes your new message appear as part of the old thread. This makes it harder for other users to find relevant information when searching the lists. This is known as thread hijacking and is that is frowned upon on this list. Frequent offenders will be removed from the list. It should also be noted that many list subscribers automatically ignore any messages that hijack another thread. The correct procedure is to create a new message with a new subject. This will start a new thread. Mark tomcat-user-owner - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Jakarta Messenger (and other dormant?)
Dean Anderson wrote: This may be the wrong list, but it is sort of jakarta related... You need to post this to the Jakarta General list, not the Tomcat list. Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to embed server hostname in JSP page on clustered Tomcat
Not sure if you got a response to this, but this has worked for myself. %@ page import=java.net.InetAddress % % InetAddress ia = InetAddress.getLocalHost(); out.println(!-- hostname + ia.getHostName() + --); % - Original Message - From: David Goodenough [EMAIL PROTECTED] To: tomcat-user@jakarta.apache.org Sent: Friday, May 12, 2006 8:19 AM Subject: How to embed server hostname in JSP page on clustered Tomcat I have a cluster of (currently) two Tomcat 5.5.17 instances. I want to put a hidden field on the pages which tells me which machine I am currently connected to. Reading the spec it appeared that using:- input type=hidden name=host value=${pageContext.request.serverName} / should work, but it would appear that all this does is take the server portion of the URL. Anyone know how to do this (short of writing some Java code that is, I would rather use simple JSP and JSTL). David - 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]
Weirdness with Tomcat 5.5.17, j_security_check and favicon.ico
Hello Everyone, I have just installed a clean server with windows 2003 Standard, Java JDK 1.5.0_06 and tomcat 5.5.17. I moved my application that I created on tomcat 5.0 to this server and set the application up as a host site. When I access the site, it asks for the user name and password (normally done). But after you are successfully authenticated, it goes to a 404 cannot find favicon.ico. So I googled and found that was an issue with Firefox, so I tried IE and I can get into the application. But now, when I put a favicon.ico in the applications root and I log in. With Firefox, right after I log in, I get a page that displays my favicon.ico, but it never gets to my index.jsp. I have to go to the url and delete the /favicon.ico and hit enter and then I'm into the application. In IE, after I log in, it takes me to my application, but it doesn't show the favicon.ico in the address bar. Has anyone else experienced this or could you point me to another posting that shows how this was resolved. I thank you in advance for any advice I can get. Respectfully, Dean Searle Computing Oasis Caro, Michigan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Weirdness with Tomcat 5.5.17, j_security_check and favicon.ico
That is most likely due to security constraints URL in your web.xml It looks like all your resources are protected and when browser tries to access favicon before anything else server sees it as protected resource and displays login form, and then let the request proceed to the favicon once user provided credentials. On Saturday 13 May 2006 08:32 pm, Dean Searle wrote: Hello Everyone, I have just installed a clean server with windows 2003 Standard, Java JDK 1.5.0_06 and tomcat 5.5.17. I moved my application that I created on tomcat 5.0 to this server and set the application up as a host site. When I access the site, it asks for the user name and password (normally done). But after you are successfully authenticated, it goes to a 404 cannot find favicon.ico. So I googled and found that was an issue with Firefox, so I tried IE and I can get into the application. But now, when I put a favicon.ico in the applications root and I log in. With Firefox, right after I log in, I get a page that displays my favicon.ico, but it never gets to my index.jsp. I have to go to the url and delete the /favicon.ico and hit enter and then I'm into the application. In IE, after I log in, it takes me to my application, but it doesn't show the favicon.ico in the address bar. Has anyone else experienced this or could you point me to another posting that shows how this was resolved. I thank you in advance for any advice I can get. Respectfully, Dean Searle Computing Oasis Caro, Michigan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Thanks, Konstantin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]