Problem with Managed Bean
Hello, I wrote a new UserDatabase Class which meets better our needs. I used Tomcat 5.0 with Java 1.4. Everthing worked fine. Now I want to use Tomcat 5.5 with Java 1.5. I now get the following Exception: SCHWERWIEGEND: Exception creating UserDatabase MBeans for UserDatabase javax.management.MBeanException at org.apache.catalina.mbeans.MBeanUtils.createMBean(MBeanUtils.java:676 ) at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBe ans(GlobalResourcesLifecycleListener.java:178) at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBe ans(GlobalResourcesLifecycleListener.java:146) at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBe ans(GlobalResourcesLifecycleListener.java:108) at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.lifecycle Event(GlobalResourcesLifecycleListener.java:80) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl eSupport.java:119) at org.apache.catalina.core.StandardServer.start(StandardServer.java:676 ) at org.apache.catalina.startup.Catalina.start(Catalina.java:537) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409) Caused by: java.lang.Exception: ManagedBean is not found with RSELUserDatabase at org.apache.catalina.mbeans.MBeanUtils.createMBean(MBeanUtils.java:675 ) ... 13 more I think Tomcat cannot find the mbeans-descriptors.xml file, but I'm not sure. Does anyone know what changed, so that my class does not work anymore? Is it an configuration problem. What do I have to change? Thanks in advance Stefan Parnet 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. Access to this e-mail by anyone else is unauthorised. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited. E-mail messages are not necessarily secure. Renesas does not accept responsibility for any changes made to this message after it was sent. Please note that this email message has been swept by Renesas for the presence of computer viruses. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Howto configure tomcat to compile JSPs with Sun JDK 1.5
Hello Jean-Claude, I don't use the Eclipse IDE. I do all my developments with the NetBeans IDE. But anyway, the IDE does not matter since Tomcat is running separately in an productive environment under Linux with Apache, mod_jk and Java 1.5_02 Tomcat 5.5 just uses Eclipse JDT compiler classes to compile JSPs. But it should be possible to change the config, so that Tomcat uses another compiler. At least, the releasenotes say so. But there is no useful howto at the tomcat web site or anywhere else. (at least I didn't find one) The problem is: 1. Tomcat 5.5 (without compatibility packages) runs only with Java 1.5 (JRE!) 2. The built in Java compiler to compile JSPs (and only JSPs) is the Eclipse JDT Compiler !!! JAVA 1.4 !!! == So Servlets using Java 1.5 features are runnig without problems because they are already compiled == JSPs with Java 1.5 features cannot be compiled (within tomcat) because the tomcat built-in compiler only knows Java 1.4 Stefan Serlet Jean-Claude schrieb: Hello Lutz is right : you may define your JRE under Eclipse Under (sorry for my mistakes : i use a french version and try to translate in english) Window - Preferences - Installed JRE you may use an other JRE that the one installed under Eclipse Hope this will help you Jean-Claude -Message d'origine- De : Stefan Parnet [mailto:[EMAIL PROTECTED] Envoyé : mercredi 27 avril 2005 16:14 À : Tomcat Users List Objet : Re: Howto configure tomcat to compile JSPs with Sun JDK 1.5 Lutz Zetzsche schrieb: Hi Stefan, Am Mittwoch, 27. April 2005 15:20 schrieb Stefan Parnet: Hello, I installed Tomcat 5.5.9 and want to use Java 1.5 in my JSPs. Since Tomcat 5.5 uses the Eclipse JDT Compiler (Java 1.4), it cannot compile my JSPs. So I want the tomcat to compile the JSP's with the Sun JDK 1.5 compiler. I searched the web, but I did not find any instructions how to configure the tomcat to do so. Can anyone help me? Do you integrate the Tomcat 5.5.9 into your Eclipse IDE or do you run it seperately? If you run Tomcat integrated into Eclipse, perhaps you can tell Eclipse which installed Tomcat and which installed JDK to use for your project. This is the way, I can do it with NetBeans IDE. Else, if you run Tomcat independently of the IDE, you must only set the environment variable for the JDK correctly before starting the server. I am running Tomcat 5.5.7 with JDK 1.5.0_02 and have to set the environment variable JRE_HOME so that Tomcat uses the right one of the installed JDKs. I set the JRE_HOME manually before starting Tomcat: export JRE_HOME=/usr/java/jre1.5.0_02/ (you must change the path to the path you use on your system) The environment variable JAVA_HOME could also play a role, although not in my case. :-) I hope, this information does help a little. Best wishes Lutz 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. Access to this e-mail by anyone else is unauthorised. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited. E-mail messages are not necessarily secure. Renesas does not accept responsibility for any changes made to this message after it was sent. Please note that this email message has been swept by Renesas for the presence of computer viruses. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Howto configure tomcat to compile JSPs with Sun JDK 1.5
Hello, I installed Tomcat 5.5.9 and want to use Java 1.5 in my JSPs. Since Tomcat 5.5 uses the Eclipse JDT Compiler (Java 1.4), it cannot compile my JSPs. So I want the tomcat to compile the JSP's with the Sun JDK 1.5 compiler. I searched the web, but I did not find any instructions how to configure the tomcat to do so. Can anyone help me? Thanks Stefan 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. Access to this e-mail by anyone else is unauthorised. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited. E-mail messages are not necessarily secure. Renesas does not accept responsibility for any changes made to this message after it was sent. Please note that this email message has been swept by Renesas for the presence of computer viruses. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Howto configure tomcat to compile JSPs with Sun JDK 1.5
Lutz Zetzsche schrieb: Hi Stefan, Am Mittwoch, 27. April 2005 15:20 schrieb Stefan Parnet: Hello, I installed Tomcat 5.5.9 and want to use Java 1.5 in my JSPs. Since Tomcat 5.5 uses the Eclipse JDT Compiler (Java 1.4), it cannot compile my JSPs. So I want the tomcat to compile the JSP's with the Sun JDK 1.5 compiler. I searched the web, but I did not find any instructions how to configure the tomcat to do so. Can anyone help me? Do you integrate the Tomcat 5.5.9 into your Eclipse IDE or do you run it seperately? If you run Tomcat integrated into Eclipse, perhaps you can tell Eclipse which installed Tomcat and which installed JDK to use for your project. This is the way, I can do it with NetBeans IDE. Else, if you run Tomcat independently of the IDE, you must only set the environment variable for the JDK correctly before starting the server. I am running Tomcat 5.5.7 with JDK 1.5.0_02 and have to set the environment variable JRE_HOME so that Tomcat uses the right one of the installed JDKs. I set the JRE_HOME manually before starting Tomcat: export JRE_HOME=/usr/java/jre1.5.0_02/ (you must change the path to the path you use on your system) The environment variable JAVA_HOME could also play a role, although not in my case. :-) I hope, this information does help a little. Best wishes Lutz I have the environment variables JAVA_HOME and JRE_HOME already set to the JDK, but Tomcat still compiles JSPs with its built in Eclipse JDT Java compiler. This fact is mentioned in the Release Notes. There is also mentioned that it is possible to configure Tomcat to use another compiler. But there is no explanation how to configure it. Thanks for your answer. Stefan 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. Access to this e-mail by anyone else is unauthorised. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited. E-mail messages are not necessarily secure. Renesas does not accept responsibility for any changes made to this message after it was sent. Please note that this email message has been swept by Renesas for the presence of computer viruses. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]