jdk 1.3.2 with Tomcat 5.5.15
Constraints of my new project say that I have to use jdk 1.3.2 (otherwise I would gladly move it to Java 5). I still want to try and use the latest version of Tomcat (5.5.15 is what I have installed), and configure for jre 1.3 . When starting the server, I am given the exception, which I quote below, from Bootstrap, and have already learnt that Bootstrap with the major.minor version 48 implies that it is a jdk1.4 version and is tailored for loading classes of this Java version. My question is, how can I configure this so it works? Is there a compatible version of Bootstrap? I am working with the latest version of Eclipse IDE. One of the reasons that I want to use the latest version of tomcat is that I have to be able to work with MS-Server express (the free version which can work on XP-Home edition), and my intuition is that I will need the latest version of Tomcat for this. I am not sure, and I will post this question on a different thread. Thanks in advance for your help. (If possible, please reply to my personal email address as well as to the group.) David Ziants [EMAIL PROTECTED] java.lang.UnsupportedClassVersionError: org/apache/catalina/startup/Bootstrap (Unsupported major.minor version 48.0) at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:488) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:106) at java.net.URLClassLoader.defineClass(URLClassLoader.java:243) at java.net.URLClassLoader.access$100(URLClassLoader.java:51) at java.net.URLClassLoader$1.run(URLClassLoader.java:190) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:183) at java.lang.ClassLoader.loadClass(ClassLoader.java:294) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:288) at java.lang.ClassLoader.loadClass(ClassLoader.java:250) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:310) Exception in thread main . - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Which version of Tomcat for MS-SQL Server express?
I have to interface my web page with a MS-SQL Server database, and am taking for development an express version that can work on Windows XP home. Can anyone tell me whether I need to use the latest version for Tomcat for this database, or whether there are drivers for earlier versions of Tomcat . My question arises because there is a constraint of my project that I have to do it with jdk 1.3 . (I also have an additional factor that I would rather use the latest version of Eclipse rather then have to install an earlier version.) Thanks in advance. David Ziants [EMAIL PROTECTED] (PS If possible, please reply to my personal email address as well as to the group.) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Cannot transform and load jsp file with Tomcat under Eclipse
Thank you for your responses Vinu and Chuck I got rid of the definition as Vinu suggested, and it seems that I do not have to have any context.xml in the META-INF for the app. The jsp file appears in my browser window, except it doesn't evaluate the jsp expression I include. Maybe you can tell me that I have a simple jsp error... As jsp works by creating an intermediate HttpServlet class, how can I view the source of this to work out what is going on? This problem was my original problem, which prompted me to try and add the servlet definitions. My simple jsp example is below. -- David Ziants [EMAIL PROTECTED] PS Please could responses also be CCed to my email address: [EMAIL PROTECTED] This is because I receive this discussion group in digest mode, and I don't know how frequently the archives are updated. == %@ page language=java contentType=text/html; charset=UTF-8 pageEncoding=UTF-8% !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN html head meta http-equiv=Content-Type content=text/html; charset=UTF-8 titleInsert title here/title /head body The date is: %=new java.util.Date().toString() % More text /body /html -- David Ziants [EMAIL PROTECTED] == Hi David, Just put your jsp files to 'D:\eclipse_ws_swing\MusarAvicha' directory and remove the servlet servlet-nameshowlogin_jsp/servlet-name servlet-classshowlogin_jsp/servlet-class load-on-startup6/load-on-startup /servlet from your web.xml. Then try to access the jsp files thru the browser. - Regards Vinu David Ziants wrote: This is the first time I have had to do my own configuration of tomcat (5.5) using eclipse (3.1) and Java 5, and I am having a few teething problems. Everything is installed under Windows XP. I just took the latest release of Tomcat as I see there ought to be proper support for Java 5 which I am using for my project. I wish to write a JSP and also a servlet, and I added markups to my WEB-INF/web.xml : == - Original Message - From Caldarale, Charles R [EMAIL PROTECTED] Date Tue, 31 Jan 2006 15:40:32 -0600 To Tomcat Users List users@tomcat.apache.org Subject RE: Cannot transform and load jsp file with Tomcat under Eclipse From: David Ziants [EMAIL PROTECTED] Subject: Cannot transform and load jsp file with Tomcat under Eclipse I also added META-INF\context.xml file: == ?xml version=1.0 encoding=UTF-8? Context path=D:\eclipse_ws_swing\MusarAvicha/ == The path attribute is not used when the Context tag is in META-INF/context.xml, nor when inside a conf/Catalina/[host_name]/[app_name].xml file. It may only be used when your Context is configured in server.xml, and then it gives the web-visible name of the app, not where the app is stored in your local file system. Perhaps you meant to use the docBase attribute. Suggest a close reading of the doc: http://tomcat.apache.org/tomcat-5.5-doc/config/context.html - Chuck - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cannot transform and load jsp file with Tomcat under Eclipse
I got the configuration working now and I thank the responders for their feedback and help. Although I created a completely new work set, I did copy my source files over to it. With this I also copied the web.xml file. What I forgot was that I had a servlet definition and mapping which didn't seem to be causing any loading problems. The servlet is not yet debugged, if I was correctly referencing it at all. In any case I commented out those definition lines and I get what I expect: === The date is: Wed Feb 01 23:24:04 IST 2006 ABCD More text === Now I have to put in and debug the servlet which includes My-SQL storage services for my project. David Ziants David Ziants wrote: This is the first time I have had to do my own configuration of tomcat (5.5) using eclipse (3.1) and Java 5, and I am having a few teething problems. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Cannot transform and load jsp file with Tomcat under Eclipse
This is the first time I have had to do my own configuration of tomcat (5.5) using eclipse (3.1) and Java 5, and I am having a few teething problems. Everything is installed under Windows XP. I just took the latest release of Tomcat as I see there ought to be proper support for Java 5 which I am using for my project. I wish to write a JSP and also a servlet, and I added markups to my WEB-INF/web.xml : == servlet servlet-nameorg.musaravicha.servlets.ControlServlet/servlet-name servlet-classorg.musaravicha.servlets.ControlServlet/servlet-class /servlet servlet-mapping servlet-nameorg.musaravicha.servlets.ControlServlet/servlet-name url-pattern/ControlServlet/url-pattern /servlet-mapping servlet servlet-nameshowlogin_jsp/servlet-name servlet-classshowlogin_jsp/servlet-class load-on-startup6/load-on-startup /servlet == I also added META-INF\context.xml file: == ?xml version=1.0 encoding=UTF-8? Context path=D:\eclipse_ws_swing\MusarAvicha/ == What am I (or might be) missing or doing wrong? When I start Tomcat from within Eclipse I get a log which I quote at the end of this posting. I put file showlogin.jsp directly in the WebContent directory. From the log it seems that it does not transform the .jsp into the showlogin_jsp class file for loading to Tomcat. How do I incorperate jsp ? Thank you in advance. David Ziants [EMAIL PROTECTED] == usage: java org.apache.catalina.startup.Catalina [ -config {pathname} ] [ -nonaming ] { start | stop } Jan 31, 2006 5:13:51 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jdk1.5.0_04\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files\Java\jdk1.5.0_04\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\MySQL\MySQL Server 5.0\bin Jan 31, 2006 5:13:51 PM org.apache.coyote.http11.Http11BaseProtocol init INFO: Initializing Coyote HTTP/1.1 on http-8080 Jan 31, 2006 5:13:51 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 906 ms Jan 31, 2006 5:13:51 PM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Jan 31, 2006 5:13:51 PM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/5.5.15 Jan 31, 2006 5:13:51 PM org.apache.catalina.core.StandardHost start INFO: XML validation disabled Jan 31, 2006 5:13:51 PM org.apache.catalina.core.ApplicationContext log INFO: Marking servlet showlogin_jsp as unavailable Jan 31, 2006 5:13:51 PM org.apache.catalina.core.ApplicationContext log SEVERE: Error loading WebappClassLoader delegate: false repositories: /WEB-INF/classes/ -- Parent Classloader: [EMAIL PROTECTED] showlogin_jsp java.lang.ClassNotFoundException: showlogin_jsp at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1352) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1198) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1034) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3915) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4176) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012) at org.apache.catalina.core.StandardHost.start(StandardHost.java:718) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442) at org.apache.catalina.core.StandardService.start(StandardService.java:450) at org.apache.catalina.core.StandardServer.start(StandardServer.java:700) at org.apache.catalina.startup.Catalina.start(Catalina.java:551) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) Jan 31, 2006 5:13:51 PM org.apache.catalina.core.StandardContext loadOnStartup SEVERE: Servlet /MusarAvicha threw load() exception java.lang.ClassNotFoundException: showlogin_jsp at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1352